WO2019061079A1 - Focusing processing method and device - Google Patents

Focusing processing method and device Download PDF

Info

Publication number
WO2019061079A1
WO2019061079A1 PCT/CN2017/103697 CN2017103697W WO2019061079A1 WO 2019061079 A1 WO2019061079 A1 WO 2019061079A1 CN 2017103697 W CN2017103697 W CN 2017103697W WO 2019061079 A1 WO2019061079 A1 WO 2019061079A1
Authority
WO
WIPO (PCT)
Prior art keywords
target object
focus
image
contrast
determining
Prior art date
Application number
PCT/CN2017/103697
Other languages
French (fr)
Chinese (zh)
Inventor
封旭阳
赵丛
钱杰
余俊峰
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2017/103697 priority Critical patent/WO2019061079A1/en
Priority to CN201780004744.2A priority patent/CN108496350B/en
Publication of WO2019061079A1 publication Critical patent/WO2019061079A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/166Detection; Localisation; Normalisation using acquisition arrangements
    • 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

Definitions

  • the present invention relates to the field of control technologies, and in particular, to a focus processing method and apparatus.
  • the method of autofocus is generally divided into active and passive.
  • active is to measure the distance between camera and object actively;
  • passive is to use phase focusing method or contrast detection focusing method, where phase focusing requires special sensor support.
  • Contrast focus is still the way most ordinary digital cameras use it.
  • the Contrast Detection Auto Focus (CDAF) mainly detects the highest contrast by adjusting the contrast information of the focus subject, that is, determining the focus. Contrast focusing usually does not require a spectroscopic device, so layout and operation are more flexible and less expensive.
  • the existing contrast focusing algorithm requires multiple iterations, and the focus is adjusted back and forth to the opposite direction to search for the focus position with the highest contrast, causing a short-distance flashing "breathing effect" on the video, and the focusing speed is limited. If the target object is in motion on the screen and the position changes too much, it is easy to fail focus.
  • the embodiment of the invention provides a focus processing method and device, which can automatically track and focus on a moving target object, optimize the focusing effect, and improve the focusing efficiency.
  • an embodiment of the present invention provides a focus processing method, including:
  • an embodiment of the present invention provides a focus processing device, including a memory and a processor;
  • the memory is configured to store program instructions
  • the processor executes program instructions stored in the memory, and when the program instructions are executed, the processor is configured to perform the following steps:
  • an embodiment of the present invention provides a computer readable storage medium storing a computer program, which when executed by a processor, implements the focus processing method according to the first aspect described above.
  • an auto-focusing direction is determined according to the moving direction by acquiring a moving direction of the target object with respect to the image capturing device, and automatic focusing is performed according to the auto-focusing direction to perform the target focusing on the target object.
  • Focusing which automatically performs tracking and focusing processing, optimizes the focusing effect, and improves the focusing efficiency.
  • FIG. 1 is a schematic flow chart of a focus processing method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a scene of focusing processing according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of contrast difference of different focus positions according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a focus evaluation function according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a hill climbing search algorithm according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart diagram of another focus processing method according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a focus processing device according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of another focus processing device according to an embodiment of the present invention.
  • the focus processing method provided by the embodiment of the present invention may be performed by a focus processing apparatus, or in other embodiments, the focus processing method may be applied to an image pickup apparatus such as a camera, and may be used for photographing, aerial photography, and motion photography. Etc., the following is an example of a focus processing method for use on an image pickup apparatus.
  • the scheme adopts the visual target tracking algorithm to assist the auto-focusing.
  • the target object's motion trend can be accurately estimated, and the target object's near-farming trend can be provided to obtain the judgment.
  • the auto-focusing direction is determined, thereby greatly optimizing the focusing effect on the target object during the movement, reducing the focus failure or focusing on the background, and also targeting the target object.
  • the position change on the screen has an accurate positioning. Wherein, if for a specific category of objects, such as a human face, face detection of consecutive frames can be used instead of the target tracking algorithm, and changes in target movement and size can also be obtained.
  • the embodiment of the invention captures an acquired image by the camera device, and recognizes and acquires the target object according to the obtained user operation in the image.
  • the focus processing device may use the target tracking algorithm to detect the transformed state information such as the size or position information of the target object in the image, and determine the moving direction of the target object relative to the camera device according to the changed state information.
  • the focus processing device may also acquire the position coordinates of the target object according to the positioning device, thereby determining the moving direction of the target object relative to the imaging device.
  • the focus processing apparatus may further determine a moving direction of the target object with respect to the imaging device by acquiring a depth map of the target object.
  • the focus processing device may determine an auto focus direction according to the moving direction, and perform auto focus according to the auto focus direction to focus the target object. .
  • a focus processing method is described by taking a corresponding processing by a focus processing device as an example.
  • FIG. 1 is a schematic flowchart of a focus processing method according to an embodiment of the present invention, which may be performed by a focus processing device, wherein a specific explanation of the focus processing device is as described above. Specifically, the method of the embodiment of the present invention includes the following steps.
  • S101 Acquire a moving direction of the target object with respect to the imaging device.
  • the focus processing device can acquire the moving direction of the target object with respect to the imaging device.
  • FIG. 2 the application scenario of the embodiment of the present invention is shown in FIG. 2, and FIG. 2 is an embodiment of the present invention.
  • the application scenario of the embodiment of the present invention includes an imaging device shown by 201 and a target object shown by 202.
  • the focus processing device can capture the target object 202 by using the camera 201, and the target object 202 is movable.
  • the focus processing device can acquire the target object while moving.
  • the moving direction for example, the moving direction of the target object 202 with respect to the image pickup device 201 is moving toward the vicinity of the image pickup device 201, at which time the target object captured by the image pickup device becomes blurred; or the movement of the target object 202 with respect to the image pickup device 201
  • the direction is moving away from the imaging device 201, and the target object captured by the imaging device is blurred at this time. Therefore, when the target object moves, it is necessary to acquire the moving direction of the target object with respect to the image pickup device, so that the focus focus can be adjusted according to the moving direction.
  • the focus processing device may detect the change state information of the target object in the image by visually recognizing the target object, wherein the state information includes a size of the target object in the image or in the image. Location area.
  • the focus processing device determines a moving direction of the target object with respect to the image pickup device based on the change state information.
  • the focus processing apparatus can recognize a target person (target object) in the captured image by visually recognizing the user, and then detect change information of the size of the target person (target object) to be photographed in the image. Or detecting change information of a position area of the person (target object) to be photographed in the image.
  • the moving direction of the target person with respect to the image pickup device is moving toward a direction close to the image pickup device; if the target person is detected to be When the positional area in the image becomes small, it is determined that the moving direction of the target person with respect to the imaging device is moving away from the imaging device.
  • the focus processing device may also acquire the position coordinates of the target object by using a positioning device carried by the target object, and determine a moving direction of the target object relative to the camera device according to the position coordinates.
  • a positioning device such as a Global Positioning System (GPS), an Ultra Wideband (UWB), or the like
  • the focus processing device can utilize the The positioning device, such as GPS, UWB, or the like, carried by the target object acquires the position coordinates of the target object, and obtains a change in the distance of the target object relative to the imaging device, and determines, according to the position coordinates, the target object In the moving direction of the imaging device.
  • the focus processing The device may acquire the position coordinates of the target object by using the GPS positioning device, and determine a moving direction of the target object relative to the camera device according to the position coordinates.
  • the focus processing device may further acquire a depth map of the target object, and determine a moving direction of the target object relative to the camera device according to the acquired depth map.
  • the focus processing device may acquire a distance (depth) of the target object from the camera device, and use an image composed of the distance as a depth map, and the focus processing device may determine the target according to the acquired depth map.
  • the direction of movement of the object relative to the camera For example, the focus processing device acquires an image in which the initial distance (depth) of the target object from the imaging device is 1 m, and the current distance of the target object from the imaging device is 1.5 m, and the two distances are formed.
  • the focus processing apparatus may determine that the moving direction of the target object relative to the image pickup device is moving away from the image pickup device according to the change of the two distances.
  • S102 Determine an auto focus direction according to the moving direction, and perform auto focus according to the auto focus direction to focus on the target object.
  • the focus processing device may determine an auto focus direction according to the moving direction, and perform auto focus according to the auto focus direction to focus on the target object. Specifically, the focus processing device assists autofocus by combining the moving direction of the target object. Firstly, by providing a judgment of the trend of the target object, the focus direction of the target is preferentially adjusted, the convergence speed is accelerated, and the back and forth are reduced. Search for breathing phenomena.
  • the contrast detection focus depends on the continuous frame, before and after changing the focus distance, according to the change trend of the contrast in a certain area of the image, it is judged whether the current focus change direction is consistent with the correct direction, and the comparison premise of the contrast change It is based on the image that the target object in the region is not moving. If the target object moves, and the contrast of the front and rear statistics is based on different scenes, the change values of the front and rear frames have no reference meaning for focusing. However, combined with the moving direction of the target object, the contrast of the front and rear frame statistics can be based on the image of the same target object, and can be dynamically changed in the focus process according to the movement of the target object on the screen, which greatly increases the target object. Focus success rate during exercise.
  • the focus processing device may implement auto-focusing in conjunction with the moving direction and contrast detection algorithm of the target object, or may combine the moving direction of the target object and phase detection to achieve auto-focusing.
  • the contrast detection focus is mainly by detecting the highest contrast in the process of adjusting the focus contrast information of the image in the image, that is, to determine the focus, the contrast detection focus usually does not require the spectroscopic device, so More flexible layout and operation This is also lower.
  • Phase detection focus is achieved by finding the point with the smallest aberration. A certain point of the object will emit light from all directions through the lens and image onto the sensor. When the light in different directions falls to the same position of the sensor, The aberration is the smallest.
  • phase detection to focus the focus itself is fast, but when using focus to detect focus, the focus itself is slightly slower when using contrast detection, but the entire focus "process" is not necessarily slow because there is no reflector Two extra moves.
  • the focus processing device may perform image tracking processing on the target object, and obtain the target object. a position area in the image, a contrast of the captured image is calculated according to the position area, and a focus focus of the target object is determined according to the contrast.
  • the target object is movable, and when the target object is moving, the focus processing device may perform image tracking processing on the moved target object, thereby obtaining a location area of the target object in the image, and A contrast of the captured image is calculated based on the location area, and a focus focus of the target object is determined according to the contrast.
  • the contrast of the different position areas is different. As shown in FIG. 3, FIG.
  • 3 is a schematic diagram of contrast difference of different focus positions according to an embodiment of the present invention, wherein 301 shows a contrast change of the focus position. 302 shows the contrast change of another different focus position. As can be seen from 301 and 302 of FIG. 3, the focus positions are different, and the acquired contrast is different.
  • the contrast is obtained based on a focus evaluation function score of the image contrast design.
  • FIG. 4 is a schematic diagram of a focus evaluation function according to an embodiment of the present invention.
  • the abscissa x is the focus position
  • the ordinate y is the focus evaluation function score
  • the established coordinate function 401 shows the focus evaluation function score at the time of near focus
  • 402 shows the focus evaluation function score at the time of the focus
  • 403 shows the focus evaluation function score at the far focus.
  • the ideal focus evaluation function has the following characteristics: unimodality, that is, an extreme value in the range of tuning; unbiased is the focus evaluation function when the system is in the best focus state. Give the maximum or minimum value; the polarity that can reflect the defocus, ie, before or after the focus; can resist all kinds of noise.
  • the focus processing device performs image tracking processing on the target object to obtain an image in the initial region of the current image frame and the previous image frame when the target region is obtained in the image. Comparing the images of the location area where the target object is located, wherein the initial area is the location area of the target object in the current image frame, if the similarity is greater than the preset The similarity threshold determines the initial region as the location region in which the target object is located in the current image frame.
  • the focus processing device compares the image in the initial region of the current image frame with the image of the location region in which the target object is located in the previous image frame, and the acquired similarity is 95%, and the preset similarity is The threshold is 90%, 95%>90%, so the focus processing device can determine the initial region as the location region in which the target object is located in the current image frame.
  • the focus processing device detects that the sharpness of the current image frame is less than a preset sharpness threshold, the preset similarity threshold may be lowered. Further, if the focus processing device detects that the resolution of the current image frame is less than a preset definition threshold, the image tracking algorithm based on the color information may be selected, or the weight of the color distribution in the image tracking algorithm may be adjusted.
  • the target object performs image tracking processing. For example, if the focus processing device detects that the current image frame has a sharpness of 50% and the preset sharpness threshold is 60%, 50% ⁇ 60%, the focus processing device can pass the preset similarity. The threshold is reduced by 90%, and image tracking processing is performed on the target object.
  • the focus processing device may select image tracking based on the color information.
  • the algorithm or the weight of the color distribution in the image tracking algorithm is adjusted, and the target object is subjected to image tracking processing.
  • the focus processing device determines the contrast tracking algorithm based on gradient information or frequency domain information when focusing on the moving target object. After the possible out of focus, the preset contrast threshold in the target tracking algorithm is adaptively reduced, and the implementation can achieve continuous tracking on the blurred image.
  • the focus processing device when focusing on the moving target object, can also fuse the focus evaluation function and the target tracking algorithm through the pre-trained model. Adjusting the contrast threshold preset in the target tracking algorithm adaptively according to the focusing effect, the implementation can not only keep track of the target object, but also maintain the accuracy of the tracking, avoiding the wrong or missing target object.
  • the focus processing device acquires the captured image by the image capturing device, acquires the target object and the moving direction of the target object with respect to the image capturing device, determines an automatic focusing direction according to the moving direction, and according to the Auto-focusing is performed in the auto-focusing direction to focus on the target object.
  • FIG. 6 is a schematic flowchart diagram of another focus processing method according to an embodiment of the present invention, which may be performed by a focus processing device, wherein a specific explanation of the focus processing device is as described above.
  • the method of the embodiment of the invention comprises the following steps.
  • S601 Determine a target object according to the captured image.
  • the focus processing device may determine the target object according to the captured image, wherein the target object is determined according to a selection operation in the image, or is automatically identified according to an image recognition algorithm. Specifically, the focus processing device captures an image by the image capturing device, and determines a target object that needs to be photographed according to the captured image, wherein the target object may be determined according to a user-based selection operation received in the image, or The identification is automatically identified based on the image recognition algorithm. Specifically, the focus processing device captures an image by the image capturing device. When it is detected that a user-based selection operation is received in the image, the focus processing device may determine the target object according to the received selection operation.
  • the selection operation may be a click operation, a frame selection operation, or the like, and the target object may be a specific type of object such as a human face, which is not limited in the embodiment of the present invention.
  • S602 Perform image tracking processing on the target object to obtain a size of the target object in the image or a position area in the image.
  • the focus processing device may perform image tracking processing on the target object to obtain a size of the target object in the image or a location area in the image. Specifically, it will not be elaborated here as described in the above embodiments.
  • the focus processing device may also acquire the position coordinates of the target object by using a positioning device carried by the target object, which is not described in detail herein as described in the foregoing embodiments.
  • S603 Calculate the contrast of the captured image according to the location area.
  • the focus processing device may calculate the contrast of the captured image according to the acquired location area of the target object in the image. Specifically, it will not be elaborated here as described in the above embodiments.
  • the focus processing device can detect whether the contrast of the captured image is decreased.
  • FIG. 5 is taken as an example, and FIG. 5 is the present invention.
  • a schematic diagram of a hill climbing search algorithm is provided in the embodiment.
  • 501 represents the contrast at the starting point
  • 502 represents the contrast at the best focus point
  • an arrow represents the moving direction.
  • FIG. 5 shows that the focus lens of the image pickup device moves from left to right in equal steps from the starting point 501.
  • the contrast of the image is calculated once, and if the calculated contrast is gradually increased, the moving direction is correct, according to Focus control continues in the current focus direction.
  • the focus processing device determines whether the decrease value of the contrast is less than a preset threshold.
  • the focus processing device detects the contrast drop when detecting the contrast of the captured image, and determines that the decrease value of the contrast is less than a preset threshold, determining the current focus as the target The focus of the object.
  • the imaging device of the focus processing device moves from left to right in equal steps from the starting point 501. Each time one step is moved, the contrast of the image is calculated once, and if the calculated contrast is gradually increased, The movement direction is correct.
  • the contrast reaches 502
  • the contrast decreases for the first time, and if the decrease value of the contrast acquired at 502 is less than the preset threshold, the current focus of the current 502 is determined as the The focus of the target object.
  • the embodiment avoids the phenomenon that the camera device searches for the best focus point by searching back and forth in the prior art, speeds up the convergence, and increases the focus success rate when the target object moves.
  • the focus processing device determines that the decrease value of the contrast is not less than a preset threshold, detecting a size of the target object in the image or a change in the position region in the image.
  • a preset threshold detecting a size of the target object in the image or a change in the position region in the image.
  • step S609 If it is detected that the size or the positional area becomes large, the direction close to the imaging device is determined as the autofocusing direction, and step S612 is performed.
  • the focus processing device detects that the size or the position area becomes large, the direction close to the image pickup device is determined as the auto focus direction.
  • the direction close to the image pickup device is determined as the auto focus direction.
  • the focus direction is automatically adjusted, and the target is focused according to the auto focus direction.
  • step S610 If it is detected that the size or the positional area becomes smaller, the direction away from the imaging device is determined as the auto-focusing direction, and step S612 is performed.
  • the focus processing device when detecting the size of the target object in the image or the change of the position area in the image, if the size or the location area is detected to be small, the focus processing device will be far away from the camera device.
  • the direction is determined as the auto focus direction. Taking FIG. 5 as an example, when the contrast reaches 503, the decrease value of the contrast is not less than a preset threshold. If the size of the target object in the image or the positional area in the image is detected to be small at this time, The direction away from the imaging device is determined as an auto-focusing direction, and focusing on the target object is performed according to the auto-focusing direction.
  • step S611 If the size or the location area is detected to be unchanged, the direction opposite to the focusing direction is determined as the auto-focusing direction, and step S612 is performed.
  • the focus processing device detects a change in the size of the target object in the image or a position region in the image, and if the size or the position region is detected to be unchanged, the focus direction is The opposite direction is determined as the auto focus direction.
  • the contrast value of the contrast is not less than a preset threshold. If the size of the target object in the image or the positional area in the image is detected at this time, A direction opposite to the focusing direction is determined as an auto-focusing direction, and focusing on the target object is performed according to the auto-focusing direction.
  • S612 Focus the target object according to the autofocus direction.
  • the focus processing device may determine the focus focus of the target object according to the auto focus direction, and perform focus control on the target object.
  • the focus processing device acquires the captured image by the image capturing device, acquires the target object from the image, performs image tracking processing on the target object, and obtains the size of the target object in the image or the position region in the image. Calculating a contrast of the captured image according to the location area, determining an auto-focusing direction according to the detected change in contrast and a change in a size of the target object in the image or a positional area in the image, according to the automatic adjustment Defocus direction, determine the target pair The focus of the image is focused on the target object.
  • the automatic tracking and focusing of the moving target object can be realized, the focusing effect is optimized, and the efficiency of focusing success is improved.
  • FIG. 7 is a schematic structural diagram of a focus processing device according to an embodiment of the present invention.
  • the device in the embodiment of the present invention includes: an obtaining unit 701 and a processing unit 702, where
  • the obtaining unit 701 is configured to acquire a moving direction of the target object relative to the camera device;
  • the processing unit 702 is configured to determine an auto focus direction according to the moving direction, and perform auto focus according to the auto focus direction to focus the target object.
  • the acquiring unit 701 is specifically configured to use a visual recognition target object, and detect change state information of the target object in an image, where the state information includes a size of the target object in an image or in an image. a location area; determining a moving direction of the target object with respect to the imaging device according to the change state information.
  • the acquiring unit 701 is further configured to acquire, by using a positioning device carried by the target object, location coordinates of the target object, and determine, according to the location coordinates, a moving direction of the target object relative to the camera device. .
  • the acquiring unit 701 is further configured to acquire a depth map of the target object, and determine a moving direction of the target object relative to the camera device according to the acquired depth map.
  • the device further includes a determining unit 703, where
  • the determining unit 703 is configured to determine a target object according to the captured image; wherein the target object is determined according to a selection operation in the image, or is automatically identified according to an image recognition algorithm.
  • the processing unit 702 is further configured to perform image tracking processing on the target object to obtain a location area of the target object in the image, and calculate a contrast of the captured image according to the location area; The contrast determines the focus focus of the target object.
  • the processing unit 702 is further configured to detect a contrast of the captured image; if the contrast is detected to rise, perform focus control according to the focusing direction.
  • the processing unit 702 is further configured to detect a contrast of the captured image; if the contrast is detected to decrease, determine a focus focus of the target object according to the falling value of the contrast.
  • the processing unit 702 is further configured to determine the current focus as the focus focus of the target object if the falling value of the contrast is detected to be less than a preset threshold.
  • the processing unit 702 is further configured to: if it is detected that the falling value of the contrast is not less than a preset threshold, determine an auto-focusing direction according to the change state information of the target object; according to the auto-focusing Focus control in the direction.
  • the processing unit 702 is further configured to detect a size of the target object in an image or a change in a location area in the image; if the size or the location area is detected to be large, the imaging unit is to be close to the camera.
  • the orientation of the device is determined to be the autofocus direction.
  • the processing unit 702 is further configured to detect a size of the target object in an image or a change in a location area in the image; if the size or the location area is detected to be small, the image is to be away from the camera The orientation of the device is determined to be the autofocus direction.
  • the processing unit 702 is further configured to detect a size of the target object in an image or a change in a location area in the image; if the size or the location area is detected to be unchanged, The direction in which the focal direction is opposite is determined as the autofocus direction.
  • the processing unit 702 is further configured to compare an image in an initial region of the current image frame with an image in a location region where the target object is located in a previous image frame; if the similarity is greater than a preset similarity The threshold is determined as the location area in which the target object is located in the current image frame.
  • the processing unit 702 is further configured to decrease the preset similarity threshold if it is detected that the resolution of the current image frame is less than a preset definition threshold.
  • the processing unit 702 is further configured to: if it is detected that the resolution of the current image frame is less than a preset definition threshold, select an image tracking algorithm based on the color information, or adjust the color distribution in the image tracking algorithm. Weighting, performing image tracking processing on the target object.
  • the focus processing device acquires the captured image by the determining unit 703, and acquires the target object from the image, and acquires the moving direction of the target object with respect to the imaging device by the obtaining unit 701, and the processing unit 702 according to the moving direction.
  • the auto focus direction is determined, and auto focus is performed according to the auto focus direction to focus on the target object.
  • FIG. 8 is a schematic structural diagram of another focus processing device according to an embodiment of the present invention.
  • the terminal in this embodiment as shown may include: one or more processors 801; one or more input devices 802, one or more output devices 803, and memory 804.
  • the above processor 801, input device 802, output device 803, and memory 804 are connected by a bus 805.
  • Storage The processor 802 is configured to store instructions, and the processor 801 is configured to execute instructions stored by the memory 802. Wherein, when the program instruction is executed, the processor 801 is configured to perform the following steps:
  • the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
  • Detecting change state information of the target object in an image the state information including a size of the target object in an image or a location area in an image;
  • the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
  • the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
  • the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
  • the target object is determined according to a selection operation in an image, or is automatically identified according to an image recognition algorithm.
  • the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
  • a focus focus of the target object is determined based on the contrast.
  • the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
  • the focus control is continued in accordance with the focus direction.
  • the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
  • the focus focus of the target object is determined according to the decrease value of the contrast.
  • the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
  • the current focus is determined as the focus focus of the target object.
  • the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
  • the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
  • a change in the size of the target object in the image or a positional area in the image is detected; if it is detected that the size or the positional area becomes large, the direction close to the image pickup device is determined as the autofocus direction.
  • the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
  • a change in the size of the target object in the image or a positional area in the image is detected; if it is detected that the size or the positional area becomes smaller, the direction away from the image pickup device is determined as the autofocus direction.
  • the processor 801 calls a program instruction stored in the memory 802 for executing, for example, Next steps:
  • a change in the size of the target object in the image or a positional area in the image is detected; if the size or the positional area is detected to be unchanged, a direction opposite to the focusing direction is determined as an auto-focusing direction.
  • the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
  • the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
  • the preset similarity threshold is lowered.
  • the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
  • the image tracking algorithm based on the color information, or the weight of the color distribution in the image tracking algorithm is selected, and the target object is subjected to image tracking processing.
  • the processor 801 may be a central processing unit (CPU), and the processor may also be another general-purpose processor, a digital signal processor (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the input device 802 may include a touchpad, a fingerprint sensor (for collecting fingerprint information of the user and direction information of the fingerprint), a microphone, and the like, and the output device 803 may include a display (LCD or the like), a speaker, and the like.
  • a touchpad for collecting fingerprint information of the user and direction information of the fingerprint
  • a microphone for collecting fingerprint information of the user and direction information of the fingerprint
  • the output device 803 may include a display (LCD or the like), a speaker, and the like.
  • the memory 804 can include a read only memory and a random access memory, and is directed to the processor 801. Provide instructions and data. A portion of the memory 804 may also include a non-volatile random access memory. For example, the memory 804 can also store information of the device type.
  • processor 801 for a specific implementation of the processor 801 in the embodiment of the present invention, refer to the description of related content in the foregoing embodiments, and details are not described herein.
  • the focus processing device acquires the captured image by the image capturing device, acquires the target object from the image, acquires a moving direction of the target object with respect to the image capturing device, and determines an automatic focusing direction according to the moving direction, and Autofocusing is performed according to the autofocus direction to focus on the target object.
  • An embodiment of the present invention further provides a computer readable storage medium storing a computer program, which when executed by a processor, implements the embodiment corresponding to FIG. 1 or FIG. 6 of the present invention.
  • the focus processing device of the embodiment of the present invention described in FIG. 7 or FIG. 8 can also be implemented in the manner of the focus processing method described herein, and details are not described herein again.
  • the computer readable storage medium may be an internal storage unit of the device described in any of the preceding embodiments, such as a hard disk or a memory of the device.
  • the computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (SMC), and a secure digital (SD) card. , Flash Card, etc.
  • the computer readable storage medium may also include both an internal storage unit of the device and an external storage device.
  • the computer readable storage medium is for storing the computer program and other programs and data required by the terminal.
  • the computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

The embodiments of the present invention provide a focusing processing method and a device, said method comprising: acquiring a moving direction of a target object relative to a camera device; and determining an automatic focusing direction according to the moving direction, and performing automatic focusing according to the automatic focusing direction, so as to focus the target object. The embodiments of the present invention realize focusing of the moving target object, satisfies the requirements of tracking and focusing the target object, optimizes the focusing effect, improves the efficiency of performing focusing successfully, and satisfies the requirements of the users for automatic and intelligent focusing of the moving target object.

Description

一种对焦处理方法及设备Focus processing method and device 技术领域Technical field
本发明涉及控制技术领域,尤其涉及一种对焦处理方法及设备。The present invention relates to the field of control technologies, and in particular, to a focus processing method and apparatus.
背景技术Background technique
自动对焦的方式一般分为主动式和被动式两种,其中,主动式即为主动测量相机与物体之间的距离;被动式是通过相位对焦方法或对比度检测对焦方法,其中相位对焦需要特殊的sensor支持,对比度对焦仍是大多数普通数码相机使用的方式。对比度对焦算法(Contrast Detection Auto Focus,CDAF)主要是通过在对对焦主体的对比度信息的调整过程中,检出最高对比度所在,即为判定合焦。对比度对焦通常并不需要分光设备,所以布置与操作更加灵活,成本也较低。The method of autofocus is generally divided into active and passive. Among them, active is to measure the distance between camera and object actively; passive is to use phase focusing method or contrast detection focusing method, where phase focusing requires special sensor support. Contrast focus is still the way most ordinary digital cameras use it. The Contrast Detection Auto Focus (CDAF) mainly detects the highest contrast by adjusting the contrast information of the focus subject, that is, determining the focus. Contrast focusing usually does not require a spectroscopic device, so layout and operation are more flexible and less expensive.
但现有的对比度对焦算法需要多次迭代,来回向反方向调整焦距进行搜索之后,才能搜索到对比度最大的焦点位置,对视频造成了短暂的远近闪动的“呼吸效果”,对焦速度有限,如果目标对象在画面上处于运动状态并且位置变化过大,则容易对焦失败。However, the existing contrast focusing algorithm requires multiple iterations, and the focus is adjusted back and forth to the opposite direction to search for the focus position with the highest contrast, causing a short-distance flashing "breathing effect" on the video, and the focusing speed is limited. If the target object is in motion on the screen and the position changes too much, it is easy to fail focus.
发明内容Summary of the invention
本发明实施例提供了一种对焦处理方法及设备,可对运动的目标对象进行自动跟踪对焦,优化了对焦效果,提高了对焦效率。The embodiment of the invention provides a focus processing method and device, which can automatically track and focus on a moving target object, optimize the focusing effect, and improve the focusing efficiency.
第一方面,本发明实施例提供了一种对焦处理方法,包括:In a first aspect, an embodiment of the present invention provides a focus processing method, including:
获取目标对象相对于摄像装置的移动方向;Obtaining a moving direction of the target object relative to the camera device;
根据所述移动方向确定出自动调焦方向,并按照所述自动调焦方向进行自动调焦,以对所述目标对象进行对焦。And determining an auto focus direction according to the moving direction, and performing auto focus according to the auto focus direction to focus on the target object.
第二方面,本发明实施例提供了一种对焦处理设备,包括存储器和处理器;In a second aspect, an embodiment of the present invention provides a focus processing device, including a memory and a processor;
所述存储器,用于存储程序指令;The memory is configured to store program instructions;
所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所述处理器用于执行如下步骤:The processor executes program instructions stored in the memory, and when the program instructions are executed, the processor is configured to perform the following steps:
获取目标对象相对于摄像装置的移动方向; Obtaining a moving direction of the target object relative to the camera device;
根据所述移动方向确定出自动调焦方向,并按照所述自动调焦方向进行自动调焦,以对所述目标对象进行对焦。And determining an auto focus direction according to the moving direction, and performing auto focus according to the auto focus direction to focus on the target object.
第三方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现如上述第一方面所述的对焦处理方法。In a third aspect, an embodiment of the present invention provides a computer readable storage medium storing a computer program, which when executed by a processor, implements the focus processing method according to the first aspect described above.
本发明实施例中,通过获取目标对象相对于摄像装置的移动方向,根据所述移动方向确定出自动调焦方向,并按照所述自动调焦方向进行自动调焦,以对所述目标对象进行对焦,从而实现自动地进行跟踪对焦处理,优化对焦效果,提高了对焦效率。In the embodiment of the present invention, an auto-focusing direction is determined according to the moving direction by acquiring a moving direction of the target object with respect to the image capturing device, and automatic focusing is performed according to the auto-focusing direction to perform the target focusing on the target object. Focusing, which automatically performs tracking and focusing processing, optimizes the focusing effect, and improves the focusing efficiency.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only some of the present invention. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative work.
图1是本发明实施例提供的一种对焦处理方法的示意流程图;1 is a schematic flow chart of a focus processing method according to an embodiment of the present invention;
图2是本发明实施例提供一种对焦处理的场景示意图;FIG. 2 is a schematic diagram of a scene of focusing processing according to an embodiment of the present invention; FIG.
图3是本发明实施例提供的一种不同对焦位置的对比度差异示意图;3 is a schematic diagram of contrast difference of different focus positions according to an embodiment of the present invention;
图4是本发明实施例提供的一种对焦评价函数的示意图;4 is a schematic diagram of a focus evaluation function according to an embodiment of the present invention;
图5是本发明实施例提供的一种爬山搜索算法示意图;FIG. 5 is a schematic diagram of a hill climbing search algorithm according to an embodiment of the present invention; FIG.
图6是本发明实施例提供的另一种对焦处理方法的流程示意图;FIG. 6 is a schematic flowchart diagram of another focus processing method according to an embodiment of the present invention; FIG.
图7是本发明实施例提供的一种对焦处理设备的结构示意图;7 is a schematic structural diagram of a focus processing device according to an embodiment of the present invention;
图8是本发明实施例提供的另一种对焦处理设备的结构示意图。FIG. 8 is a schematic structural diagram of another focus processing device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下, 下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present invention are described in detail below with reference to the accompanying drawings. In the absence of conflict, The features of the following embodiments and examples can be combined with each other.
在本发明实施例提供的对焦处理方法可以由一种对焦处理设备执行,或在其他实施例中,该对焦处理方法可以应用于像相机这样的摄像设备上,可用于摄影摄像、航拍、运动摄影等,下面对应用于摄像设备上的对焦处理方法进行举例说明。The focus processing method provided by the embodiment of the present invention may be performed by a focus processing apparatus, or in other embodiments, the focus processing method may be applied to an image pickup apparatus such as a camera, and may be used for photographing, aerial photography, and motion photography. Etc., the following is an example of a focus processing method for use on an image pickup apparatus.
本方案采取视觉目标跟踪算法辅助自动调焦,在调焦过程中结合视觉目标跟踪算法,可以对目标对象的运动趋势有较准确的估计,也可以提供目标对象远近变化趋势的判断,从而获取到目标对象相对于摄像装置的移动方向。根据所述移动方向结合对比度对焦算法,确定出自动调焦方向,从而很大程度上优化对目标对象在运动时的跟焦效果,减少对焦失败或者对焦到背景上的情况,也能对目标对象在画面上位置的变化有准确的定位。其中,如果对于特定类别的物体,比如说人脸,则也可以使用连续帧的人脸检测来替代目标跟踪算法,也可以获得目标移动和大小的变化。The scheme adopts the visual target tracking algorithm to assist the auto-focusing. In combination with the visual target tracking algorithm in the focusing process, the target object's motion trend can be accurately estimated, and the target object's near-farming trend can be provided to obtain the judgment. The moving direction of the target object with respect to the camera. According to the moving direction combined with the contrast focusing algorithm, the auto-focusing direction is determined, thereby greatly optimizing the focusing effect on the target object during the movement, reducing the focus failure or focusing on the background, and also targeting the target object. The position change on the screen has an accurate positioning. Wherein, if for a specific category of objects, such as a human face, face detection of consecutive frames can be used instead of the target tracking algorithm, and changes in target movement and size can also be obtained.
本发明实施例通过摄像装置拍摄获取图像,根据获取到的在该图像中的用户操作识别并获取目标对象。对焦处理设备可以利用目标跟踪算法,检测该目标对象在该图像中的尺寸或位置信息等变换状态信息,根据该变化状态信息,确定该目标对象相对于该摄像装置的移动方向。其中,如果该目标对象携带了定位装置,该对焦处理设备也可以根据该定位装置获取该目标对象的位置坐标,从而确定该目标对象相对于所述摄像装置的移动方向。另外,该对焦处理设备还可以通过获取所述目标对象的深度图,从而确定所述目标对象相对于所述摄像装置的移动方向。该对焦处理设备在确定该目标对象相对于该摄像装置的移动方向之后,可以根据该移动方向确定出自动调焦方向,并按照该自动调焦方向进行自动调焦,以对该目标对象进行对焦。本发明实施例以一台对焦处理设备执行相应的处理为例来对对焦处理方法进行说明。The embodiment of the invention captures an acquired image by the camera device, and recognizes and acquires the target object according to the obtained user operation in the image. The focus processing device may use the target tracking algorithm to detect the transformed state information such as the size or position information of the target object in the image, and determine the moving direction of the target object relative to the camera device according to the changed state information. Wherein, if the target object carries the positioning device, the focus processing device may also acquire the position coordinates of the target object according to the positioning device, thereby determining the moving direction of the target object relative to the imaging device. In addition, the focus processing apparatus may further determine a moving direction of the target object with respect to the imaging device by acquiring a depth map of the target object. After determining the moving direction of the target object relative to the camera device, the focus processing device may determine an auto focus direction according to the moving direction, and perform auto focus according to the auto focus direction to focus the target object. . In the embodiment of the present invention, a focus processing method is described by taking a corresponding processing by a focus processing device as an example.
请参见图1,图1是本发明实施例提供的一种对焦处理方法的示意流程图,所述方法可以由对焦处理设备执行,其中,对焦处理设备的具体解释如前所述。具体的,本发明实施例的所述方法包括如下步骤。Referring to FIG. 1, FIG. 1 is a schematic flowchart of a focus processing method according to an embodiment of the present invention, which may be performed by a focus processing device, wherein a specific explanation of the focus processing device is as described above. Specifically, the method of the embodiment of the present invention includes the following steps.
S101:获取目标对象相对于摄像装置的移动方向。S101: Acquire a moving direction of the target object with respect to the imaging device.
本发明实施例中,对焦处理设备可以获取目标对象相对于摄像装置的移动方向。具体地,本发明实施例的应用场景如图2所示,图2是本发明实施例提 供一种对焦处理的场景示意图。如图2所示,本发明实施例的应用场景包括201所示的摄像装置以及202所示的目标对象。其中,不同的对焦距离,目标对象的清晰度不同,对焦处理设备可以通过摄像装置201拍摄得到目标对象202,该目标对象202是可移动的,该对焦处理设备可以获取所述目标对象在移动时的移动方向,例如,目标对象202相对于摄像装置201的移动方向是向靠近摄像装置201的方向移动,此时,摄像装置拍摄的目标对象变模糊;或目标对象202相对于摄像装置201的移动方向是向远离摄像装置201的方向移动,此时摄像装置拍摄到的目标对象变模糊。因此,当目标对象移动时,需要获取目标对象相对于摄像装置的移动方向,从而可以根据该移动方向,调整对焦焦点。In the embodiment of the present invention, the focus processing device can acquire the moving direction of the target object with respect to the imaging device. Specifically, the application scenario of the embodiment of the present invention is shown in FIG. 2, and FIG. 2 is an embodiment of the present invention. A schematic diagram of a scene for focusing processing. As shown in FIG. 2, the application scenario of the embodiment of the present invention includes an imaging device shown by 201 and a target object shown by 202. The focus processing device can capture the target object 202 by using the camera 201, and the target object 202 is movable. The focus processing device can acquire the target object while moving. The moving direction, for example, the moving direction of the target object 202 with respect to the image pickup device 201 is moving toward the vicinity of the image pickup device 201, at which time the target object captured by the image pickup device becomes blurred; or the movement of the target object 202 with respect to the image pickup device 201 The direction is moving away from the imaging device 201, and the target object captured by the imaging device is blurred at this time. Therefore, when the target object moves, it is necessary to acquire the moving direction of the target object with respect to the image pickup device, so that the focus focus can be adjusted according to the moving direction.
在一个实施例中,对焦处理设备可以利用视觉识别目标对象,检测所述目标对象在图像中的变化状态信息,其中,所述状态信息包括所述目标对象在图像中的尺寸或在图像中的位置区域。对焦处理设备根据所述变化状态信息,确定所述目标对象相对于所述摄像装置的移动方向。具体可举例说明,该对焦处理设备可以通过用户的视觉识别拍摄到的图像中的目标人物(目标对象),然后检测所述待拍摄的目标人物(目标对象)在该图像中的尺寸的变化信息,或检测所述待拍摄的人物(目标对象)在图像中的位置区域的变化信息。如果检测到所述目标人物在该图像中的尺寸变大,则确定所述目标人物相对于所述摄像装置的移动方向为向靠近所述摄像装置的方向移动;如果检测到所述目标人物在该图像中的位置区域变小,则确定所述目标人物相对于所述摄像装置的移动方向为向远离所述摄像装置的方向移动。In one embodiment, the focus processing device may detect the change state information of the target object in the image by visually recognizing the target object, wherein the state information includes a size of the target object in the image or in the image. Location area. The focus processing device determines a moving direction of the target object with respect to the image pickup device based on the change state information. Specifically, the focus processing apparatus can recognize a target person (target object) in the captured image by visually recognizing the user, and then detect change information of the size of the target person (target object) to be photographed in the image. Or detecting change information of a position area of the person (target object) to be photographed in the image. If it is detected that the size of the target person in the image becomes large, determining that the moving direction of the target person with respect to the image pickup device is moving toward a direction close to the image pickup device; if the target person is detected to be When the positional area in the image becomes small, it is determined that the moving direction of the target person with respect to the imaging device is moving away from the imaging device.
在一个实施例中,对焦处理设备也可以利用所述目标对象携带的定位装置获取所述目标对象的位置坐标,根据所述位置坐标,确定所述目标对象相对于所述摄像装置的移动方向。具体地,如果该对焦处理设备获取到的目标对象携带了定位装置,比如,全球定位系统(Global Positioning System,GPS)、无载波通信技术(Ultra Wideband,UWB)等,则该对焦处理设备可以利用所述目标对象携带的像GPS、UWB等这样的定位装置,获取所述目标对象的位置坐标,可以得到该目标对象相对摄像装置的距离变化,并根据所述位置坐标,确定所述目标对象相对于所述摄像装置的移动方向。具体可举例说明,例如,如果该对焦处理设备获取到的目标对象携带了GPS定位装置,则该对焦处理 设备可以利用所述GPS定位装置,获取到所述目标对象的位置坐标,并根据所述位置坐标,确定所述目标对象相对于所述摄像装置的移动方向。In one embodiment, the focus processing device may also acquire the position coordinates of the target object by using a positioning device carried by the target object, and determine a moving direction of the target object relative to the camera device according to the position coordinates. Specifically, if the target object acquired by the focus processing device carries a positioning device, such as a Global Positioning System (GPS), an Ultra Wideband (UWB), or the like, the focus processing device can utilize the The positioning device, such as GPS, UWB, or the like, carried by the target object acquires the position coordinates of the target object, and obtains a change in the distance of the target object relative to the imaging device, and determines, according to the position coordinates, the target object In the moving direction of the imaging device. Specifically, for example, if the target object acquired by the focus processing device carries a GPS positioning device, the focus processing The device may acquire the position coordinates of the target object by using the GPS positioning device, and determine a moving direction of the target object relative to the camera device according to the position coordinates.
进一步,对焦处理设备还可以获取所述目标对象的深度图,根据获取到的深度图,确定所述目标对象相对于所述摄像装置的移动方向。具体地,对焦处理设备可以获取所述目标对象距离所述摄像装置的距离(深度),将所述距离组成的图像作为深度图,根据获取到的深度图,该对焦处理设备可以确定所述目标对象相对于所述摄像装置的移动方向。例如,对焦处理设备获取到所述目标对象距离所述摄像装置的初始距离(深度)为1m,而所述目标对象距离所述摄像装置的当前距离为1.5m,将这两个距离组成的图像作为深度图,根据这两个距离的变化,该对焦处理设备可以确定所述目标对象相对于所述摄像装置的移动方向为向远离该摄像装置的方向移动。Further, the focus processing device may further acquire a depth map of the target object, and determine a moving direction of the target object relative to the camera device according to the acquired depth map. Specifically, the focus processing device may acquire a distance (depth) of the target object from the camera device, and use an image composed of the distance as a depth map, and the focus processing device may determine the target according to the acquired depth map. The direction of movement of the object relative to the camera. For example, the focus processing device acquires an image in which the initial distance (depth) of the target object from the imaging device is 1 m, and the current distance of the target object from the imaging device is 1.5 m, and the two distances are formed. As a depth map, the focus processing apparatus may determine that the moving direction of the target object relative to the image pickup device is moving away from the image pickup device according to the change of the two distances.
S102:根据该移动方向确定出自动调焦方向,并按照该自动调焦方向进行自动调焦,以对该目标对象进行对焦。S102: Determine an auto focus direction according to the moving direction, and perform auto focus according to the auto focus direction to focus on the target object.
在本发明实施例中,对焦处理设备可以根据该移动方向确定出自动调焦方向,并按照该自动调焦方向进行自动调焦,以对该目标对象进行对焦。具体的,该对焦处理设备通过结合目标对象的移动方向来辅助自动对焦,首先,通过提供目标对象远近变化趋势的判断,从而为自动对焦系统提供优先的调焦方向,加快收敛速度,减少因来回搜索造成的呼吸现象。其次,由于对比度检测对焦依赖的是连续帧之间,在改变对焦距离的前后,根据图像某区域内对比度的变化趋势,来判断当前对焦变化方向与正确方向是否一致,而这个对比度变化的比较前提是基于所述图像该区域内的目标对象是不动的,如果该目标对象移动,而前后统计的对比度基于不同的场景,则前后帧的变化值对于对焦来说就没有参考意义。然而,结合目标对象的移动方向,前后帧统计的对比度可以基于同一个目标对象的图像,在画面上可以根据该目标对象的移动,而在对焦过程中动态改变,很大程度上增加了目标对象运动时的对焦成功率。In the embodiment of the present invention, the focus processing device may determine an auto focus direction according to the moving direction, and perform auto focus according to the auto focus direction to focus on the target object. Specifically, the focus processing device assists autofocus by combining the moving direction of the target object. Firstly, by providing a judgment of the trend of the target object, the focus direction of the target is preferentially adjusted, the convergence speed is accelerated, and the back and forth are reduced. Search for breathing phenomena. Secondly, since the contrast detection focus depends on the continuous frame, before and after changing the focus distance, according to the change trend of the contrast in a certain area of the image, it is judged whether the current focus change direction is consistent with the correct direction, and the comparison premise of the contrast change It is based on the image that the target object in the region is not moving. If the target object moves, and the contrast of the front and rear statistics is based on different scenes, the change values of the front and rear frames have no reference meaning for focusing. However, combined with the moving direction of the target object, the contrast of the front and rear frame statistics can be based on the image of the same target object, and can be dynamically changed in the focus process according to the movement of the target object on the screen, which greatly increases the target object. Focus success rate during exercise.
在一个实施例中,对焦处理设备可以结合目标对象的该移动方向和对比度检测算法来实现自动调焦,也可以将目标对象的移动方向和相位检测法进行结合来实现自动调焦。其中,需要说明的是,对比度检测对焦主要是通过在对图像中对焦主体对比度信息进行调整的过程中,检出最高对比度所在,即为判定合焦,对比度检测对焦通常并不需要分光设备,所以布置与操作更加灵活,成 本也较低。相位检测对焦是通过寻找像差最小的点来进行对焦,物体的某一个点会从各个方向发出光线通过镜片成像到sensor上面去,当不同方向的光线成像落到sensor的同一个位置的时候,像差最小。使用相位检测对焦时,对焦本身的速度快,但整个对焦而使用对比度检测对焦时,而使用对比度检测对焦时,对焦本身的速度稍慢,但整个对焦“过程”不一定慢,因为没有反光板的两次多余动作。In one embodiment, the focus processing device may implement auto-focusing in conjunction with the moving direction and contrast detection algorithm of the target object, or may combine the moving direction of the target object and phase detection to achieve auto-focusing. Among them, it should be noted that the contrast detection focus is mainly by detecting the highest contrast in the process of adjusting the focus contrast information of the image in the image, that is, to determine the focus, the contrast detection focus usually does not require the spectroscopic device, so More flexible layout and operation This is also lower. Phase detection focus is achieved by finding the point with the smallest aberration. A certain point of the object will emit light from all directions through the lens and image onto the sensor. When the light in different directions falls to the same position of the sensor, The aberration is the smallest. When using phase detection to focus, the focus itself is fast, but when using focus to detect focus, the focus itself is slightly slower when using contrast detection, but the entire focus "process" is not necessarily slow because there is no reflector Two extra moves.
在一个实施例中,在对焦处理设备结合目标对象的该移动方向和对比度检测法来实现自动调焦的过程中,对焦处理设备可以对所述目标对象进行图像跟踪处理,得到所述目标对象在图像中的位置区域,根据所述位置区域计算所拍摄的图像的对比度,根据所述对比度确定所述目标对象的对焦焦点。具体地,所述目标对象是可以移动的,当该目标对象在移动时,该对焦处理设备可以对移动的该目标对象进行图像跟踪处理,从而得到所述目标对象在图像中的位置区域,并根据所述位置区域计算所拍摄的图像的对比度,根据所述对比度确定所述目标对象的对焦焦点。其中,不同的位置区域的对比度不同,如图3所示,图3是本发明实施例提供的一种不同对焦位置的对比度差异示意图,其中,301所示为一种对焦位置的对比度变化情况,302所示为另一种不同对焦位置的对比度变化情况,从图3的301以及302可以看出,对焦位置不同,获取到的对比度不同。In an embodiment, in a process in which the focus processing device combines the moving direction and the contrast detection method of the target object to implement auto focus, the focus processing device may perform image tracking processing on the target object, and obtain the target object. a position area in the image, a contrast of the captured image is calculated according to the position area, and a focus focus of the target object is determined according to the contrast. Specifically, the target object is movable, and when the target object is moving, the focus processing device may perform image tracking processing on the moved target object, thereby obtaining a location area of the target object in the image, and A contrast of the captured image is calculated based on the location area, and a focus focus of the target object is determined according to the contrast. The contrast of the different position areas is different. As shown in FIG. 3, FIG. 3 is a schematic diagram of contrast difference of different focus positions according to an embodiment of the present invention, wherein 301 shows a contrast change of the focus position. 302 shows the contrast change of another different focus position. As can be seen from 301 and 302 of FIG. 3, the focus positions are different, and the acquired contrast is different.
在一个实施例中,对比度是基于图像对比度设计的对焦评价函数分数获得的。如图4所示,图4是本发明实施例提供的一种对焦评价函数的示意图。如图4所示为以横坐标x为对焦点位置,纵坐标y为对焦评价函数分数,所建立的坐标函数。其中,401所示为近焦时的对焦评价函数分数,402所示为准焦时的对焦评价函数分数,403所示为远焦时的对焦评价函数分数。此类函数可能有多种变种,而理想的对焦评价函数具有以下特点:单峰性,即在调教范围内有一个极值;无偏性即在系统处于最佳对焦状态时,才对焦评价函数给出极大值或极小值;能反应离焦的极性即焦前或焦后;能抵抗各类噪声。In one embodiment, the contrast is obtained based on a focus evaluation function score of the image contrast design. As shown in FIG. 4, FIG. 4 is a schematic diagram of a focus evaluation function according to an embodiment of the present invention. As shown in FIG. 4, the abscissa x is the focus position, and the ordinate y is the focus evaluation function score, and the established coordinate function. Among them, 401 shows the focus evaluation function score at the time of near focus, 402 shows the focus evaluation function score at the time of the focus, and 403 shows the focus evaluation function score at the far focus. There may be many variants of this type of function, and the ideal focus evaluation function has the following characteristics: unimodality, that is, an extreme value in the range of tuning; unbiased is the focus evaluation function when the system is in the best focus state. Give the maximum or minimum value; the polarity that can reflect the defocus, ie, before or after the focus; can resist all kinds of noise.
在一个实施例中,对焦处理设备在对所述目标对象进行图像跟踪处理,得到所述目标对象在图像中的位置区域时,可以将当前图像帧的初始区域中的图像与上一图像帧中所述目标对象所在的位置区域的图像进行比较,其中,所述初始区域即为所述目标对象在当前图像帧中的位置区域,如果相似度大于预设 的相似度阈值,则将所述初始区域确定为当前图像帧中所述目标对象所在的位置区域。例如,对焦处理设备将当前图像帧的初始区域中的的图像与上一图像帧中所述目标对象所在的位置区域的图像进行比较,获取到的相似度为95%,而预设的相似度阈值为90%,95%>90%,因此对焦处理设备可以将所述初始区域确定为当前图像帧中所述目标对象所在的位置区域。In an embodiment, the focus processing device performs image tracking processing on the target object to obtain an image in the initial region of the current image frame and the previous image frame when the target region is obtained in the image. Comparing the images of the location area where the target object is located, wherein the initial area is the location area of the target object in the current image frame, if the similarity is greater than the preset The similarity threshold determines the initial region as the location region in which the target object is located in the current image frame. For example, the focus processing device compares the image in the initial region of the current image frame with the image of the location region in which the target object is located in the previous image frame, and the acquired similarity is 95%, and the preset similarity is The threshold is 90%, 95%>90%, so the focus processing device can determine the initial region as the location region in which the target object is located in the current image frame.
进一步地,如果该对焦处理设备检测到当前图像帧的清晰度小于预设的清晰度阈值,则可以降低所述预设的相似度阈值。进一步,如果该对焦处理设备检测到当前图像帧的清晰度小于预设的清晰度阈值,则还可以选取基于颜色信息的图像跟踪算法、或调高颜色分布在图像跟踪算法中的权重,对所述目标对象进行图像跟踪处理。例如,如果该对焦处理设备检测到当前图像帧的清晰度为50%,而预设的清晰度阈值为60%,50%<60%,则该对焦处理设备可以通过将该预设的相似度阈值90%降低,对所述目标对象进行图像跟踪处理。又例如,如果该对焦处理设备检测到当前图像帧的清晰度为50%,而预设的清晰度阈值为60%,50%<60%,则该对焦处理设备可以选取基于颜色信息的图像跟踪算法、或调高颜色分布在图像跟踪算法中的权重,对所述目标对象进行图像跟踪处理。Further, if the focus processing device detects that the sharpness of the current image frame is less than a preset sharpness threshold, the preset similarity threshold may be lowered. Further, if the focus processing device detects that the resolution of the current image frame is less than a preset definition threshold, the image tracking algorithm based on the color information may be selected, or the weight of the color distribution in the image tracking algorithm may be adjusted. The target object performs image tracking processing. For example, if the focus processing device detects that the current image frame has a sharpness of 50% and the preset sharpness threshold is 60%, 50%<60%, the focus processing device can pass the preset similarity. The threshold is reduced by 90%, and image tracking processing is performed on the target object. For another example, if the focus processing device detects that the current image frame has a sharpness of 50% and the preset sharpness threshold is 60%, 50%<60%, the focus processing device may select image tracking based on the color information. The algorithm or the weight of the color distribution in the image tracking algorithm is adjusted, and the target object is subjected to image tracking processing.
在一个实施例中,在基于目标跟踪算法辅助自动调焦的实现上,在对移动的目标对象进行对焦时,该对焦处理设备对于基于梯度信息或者频域信息的目标跟踪算法,在由对比度判断出可能失焦后,适应性地降低目标跟踪算法中预设的对比度阈值,该实施方式可以实现对模糊图像上的持续跟踪。In one embodiment, in the implementation of assisting auto focus based on the target tracking algorithm, the focus processing device determines the contrast tracking algorithm based on gradient information or frequency domain information when focusing on the moving target object. After the possible out of focus, the preset contrast threshold in the target tracking algorithm is adaptively reduced, and the implementation can achieve continuous tracking on the blurred image.
进一步地,在基于目标跟踪算法辅助自动调焦的实现上,在对移动的目标对象进行对焦时,该对焦处理设备还可以通过预训练的模型,将对焦评价函数、目标跟踪算法等融合在一起,适应性地根据对焦效果,调整目标跟踪算法中预设的对比度阈值,该实施方式既能持续跟踪目标对象,又能保持跟踪的准确性,避免跟错或跟丢目标对象。Further, in the implementation of the automatic focus adjustment based on the target tracking algorithm, when focusing on the moving target object, the focus processing device can also fuse the focus evaluation function and the target tracking algorithm through the pre-trained model. Adjusting the contrast threshold preset in the target tracking algorithm adaptively according to the focusing effect, the implementation can not only keep track of the target object, but also maintain the accuracy of the tracking, avoiding the wrong or missing target object.
本发明实施例中,对焦处理设备通过摄像装置获取拍摄到的图像,从图像中获取目标对象以及该目标对象相对于摄像装置的移动方向,根据该移动方向确定出自动调焦方向,并按照所述自动调焦方向进行自动调焦,以对所述目标对象进行对焦。从而可以实现对运动的目标对象进行自动跟踪对焦,优化了对焦效果,提高了对焦成功的效率。 In the embodiment of the present invention, the focus processing device acquires the captured image by the image capturing device, acquires the target object and the moving direction of the target object with respect to the image capturing device, determines an automatic focusing direction according to the moving direction, and according to the Auto-focusing is performed in the auto-focusing direction to focus on the target object. Thereby, the automatic tracking and focusing of the moving target object can be realized, the focusing effect is optimized, and the efficiency of focusing success is improved.
请参见图6,图6是本发明实施例提供的另一种对焦处理方法的流程示意图,所述方法可以由对焦处理设备执行,其中对焦处理设备的具体解释如前所述。本发明实施例的所述方法包括如下步骤。Referring to FIG. 6, FIG. 6 is a schematic flowchart diagram of another focus processing method according to an embodiment of the present invention, which may be performed by a focus processing device, wherein a specific explanation of the focus processing device is as described above. The method of the embodiment of the invention comprises the following steps.
S601:根据拍摄到的图像,确定目标对象。S601: Determine a target object according to the captured image.
本发明实施例中,对焦处理设备可以根据拍摄到的图像,确定目标对象,其中,所述目标对象是根据在图像中的选择操作确定、或者是根据图像识别算法自动识别确定的。具体地,对焦处理设备通过摄像装置拍摄图像,根据拍摄到的该图像,确定需要拍摄的目标对象,其中该目标对象可以是根据在该图像中接收到的基于用户的选择操作所确定,或者是根据图像识别算法自动识别确定。具体可举例说明,该对焦处理设备通过摄像装置拍摄得到图像,当检测到在该图像中接收到基于用户的选择操作时,该对焦处理设备可以根据接收到的该选择操作,确定出目标对象。其中,该选择操作可以是点击操作、框选操作等,该目标对象可以是人脸等特定类别的物体,本发明实施例不做限定。In the embodiment of the present invention, the focus processing device may determine the target object according to the captured image, wherein the target object is determined according to a selection operation in the image, or is automatically identified according to an image recognition algorithm. Specifically, the focus processing device captures an image by the image capturing device, and determines a target object that needs to be photographed according to the captured image, wherein the target object may be determined according to a user-based selection operation received in the image, or The identification is automatically identified based on the image recognition algorithm. Specifically, the focus processing device captures an image by the image capturing device. When it is detected that a user-based selection operation is received in the image, the focus processing device may determine the target object according to the received selection operation. The selection operation may be a click operation, a frame selection operation, or the like, and the target object may be a specific type of object such as a human face, which is not limited in the embodiment of the present invention.
S602:对该目标对象进行图像跟踪处理,得到该目标对象在图像中的尺寸或在图像中的位置区域。S602: Perform image tracking processing on the target object to obtain a size of the target object in the image or a position area in the image.
本发明实施例中,对焦处理设备可以对所述目标对象进行图像跟踪处理,得到所述目标对象在图像中的尺寸或在图像中的位置区域。具体如上述实施例所述此处不再详细阐述。In the embodiment of the present invention, the focus processing device may perform image tracking processing on the target object to obtain a size of the target object in the image or a location area in the image. Specifically, it will not be elaborated here as described in the above embodiments.
在一个实施例中,对焦处理设备也可以利用所述目标对象携带的定位装置获取所述目标对象的位置坐标,具体如上述实施例所述此处不再详细阐述。In one embodiment, the focus processing device may also acquire the position coordinates of the target object by using a positioning device carried by the target object, which is not described in detail herein as described in the foregoing embodiments.
S603:根据该位置区域计算所拍摄的图像的对比度。S603: Calculate the contrast of the captured image according to the location area.
本发明实施例中,对焦处理设备可以,根据获取到的该目标对象在图像中的位置区域计算所拍摄的图像的对比度。具体如上述实施例所述此处不再详细阐述。In the embodiment of the present invention, the focus processing device may calculate the contrast of the captured image according to the acquired location area of the target object in the image. Specifically, it will not be elaborated here as described in the above embodiments.
S604:检测该对比度是否下降。S604: Detect whether the contrast is decreased.
本发明实施例中,对焦处理设备可以检测所拍摄的图像的对比度是否下降。In the embodiment of the invention, the focus processing device can detect whether the contrast of the captured image is decreased.
S605:如果检测结果为否,则按照调焦方向继续进行对焦控制。S605: If the detection result is no, the focus control is continued according to the focusing direction.
本发明实施例中,对焦处理设备如果检测到所述对比度上升,则可以按照所述调焦方向继续进行对焦控制。具体可以图5为例进行说明,图5是本发明 实施例提供的一种爬山搜索算法示意图,图5中501处表示起点处的对比度,502处表示最佳对焦点处对比度,箭头表示移动方向。图5表示摄像装置的聚焦镜头从起点501处开始从左往右以等步长移动,每移动一步,就计算一次图像的对比度,若计算得到的对比度逐渐增大,则说明移动方向正确,按照当前调焦方向继续进行对焦控制。In the embodiment of the present invention, if the focus processing device detects that the contrast rises, the focus control may be continued according to the focus direction. Specifically, FIG. 5 is taken as an example, and FIG. 5 is the present invention. A schematic diagram of a hill climbing search algorithm is provided in the embodiment. In FIG. 5, 501 represents the contrast at the starting point, 502 represents the contrast at the best focus point, and an arrow represents the moving direction. FIG. 5 shows that the focus lens of the image pickup device moves from left to right in equal steps from the starting point 501. Each time one step is moved, the contrast of the image is calculated once, and if the calculated contrast is gradually increased, the moving direction is correct, according to Focus control continues in the current focus direction.
S606:如果检测结果为是,则判断该对比度的下降值是否小于预设的阈值。S606: If the detection result is yes, determine whether the falling value of the contrast is less than a preset threshold.
本发明实施例中,对焦处理设备在检测该对比度时,如果检测到该对比度下降,则判断该对比度的下降值是否小于预设的阈值。In the embodiment of the present invention, when detecting the contrast, if the contrast is detected to decrease, the focus processing device determines whether the decrease value of the contrast is less than a preset threshold.
S607:如果判断结果为是,则将当前的焦点确定为该目标对象的对焦焦点。S607: If the judgment result is YES, the current focus is determined as the focus focus of the target object.
本发明实施例中,对焦处理设备如果在检测所拍摄的图像的对比度时,检测到所述对比度下降,且判断出该对比度的下降值小于预设的阈值,则将当前的焦点确定为该目标对象的对焦焦点。以图5为例进行说明,对焦处理设备的摄像装置从起点501处开始从左往右以等步长移动,每移动一步,就计算一次图像的对比度,若计算得到的对比度逐渐增大,则说明移动方向正确,当对比度到达502处时,第一次出现对比度下降的现象,且在502处获取到的对比度的下降值小于预设的阈值,则将当前502出对应的焦点确定为所述目标对象的对焦焦点。该实施方式与现有技术相比,避免了现有技术中摄像装置来回搜索寻找最佳对焦点造成的呼吸现象,加快了收敛速度,增加了目标对象运动时的对焦成功率。In the embodiment of the present invention, if the focus processing device detects the contrast drop when detecting the contrast of the captured image, and determines that the decrease value of the contrast is less than a preset threshold, determining the current focus as the target The focus of the object. Taking FIG. 5 as an example, the imaging device of the focus processing device moves from left to right in equal steps from the starting point 501. Each time one step is moved, the contrast of the image is calculated once, and if the calculated contrast is gradually increased, The movement direction is correct. When the contrast reaches 502, the contrast decreases for the first time, and if the decrease value of the contrast acquired at 502 is less than the preset threshold, the current focus of the current 502 is determined as the The focus of the target object. Compared with the prior art, the embodiment avoids the phenomenon that the camera device searches for the best focus point by searching back and forth in the prior art, speeds up the convergence, and increases the focus success rate when the target object moves.
S608:如果判断结果为否,则检测该目标对象在图像中的尺寸或在图像中的位置区域的变化。S608: If the result of the determination is no, detecting a change in the size of the target object in the image or the positional area in the image.
本发明实施例中,如果对焦处理设备判断出该对比度的下降值不小于预设的阈值,则检测该目标对象在图像中的尺寸或在图像中的位置区域的变化。以图5为例进行说明,对焦处理设备的摄像装置的聚焦镜头从起点501处开始从左往右以等步长移动,每移动一步,就计算一次图像的对比度,当对比度到达503处时,对比度的下降值不小于预设的阈值,说明摄像装置镜头已经越过目标对象的最佳对焦点开始离焦,此时将检测该目标对象在图像中的尺寸或在图像中的位置区域的变化。In the embodiment of the present invention, if the focus processing device determines that the decrease value of the contrast is not less than a preset threshold, detecting a size of the target object in the image or a change in the position region in the image. Taking FIG. 5 as an example, the focus lens of the imaging device of the focus processing device moves from left to right in equal steps from the starting point 501, and the contrast of the image is calculated every time one step is moved. When the contrast reaches 503, The falling value of the contrast is not less than the preset threshold, indicating that the camera lens has defocused beyond the best focus of the target object, and the size of the target object in the image or the change in the position area in the image will be detected.
S609:如果检测到该尺寸或位置区域变大,则将靠近该摄像装置的方向确定为自动调焦方向,执行步骤S612。 S609: If it is detected that the size or the positional area becomes large, the direction close to the imaging device is determined as the autofocusing direction, and step S612 is performed.
本发明实施例中,如果对焦处理设备检测到该尺寸或位置区域变大,则将靠近该摄像装置的方向确定为自动调焦方向。以图5为例,当检测到对比度到达503处时,对比度的下降值不小于预设的阈值,如果此时检测到该目标对象在图像中的尺寸或在图像中的位置区域变大,则将靠近该摄像装置的方向确定为自动调焦方向,自动调整对焦方向,并执行根据该自动调焦方向,对该目标对象进行对焦。In the embodiment of the present invention, if the focus processing device detects that the size or the position area becomes large, the direction close to the image pickup device is determined as the auto focus direction. Taking FIG. 5 as an example, when the contrast is detected to reach 503, the decrease value of the contrast is not less than a preset threshold. If the size of the target object in the image or the positional area in the image is detected to be large at this time, The direction near the camera is determined as the auto focus direction, the focus direction is automatically adjusted, and the target is focused according to the auto focus direction.
S610:如果检测到该尺寸或位置区域变小,则将远离该摄像装置的方向确定为自动调焦方向,执行步骤S612。S610: If it is detected that the size or the positional area becomes smaller, the direction away from the imaging device is determined as the auto-focusing direction, and step S612 is performed.
本发明实施例中,对焦处理设备在检测所述目标对象在图像中的尺寸或在图像中的位置区域的变化时,如果检测到所述尺寸或位置区域变小,则将远离所述摄像装置的方向确定为自动调焦方向。以图5为例进行说明,当对比度到达503处时,对比度的下降值不小于预设的阈值,如果此时检测到该目标对象在图像中的尺寸或在图像中的位置区域变小,则将远离所述摄像装置的方向确定为自动调焦方向,并执行根据该自动调焦方向,对该目标对象进行对焦。In the embodiment of the present invention, when detecting the size of the target object in the image or the change of the position area in the image, if the size or the location area is detected to be small, the focus processing device will be far away from the camera device. The direction is determined as the auto focus direction. Taking FIG. 5 as an example, when the contrast reaches 503, the decrease value of the contrast is not less than a preset threshold. If the size of the target object in the image or the positional area in the image is detected to be small at this time, The direction away from the imaging device is determined as an auto-focusing direction, and focusing on the target object is performed according to the auto-focusing direction.
S611:如果检测到该尺寸或位置区域不变,则将与所述调焦方向相反的方向确定为自动调焦方向,执行步骤S612。S611: If the size or the location area is detected to be unchanged, the direction opposite to the focusing direction is determined as the auto-focusing direction, and step S612 is performed.
本发明实施例中,对焦处理设备在检测所述目标对象在图像中的尺寸或在图像中的位置区域的变化,如果检测到所述尺寸或位置区域不变,则将与所述调焦方向相反的方向确定为自动调焦方向。以图5为例进行说明,当对比度到达503处时,对比度的下降值不小于预设的阈值,如果此时检测到该目标对象在图像中的尺寸或在图像中的位置区域不变,则将与所述调焦方向相反的方向确定为自动调焦方向,并执行根据该自动调焦方向,对该目标对象进行对焦。In the embodiment of the present invention, the focus processing device detects a change in the size of the target object in the image or a position region in the image, and if the size or the position region is detected to be unchanged, the focus direction is The opposite direction is determined as the auto focus direction. Taking FIG. 5 as an example, when the contrast reaches 503, the contrast value of the contrast is not less than a preset threshold. If the size of the target object in the image or the positional area in the image is detected at this time, A direction opposite to the focusing direction is determined as an auto-focusing direction, and focusing on the target object is performed according to the auto-focusing direction.
S612:根据该自动调焦方向,对该目标对象进行对焦。S612: Focus the target object according to the autofocus direction.
本发明实施例中,对焦处理设备在确定自动调焦方向之后,可以根据该自动调焦方向确定所述目标对象的对焦焦点,对该目标对象进行对焦控制。In the embodiment of the present invention, after determining the auto focus direction, the focus processing device may determine the focus focus of the target object according to the auto focus direction, and perform focus control on the target object.
本发明实施例中,对焦处理设备通过摄像装置获取拍摄到的图像,从图像中获取目标对象,对该目标对象进行图像跟踪处理,得到该目标对象在图像中的尺寸或在图像中的位置区域,根据该位置区域计算所拍摄的图像的对比度,根据所检测到的对比度的变化以及该目标对象在图像中的尺寸或在图像中的位置区域的变化,确定自动调焦方向,根据该自动调焦方向,确定所述目标对 象的对焦焦点,对该目标对象进行对焦控制。从而可以实现对运动的目标对象进行自动跟踪对焦,优化了对焦效果,提高了对焦成功的效率。In the embodiment of the present invention, the focus processing device acquires the captured image by the image capturing device, acquires the target object from the image, performs image tracking processing on the target object, and obtains the size of the target object in the image or the position region in the image. Calculating a contrast of the captured image according to the location area, determining an auto-focusing direction according to the detected change in contrast and a change in a size of the target object in the image or a positional area in the image, according to the automatic adjustment Defocus direction, determine the target pair The focus of the image is focused on the target object. Thereby, the automatic tracking and focusing of the moving target object can be realized, the focusing effect is optimized, and the efficiency of focusing success is improved.
请参见图7,图7是本发明实施例提供的一种对焦处理设备的结构示意图,具体的,本发明实施例的所述设备包括:获取单元701、处理单元702,其中,Referring to FIG. 7 , FIG. 7 is a schematic structural diagram of a focus processing device according to an embodiment of the present invention. Specifically, the device in the embodiment of the present invention includes: an obtaining unit 701 and a processing unit 702, where
获取单元701,用于获取目标对象相对于摄像装置的移动方向;The obtaining unit 701 is configured to acquire a moving direction of the target object relative to the camera device;
处理单元702,用于根据所述移动方向确定出自动调焦方向,并按照所述自动调焦方向进行自动调焦,以对所述目标对象进行对焦。The processing unit 702 is configured to determine an auto focus direction according to the moving direction, and perform auto focus according to the auto focus direction to focus the target object.
具体地,所述获取单元701,具体用于利用视觉识别目标对象;检测所述目标对象在图像中的变化状态信息,所述状态信息包括所述目标对象在图像中的尺寸或在图像中的位置区域;根据所述变化状态信息,确定所述目标对象相对于所述摄像装置的移动方向。Specifically, the acquiring unit 701 is specifically configured to use a visual recognition target object, and detect change state information of the target object in an image, where the state information includes a size of the target object in an image or in an image. a location area; determining a moving direction of the target object with respect to the imaging device according to the change state information.
具体地,所述获取单元701,还用于利用所述目标对象携带的定位装置获取所述目标对象的位置坐标;根据所述位置坐标,确定所述目标对象相对于所述摄像装置的移动方向。Specifically, the acquiring unit 701 is further configured to acquire, by using a positioning device carried by the target object, location coordinates of the target object, and determine, according to the location coordinates, a moving direction of the target object relative to the camera device. .
具体地,所述获取单元701,还用于获取所述目标对象的深度图;根据获取到的深度图,确定所述目标对象相对于所述摄像装置的移动方向。Specifically, the acquiring unit 701 is further configured to acquire a depth map of the target object, and determine a moving direction of the target object relative to the camera device according to the acquired depth map.
具体地,所述设备还包括确定单元703,其中,Specifically, the device further includes a determining unit 703, where
所述确定单元703,用于根据拍摄到的图像,确定目标对象;其中,所述目标对象是根据在图像中的选择操作确定、或者是根据图像识别算法自动识别确定的。The determining unit 703 is configured to determine a target object according to the captured image; wherein the target object is determined according to a selection operation in the image, or is automatically identified according to an image recognition algorithm.
具体地,所述处理单元702,还用于对所述目标对象进行图像跟踪处理,得到所述目标对象在图像中的位置区域;根据所述位置区域计算所拍摄的图像的对比度;根据所述对比度确定所述目标对象的对焦焦点。Specifically, the processing unit 702 is further configured to perform image tracking processing on the target object to obtain a location area of the target object in the image, and calculate a contrast of the captured image according to the location area; The contrast determines the focus focus of the target object.
具体地,所述处理单元702,还用于检测所拍摄的图像的对比度;如果检测到所述对比度上升,则按照所述调焦方向继续进行对焦控制。Specifically, the processing unit 702 is further configured to detect a contrast of the captured image; if the contrast is detected to rise, perform focus control according to the focusing direction.
具体地,所述处理单元702,还用于检测所拍摄的图像的对比度;如果检测到所述对比度下降,则根据所述对比度的下降值确定所述目标对象的对焦焦点。Specifically, the processing unit 702 is further configured to detect a contrast of the captured image; if the contrast is detected to decrease, determine a focus focus of the target object according to the falling value of the contrast.
具体地,所述处理单元702,还用于如果检测到所述对比度的下降值小于预设的阈值,则将当前的焦点确定为所述目标对象的对焦焦点。 Specifically, the processing unit 702 is further configured to determine the current focus as the focus focus of the target object if the falling value of the contrast is detected to be less than a preset threshold.
具体地,所述处理单元702,还用于如果检测到所述对比度的下降值不小于预设的阈值,则根据所述目标对象的变化状态信息确定自动调焦方向;根据所述自动调焦方向进行对焦控制。Specifically, the processing unit 702 is further configured to: if it is detected that the falling value of the contrast is not less than a preset threshold, determine an auto-focusing direction according to the change state information of the target object; according to the auto-focusing Focus control in the direction.
具体地,所述处理单元702,还用于检测所述目标对象在图像中的尺寸或在图像中的位置区域的变化;如果检测到所述尺寸或位置区域变大,则将靠近所述摄像装置的方向确定为自动调焦方向。Specifically, the processing unit 702 is further configured to detect a size of the target object in an image or a change in a location area in the image; if the size or the location area is detected to be large, the imaging unit is to be close to the camera. The orientation of the device is determined to be the autofocus direction.
具体地,所述处理单元702,还用于检测所述目标对象在图像中的尺寸或在图像中的位置区域的变化;如果检测到所述尺寸或位置区域变小,则将远离所述摄像装置的方向确定为自动调焦方向。Specifically, the processing unit 702 is further configured to detect a size of the target object in an image or a change in a location area in the image; if the size or the location area is detected to be small, the image is to be away from the camera The orientation of the device is determined to be the autofocus direction.
具体地,所述处理单元702,还用于检测所述目标对象在图像中的尺寸或在图像中的位置区域的变化;如果检测到所述尺寸或位置区域不变,则将与所述调焦方向相反的方向确定为自动调焦方向。Specifically, the processing unit 702 is further configured to detect a size of the target object in an image or a change in a location area in the image; if the size or the location area is detected to be unchanged, The direction in which the focal direction is opposite is determined as the autofocus direction.
具体地,所述处理单元702,还用于将当前图像帧的初始区域中的图像与上一图像帧中所述目标对象所在的位置区域的图像进行比较;如果相似度大于预设的相似度阈值,则将所述初始区域确定为当前图像帧中所述目标对象所在的位置区域。Specifically, the processing unit 702 is further configured to compare an image in an initial region of the current image frame with an image in a location region where the target object is located in a previous image frame; if the similarity is greater than a preset similarity The threshold is determined as the location area in which the target object is located in the current image frame.
具体地,所述处理单元702,还用于如果检测到当前图像帧的清晰度小于预设的清晰度阈值,则降低所述预设的相似度阈值。Specifically, the processing unit 702 is further configured to decrease the preset similarity threshold if it is detected that the resolution of the current image frame is less than a preset definition threshold.
具体地,所述处理单元702,还用于如果检测到当前图像帧的清晰度小于预设的清晰度阈值,则选取基于颜色信息的图像跟踪算法、或调高颜色分布在图像跟踪算法中的权重,对所述目标对象进行图像跟踪处理。Specifically, the processing unit 702 is further configured to: if it is detected that the resolution of the current image frame is less than a preset definition threshold, select an image tracking algorithm based on the color information, or adjust the color distribution in the image tracking algorithm. Weighting, performing image tracking processing on the target object.
本法实施例中,对焦处理设备通过确定单元703获取拍摄到的图像,并从图像中获取目标对象,通过获取单元701获取该目标对象相对于摄像装置的移动方向,处理单元702根据该移动方向确定出自动调焦方向,并按照所述自动调焦方向进行自动调焦,以对所述目标对象进行对焦。从而可以实现对运动的目标对象进行自动跟踪对焦,优化了对焦效果,提高了对焦效率。In the embodiment of the present invention, the focus processing device acquires the captured image by the determining unit 703, and acquires the target object from the image, and acquires the moving direction of the target object with respect to the imaging device by the obtaining unit 701, and the processing unit 702 according to the moving direction. The auto focus direction is determined, and auto focus is performed according to the auto focus direction to focus on the target object. Thereby, the automatic tracking and focusing of the moving target object can be realized, the focusing effect is optimized, and the focusing efficiency is improved.
请参见图8,图8是本发明实施例提供的另一种对焦处理设备的结构示意图。具体的,如图所示的本实施例中的终端可以包括:一个或多个处理器801;一个或多个输入设备802,一个或多个输出设备803和存储器804。上述处理器801、输入设备802、输出设备803和存储器804通过总线805连接。存储 器802用于存储指令,处理器801用于执行存储器802存储的指令。其中,当程序指令被执行时,处理器801用于执行如下步骤:Referring to FIG. 8, FIG. 8 is a schematic structural diagram of another focus processing device according to an embodiment of the present invention. Specifically, the terminal in this embodiment as shown may include: one or more processors 801; one or more input devices 802, one or more output devices 803, and memory 804. The above processor 801, input device 802, output device 803, and memory 804 are connected by a bus 805. Storage The processor 802 is configured to store instructions, and the processor 801 is configured to execute instructions stored by the memory 802. Wherein, when the program instruction is executed, the processor 801 is configured to perform the following steps:
获取目标对象相对于摄像装置的移动方向;Obtaining a moving direction of the target object relative to the camera device;
根据所述移动方向确定出自动调焦方向,并按照所述自动调焦方向进行自动调焦,以对所述目标对象进行对焦。And determining an auto focus direction according to the moving direction, and performing auto focus according to the auto focus direction to focus on the target object.
具体地,所述处理器801调用存储器802中存储的程序指令,用于执行如下步骤:Specifically, the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
利用视觉识别目标对象;Visually identifying the target object;
检测所述目标对象在图像中的变化状态信息,所述状态信息包括所述目标对象在图像中的尺寸或在图像中的位置区域;Detecting change state information of the target object in an image, the state information including a size of the target object in an image or a location area in an image;
根据所述变化状态信息,确定所述目标对象相对于所述摄像装置的移动方向。And determining a moving direction of the target object with respect to the imaging device according to the change state information.
具体地,所述处理器801调用存储器802中存储的程序指令,用于执行如下步骤:Specifically, the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
利用所述目标对象携带的定位装置获取所述目标对象的位置坐标;Obtaining, by using a positioning device carried by the target object, location coordinates of the target object;
根据所述位置坐标,确定所述目标对象相对于所述摄像装置的移动方向。Determining a moving direction of the target object with respect to the image pickup device according to the position coordinates.
具体地,所述处理器801调用存储器802中存储的程序指令,用于执行如下步骤:Specifically, the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
获取所述目标对象的深度图;Obtaining a depth map of the target object;
根据获取到的深度图,确定所述目标对象相对于所述摄像装置的移动方向。And determining, according to the acquired depth map, a moving direction of the target object with respect to the camera.
具体地,所述处理器801调用存储器802中存储的程序指令,用于执行如下步骤:Specifically, the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
根据拍摄到的图像,确定目标对象;Determining the target object based on the captured image;
其中,所述目标对象是根据在图像中的选择操作确定、或者是根据图像识别算法自动识别确定的。Wherein, the target object is determined according to a selection operation in an image, or is automatically identified according to an image recognition algorithm.
具体地,所述处理器801调用存储器802中存储的程序指令,用于执行如下步骤:Specifically, the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
对所述目标对象进行图像跟踪处理,得到所述目标对象在图像中的位置区域; Performing image tracking processing on the target object to obtain a location area of the target object in the image;
根据所述位置区域计算所拍摄的图像的对比度;Calculating a contrast of the captured image according to the location area;
根据所述对比度确定所述目标对象的对焦焦点。A focus focus of the target object is determined based on the contrast.
具体地,所述处理器801调用存储器802中存储的程序指令,用于执行如下步骤:Specifically, the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
检测所拍摄的图像的对比度;Detecting the contrast of the captured image;
如果检测到所述对比度上升,则按照所述调焦方向继续进行对焦控制。If the contrast rise is detected, the focus control is continued in accordance with the focus direction.
具体地,所述处理器801调用存储器802中存储的程序指令,用于执行如下步骤:Specifically, the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
检测所拍摄的图像的对比度;Detecting the contrast of the captured image;
如果检测到所述对比度下降,则根据所述对比度的下降值确定所述目标对象的对焦焦点。If the contrast drop is detected, the focus focus of the target object is determined according to the decrease value of the contrast.
具体地,所述处理器801调用存储器802中存储的程序指令,用于执行如下步骤:Specifically, the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
如果检测到所述对比度的下降值小于预设的阈值,则将当前的焦点确定为所述目标对象的对焦焦点。If it is detected that the decrease value of the contrast is less than a preset threshold, the current focus is determined as the focus focus of the target object.
具体地,所述处理器801调用存储器802中存储的程序指令,用于执行如下步骤:Specifically, the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
如果检测到所述对比度的下降值不小于预设的阈值,则根据所述目标对象的变化状态信息确定自动调焦方向;根据所述自动调焦方向进行对焦控制。If it is detected that the falling value of the contrast is not less than a preset threshold, determining an auto-focusing direction according to the change state information of the target object; performing focus control according to the auto-focusing direction.
具体地,所述处理器801调用存储器802中存储的程序指令,用于执行如下步骤:Specifically, the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
检测所述目标对象在图像中的尺寸或在图像中的位置区域的变化;如果检测到所述尺寸或位置区域变大,则将靠近所述摄像装置的方向确定为自动调焦方向。A change in the size of the target object in the image or a positional area in the image is detected; if it is detected that the size or the positional area becomes large, the direction close to the image pickup device is determined as the autofocus direction.
具体地,所述处理器801调用存储器802中存储的程序指令,用于执行如下步骤:Specifically, the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
检测所述目标对象在图像中的尺寸或在图像中的位置区域的变化;如果检测到所述尺寸或位置区域变小,则将远离所述摄像装置的方向确定为自动调焦方向。A change in the size of the target object in the image or a positional area in the image is detected; if it is detected that the size or the positional area becomes smaller, the direction away from the image pickup device is determined as the autofocus direction.
具体地,所述处理器801调用存储器802中存储的程序指令,用于执行如 下步骤:Specifically, the processor 801 calls a program instruction stored in the memory 802 for executing, for example, Next steps:
检测所述目标对象在图像中的尺寸或在图像中的位置区域的变化;如果检测到所述尺寸或位置区域不变,则将与所述调焦方向相反的方向确定为自动调焦方向。A change in the size of the target object in the image or a positional area in the image is detected; if the size or the positional area is detected to be unchanged, a direction opposite to the focusing direction is determined as an auto-focusing direction.
具体地,所述处理器801调用存储器802中存储的程序指令,用于执行如下步骤:Specifically, the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
将当前图像帧的初始区域中的图像与上一图像帧中所述目标对象所在的位置区域的图像进行比较;如果相似度大于预设的相似度阈值,则将所述初始区域确定为当前图像帧中所述目标对象所在的位置区域。Comparing the image in the initial region of the current image frame with the image of the location region in which the target object is located in the previous image frame; if the similarity is greater than the preset similarity threshold, determining the initial region as the current image The location area where the target object is located in the frame.
具体地,所述处理器801调用存储器802中存储的程序指令,用于执行如下步骤:Specifically, the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
如果检测到当前图像帧的清晰度小于预设的清晰度阈值,则降低所述预设的相似度阈值。If it is detected that the sharpness of the current image frame is less than a preset sharpness threshold, the preset similarity threshold is lowered.
具体地,所述处理器801调用存储器802中存储的程序指令,用于执行如下步骤:Specifically, the processor 801 calls a program instruction stored in the memory 802 for performing the following steps:
如果检测到当前图像帧的清晰度小于预设的清晰度阈值,则选取基于颜色信息的图像跟踪算法、或调高颜色分布在图像跟踪算法中的权重,对所述目标对象进行图像跟踪处理。If it is detected that the resolution of the current image frame is less than a preset definition threshold, the image tracking algorithm based on the color information, or the weight of the color distribution in the image tracking algorithm is selected, and the target object is subjected to image tracking processing.
应当理解,在本发明实施例中,所称处理器801可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 801 may be a central processing unit (CPU), and the processor may also be another general-purpose processor, a digital signal processor (DSP). , Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
输入设备802可以包括触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备803可以包括显示器(LCD等)、扬声器等。The input device 802 may include a touchpad, a fingerprint sensor (for collecting fingerprint information of the user and direction information of the fingerprint), a microphone, and the like, and the output device 803 may include a display (LCD or the like), a speaker, and the like.
该存储器804可以包括只读存储器和随机存取存储器,并向处理器801 提供指令和数据。存储器804的一部分还可以包括非易失性随机存取存储器。例如,存储器804还可以存储设备类型的信息。The memory 804 can include a read only memory and a random access memory, and is directed to the processor 801. Provide instructions and data. A portion of the memory 804 may also include a non-volatile random access memory. For example, the memory 804 can also store information of the device type.
本发明实施例的所述处理器801的具体实现可参考上述各个实施例中相关内容的描述,在此不赘述。For a specific implementation of the processor 801 in the embodiment of the present invention, refer to the description of related content in the foregoing embodiments, and details are not described herein.
本法实施例中,对焦处理设备通过摄像装置获取拍摄到的图像,并从图像中获取目标对象,获取该目标对象相对于摄像装置的移动方向,根据该移动方向确定出自动调焦方向,并按照所述自动调焦方向进行自动调焦,以对所述目标对象进行对焦。从而可以实现对运动的目标对象进行自动跟踪对焦,优化了对焦效果,提高了对焦效率。In the embodiment of the present method, the focus processing device acquires the captured image by the image capturing device, acquires the target object from the image, acquires a moving direction of the target object with respect to the image capturing device, and determines an automatic focusing direction according to the moving direction, and Autofocusing is performed according to the autofocus direction to focus on the target object. Thereby, the automatic tracking and focusing of the moving target object can be realized, the focusing effect is optimized, and the focusing efficiency is improved.
本发明的实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现本发明图1或图6所对应实施例中描述的对焦处理方法方式,也可实现图7或图8所述本发明所对应实施例的对焦处理设备,在此不再赘述。An embodiment of the present invention further provides a computer readable storage medium storing a computer program, which when executed by a processor, implements the embodiment corresponding to FIG. 1 or FIG. 6 of the present invention. The focus processing device of the embodiment of the present invention described in FIG. 7 or FIG. 8 can also be implemented in the manner of the focus processing method described herein, and details are not described herein again.
所述计算机可读存储介质可以是前述任一实施例所述的设备的内部存储单元,例如设备的硬盘或内存。所述计算机可读存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述终端所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The computer readable storage medium may be an internal storage unit of the device described in any of the preceding embodiments, such as a hard disk or a memory of the device. The computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (SMC), and a secure digital (SD) card. , Flash Card, etc. Further, the computer readable storage medium may also include both an internal storage unit of the device and an external storage device. The computer readable storage medium is for storing the computer program and other programs and data required by the terminal. The computer readable storage medium can also be used to temporarily store data that has been output or is about to be output.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and thus equivalent changes made in the claims of the present invention are still within the scope of the present invention.

Claims (33)

  1. 一种对焦处理方法,其特征在于,包括:A focus processing method, comprising:
    获取目标对象相对于摄像装置的移动方向;Obtaining a moving direction of the target object relative to the camera device;
    根据所述移动方向确定出自动调焦方向,并按照所述自动调焦方向进行自动调焦,以对所述目标对象进行对焦。And determining an auto focus direction according to the moving direction, and performing auto focus according to the auto focus direction to focus on the target object.
  2. 根据权利要求1所述的方法,其特征在于,所述获取目标对象相对于摄像装置的移动方向,包括:The method according to claim 1, wherein the obtaining a moving direction of the target object relative to the camera comprises:
    利用视觉识别目标对象;Visually identifying the target object;
    检测所述目标对象在图像中的变化状态信息,所述状态信息包括所述目标对象在图像中的尺寸或在图像中的位置区域;Detecting change state information of the target object in an image, the state information including a size of the target object in an image or a location area in an image;
    根据所述变化状态信息,确定所述目标对象相对于所述摄像装置的移动方向。And determining a moving direction of the target object with respect to the imaging device according to the change state information.
  3. 根据权利要求1所述的方法,其特征在于,所述获取目标对象相对于摄像装置的移动方向,还包括:The method according to claim 1, wherein the acquiring the moving direction of the target object relative to the camera device further comprises:
    利用所述目标对象携带的定位装置获取所述目标对象的位置坐标;Obtaining, by using a positioning device carried by the target object, location coordinates of the target object;
    根据所述位置坐标,确定所述目标对象相对于所述摄像装置的移动方向。Determining a moving direction of the target object with respect to the image pickup device according to the position coordinates.
  4. 根据权利要求1所述的方法,其特征在于,所述获取目标对象相对于摄像装置的移动方向,还包括:The method according to claim 1, wherein the acquiring the moving direction of the target object relative to the camera device further comprises:
    获取所述目标对象的深度图;Obtaining a depth map of the target object;
    根据获取到的深度图,确定所述目标对象相对于所述摄像装置的移动方向。And determining, according to the acquired depth map, a moving direction of the target object with respect to the camera.
  5. 根据权利要求2所述的方法,其特征在于,所述获取目标对象相对于摄像装置的移动方向之前,包括:The method according to claim 2, wherein before the obtaining the moving direction of the target object relative to the camera device, the method comprises:
    根据拍摄到的图像,确定目标对象;Determining the target object based on the captured image;
    其中,所述目标对象是根据在图像中的选择操作确定、或者是根据图像识 别算法自动识别确定的。Wherein, the target object is determined according to a selection operation in an image, or is based on image recognition The algorithm does not automatically identify the determined ones.
  6. 根据权利要求1所述的方法,其特征在于,所述对所述目标对象进行对焦,包括:The method of claim 1 wherein said focusing on said target object comprises:
    对所述目标对象进行图像跟踪处理,得到所述目标对象在图像中的位置区域;Performing image tracking processing on the target object to obtain a location area of the target object in the image;
    根据所述位置区域计算所拍摄的图像的对比度;Calculating a contrast of the captured image according to the location area;
    根据所述对比度确定所述目标对象的对焦焦点。A focus focus of the target object is determined based on the contrast.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述对比度确定所述目标对象的对焦焦点,包括:The method according to claim 6, wherein the determining the focus focus of the target object according to the contrast comprises:
    获取检测所拍摄的图像的对比度;Obtaining the contrast of the image taken by the detection;
    如果检测到所述对比度上升,则按照所述调焦方向继续进行对焦控制。If the contrast rise is detected, the focus control is continued in accordance with the focus direction.
  8. 根据权利要求7所述的方法,其特征在于,所述根据所述对比度确定所述目标对象的对焦焦点,还包括:The method according to claim 7, wherein the determining the focus focus of the target object according to the contrast further comprises:
    获取检测所拍摄的图像的对比度;Obtaining the contrast of the image taken by the detection;
    如果检测到所述对比度下降,则根据所述对比度的下降值确定所述目标对象的对焦焦点。If the contrast drop is detected, the focus focus of the target object is determined according to the decrease value of the contrast.
  9. 根据权利要求8所述的方法,其特征在于,所述根据所述对比度的下降值确定所述目标对象的对焦焦点,包括:The method according to claim 8, wherein the determining the focus focus of the target object according to the falling value of the contrast comprises:
    如果检测到所述对比度的下降值小于预设的阈值,则将当前的焦点确定为所述目标对象的对焦焦点。If it is detected that the decrease value of the contrast is less than a preset threshold, the current focus is determined as the focus focus of the target object.
  10. 根据权利要求8或9所述的方法,其特征在于,所述根据所述对比度的下降值确定所述目标对象的对焦焦点,还包括:The method according to claim 8 or 9, wherein the determining the focus focus of the target object according to the falling value of the contrast further comprises:
    如果检测到所述对比度的下降值不小于预设的阈值,则根据所述目标对象的变化状态信息确定自动调焦方向;If it is detected that the falling value of the contrast is not less than a preset threshold, determining an auto-focusing direction according to the change state information of the target object;
    根据所述自动调焦方向进行对焦控制。 Focus control is performed according to the auto focus direction.
  11. 根据权利要求10所述的方法,其特征在于,所述根据所述目标对象的变化状态信息确定自动调焦方向,包括:The method according to claim 10, wherein the determining the auto focus direction according to the change state information of the target object comprises:
    检测所述目标对象在图像中的尺寸或在图像中的位置区域的变化;Detecting a change in size of the target object in the image or a positional area in the image;
    如果检测到所述尺寸或位置区域变大,则将靠近所述摄像装置的方向确定为自动调焦方向。If it is detected that the size or the positional area becomes large, the direction close to the image pickup device is determined as the autofocus direction.
  12. 根据权利要求10所述的方法,其特征在于,所述根据所述目标对象的变化状态信息确定自动调焦方向,还包括:The method according to claim 10, wherein the determining the auto-focusing direction according to the change state information of the target object further comprises:
    检测所述目标对象在图像中的尺寸或在图像中的位置区域的变化;Detecting a change in size of the target object in the image or a positional area in the image;
    如果检测到所述尺寸或位置区域变小,则将远离所述摄像装置的方向确定为自动调焦方向。If it is detected that the size or the positional area becomes small, the direction away from the image pickup device is determined as the autofocus direction.
  13. 根据权利要求10所述的方法,其特征在于,所述根据所述目标对象的变化状态信息确定自动调焦方向,还包括:The method according to claim 10, wherein the determining the auto-focusing direction according to the change state information of the target object further comprises:
    检测所述目标对象在图像中的尺寸或在图像中的位置区域的变化;Detecting a change in size of the target object in the image or a positional area in the image;
    如果检测到所述尺寸或位置区域不变,则将与所述调焦方向相反的方向确定为自动调焦方向。If it is detected that the size or the positional area is unchanged, the direction opposite to the focusing direction is determined as the autofocusing direction.
  14. 根据权利要求6所述的方法,其特征在于,所述对所述目标对象进行图像跟踪处理,得到所述目标对象在图像中的位置区域,包括:The method according to claim 6, wherein the performing an image tracking process on the target object to obtain a location area of the target object in the image comprises:
    在按照对焦控制进行对焦过程中,将当前图像帧的初始区域中的图像与上一图像帧中所述目标对象所在的位置区域的图像进行比较;Comparing the image in the initial region of the current image frame with the image of the location region in which the target object is located in the previous image frame during focusing in accordance with the focus control;
    如果相似度大于预设的相似度阈值,则将所述初始区域确定为当前图像帧中所述目标对象所在的位置区域。If the similarity is greater than the preset similarity threshold, the initial region is determined as the location region in which the target object is located in the current image frame.
  15. 根据权利要求14所述的方法,其特征在于,还包括:The method of claim 14 further comprising:
    如果检测到当前图像帧的清晰度小于预设的清晰度阈值,则降低所述预设的相似度阈值。 If it is detected that the sharpness of the current image frame is less than a preset sharpness threshold, the preset similarity threshold is lowered.
  16. 根据权利要求14或15所述的方法,其特征在于,还包括:The method according to claim 14 or 15, further comprising:
    如果检测到当前图像帧的清晰度小于预设的清晰度阈值,则选取基于颜色信息的图像跟踪算法、或调高颜色分布在图像跟踪算法中的权重,对所述目标对象进行图像跟踪处理。If it is detected that the resolution of the current image frame is less than a preset definition threshold, the image tracking algorithm based on the color information, or the weight of the color distribution in the image tracking algorithm is selected, and the target object is subjected to image tracking processing.
  17. 一种对焦处理设备,其特征在于,包括存储器和处理器;A focus processing device, comprising: a memory and a processor;
    所述存储器,用于存储程序指令;The memory is configured to store program instructions;
    所述处理器,执行所述存储器存储的程序指令,当程序指令被执行时,所述处理器用于执行如下步骤:The processor executes program instructions stored in the memory, and when the program instructions are executed, the processor is configured to perform the following steps:
    获取目标对象相对于摄像装置的移动方向;Obtaining a moving direction of the target object relative to the camera device;
    根据所述移动方向确定出自动调焦方向,并按照所述自动调焦方向进行自动调焦,以对所述目标对象进行对焦。And determining an auto focus direction according to the moving direction, and performing auto focus according to the auto focus direction to focus on the target object.
  18. 根据权利要求17所述的设备,其特征在于,所述处理器用于获取目标对象相对于摄像装置的移动方向时执行如下步骤:The device according to claim 17, wherein the processor is configured to perform the following steps when acquiring a moving direction of the target object with respect to the camera device:
    利用视觉识别目标对象;Visually identifying the target object;
    检测所述目标对象在图像中的变化状态信息,所述状态信息包括所述目标对象在图像中的尺寸或在图像中的位置区域;Detecting change state information of the target object in an image, the state information including a size of the target object in an image or a location area in an image;
    根据所述变化状态信息,确定所述目标对象相对于所述摄像装置的移动方向。And determining a moving direction of the target object with respect to the imaging device according to the change state information.
  19. 根据权利要求17所述的设备,其特征在于,所述处理器用于获取目标对象相对于摄像装置的移动方向时执行如下步骤:The device according to claim 17, wherein the processor is configured to perform the following steps when acquiring a moving direction of the target object with respect to the camera device:
    利用所述目标对象携带的定位装置获取所述目标对象的位置坐标;Obtaining, by using a positioning device carried by the target object, location coordinates of the target object;
    根据所述位置坐标,确定所述目标对象相对于所述摄像装置的移动方向。Determining a moving direction of the target object with respect to the image pickup device according to the position coordinates.
  20. 根据权利要求17所述的设备,其特征在于,所述处理器用于获取目标对象相对于摄像装置的移动方向时执行如下步骤:The device according to claim 17, wherein the processor is configured to perform the following steps when acquiring a moving direction of the target object with respect to the camera device:
    获取所述目标对象的深度图;Obtaining a depth map of the target object;
    根据获取到的深度图,确定所述目标对象相对于所述摄像装置的移动方 向。Determining a moving side of the target object relative to the camera device according to the acquired depth map to.
  21. 根据权利要求18所述的设备,其特征在于,所述处理器用于获取目标对象相对于摄像装置的移动方向之前执行如下步骤:The device according to claim 18, wherein the processor performs the following steps before acquiring a moving direction of the target object with respect to the camera device:
    根据拍摄到的图像,确定目标对象;Determining the target object based on the captured image;
    其中,所述目标对象是根据在图像中的选择操作确定、或者是根据图像识别算法自动识别确定的。Wherein, the target object is determined according to a selection operation in an image, or is automatically identified according to an image recognition algorithm.
  22. 根据权利要求17所述的设备,其特征在于,所述处理器用于对所述目标对象进行对焦时执行如下步骤:The device according to claim 17, wherein the processor is configured to perform the following steps when focusing on the target object:
    对所述目标对象进行图像跟踪处理,得到所述目标对象在图像中的位置区域;Performing image tracking processing on the target object to obtain a location area of the target object in the image;
    根据所述位置区域计算所拍摄的图像的对比度;根据所述对比度确定所述目标对象的对焦焦点。Calculating a contrast of the captured image according to the location area; determining a focus focus of the target object according to the contrast.
  23. 根据权利要求22所述的设备,其特征在于,所述处理器用于根据所述对比度确定所述目标对象的对焦焦点时执行如下步骤:The apparatus according to claim 22, wherein said processor is configured to perform the following steps when determining a focus focus of said target object based on said contrast:
    检测所拍摄的图像的对比度;Detecting the contrast of the captured image;
    如果检测到所述对比度上升,则按照所述调焦方向继续进行对焦控制。If the contrast rise is detected, the focus control is continued in accordance with the focus direction.
  24. 根据权利要求23所述的设备,其特征在于,所述处理器用于根据所述对比度确定所述目标对象的对焦焦点时执行如下步骤:The apparatus according to claim 23, wherein said processor is configured to perform the following steps when determining a focus focus of said target object based on said contrast:
    检测所拍摄的图像的对比度;Detecting the contrast of the captured image;
    如果检测到所述对比度下降,则根据所述对比度的下降值确定所述目标对象的对焦焦点。If the contrast drop is detected, the focus focus of the target object is determined according to the decrease value of the contrast.
  25. 根据权利要求24所述的设备,其特征在于,所述处理器用于根据所述对比度的下降值确定所述目标对象的对焦焦点时执行如下步骤:The device according to claim 24, wherein the processor is configured to perform the following steps when determining the focus focus of the target object according to the falling value of the contrast:
    如果检测到所述对比度的下降值小于预设的阈值,则将当前的焦点确定为所述目标对象的对焦焦点。 If it is detected that the decrease value of the contrast is less than a preset threshold, the current focus is determined as the focus focus of the target object.
  26. 根据权利要求24或25所述的设备,其特征在于,所述处理器用于根据所述对比度的下降值确定所述目标对象的对焦焦点时执行如下步骤:The device according to claim 24 or 25, wherein the processor is configured to perform the following steps when determining the focus of the target object according to the falling value of the contrast:
    如果检测到所述对比度的下降值不小于预设的阈值,则根据所述目标对象的变化状态信息确定自动调焦方向;If it is detected that the falling value of the contrast is not less than a preset threshold, determining an auto-focusing direction according to the change state information of the target object;
    根据所述自动调焦方向进行对焦控制。Focus control is performed according to the auto focus direction.
  27. 根据权利要求26所述的设备,其特征在于,所述处理器用于根据所述目标对象的变化状态信息确定自动调焦方向时执行如下步骤:The device according to claim 26, wherein the processor is configured to perform the following steps when determining an autofocus direction according to the change state information of the target object:
    检测所述目标对象在图像中的尺寸或在图像中的位置区域的变化;Detecting a change in size of the target object in the image or a positional area in the image;
    如果检测到所述尺寸或位置区域变大,则将靠近所述摄像装置的方向确定为自动调焦方向。If it is detected that the size or the positional area becomes large, the direction close to the image pickup device is determined as the autofocus direction.
  28. 根据权利要求26所述的设备,其特征在于,所述处理器用于根据所述目标对象的变化状态信息确定自动调焦方向时执行如下步骤:The device according to claim 26, wherein the processor is configured to perform the following steps when determining an autofocus direction according to the change state information of the target object:
    检测所述目标对象在图像中的尺寸或在图像中的位置区域的变化;Detecting a change in size of the target object in the image or a positional area in the image;
    如果检测到所述尺寸或位置区域变小,则将远离所述摄像装置的方向确定为自动调焦方向。If it is detected that the size or the positional area becomes small, the direction away from the image pickup device is determined as the autofocus direction.
  29. 根据权利要求26所述的设备,其特征在于,所述处理器用于根据所述目标对象的变化状态信息确定自动调焦方向执行如下步骤:The device according to claim 26, wherein the processor is configured to determine an autofocus direction according to the change state information of the target object, and perform the following steps:
    检测所述目标对象在图像中的尺寸或在图像中的位置区域的变化;Detecting a change in size of the target object in the image or a positional area in the image;
    如果检测到所述尺寸或位置区域不变,则将与所述调焦方向相反的方向确定为自动调焦方向。If it is detected that the size or the positional area is unchanged, the direction opposite to the focusing direction is determined as the autofocusing direction.
  30. 根据权利要求22所述的设备,其特征在于,所述处理器用于对所述目标对象进行图像跟踪处理,得到所述目标对象在图像中的位置区域时执行如下步骤:The device according to claim 22, wherein the processor is configured to perform image tracking processing on the target object, and perform the following steps when obtaining the location area of the target object in the image:
    将当前图像帧的初始区域中的图像与上一图像帧中所述目标对象所在的位置区域的图像进行比较; Comparing an image in an initial region of the current image frame with an image of a location region in which the target object is located in a previous image frame;
    如果相似度大于预设的相似度阈值,则将所述初始区域确定为当前图像帧中所述目标对象所在的位置区域。If the similarity is greater than the preset similarity threshold, the initial region is determined as the location region in which the target object is located in the current image frame.
  31. 根据权利要求30所述的设备,其特征在于,所述处理器用于执行如下步骤:The device according to claim 30, wherein said processor is configured to perform the following steps:
    如果检测到当前图像帧的清晰度小于预设的清晰度阈值,则降低所述预设的相似度阈值。If it is detected that the sharpness of the current image frame is less than a preset sharpness threshold, the preset similarity threshold is lowered.
  32. 根据权利要求30或31所述的设备,其特征在于,所述处理器用于执行如下步骤:The device according to claim 30 or 31, wherein the processor is configured to perform the following steps:
    如果检测到当前图像帧的清晰度小于预设的清晰度阈值,则选取基于颜色信息的图像跟踪算法、或调高颜色分布在图像跟踪算法中的权重,对所述目标对象进行图像跟踪处理。If it is detected that the resolution of the current image frame is less than a preset definition threshold, the image tracking algorithm based on the color information, or the weight of the color distribution in the image tracking algorithm is selected, and the target object is subjected to image tracking processing.
  33. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至16任一项所述方法。 A computer readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the method of any one of claims 1 to 16.
PCT/CN2017/103697 2017-09-27 2017-09-27 Focusing processing method and device WO2019061079A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/103697 WO2019061079A1 (en) 2017-09-27 2017-09-27 Focusing processing method and device
CN201780004744.2A CN108496350B (en) 2017-09-27 2017-09-27 Focusing processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/103697 WO2019061079A1 (en) 2017-09-27 2017-09-27 Focusing processing method and device

Publications (1)

Publication Number Publication Date
WO2019061079A1 true WO2019061079A1 (en) 2019-04-04

Family

ID=63344796

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/103697 WO2019061079A1 (en) 2017-09-27 2017-09-27 Focusing processing method and device

Country Status (2)

Country Link
CN (1) CN108496350B (en)
WO (1) WO2019061079A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000226A (en) * 2020-08-26 2020-11-27 杭州海康威视数字技术股份有限公司 Human eye sight estimation method, device and sight estimation system
CN112835172A (en) * 2020-12-31 2021-05-25 华兴源创(成都)科技有限公司 Automatic focusing method and system for constant-magnification imaging
CN113364968A (en) * 2020-03-05 2021-09-07 浙江宇视科技有限公司 Focusing method and device, camera and readable storage medium
CN114143594A (en) * 2021-12-06 2022-03-04 百度在线网络技术(北京)有限公司 Video picture processing method, device and equipment and readable storage medium
CN114422685A (en) * 2020-10-13 2022-04-29 Oppo广东移动通信有限公司 Focusing method and related device

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109104573B (en) * 2018-09-29 2021-01-08 维沃移动通信(杭州)有限公司 Method for determining focusing point and terminal equipment
CN111050060B (en) * 2018-10-12 2021-08-31 华为技术有限公司 Focusing method and device applied to terminal equipment and terminal equipment
CN109451240B (en) * 2018-12-04 2021-01-26 百度在线网络技术(北京)有限公司 Focusing method, focusing device, computer equipment and readable storage medium
CN109525786B (en) * 2018-12-26 2021-04-30 北京旷视科技有限公司 Video processing method and device, terminal equipment and storage medium
CN109769090A (en) * 2019-02-18 2019-05-17 桂林长海发展有限责任公司 A kind of focal length zoom quick focusing method and system based on image procossing
CN112004019B (en) * 2019-05-27 2023-02-24 福建天晴数码有限公司 Tracking focusing method and computer readable storage medium
CN112132858A (en) * 2019-06-25 2020-12-25 杭州海康微影传感科技有限公司 Tracking method of video tracking equipment and video tracking equipment
WO2021026754A1 (en) * 2019-08-13 2021-02-18 深圳市大疆创新科技有限公司 Focus control method and apparatus for photography apparatus, and unmanned aircraft
CN110545384B (en) * 2019-09-23 2021-06-08 Oppo广东移动通信有限公司 Focusing method and device, electronic equipment and computer readable storage medium
WO2021077270A1 (en) * 2019-10-21 2021-04-29 深圳市大疆创新科技有限公司 Method for obtaining target distance, and control device and mobile platform
CN110933314B (en) * 2019-12-09 2021-07-09 Oppo广东移动通信有限公司 Focus-following shooting method and related product
CN110991397B (en) * 2019-12-17 2023-08-04 深圳市捷顺科技实业股份有限公司 Travel direction determining method and related equipment
CN111131717B (en) * 2019-12-31 2021-10-26 深圳市维海德技术股份有限公司 Focusing method, device, equipment and computer readable storage medium
CN114466129A (en) * 2020-11-09 2022-05-10 哲库科技(上海)有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN114697524B (en) * 2020-12-30 2023-05-02 浙江宇视科技有限公司 Automatic focusing method, device, electronic equipment and medium
CN113542604A (en) * 2021-07-12 2021-10-22 口碑(上海)信息技术有限公司 Video focusing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179338A (en) * 2011-12-22 2013-06-26 奥林巴斯映像株式会社 Tracking device and tracking method
CN103945126A (en) * 2014-04-21 2014-07-23 中国人民解放军国防科学技术大学 Automatic focusing and locating method
CN104038691A (en) * 2013-03-07 2014-09-10 联发科技股份有限公司 Auto Focus method and auto focus apparatus
US20150201182A1 (en) * 2013-04-11 2015-07-16 Altek Semiconductor Corp. Auto focus method and auto focus apparatus
CN105259729A (en) * 2014-07-17 2016-01-20 宁波舜宇光电信息有限公司 AF rapid focusing method
CN106961552A (en) * 2017-03-27 2017-07-18 联想(北京)有限公司 One kind focusing control method and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661624A (en) * 2009-09-24 2010-03-03 北京中星微电子有限公司 Motion tracking method and device
JP2013221993A (en) * 2012-04-13 2013-10-28 Olympus Corp Autofocus control device, autofocus control method, and imaging apparatus
US10192582B2 (en) * 2015-05-21 2019-01-29 Adobe Inc. Automatic generation of time-lapse videos
CN105227833A (en) * 2015-09-09 2016-01-06 华勤通讯技术有限公司 Continuous focusing method and device
CN106488124A (en) * 2016-10-20 2017-03-08 努比亚技术有限公司 A kind of tracking lock microshot method and terminal
CN106791411B (en) * 2016-12-28 2020-02-21 歌尔科技有限公司 Lens focusing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179338A (en) * 2011-12-22 2013-06-26 奥林巴斯映像株式会社 Tracking device and tracking method
CN104038691A (en) * 2013-03-07 2014-09-10 联发科技股份有限公司 Auto Focus method and auto focus apparatus
US20150201182A1 (en) * 2013-04-11 2015-07-16 Altek Semiconductor Corp. Auto focus method and auto focus apparatus
CN103945126A (en) * 2014-04-21 2014-07-23 中国人民解放军国防科学技术大学 Automatic focusing and locating method
CN105259729A (en) * 2014-07-17 2016-01-20 宁波舜宇光电信息有限公司 AF rapid focusing method
CN106961552A (en) * 2017-03-27 2017-07-18 联想(北京)有限公司 One kind focusing control method and electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113364968A (en) * 2020-03-05 2021-09-07 浙江宇视科技有限公司 Focusing method and device, camera and readable storage medium
CN113364968B (en) * 2020-03-05 2023-06-20 浙江宇视科技有限公司 Focusing method, focusing device, camera and readable storage medium
CN112000226A (en) * 2020-08-26 2020-11-27 杭州海康威视数字技术股份有限公司 Human eye sight estimation method, device and sight estimation system
CN114422685A (en) * 2020-10-13 2022-04-29 Oppo广东移动通信有限公司 Focusing method and related device
CN112835172A (en) * 2020-12-31 2021-05-25 华兴源创(成都)科技有限公司 Automatic focusing method and system for constant-magnification imaging
CN114143594A (en) * 2021-12-06 2022-03-04 百度在线网络技术(北京)有限公司 Video picture processing method, device and equipment and readable storage medium

Also Published As

Publication number Publication date
CN108496350B (en) 2021-02-02
CN108496350A (en) 2018-09-04

Similar Documents

Publication Publication Date Title
WO2019061079A1 (en) Focusing processing method and device
JP7311418B2 (en) Focusing method, terminal and computer readable storage medium
US9998650B2 (en) Image processing apparatus and image pickup apparatus for adding blur in an image according to depth map
CN108076278B (en) Automatic focusing method and device and electronic equipment
JP6887960B2 (en) Systems and methods for autofocus triggers
CN110381261B (en) Focusing method, focusing device, computer-readable storage medium and electronic equipment
US20090073304A1 (en) Imaging apparatus, imaging apparatus control method, and computer program
US9160922B2 (en) Subject detection device and control method for the same, imaging apparatus, and storage medium
JP2015104016A (en) Subject detection apparatus, imaging apparatus, subject detection apparatus control method, subject detection apparatus control program, and storage medium
WO2014153950A1 (en) Quick automatic focusing method and image acquisition device
TWI471677B (en) Auto focus method and auto focus apparatus
US20150201182A1 (en) Auto focus method and auto focus apparatus
US9838594B2 (en) Irregular-region based automatic image correction
WO2019104569A1 (en) Focusing method and device, and readable storage medium
TW201541141A (en) Auto-focus system for multiple lens and method thereof
WO2020042000A1 (en) Camera device and focusing method
WO2017101292A1 (en) Autofocusing method, device and system
JP6495451B2 (en) Direction recognition autofocus
CN111212226A (en) Focusing shooting method and device
WO2017166076A1 (en) Method, device and apparatus for determining focus window
CN102650801A (en) Camera and automatic focusing method thereof
WO2022021093A1 (en) Photographing method, photographing apparatus, and storage medium
TW201236448A (en) Auto-focusing camera and method for automatically focusing of the camera
JP6645711B2 (en) Image processing apparatus, image processing method, and program
US20240098366A1 (en) Focus control apparatus, image pickup apparatus, and focus control method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17927001

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17927001

Country of ref document: EP

Kind code of ref document: A1