Laser frame rate adjusting method and electronic equipment

By dynamically adjusting the laser frame rate according to the focus method, the problem of high power consumption of mobile terminals during non-laser focusing is solved, and the effect of saving power consumption and extending battery life is achieved.

CN119485012APending Publication Date: 2025-02-18HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311005149.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-09
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

During the optimization of shooting function of mobile terminals, power consumption and battery life problems have become urgent problems to be solved, especially when using non-laser focusing methods, the laser sensor maintains the standard laser frame rate, resulting in unnecessary waste of power consumption.

Method used

A laser frame rate adjustment method is provided, and the laser frame rate is reduced when laser focus is not used to save power consumption according to the switching of the focus method. The method includes calling the laser sensor to perform different laser frame rates when the camera application is started, depending on the currently used focus mode (laser focus or non-laser focus).

Benefits of technology

By reducing the laser frame rate, power consumption is saved during non-laser focusing, the battery life of electronic devices is extended, while ensuring that the focus effect and efficiency remain unchanged.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119485012A_ABST
    Figure CN119485012A_ABST
Patent Text Reader

Abstract

The invention provides a laser frame rate adjusting method and electronic equipment, and relates to the technical field of terminals. According to the method and the device, the laser frame rate can be reduced according to the switching of the focusing modes when other focusing modes of laser focusing are not used, so that the power consumption is reduced. The method comprises the following steps: responding to user operation, and starting a camera application by the electronic equipment; and when the camera adopts the first focusing mode, the electronic equipment calls the laser sensor to execute the first laser frame rate. And when the camera adopts the second focusing mode, the electronic equipment calls the laser sensor to execute the second laser frame rate. Wherein the first laser frame rate is greater than the second laser frame rate, the first focusing mode is laser focusing, and the second focusing mode is non-laser focusing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to a laser frame rate adjustment method and electronic device. Background Art

[0002] With the development of terminal technology, in order to meet the shooting needs of users, various mobile terminals are currently equipped with shooting functions. In addition, in order to improve the shooting effect, mobile terminals are also equipped with multiple focusing methods such as phase focus, contrast focus, laser focus, etc., to enhance the user's shooting experience in various shooting scenes.

[0003] However, with the optimization of shooting functions, the power consumption and battery life of mobile terminals have also become a problem that needs to be solved urgently. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a laser frame rate adjustment method and electronic device. The technical solution provided by the present application can reduce the laser frame rate to save power consumption when other focusing modes of laser focusing are not used according to the switching of focusing modes.

[0005] In order to achieve the above technical objectives, this application provides the following technical solutions:

[0006] In a first aspect, a laser frame rate adjustment method is provided, which is applied to an electronic device. The method includes: in response to a user operation, the electronic device starts a camera application. When the camera adopts a first focusing mode, the laser sensor is called to execute a first laser frame rate. When the camera adopts a second focusing mode, the laser sensor is called to execute a second laser frame rate. The first laser frame rate is greater than the second laser frame rate, the first focusing mode is laser focusing, and the second focusing mode is non-laser focusing.

[0007] In some examples, non-laser focusing includes phase focusing and / or contrast focusing.

[0008] In this way, the electronic device automatically switches the laser frame rate according to the change of the focusing mode. In the process of non-laser focusing, the laser frame rate can be reduced to save unnecessary power consumption and extend the battery life of the electronic device.

[0009] According to the first aspect, when the laser sensor is called to execute the first laser frame rate, a single ranging cycle of the laser sensor includes a first data processing duration and a first sleep duration; when the laser sensor is called to execute the second laser frame rate, a single ranging cycle of the laser sensor includes a second data processing duration and a second sleep duration; wherein the first data processing duration is equal to the second data processing duration, and the first sleep duration is less than the second sleep duration.

[0010] According to the first aspect, or any implementation of the first aspect above, the first laser frame rate is N times the second laser frame rate, where N is a positive integer greater than 1.

[0011] For example, the laser sensor has a single distance measurement cycle of 33 milliseconds. If it is continuously transmitted, it will measure the distance 30 times in 1 second. Taking the interface with the laser frame rate reduced by half as an example, the distance is measured 15 times in 1 second (that is, N is 2), and the single distance measurement cycle is 66 milliseconds.

[0012] In this way, in a single distance measurement process, the distance measurement and data processing time of the standard laser frame rate and the reduced laser frame rate are the same, thereby ensuring the focusing effect and focusing efficiency. In addition, when the laser frame rate is reduced, power consumption is saved by increasing the low-power sleep time.

[0013] According to the first aspect, or any implementation of the first aspect above, after starting the camera application in response to a user operation, the method further includes: determining a focus mode based on at least one of shooting scene information, image information, and focus mode information.

[0014] According to the first aspect, or any implementation of the first aspect above, the shooting scene information includes one or more of the ambient light brightness, still life shooting information, and dynamic shooting information; the image information includes one or more of the pixel value, blurriness, and sharpness of the image; the focus mode information includes the focus mode information pre-configured by the electronic device and / or the laser measurement data obtained by the laser sensor.

[0015] In some examples, the electronic device determines the focus mode to be adopted through the AF scheduling algorithm. Optionally, the priority order of different focus modes can be preset in the electronic device, such as phase focus > laser focus > contrast focus. In the process of determining the focus mode, the electronic device can combine the priority order and adopt a focus mode that better meets the current needs.

[0016] For example, in some dark still life shooting scenes and texture pattern shooting scenes, phase focus and contrast focus cannot achieve a good focusing effect. Therefore, the electronic device determines that the focusing method used by the camera application is laser focus through the AF scheduling algorithm.

[0017] For example, in some outdoor shooting scenes or bright light shooting scenes, if the camera supports the QPD autofocus function, the electronic device uses the AF scheduling algorithm to determine that the focus method used by the camera application is phase focus with a higher focus speed. If the camera does not support the QPD autofocus function, the electronic device uses the AF scheduling algorithm to determine that the focus method used by the camera application is contrast focus.

[0018] In this way, the electronic device determines a focusing method that better meets the current shooting needs by combining multiple information.

[0019] In a second aspect, an electronic device is provided. The electronic device includes: a processor, a memory and a display screen, the memory and the display screen are coupled to the processor, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor reads the computer instructions from the memory, the electronic device executes: in response to user operation, the electronic device starts a camera application. When the camera adopts a first focusing mode, the laser sensor is called to execute a first laser frame rate. When the camera adopts a second focusing mode, the laser sensor is called to execute a second laser frame rate. Among them, the first laser frame rate is greater than the second laser frame rate, the first focusing mode is laser focusing, and the second focusing mode is non-laser focusing.

[0020] According to the second aspect, when the laser sensor is called to execute the first laser frame rate, a single ranging cycle of the laser sensor includes a first data processing duration and a first sleep duration; when the laser sensor is called to execute the second laser frame rate, a single ranging cycle of the laser sensor includes a second data processing duration and a second sleep duration; wherein the first data processing duration is equal to the second data processing duration, and the first sleep duration is less than the second sleep duration.

[0021] According to the second aspect, or any implementation of the second aspect above, the first laser frame rate is N times the second laser frame rate, where N is a positive integer greater than 1.

[0022] According to the second aspect, or any implementation of the second aspect above, when the processor reads computer instructions from the memory, it also enables the electronic device to execute: determine the focus mode based on at least one of the shooting scene information, image information and focus mode information.

[0023] According to the second aspect, or any implementation of the second aspect above, the shooting scene information includes one or more of the ambient light brightness, still life shooting information, and dynamic shooting information; the image information includes one or more of the pixel value, blurriness, and sharpness of the image; the focus mode information includes the focus mode information pre-configured by the electronic device and / or the laser measurement data obtained by the laser sensor.

[0024] According to the second aspect, or any implementation of the second aspect, the non-laser focusing includes phase focusing and / or contrast focusing.

[0025] The technical effects corresponding to the second aspect and any implementation method of the second aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here.

[0026] In a third aspect, an electronic device is provided, which has the function of implementing the laser frame rate adjustment method described in the first aspect and any possible implementation thereof. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0027] The technical effects corresponding to the third aspect and any one of the implementation methods of the third aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.

[0028] In a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as an instruction or code), and when the computer program is executed by an electronic device, the electronic device executes the method of the first aspect or any one of the implementations of the first aspect.

[0029] The technical effects corresponding to the fourth aspect and any one of the implementation methods of the fourth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.

[0030] According to a fifth aspect, a computer program product is provided. When the computer program product is run on an electronic device, the electronic device executes the method according to the first aspect or any one of the implementations of the first aspect.

[0031] The technical effects corresponding to the fifth aspect and any one of the implementation methods of the fifth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.

[0032] According to a sixth aspect, a circuit system is provided, the circuit system comprising a processing circuit, wherein the processing circuit is configured to execute the method according to the first aspect or any one of the embodiments of the first aspect.

[0033] The technical effects corresponding to the sixth aspect and any one of the implementation methods of the sixth aspect can be found in the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here.

[0034] In the seventh aspect, a chip system is provided, comprising at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor, and when the at least one processor executes the instructions, the at least one processor executes the method of the first aspect or any one of the embodiments of the first aspect.

[0035] The technical effects corresponding to the seventh aspect and any one of the implementation methods of the seventh aspect can be referred to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0037] Figure 2 A schematic diagram of a software structure block diagram of an electronic device provided in an embodiment of the present application;

[0038] Figure 3 Schematic diagram of the laser frame rate adjustment method provided in the embodiment of the present application Figure 1 ;

[0039] Figure 4 A schematic diagram of a focusing method provided in an embodiment of the present application;

[0040] Figure 5 A schematic diagram of a laser frame rate automatic adjustment scenario provided in an embodiment of the present application;

[0041] Figure 6 A schematic diagram of the timing changes of the laser sensor provided in the embodiment of the present application;

[0042] Figure 7 Schematic diagram of the laser frame rate adjustment method provided in the embodiment of the present application Figure 2 ;

[0043] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The technical solutions in the embodiments of the present application are described below in conjunction with the accompanying drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to include expressions such as "one or more", unless there is a clear indication to the contrary in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two).

[0045] References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise specified. "First" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.

[0046] In the embodiments of the present application, the words "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0047] In some embodiments, various electronic devices are currently equipped with a shooting function. In order to improve the focusing effect during the shooting process, the electronic devices are also equipped with a variety of focusing methods such as phase focus, contrast focus, laser focus, etc.

[0048] In some embodiments, the electronic device can switch the focus mode according to the current shooting scene, the collected image information, etc. Generally, the electronic device will first perform a coarse adjustment through the phase detection focus method, and then perform a fine scan using the contrast focus method. When the electronic device enters the contrast focus fine scanning process, the lens of the electronic device often passes the quasi-focus position when searching for the quasi-focus position from a longer distance, and then moves back to the quasi-focus position, so the presented picture changes from blurry to clear, and then from clear to blurry again, until the picture is stretched to a clear state, completing the focusing process.

[0049] In some examples, in order to improve the focusing speed, some terminals also preset a confidence threshold, a first focusing mode, and a second focusing mode. Among them, the confidence threshold is positively correlated with the outline clarity and ambient brightness of the captured image. In this way, during the focusing process, the electronic device can directly select the first focusing mode or the second focusing mode according to whether the current confidence value is greater than the confidence threshold, thereby avoiding the focus adjustment process.

[0050] In other examples, in order to improve the focusing speed in dark environments, some terminal devices can automatically increase the current frame rate to the set frame rate when determining that the current camera frame rate is lower than the set frame rate. This enables fast focusing in dark environments and improves user experience.

[0051] In the above example, although the focus mode is switched and the focus speed is improved, the laser sensor is a distance measuring device. When the electronic device is not switched to laser focus, it still maintains the standard laser frame rate to perform distance measurement. Therefore, when the electronic device uses other focus modes other than laser focus, unnecessary power consumption is wasted, affecting the battery life of the electronic device.

[0052] The laser frame rate is used to indicate the number of times the laser sensor measures the distance per second. For example, if the laser frame rate is 30 Hz, it means that the laser sensor measures the distance 30 times per second.

[0053] Based on this, an embodiment of the present application provides a laser frame rate adjustment method, which can reduce the laser frame rate according to the switching of the focus mode when other focusing modes of laser focus are not used to save power consumption.

[0054] Exemplarily, the laser frame rate adjustment method provided in the embodiment of the present application can be applied to the electronic device 100. Optionally, the electronic device 100 can be, for example, a mobile phone, a camera, a tablet computer, a laptop computer, a smart screen, a wearable device, a vehicle terminal, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), an artificial intelligence (AI) device, or other terminal device with a shooting function. The operating system installed in the electronic device 100 includes but is not limited to Or other operating systems. This application does not limit the specific type of the electronic device 100 or the installed operating system.

[0055] Figure 1 A schematic structural diagram of an electronic device 100 is shown.

[0056] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0057] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0058] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0059] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0060] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0061] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0062] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor, charger, flash, camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor through the I2C interface, so that the processor 110 communicates with the touch sensor through the I2C bus interface to realize the touch function of the electronic device 100.

[0063] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0064] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0065] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0066] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0067] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0068] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0069] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0070] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0071] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device, or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0072] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0073] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0074] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0075] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), such as an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-led, Micro-led, Micro-oled, quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0076] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0077] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0078] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.

[0079] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110. The electronic device 100 can use the audio module 170, such as music playing, recording, etc. The audio module 170 can include a speaker, a receiver, a microphone, a headphone interface, and an application processor to implement audio functions.

[0080] The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0081] The distance sensor is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor to measure the distance to achieve fast focusing.

[0082] In some examples, the distance sensor is, for example, a laser sensor. When the electronic device 100 determines that the focus mode is laser focus, it calls the laser sensor to measure the distance at a standard laser frame rate. When the electronic device 100 determines that the focus mode is non-laser focus, it calls the laser sensor to measure the distance at a reduced laser frame rate.

[0083] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0084] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.

[0085] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0086] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting or removing the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.

[0087] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

[0088] Figure 2 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0089] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the hardware abstraction layer, and the kernel layer.

[0090] The application layer can include a series of application packages. Figure 2 As shown, the application package may include applications such as camera, contacts, memo, calendar, music, gallery, map, call, video, etc.

[0091] In some examples, an AF scheduling algorithm is pre-installed in the camera application, through which the camera application can determine a focusing method suitable for the current shooting scene.

[0092] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0093] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0094] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0095] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0096] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0097] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0098] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0099] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0100] The hardware abstraction layer (HAL) is an interface layer between the operating system kernel and the hardware circuit. Its purpose is to abstract the hardware. The HAL layer hides the hardware interface details of a specific platform and provides a virtual hardware platform for the operating system, making it hardware-independent, so that it can be ported on multiple platforms.

[0101] In some examples, the HAL layer includes a channel control. The channel control is used to receive laser measurement data reported by the laser driver in the kernel layer, and report the laser measurement data to the camera application in the application layer, so that the camera application can determine the focus mode based on the laser measurement data. Optionally, the channel control is also used to provide different focus mode interfaces to the camera application to implement different focus modes.

[0102] In some examples, the HAL layer is configured with an AF scheduling algorithm for determining the focusing mode.

[0103] The kernel layer is the layer between hardware and software. The kernel layer contains at least laser driver, display driver, camera driver, audio driver, and sensor driver.

[0104] The following is a detailed introduction to the laser frame rate adjustment method provided in the embodiment of the present application, taking the case where an electronic device is configured with at least two focusing modes, and at least the two focusing modes include laser focusing, as an example.

[0105] Figure 3 The following is a flow chart of a laser frame rate adjustment method provided in an embodiment of the present application. Figure 3 The specific order described below is a limitation, and it should be understood that in other embodiments, the order of some steps in the method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:

[0106] S301: The camera application obtains laser measurement data reported by the laser sensor.

[0107] The laser sensor is used to perform distance measurement, and the laser measurement data includes distance measurement data. For example, the laser sensor calculates the distance from the target to the laser sensor by recording the time difference between the infrared laser it emits, the reflection of the target surface, and the reception of the laser sensor.

[0108] In some embodiments, after acquiring laser measurement data, the laser sensor reports the laser measurement data to the laser driver, which then reports the data to the channel control, which then reports the laser measurement data to the camera application.

[0109] Optionally, since the electronic device needs to perform distance measurement through a laser sensor, the laser sensor is in operation regardless of whether the camera application uses laser focusing, and can report the laser measurement result to the camera application.

[0110] S302: Based on the laser measurement data, the camera application determines a focusing mode.

[0111] In some embodiments, in response to a user operation, the electronic device starts a camera application, and after the camera application starts, the camera is called to acquire images. During the image acquisition process, the camera application can obtain shooting scene information, image information, and information on various focusing methods. Among them, the shooting scene information includes, for example, ambient light brightness, still life shooting information, dynamic shooting information, etc. Image information includes, for example, pixel values, blurriness, sharpness, etc. of the image. Information on various focusing methods includes, for example, focusing method information pre-configured by the electronic device, information reported on the focusing method during the autofocus process, etc. Such as laser measurement data, etc.

[0112] In some embodiments, during the image acquisition process, the camera application implements automatic focus based on the acquired shooting scene information, image information, and information of various focusing methods. Optionally, the electronic device is configured with multiple focusing methods, and automatic focus is implemented through the multiple focusing methods. The focusing methods include laser focus and at least one other focusing method. For example, the electronic device includes laser focus, phase focus, and contrast focus.

[0113] Among them, phase detection auto focus (PDAF) is also called phase focus. PDAF determines the current lens position from the relative focus state based on the phase difference information of different pixels of the sensor, thereby obtaining the vector that the lens should move. The advantages are fast focusing speed, no bellows phenomenon, and good user experience. The disadvantage is low focusing accuracy in low-light scenes.

[0114] Contrast detection auto focus (CDAF) is also called contrast focus. CDAF calculates an evaluation value in each frame, traverses the auto focus (AF) motor position in a certain area / or all areas, obtains the evaluation function curve, and selects the maximum value as the quasi-focus position. The advantages are simple method, low cost, and no dependence on specific camera components. The disadvantages are slow focusing and requiring multiple frames of images. Pulling the bellows affects the focusing experience. Peaks cannot be found in dark and flat areas, and it is easy to lose focus.

[0115] Laser detection auto focus (LDAF), also known as laser focus. Laser focus is to emit a low-power laser to the subject through the infrared laser sensor next to the rear camera. After reflection, it is received by the sensor and the distance to the subject is calculated. After that, the inter-lens motor directly pushes the lens to the corresponding position to complete the focus. Like phase focus, it is also completed in one go. The advantage is that laser focus technology is effective for macro, low-light environments, and areas with unclear contrast, and can effectively improve the focusing success rate of electronic devices in these situations. The disadvantage is that in terms of focusing speed, laser focus is relatively average. However, under normal light conditions, the speed of laser focus is as fast as phase focus.

[0116] In some embodiments, a quad phase detection (QPD) autofocus module is configured in the camera of the electronic device. QPD implements 2*2 phase detection autofocus on the image array of the image sensor, with a faster focusing speed. QPD is a type of PDAF technology.

[0117] For example, Figure 4 As shown, the electronic device camera includes a rear main camera lens and a rear wide-angle lens. Among them, the rear main camera lens includes a QPD autofocus module and supports the QPD autofocus function; the rear wide-angle lens does not include a QPD autofocus module and does not support the QPD autofocus function. In some examples, the camera is used in the rear main camera scene to achieve phase focus, laser focus, and contrast focus. The camera is used in the rear wide-angle scene to achieve laser focus and contrast focus.

[0118] It should be understood that the camera application may also include other lenses, such as a telephoto lens, a depth of field lens, etc., which may correspond to other same or different focusing methods. The embodiments of the present application will not exemplify them one by one.

[0119] Optionally, the priority order of different focusing modes is, for example, phase focusing>laser focusing>contrast focusing.

[0120] In some examples, the camera application determines the focus mode through an AF scheduling algorithm.

[0121] For example, in some dark still life shooting scenes and texture pattern shooting scenes, phase focus and contrast focus cannot achieve a good focusing effect. Therefore, through the AF scheduling algorithm, the camera application can determine that the focus method used is laser focus.

[0122] For example, in some outdoor shooting scenes or bright light shooting scenes, if the camera supports the QPD autofocus function, the camera application can determine the focus method to be phase focus with a higher focus speed through the AF scheduling algorithm. If the camera does not support the QPD autofocus function, the camera application can determine the focus method to be contrast focus through the AF scheduling algorithm.

[0123] S303: The camera application sends a focus mode to the channel control.

[0124] In some embodiments, the channel control provides interfaces corresponding to different focus modes to the camera application. Then, after determining the corresponding mode to be adopted, the camera application can call the focus mode interface of the corresponding focus mode.

[0125] For example, the camera application determines that the focus mode to be adopted is laser focus, and the laser focus interface provided by the channel control can be called.

[0126] For another example, the camera application determines that the focus mode to be adopted is phase focus, and the phase focus interface provided by the channel control can be called.

[0127] For another example, the camera application can call the contrast focus interface provided by the channel control by determining that the focus mode to be adopted is contrast focus.

[0128] S304: The channel control determines the laser frame rate interface to be called according to the focusing mode.

[0129] S305. The channel control calls the laser frame rate interface provided by the laser driver.

[0130] In some embodiments, the laser sensor is configured with at least two laser frame rates, one of which is a standard laser frame rate for the laser sensor, and the other laser frame rates are lower than the standard laser frame rate. Optionally, different laser frame rates correspond to different laser frame rate interfaces.

[0131] In some embodiments, the underlying laser driver provides laser frame rate interfaces corresponding to a variety of laser frame rates, and the channel control can call the corresponding laser frame rate interface after determining the focus mode.

[0132] For example, Figure 5 As shown, the channel control determines that the focus mode interface called by the camera application is a laser focus interface, and can determine that the focus mode selected by the camera application is laser focus. Then, the channel control can determine to call the standard laser frame rate interface, and the standard laser frame rate interface corresponds to the standard laser frame rate.

[0133] As another example, Figure 5 As shown, the channel control determines that the focus mode interface called by the camera application is a phase focus interface, and can determine that the focus mode selected by the camera application is phase focus, not laser focus. Then, the channel control can determine to call a laser frame rate reduction interface, which corresponds to the laser frame rate after reducing the standard laser frame rate.

[0134] As another example, Figure 5 As shown, the channel control determines that the focus mode interface called by the camera application is a contrast focus interface, and can determine that the focus mode selected by the camera application is contrast focus, not laser focus. Then, the channel control can determine to call a laser frame rate reduction interface, and the laser frame rate reduction interface corresponds to the laser frame rate after reducing the standard laser frame rate.

[0135] As another example, the laser sensor is configured with a plurality of laser frame rate interfaces corresponding to different focusing modes. Moreover, the laser frame rate interface corresponding to the laser focusing can call the laser sensor to execute the standard laser frame rate, and the laser frame rate interface corresponding to other focusing modes can call the laser sensor to execute a laser frame rate that is lower than the standard laser frame rate.

[0136] For example, the laser frame rate interface corresponding to phase focus can call the laser sensor to execute laser frame rate reduction 1, and the laser frame rate interface corresponding to contrast focus can call the laser sensor to execute laser frame rate reduction 2. Reducing laser frame rate 1 is different from reducing laser frame rate 2, and both reducing laser frame rate 1 and reducing laser frame rate 2 are less than the standard laser frame rate. In this way, when the channel control determines that the focus mode interface called by the camera application is the laser focus interface, it determines that the focus mode selected by the camera application is laser focus, and it can be determined to call the standard laser frame rate interface so that the laser sensor executes the standard laser frame rate; when the channel control determines that the focus mode interface called by the camera application is the phase focus interface, it determines that the focus mode selected by the camera application is phase focus, and it can be determined to call the laser frame rate reduction interface 1 so that the laser sensor executes laser frame rate reduction 1; when the channel control determines that the focus mode interface called by the camera application is the contrast focus interface, it determines that the focus mode selected by the camera application is contrast focus, and it can be determined to call the laser frame rate reduction interface 2 so that the laser sensor executes laser frame rate reduction 2.

[0137] S306: The laser driver sends the laser frame rate to the laser sensor.

[0138] In some embodiments, after detecting the laser frame rate interface called by the channel control, the laser driver can determine the laser frame rate corresponding to the called laser frame rate interface. Afterwards, the laser driver can send the laser frame rate to the laser sensor.

[0139] Correspondingly, after receiving the laser frame rate, the laser sensor can set the register value according to the laser frame rate to perform laser ranging according to the corresponding laser frame rate.

[0140] For example, a register value of 1 is a standard laser frame rate, and a register value of 0 is a reduced laser frame rate. Alternatively, a register value of 1 is a reduced laser frame rate, and a register value of 0 is a standard laser frame rate.

[0141] For another example, a register value of 0 is a standard laser frame rate, a register value of 1 is a reduced laser frame rate of 1, and a register value of 2 is a reduced laser frame rate of 2.

[0142] In some embodiments, after the laser sensor performs laser ranging according to the laser frame rate issued and obtains laser measurement data, the laser measurement data can be reported to the camera application, that is, the above step S301 is returned to determine whether the focus mode needs to be switched.

[0143] For example, Figure 6 This is a schematic diagram of the timing changes of the laser sensor. Figure 6As shown in the figure, if the laser sensor has a single ranging cycle of 33 milliseconds (ms), if it transmits continuously, it will measure the distance 30 times in 1 second (1s / 33ms=30Hz). Taking the interface with half the laser frame rate (15Hz) as an example, the distance is measured 15 times in 1 second, and the single ranging cycle is 66ms. Among them, the time of ranging and data processing in a single ranging does not change, and the low-power sleep time will increase, thereby saving power consumption.

[0144] Based on the above principle, when there are multiple focusing modes in an electronic device, when the electronic device determines that laser focusing is not applicable, it can instruct the laser sensor to increase the low-power sleep time, increase the ranging cycle, and reduce the laser frame rate to save power consumption.

[0145] In this way, the electronic device automatically switches the laser frame rate according to the change of the focusing mode. In the process of non-laser focusing, the laser frame rate can be reduced to save unnecessary power consumption and extend the battery life of the electronic device.

[0146] In an example scenario, the laser frame rate and power consumption are linearly related. The power consumption of the laser sensor is 15 milliamperes (mA) when the laser sensor is used for normal laser ranging at the standard laser frame rate. When the laser frame rate is reduced to half of the standard laser frame rate, the power consumption of the laser ranging is reduced to 7.5mA. This brings power consumption benefits while the focusing effect and focusing efficiency of the electronic device remain unchanged.

[0147] Figure 7 The following is a flow chart of a laser frame rate adjustment method provided in an embodiment of the present application. Figure 7 The specific order described below is a limitation, and it should be understood that in other embodiments, the order of some steps in the method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:

[0148] S701. In response to a user operation, the electronic device starts a camera application.

[0149] In some embodiments, the electronic device detects an operation of a user indicating to start a camera application and runs the camera application. In some examples, the operation of indicating to start the camera application is, for example, an operation on a camera application icon, a gesture operation, a shortcut key operation, a voice instruction operation, etc.

[0150] S702a: When the camera adopts the first focusing mode, the electronic device calls the laser sensor to execute the first laser frame rate.

[0151] S702b: When the camera adopts the second focusing mode, the electronic device calls the laser sensor to execute the second laser frame rate.

[0152] Among them, the first laser frame rate is greater than the second laser frame rate, the first focusing mode is laser focusing, and the second focusing mode is non-laser focusing.

[0153] In some embodiments, the electronic device is configured with multiple focusing modes, including laser focusing and non-laser focusing. Optionally, the number of non-laser focusing is one or more. For example, non-laser focusing includes phase focusing and / or contrast focusing.

[0154] For example, Figure 4 As shown, the electronic device camera includes a rear main camera lens and a rear wide-angle lens. The camera is used in the rear main camera scene, and phase focus, laser focus, and contrast focus can be achieved. The camera is used in the rear wide-angle scene, and laser focus and contrast focus can be achieved.

[0155] In some embodiments, after starting the camera, the electronic device will determine a corresponding focusing method to determine the focal position of the shooting. In this process, through the corresponding focusing method, a clear display picture that better meets the current shooting scene is provided to the user.

[0156] In some examples, the electronic device determines the focus mode according to at least one of the shooting scene information, the image information, and the focus mode information. The shooting scene information includes one or more of the ambient light brightness, still shooting information, and dynamic shooting information. The image information includes one or more of the pixel value, blur, and sharpness of the image. The focus mode information includes the focus mode information pre-configured by the electronic device and / or the laser measurement data obtained by the laser sensor.

[0157] For example, the electronic device can obtain information about the focus methods that can be used in the current shooting scene. For example, in the rear main camera scene, the camera application can use phase focus, laser focus, and contrast focus. In the rear wide-angle scene, the camera application can use laser focus and contrast focus.

[0158] In some examples, the electronic device determines the focus mode to be adopted through the AF scheduling algorithm. Optionally, the priority order of different focus modes can be preset in the electronic device, such as phase focus > laser focus > contrast focus. In the process of determining the focus mode, the electronic device can combine the priority order and adopt a focus mode that better meets the current needs.

[0159] For example, in some dark still life shooting scenes and texture pattern shooting scenes, phase focus and contrast focus cannot achieve a good focusing effect. Therefore, the electronic device determines that the focusing method used by the camera application is laser focus through the AF scheduling algorithm.

[0160] For example, in some outdoor shooting scenes or bright light shooting scenes, if the camera supports the QPD autofocus function, the electronic device uses the AF scheduling algorithm to determine that the focus method used by the camera application is phase focus with a higher focus speed. If the camera does not support the QPD autofocus function, the electronic device uses the AF scheduling algorithm to determine that the focus method used by the camera application is contrast focus.

[0161] In this way, the electronic device determines a focusing method that better meets the current shooting needs by combining multiple information.

[0162] In some embodiments, after determining the focus mode adopted by the camera application, the electronic device adjusts the laser frame rate of the laser sensor according to the determined focus mode.

[0163] In some examples, the laser sensor is configured with at least two laser frame rates, one of which is a standard laser frame rate at which the laser sensor operates, and the other laser frame rates are smaller than the standard laser frame rate.

[0164] For example, when the electronic device determines that the current focus mode is the first focus mode, the electronic device may call the laser sensor to execute the first laser frame rate.

[0165] For example, Figure 3 As shown, after the camera application determines that the focus mode is laser focus, it calls the laser focus interface provided by the channel control. After the channel control determines that the focus mode interface called by the current camera application is the laser focus interface, it can call the standard laser frame rate interface provided by the laser driver, so that the laser driver sends the standard laser frame rate to the laser sensor. Then, the laser sensor can perform ranging at the standard laser frame rate according to the laser driver instruction.

[0166] For another example, when the electronic device determines that the current focus mode is the second focus mode, the electronic device may call the laser sensor to execute the second laser frame rate.

[0167] For example, Figure 3 As shown, after the camera application determines that the focus mode is phase focus, it calls the phase focus interface provided by the channel control. After the channel control determines that the focus mode interface called by the current camera application is the phase focus interface, it can call the laser frame rate reduction interface provided by the laser driver, so that the laser driver sends a message to the laser sensor to reduce the laser frame rate. Then, according to the laser driver's instructions, the laser sensor can perform ranging at the reduced laser frame rate.

[0168] For example, Figure 3As shown, after the camera application determines that the focus mode is phase focus, it calls the phase focus interface provided by the channel control. After the channel control determines that the focus mode interface called by the current camera application is the phase focus interface, it can call the laser frame rate reduction interface 1 provided by the laser driver, so that the laser driver sends the laser frame rate reduction 1 to the laser sensor. Then, the laser sensor can perform distance measurement according to the laser frame rate reduction 1 according to the laser driver instruction. Later in the shooting process, after the camera application determines that the focus mode is contrast focus, it calls the contrast focus interface provided by the channel control. After the channel control determines that the focus mode interface called by the current camera application is the contrast focus interface, it can call the laser frame rate reduction interface 2 provided by the laser driver, so that the laser driver sends the laser frame rate reduction 2 to the laser sensor. Then, the laser sensor can perform distance measurement according to the laser frame rate reduction 2 according to the laser driver instruction. Among them, the laser frame rate reduction 1 and the laser frame rate reduction 2 are different laser frame rates, and both are less than the standard laser frame rate.

[0169] In this way, the electronic device automatically switches the laser frame rate according to the change of the focusing mode. In the process of non-laser focusing, the laser frame rate can be reduced to save unnecessary power consumption and extend the battery life of the electronic device.

[0170] In some embodiments, when the laser sensor is called to execute the first laser frame rate, a single ranging cycle of the laser sensor includes a first data processing duration and a first sleep duration. When the laser sensor is called to execute the second laser frame rate, a single ranging cycle of the laser sensor includes a second data processing duration and a second sleep duration. The first data processing duration is equal to the second data processing duration, and the first sleep duration is less than the second sleep duration.

[0171] In some examples, the first laser frame rate is N times the second laser frame rate, where N is a positive integer greater than 1.

[0172] For example, Figure 6 As shown in the figure, if the laser sensor single distance measurement cycle is 33ms, if it is continuously transmitted, it will measure the distance 30 times in 1 second (1s / 33ms=30Hz). Taking the interface with half the laser frame rate (15Hz) as an example, the distance is measured 15 times in 1 second, and the single distance measurement cycle is 66ms.

[0173] In this way, in a single distance measurement process, the distance measurement and data processing time of the standard laser frame rate and the reduced laser frame rate are the same, thereby ensuring the focusing effect and focusing efficiency. In addition, when the laser frame rate is reduced, power consumption is saved by increasing the low-power sleep time.

[0174] Combination of the above Figure 3-Figure 7 The laser frame rate adjustment method provided in the embodiment of the present application is described in detail. Figure 8The electronic device provided by the embodiments of the present application is described in detail.

[0175] In one possible design, Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8 As shown, the electronic device 800 may include: a transceiver unit 801 and a processing unit 802. The electronic device 800 may be used to implement the functions of the electronic device involved in the above method embodiment.

[0176] Optionally, the transceiver unit 801 is used to support the electronic device 800 to execute Figure 7 S701 in.

[0177] Optionally, the processing unit 802 is used to support the electronic device 800 to execute Figure 3 S301-S306 in; and / or, for supporting the electronic device 800 to execute Figure 7 S701, S702a, and S702b in.

[0178] Among them, the transceiver unit may include a receiving unit and a sending unit, and may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module. The operations and / or functions of each unit in the electronic device 800 are respectively to implement the corresponding process of the laser frame rate adjustment method described in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit, and for the sake of brevity, they will not be repeated here.

[0179] Optionally, Figure 8 The electronic device 800 shown may also include a storage unit ( Figure 8 (not shown), the storage unit stores a program or instruction. When the transceiver unit 801 and the processing unit 802 execute the program or instruction, Figure 8 The electronic device 800 shown can execute the laser frame rate adjustment method described in the above method embodiment.

[0180] Figure 8 The technical effects of the electronic device 800 shown can refer to the technical effects of the laser frame rate adjustment method described in the above method embodiment, which will not be repeated here.

[0181] In addition to being in the form of the electronic device 800, the technical solution provided in the present application may also be a functional unit or chip in the electronic device, or a device used in conjunction with the electronic device.

[0182] An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.

[0183] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0184] Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.

[0185] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0186] It should be understood that each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.

[0187] The embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is run on a computer, the computer executes the above-mentioned related steps to implement the laser frame rate adjustment method in the above-mentioned embodiment.

[0188] The embodiment of the present application further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the laser frame rate adjustment method in the above-mentioned embodiment.

[0189] In addition, an embodiment of the present application further provides a device. The device may be a component or a module, and the device may include one or more processors and a memory connected to each other. The memory is used to store a computer program. When the computer program is executed by one or more processors, the device performs the laser frame rate adjustment method in the above-mentioned method embodiments.

[0190] Among them, the device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0191] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in hardware or by executing software instructions by a processor. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC).

[0192] Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed; that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

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

[0194] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0195] Computer-readable storage media include, but are not limited to, any of the following: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and other media that can store program codes.

[0196] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application 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 laser frame rate adjustment method, characterized in that: Applied to electronic equipment, the method comprises: In response to a user operation, starting a camera application; When the camera application adopts a first focusing mode, calling a laser sensor to execute a first laser frame rate; When the camera application adopts a second focusing mode, calling the laser sensor to execute a second laser frame rate; Among them, the first laser frame rate is greater than the second laser frame rate, the first focusing mode is laser focusing, and the second focusing mode is non-laser focusing.

2. The method according to claim 1, characterized in that When calling the laser sensor to execute the first laser frame rate, a single ranging cycle of the laser sensor includes a first data processing duration and a first sleep duration; when calling the laser sensor to execute the second laser frame rate, a single ranging cycle of the laser sensor includes a second data processing duration and a second sleep duration; wherein, the first data processing duration is equal to the second data processing duration, and the first sleep duration is less than the second sleep duration.

3. The method according to claim 1 or 2, characterized in that: The first laser frame rate is N times the second laser frame rate, where N is a positive integer greater than 1.

4. The method according to any one of claims 1 to 3, characterized in that: After starting the camera application in response to the user operation, the method further includes: The focus mode is determined according to at least one of the shooting scene information, the image information and the focus mode information.

5. The method according to claim 4, characterized in that The shooting scene information includes one or more of the ambient light brightness, still shooting information, and dynamic shooting information; the image information includes one or more of the image pixel value, blurriness, and sharpness; the focus mode information includes the focus mode information pre-configured by the electronic device and / or the laser measurement data obtained by the laser sensor.

6. The method according to any one of claims 1 to 5, characterized in that: The non-laser focusing includes phase focusing and / or contrast focusing.

7. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is coupled to the processor, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor reads the computer instructions from the memory, the electronic device executes the method as described in any one of claims 1-6.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises a computer program, and when the computer program is executed on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 6.

9. A computer program product, characterized in that When the computer program product is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Focusing control method for imaging equipment, and imaging device

    CN105100617A

  • Control method, control device and electronic device

    CN105763796A

  • Control method and device and electronic device

    CN105763800A

  • Control method, control device and electronic device

    CN105791680A

  • Focusing mode control method and terminal device

    CN106454078A