CN114245008B - Focusing method, focusing device, electronic equipment and computer readable storage medium - Google Patents

Focusing method, focusing device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114245008B
CN114245008B CN202111486909.9A CN202111486909A CN114245008B CN 114245008 B CN114245008 B CN 114245008B CN 202111486909 A CN202111486909 A CN 202111486909A CN 114245008 B CN114245008 B CN 114245008B
Authority
CN
China
Prior art keywords
focusing
distances
zoom step
estimated
under different
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111486909.9A
Other languages
Chinese (zh)
Other versions
CN114245008A (en
Inventor
王宁
薛超
韩强
韩远国
李庆新
李梦菊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tiandy Technologies Co Ltd
Original Assignee
Tiandy Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tiandy Technologies Co Ltd filed Critical Tiandy Technologies Co Ltd
Priority to CN202111486909.9A priority Critical patent/CN114245008B/en
Publication of CN114245008A publication Critical patent/CN114245008A/en
Application granted granted Critical
Publication of CN114245008B publication Critical patent/CN114245008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • H04N23/675Focus control based on electronic image sensor signals comprising setting of focusing regions

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Lens Barrels (AREA)

Abstract

The invention provides a focusing method, a focusing device, electronic equipment and a computer readable storage medium, belongs to the technical field of image processing, and solves the technical problem that the existing water conservancy equipment is difficult to focus in a scene with simple environment and no light supplement. A focusing method for a monitoring device, comprising: collecting focusing positions based on first zoom step sizes under different first distances to obtain a plurality of estimated focusing curves under different first distances; acquiring actual focusing positions based on second zoom step sizes at different second distances, and calculating deviation values of the estimated focusing positions based on the second zoom step sizes and the actual focusing positions at different second distances according to a plurality of estimated focusing curves to obtain a plurality of deviation value curves at different second distances; acquiring the current object distance and the zoom step number; and according to the current object distance and the zoom step number, a clear point focusing position is obtained by utilizing the estimated focusing curve and the deviation value curve.

Description

Focusing method, focusing device, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a focusing method, a focusing device, an electronic device, and a computer readable storage medium.
Background
In the water conservancy monitoring process, water level detection can be realized by utilizing water conservancy equipment, water surface floaters are detected, river sand is stolen and collected, water and rain conditions and the like are automatically monitored and early-warned, the working intensity of supervision personnel can be relieved, and the unattended supervision level is improved.
The water conservancy equipment needs to detect the scene with simple environment and no light supplement at night, so that the problem of difficult focusing is caused, the focusing process is the process of searching for clear points of an image, the definition of the image is usually represented by the value of a filter, and the greater the value of the filter is, the clearer the image is. Along with the change of a focusing motor, the image definition is continuously changed, the value of the filter is also continuously changed, the filter can well represent the clear point of the image under the environment with good illumination environment or complex scene, and the maximum value of the filter can be found by using a peak search algorithm, so that the clearest point of the image can be found. However, under the conditions of poor illumination (large noise) and single environment, the change of the filter value is not obvious, that is, the value of the filter cannot represent the clear point of the image, and the clearest point of the image cannot be found through a peak search algorithm. The blurred image can increase the difficulty of algorithm analysis (automatic detection algorithm), reduce the accuracy of algorithm analysis, and further reduce the unattended supervision level.
Therefore, the existing water conservancy equipment has the problem of difficult focusing in a scene with simple environment and no light supplement.
Disclosure of Invention
The invention aims to provide a focusing method, a focusing device, electronic equipment and a computer readable storage medium, so as to solve the technical problem that the existing water conservancy equipment is difficult to focus in a scene with simple environment and no light supplement.
In a first aspect, the present invention provides a focusing method for a monitoring device, including:
collecting focusing positions based on first zoom step sizes under different first distances to obtain a plurality of estimated focusing curves under different first distances;
acquiring actual focusing positions based on second zoom step sizes at different second distances, and calculating deviation values of the estimated focusing positions based on the second zoom step sizes and the actual focusing positions at different second distances according to a plurality of estimated focusing curves to obtain a plurality of deviation value curves at different second distances;
acquiring the current object distance and the zoom step number;
and according to the current object distance and the zoom step number, a clear point focusing position is obtained by utilizing the estimated focusing curve and the deviation value curve.
Further, the step of acquiring the focusing positions based on the first zoom step length under different first distances to obtain a plurality of estimated focusing curves under different first distances includes:
collecting focusing positions based on first zoom step sizes under different first distances to obtain a plurality of groups of data of the focusing positions based on different first zoom step sizes under different first distances;
fitting the data of focusing positions based on the first zoom step length under a plurality of groups of different first distances to obtain a plurality of estimated focusing curves under different first distances.
Further, the step of collecting actual focusing positions based on the second zoom step length at different second distances, calculating deviation values of the estimated focusing positions based on the second zoom step length and the actual focusing positions at different second distances according to a plurality of estimated focusing curves, and obtaining a plurality of deviation value curves at different second distances includes:
acquiring actual focusing positions based on second zoom step sizes at different second distances to obtain multiple groups of data of the actual focusing positions based on the second zoom step sizes at different second distances;
calculating estimated focusing position data based on the second zoom step length at different second distances according to the estimated focusing curve;
the estimated focusing position data based on the second zoom step length and the actual focusing position data under different second distances are subjected to difference, so that a plurality of groups of deviation value data based on the second zoom step length under different second distances are obtained;
fitting a plurality of groups of deviation value data based on the second zoom step length under different second distances to obtain a plurality of deviation value curves under different second distances.
Further, the step of obtaining the current object distance includes:
acquiring the current height data and deflection angle data of the monitoring equipment;
and calculating the object distance according to the current height data and the deflection angle data of the monitoring equipment to obtain the current object distance value.
Further, the step of obtaining the focus position of the clear point by using the estimated focus curve and the deviation value curve according to the current object distance and the zoom step number comprises the following steps:
calculating estimated focusing position data by using an estimated focusing curve according to the current object distance value and the zoom step number;
calculating deviation value data by using a deviation value curve according to the current object distance value and the zoom step number;
and superposing the estimated focusing position data and the deviation value data to obtain the current object distance value and the clear point focusing position under the variable-magnification step number.
Further, after the step of obtaining the focus position of the clear point by using the estimated focus curve and the deviation value curve according to the current object distance and the zoom step number, the method further comprises:
transmitting instruction information for reaching a clear point focusing position to a focusing motor;
the focusing motor executes the instruction to achieve the clear point focusing position.
In a second aspect, the present invention also provides a focusing apparatus, including:
the speculative focusing curve module: the focusing method comprises the steps of acquiring focusing positions based on first zoom step sizes under different first distances to obtain a plurality of estimated focusing curves under different first distances;
deviation value curve module: the method comprises the steps of acquiring actual focusing positions based on second zoom step sizes under different second distances, and calculating deviation values of the estimated focusing positions based on the second zoom step sizes and the actual focusing positions under different second distances according to a plurality of estimated focusing curves to obtain a plurality of deviation value curves under different second distances;
the acquisition module is used for: the method is used for obtaining the current object distance and the zoom step number;
a clear point focusing position module: and the method is used for obtaining the focusing position of the clear point by utilizing the estimated focusing curve and the deviation value curve according to the current object distance and the zoom step number.
In a third aspect, the present invention also provides an electronic device, comprising a memory, a processor, the memory storing a computer program executable on the processor, the processor implementing the steps of the method of the first aspect when the computer program is executed.
In a fourth aspect, the present invention also provides a computer readable storage medium storing machine executable instructions which, when invoked and executed by a processor, cause the processor to perform the method of the first aspect.
The invention provides a focusing method, which is used for monitoring equipment and comprises the following steps: collecting focusing positions based on first zoom step sizes under different first distances to obtain a plurality of estimated focusing curves under different first distances; acquiring actual focusing positions based on second zoom step sizes at different second distances, and calculating deviation values of the estimated focusing positions based on the second zoom step sizes and the actual focusing positions at different second distances according to a plurality of estimated focusing curves to obtain a plurality of deviation value curves at different second distances; acquiring the current object distance and the zoom step number; and according to the current object distance and the zoom step number, a clear point focusing position is obtained by utilizing the estimated focusing curve and the deviation value curve.
The focusing method provided by the invention is used for collecting the actual focusing positions based on the second zoom step length under different second distances, calculating the estimated focusing positions based on the second zoom step length under different second distances through the estimated focusing curve, obtaining the deviation values of the estimated focusing positions and the actual focusing positions, further obtaining a plurality of deviation value curves under different second distances, and obtaining the focusing position of the clear point by utilizing the estimated focusing curve and the deviation value curve according to the current object distance and the zoom step number. In the actual use process of the monitoring equipment, different deflection angles exist between the lens of the monitoring equipment and the plane of the shot object, so that a deflection value exists between the actual focusing position and the presumed focusing position, meanwhile, a relatively accurate clear point focusing position can be calculated by utilizing a presumed focusing curve and a deflection value curve, the focusing position can be obtained without the representation of a filter, the problem that the environment is simple and a scene without light supplement is difficult to focus clearly at night is solved, the night focusing performance of the monitoring equipment is improved, and the unattended supervision level of the water conservancy monitoring equipment is also improved.
Accordingly, the focusing device, the electronic device and the computer readable storage medium provided by the invention have the technical effects as well.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a focusing method according to an embodiment of the present invention;
FIG. 2 is a detailed flowchart of a focusing method S1 according to an embodiment of the present invention;
FIG. 3 is a detailed flowchart of the focusing method S2 according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a monitoring device according to an embodiment of the present invention;
FIG. 5 is a detailed flowchart of the focusing method S4 according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a focusing apparatus according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "comprising" and "having" and any variations thereof, as used in the embodiments of the present invention, are intended to cover non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or apparatus.
The water conservancy equipment needs to detect the scene with simple environment and no light supplement at night, so that the problem of difficult focusing is caused, the focusing process is the process of searching for clear points of an image, the definition of the image is usually represented by the value of a filter, and the greater the value of the filter is, the clearer the image is. Along with the change of a focusing motor, the image definition is continuously changed, the value of the filter is also continuously changed, the filter can well represent the clear point of the image under the environment with good illumination environment or complex scene, and the maximum value of the filter can be found by using a peak search algorithm, so that the clearest point of the image can be found. However, under the conditions of poor illumination (large noise) and single environment, the change of the filter value is not obvious, that is, the value of the filter cannot represent the clear point of the image, and the clearest point of the image cannot be found through a peak search algorithm. The blurred image can increase the difficulty of algorithm analysis (automatic detection algorithm), reduce the accuracy of algorithm analysis, and further reduce the unattended supervision level.
Therefore, the existing water conservancy equipment has the problem of difficult focusing in a scene with simple environment and no light supplement.
In order to solve the above problems, an embodiment of the present invention provides a focusing method.
As shown in fig. 1, an embodiment of the present invention provides a focusing method for a monitoring device, including:
s1, collecting focusing positions based on first zoom step sizes under different first distances to obtain a plurality of estimated focusing curves under different first distances.
S2, acquiring actual focusing positions based on second zoom step sizes at different second distances, and calculating deviation values of the estimated focusing positions based on the second zoom step sizes and the actual focusing positions at different second distances according to the plurality of estimated focusing curves to obtain a plurality of deviation value curves at different second distances.
And S3, acquiring the current object distance and the zoom step number.
S4, according to the current object distance and the zoom step number, a clear point focusing position is obtained by utilizing the estimated focusing curve and the deviation value curve.
By adopting the focusing method provided by the embodiment of the invention, the actual focusing positions based on the second zoom step length under different second distances are collected, the estimated focusing positions based on the second zoom step length under different second distances are calculated through the estimated focusing curve, the deviation values of the estimated focusing positions and the actual focusing positions are obtained, a plurality of deviation value curves under different second distances are obtained, and the clear point focusing positions are obtained by utilizing the estimated focusing curve and the deviation value curve according to the current object distance and the zoom step number. In the actual use process of the monitoring equipment, different deflection angles exist between the lens of the monitoring equipment and the plane of the shot object, so that a deflection value exists between the actual focusing position and the presumed focusing position, meanwhile, a relatively accurate clear point focusing position can be calculated by utilizing a presumed focusing curve and a deflection value curve, the focusing position can be obtained without the representation of a filter, the problem that the environment is simple and a scene without light supplement is difficult to focus clearly at night is solved, the night focusing performance of the monitoring equipment is improved, and the unattended supervision level of the water conservancy monitoring equipment is also improved.
As shown in fig. 2, in one possible embodiment, the step of S1 includes:
and S11, collecting focusing positions based on the first zoom step sizes under different first distances, and obtaining a plurality of groups of data of the focusing positions based on the different first zoom step sizes under different first distances.
And S12, fitting a plurality of groups of data of focusing positions based on the first zoom step length under different first distances to obtain a plurality of estimated focusing curves under different first distances.
For example, as shown in table 1, the focus position data based on the first zoom step size at the different first distances, where Z-step is the zoom step number.
TABLE 1
Fitting is carried out by utilizing a plurality of groups of data of focusing positions based on the first zoom step length under different first distances, abnormal points are removed, and a presumed focusing curve is obtained.
As shown in fig. 3, in a possible embodiment, the step of S2 includes:
and S21, acquiring the actual focusing positions based on the second zoom step length under different second distances, and obtaining a plurality of groups of data of the actual focusing positions based on the second zoom step length under different second distances.
S22, calculating estimated focusing position data based on the second zoom step length at different second distances according to the estimated focusing curve.
S23, difference is made between the estimated focusing position data based on the second zoom step length and the actual focusing position data under different second distances, and a plurality of groups of deviation value data based on the second zoom step length under different second distances are obtained.
And S24, fitting a plurality of groups of deviation value data based on the second zoom step length under different second distances to obtain a plurality of deviation value curves under different second distances.
And carrying the data based on the second zoom step length under different second distances into a presumptive focusing curve to calculate, obtaining presumptive focusing positions based on the second zoom step length under different second distances, obtaining deviation value data under multiple groups of different second distances by making differences between the collected actual focusing positions based on the second zoom step length under different second distances and the presumptive focusing positions, for example, as shown in table 2, wherein Z-step is the zoom step number, fitting by utilizing the multiple groups of deviation value data, and removing abnormal points to obtain the presumptive focusing curve.
TABLE 2
As shown in fig. 4, in one possible embodiment, the step of obtaining the current object distance includes:
and acquiring the height data and the deflection angle data of the current monitoring equipment, and calculating the object distance 2 according to the height data and the deflection angle data of the current monitoring equipment 1 to obtain the current object distance 2 value. The distance between the monitoring device 1 and the view field picture 3 (namely, the object distance) can be calculated by using the height of the monitoring device 2 and the deflection angle between the monitoring device 1 and the vertical direction.
As shown in fig. 5, in a possible embodiment, the step of S4 includes:
s41, calculating estimated focusing position data by using an estimated focusing curve according to the current object distance value and the zoom step number.
S42, calculating deviation value data by using a deviation value curve according to the current object distance value and the zoom step number.
And S43, superposing the estimated focusing position data and the deviation value data to obtain the current object distance value and the clear point focusing position under the zoom step number.
And respectively carrying the current object distance and the zoom step number into a presumptive focusing curve and a deviation value curve for calculation to obtain presumptive focusing position and deviation value data under the current object distance and the zoom step number, and superposing the presumptive focusing position and the deviation value data to obtain the current clear point focusing position.
As shown in fig. 1, in a possible embodiment, after the step of S4, the method further includes:
and S5, sending instruction information for reaching the focusing position of the clear point to the focusing motor.
And S6, the focusing motor executes an instruction to reach a clear point focusing position.
The focusing motor reaches the focusing position of the clear point according to the instruction information, thereby completing focusing.
As shown in fig. 6, an embodiment of the present invention further provides a focusing apparatus, including:
the speculative focus curve module 1: the focusing method comprises the steps of acquiring focusing positions based on first zoom step sizes under different first distances to obtain a plurality of estimated focusing curves under different first distances;
deviation value curve module 2: the method comprises the steps of acquiring actual focusing positions based on second zoom step sizes under different second distances, and calculating deviation values of the estimated focusing positions based on the second zoom step sizes and the actual focusing positions under different second distances according to a plurality of estimated focusing curves to obtain a plurality of deviation value curves under different second distances;
acquisition module 3: the method is used for obtaining the current object distance and the zoom step number;
clear point focus position module 4: and the method is used for obtaining the focusing position of the clear point by utilizing the estimated focusing curve and the deviation value curve according to the current object distance and the zoom step number.
The embodiment of the invention also provides electronic equipment, which comprises a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor realizes the steps of the method provided by the embodiment when executing the computer program.
Embodiments of the present invention also provide a computer-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to perform the methods provided by the embodiments.
The focusing device, the electronic device and the computer readable storage medium provided by the embodiment of the invention have the same technical characteristics as the focusing method provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The device provided by the embodiment of the invention can be specific hardware on the equipment or software or firmware installed on the equipment. The device provided by the embodiment of the present invention has the same implementation principle and technical effects as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment is not mentioned. It will be clear to those skilled in the art that, for convenience and brevity, the specific operation of the system, apparatus and unit described above may refer to the corresponding process in the above method embodiment, which is not described in detail herein.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As another example, the division of the units is merely a logical function division, and there may be another division manner when actually implemented, and for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments provided in the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that: like reference numerals and letters in the following figures denote like items, and thus once an item is defined in one figure, no further definition or explanation of it is required in the following figures, and furthermore, the terms "first," "second," "third," etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention, and are not intended to limit the scope of the present invention, but it should be understood by those skilled in the art that the present invention is not limited thereto, and that the present invention is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit of the corresponding technical solutions. Are intended to be encompassed within the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (6)

1. A focusing method for a monitoring device, comprising:
collecting focusing positions based on first zoom step sizes under different first distances to obtain a plurality of estimated focusing curves under different first distances; comprising the following steps: collecting focusing positions based on first zoom step sizes under different first distances to obtain a plurality of groups of data of the focusing positions based on different first zoom step sizes under different first distances; fitting a plurality of groups of data of focusing positions based on the first zoom step length under different first distances to obtain a plurality of estimated focusing curves under different first distances;
acquiring actual focusing positions based on second zoom step sizes at different second distances, and calculating deviation values of the estimated focusing positions based on the second zoom step sizes and the actual focusing positions at different second distances according to a plurality of estimated focusing curves to obtain a plurality of deviation value curves at different second distances; comprising the following steps: acquiring actual focusing positions based on second zoom step sizes at different second distances to obtain multiple groups of data of the actual focusing positions based on the second zoom step sizes at different second distances; calculating estimated focusing position data based on the second zoom step length at different second distances according to the estimated focusing curve; the estimated focusing position data based on the second zoom step length and the actual focusing position data under different second distances are subjected to difference, so that a plurality of groups of deviation value data based on the second zoom step length under different second distances are obtained; fitting a plurality of groups of deviation value data based on the second zoom step length under different second distances to obtain a plurality of deviation value curves under different second distances;
acquiring the current object distance and the zoom step number;
according to the current object distance and the zoom step number, a focus curve and a deviation value curve are estimated to obtain a clear point focus position; comprising the following steps: calculating estimated focusing position data by using an estimated focusing curve according to the current object distance value and the zoom step number; calculating deviation value data by using a deviation value curve according to the current object distance value and the zoom step number; and superposing the estimated focusing position data and the deviation value data to obtain the current object distance value and the clear point focusing position under the variable-magnification step number.
2. The focusing method according to claim 1, wherein the step of acquiring the current object distance includes:
acquiring the current height data and deflection angle data of the monitoring equipment;
and calculating the object distance according to the current height data and the deflection angle data of the monitoring equipment to obtain the current object distance value.
3. The focusing method according to claim 1, wherein after the step of obtaining the clear point focus position by using the estimated focus curve and the deviation value curve according to the current object distance and the zoom step number, the method further comprises:
transmitting instruction information for reaching a clear point focusing position to a focusing motor;
the focusing motor executes the instruction to reach the focusing position of the clear point.
4. A focusing apparatus, comprising:
the speculative focusing curve module: the focusing method comprises the steps of acquiring focusing positions based on first zoom step sizes under different first distances to obtain a plurality of estimated focusing curves under different first distances; comprising the following steps: collecting focusing positions based on first zoom step sizes under different first distances to obtain a plurality of groups of data of the focusing positions based on different first zoom step sizes under different first distances; fitting a plurality of groups of data of focusing positions based on the first zoom step length under different first distances to obtain a plurality of estimated focusing curves under different first distances;
deviation value curve module: the method comprises the steps of acquiring actual focusing positions based on second zoom step sizes under different second distances, and calculating deviation values of the estimated focusing positions based on the second zoom step sizes and the actual focusing positions under different second distances according to a plurality of estimated focusing curves to obtain a plurality of deviation value curves under different second distances; comprising the following steps: acquiring actual focusing positions based on second zoom step sizes at different second distances to obtain multiple groups of data of the actual focusing positions based on the second zoom step sizes at different second distances; calculating estimated focusing position data based on the second zoom step length at different second distances according to the estimated focusing curve; the estimated focusing position data based on the second zoom step length and the actual focusing position data under different second distances are subjected to difference, so that a plurality of groups of deviation value data based on the second zoom step length under different second distances are obtained; fitting a plurality of groups of deviation value data based on the second zoom step length under different second distances to obtain a plurality of deviation value curves under different second distances;
the acquisition module is used for: the method is used for obtaining the current object distance and the zoom step number;
a clear point focusing position module: the method comprises the steps of obtaining a clear point focusing position by utilizing a presumed focusing curve and a deviation value curve according to the current object distance and the zoom step number; comprising the following steps: calculating estimated focusing position data by using an estimated focusing curve according to the current object distance value and the zoom step number; calculating deviation value data by using a deviation value curve according to the current object distance value and the zoom step number; and superposing the estimated focusing position data and the deviation value data to obtain the current object distance value and the clear point focusing position under the variable-magnification step number.
5. An electronic device comprising a memory, a processor, the memory having stored therein a computer program executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the method of any of the preceding claims 1-2.
6. A computer readable storage medium storing machine executable instructions which, when invoked and executed by a processor, cause the processor to perform the method of any one of claims 1 to 2.
CN202111486909.9A 2021-12-07 2021-12-07 Focusing method, focusing device, electronic equipment and computer readable storage medium Active CN114245008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111486909.9A CN114245008B (en) 2021-12-07 2021-12-07 Focusing method, focusing device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111486909.9A CN114245008B (en) 2021-12-07 2021-12-07 Focusing method, focusing device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114245008A CN114245008A (en) 2022-03-25
CN114245008B true CN114245008B (en) 2024-02-20

Family

ID=80753763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111486909.9A Active CN114245008B (en) 2021-12-07 2021-12-07 Focusing method, focusing device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114245008B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090126068A (en) * 2008-06-03 2009-12-08 삼성디지털이미징 주식회사 Digital photographing apparatus, method for controlling the same, and recording medium storing program to implement the method
CN103546692A (en) * 2013-11-04 2014-01-29 苏州科达科技股份有限公司 Method and system achieving integrated camera automatic focusing
CN103929588A (en) * 2014-03-21 2014-07-16 金三立视频科技(深圳)有限公司 Rapid and automatic focusing method and system for camera zoom
CN104301611A (en) * 2014-10-14 2015-01-21 浙江宇视科技有限公司 Method and device for correcting zoom tracking curve
CN105704381A (en) * 2016-03-16 2016-06-22 深圳英飞拓科技股份有限公司 Zoom tracking method and zoom tracking device for camera
CN106657787A (en) * 2016-12-28 2017-05-10 天津天地伟业生产力促进有限公司 Fast correction method for zoom tracking curve
CN110225235A (en) * 2018-03-01 2019-09-10 浙江宇视科技有限公司 Zoom follower method and motor-driven lens
CN110933320A (en) * 2019-12-24 2020-03-27 天地伟业技术有限公司 Zoom focusing method based on image analysis
CN111385466A (en) * 2018-12-30 2020-07-07 浙江宇视科技有限公司 Automatic focusing method, device, equipment and storage medium
CN114727095A (en) * 2022-03-23 2022-07-08 苏州思源科安信息技术有限公司 Automatic focusing error calibration implementation method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100781273B1 (en) * 2006-02-20 2007-11-30 엘지전자 주식회사 Error Compensation Apparatus and Method of Camera Module
CN110557547B (en) * 2018-05-30 2021-06-08 北京小米移动软件有限公司 Lens position adjusting method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090126068A (en) * 2008-06-03 2009-12-08 삼성디지털이미징 주식회사 Digital photographing apparatus, method for controlling the same, and recording medium storing program to implement the method
CN103546692A (en) * 2013-11-04 2014-01-29 苏州科达科技股份有限公司 Method and system achieving integrated camera automatic focusing
CN103929588A (en) * 2014-03-21 2014-07-16 金三立视频科技(深圳)有限公司 Rapid and automatic focusing method and system for camera zoom
CN104301611A (en) * 2014-10-14 2015-01-21 浙江宇视科技有限公司 Method and device for correcting zoom tracking curve
CN105704381A (en) * 2016-03-16 2016-06-22 深圳英飞拓科技股份有限公司 Zoom tracking method and zoom tracking device for camera
CN106657787A (en) * 2016-12-28 2017-05-10 天津天地伟业生产力促进有限公司 Fast correction method for zoom tracking curve
CN110225235A (en) * 2018-03-01 2019-09-10 浙江宇视科技有限公司 Zoom follower method and motor-driven lens
CN111385466A (en) * 2018-12-30 2020-07-07 浙江宇视科技有限公司 Automatic focusing method, device, equipment and storage medium
CN110933320A (en) * 2019-12-24 2020-03-27 天地伟业技术有限公司 Zoom focusing method based on image analysis
CN114727095A (en) * 2022-03-23 2022-07-08 苏州思源科安信息技术有限公司 Automatic focusing error calibration implementation method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
变焦曲线拟合方法的比较与研究;高天元;侯振岩;;光子学报(第01期);全文 *
自动对焦综合性能指标及一种基于双向两次下降的自动对焦算法;林忠;黄陈蓉;卢阿丽;;科学技术与工程(第32期);全文 *

Also Published As

Publication number Publication date
CN114245008A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN109931229B (en) Monitoring method and device for vortex-induced vibration of wind generating set
CN111582054B (en) Point cloud data processing method and device and obstacle detection method and device
CN102171707A (en) Two-dimensional barcode localization for camera based devices
US8989481B2 (en) Stereo matching device and method for determining concave block and convex block
CN113012383B (en) Fire detection alarm method, related system, related equipment and storage medium
CN104299202B (en) Out-of-focus blurred image blind restoration method based on intermediate frequency
US8948453B2 (en) Device, method and non-transitory computer readable storage medium for detecting object
KR101051389B1 (en) Adaptive background-based object detection and tracking device and method
CN105354817A (en) Noise image automatic focusing method
CN106683040B (en) Infrared panoramic image splicing method based on NCC algorithm
CN113469201A (en) Image acquisition equipment offset detection method, image matching method, system and equipment
CN112800846A (en) High-altitude parabolic monitoring method and device, electronic equipment and storage medium
CN114245008B (en) Focusing method, focusing device, electronic equipment and computer readable storage medium
CN110349172A (en) Transmission line of electricity external force damage prevention method for early warning based on image procossing and binocular solid ranging
CN113014876B (en) Video monitoring method and device, electronic equipment and readable storage medium
CN104483712A (en) Method, device and system for detecting invasion of foreign objects in power transmission line
CN103400395A (en) Light stream tracking method based on HAAR feature detection
CN103093481B (en) A kind of based on moving target detecting method under the static background of watershed segmentation
CN112330675A (en) AOD-Net based traffic road image atmospheric visibility detection method
CN105184780B (en) A kind of Forecasting Methodology and system of stereoscopic vision depth
JP2005149035A (en) Flood monitoring device
CN108334811B (en) Face image processing method and device
CN116109669A (en) Target tracking method and system and electronic equipment
JP2011108224A (en) Algorithm for detecting contour point in image
CN114143440A (en) Flow velocity detection device and method and computer readable storage medium

Legal Events

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