CN111371998B - Camera starting control method and related device - Google Patents

Camera starting control method and related device Download PDF

Info

Publication number
CN111371998B
CN111371998B CN202010181965.0A CN202010181965A CN111371998B CN 111371998 B CN111371998 B CN 111371998B CN 202010181965 A CN202010181965 A CN 202010181965A CN 111371998 B CN111371998 B CN 111371998B
Authority
CN
China
Prior art keywords
camera
module
sub
node data
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010181965.0A
Other languages
Chinese (zh)
Other versions
CN111371998A (en
Inventor
吴恒刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010181965.0A priority Critical patent/CN111371998B/en
Publication of CN111371998A publication Critical patent/CN111371998A/en
Application granted granted Critical
Publication of CN111371998B publication Critical patent/CN111371998B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection
    • H04N23/6812Motion detection based on additional sensors, e.g. acceleration sensors

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the application provides a camera starting control method and a related device, which are applied to electronic equipment, wherein the method comprises the following steps: receiving an instruction for starting a camera; performing data configuration on at least one physical device associated with the photographing function according to the instruction; collecting node data of the at least one physical device, wherein the node data comprises data generated by the at least one physical device during camera starting and/or data generated by a plurality of same types of physical devices in the at least one physical device together; and displaying a preview image on a camera interface according to the node data, and creating and processing an optical anti-shake sub-module to finish starting the camera. Therefore, the camera starting control method and the related device provided by the embodiment of the application can reduce the preparation time of the camera during starting, and improve the starting speed of the camera and the user experience.

Description

Camera starting control method and related device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a camera startup control method and a related apparatus.
Background
With the continuous development of scientific technology and the increasingly wide application of intelligent terminals, the pixels of the built-in camera are higher and higher, and the effect of pictures shot by the built-in camera is better and better, so that a user is used to capture relevant scenes by the built-in camera of the portable device, but a large amount of time consumption occurs in the starting process of the camera, and the use experience of the user is influenced.
Disclosure of Invention
The embodiment of the application provides a camera starting control method and a related device, which can improve the starting speed of a camera.
In a first aspect, an embodiment of the present application provides a camera start control method, which is applied to an electronic device, and the method includes:
receiving an instruction for starting a camera;
performing data configuration on at least one physical device associated with the photographing function according to the instruction;
collecting node data of the at least one physical device, wherein the node data comprises data generated by the at least one physical device during camera starting and/or data generated by a plurality of same types of physical devices in the at least one physical device together;
displaying a preview image on a camera interface according to the node data;
an optical anti-shake sub-module is created and processed to complete the startup of the camera.
In a second aspect, the present application provides a camera start control device, which is applied to an electronic device, and includes a processing unit and a communication unit, wherein,
the processing unit is used for receiving an instruction for starting the camera through the communication unit; and a data configuration module for configuring data of the camera module according to the instruction, wherein the camera module comprises at least one physical device associated with a photographing function; and node data for acquiring the at least one physical device, wherein the node data comprises data generated by the at least one physical device during camera starting process and/or data generated by a plurality of same type physical devices in the at least one physical device; and displaying a preview image on a camera interface according to the node data; and the optical anti-shake sub-module is used for creating and processing the optical anti-shake sub-module to complete the starting of the camera.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, the electronic device first receives an instruction to start the camera; then, carrying out data configuration on at least one physical device associated with the photographing function according to the instruction; then collecting node data of the at least one physical device, wherein the node data comprises data generated by the at least one physical device independently in the starting process of the camera and/or data generated by a plurality of physical devices of the same type in the at least one physical device together; and then displaying a preview image on a camera interface according to the node data, and finally creating and processing an optical anti-shake sub-module to finish starting the camera. Therefore, the camera starting control method and the related device provided by the embodiment of the application can avoid competition of the integrated circuit control bus in the camera starting process, can reduce the preparation time of the camera during starting, improve the starting speed of the camera, display the preview image on the camera display interface before the optical anti-shake sub-module is created, and can also improve the use experience of a user.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of an electronic device provided by an embodiment of the present application;
fig. 2a is a schematic flowchart of a camera startup control method according to an embodiment of the present application;
FIG. 2b is a comparison graph of the time consumed for starting up the camera provided by the embodiment of the present application;
fig. 3 is a schematic flowchart of another camera startup method provided in the embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 5 is a block diagram of functional units of a camera start control device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
At present, in the process of starting a camera, because the time consumption of the creation of each camera sub-module and the operation of a sensor needs to be accumulated, the preparation time of a sensor node alone occupies 20% of the time consumption of the whole camera, and the starting speed is greatly restricted.
In view of the foregoing problems, embodiments of the present application provide a camera startup control method and related apparatus, which are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, fig. 1 is a schematic view of an electronic device provided in an embodiment of the present application, where the electronic device includes a camera for implementing a photographing function, and the camera may be a double-shot camera, a memory for storing a photo, and the like.
Referring to fig. 2a, fig. 2a is a schematic flowchart of a camera start control method according to an embodiment of the present application, and as shown in the drawing, the camera start control method is described from the perspective of an electronic device, and specifically includes the following steps.
S201, receiving an instruction for starting the camera.
When a camera application program informs a hardware abstraction layer of the electronic equipment to start a camera, the hardware abstraction layer needs to configure bottom hardware and collect related data after receiving a request, and ensures that all nodes and buffers related to photographing are basically prepared and distributed when the next request comes, wherein the hardware abstraction layer is a driving code of a user control and is directly related to the bottom hardware driving.
And S202, performing data configuration on at least one physical device associated with the photographing function according to the instruction.
The physical devices include a lens, a sensor, an aperture, an Image Signal Processor (ISP), and other physical devices mainly constituting a camera system of the electronic Device, where the sensor mainly includes an Image sensor, such as a Complementary Metal Oxide Semiconductor (CMOS) Image sensor and a Charge Coupled Device (CCD) Image sensor. When the camera is started, data configuration needs to be performed on the physical devices, default parameters of related equipment are set, and when the shooting mode of the camera is started or switched when the shooting mode of the camera is different, the default parameters of the physical devices need to be changed according to specific mode selection.
The data configuration comprises parameter setting of photo size, format and image quality required to be related when the camera is photographed, white balance set according to a specific color temperature scene when the camera is started, or configuration of directly default white balance parameters, and parameter configuration of physical devices related to sensitivity, photo style, light metering mode, focusing mode, exposure mode and exposure compensation.
S203, collecting node data of the at least one physical device, wherein the node data comprises data generated by the at least one physical device in the starting process of the camera and/or data generated by a plurality of physical devices of the same type in the at least one physical device.
The node data is data generated by one or some kind of the physical device during the camera starting process, such as data generated by a lens actuator, an image data unit, a data transmission interface, a plurality of image sensors, and the like.
S204, displaying a preview image on a camera interface according to the node data;
the acquired node data comprises node data of a sensor, a lens actuator and the like, and after the camera acquires the node data, a preview image is displayed on a display interface of the camera.
And S205, creating and processing an optical anti-shake sub-module to finish starting the camera.
The Optical Image Stabilization (OIS) submodule is a module for avoiding or reducing an instrument shaking phenomenon occurring in a process of capturing an Optical signal by using the arrangement of an Optical component in a photographing process of a camera, and the Optical Image Stabilization (OIS) submodule comprises physical devices such as an Optical shaking compensation device, a level and/or a gyroscope sensor.
It can be seen that, in the embodiment of the present application, the electronic device first receives an instruction to start the camera; then, carrying out data configuration on at least one physical device associated with the photographing function according to the instruction; then collecting node data of the at least one physical device, wherein the node data comprises data generated by the at least one physical device independently in the starting process of the camera and/or data generated by a plurality of physical devices of the same type in the at least one physical device together; and then displaying a preview image on a camera interface according to the node data, and finally creating and processing an optical anti-shake sub-module to finish the starting of the camera. Therefore, the camera starting control method provided by the embodiment of the application can avoid competition of the integrated circuit control bus in the camera starting process, can reduce the preparation time of the camera starting or the camera when the photographing mode is switched, and improves the camera starting speed and the user experience.
In one possible example, the performing data configuration on at least one physical device associated with the photographing function according to the instruction includes: determining the at least one physical device needing to acquire node data; creating a camera sub-module from the at least one physical device; initializing the camera sub-module; and carrying out data configuration on the initialized camera sub-module.
When the camera is started, a shooting mode of a currently used camera application may be determined, which related data of which physical devices are needed to be used for shooting in the mode, that is, specific node data, is determined according to the shooting mode, and the physical devices which need to be subjected to data configuration are determined according to the node data which are needed to be used. If certain node data is generated by one physical device or the node data only needs one specific physical device, determining the physical device as a camera sub-module; if a certain node data includes data generated by a plurality of physical devices of the same type, determining that the plurality of physical devices of the same type are a camera sub-module, where the plurality of physical devices of the same type may be physical devices with the same or similar functions, or physical devices that process the same event, and this is not limited uniquely. The created camera submodule can be regarded as creating a process, initializing physical devices in the same process at the same time, and performing data configuration on the physical devices.
For example, the electronic device includes three different image sensors, one of which is a main image sensor and two of which are auxiliary image sensors, and in the starting process of the camera, if a common photographing mode needs to be used when the camera is used for photographing, the main image sensor can be set and created as a camera sub-module, and data configuration after initialization is performed on the camera sub-module; if a professional photographing mode is required to be used during photographing of the camera, the image sensor can be created into a camera sub-module, initialization and data configuration are simultaneously performed on three image sensors in the camera sub-module, and according to specific requirements, parameter settings of the image sensors are the same or partially the same or completely different during data configuration.
As can be seen, in this example, the physical device to be referred to is determined according to the node data, the camera sub-module is created according to the physical device, and the camera sub-module is initialized and configured with data, so that each node during the start of the camera can be quickly and efficiently prepared, and the subsequent acquisition and management of the node data are facilitated.
In one possible example, the camera sub-module includes a plurality of camera sub-modules, and the acquiring node data of the at least one physical device includes: and acquiring node data of the physical device contained in each of the plurality of camera sub-modules to obtain the node data of the at least one physical device.
The acquisition of the node data of the physical device can be regarded as acquisition of data of a certain camera submodule, that is, acquisition of the node data of a certain camera submodule, and the acquisition of the node data can be performed in sequence or in a unified manner according to requirements after all the camera submodules are created and all the camera submodules are initialized and configured with data.
Therefore, in this example, when the node data is collected, the data is collected after all the camera sub-modules are initialized and the data configuration is completed, so that the collection and transmission management of all the node data can be facilitated, and the time required for starting the camera or switching the photographing mode can be reduced.
In one possible example, the camera sub-module includes a plurality of camera sub-modules, and the acquiring node data of the at least one physical device includes: performing the following for each of the plurality of camera sub-modules: when the data configuration of the current camera sub-module is detected to be completed, acquiring node data of a physical device contained in the current camera sub-module; and acquiring node data until the plurality of camera sub-modules finish the node data acquisition.
When the node data is collected, corresponding node data collection can be carried out on one or more camera sub-modules only after initialization and data configuration of the camera sub-modules are completed, and the data collection does not need to be completed after data configuration of all the camera sub-modules is completed.
Therefore, in this example, after it is detected that the data configuration of the current camera sub-module is completed, the node data can be acquired, so that the acquisition efficiency of the node data can be improved, and the time required for starting the camera or switching the photographing mode can be reduced.
In one possible example, the at least one physical device comprises an image sensor; the image sensor is a physical device which performs node data acquisition on the last of the plurality of physical devices.
Wherein, when the node data corresponding to the camera sub-module is collected, if the node data of the physical device contained in the current camera sub-module is collected after the data configuration of the current camera sub-module is detected, if the current camera sub-module is an image sensor sub-module or the current camera sub-module includes an image sensor sub-module, it is determined that the other camera sub-modules except the image sensor sub-module have completed initialization and data configuration, it is ensured that the image sensor sub-module is the last one to perform node data acquisition, because the image sensor, once it starts to collect image data, always outputs the data to the data bus in its own timing, this may cause data bus collision problems that may be avoided by collecting and outputting sensor data last.
Therefore, in the example, when the node data is collected, the last node data is collected, so that the problem of bus collision in the node data collection process can be avoided, the node data collection efficiency is improved, and the time spent on starting the camera or switching the photographing mode is reduced.
In one possible example, the creating and processing an optical anti-shake sub-module includes: creating the optical anti-shake sub-module; initializing the optical anti-shake sub-module; and performing data configuration on the initialized optical anti-shake sub-module.
The creation and processing of the optical anti-shake sub-module comprises creating physical devices related to optical anti-shake as a module, initializing the physical devices contained in the optical anti-shake sub-module and configuring data of the physical devices, wherein the data of the optical anti-shake sub-module configuration comprises parameter settings of positions and angles of compensation devices contained in the optical anti-shake sub-module.
As can be seen, in this example, after the specific node data is collected, the optical anti-shake sub-module is created, initialized, and configured, which can reduce the time required for starting the camera or switching the photographing mode.
In one possible example, the camera sub-module comprises an image sensor sub-module, and before creating and processing the optical anti-shake sub-module, the method further comprises: determining whether the operation of the image sensor submodule on the register through the integrated circuit bus is completely finished; and if so, creating and processing the optical anti-shake sub-module.
The creation and initialization of the optical anti-shake sub-module requires a large number of registers to be operated through an integrated circuit bus I2C, and the initialization of the image sensor also requires a large number of registers to be operated through an I2C, so that, in order to avoid race conditions on an I2C bus, the timing of the initialization of each physical device and the optical anti-shake sub-module needs to be controlled, and if the image sensor sub-module is initialized and data configuration is completed before the optical anti-shake sub-module is created, RAW data of the image sensor is acquired, and a stage of image sensor plotting is reached, the generation of I2C race conditions can be avoided.
Therefore, in this example, when the operation of the image sensor on the register through the I2C bus is completely completed, the optical anti-shake sub-module is created, so that race of initialization of the image sensor sub-module and initialization of the optical anti-shake sub-module on the I2C bus can be avoided, time required for starting the camera or switching the photographing mode is reduced, and user experience is improved.
The following is a detailed description with reference to specific examples.
As shown in fig. 2b, fig. 2b is a comparison graph of time consumption for starting a camera provided in this embodiment of the present application, where an electronic device takes a mobile phone as an example, when a built-in camera of the mobile phone is started, if the creation and initialization timing of an optical anti-shake sub-module is not controlled, a camera sub-module is created according to physical devices such as an image sensor, an actuator, a memory, etc., and the optical anti-shake sub-module is created and initialized while the camera sub-module is initialized and configured with data, it takes about 113ms only for data acquisition of a node of the image sensor sub-module, and if the timing in a camera starting process is adjusted and controlled according to a camera start control module of the electronic device, after a start instruction of the camera is received, data configuration is first performed on the physical devices, then node data corresponding to the physical devices, especially data configuration and node data acquisition of the image sensor is acquired, and finally, an optical anti-shake sub-module is created and initialized and configured, so that the data acquisition of the sub-module node of the image sensor only needs about 36ms, the starting speed of the whole camera can be increased by 20%, and the speed of switching the photographing mode of the camera can be increased by 16%.
Referring to fig. 3, fig. 3 is a schematic flowchart of another camera startup method according to an embodiment of the present disclosure, and as shown in the drawing, the camera startup control method includes the following steps:
s301, receiving an instruction for starting a camera;
s302, determining the at least one physical device needing to acquire the node data;
s303, creating a camera sub-module according to the at least one physical device;
s304, initializing the camera sub-module;
s305, performing data configuration on the initialized camera sub-module;
s306, collecting node data of the at least one physical device, wherein the node data comprises data generated by the at least one physical device in the starting process of the camera and/or data generated by a plurality of physical devices of the same type in the at least one physical device;
s307, displaying a preview image on a camera interface according to the node data;
and S308, creating and processing an optical anti-shake sub-module to finish the starting of the camera.
It can be seen that, in the embodiment of the present application, after receiving an instruction to start a camera, an electronic device first determines the at least one physical device that needs to acquire node data, then creates a camera sub-module according to the at least one physical device, then initializes the camera sub-module and performs data configuration on the initialized camera sub-module, then acquires the node data of the at least one physical device, then displays a preview image on a camera interface according to the node data, and finally creates and processes an optical anti-shake sub-module to complete starting the camera. Therefore, competition of the integrated circuit control bus in the camera starting process can be avoided, the preparation time of the camera during starting can be shortened, and the camera starting speed and the user use experience can be improved.
Consistent with the embodiments shown in fig. 2a and fig. 3, please refer to fig. 4, and fig. 4 is a schematic structural diagram of an electronic device 400 provided in an embodiment of the present application, and as shown in the figure, the electronic device 400 includes an application processor 410, a memory 420, a communication interface 430, and one or more programs 421, where the one or more programs 421 are stored in the memory 420 and configured to be executed by the application processor 410, and the one or more programs 421 include instructions for executing any step in the foregoing method embodiments.
In one possible example, the program 421 includes instructions for performing the following steps: receiving an instruction for starting a camera; performing data configuration on at least one physical device associated with the photographing function according to the instruction; collecting node data of the at least one physical device, wherein the node data comprises data generated by the at least one physical device during camera starting and/or data generated by a plurality of same types of physical devices in the at least one physical device together; displaying a preview image on a camera interface according to the node data; an optical anti-shake sub-module is created and processed to complete the startup of the camera.
In one possible example, in terms of the data configuration of the at least one physical device associated with the photographing function according to the instructions, the instructions in the program 421 are specifically configured to perform the following operations: determining the at least one physical device needing to acquire node data; creating a camera sub-module from the at least one physical device; initializing the camera sub-module; and carrying out data configuration on the initialized camera sub-module.
In one possible example, the camera sub-module includes a plurality of camera sub-modules, and in the aspect of acquiring the node data of the at least one physical device, the instructions in the program 421 are specifically configured to: and acquiring node data of the physical device contained in each of the plurality of camera sub-modules to obtain the node data of the at least one physical device.
In one possible example, the camera sub-module includes a plurality of camera sub-modules, and in the aspect of acquiring the node data of the at least one physical device, the instructions in the program 421 are specifically configured to: performing the following for each of the plurality of camera sub-modules: when the data configuration of the current camera sub-module is detected to be completed, acquiring node data of a physical device contained in the current camera sub-module; and acquiring node data until the plurality of camera sub-modules finish the node data acquisition.
In one possible example, the at least one physical device comprises an image sensor; the image sensor is a physical device which performs node data acquisition on the last of the plurality of physical devices.
In one possible example, in the aspect of creating and processing the optical anti-shake sub-module, the instructions in the program 421 are specifically configured to perform the following operations: creating the optical anti-shake sub-module; initializing the optical anti-shake sub-module; and performing data configuration on the initialized optical anti-shake sub-module.
In one possible example, the camera sub-module comprises an image sensor sub-module, and before the creating and processing of the optical anti-shake sub-module, the instructions in the program 421 are specifically configured to: determining whether the operation of the image sensor submodule on the register through the integrated circuit bus is completely finished; and if so, creating and processing the optical anti-shake sub-module.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 5 is a block diagram illustrating functional units of a camera start control apparatus 500 according to an embodiment of the present application. The camera activation control device 500 is applied to an electronic apparatus, said device comprising a processing unit 501 and a communication unit 502, wherein,
the processing unit 501 is configured to receive an instruction to start a camera through the communication unit 502; and a data configuration module for configuring data of the camera module according to the instruction, wherein the camera module comprises at least one physical device associated with a photographing function; and node data for acquiring the at least one physical device, wherein the node data comprises data generated by the at least one physical device during camera starting process and/or data generated by a plurality of same type physical devices in the at least one physical device; and displaying a preview image on a camera interface according to the node data; and the optical anti-shake sub-module is used for creating and processing the optical anti-shake sub-module to complete the starting of the camera.
In a possible example, in terms of the data configuration of the at least one physical device associated with the photographing function according to the instruction, the processing unit 501 is specifically configured to determine the at least one physical device that needs to acquire node data; creating a camera sub-module from the at least one physical device; initializing the camera sub-module; and carrying out data configuration on the initialized camera sub-module.
In one possible example, the camera sub-modules include a plurality of camera sub-modules, and in the aspect of acquiring the node data of the at least one physical device, the processing unit 501 is specifically configured to acquire the node data of the physical device included in each of the plurality of camera sub-modules to obtain the node data of the at least one physical device.
In one possible example, the camera sub-modules include a plurality of camera sub-modules, and in the aspect of acquiring the node data of the at least one physical device, the processing unit 501 is specifically configured to, for each of the plurality of camera sub-modules, perform the following operations: when the data configuration of the current camera sub-module is detected to be completed, acquiring node data of a physical device contained in the current camera sub-module; and acquiring node data until the plurality of camera sub-modules finish the node data acquisition.
In one possible example, the at least one physical device comprises an image sensor; the image sensor is a physical device which performs node data acquisition on the last of the plurality of physical devices.
In one possible example, in terms of creating and processing the optical anti-shake sub-module, the processing unit 501 is specifically configured to create the optical anti-shake sub-module; initializing the optical anti-shake sub-module; and performing data configuration on the initialized optical anti-shake sub-module.
In one possible example, the camera sub-module includes an image sensor sub-module, and before the creating and processing of the optical anti-shake sub-module, the processing unit 501 is specifically configured to determine whether the operation of the image sensor sub-module on the register through the integrated circuit bus is completely completed; and if so, creating and processing the optical anti-shake sub-module.
The camera activation control apparatus 500 may further include a storage unit 503 for storing program codes and data of the electronic device. The processing unit 501 may be a processor, the communication unit 502 may be a touch display screen or a transceiver, and the storage unit 503 may be a memory.
It can be understood that, since the method embodiment and the apparatus embodiment are different presentation forms of the same technical concept, the content of the method embodiment portion in the present application should be synchronously adapted to the apparatus embodiment portion, and is not described herein again.
Embodiments of the present application further provide a chip, where the chip includes a processor, configured to call and run a computer program from a memory, so that a device in which the chip is installed performs some or all of the steps described in the electronic device in the above method embodiments.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A camera starting control method is applied to electronic equipment, and the method comprises the following steps:
receiving an instruction for starting a camera;
determining at least one physical device needing to acquire node data according to the instruction, wherein the node data are determined according to the shooting mode of the camera;
creating a camera sub-module from the at least one physical device;
initializing the camera sub-module;
performing data configuration on the initialized camera sub-module;
acquiring node data of physical devices included in the camera sub-module, wherein the node data comprises data generated by the at least one physical device during the camera starting process and/or data generated by a plurality of same types of physical devices in the at least one physical device together;
displaying a preview image on a camera interface according to the node data;
an optical anti-shake sub-module is created and processed to complete the startup of the camera.
2. The method of claim 1, wherein the camera sub-module comprises a plurality of camera sub-modules, and the acquiring node data of the physical devices included in the camera sub-modules comprises:
and acquiring node data of the physical device contained in each of the plurality of camera sub-modules to obtain the node data of the at least one physical device.
3. The method of claim 1, wherein the camera sub-module comprises a plurality of camera sub-modules, and the acquiring node data of the physical devices included in the camera sub-modules comprises:
performing the following for each of the plurality of camera sub-modules: when the data configuration of the current camera sub-module is detected to be completed, acquiring node data of a physical device contained in the current camera sub-module;
and acquiring node data until the plurality of camera sub-modules finish the node data acquisition.
4. The method of claim 2 or 3, wherein the camera sub-module is created from a plurality of physical devices, the plurality of physical devices including an image sensor;
the image sensor is a physical device which performs node data acquisition on the last of the plurality of physical devices.
5. The method according to any one of claims 1-3, wherein creating and processing an optical anti-shake sub-module comprises:
creating the optical anti-shake sub-module;
initializing the optical anti-shake sub-module;
and performing data configuration on the initialized optical anti-shake sub-module.
6. The method of claim 5, wherein the camera sub-module comprises an image sensor sub-module, and wherein prior to creating and processing the optical anti-shake sub-module, the method further comprises:
determining whether the operation of the image sensor submodule on the register through the integrated circuit bus is completely finished;
and if so, creating and processing the optical anti-shake sub-module.
7. A quick camera starting device is applied to electronic equipment and comprises a processing unit and a communication unit, wherein,
the processing unit is used for receiving an instruction for starting the camera through the communication unit; and at least one physical device used for determining the node data to be acquired according to the instruction, wherein the node data is determined according to the shooting mode of the camera; and for creating a camera sub-module from the at least one physical device; and for initializing the camera sub-module; the camera sub-module is used for carrying out data configuration on the initialized camera sub-module; the camera sub-module is used for acquiring node data of physical devices included in the camera sub-module, wherein the node data comprises data generated by the at least one physical device during the camera starting process and/or data generated by a plurality of physical devices of the same type in the at least one physical device together; and displaying a preview image on a camera interface according to the node data; and the optical anti-shake sub-module is used for creating and processing the optical anti-shake sub-module to complete the starting of the camera.
8. An electronic device comprising a processor, a memory, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-6.
9. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-6.
CN202010181965.0A 2020-03-16 2020-03-16 Camera starting control method and related device Active CN111371998B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010181965.0A CN111371998B (en) 2020-03-16 2020-03-16 Camera starting control method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010181965.0A CN111371998B (en) 2020-03-16 2020-03-16 Camera starting control method and related device

Publications (2)

Publication Number Publication Date
CN111371998A CN111371998A (en) 2020-07-03
CN111371998B true CN111371998B (en) 2021-07-27

Family

ID=71210598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010181965.0A Active CN111371998B (en) 2020-03-16 2020-03-16 Camera starting control method and related device

Country Status (1)

Country Link
CN (1) CN111371998B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113971048A (en) * 2021-10-29 2022-01-25 Oppo广东移动通信有限公司 Application program starting method and device, storage medium and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994277B (en) * 2015-06-30 2018-10-16 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of mobile communication terminal snapshots
CN105827942A (en) * 2015-09-24 2016-08-03 维沃移动通信有限公司 Rapid photographing method and electronic device
CN105898149A (en) * 2016-06-01 2016-08-24 广东欧珀移动通信有限公司 Camera starting method and system
CN106454127A (en) * 2016-11-29 2017-02-22 惠州Tcl移动通信有限公司 Method and system of improving the starting speed of camera of mobile terminal
CN107835360A (en) * 2017-10-27 2018-03-23 深圳市共进电子股份有限公司 A kind of quick start method and system of dormancy low power consumption network camera

Also Published As

Publication number Publication date
CN111371998A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
WO2017096866A1 (en) Method and apparatus for generating high dynamic range image
US20170163902A1 (en) Method and electronic device for generating high dynamic range image
CN110581956A (en) Image processing method, image processing device, storage medium and electronic equipment
KR102207633B1 (en) Image photographing apparatus and control methods thereof
CN108965692B (en) Sticker setting method and device
US20140313366A1 (en) Method of processing image and electronic device and system supporting the same
CN112637515B (en) Shooting method and device and electronic equipment
JP2010016826A (en) System and method for efficiently performing image processing operations
US20140210941A1 (en) Image capture apparatus, image capture method, and image capture program
CN107615745A (en) A kind of photographic method and terminal
CN106331497A (en) Image processing method and terminal
CN109923850A (en) A kind of image capture device and method
EP3836532A1 (en) Control method and apparatus, electronic device, and computer readable storage medium
CN113873161A (en) Shooting method and device and electronic equipment
CN111371998B (en) Camera starting control method and related device
US11622175B2 (en) Electronic apparatus and control method thereof
CN101076086B (en) Scene selection screen generation device
JP2013175824A (en) Electronic camera
CN102082909B (en) Digital photographing apparatus and control the method for this digital photographing apparatus
CN116048323B (en) Image processing method and electronic equipment
CN108874343B (en) Preview window sharing method and device
CN108924410B (en) Photographing control method and related device
CN114979458A (en) Image shooting method and electronic equipment
CN102025915B (en) Digital photographing apparatus and control the method for this equipment
JP2017041778A (en) Imaging apparatus, moving picture formation method and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant