Camera startup method and device, and electronic device

By writing the first N operation requests to the registers at the same time when the camera is started, the problem of camera startup delay under the Camera2 architecture is solved, and the direct effect of configuration data and continuous output of images after the camera is turned on is achieved, improving the user experience.

CN114064129BActive Publication Date: 2024-11-05BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010796736.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-10
Publication Date
2024-11-05
Estimated Expiration
2040-08-10

AI Technical Summary

Technical Problem

Under the Camera2 architecture of Android system, there is a problem of two frames delay when the camera is started, which causes the operation request received before the camera is turned on to fail to take effect immediately, resulting in the image of the first two frames being discarded, affecting the shooting experience.

Method used

When the camera function is triggered, the first N operation requests are written to the register at the same time, so that each operation request is effective after the camera is turned on, and the corresponding images are obtained in turn after the camera is turned on. The initialization data is overwritten before the camera is turned on by writing components. , ensure that the configuration data takes effect directly.

Benefits of technology

It avoids N-frame delays when the camera is started, improves the image output speed, ensures that the camera can continuously output images, and improves the user's shooting experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114064129B_ABST
    Figure CN114064129B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a camera startup method and device, and an electronic device. The method includes: when the camera function is triggered, the first N operation requests are written into a register at the same time, so that each operation request takes effect in sequence after the camera is turned on; when the camera is turned on, the camera outputs images corresponding to each operation request in sequence. In this embodiment, the configuration data of the operation request is loaded into the camera before the camera is turned on, so that the configuration data can be directly effective, so that the camera can output a valid image after it is turned on; the first N operation requests can be written into the register through a single write operation before the camera is turned on, and the N+1th operation request and subsequent operation requests can continue to be written after the camera outputs the image corresponding to the first operation request, so as to ensure that the camera can continuously output images. This embodiment can avoid the camera from having a delay of N frames, improve the image output speed when the camera is turned on, and is conducive to improving the user's shooting experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of control technology, and in particular to a camera startup method and device, and an electronic device. Background Art

[0002] At present, most of the smart electronic devices using the Android system are equipped with a camera function. Taking the Camera2 architecture of the Android system as an example, the process of camera shooting images is modeled as a pipeline using the pipeline architecture concept, that is, an operation request (input request) is sent in sequence and written into the register. After the camera starts to open the pipeline stream on, it shoots a frame of image every time it receives an operation request (input request) and outputs the image.

[0003] In this architecture, since the camera cannot send requests before starting stream on, each operation request (input request) needs to wait for two frames to take effect after being written into the register. Figure 1 At time a, which is the moment when the camera starts stream on, the configuration data of the first operation request in the register (register load) is loaded into the register. Since the configuration data does not take effect within two frames, the camera discards the first two frames of images. Therefore, the camera outputs the third frame of image as the image corresponding to the first operation request, that is, the first operation request takes effect only in the third frame, resulting in a two-frame delay. Summary of the invention

[0004] The present disclosure provides a camera activation method and device, and an electronic device to solve the deficiencies of the related art.

[0005] According to a first aspect of an embodiment of the present disclosure, a camera startup method is provided, the method comprising:

[0006] When the camera function is triggered, the first N operation requests are written into the register at the same time, so that each operation request takes effect in sequence after the camera is turned on;

[0007] When the camera is turned on, images output by the camera corresponding to each operation request are obtained in sequence.

[0008] Optionally, when the camera function is triggered, the first N operation requests are simultaneously written to the register, including:

[0009] When the camera function is triggered, the operation request and start instruction sent by the application are obtained, and the writing component is started;

[0010] Initializing the camera, wherein the initialization includes loading default configuration data;

[0011] Writing the operation request into a request queue;

[0012] Based on the writing component, the configuration data of the first N operation requests in the request queue are simultaneously written into the register to update the configuration data in the camera;

[0013] Close the write component.

[0014] Optionally, after acquiring the image output by the camera corresponding to the first operation request, the method further includes:

[0015] Starting from the N+1th operation request, only the configuration data of one operation request is written into the register each time.

[0016] Optionally, N is a natural number greater than or equal to 2.

[0017] According to a second aspect of an embodiment of the present disclosure, a camera activation device is provided, the device comprising:

[0018] The request writing module is used to write the first N operation requests into the register at the same time when the camera function is triggered, so that each operation request can take effect in sequence after the camera is turned on;

[0019] The image output module is used to sequentially obtain images output by the camera corresponding to each operation request when the camera is turned on.

[0020] Optionally, the request writing module includes:

[0021] A component startup unit, used to obtain an operation request and startup instruction sent by the application program and start writing the component when the camera function is triggered;

[0022] An initialization unit, used to initialize the camera, wherein the initialization includes loading default configuration data;

[0023] A queue writing unit, used for writing the operation request into a request queue;

[0024] a request writing unit, configured to simultaneously write the configuration data of the first N operation requests in the request queue into a register based on the writing component, so as to update the configuration data in the camera;

[0025] The component control unit is also used to close the writing component.

[0026] Optionally, the device further comprises:

[0027] The request writing module is also used to write configuration data of only one operation request into the register each time starting from the N+1th operation request.

[0028] Optionally, N is a natural number greater than or equal to 2.

[0029] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0030] camera;

[0031] processor;

[0032] a memory for storing a computer program executable by the processor;

[0033] The processor is configured to execute the computer program in the memory to implement the steps of the above method.

[0034] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, and when an executable computer program in the storage medium is executed by a processor, the steps of the above method can be implemented.

[0035] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0036] It can be seen from the above embodiments that in the disclosed embodiments, when the camera function is triggered, the first N operation requests can be written into the register at the same time, so that when the camera is turned on, the configuration data of each operation request can be loaded into the camera in sequence, and the camera outputs the images corresponding to each operation request in sequence. In this embodiment, the configuration data of the operation request is loaded into the camera before the camera is turned on, so that the configuration data can be directly effective, so that the camera can output a valid image after it is turned on without causing delay; before the camera is turned on, the first N operation requests can be written into the register through a single write operation, and the N+1th operation request and subsequent operation requests can continue to be written after the camera outputs the image corresponding to the first operation request, which can ensure that the camera can continuously output images. In this way, this embodiment can avoid the camera from having a delay of N frames, improve the image output speed when the camera is turned on, and help improve the user's shooting experience.

[0037] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0039] Figure 1 This is a correspondence between an operation request and a returned image shown in the related art.

[0040] Figure 2 The figure is a flowchart of a camera startup method according to an exemplary embodiment.

[0041] Figure 3 is a schematic diagram showing a register data update path according to an exemplary embodiment.

[0042] Figure 4 The flowchart of writing N operation requests simultaneously is shown according to an exemplary embodiment.

[0043] Figure 5 The diagram shows a correspondence between an operation request and a returned image according to an exemplary embodiment.

[0044] Figure 6-7 The figure is a block diagram of a camera starting device according to an exemplary embodiment.

[0045] Figure 8 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0046] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described below by way of example do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.

[0047] In the related art, the configuration data of the operation request loaded into the camera when the camera is started needs to take effect in the third frame, resulting in a two-frame delay. To solve the above technical problems, the embodiment of the present disclosure provides a camera startup method, Figure 2 1 is a flowchart of a camera startup method according to an exemplary embodiment, which is applicable to an electronic device provided with a camera, and the electronic device may include a smart phone, a personal computer, or a server, etc. Figure 2 , a method for starting a camera, comprising steps 21 and 22:

[0048] In step 21, when the camera function is triggered, the first N operation requests are simultaneously written into the register, so that each operation request takes effect in sequence after the camera is turned on.

[0049] In this embodiment, a camera application may be provided on the electronic device, and the camera may be directly triggered at this time; or, a third-party application may be provided, and the third application may call the camera function, that is, indirectly trigger the camera. The user may turn on the camera function by triggering the camera application or the third-party application. It is understandable that turning on the camera function has basically the same meaning as turning on the camera, both of which are to turn on the camera to take images or videos. The difference is that the term camera corresponds to the physical component, while the term camera corresponds to the actual function.

[0050] When the user wants to start the camera function, the application can be triggered (for example, by single-clicking, double-clicking, or using a shortcut key), and the application can send a start instruction and an operation request. Figure 3 :

[0051] The application sends a startup command to the camera, and the camera powers on and initializes after receiving the startup command. After the initialization is completed, the registers in the camera currently store the default configuration data, which is the data stored during the last shooting or randomly generated data.

[0052] After sending the start command, the application starts sending operation requests to the camera, which include configuration data, such as resolution, pixel format, sensor, lens, flash and other control information; 3A (auto white balance, auto focus, auto exposure) operation mode; RAW to YUV processing control; and statistical information generation, etc. In actual applications, the operation request can also carry the corresponding interface (surface, i.e., the pipeline stream in the Camera2 architecture) to receive the returned image, so as to achieve the effect of frame-by-frame control.

[0053] It should be noted that the configuration data of the operation request can be set according to the hardware parameters of the camera or electronic device and the actual needs of the application program, and the corresponding solution falls within the protection scope of the present disclosure.

[0054] See also Figure 4, the operation request sent by the application reaches the famework layer and HAL layer of the Android system. An operation request queue (i.e., request queue) is set in the HAL layer, and the operation request will be written into the operation request queue first. In actual applications, there will be a certain delay between triggering the camera function and turning on the camera. The application will issue multiple operation requests between the triggering operation and the camera turning on, and these operation requests are all written into the operation request queue. Then, the HAL layer processes each operation request in turn according to the first-in-first-out principle, and can obtain the configuration data in the operation request. The HAL layer writes configuration data to the register once according to the principle that the image sensor outputs one frame of image. After detecting that the image sensor outputs an image, the HAL layer can write the configuration data in the operation request into the register.

[0055] In the related art, after the camera is turned on (stream on), the first operation request is written to the register, and the effect is as follows Figure 3 As shown in path A, the configuration data loaded after the camera is turned on needs to be delayed for several frames (usually 2 frames) before it takes effect. The timing of the write operation request and the returned image result is as follows: Figure 1 However, if the camera outputs an image of an operation request before writing the next operation request into the register, the first two frames of images collected after the camera is turned on are invalid images and are discarded, resulting in the application being unable to display the image. Therefore, in this embodiment, before the camera is turned on (stream on), the HAL layer writes the configuration data of the operation request into the register, and the effect is as follows: Figure 3 As shown in path B, the default configuration data of the initialization process can be overwritten. In this way, the configuration data loaded by the camera for the first time is the configuration data in the first operation request. Moreover, in this embodiment, the configuration data of N operation requests between triggering the camera function and turning on the camera can be written into the register at the same time, that is, the configuration data of N operation requests can be written into the register through a single write operation. In this way, the camera can load the configuration data of each operation request in turn and return the image corresponding to each operation request in turn.

[0056] In this embodiment, N operation requests can be written to the register at the same time in the following manner: a writing component can be set in the camera sensor, and the writing component can write M groups of configuration parameters to the register at the same time and continuously take effect on the subsequent M frames of images, where M is a positive integer. This method uses the above-mentioned writing component to simultaneously write the configuration data of N (N<=M) operation requests, including: when it is detected that the camera function is triggered, the electronic device can enable a preset writing component. The writing component can read N operation requests from the operation request queue and write the configuration data of the N operation requests into the register. Then, the above-mentioned writing component is turned off.

[0057] In this method, the above-mentioned writing component can be used by times, that is, the number of times of use is pre-set, such as 1 time, the writing component is started when the camera function is triggered and is closed after writing an operation request. Alternatively, it can be used by time period, with the detection of the first operation request or the detection of the triggering of the camera function as the starting time, and the end time is earlier than or equal to the camera start time. The writing component can be used within the set time period between the start time and the end time, and it will be invalid after the expiration. In practical applications, considering that it takes a certain amount of time to write the operation request to the register, the end time needs to be earlier than the camera start time. At this time, it can be set according to the specific scenario and is not limited here.

[0058] It should be noted that in actual applications, the method of writing the configuration data of N operation requests can also be adjusted according to specific scenarios. If simultaneous writing can be achieved, the corresponding solution falls within the protection scope of this disclosure.

[0059] In this embodiment, after writing N operation requests into the register, it is convenient for the camera to directly use the configuration data to collect and feedback images after it is turned on, that is, the N operation requests can take effect in sequence on the first N frames of images output by the camera.

[0060] In step 22, when the camera is turned on, images output by the camera corresponding to each operation request are obtained in sequence.

[0061] In this embodiment, continue to refer to Figure 3 When the camera is turned on, it can expose, capture and output images in sequence according to the configuration data in the register. The image is the image corresponding to the operation request. The HAL layer loads the above image into the operation request according to the scheme in the relevant technology and returns it to the application APP. The application APP obtains the image result in the above operation request and can display it. Among them, the process of the camera returning the image according to the configuration data and the HAL layer loading the image into the operation request can refer to the scheme in the relevant technology, which will not be repeated here.

[0062] In one embodiment, since the configuration data of N operation requests are written at one time, after the camera returns the image of the first operation request among the N operation requests, a second write operation can be performed, and the N+1th operation request can be written to the register at this time. It is understandable that during the period when the N+1th operation request is loaded and takes effect, the camera can still read the configuration data of the second, third, ... Nth operation requests among the previous N operation requests. Moreover, the N+1th operation request and the operation requests thereafter can be restored to the scheme of writing operation requests in the existing Camera2 architecture, that is, one operation request is written to the register for each frame of image returned. In this way, the continuity of all operation requests can be guaranteed in this embodiment, or in other words, the continuity of the camera loading configuration data and the continuity of the returned image can be guaranteed.

[0063] At this point, in the disclosed embodiment, when the camera function is triggered, the first N operation requests can be written into N groups of registers at the same time, and the configuration data of the first operation request can be loaded into the camera; then, after the camera is turned on, the images corresponding to each operation request output by the camera can be obtained in sequence. In this embodiment, the configuration data of the operation request is loaded into the camera before the camera is turned on, so that the configuration data can be directly effective, so that the camera can output a valid image after it is turned on; the first N operation requests can be written into the register through a single write operation before the camera is turned on, and the N+1th operation request and subsequent operation requests can continue to be written after the camera outputs the image corresponding to the first operation request, which can ensure that the camera can output images continuously. In this way, this embodiment can avoid the camera from having a delay of N frames, improve the image output speed when the camera is turned on, and help improve the user's shooting experience.

[0064] The steps of the camera startup method are described below in conjunction with an electronic device provided with a 2-frame delayed camera. Figure 4 ,include:

[0065] 1. The electronic device can detect whether the sensor in the camera is provided with a writing component. If so, it jumps to 2. Or it can detect whether the function of continuously writing two sets of configuration data is supported. If so, it enables the above function and jumps to 2. If the above component or function does not exist, the register can be written in the existing Camera2 architecture.

[0066] 2. After the camera receives the startup command, it powers on and initializes.

[0067] 3. Before the camera is turned on (i.e., the camera sensor stream is turned on), the operation requests that have arrived are detected. These operation requests that have arrived are temporarily stored in the operation request queue, and include the first operation request and the second operation request. The configuration data of the first operation request and the second operation request are written to the register at the same time using the writing component of the camera sensor to overwrite the default configuration data written to the register during initialization in step 2. At this time, these two sets of configuration data can be used as the default configuration data of the camera, and take effect on the first frame and the second frame image after the camera is turned on, respectively.

[0068] 4. After the camera is turned on, the first frame of image output by the camera sensor is returned as the result of the first operation request, and the second frame of image is returned as the result of the second operation request. After the camera sensor outputs the first frame of image, the configuration data of the third operation request can be updated, that is, the configuration data of the third operation request is written to the register, and the configuration data will take effect on the third frame of image output by the camera sensor.

[0069] Continue to see Figure 5 , the operation requests in the register are: operation request 1, operation request 2, operation request 3, operation request 4 and operation request 5; after the camera is turned on, the returned results are: image 1, image 2, image 3. In this way, in this embodiment, frame-by-frame control can be achieved, and each frame of the image can be returned as the result of an operation request, achieving the effect of displaying the image when the camera is turned on, and improving the image output speed of the camera.

[0070] Based on the above-mentioned camera activation method, the present disclosure also provides a camera activation device, see Figure 6 ,include:

[0071] The request writing module 61 is used to write the first N operation requests into the register simultaneously when the camera function is triggered, so that each operation request takes effect in sequence after the camera is turned on;

[0072] The image output module 62 is used to sequentially obtain images output by the camera corresponding to each operation request when the camera is turned on.

[0073] In one embodiment, Figure 6 Based on the method shown, see Figure 7 , the request writing module 61 includes:

[0074] The component control unit 71 is used to obtain the operation request and start instruction sent by the application program and start the writing component when the camera function is triggered;

[0075] An initialization unit 72, used to initialize the camera, wherein the initialization includes loading default configuration data;

[0076] A queue writing unit 73, used for writing the operation request into a request queue;

[0077] a request writing unit 74, configured to simultaneously write the configuration data of the first N operation requests in the request queue into a register based on the writing component, so as to update the configuration data in the camera;

[0078] The component control unit 71 is also used to shut down the writing component.

[0079] In one embodiment, the device further comprises:

[0080] The request writing module is also used to write configuration data of only one operation request into the register each time starting from the N+1th operation request.

[0081] In one embodiment, N is a natural number greater than or equal to 2.

[0082] It is understandable that the device provided in the embodiment of the present disclosure corresponds to the above method. For the specific content, reference can be made to the content of each embodiment of the method, which will not be repeated here.

[0083] Figure 8 8 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 800 may be a smart phone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0084] Reference Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , a communication component 816 , and an image acquisition component 818 .

[0085] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute computer programs. In addition, the processing component 802 may include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.

[0086] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include computer programs for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0087] The power supply component 806 provides power to various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800. The power supply component 806 may include a power supply chip, and the controller may communicate with the power supply chip to control the power supply chip to turn on or off a switch device, so that the battery supplies power to the mainboard circuit or not.

[0088] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the target object. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the target object. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0089] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0090] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc.

[0091] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of components, such as the display screen and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component, the presence or absence of contact between the target object and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800.

[0092] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0093] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0094] In an exemplary embodiment, a non-temporary readable storage medium including an executable computer program is also provided, such as a memory 804 including instructions, and the executable computer program can be executed by a processor. The readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0095] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0096] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A camera startup method, characterized in that: The method comprises: When the camera function is triggered, the first N operation requests are written into the register at the same time, so that each operation request takes effect in sequence after the camera is turned on; When the camera is turned on, images corresponding to each operation request output by the camera are obtained in sequence; When the camera function is triggered, the first N operation requests are written to the register simultaneously, including: When the camera function is triggered, the operation request and start instruction sent by the application are obtained, and the writing component is started; Initializing the camera, wherein the initialization includes loading default configuration data; Writing the operation request into a request queue; Based on the writing component, the configuration data of the first N operation requests in the request queue are simultaneously written into the register to update the configuration data in the camera; The writing component is closed before the camera is turned on.

2. The method according to claim 1, characterized in that After acquiring the image output by the camera corresponding to the first operation request, the method further includes: Starting from the N+1th operation request, only the configuration data of one operation request is written into the register each time.

3. The method according to claim 1 or 2, characterized in that: N is a natural number greater than or equal to 2.

4. A camera activation device, characterized in that: The device comprises: The request writing module is used to write the first N operation requests into the register at the same time when the camera function is triggered, so that each operation request can take effect in sequence after the camera is turned on; An image output module, used for sequentially acquiring images output by the camera corresponding to each operation request when the camera is turned on; The request writing module comprises: A component control unit, used to obtain an operation request and a start instruction sent by an application program and start writing the component when the camera function is triggered; An initialization unit, used to initialize the camera, wherein the initialization includes loading default configuration data; A queue writing unit, used for writing the operation request into a request queue; a request writing unit, configured to simultaneously write the configuration data of the first N operation requests in the request queue into a register based on the writing component, so as to update the configuration data in the camera; The component control unit is also used to close the writing component before the camera is turned on.

5. The device according to claim 4, characterized in that The device also includes: The request writing module is also used to write configuration data of only one operation request into the register each time starting from the N+1th operation request.

6. The device according to claim 4 or 5, characterized in that N is a natural number greater than or equal to 2.

7. An electronic device, characterized in that: include: camera; processor; a memory for storing a computer program executable by the processor; The processor is configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 3.

8. A computer-readable storage medium, characterized in that: When the executable computer program in the storage medium is executed by a processor, the steps of the method according to any one of claims 1 to 3 can be implemented.