Data processing method, electronic device, and storage medium

By introducing multiple working modes into the camera module and adjusting the power consumption according to the usage scenario, the problem of high power consumption of the camera module during acquisition is solved, low-power image acquisition is achieved, the battery life of the device is extended, and the The thinness and aesthetics of the device.

CN113093900BActive Publication Date: 2024-08-23LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110334422.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-29
Publication Date
2024-08-23
Estimated Expiration
2041-03-29

AI Technical Summary

Technical Problem

Existing camera modules produce high power consumption when collecting images or videos, which affects the battery life of electronic devices. Adding low-power modules to reduce power consumption will increase the size and complexity of the device.

Method used

By introducing at least two working modes into the camera module, the power consumption is dynamically adjusted according to the usage scenario, including using low power consumption and normal working modes in black screen and bright screen scenarios respectively, adjusting the number of photosensitive arrays, acquisition frequency, The magnification of the amplifier and the accuracy of the converter to achieve low power image acquisition.

Benefits of technology

It is possible to reduce the power consumption of the camera module, extend the battery life of electronic devices, and improve the thinness and aesthetics of the device without increasing the size and complexity of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113093900B
    Figure CN113093900B
Patent Text Reader

Abstract

An embodiment of the present application discloses a data processing method, an electronic device, and a storage medium, wherein the method includes: obtaining a target parameter, wherein the target parameter represents a usage scenario in which a camera module is located; determining an operating mode that matches the target parameter among at least two operating modes of the camera module; and controlling the camera module to operate in the determined operating mode; wherein the power consumed by the camera module in the first operating mode is different from the power consumed in the second operating mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to data processing technology, and specifically to a data processing method, electronic equipment, and storage medium. Background Art

[0002] Electronic devices such as tablet computers and mobile phones can capture images or videos through built-in camera modules. Generally, the camera module will generate a certain amount of power consumption when capturing images or videos, thereby accelerating the consumption of battery power. In the related art, in order to reduce the impact on power consumption, an additional low-power camera module is set up, which can capture images or videos with lower power consumption, thereby saving battery power. However, on the basis of the existing camera module, by adding an additional low-power camera module, the space occupied by the camera module in the electronic device is increased invisibly, which is not conducive to the development of the lightness and compactness of the electronic device. Summary of the invention

[0003] In order to solve the existing technical problems, the embodiments of the present application provide a data processing method, an electronic device, and a storage medium.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides a data processing method, including:

[0006] Obtaining a target parameter, wherein the target parameter represents a usage scenario of the camera module;

[0007] Determine, among at least two operating modes of the camera module, an operating mode that matches the target parameters;

[0008] Controlling the camera module to work in the determined working mode;

[0009] Among them, the power consumed by the camera module in the first working mode is different from the power consumed in the second working mode.

[0010] In the above scheme, when the camera module is in a usage scenario where the display screen is black, the working mode of the camera module is determined to be the first working mode;

[0011] When the camera module is in a usage scenario where the display screen is bright, determining that the working mode of the camera module is the second working mode;

[0012] Among them, the power consumption of the camera module in the first working mode is lower than the power consumption in the second working mode.

[0013] In the above solution, the camera module includes an image sensor, and the image sensor is used to collect images;

[0014] The power consumption used by the image sensor when capturing images in the first working mode of the camera module is lower than the power consumption used by the image sensor when capturing images in the second working mode of the camera module.

[0015] In the above solution, the image sensor includes a plurality of photosensitive arrays for collecting ambient light signals and converting the collected ambient light signals into images;

[0016] The number of photosensitive arrays used when collecting ambient light in the first working mode of the camera module is less than the number of photosensitive arrays used when collecting ambient light in the second working mode of the camera module;

[0017] and / or,

[0018] The acquisition frequency adopted by the image sensor when collecting ambient light in the first working mode of the camera module is lower than the acquisition frequency adopted when collecting ambient light in the second working mode of the camera module.

[0019] In the above solution, the camera module also includes an amplifier for amplifying the signal of the captured image;

[0020] The amplification factor of the amplifier used in the first working mode of the camera module is smaller than the amplification factor of the amplifier used in the second working mode of the camera module.

[0021] In the above solution, the camera module also includes a converter for performing analog-to-digital conversion on the captured image;

[0022] The conversion accuracy used by the converter in the first working mode of the camera module is lower than the conversion accuracy used by the converter in the second working mode of the camera module.

[0023] In the above scheme, the camera module is used to collect images;

[0024] In the first working mode, the camera module is also used to identify the collected image;

[0025] In the second working mode, the camera module sends the collected image to the recognition module;

[0026] Wherein, the recognition module is in a dormant or closed state when the camera module is in the first working mode; the recognition module is in a working state of at least recognizing the collected image when the camera module is in the second working mode;

[0027] The power consumed by the camera module in identifying and acquiring images in the first working mode is less than the power consumed by the recognition module in identifying and acquiring images in the second working mode of the camera module.

[0028] An embodiment of the present application provides an electronic device, including:

[0029] An obtaining unit, used to obtain a target parameter, wherein the target parameter represents a usage scenario in which the camera module is located;

[0030] A determination unit, used to determine an operating mode that matches the target parameter among at least two operating modes of the camera module;

[0031] A control unit, used to control the camera module to operate in the determined operating mode;

[0032] Among them, the power consumed by the camera module in the first working mode is different from the power consumed in the second working mode.

[0033] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the aforementioned data processing method are implemented.

[0034] An embodiment of the present application provides an electronic device, including a camera module, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the aforementioned data processing method when executing the program.

[0035] The embodiment of the present application provides a data processing method, an electronic device, and a storage medium, wherein the method includes: obtaining a target parameter, wherein the target parameter is characterized as the usage scenario in which the camera module is located; determining the working mode that matches the target parameter in at least two working modes of the camera module; and controlling the camera module to work in the determined working mode; wherein the power consumed by the camera module in the first working mode is different from the power consumed in the second working mode. In the embodiment of the present application, low power consumption of the camera module can be achieved by only having a camera module that can work in different working modes, and low-power image or video acquisition can be achieved without adding an additional low-power camera module, and there is no need to increase the space occupied by the camera module in the electronic device, which is conducive to the development of the lightness and compactness of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0037] Figure 1 The data processing method of the present invention is shown in FIG. Figure 1 ;

[0038] Figure 2 The data processing method of the present invention is shown in FIG. Figure 2 ;

[0039] Figure 3 A schematic diagram of the composition of a camera module according to an embodiment of the present application;

[0040] Figure 4 Schematic diagram of the connection between the camera module and the recognition module in the electronic device according to the embodiment of the present application Figure 1 ;

[0041] Figure 5 Schematic diagram of the connection between the camera module and the recognition module in the electronic device according to the embodiment of the present application Figure 2 ;

[0042] Figure 6 The electronic device of the present invention is shown in FIG. Figure 1 ;

[0043] Figure 7 The electronic device of the present invention is shown in FIG. Figure 2 . DETAILED DESCRIPTION

[0044] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily. The steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions. In addition, although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that here.

[0045] The data processing method of the embodiment of the present application can be applied to electronic devices, and the electronic device can be any reasonable device with a camera module (for taking photos or videos). Such as mobile phones, tablet computers, all-in-one machines, desktop computers, and wearable devices such as smart watches and smart glasses. Of course, the data processing method of the embodiment of the present application can also be applied to household appliances with camera modules, such as cameras, video recorders, televisions, home theater machines, etc. Preferably, the data processing method in the embodiment of the present application is applied to mobile phones.

[0046] The embodiment of the present application provides a data processing method, which is applied to an electronic device. The electronic device has a camera module, which can be used to collect images or videos (i.e., take photos or shoot videos). In the embodiment of the present application, the camera module has at least two working modes, and the power consumed in different working modes is different. Which working mode to use depends on the usage scenario of the camera module. Compared with the solution in the related art that requires an additional low-power camera module, in the embodiment of the present application, only one camera module that can work in different working modes is required to achieve low power consumption of the camera module, and low-power image or video acquisition can be achieved without adding an additional low-power camera module. There is no need to increase the space occupied by the camera module in the electronic device, which is conducive to the development of the lightness and compactness of the electronic device.

[0047] like Figure 1 As shown, the data processing method includes:

[0048] S101: Obtaining a target parameter, where the target parameter represents a usage scenario of the camera module;

[0049] In this step, the target parameter can be any parameter characterized as the used scene in which the camera module is located, such as the environment in which the camera module or the electronic device including the camera module is located, such as a dark environment or a non-dark environment, such as a daytime environment. For example, the target parameter is a parameter characterized as a display state of the display screen of the electronic device, such as a parameter characterized as a black screen or a non-black screen (bright screen). The target parameter can also be a parameter calculated based on the parameter in which the camera module or the electronic device is located, or a parameter calculated based on the display state of the display screen, which can indicate the used scene or used environment of the camera module to a certain extent. For example, the target parameter calculated when the camera module is in a dark environment can be 1, and the target parameter calculated when the camera module is in a non-dark environment is 0. Read the calculated target parameter and parse it. The target parameter value of 1 can indicate that the camera module or the electronic device is in a dark environment, or in a display state where the display screen is a black screen, and the target parameter value of 0 indicates that the camera module or the electronic device is in a non-dark environment, or in a display state where the display screen is a bright screen. It is also possible on the contrary, without specific limitation.

[0050] S102: Determine an operating mode that matches the target parameter among at least two operating modes of the camera module;

[0051] In this step, considering that the camera module in the embodiment of the present application has two or more working modes, the power consumed in different working modes is different. When the camera module adopts which working mode to work can be determined according to the target parameters. Further, in the case of obtaining the target parameters, it is also necessary to obtain, specifically read a pre-set matching relationship, which records the working mode in which the camera module works when the target parameters are different values. Exemplarily, taking the camera module having a normal working mode and a low-power working mode (the power consumed by the camera module in the normal working mode is greater than the power consumed in the low-power working mode) as an example, the matching relationship can be expressed as: when the target parameter is characterized as the display state of the electronic device's display screen being a black screen, the camera module is in a low-power working mode; when the target parameter is characterized as the display state of the electronic device's display screen being a bright screen, the camera module is in a normal working mode. According to the record of the matching relationship, the working mode corresponding to the target parameter is found, that is, the working mode that matches the target parameter. Exemplarily, the operating mode corresponding to the target parameter characterized by the display state of the display screen of the electronic device being a black screen is the low power consumption operating mode of the camera module.

[0052] S103: Control the camera module to operate in the determined operating mode; wherein the power consumed by the camera module in the first operating mode is different from the power consumed in the second operating mode.

[0053] In this step, the camera module is controlled to work in the determined working mode, such as taking photos or taking videos. In one embodiment, the first working mode and the second working mode are different working modes, and the power consumed by the two is different. Exemplarily, the first working mode can be the aforementioned normal working mode, and the second working mode can be the aforementioned low-power working mode. On the contrary, the first working mode can be a low-power working mode, and the second working mode can be a normal working mode. No specific limitation is made.

[0054] In S101 to S103, only one camera module is needed. Among the at least two working modes of the camera module, the working mode required to be used can be determined according to the target parameters representing the usage scene in which the camera module is located, and the camera module can be controlled to work in the determined working mode. That is, in the embodiment of the present application, only one camera module that can work in different working modes is needed to achieve low power consumption of the camera module, and low power consumption image or video acquisition can be achieved without adding an additional low power camera module, and there is no need to increase the space occupied by the camera module in the electronic device, which is conducive to the development of the lightness and compactness of the electronic device, and can also make the electronic device more beautiful.

[0055] In an optional embodiment of the present application, the aforementioned method can also be as follows Figure 2 As shown:

[0056] S102 becomes S202: when the target parameter indicates that the camera module is in a usage scenario where the display screen is black, determining that the working mode of the camera module is the first working mode; when the target parameter indicates that the camera module is in a usage scenario where the display screen is bright, determining that the working mode of the camera module is the second working mode;

[0057] Correspondingly, S103 becomes S203: controlling the camera module to operate in the determined operating mode; wherein the power consumption of the camera module in the first operating mode is lower than the power consumption in the second operating mode.

[0058] In S202a to S203, the working mode of the camera module can be determined according to the usage scenario of the camera module represented by the target parameters, specifically according to the display state of the display screen (black screen or two screens). Among them, the power consumed by the working mode of the camera module determined when the target parameters represent that the camera module is in a usage scenario with a black display screen is lower than the working mode of the camera module determined when the target parameters represent that the camera module is in a usage scenario with a bright display screen. Exemplarily, the first working mode can be a low power consumption mode of the camera module, and the second working mode is a normal working mode of the camera module. Low power consumption of the camera module can be achieved by only having a camera module that can work in different working modes, which is conducive to the development of lightness and compactness of electronic equipment.

[0059] In an optional embodiment, if Figure 3 As shown, the camera module includes at least an image sensor and an amplifier.

[0060] Wherein, the image sensor is used to capture images; and the amplifier is used to amplify the signals of the captured images. The power consumption used by the image sensor when capturing images in the first working mode of the camera module is lower than the power consumption used by the image sensor when capturing images in the second working mode of the camera module. The amplification factor used by the amplifier in the first working mode of the camera module is smaller than the amplification factor used by the amplifier in the second working mode of the camera module. Here, the first working mode may be a low power consumption mode of the camera module, and the second working mode may be a normal working mode of the camera module. In this optional embodiment, different working modes of the camera module may be realized by controlling the power consumption used by the image sensor when capturing images and / or the amplification factor of the amplifier. Wherein, the low power consumption of the camera module may be realized by controlling the power consumption used by the image sensor when capturing images to be low and / or the amplification factor of the amplifier to be small, which is easy to realize in engineering and has high feasibility.

[0061] In an optional embodiment, the image sensor includes a plurality of photosensitive arrays for collecting ambient light signals and converting the collected ambient light signals into images; the number of photosensitive arrays used when collecting ambient light in the first working mode of the camera module is less than the number of photosensitive arrays used when collecting ambient light in the second working mode of the camera module; and / or, the acquisition frequency used by the image sensor when collecting ambient light in the first working mode of the camera module is less than the acquisition frequency used when collecting ambient light in the second working mode of the camera module. In this optional embodiment, different working modes of the camera module can be achieved by controlling the number of photosensitive arrays and / or the acquisition frequency of the image sensor. Among them, the low power consumption mode of the camera module can be achieved by controlling the number of photosensitive arrays to be small or the acquisition frequency of the image sensor to be small, which is easy to implement in engineering and has high feasibility.

[0062] In an optional embodiment, the camera module further includes a converter for performing analog-to-digital conversion on the captured image; the conversion accuracy used by the converter in the first working mode of the camera module is less than the conversion accuracy used by the converter in the second working mode of the camera module. In this optional embodiment, different working modes of the camera module can be achieved by controlling the conversion accuracy of the converter. Among them, the low power consumption mode of the camera module can be achieved by controlling the conversion accuracy of the converter, which reduces the hardware investment compared to the technical solution in the related art that requires an additional low-power camera module.

[0063] Among the above-mentioned optional solutions, different working modes of the camera module are realized by controlling the size and / or accuracy of relevant parameters of several major components of the camera module, such as the image sensor, amplifier, and converter. This is highly feasible and easy to implement in engineering.

[0064] In this optional embodiment, for the aforementioned electronic device including a camera module, it also includes a recognition module. In general, the camera module is used to collect images; in addition, in the first working mode, the camera module is also used to recognize the collected images; in the second working mode, the camera module sends the collected images to the recognition module; wherein, the recognition module is in a dormant or closed state when the camera module is in the first working mode; the recognition module is in a working state of at least recognizing the collected images in the second working mode of the camera module; the power consumed by the camera module in recognizing the collected images in the first working mode is less than the power consumed by the recognition module in recognizing the collected images in the second working mode of the camera module. In this optional embodiment, regardless of the first working mode or the second working mode, the camera module is used to collect images, but the work of recognizing the collected images, if the camera module is in the first working mode, the camera module recognizes the collected images. If the camera module is in the second working mode, the recognition module recognizes the collected images. That is, it does not affect the normal recognition of the collected images, and realizes different working modes of the camera module. Furthermore, the solution in which the recognition module is in a dormant or closed state when the camera module is in the first working mode also saves power of the electronic device.

[0065] The following is combined with Figure 4 and Figure 5 And specific embodiments are further described in detail for this application.

[0066] In this application scenario, the electronic device to which the data processing method is applied is taken as an example, a mobile phone. Figure 4 As shown, the mobile phone at least includes a camera module and an application processor (AP Processor). Figure 5 As shown, the camera module includes: an image sensor (Sensor), an amplifier (Amp), a converter (AD converter, analog to digital converter), and an image processor (ISP). There is an interface module (IO Block) between the camera module and the application processor. The interface module includes an I2C (Universal Serial Bus) interface, a serial peripheral interface (SPI, Serial Peripheral Interface), a mobile industry processor interface (MIPI, Mobile Industry Processor Interface), and a camera serial interface (CSI, Camera Serial Interface). The details are as follows. In this application scenario, APProcessor can be regarded as the aforementioned recognition module, which is at least used to recognize the images captured by the camera module. For the specific functions of the above parts, please refer to the subsequent related instructions.

[0067] The camera module and the specific sensor are used to collect images, and the AMP is used to amplify the images collected by the sensor with a certain magnification. The AD converter converts the analog data of the amplified image to digital data to obtain the converted image.

[0068] Among them, the acquisition frequency used by the sensor when collecting images, such as face images, is controllable. Take the camera module with two working modes: normal working mode and low power working mode as an example. In the normal working mode, the sensor collects face images at the maximum acquisition frequency, such as collecting 50 face images per second; in the low power working mode, the sensor collects face images at a frequency less than the maximum acquisition frequency, such as half of the maximum acquisition frequency, that is, 25 face images per second. In this way, different working modes can be realized by using one camera module, and the low power working mode saves the power consumption of the camera module.

[0069] Figure 5The sensor shown includes M rows (Row) * N columns (Column) of photosensitive devices. Among the M*N photosensitive devices, at least two adjacent photosensitive devices can be regarded as a photosensitive array. For example, the photosensitive devices in each row or column are regarded as a photosensitive array; or the photosensitive devices in each R rows and R columns are regarded as a photosensitive array. Among them, M, N and R are positive integers, all greater than 1. In the embodiment of the present application, the photosensitive array can collect ambient light signals and convert the collected ambient light signals into image signals. The number of photosensitive arrays used when collecting ambient light signals is controllable. Taking the camera module having two working modes: normal working mode and low power consumption working mode as an example, if the size of a photosensitive array is the size of 1 row and 1 column of photosensitive devices, all photosensitive devices (M*N photosensitive devices) can be controlled to collect ambient light signals in the normal working mode; in the low power consumption working mode, some of the M*N photosensitive devices, such as the photosensitive devices in the first 10 rows and N columns, can be controlled to collect ambient light signals. That is, the number of photosensitive arrays used to collect ambient light in the low-power working mode of the camera module is less than the number of photosensitive arrays used to collect ambient light in the normal working mode of the camera module. In addition, in the low-power working mode, the photosensitive array can be controlled to collect only the brightness information in the ambient light signal, and not the color information. In the normal working mode, the photosensitive array can be controlled to collect both the brightness information and the color information in the ambient light signal. Among them, controlling the number of photosensitive arrays is equivalent to controlling the photosensitivity ratio of the photosensitive array, and collecting ambient light signals according to different photosensitivity ratios can realize different working modes of the camera module. Different working modes of the camera module can also be realized by controlling the number of photosensitive arrays and / or the acquisition frequency of the Sensor. Based on the aforementioned description that the number of photosensitive arrays is controllable and the acquisition frequency of the Sensor is controllable, it can be seen that the power consumption used by the Sensor when collecting images in the low-power working mode of the camera module can be lower than the power consumption used by the Sensor when collecting images in the normal working mode of the camera module. That is, the low-power working mode can save the power consumption of the camera module.

[0070] In this application scenario, the amplification factor of the AMP can be designed to be controllable. For example, the camera module has two working modes: normal working mode and low power working mode. In the normal working mode, the AMP can be controlled to amplify the signal at the maximum amplification factor; in the low power working mode, the AMP can be controlled to amplify the signal at other multiples less than the maximum amplification factor, such as amplifying the signal at half the maximum amplification factor. By controlling the amplification factor of the AMP, different working modes of the camera module are realized, and the low power working mode of the camera module saves the power consumption of the camera module.

[0071] In this application scenario, the conversion accuracy of the AD converter can be designed to be controllable. For example, the camera module has two working modes: normal working mode and low power working mode. In the normal working mode, the AMP can be controlled to perform analog-to-digital conversion of the signal with the minimum conversion accuracy; in the low power working mode, the AD converter can be controlled to perform analog-to-digital conversion of the signal with a value greater than the minimum conversion accuracy, such as the maximum conversion accuracy. Among them, the minimum conversion accuracy can be 0.001, the maximum conversion accuracy is 0.01, and can also be other reasonable values, which are not specifically limited. Different working modes of the camera module are realized by controlling the conversion accuracy of the AMP, and the low power working mode of the camera module achieves the power saving of the camera module.

[0072] Which of the two working modes the camera module adopts is controlled by the AP Processor or informed by the AP Processor. For example, if the AP Processor learns that the camera module should work in a low-power working mode at this time, the camera module is controlled to work in a low-power working mode, and specifically controls the photosensitivity ratio, the conversion accuracy of the converter, and the amplification factor of the amplifier to the values ​​when the camera module is in the low-power working mode. Or if the AP Processor informs that the camera module should work in a low-power working mode at this time, the camera module works in a low-power working mode, and further maintains the photosensitivity ratio, the conversion accuracy of the converter, and the amplification factor of the amplifier at the values ​​of the low-power working mode. Among them, after informing the camera module that it should be in a low-power working mode, the AP Processor can switch from the working state to the off or sleep state. The low power consumption of the camera module and the off or sleep state of the AP Processor can save power on the mobile phone.

[0073] Take the camera module as an example, which includes normal working mode and low power working mode.

[0074] Application scenario: The user sets the following information: use the low-power working mode of the camera module when the display screen is black, and use the normal working mode of the camera module when the display screen is bright.

[0075] The AP Processor parses the user setting information and detects the display status of the display. If the display status is bright, the I2C interface ( Figure 5The Control I2C interface in the image processing module controls or informs the camera module that it should be in normal working mode at this time. If the display state is detected as a black screen, the I2C interface is used to control or inform the camera module that it should be in low-power working mode at this time. After informing the camera module that it should be in low-power working mode, the AP Processor can switch from working state to off or dormant state. The low power consumption of the camera module and the off or dormant state of the AP Processor can save the power of the mobile phone.

[0076] When a mobile phone user wants to use a shared bicycle, he turns on the display of his mobile phone. When the AP Processor detects that the display is on, the AP Processor controls the camera module to work in normal mode, and the AP Processor is in working mode. The camera module, specifically the Sensor, uses the maximum acquisition frequency to collect the QR code image of the shared bicycle, controls all sensor arrays to collect ambient light signals, and converts the ambient light signals into image signals. The AMP uses the maximum magnification to amplify the image signal. The AD converter uses the minimum conversion accuracy to convert the image signal from analog to digital. The ISP encodes the QR code image and sends the encoded image to the AP Processor using the MIPI or CSI interface. The encoding operation mainly includes: performing lens correction, bad pixel correction, color interpolation and other operations on the image, so that the AP Processor can decode a complete and clear QR code image later. The AP Processor decodes the QR code image to obtain a clear QR code image, and identifies what kind of image the decoded QR code image is. If the QR code image is recognized as a shared bicycle, the AP Processor can open the shared bicycle application and enter the interface for unlocking the shared bicycle so that the mobile phone user can perform the corresponding operation to successfully ride.

[0077] Mobile phone users do not need to turn on the display screen of their mobile phones to use shared bicycles. When the display screen is black, they can enter the shared bicycle application. For details, please refer to the following description: When the AP Processor detects that the display screen is black, the AP Processor informs the camera module that it should be in low-power working mode at this time, and the AP Processor switches from working state to sleep or off state. The Sensor uses 1 / 2 of the maximum acquisition frequency to collect the QR code image of the shared bicycle. The Sensor uses 1 / 2 of the sensor array to collect ambient light and converts the ambient light signal into an image signal. The AMP uses the minimum magnification to amplify the image signal. The AD converter uses the maximum conversion accuracy to convert the image signal from analog signal to digital. The ISP directly recognizes the QR code image and identifies what kind of image it is. If it is recognized as a QR code image of a shared bicycle, the ISP generates an event (Glance event trigger) for waking up the AP Processor and sends it to the AP Processor through the I2C or SPI interface to wake up the AP Processor. The AP Processor is awakened and notifies the ISP that it has been awakened through a wake-up feedback event (Glance action trigger), and can send the ISP's recognition results to the AP Processor. The AP Processor sends the recognition results to the AP Processor through the I2C or SPI interface. The AP Processor can light up the display, start the shared bicycle application, and enter the interface for unlocking the shared bicycle, so that the mobile phone user can perform the corresponding operations to successfully ride.

[0078] In the above scheme, ISP can use a simple image recognition algorithm to realize the recognition of QR code images. Compared with the power consumption of APProcessor, ISP is only turned on when the camera module needs to work and consumes less power when working. Based on this, it can be considered that the power consumed by the camera module in the low-power working mode to recognize and collect images is less than the power consumed by the AP Processor in the second working mode of the camera module.

[0079] In the above scheme, the application scenario is explained by collecting the QR code image of the shared bicycle to enter the shared bicycle application. In addition, the embodiment of the present application can also collect and save the face image when the camera module is in different working modes (i.e., the photo function), or collect the face image and enter the application that needs to be unlocked by the face image, thereby realizing the photo function or the normal use of the application. Among them, the low-power working mode of the camera module can be used to realize the photo function of the camera module without lighting the display screen, which is more convenient for users to use and can effectively improve the user experience. For the specific description of the solutions under these application scenarios, please refer to the relevant description of the application scenarios of the aforementioned shared bicycles, and the repetitions will not be repeated.

[0080] In the above scheme, the camera module includes two working modes: normal working mode and low power working mode. In addition, the camera module may also include three or more working modes, and three are used as examples. Such as normal working mode, low power working mode and ultra-low power working mode. It can be understood that in these three working modes, the sampling frequency of the sensor, the number of photosensitive arrays and the amplification factor of the amplifier are gradually reduced in the order of normal working mode, low power working mode and ultra-low power working mode. Exemplarily, in the normal working mode, the sampling frequency of the sensor, the number of photosensitive arrays and the amplification factor of the amplifier are all maximum values; in the low power working mode, the sampling frequency of the sensor, the number of photosensitive arrays and the amplification factor of the amplifier are all half of the maximum value; in the ultra-low power working mode, the sampling frequency of the sensor, the number of photosensitive arrays and the amplification factor of the amplifier are all 1 / 3 of the maximum value. The conversion accuracy of the AD converter is gradually increased. Exemplarily, in normal working mode, the conversion accuracy of the AD converter is 0.001; in low power working mode, the conversion accuracy of the AD converter is 0.01; in ultra-low power working mode, the conversion accuracy of the AD converter is 0.1. It can be understood that, unlike the normal working mode which requires the AP Processor to perform image recognition, the work of image recognition in low power working mode and ultra-low power working mode can be directly performed by the ISP, and the AP Processor is in a power-saving state of being turned off or dormant. The workflow of the mobile phone when the camera module includes three working modes can refer to the workflow of the mobile phone in the aforementioned two working modes, and the repetitions will not be repeated. Among the three working modes, the low power working mode and the ultra-low power working mode can achieve different degrees of low power consumption. For example, the power consumption of the camera module in the ultra-low power working mode is lower than that in the low power working mode.

[0081] In summary, different working modes of the camera module are realized by controlling the size of the relevant parameters of the photosensitive array, converter, and amplifier in the same camera module and the functional control of the ISP. Among them, the low-power working mode of the camera module not only allows the mobile phone to be used normally, but also effectively reduces the consumption of the camera module. Utilizing the low-power working mode of the camera module in the embodiment of the present application, it is possible to enter the shared bicycle application without turning on the screen to collect the QR code image, saving battery power. In the scheme of entering the shared bicycle application without turning on the screen to collect the QR code image, the AP Processor can be in a dormant or off state, which also saves the battery power of the mobile phone.

[0082] In the above scheme, only one camera module that can work in different working modes is required to achieve low power consumption of the camera module. Low power consumption image or video acquisition can be achieved without adding an additional low power camera module. There is no need to increase the space occupied by the camera module in the electronic device, which is conducive to the development of the lightness and compactness of the electronic device, and can also make the electronic device more beautiful.

[0083] The present application embodiment provides an electronic device, such as Figure 6 As shown, it includes: an obtaining unit 501, a determining unit 502, and a control unit 503; wherein,

[0084] An obtaining unit 501 is used to obtain a target parameter, where the target parameter represents a usage scene of the camera module;

[0085] A determination unit 502, configured to determine an operating mode that matches the target parameters among at least two operating modes of the camera module;

[0086] A control unit 503, used to control the camera module to work in the determined working mode;

[0087] Among them, the power consumed by the camera module in the first working mode is different from the power consumed in the second working mode.

[0088] In an optional solution, the determining unit 502 is further configured to:

[0089] When the camera module is in a usage scenario where the display screen is black, determining that the working mode of the camera module is the first working mode;

[0090] When the camera module is in a usage scenario where the display screen is bright, determining that the working mode of the camera module is the second working mode;

[0091] Among them, the power consumption of the camera module in the first working mode is lower than the power consumption in the second working mode.

[0092] In an optional solution, the camera module includes an image sensor, and the image sensor is used to collect images;

[0093] The power consumption used by the image sensor when capturing images in the first working mode of the camera module is lower than the power consumption used by the image sensor when capturing images in the second working mode of the camera module.

[0094] In an optional solution, the image sensor includes a plurality of photosensitive arrays for collecting ambient light signals and converting the collected ambient light signals into images;

[0095] The number of photosensitive arrays used when collecting ambient light in the first working mode of the camera module is less than the number of photosensitive arrays used when collecting ambient light in the second working mode of the camera module;

[0096] and / or,

[0097] The acquisition frequency adopted by the image sensor when collecting ambient light in the first working mode of the camera module is lower than the acquisition frequency adopted when collecting ambient light in the second working mode of the camera module.

[0098] In an optional solution, the camera module further includes an amplifier for amplifying the signal of the captured image;

[0099] The amplification factor of the amplifier used in the first working mode of the camera module is smaller than the amplification factor of the amplifier used in the second working mode of the camera module.

[0100] In an optional solution, the camera module further includes a converter for performing analog-to-digital conversion on the captured image;

[0101] The conversion accuracy used by the converter in the first working mode of the camera module is lower than the conversion accuracy used by the converter in the second working mode of the camera module.

[0102] In an optional solution, the camera module is used to capture images;

[0103] In the first working mode, the camera module is also used to identify the collected image;

[0104] In the second working mode, the camera module sends the collected image to the recognition module;

[0105] Wherein, the recognition module is in a dormant or closed state when the camera module is in the first working mode; the recognition module is in a working state of at least recognizing the collected image when the camera module is in the second working mode;

[0106] The power consumed by the camera module in identifying and acquiring images in the first working mode is less than the power consumed by the recognition module in identifying and acquiring images in the second working mode of the camera module.

[0107] It can be understood that the obtaining unit 501, the determining unit 502, and the control unit 503 in the electronic device can all be implemented by a central processing unit (CPU), a digital signal processor (DSP), a microcontroller unit (MCU), or a programmable gate array (FPGA) in actual applications.

[0108] It should be noted that the electronic device of the embodiment of the present application solves the problem based on a principle similar to that of the aforementioned data processing method. Therefore, the implementation process and implementation principle of the electronic device can refer to the description of the implementation process and implementation principle of the aforementioned method, and the repeated parts will not be repeated.

[0109] The present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the program is at least used to execute when executed by a processor Figures 1 to 5 The steps of any of the methods shown. The computer readable storage medium may be a memory. The memory may be Figure 7 The memory 62 is shown.

[0110] Figure 7 Schematic diagram of the hardware structure of the electronic device of the embodiment of the present application, such as Figure 7 As shown, it includes: a communication component 63 for data transmission, at least one processor 61 and a memory 62 for storing a computer program that can be run on the processor 61, and a camera module 60. The various components in the terminal are coupled together through a bus system 64. It can be understood that the bus system 64 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 64 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 7 Various buses are labeled as bus system 64.

[0111] Wherein, when the processor 61 executes the computer program, at least Figures 1 to 5 Any of the steps of the method shown.

[0112] It can be understood that the memory 62 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 62 described in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable types of memory.

[0113] The method disclosed in the above embodiment of the present application can be applied to the processor 61, or implemented by the processor 61. The processor 61 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 61 or the instruction in the form of software. The above processor 61 can be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 61 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 62, and the processor 61 reads the information in the memory 62 and completes the steps of the above method in combination with its hardware.

[0114] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0115] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0116] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0117] A person skilled in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, etc. Various media that can store program codes.

[0118] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0119] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0120] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0121] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0122] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data processing method, comprising: Obtaining target parameters, where the target parameters represent a usage scenario of the camera module; The target parameter is a parameter of the display state of the display screen of the electronic device where the camera module is located; Determining an operating mode that matches the target parameters among at least two operating modes of the camera module; Controlling the camera module to operate in the determined operating mode; The power consumed by the camera module in the first operating mode is different from the power consumed in the second operating mode; The camera module is in a first working mode, and the application processor is in a dormant state, wherein the application processor is awakened based on a captured image captured by the camera module in the first working mode; The camera module is in the second working mode, and the processor is in a non-sleep state.

2. The method according to claim 1, wherein when the camera module is in a usage scenario where the display screen is black, determining that the operating mode of the camera module is the first operating mode; When the camera module is in a usage scenario where the display screen is bright, determining that the operating mode of the camera module is the second operating mode; in, The power consumption of the camera module in the first working mode is lower than the power consumption in the second working mode.

3. The method according to claim 2, wherein the camera module comprises an image sensor, and the image sensor is used to capture images; The power consumption used by the image sensor when capturing images in the first working mode of the camera module is lower than the power consumption used by the image sensor when capturing images in the second working mode of the camera module.

4. The method according to claim 3, wherein the image sensor comprises a plurality of photosensitive arrays for collecting ambient light signals and converting the collected ambient light signals into images; The number of photosensitive arrays used when collecting ambient light in the first operating mode of the camera module is less than the number of photosensitive arrays used when collecting ambient light in the second operating mode of the camera module; and / or, The acquisition frequency adopted by the image sensor when collecting ambient light in the first working mode of the camera module is lower than the acquisition frequency adopted when collecting ambient light in the second working mode of the camera module.

5. The method according to claim 3 or 4, wherein the camera module further comprises an amplifier for amplifying the signal of the captured image; The amplification factor of the amplifier used in the first working mode of the camera module is smaller than the amplification factor used in the second working mode of the camera module.

6. The method according to claim 3 or 4, wherein the camera module further comprises a converter for performing analog-to-digital conversion on the captured image; The conversion accuracy used by the converter in the first working mode of the camera module is lower than the conversion accuracy used by the converter in the second working mode of the camera module.

7. The method according to claim 1 or 2, wherein the camera module is used to capture images; In the first working mode, the camera module is also used to identify the collected image; In the second working mode, the camera module sends the captured image to the recognition module; in, The recognition module is in a dormant or closed state when the camera module is in the first working mode; the recognition module is in a working state of at least recognizing the captured image when the camera module is in the second working mode; The power consumed by the camera module in identifying and collecting images in the first working mode is less than the power consumed by the recognition module in identifying and collecting images in the second working mode of the camera module.

8. An electronic device comprising: An obtaining unit, configured to obtain a target parameter, wherein the target parameter represents a usage scenario of the camera module; The target parameter is a parameter of the display state of the display screen of the electronic device where the camera module is located; a determining unit, configured to determine an operating mode that matches a target parameter among at least two operating modes of the camera module; the camera module is in a first operating mode and the application processor is in a sleep state, wherein the application processor is awakened based on a captured image captured by the camera module in the first operating mode; and the camera module is in a second operating mode and the application processor is in a non-sleep state; A control unit, used to control the camera module to operate in the determined operating mode; The power consumed by the camera module in the first working mode is different from the power consumed in the second working mode.

9. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

10. An electronic device comprising a camera module, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the methods of claims 1 to 7 when executing the program.