CN114390195B - Automatic focusing method, device, equipment and storage medium - Google Patents

Automatic focusing method, device, equipment and storage medium Download PDF

Info

Publication number
CN114390195B
CN114390195B CN202111536844.4A CN202111536844A CN114390195B CN 114390195 B CN114390195 B CN 114390195B CN 202111536844 A CN202111536844 A CN 202111536844A CN 114390195 B CN114390195 B CN 114390195B
Authority
CN
China
Prior art keywords
image
target
focal length
length information
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111536844.4A
Other languages
Chinese (zh)
Other versions
CN114390195A (en
Inventor
李亚楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202111536844.4A priority Critical patent/CN114390195B/en
Publication of CN114390195A publication Critical patent/CN114390195A/en
Application granted granted Critical
Publication of CN114390195B publication Critical patent/CN114390195B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • H04N23/673Focus control based on electronic image sensor signals based on contrast or high frequency components of image signals, e.g. hill climbing method

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

The present disclosure relates to an auto-focusing method, apparatus, device, and storage medium, capable of simplifying an auto-focusing process. The specific scheme comprises the following steps: and acquiring a plurality of images according to the plurality of focal length information, wherein each focal length information in the plurality of focal length information corresponds to one image. Color information of all pixel points of each of the plurality of images is acquired. And determining target focal length information according to the color information of all pixel points in each image, wherein the target focal length information is focal length information corresponding to a target image, and the target image is the image with the highest color level in a plurality of images.

Description

Automatic focusing method, device, equipment and storage medium
Technical Field
The disclosure relates to the field of network technologies, and in particular, to an automatic focusing method, device, equipment and storage medium.
Background
With the continuous development of electronic technology, more and more electronic devices have a photographing function (such as a mobile phone with a camera, a notebook, etc.). The user can save an image of a person or a landscape using the photographing apparatus to record a highlight moment in life.
The photographing equipment can automatically focus in the photographing process so as to ensure that a clear image is obtained. Currently, common focusing schemes include phase focusing, contrast focusing, laser focusing, and the like. However, the focusing scheme has a relatively high technical difficulty and a relatively complex implementation process.
Disclosure of Invention
The disclosure provides an automatic focusing method, an automatic focusing device, automatic focusing equipment and a storage medium, which can simplify an automatic focusing process. The technical scheme of the present disclosure is as follows:
according to a first aspect of the present disclosure, there is provided a method of auto-focusing, the method comprising:
and acquiring a plurality of images according to the plurality of focal length information, wherein each focal length information in the plurality of focal length information corresponds to one image. Color information of all pixel points of each of the plurality of images is acquired. And determining target focal length information according to the color information of all pixel points in each image, wherein the target focal length information is focal length information corresponding to a target image, and the target image is the image with the highest color level in a plurality of images.
Optionally, the method for acquiring a plurality of images according to a plurality of focal length information includes: and sequentially acquiring a plurality of images according to a preset sequence through a plurality of pieces of focal length information, wherein the preset sequence is the sequence from small to large of the focal length information or the sequence from large to small of the focal length information. The sequence of the color gradation changes of the plurality of images corresponding to the plurality of focal length information is as follows: the transition from low to high to low.
Optionally, the target image is an image with the largest target number in the multiple images, the target number is the number of pixels with different color information in all pixels of the image, and the target number is used for representing the color hierarchy of the image.
Optionally, determining the target focal length information according to color information of all pixel points in each image includes: and determining the target quantity of each image according to the color information of all the pixel points in each image. And determining target images according to the target quantity of each image. And determining target focal length information according to the focal length information corresponding to the target image.
Optionally, the color information of the pixel point includes a color value. According to the color information of all pixel points in each image, determining the target number of each image comprises the following steps: for each image, determining a target number for each image according to a first operation; the first operation includes: comparing the color values of all the pixel points in the first image with a plurality of preset color value intervals, determining a plurality of target pixel points of the first image, wherein the preset color value intervals of the color values of each target pixel point in the plurality of target pixel points are different, and the first image is any image in the plurality of images. A target number of the first image is determined, the target number of the first image being indicative of a number of target pixels in the first image.
Optionally, determining the target number of each image according to the color information of all the pixel points in each image further includes: for each image, determining a target number for each image according to a second operation; the second operation includes: and comparing the color values of all the pixel points in the first image with a plurality of preset color value intervals to determine a plurality of target color value intervals, wherein each target color value interval in the plurality of target color value intervals is different. A target number of the first image is determined, the target number of the first image being indicative of a number of a plurality of target color value intervals of the first image.
Optionally, the method for auto-focusing further includes: and receiving shooting operation, wherein the shooting operation is used for triggering shooting images. The target image is saved.
Optionally, the method for auto-focusing further includes: the focal length information is adjusted to target focal length information. And displaying a shooting preview page, wherein the shooting preview page comprises an image to be shot, and the image to be shot is an image acquired according to the target focal length information. In response to the photographing operation, an image to be photographed is photographed in accordance with the target focal length information.
According to a second aspect of the present disclosure, there is provided an auto-focusing apparatus comprising: the device comprises an acquisition unit, a processing unit and a display unit.
And an acquisition unit configured to acquire a plurality of images in accordance with a plurality of focal length information, one image corresponding to each of the plurality of focal length information. And a processing unit configured to perform acquisition of color information of all pixel points of each of the plurality of images. The processing unit is further configured to determine target focal length information according to color information of all pixel points in each image, wherein the target focal length information is focal length information corresponding to a target image, and the target image is an image with highest color hierarchy in a plurality of images.
Optionally, the acquisition unit is further configured to perform sequential acquisition of the plurality of images through the plurality of focal length information according to a preset sequence, where the preset sequence is a sequence of focal length information from small to large or a sequence of focal length information from large to small. The sequence of the color gradation changes of the plurality of images corresponding to the plurality of focal length information is as follows: the transition from low to high to low.
Optionally, the target image is an image with the largest target number in the multiple images, the target number is the number of pixels with different color information in all pixels of the image, and the target number is used for representing the color hierarchy of the image.
Optionally, the processing unit is specifically configured to perform determining the target number of each image according to color information of all pixels in each image. And determining target images according to the target quantity of each image. And determining target focal length information according to the focal length information corresponding to the target image.
Optionally, the processing unit is specifically configured to perform, for each image, determining a target number of each image according to the first operation; the first operation includes: comparing the color values of all the pixel points in the first image with a plurality of preset color value intervals, determining a plurality of target pixel points of the first image, wherein the preset color value intervals of the color values of each target pixel point in the plurality of target pixel points are different, and the first image is any image in the plurality of images. A target number of the first image is determined, the target number of the first image being indicative of a number of target pixels in the first image.
Optionally, the processing unit is further specifically configured to perform, for each image, determining a target number for each image according to the second operation; the second operation includes: and comparing the color values of all the pixel points in the first image with a plurality of preset color value intervals to determine a plurality of target color value intervals, wherein each target color value interval in the plurality of target color value intervals is different. A target number of the first image is determined, the target number of the first image being indicative of a number of a plurality of target color value intervals of the first image.
Optionally, the processing unit is further configured to perform a receiving shooting operation, and the shooting operation is used for triggering shooting of the image. And a processing unit configured to execute saving the target image.
Optionally, the processing unit is further configured to perform the adjusting of the focal length information to the target focal length information. And the display unit is configured to display a shooting preview page, wherein the shooting preview page comprises an image to be shot, and the image to be shot is acquired according to the target focal length information. And an acquisition unit configured to perform shooting of an image to be shot in accordance with the target focal length information in response to the shooting operation.
According to a third aspect of the present disclosure, there is provided a terminal comprising:
A processor. A memory for storing processor-executable instructions. Wherein the processor is configured to execute instructions to implement the method of any of the above first aspects, optionally auto-focusing.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium having instructions stored thereon which, when executed by a processor of a terminal, enable the terminal to perform the method of any one of the above-mentioned first aspects, optionally with autofocus.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of optionally auto-focusing as in any of the first aspects.
According to a sixth aspect of the present disclosure, there is provided a chip comprising a processor and a communication interface, the communication interface and the processor being coupled, the processor being for running a computer program or instructions to implement the method of auto-focusing as described in any one of the possible implementations of the first aspect and the first aspect.
The technical scheme provided by the disclosure at least brings the following beneficial effects: and acquiring a plurality of images according to the plurality of focal length information, wherein each focal length information in the plurality of focal length information corresponds to one image. And, color information of all pixel points of each of the plurality of images is acquired. Then, the target focal length information is determined according to the color information of all the pixel points in each image. Since the color gradation of the images acquired at different focal length information is different, the color gradation of the images can be determined by the color information of all the pixels of the images. Therefore, when the target image is the image having the highest color gradation among the plurality of images, the target focal length information corresponding to the target image is the optimal focal point. In addition, the method and the device can obtain proper focal length information only by analyzing the image colors, and reduce the complexity of realizing automatic focusing.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is a schematic diagram illustrating a structure of a terminal according to an exemplary embodiment;
FIG. 2 is a flowchart illustrating a method of auto-focusing according to an exemplary embodiment;
FIG. 3 is a flowchart illustrating another method of auto-focusing according to an exemplary embodiment;
FIG. 4 is a schematic diagram of an auto-focusing apparatus according to an exemplary embodiment;
fig. 5 is a schematic structural view of another auto-focusing apparatus according to an exemplary embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The user information (including but not limited to user equipment information, user personal information, etc.) related to the present disclosure is information authorized by the user or sufficiently authorized by each party.
First, an application scenario of the embodiment of the present disclosure will be described.
The automatic focusing method is applied to a scene of a shot image. In the related art, the photographing device can automatically focus in the photographing process so as to ensure that a clear image is obtained. Currently, common focusing schemes include phase focusing, contrast focusing, laser focusing, and the like. However, the focusing scheme has a relatively high technical difficulty and a relatively complex implementation process.
In order to solve the above-mentioned problems, an embodiment of the present disclosure provides an auto-focusing method, which collects a plurality of images according to a plurality of focal length information, where each of the plurality of focal length information corresponds to one image. And then, taking focal length information corresponding to the image with the highest color level in the plurality of images as target focal length information. Therefore, proper focal length information can be obtained by analyzing the color hierarchy of the image, and the automatic focusing process is simplified.
Fig. 1 is a schematic structural diagram of a terminal device applying a method provided by the present disclosure according to an embodiment of the present disclosure. The terminal device 10 includes a processor 101 and a memory 102.
Processor 101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 101 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
Memory 102 may include one or more computer-readable storage media, which may be non-transitory. Memory 102 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 102 is used to store at least one instruction for execution by processor 101 to implement the group communication methods provided by the method embodiments of the present disclosure.
In some embodiments, the terminal device 10 may further optionally include: a peripheral interface 103 and at least one peripheral. The processor 101, memory 102, and peripheral interface 103 may be connected via buses or signal lines. The individual peripheral devices may be connected to the peripheral device interface 103 via buses, signal lines, or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 104, display screen 105, camera assembly 106, audio circuitry 107, positioning assembly 108, and power supply 109.
Peripheral interface 103 may be used to connect at least one Input/Output (I/O) related peripheral device to processor 101 and memory 102. In some embodiments, processor 101, memory 102, and peripheral interface 103 are integrated on the same chip or circuit board; in some other embodiments, any one or both of the processor 101, memory 102, and peripheral interface 103 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 104 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuitry 104 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 104 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 104 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 104 may communicate with other terminal devices via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or Wi-Fi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 104 may also include NFC (Near Field Communication, short range wireless communication) related circuitry, which is not limited by the present disclosure.
The display screen 105 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 105 is a touch display screen, the display screen 105 also has the ability to collect touch signals at or above the surface of the display screen 105. The touch signal may be input as a control signal to the processor 101 for processing. At this time, the display screen 105 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display screen 105 may be one, providing a front panel of the terminal device 10; the display screen 105 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 106 is used to capture images or video. Optionally, the camera assembly 106 includes a front camera and a rear camera. Typically, the front camera is disposed on a front panel of the terminal device, and the rear camera is disposed on a rear surface of the terminal device. The audio circuit 107 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 101 for processing, or inputting the electric signals to the radio frequency circuit 104 for voice communication. For the purpose of stereo acquisition or noise reduction, a plurality of microphones may be provided at different portions of the terminal device 10, respectively. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 101 or the radio frequency circuit 104 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 107 may also include a headphone jack.
The location component 108 is used to locate the current geographic location of the terminal device 10 to enable navigation or LBS (Location Based Service, location based services). The positioning component 108 may be a positioning component based on the United states GPS (Global Positioning System ), the Beidou system of China, the Granati system of Russia, or the Galileo system of the European Union.
The power supply 109 is used to power the various components in the terminal device 10. The power source 109 may be alternating current, direct current, disposable or rechargeable. When the power supply 109 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal device 10 further includes one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: acceleration sensor, gyroscope sensor, pressure sensor, fingerprint sensor, optical sensor, and proximity sensor.
The acceleration sensor may detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal device 10. The gyro sensor may detect the body direction and the rotation angle of the terminal device 10, and the gyro sensor may cooperate with the acceleration sensor to collect the 3D motion of the user to the terminal device 10. The pressure sensor may be provided at a side frame of the terminal device 10 and/or at a lower layer of the display screen 105. When the pressure sensor is provided at the side frame of the terminal device 10, a grip signal of the user to the terminal device 10 can be detected. The fingerprint sensor is used for collecting fingerprints of a user. The optical sensor is used to collect the ambient light intensity. A proximity sensor, also called a distance sensor, is typically provided on the front panel of the terminal device 10. The proximity sensor is used to collect the distance between the user and the front face of the terminal device 10.
The execution body of the auto-focusing method provided by the present disclosure may be an auto-focusing device, and the execution device may be a terminal device shown in fig. 1. Meanwhile, the execution device can also be a central processing unit (Central Processing Unit, CPU) of the terminal equipment or a control module for automatic focusing in the terminal equipment. Alternatively, the executing device may be a server. In the embodiment of the present application, a method for executing automatic focusing by a terminal device is taken as an example, and the method for executing automatic focusing provided in the embodiment of the present application is described.
In one embodiment, the terminal device is used to provide voice and/or data connectivity services to the user. The terminal devices may be named differently, such as UE end, terminal unit, terminal station, mobile station, remote terminal, mobile device, wireless communication device, vehicle user equipment, terminal agent or terminal equipment, etc.
Alternatively, the terminal device may be various handheld devices, vehicle-mounted devices, wearable devices, or computers with communication functions, which are not limited in any way by the embodiments of the present disclosure. For example, the handheld device may be a smart phone. The in-vehicle device may be an in-vehicle navigation system. The wearable device may be a smart bracelet. The computer may be a personal digital assistant (personal digital assistant, PDA) computer, a tablet computer, or a laptop computer (laptop computer).
After the application scenario and the implementation environment of the embodiment of the present disclosure are described, the method for auto-focusing provided by the embodiment of the present disclosure is described in detail below with reference to the implementation environment shown in fig. 1.
Fig. 2 is a flow chart illustrating a method of auto-focusing according to an exemplary embodiment. As shown in fig. 2, the method may include steps 201-203.
201. A plurality of images are acquired according to the plurality of focal length information.
Wherein each of the plurality of focal length information corresponds to an image.
The plurality of focal length information is all focal lengths to which the terminal can adjust. For example, the focal length information that the terminal can adjust is 10 mm, 12 mm, 14 mm, respectively, and then the plurality of focal length information includes 10 mm, 12 mm, 14 mm.
Exemplary, if the plurality of focal length information includes 10 mm, 12 mm, 14 mm, 16 mm. The terminal can adjust the focal length in a fixed step-wise manner, i.e. an image is acquired once per unit of focal length adjustment. That is, images are acquired at a focal length information of 10 mm, a focal length information of 12 mm, a focal length information of 14 mm, and a focal length information of 16 mm, respectively, i.e., a total of 4 images can be acquired.
As a possible implementation manner, a plurality of images are sequentially acquired through a plurality of focal length information according to a preset sequence. The preset sequence is the sequence from small to large of the focal length information or the sequence from large to small of the focal length information.
Illustratively, if the plurality of focal length information includes: 10 mm, 12 mm, 14 mm, 16 mm and 18 mm. Under the condition that the preset sequence is the sequence of focal length information from small to large, firstly, images are acquired according to the focal length information of 10 mm, then images are acquired according to the focal length information of 12 mm, then images are acquired according to the focal length information of 14 mm, and then images are acquired according to the focal length information of 16 mm. Under the condition that the preset sequence is the sequence of focal length information from large to small, firstly, images are acquired according to 16 mm focal length information, then images are acquired according to 14 mm focal length information, then images are acquired according to 12 mm focal length information, and then images are acquired according to 10 mm focal length information.
The sequence of the color gradation changes of the plurality of images corresponding to the plurality of focal length information is as follows: the transition from low to high to low.
It should be noted that the color gradation is used to characterize the color richness of the image (or the sharpness of the image), that is, the number of colors included in the image. The color level of the images acquired at different focal length information is different. In the case where the focal length information is optimal, the color gradation of the image is highest. The farther the focus information is from the optimal target focus information, the lower the color gradation.
Illustratively, if the plurality of focal length information includes: 10 mm, 12 mm, 14 mm, 16 mm and 18 mm. Under the condition that the preset sequence is the sequence of focal length information from small to large, firstly, an image A is acquired according to the focal length information of 10 mm, then an image B is acquired according to the focal length information of 12 mm, then an image C is acquired according to the focal length information of 14 mm, and then an image D is acquired according to the focal length information of 16 mm. Wherein, the color gradation of the image A is smaller than the color gradation of the image B, the color gradation of the image C is smaller than the color gradation of the image B, and the color gradation of the image D is smaller than the color gradation of the image C.
The technical scheme provided by the embodiment at least brings the following beneficial effects: and sequentially acquiring a plurality of images according to a preset sequence through the plurality of focal length information. The focus information can be adjusted in a jumping manner, and the power consumption of the terminal for adjusting the focus information is reduced. The sequence of the color gradation changes of the plurality of images corresponding to the plurality of focal length information is as follows: the transition from low to high to low. Therefore, the plurality of focal length information can be guaranteed to be all focal length information in the terminal, and omission of the focal length information is avoided.
202. Color information of all pixel points of each of the plurality of images is acquired.
As a possible implementation manner, color information of all pixel points of each of the plurality of images is acquired through a preset pixel acquisition method. For example, the preset pixel acquiring method may be HTML5 canvas getImageData (), which is not limited in the embodiments of the present disclosure.
Optionally, color information of all pixels of each image is arranged in an array manner. For example, if the resolution of the image is 1500×1200, the two-dimensional array of color information of all pixels of the image may be 1500×1200, or the one-dimensional array of color information of all pixels of the image may be 1×1920000.
203. And determining target focal length information according to the color information of all the pixel points in each image.
The target focal length information is focal length information corresponding to a target image, and the target image is the image with the highest color level in the multiple images.
As a possible implementation, the color gradation of each image is compared according to the colors of all the pixels in each image. Then, the image with the highest color gradation is determined as a target image, and the focal length information of the acquired target image is determined as target focal length information.
The technical scheme provided by the embodiment at least brings the following beneficial effects: and acquiring a plurality of images according to the plurality of focal length information, wherein each focal length information in the plurality of focal length information corresponds to one image. And, color information of all pixel points of each of the plurality of images is acquired. Then, the target focal length information is determined according to the color information of all the pixel points in each image. Since the color gradation of the images acquired at different focal length information is different, the color gradation of the images can be determined by the color information of the pixels of the images. Therefore, when the target image is the image having the highest color gradation among the plurality of images, the target focal length information corresponding to the target image is the optimal focal point. In addition, the method and the device can obtain proper focal length information only by analyzing the image colors, and reduce the complexity of realizing automatic focusing.
In one embodiment, as shown in FIG. 3, step 203 may include steps 301-303.
301. And determining the target quantity of each image according to the color information of all the pixel points in each image.
The target number is the number of pixel points with different color information in all pixel points of the image, and is used for reflecting the color hierarchy of the image.
For example, if there are 5 pixels in the image a (e.g., pixel a, pixel B, pixel C, pixel D, and pixel E), the color information of the pixel of the image a is a first value, the color information of the pixel of the image B is a second value, the color information of the pixel of the image C is a third value, the color information of the pixel of the image D is a first value, and the color information of the pixel of the image E is a second value, the target number is 3.
The larger the target number is, the more pixels of different color information in the image are, and the higher the color gradation of the image is. The smaller the target number, the fewer the pixels in the image that illustrate the different color information, the lower the color gradation of the image.
It can be understood that the target number is the number of pixels with different color information in all pixels of the image, the target number is used for representing the color hierarchy of the image, and the target image is the image with the largest target number in the plurality of images. Thus, the color level of the image can be determined through the number of the pixel points of different color information, and further the target focal length information is determined. The process is simpler, and the complexity of realizing automatic focusing is reduced.
In the disclosed embodiment, the color information includes a color value, i.e., red Green Blue (RGB) value. Optionally, the color information further includes Hue Saturation Value (HSV) values.
As a possible implementation, for each image, the target number of each image is determined according to the first operation. The first operation includes: comparing the color values of all the pixel points in the first image with a plurality of preset color value intervals, determining a plurality of target pixel points of the first image, wherein the preset color value intervals of the color values of each target pixel point in the plurality of target pixel points are different, and the first image is any image in the plurality of images. Then, a target number of the first image is determined, the target number of the first image being used to indicate a number of target pixel points in the first image.
It should be noted that different color values may have a smaller difference in color. Therefore, in order to identify closer color values, a plurality of preset color value intervals may be set. For example, when the color value is larger than 245 and the color value is smaller than 255, the same color can be considered.
Exemplary, if the plurality of preset color value intervals includes: a first section, a second section, a third section, and a fourth section. If the first image includes: the color information of the pixel point A is a first value, the color information of the pixel point B is a second value, the color information of the pixel point C is a third value, the color information of the pixel point D is a fourth value, and the color information of the pixel point E is a fifth value. Wherein, the first value and the fifth value are in the first interval, the second value is in the second interval, the third value and the fourth value are in the third interval, and the plurality of target pixel points comprise: pixel a (or pixel E), pixel B, and pixel C (or pixel D), i.e., the target number is 3.
The technical scheme provided by the embodiment at least brings the following beneficial effects: the color information of the pixel point includes a color value. Comparing the color values of all the pixel points in the first image with a plurality of preset color value intervals, and determining a plurality of target pixel points of the first image, wherein the preset color value intervals of the color values of each target pixel point in the plurality of target pixel points are different. Then, a target number of the first image is determined. Thus, the color gradation and the target focal length information of the image can be determined by the number of the color values of the pixel points. Therefore, the automatic focusing can be realized only by the front-end technology, the process is simpler, and the complexity of realizing the automatic focusing is reduced.
As another possible implementation, for each image, the target number of each image is determined according to the second operation. The second operation includes: and comparing the color values of all the pixel points in the first image with a plurality of preset color value intervals to determine a plurality of target color value intervals, wherein each target color value interval in the plurality of target color value intervals is different. A target number of the first image is determined, the target number of the first image being indicative of a number of a plurality of target color value intervals of the first image.
Exemplary, if the plurality of preset color value intervals includes: a first section, a second section, a third section, and a fourth section. If the first image includes: the color information of the pixel point A is a first value, the color information of the pixel point B is a second value, the color information of the pixel point C is a third value, the color information of the pixel point D is a fourth value, and the color information of the pixel point E is a fifth value. Wherein, the first value and the fifth value are in the first interval, the second value is in the second interval, the third value and the fourth value are in the third interval, and the plurality of target color value intervals comprise: the first interval, the second interval, and the third interval, i.e., the target number is 3.
The technical scheme provided by the embodiment at least brings the following beneficial effects: and comparing the color values of all the pixel points in the first image with a plurality of preset color value intervals to determine a plurality of target color value intervals, wherein each target color value interval in the plurality of target color value intervals is different. Then, a target number of the first image is determined, the target number of the first image being indicative of a number of a plurality of target color value intervals of the first image. Thus, the color gradation and the target focal length information of the image can be determined by the number of the color values of the pixel points. Therefore, the automatic focusing can be realized only by the front-end technology, the process is simpler, and the complexity of realizing the automatic focusing is reduced.
302. And determining target images according to the target quantity of each image.
The target image is the image with the largest target number in the plurality of images.
As one possible implementation, the target number of the plurality of images is compared to determine a maximum target number. Thereafter, the image corresponding to the largest target number (i.e., target image) is determined.
For example, if the target number of images a is 1500, the target number of images B is 2500, the target number of images C is 4000, the target number of images D is 2000, and the target number of images E is 3000, the target image is image C.
303. And determining target focal length information according to the focal length information corresponding to the target image.
Illustratively, if the plurality of images includes: image a, image B, image C, and image D. The image A is an image acquired according to the focal length information A, the image B is an image acquired according to the focal length information B, the image C is an image acquired according to the focal length information C, and the image D is an image acquired according to the focal length information D. If the target image is image C, the target focal length information is focal length information C.
The technical scheme provided by the embodiment at least brings the following beneficial effects: and determining the target quantity of each image according to the color information of all the pixel points in each image. And determining target images according to the target quantity of each image. And determining target focal length information according to the focal length information corresponding to the target image. Therefore, the color level of the image can be identified through the front-end technology (the color information of the pixel points), so that the target focal length information is determined, and the complexity of realizing automatic focusing is reduced.
In one embodiment, a capture operation may be received for triggering capturing an image prior to capturing a plurality of images in accordance with a plurality of focal length information. After that, after the target focal length information is determined, the target image may be saved.
In one possible implementation, a plurality of images are acquired in accordance with a plurality of focal length information in response to a photographing operation.
For example, taking a mobile phone as an example, after the shooting application is started, the shooting operation is received, and steps 201 to 203 may be performed, and then, the target image may be saved as the image shot at this time.
The technical scheme provided by the embodiment at least brings the following beneficial effects: and receiving shooting operation, wherein the shooting operation is used for triggering shooting images. After the target focal length information is determined, the target image may be saved. That is, after receiving the photographing operation, the embodiment of the present disclosure may be performed, and the image with the highest color gradation may be saved as the image photographed at this time. Thus, the automatic focusing process can be simplified, and the complexity of realizing automatic focusing is reduced.
In one embodiment, after the target focal length information is determined, the focal length information is adjusted to the target focal length information, a shooting preview page is displayed, the shooting preview page comprises an image to be shot, and the image to be shot is an image acquired according to the target focal length information. Then, in response to the photographing operation, an image to be photographed is photographed in accordance with the target focal length information. Then, the target image is saved.
Illustratively, after the shooting application is started, taking a mobile phone as an example, steps 201-203 may be performed. And then, the camera of the mobile phone can be adjusted to target focal length information, and a shooting preview page is displayed on a display screen of the mobile phone. Then, in response to a photographing operation by the user, an image may be photographed in accordance with the target focal length information.
The technical scheme provided by the embodiment at least brings the following beneficial effects: the focal length information is adjusted to target focal length information. And displaying a shooting preview page, wherein the shooting preview page comprises an image to be shot, and the image to be shot is an image acquired according to the target focal length information. In response to the photographing operation, an image to be photographed is photographed in accordance with the target focal length information. That is, after the target focal length information is determined, a photographing operation may be received, and an image may be photographed in accordance with the target focal length information. Thus, the automatic focusing process can be simplified, and the complexity of realizing automatic focusing is reduced.
It will be appreciated that the above method may be implemented by an auto-focus device. In order to achieve the above functions, the automatic focusing device comprises a hardware structure and/or a software module corresponding to each function. Those of skill in the art will readily appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present disclosure.
The embodiments of the present disclosure may divide the functional modules of the auto-focusing apparatus and the like according to the above method examples, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present disclosure, the division of the modules is merely a logic function division, and other division manners may be implemented in actual practice.
Fig. 4 is a block diagram illustrating a structure of an auto-focusing apparatus according to an exemplary embodiment. Referring to fig. 4, the auto-focusing apparatus 40 includes an acquisition unit 41, a processing unit 42, and a display unit 43.
The acquisition unit 41 is configured to perform acquisition of a plurality of images in accordance with a plurality of focal length information, one image for each of the plurality of focal length information. The processing unit 42 is configured to perform acquisition of color information of all pixel points of each of the plurality of images. The processing unit 42 is further configured to determine target focal length information according to color information of all pixel points in each image, where the target focal length information is focal length information corresponding to a target image, and the target image is an image with a highest color hierarchy in the multiple images.
Optionally, the acquisition unit 41 is further configured to perform sequential acquisition of the plurality of images through the plurality of focal length information in a preset order, wherein the preset order is an order of focal length information from small to large, or an order of focal length information from large to small. The sequence of the color gradation changes of the plurality of images corresponding to the plurality of focal length information is as follows: the transition from low to high to low.
Optionally, the target image is an image with the largest target number in the multiple images, the target number is the number of pixels with different color information in all pixels of the image, and the target number is used for representing the color hierarchy of the image.
Optionally, the processing unit 42 is specifically configured to determine the target number of each image according to the color information of all the pixels in each image. And determining target images according to the target quantity of each image. And determining target focal length information according to the focal length information corresponding to the target image.
Optionally, the processing unit 42 is specifically configured to perform, for each image, determining a target number for each image according to the first operation; the first operation includes: comparing the color values of all the pixel points in the first image with a plurality of preset color value intervals, determining a plurality of target pixel points of the first image, wherein the preset color value intervals of the color values of each target pixel point in the plurality of target pixel points are different, and the first image is any image in the plurality of images. A target number of the first image is determined, the target number of the first image being indicative of a number of target pixels in the first image.
Optionally, the processing unit 42 is further specifically configured to perform, for each image, determining a target number for each image according to the second operation; the second operation includes: and comparing the color values of all the pixel points in the first image with a plurality of preset color value intervals to determine a plurality of target color value intervals, wherein each target color value interval in the plurality of target color value intervals is different. A target number of the first image is determined, the target number of the first image being indicative of a number of a plurality of target color value intervals of the first image.
Optionally, the processing unit 42 is further configured to perform a receiving photographing operation, the photographing operation being used to trigger photographing of an image. The processing unit 42 is further configured to execute saving the target image.
Optionally, the processing unit 42 is further configured to perform the adjusting of the focal length information to the target focal length information. The display unit 43 is configured to perform display of a shooting preview page, where the shooting preview page includes an image to be shot, and the image to be shot is an image acquired according to the target focal length information. The acquisition unit 41 is further configured to perform shooting of an image to be shot in accordance with the target focal length information in response to the shooting operation.
The specific manner in which the various modules perform the operations in relation to the autofocus apparatus of the above embodiments has been described in detail in relation to the embodiments of the method and will not be described in detail here.
Fig. 5 is a schematic structural view of an auto-focusing device 50 provided in the present disclosure. As shown in fig. 5, the auto-focusing apparatus 50 may include at least one processor 501 and a memory 503 for storing instructions executable by the processor 501. Wherein the processor 501 is configured to execute instructions in the memory 503 to implement the auto-focusing method in the above-described embodiments.
In addition, the autofocus device 50 may also include a communication bus 502 and at least one communication interface 504.
The processor 501 may be a GPU, a micro-processing unit, an ASIC, or one or more integrated circuits for controlling the execution of the programs of the present disclosure.
Communication bus 502 may include a path to transfer information between the aforementioned components.
Communication interface 504, using any transceiver-like device for communicating with other devices or communication networks, such as ethernet, radio access network (radio access network, RAN), wireless local area network (wireless local area networks, WLAN), etc.
The memory 503 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc (compact disc read-only memory) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be stand alone and be connected to the processing unit by a bus. The memory may also be integrated with the processing unit as a volatile storage medium in the GPU.
Wherein the memory 503 is used to store instructions for performing the disclosed aspects and is controlled for execution by the processor 501. The processor 501 is configured to execute instructions stored in the memory 503 to implement the functions in the methods of the present disclosure.
In a particular implementation, as one embodiment, processor 501 may include one or more GPUs, such as GPU0 and GPU1 in fig. 5.
In a specific implementation, as an embodiment, the auto-focusing apparatus 50 may include a plurality of processors, such as the processor 501 and the processor 507 in fig. 5. Each of these processors may be a single-core (single-CPU) processor or may be a multi-core (multi-GPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In a specific implementation, as an embodiment, the apparatus 50 for auto-focusing may further include an output device 505 and an input device 506. The output device 505 communicates with the processor 501 and may display information in a variety of ways. For example, the output device 505 may be a liquid crystal display (liquid crystal display, LCD), a light emitting diode (light emitting diode, LED) display device, a Cathode Ray Tube (CRT) display device, or a projector (projector), or the like. The input device 506 communicates with the processor 501 and may accept user input in a variety of ways. For example, the input device 506 may be a mouse, a keyboard, a touch screen device, a sensing device, or the like.
It will be appreciated by those skilled in the art that the configuration shown in fig. 5 is not limiting of the autofocus device 50 and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
The present disclosure also provides a computer-readable storage medium having instructions stored thereon, which when executed by a processor of a terminal, enable the terminal to perform the group communication method provided by the embodiments of the present disclosure described above.
The disclosed embodiments also provide a computer program product containing instructions that, when run on a terminal, cause the terminal to perform the auto-focusing method provided by the disclosed embodiments described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. An auto-focusing method, applied to a terminal, comprising:
collecting a plurality of images according to a plurality of focal length information, wherein each focal length information in the plurality of focal length information corresponds to one image;
acquiring color information of all pixel points of each image in the plurality of images;
determining target focal length information according to the color information of all the pixel points in each image, wherein the target focal length information is focal length information corresponding to a target image, the target image is the image with the highest color level in the images, the target image is the image with the largest target number in the images, the target number is the number of pixel points with different color information in all the pixel points of the images, the target number is used for representing the color level of the image, and the color level is used for representing the color richness of the image.
2. The method of claim 1, wherein acquiring a plurality of images according to a plurality of focal length information comprises:
Sequentially collecting the images according to a preset sequence through the plurality of focal length information, wherein the preset sequence is the sequence from small to large of the focal length information or the sequence from large to small of the focal length information;
the sequence of the color gradation changes of the plurality of images corresponding to the plurality of focal length information is as follows: the transition from low to high to low.
3. The method according to claim 1 or 2, wherein determining the target focal length information according to the color information of all the pixels in each image comprises:
determining the target number of each image according to the color information of all pixel points in each image;
determining the target image according to the target number of each image;
and determining the target focal length information according to the focal length information corresponding to the target image.
4. A method according to claim 3, wherein the color information of the pixel points includes color values, and the determining the target number of each image according to the color information of all the pixel points in each image includes:
for each image, determining a target number of each image according to a first operation; the first operation includes:
Comparing color values of all pixel points in a first image with a plurality of preset color value intervals, and determining a plurality of target pixel points of the first image, wherein the preset color value intervals of the color values of each target pixel point in the plurality of target pixel points are different, and the first image is any image in the plurality of images;
the target number of the first image is determined, the target number of the first image being used to indicate the number of the plurality of target pixels in the first image.
5. The method of claim 4, wherein determining the target number for each image based on color information of all pixels in each image, further comprises:
for each image, determining a target number of each image according to a second operation; the second operation includes:
comparing the color values of all pixel points in the first image with a plurality of preset color value intervals to determine a plurality of target color value intervals, wherein each target color value interval in the plurality of target color value intervals is different;
the target number of the first image is determined, the target number of the first image being used to indicate a number of the plurality of target color value intervals of the first image.
6. The method of claim 5, wherein prior to said capturing a plurality of images in accordance with a plurality of focal length information, the method further comprises:
receiving a shooting operation, wherein the shooting operation is used for triggering shooting images;
after determining the target focal length information, the method further comprises:
and saving the target image.
7. The method of claim 5, wherein after determining the target focal length information, the method further comprises:
adjusting focal length information to the target focal length information;
displaying a shooting preview page, wherein the shooting preview page comprises an image to be shot, and the image to be shot is an image acquired according to the target focal length information;
and responding to shooting operation, and shooting the image to be shot according to the target focal length information.
8. An automatic focusing device, characterized by being applied to a terminal, comprising:
an acquisition unit configured to perform acquisition of a plurality of images in accordance with a plurality of focal length information, each of the plurality of focal length information corresponding to one image;
a processing unit configured to perform acquisition of color information of all pixel points of each of the plurality of images;
The processing unit is further configured to determine target focal length information according to color information of all pixel points in each image, the target focal length information is focal length information corresponding to a target image, the target image is an image with highest color level in the plurality of images, the target image is an image with largest target number in the plurality of images, the target number is the number of pixel points with different color information in all pixel points of the image, the target number is used for representing color levels of the image, and the color levels are used for representing color richness of the image.
9. The apparatus for auto-focusing according to claim 8, wherein,
the acquisition unit is further configured to sequentially acquire the plurality of images through the plurality of focal length information according to a preset sequence, wherein the preset sequence is a sequence from small to large of the focal length information or a sequence from large to small of the focal length information;
the sequence of the color gradation changes of the plurality of images corresponding to the plurality of focal length information is as follows: the transition from low to high to low.
10. The autofocus device according to claim 8 or 9, characterized in that the processing unit is in particular configured to perform,
Determining the target number of each image according to the color information of all pixel points in each image;
determining the target image according to the target number of each image;
and determining the target focal length information according to the focal length information corresponding to the target image.
11. The autofocus device according to claim 10, characterized in that said processing unit is in particular configured to perform,
for each image, determining a target number of each image according to a first operation; the first operation includes:
comparing color values of all pixel points in a first image with a plurality of preset color value intervals, and determining a plurality of target pixel points of the first image, wherein the preset color value intervals of the color values of each target pixel point in the plurality of target pixel points are different, and the first image is any image in the plurality of images;
the target number of the first image is determined, the target number of the first image being used to indicate the number of the plurality of target pixels in the first image.
12. The autofocus device according to claim 11, wherein the processing unit is further specifically configured to perform,
For each image, determining a target number of each image according to a second operation; the second operation includes:
comparing the color values of all pixel points in the first image with a plurality of preset color value intervals to determine a plurality of target color value intervals, wherein each target color value interval in the plurality of target color value intervals is different;
the target number of the first image is determined, the target number of the first image being used to indicate a number of the plurality of target color value intervals of the first image.
13. The autofocus device of claim 12, wherein the device,
the processing unit is further configured to execute a receiving shooting operation, wherein the shooting operation is used for triggering shooting images;
the processing unit is further configured to perform saving of the target image.
14. The autofocus device of claim 12, wherein the device,
the processing unit is further configured to perform adjustment of focus information to the target focus information;
a display unit configured to perform display of a shooting preview page, the shooting preview page including an image to be shot, the image to be shot being an image acquired according to the target focal length information;
The acquisition unit is further configured to perform shooting of the image to be shot according to the target focal length information in response to shooting operation.
15. A terminal, the terminal comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of auto-focusing as claimed in any one of claims 1-7.
16. A computer readable storage medium having instructions stored thereon, which, when executed by a processor of a terminal, enable the terminal to perform the method of auto-focusing according to any one of claims 1-7.
CN202111536844.4A 2021-12-15 2021-12-15 Automatic focusing method, device, equipment and storage medium Active CN114390195B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111536844.4A CN114390195B (en) 2021-12-15 2021-12-15 Automatic focusing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111536844.4A CN114390195B (en) 2021-12-15 2021-12-15 Automatic focusing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114390195A CN114390195A (en) 2022-04-22
CN114390195B true CN114390195B (en) 2024-03-22

Family

ID=81198183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111536844.4A Active CN114390195B (en) 2021-12-15 2021-12-15 Automatic focusing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114390195B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024130469A1 (en) * 2022-12-19 2024-06-27 京东方科技集团股份有限公司 Focusing control method, apparatus and system, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW397930B (en) * 1999-11-30 2000-07-11 Dynacolor Inc The multi-focus picturing method and its device
JP2004184634A (en) * 2002-12-02 2004-07-02 Lapole System:Kk Automatic focusing method and device
JP2005250401A (en) * 2004-03-08 2005-09-15 Kodak Digital Product Center Japan Ltd Method for detecting focal distance and focusing device
JP2009069303A (en) * 2007-09-11 2009-04-02 Olympus Imaging Corp Camera
CN102891966A (en) * 2012-10-29 2013-01-23 珠海全志科技股份有限公司 Focusing method and device for digital imaging device
CN106412423A (en) * 2016-09-19 2017-02-15 珠海格力电器股份有限公司 Focusing method and device
CN112261292A (en) * 2020-10-20 2021-01-22 Oppo广东移动通信有限公司 Image acquisition method, terminal, chip and storage medium
CN113545030A (en) * 2019-09-30 2021-10-22 谷歌有限责任公司 Automatic generation of full focus images by moving camera

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW397930B (en) * 1999-11-30 2000-07-11 Dynacolor Inc The multi-focus picturing method and its device
JP2004184634A (en) * 2002-12-02 2004-07-02 Lapole System:Kk Automatic focusing method and device
JP2005250401A (en) * 2004-03-08 2005-09-15 Kodak Digital Product Center Japan Ltd Method for detecting focal distance and focusing device
JP2009069303A (en) * 2007-09-11 2009-04-02 Olympus Imaging Corp Camera
CN102891966A (en) * 2012-10-29 2013-01-23 珠海全志科技股份有限公司 Focusing method and device for digital imaging device
CN106412423A (en) * 2016-09-19 2017-02-15 珠海格力电器股份有限公司 Focusing method and device
CN113545030A (en) * 2019-09-30 2021-10-22 谷歌有限责任公司 Automatic generation of full focus images by moving camera
CN112261292A (en) * 2020-10-20 2021-01-22 Oppo广东移动通信有限公司 Image acquisition method, terminal, chip and storage medium

Also Published As

Publication number Publication date
CN114390195A (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN110502954B (en) Video analysis method and device
CN113905179B (en) Method for switching cameras by terminal and terminal
CN110110787A (en) Location acquiring method, device, computer equipment and the storage medium of target
CN112351156B (en) Lens switching method and device
KR20150077646A (en) Image processing apparatus and method
WO2022100685A1 (en) Drawing command processing method and related device therefor
CN110380904B (en) Bandwidth allocation method and device, electronic equipment and storage medium
CN109302632B (en) Method, device, terminal and storage medium for acquiring live video picture
KR20160038460A (en) Electronic device and control method of the same
CN110138999B (en) Certificate scanning method and device for mobile terminal
CN113763228B (en) Image processing method, device, electronic equipment and storage medium
CN112087649B (en) Equipment searching method and electronic equipment
US20240119566A1 (en) Image processing method and apparatus, and electronic device
CN110248037B (en) Identity document scanning method and device
CN111144365A (en) Living body detection method, living body detection device, computer equipment and storage medium
WO2021179186A1 (en) Focusing method and apparatus, and electronic device
CN112581358A (en) Training method of image processing model, image processing method and device
CN112099741A (en) Display screen position identification method, electronic device and computer readable storage medium
CN115150542B (en) Video anti-shake method and related equipment
CN114390195B (en) Automatic focusing method, device, equipment and storage medium
WO2018219274A1 (en) Method and apparatus for denoising processing, storage medium and terminal
WO2022033344A1 (en) Video stabilization method, and terminal device and computer-readable storage medium
CN115798417A (en) Backlight brightness determination method, device, equipment and computer readable storage medium
CN117880645A (en) Image processing method and device, electronic equipment and storage medium
WO2022062902A1 (en) File transfer method and electronic device

Legal Events

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