[go: up one dir, main page]

CN110868584A - Focal length calibration method and device of image acquisition device - Google Patents

Focal length calibration method and device of image acquisition device Download PDF

Info

Publication number
CN110868584A
CN110868584A CN201810987956.3A CN201810987956A CN110868584A CN 110868584 A CN110868584 A CN 110868584A CN 201810987956 A CN201810987956 A CN 201810987956A CN 110868584 A CN110868584 A CN 110868584A
Authority
CN
China
Prior art keywords
value
preset
imaging plate
image
current
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.)
Granted
Application number
CN201810987956.3A
Other languages
Chinese (zh)
Other versions
CN110868584B (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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201810987956.3A priority Critical patent/CN110868584B/en
Publication of CN110868584A publication Critical patent/CN110868584A/en
Application granted granted Critical
Publication of CN110868584B publication Critical patent/CN110868584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

本发明实施例提出一种图像采集装置的焦距校准方法与装置。所述图像采集装置的焦距校准方法包括:每隔预设周期检测成像板上图像的当前清晰值;依据所述预置清晰值和所述当前清晰值,判断所述图像采集装置的后焦是否发生偏移;当所述图像采集装置的后焦发生偏移时,调整所述成像板位置以校准焦距,自动检测、判断、调整,减少人工调整的负担,降低维护人员负担,提升维护效率,保障了图像的清晰度。

Figure 201810987956

The embodiments of the present invention provide a focal length calibration method and device for an image acquisition device. The focal length calibration method of the image acquisition device includes: detecting the current sharpness value of the image on the imaging plate every preset period; according to the preset sharpness value and the current sharpness value, judging whether the back focus of the image acquisition device is not Offset occurs; when the back focus of the image acquisition device deviates, adjust the position of the imaging plate to calibrate the focal length, automatically detect, judge and adjust, reduce the burden of manual adjustment, reduce the burden of maintenance personnel, and improve maintenance efficiency. The clarity of the image is guaranteed.

Figure 201810987956

Description

一种图像采集装置的焦距校准方法与装置A focal length calibration method and device of an image acquisition device

技术领域technical field

本发明涉及图像采集技术领域,具体而言,涉及一种图像采集装置的焦距校准方法与装置。The present invention relates to the technical field of image acquisition, and in particular, to a focal length calibration method and device of an image acquisition device.

背景技术Background technique

随着社会的发展,图像采集技术的使用越来越普及。其中,云台摄像机被广泛地应用于平安城市、高速监控、森林防火等大型项目,被安装在楼顶、信号塔等制高点。With the development of society, the use of image acquisition technology has become more and more popular. Among them, PTZ cameras are widely used in large-scale projects such as safe cities, high-speed monitoring, and forest fire prevention, and are installed on commanding heights such as roofs and signal towers.

现有的摄像机是多个部件的组合体,当温度变化较大或长时间的震动,容易导致其光学后焦发生偏移,最终表现为原来设置的预置位虚焦。一旦出现问题,由于其安装位置和组件的复杂度,导致维护困难,维护时间长、效率低。同时也会影响其监测功能,可能导致监测错漏。The existing camera is a combination of multiple components. When the temperature changes greatly or the vibration for a long time, it is easy to cause the optical back focus to be shifted, and finally it will appear as the original preset virtual focus. Once a problem occurs, due to its installation location and the complexity of components, maintenance is difficult, maintenance time is long, and efficiency is low. At the same time, it will also affect its monitoring function, which may lead to monitoring errors and omissions.

发明内容SUMMARY OF THE INVENTION

为了改善上述问题,本发明的目的在于提供一种图像采集装置的焦距校准方法与装置。In order to improve the above problems, the purpose of the present invention is to provide a focal length calibration method and device of an image acquisition device.

为了实现上述目的,本发明实施例采用的技术方案如下:In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present invention are as follows:

第一方面,本发明实施例提供了一种图像采集装置的焦距校准方法,包括:In a first aspect, an embodiment of the present invention provides a method for calibrating a focal length of an image acquisition device, including:

每隔预设周期检测成像板上图像的当前清晰值;Detect the current clear value of the image on the imaging plate every preset period;

其中,所述当前清晰值为当前所述图像采集装置位于预置坐标、广角位置下,所述成像板所成图像的清晰值;Wherein, the current sharpness value is the sharpness value of the image formed by the imaging plate when the image acquisition device is located at a preset coordinate and a wide-angle position;

依据预置清晰值和所述当前清晰值判断所述图像采集装置的后焦是否发生偏移;其中,所述预置清晰值为所述图像采集装置位于预置坐标、广角位置下,所述成像板所成图像的清晰值的峰值;Determine whether the back focus of the image acquisition device is shifted according to the preset sharpness value and the current sharpness value; wherein, the preset sharpness value is the image acquisition device located at a preset coordinate and a wide-angle position, and the The peak value of the sharpness value of the image formed by the imaging plate;

当所述图像采集装置的后焦发生偏移时,调整所述成像板位置以校准焦距。When the back focus of the image capture device is shifted, the position of the imaging plate is adjusted to calibrate the focus.

第二方面,本发明实施例还提供了一种图像采集装置的焦距校准装置,包括:In a second aspect, an embodiment of the present invention further provides a focal length calibration device for an image acquisition device, including:

检测单元,用于每隔预设周期检测成像板上图像的当前清晰值;a detection unit, used for detecting the current clear value of the image on the imaging plate every preset period;

其中,所述当前清晰值为当前所述图像采集装置位于预置坐标、广角位置下,所述成像板所成图像的清晰值;Wherein, the current sharpness value is the sharpness value of the image formed by the imaging plate when the image acquisition device is located at a preset coordinate and a wide-angle position;

判断单元,用于依据预置清晰值和所述当前清晰值判断所述图像采集装置的后焦是否发生偏移;其中,所述预置清晰值为所述图像采集装置位于预置坐标、广角位置下,所述成像板所成图像的清晰值的峰值;a judgment unit, configured to judge whether the back focus of the image capture device is shifted according to the preset sharpness value and the current sharpness value; wherein, the preset sharpness value is the image capture device located at preset coordinates, wide-angle In the position, the peak value of the clear value of the image formed by the imaging plate;

调整单元,用于若所述图像采集装置的后焦发生偏移,调整所述成像板位置以校准焦距。An adjustment unit, configured to adjust the position of the imaging plate to calibrate the focal length if the back focus of the image acquisition device is deviated.

本发明实施例提供的图像采集装置的焦距校准方法与装置的有益效果:每隔预设周期检测成像板上图像的当前清晰值;依据所述预置清晰值和所述当前清晰值判断所述图像采集装置的后焦是否发生偏移;当所述图像采集装置的后焦发生偏移时,调整所述成像板位置以校准焦距,自动检测、判断、调整,减少人工调整的负担,降低维护人员负担,提升维护效率,保障了图像的清晰度。The focal length calibration method and device for an image acquisition device provided by the embodiments of the present invention have the following advantages: the current sharpness value of the image on the imaging plate is detected every preset period; Whether the back focus of the image acquisition device is shifted; when the back focus of the image acquisition device is shifted, adjust the position of the imaging plate to calibrate the focal length, automatically detect, judge and adjust, reducing the burden of manual adjustment and maintenance It reduces the burden on personnel, improves maintenance efficiency, and ensures the clarity of images.

为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below, and are described in detail as follows in conjunction with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore do not It should be regarded as a limitation of the scope, and for those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without any creative effort.

图1示出了本发明实施例提供的图像采集装置的焦距校准方法的应用环境示意图;FIG. 1 shows a schematic diagram of an application environment of a focal length calibration method of an image acquisition device provided by an embodiment of the present invention;

图2示出了本发明第一实施例提供的图像采集装置的焦距校准方法的流程示意图;FIG. 2 shows a schematic flowchart of a focal length calibration method of an image acquisition device provided by a first embodiment of the present invention;

图3示出了本发明第一实施例提供的图像采集装置的焦距校准方法的步骤S102的子步骤的流程示意图;FIG. 3 shows a schematic flowchart of sub-steps of step S102 of the focal length calibration method of the image acquisition device provided by the first embodiment of the present invention;

图4示出了本发明第一实施例提供的图像采集装置的焦距校准方法的步骤S103的子步骤的流程示意图;FIG. 4 shows a schematic flowchart of sub-steps of step S103 of the focal length calibration method of the image acquisition device provided by the first embodiment of the present invention;

图5示出了本发明第二实施例提供的图像采集装置的焦距校准方法的流程示意图;FIG. 5 shows a schematic flowchart of a focal length calibration method of an image acquisition device provided by a second embodiment of the present invention;

图6示出了本发明第三实施例提供的图像采集装置的焦距校准方法的流程示意图;6 shows a schematic flowchart of a focal length calibration method for an image acquisition device provided by a third embodiment of the present invention;

图7示出了本发明实施例提供的图像采集装置的焦距校准装置的功能单元图。FIG. 7 shows a functional unit diagram of a focal length calibration device of an image acquisition device provided by an embodiment of the present invention.

图标:10-第一驱动装置;20-第二驱动装置;30-第三驱动装置;40-图像信息处理器;50-控制器;60-存储器;70-外设接口;200-图像采集装置的焦距校准装置;201-检测单元;202-判断单元;203-调整单元。Icons: 10-first driving device; 20-second driving device; 30-third driving device; 40-image information processor; 50-controller; 60-memory; 70-peripheral interface; 200-image acquisition device 201-detection unit; 202-judgment unit; 203-adjustment unit.

具体实施方式Detailed ways

下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. The components of the embodiments of the invention generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations.

因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。Thus, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but is merely representative of selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present invention.

需要说明的是,术语“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that relational terms such as the terms "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

本发明较佳实施例提供的一种图像采集装置的焦距校准方法,应用于控制器50。图像采集装置可以采用但不限于摄像机或照相机,图像采集装置包括:成像板和调焦镜片群组。如图1所示,所述控制器50分别与第一驱动装置10、第二驱动装置20、第三驱动装置30、图像信息处理器40、存储器60以及外设接口70电连接。A preferred embodiment of the present invention provides a focal length calibration method for an image acquisition device, which is applied to the controller 50 . The image acquisition device can be, but is not limited to, a video camera or a camera, and the image acquisition device includes an imaging plate and a focusing lens group. As shown in FIG. 1 , the controller 50 is electrically connected to the first driving device 10 , the second driving device 20 , the third driving device 30 , the image information processor 40 , the memory 60 and the peripheral interface 70 , respectively.

第一驱动装置10用于接受控制器50的指令,驱动成像板移动。第一驱动装置10可以采用步进电机。The first driving device 10 is used for receiving the instruction of the controller 50 to drive the imaging plate to move. The first driving device 10 may use a stepping motor.

第二驱动装置20用于接受控制器50的指令,驱动调焦镜片群组变焦。第二驱动装置20可以采用直流电机。The second driving device 20 is used for receiving an instruction from the controller 50 to drive the focusing lens group to zoom. The second driving device 20 may use a DC motor.

第三驱动装置30用于接受控制器50的指令,驱动调焦镜片群组聚焦。第三驱动装置30可以采用直流电机。The third driving device 30 is used for receiving an instruction from the controller 50 to drive the focusing lens group to focus. The third driving device 30 may use a DC motor.

图像信息处理器40用于采集成像板上的图像并转化成图像的清晰度的值,即清晰值,并将清晰值传输给控制器50。The image information processor 40 is used to collect the image on the imaging plate and convert it into a sharpness value of the image, that is, the sharpness value, and transmit the sharpness value to the controller 50 .

存储器60可用于存储软件程序以及模块,如本发明实施例中的图片处理装置及方法所对应的程序指令/模块,图像采集装置的焦距校准装置200。控制器50通过运行存储在存储器60内的软件程序以及模块,从而执行各种功能应用以及数据处理,如本发明实施例提供的图像采集装置的焦距校准方法。存储器60还可用于存储控制器50传输的其他数据。The memory 60 may be used to store software programs and modules, such as program instructions/modules corresponding to the image processing apparatus and method in the embodiments of the present invention, and the focal length calibration apparatus 200 of the image acquisition apparatus. The controller 50 executes various functional applications and data processing by running the software programs and modules stored in the memory 60, such as the focal length calibration method of the image acquisition device provided by the embodiment of the present invention. The memory 60 may also be used to store other data transmitted by the controller 50 .

图像采集装置的焦距校准装置200包括至少一个可以软件或固件(firmware)的形式存储于存储器60中或固化在控制器50的操作系统(operating system,OS)中的软件功能模块。The focal length calibration device 200 of the image capturing device includes at least one software function module that can be stored in the memory 60 or fixed in an operating system (OS) of the controller 50 in the form of software or firmware.

外设接口70用于连接外部输入设备,用户可以通过外部输入设备调整修改图像采集装置的焦距校准装置200。The peripheral interface 70 is used to connect an external input device, and the user can adjust and modify the focal length calibration device 200 of the image capturing device through the external input device.

本发明第一实施例提供的图像采集装置的焦距校准方法应用于控制器50中,具体步骤如图2所示:The focal length calibration method of the image acquisition device provided by the first embodiment of the present invention is applied to the controller 50, and the specific steps are shown in FIG. 2:

步骤S101:每隔预设周期检测所述成像板上图像的当前清晰值、前清晰值和后清晰值。Step S101: Detect the current sharpness value, the front sharpness value and the rear sharpness value of the image on the imaging plate every preset period.

所述前清晰值为所述成像板从当前位置沿靠近调焦镜片群组的方向移动预设距离后所成图像的清晰值;所述后清晰值为所述成像板从当前位置沿远离调焦镜片群组的方向移动预设距离后所成图像的清晰值;所述当前清晰值为当前所述图像采集装置位于预置坐标、广角位置下,所述成像板所成图像的清晰值;所述当前位置为所述成像板上的图像对应所述当前清晰值时所述成像板所处的位置。The front clear value is the clear value of the image formed after the imaging plate is moved from the current position by a preset distance in a direction close to the focusing lens group; The sharpness value of the image formed after the direction of the focus lens group is moved by a preset distance; the current sharpness value is the sharpness value of the image formed by the imaging plate when the image acquisition device is located at the preset coordinates and at the wide-angle position; The current position is the position of the imaging plate when the image on the imaging plate corresponds to the current sharpness value.

预设周期可以预设为12小时、48小时、78小时等,在此不做任何限定。The preset period can be preset as 12 hours, 48 hours, 78 hours, etc., which is not limited herein.

每隔预设周期的时间,控制器50控制第二驱动装置20驱动调焦镜片群组变焦至广角位置。此时,图像信息处理器40采集成像板上的图像并转化成图像的清晰度值,即为所述当前清晰值。图像信息处理器40将所述当前清晰值传输给控制器50。Every preset period of time, the controller 50 controls the second driving device 20 to drive the focusing lens group to zoom to the wide-angle position. At this time, the image information processor 40 collects the image on the imaging plate and converts it into a sharpness value of the image, which is the current sharpness value. The image information processor 40 transmits the current sharpness value to the controller 50 .

控制器50接收到图像信息处理器40传输的所述当前清晰值后,控制第一驱动装置10驱动所述成像板从当前位置沿靠近所述调焦镜片群组的方向移动预设距离。此时,图像信息处理器40采集成像板上的图像并转化成图像的清晰度值,即为所述前清晰值。图像信息处理器40将所述前清晰值传输给控制器50。After receiving the current sharpness value transmitted by the image information processor 40, the controller 50 controls the first driving device 10 to drive the imaging plate to move a preset distance from the current position in a direction close to the focusing lens group. At this time, the image information processor 40 collects the image on the imaging plate and converts it into a sharpness value of the image, which is the former sharpness value. The image information processor 40 transmits the front sharpness value to the controller 50 .

同理地,检测所述成像板上图像的后清晰值。Similarly, the post-sharpness value of the image on the imaging plate is detected.

预设距离根据图像采集装置不同可以适应性地修改。The preset distance can be modified adaptively according to different image capturing devices.

步骤S102:依据预置清晰值、所述当前清晰值、所述前清晰值以及所述后清晰值,判断所述图像采集装置的后焦是否发生偏移?若是,执行步骤S103;若否,执行步骤S101。Step S102: According to the preset sharpness value, the current sharpness value, the front sharpness value and the rear sharpness value, determine whether the back focus of the image capturing device is shifted? If yes, go to step S103; if not, go to step S101.

其中,所述预置清晰值为所述图像采集装置位于预置坐标、广角位置下,所述成像板所成图像的清晰值的峰值。所述预置坐标为工作人员在安装图像采集装置时预置的,用于控制图像采集装置的角度和方向等,可以理解地,所述图像采集装置位于不同的预置坐标下,所采集的图像不同。Wherein, the preset sharpness value is the peak value of the sharpness value of the image formed by the imaging plate when the image acquisition device is located at a preset coordinate and a wide-angle position. The preset coordinates are preset by the staff when the image acquisition device is installed, and are used to control the angle and direction of the image acquisition device. Images are different.

具体地,如图3所示步骤S102的子步骤包括:Specifically, as shown in FIG. 3, the sub-steps of step S102 include:

步骤S1021:判断所述预置清晰值与预设的第一阈值的积是否大于所述当前清晰值?若是,执行步骤S1022;若否,执行步骤S101。Step S1021: Determine whether the product of the preset sharpness value and the preset first threshold value is greater than the current sharpness value? If yes, go to step S1022; if not, go to step S101.

具体地,预设定的第一阈值的取值范围80%-85%。所述预置清晰值与预设定的第一阈值的积为清晰度有保障、允许的误差范围内的最低值,当所述预置清晰值与预设的第一阈值的积大于所述当前清晰值时,则说明此时图像的的清晰值已经超出了允许的误差范围,为了进一步确定是否是图像采集装置的后焦发生偏移,执行步骤S1022。Specifically, the value range of the preset first threshold is 80%-85%. The product of the preset sharpness value and the preset first threshold value is the lowest value within the allowable error range with guaranteed sharpness, and when the product of the preset sharpness value and the preset first threshold value is greater than the When the current sharpness value is present, it means that the sharpness value of the image at this time has exceeded the allowable error range. In order to further determine whether the back focus of the image acquisition device is shifted, step S1022 is performed.

步骤S1022:判断所述当前清晰值与预设定的第二阈值的积是否大于所述前清晰值和所述后清晰值中的最大值?若是,则执行步骤S101;若否,则执行步骤S103。Step S1022: Determine whether the product of the current sharpness value and the preset second threshold value is greater than the maximum value of the former sharpness value and the rear sharpness value? If yes, go to step S101; if not, go to step S103.

具体地,预设定的第二阈值的取值范围为80%-85%。Specifically, the value range of the preset second threshold is 80%-85%.

若所述当前清晰值与预设定的第二阈值的积小于或等于所述前清晰值和所述后清晰值中的最大值,则说明所述当前清晰值不在允许的误差范围,从而说明,此时图像采集装置的后焦发生了偏移。通过步骤S1021和步骤S1022两次判断,双重验证,能解决环境影响因素,比如下雨、起雾导致的误判问题,提升了检测结果的准确性。If the product of the current sharpness value and the preset second threshold value is less than or equal to the maximum value of the front sharpness value and the rear sharpness value, it means that the current sharpness value is not within the allowable error range, thus indicating that , the back focus of the image acquisition device is shifted. Through two judgments and double verifications in steps S1021 and S1022, the problem of misjudgment caused by environmental influence factors, such as rain and fog, can be solved, and the accuracy of the detection results can be improved.

步骤S103:调整所述成像板位置以校准焦距。Step S103: Adjust the position of the imaging plate to calibrate the focal length.

具体地,如图4所示的步骤S103的子步骤包括:Specifically, the sub-steps of step S103 shown in FIG. 4 include:

步骤S1031:在广角位置下控制所述第一驱动装置10驱动所述成像板移动至第一位置,以使得所述成像板上的图像处于第一最清晰状态。Step S1031 : controlling the first driving device 10 to drive the imaging plate to move to a first position in a wide-angle position, so that the image on the imaging plate is in a first clearest state.

具体地,控制器50控制第一驱动装置10驱动所述成像板逐步移动。Specifically, the controller 50 controls the first driving device 10 to drive the imaging plate to move step by step.

控制器50每移动一步接收并记录图像信息处理器40传输所述成像板上图像的清晰值,并记录所述成像板对应所述清晰值所在的位置。The controller 50 receives and records the sharpness value of the image on the imaging plate transmitted by the image information processor 40 every time the controller 50 moves, and records the position of the imaging plate corresponding to the sharpness value.

依据爬山算法计算出所述清晰值的峰值,并依据所述清晰值的峰值查询出与所述峰值关联的第一位置。因为当所述成像板从允许的最远离所述调焦镜片群组位置向最靠近所述调焦镜片群组的位置移动时,所述成像板上的图像的清晰值排列呈现一个山峰状。The peak value of the clear value is calculated according to the hill-climbing algorithm, and the first position associated with the peak value is queried according to the peak value of the clear value. Because when the imaging plate moves from the allowed position farthest from the focusing lens group to the position closest to the focusing lens group, the arrangement of sharpness values of the image on the imaging plate presents a peak shape.

控制第一驱动装置10驱动所述成像板移动至所述第一位置。从而保证所述成像板上的图像处于第一最清晰状态的第一位置。The first driving device 10 is controlled to drive the imaging plate to move to the first position. Therefore, it is ensured that the image on the imaging plate is in the first position in the first clearest state.

步骤S1032:控制第二驱动装置20驱动所述调焦镜片群组变焦至最长焦位置。Step S1032: Controlling the second driving device 20 to drive the focusing lens group to zoom to the longest focal position.

具体地,保持所述成像板位于所述第一位置,控制器50控制第二驱动装置20驱动所述调焦镜片群组变焦至最长焦位置。Specifically, keeping the imaging plate at the first position, the controller 50 controls the second driving device 20 to drive the focusing lens group to zoom to the longest focal position.

步骤S1033:控制第三驱动装置30驱动处于最长焦位置的所述调焦镜片群组聚焦至使得所述成像板上的图像处于第二最清晰状态的第二位置。Step S1033: Control the third driving device 30 to drive the focusing lens group in the longest focal position to focus to a second position where the image on the imaging plate is in the second clearest state.

具体地,控制器50控制第三驱动装置30驱动所述调焦镜片群组移动。Specifically, the controller 50 controls the third driving device 30 to drive the focusing lens group to move.

控制器50接收并记录图像信息处理器40传输所述成像板上图像的清晰值,并记录所述调焦镜片群组对应所述清晰值所在的位置。The controller 50 receives and records the sharpness value of the image on the imaging plate transmitted by the image information processor 40, and records the position of the focusing lens group corresponding to the sharpness value.

依据爬山算法计算出所述清晰值的峰值,并依据所述清晰值的峰值查询出与所述峰值关联的第二位置。因为当所述调焦镜片群组移动时,所述成像板上的图像的清晰值排列也呈现一个山峰状。当所述调焦镜片群组位于与所述峰值关联的第二位置,所述成像板上的图像的清晰度最高。The peak value of the clear value is calculated according to the hill-climbing algorithm, and the second position associated with the peak value is queried according to the peak value of the clear value. Because when the focusing lens group moves, the arrangement of the sharpness values of the image on the imaging plate also presents a peak shape. The sharpness of the image on the imaging plate is highest when the focusing lens group is located at the second position associated with the peak.

控制器50控制第三驱动装置30驱动所述调焦镜片群组聚焦至所述第二位置。The controller 50 controls the third driving device 30 to drive the focusing lens group to focus on the second position.

故所述第一位置为所述调焦镜片群组聚焦至所述第二位置、变焦至最长焦位置状态下,所述成像板上的图像最清晰时,所述成像板所处于的位置。Therefore, the first position is the position of the imaging plate when the image on the imaging plate is the clearest when the focusing lens group is focused to the second position and zoomed to the longest focal position. .

步骤1034:保持所述调焦镜片群组聚焦于所述第二位置,控制所述第二驱动装置20驱动所述调焦镜片群组重新变焦至广角位置。Step 1034 : Keep the focusing lens group focused on the second position, and control the second driving device 20 to drive the focusing lens group to re-zoom to the wide-angle position.

步骤1035:在广角位置下控制所述第一驱动装置10驱动所述成像板移动至第三位置,以使得所述成像板上的图像处于第三最清晰状态。Step 1035: Control the first driving device 10 to drive the imaging plate to move to a third position in the wide-angle position, so that the image on the imaging plate is in the third clearest state.

与步骤S1031同理,故所述第三位置为所述调焦镜片群组聚焦至所述第二位置、变焦至广角位置状态下,所述成像板上的图像最清晰时,所述成像板所处于的位置。Similar to step S1031, the third position is when the focusing lens group is focused to the second position and zoomed to the wide-angle position, when the image on the imaging plate is the clearest, the imaging plate the position it is in.

步骤1036:判断所述第三位置与所述第一位置的距离值是否小于预设定的第三阈值?若是,则执行步骤S1037;若否,则执行步骤S1038。Step 1036: Determine whether the distance between the third position and the first position is less than a preset third threshold? If yes, go to step S1037; if not, go to step S1038.

具体地,当所述第三位置与所述第一位置的距离值小于预设定的第三阈值时,说明所述调焦镜片群组位于广角位置或最长焦位置时,所述成像板对应所述成像板上图像的最清晰状态所处的位置距离很近,在允许的误差范围内,说明当所述成像板位于第三位置时,所述调焦镜片群组变焦至广角位置或变焦至最长焦位置都能得到理想清晰度的图像。Specifically, when the distance value between the third position and the first position is smaller than a preset third threshold, it means that the focusing lens group is located at the wide-angle position or the longest focal position, and the imaging plate The position corresponding to the clearest state of the image on the imaging plate is very close, and within the allowable error range, it means that when the imaging plate is in the third position, the focusing lens group is zoomed to the wide-angle position or The ideal sharpness of the image can be obtained by zooming to the maximum focal position.

若所述第三位置与所述第一位置的距离值大于或等于预设定的第三阈值时,说明当所述成像板位于第三位置时,不满足所述调焦镜片群组变焦至广角位置或变焦至最长焦位置都能得到理想清晰度的图像条件。If the distance between the third position and the first position is greater than or equal to a preset third threshold, it means that when the imaging plate is at the third position, it is not satisfied that the focusing lens group is zoomed to Image conditions with ideal sharpness can be obtained from the wide-angle position or zooming to the longest focal position.

步骤S1037:依据所述第三位置校准焦距。Step S1037: Calibrate the focal length according to the third position.

步骤S1038:将所述第三位置覆盖所述第一位置,生成新的第一位置,并删除已有的所述第二位置和所述第三位置。Step S1038: Cover the first position with the third position, generate a new first position, and delete the existing second position and the third position.

具体地,例如已记录的所述第一位置为S,所述第二位置为M,所述第三位置为N。所述第三位置覆盖所述第一位置,即新的第一位置为N。删除所述第二位置和所述第三位置。Specifically, for example, the recorded first position is S, the second position is M, and the third position is N. The third position covers the first position, that is, the new first position is N. The second position and the third position are deleted.

本发明第二实施例提供的图像采集装置的焦距校准方法应用于控制器50中,具体步骤如图5所示:The focal length calibration method of the image acquisition device provided by the second embodiment of the present invention is applied to the controller 50, and the specific steps are shown in FIG. 5:

步骤S201:每隔预设周期检测所述成像板上图像的当前清晰值。Step S201: Detect the current sharpness value of the image on the imaging plate every preset period.

步骤S202:判断所述预置清晰值与预设的第一阈值的积是否大于所述当前清晰值?若是,执行步骤S203;若否,执行步骤S201。Step S202: Determine whether the product of the preset sharpness value and the preset first threshold value is greater than the current sharpness value? If yes, go to step S203; if not, go to step S201.

步骤S203:检测所述成像板上图像的前清晰值和后清晰值。Step S203: Detect the front sharpness value and the rear sharpness value of the image on the imaging plate.

步骤S204:判断所述当前清晰值与预设定的第二阈值的积是否大于所述前清晰值和所述后清晰值中的最大值?若是,执行步骤S201;若否,执行步骤S205。Step S204: Determine whether the product of the current sharpness value and the preset second threshold value is greater than the maximum value of the former sharpness value and the rear sharpness value? If yes, go to step S201; if no, go to step S205.

步骤S205:调整所述成像板位置以校准焦距。Step S205: Adjust the position of the imaging plate to calibrate the focal length.

逐步检测判断,当步骤S202的检查结果为否时,则不用执行剩余步骤,降低所述图像采集装置的运行负担,从而提升了设备的运行效率Step-by-step detection and judgment, when the inspection result of step S202 is no, the remaining steps do not need to be performed, which reduces the operating burden of the image acquisition device, thereby improving the operating efficiency of the equipment

本发明第三实施例提供的图像采集装置的焦距校准方法应用于控制器50中,具体步骤如图6所示:The focal length calibration method of the image acquisition device provided by the third embodiment of the present invention is applied to the controller 50, and the specific steps are shown in FIG. 6 :

步骤S301:每隔预设周期检测成像板上图像的当前清晰值。Step S301: Detect the current sharpness value of the image on the imaging plate every preset period.

步骤S302:依据预置清晰值和所述当前清晰值判断所述图像采集装置的后焦是否发生偏移?若是,则执行步骤S303;若否,则执行步骤S301。Step S302: According to the preset sharpness value and the current sharpness value, determine whether the back focus of the image capture device is shifted? If yes, go to step S303; if not, go to step S301.

具体地,判断所述预置清晰值与预设定的第一阈值的积是否小于或等于所述当前清晰值,若是,则所述图像采集装置的后焦未发生偏移;若否,则所述图像采集装置的后焦发生偏移。Specifically, it is judged whether the product of the preset sharpness value and the preset first threshold value is less than or equal to the current sharpness value, if so, the back focus of the image acquisition device is not shifted; if not, then The back focus of the image capture device is shifted.

步骤S303:调整所述成像板位置以校准焦距。Step S303: Adjust the position of the imaging plate to calibrate the focal length.

请参阅7,图5为本发明较佳实施例提供的一种图像采集装置的焦距校准装置200。需要说明的是,本实施例所提供的图像采集装置的焦距校准装置200,其基本原理及产生的技术效果和上述实施例相同,为简要描述,本实施例部分未提及之处,可参考上述实施例中相应内容。Please refer to 7, FIG. 5 is a focal length calibration device 200 of an image acquisition device according to a preferred embodiment of the present invention. It should be noted that the basic principle and the technical effect of the focal length calibration device 200 of the image acquisition device provided in this embodiment are the same as those of the above-mentioned embodiments. For brief description, the parts not mentioned in this embodiment can be referred to. The corresponding contents in the above-mentioned embodiments.

图像采集装置的焦距校准装置200应用于控制器50,图像采集装置的焦距校准装置200包括:The focal length calibration device 200 of the image acquisition device is applied to the controller 50, and the focal length calibration device 200 of the image acquisition device includes:

检测单元201,用于每隔预设周期,检测成像板上图像的当前清晰值,。具体地,检测单元201可以执行步骤S301。The detection unit 201 is configured to detect the current sharpness value of the image on the imaging plate every preset period. Specifically, the detection unit 201 may perform step S301.

其中,所述当前清晰值为当前所述图像采集装置位于预置坐标、广角位置下,所述成像板所成图像的清晰值。Wherein, the current sharpness value is the sharpness value of the image formed by the imaging plate when the image acquisition device is located at a preset coordinate and a wide-angle position.

检测单元201还用于每隔所述预设周期检测成像板上图像的前清晰值和后清晰值。所以,检测单元201可以执行步骤S101、S201以及S203。The detection unit 201 is further configured to detect the front sharpness value and the rear sharpness value of the image on the imaging plate every preset period. Therefore, the detection unit 201 may perform steps S101, S201 and S203.

其中,所述前清晰值为所述成像板从当前位置沿靠近调焦镜片群组的方向移动预设距离后所成图像的清晰值;所述后清晰值为所述成像板从当前位置沿远离调焦镜片群组的方向移动预设距离后所成图像的清晰值;所述当前位置为所述成像板对应所述当前清晰值处于的位置。Wherein, the front clear value is the clear value of the image formed after the imaging plate moves from the current position by a preset distance in a direction close to the focusing lens group; the rear clear value is the image plate from the current position along the The sharpness value of the image formed after moving away from the focusing lens group by a preset distance; the current position is the position where the imaging plate corresponds to the current sharpness value.

判断单元202,用于依据预置清晰值和所述当前清晰值,或依据所述预置清晰值、所述当前清晰值、所述前清晰值和所述后清晰值,判断所述图像采集装置的后焦是否发生偏移。具体地,判断单元202可以执行步骤S102、S302。Judging unit 202, configured to judge the image capture according to the preset sharpness value and the current sharpness value, or according to the preset sharpness value, the current sharpness value, the former sharpness value and the back sharpness value Whether the back focus of the unit is shifted. Specifically, the judging unit 202 may execute steps S102 and S302.

其中,所述预置清晰值为所述图像采集装置位于预置坐标,广角位置下,所述成像板所成图像的清晰值的峰值。Wherein, the preset sharpness value is the peak value of the sharpness value of the image formed by the imaging plate when the image acquisition device is located at a preset coordinate and at a wide-angle position.

判断单元202具体用于判断所述预置清晰值与预设定的第一阈值的积是否小于或等于所述当前清晰值,若否,则所述图像采集装置的后焦发生偏移。The judging unit 202 is specifically configured to judge whether the product of the preset sharpness value and the preset first threshold value is less than or equal to the current sharpness value, and if not, the back focus of the image capturing device is shifted.

判断单元202还可以具体用于判断所述预置清晰值与预设的第一阈值的积是否大于所述当前清晰值。具体地,判断单元202可以执行步骤S1021和S202。The determining unit 202 may also be specifically configured to determine whether the product of the preset sharpness value and the preset first threshold value is greater than the current sharpness value. Specifically, the determination unit 202 may perform steps S1021 and S202.

当所述预置清晰值与所述第一阈值的积大于所述当前清晰值时,判断单元202还可以具体用于判断所述当前清晰值与预设定的第二阈值的积是否大于所述前清晰值和所述后清晰值中的最大值。具体地,判断单元202可以执行步骤S1022和S204。When the product of the preset sharpness value and the first threshold value is greater than the current sharpness value, the determining unit 202 may also be specifically configured to determine whether the product of the current sharpness value and the preset second threshold value is greater than the predetermined sharpness value. The maximum value of the preceding sharpness value and the preceding sharpness value. Specifically, the determination unit 202 may perform steps S1022 and S204.

若所述预置清晰值与所述第一阈值的积大于所述当前清晰值、所述当前清晰值与所述第二阈值的积小于或等于所述前清晰值和所述后清晰值中的最大值,则所述图像采集装置的后焦发生偏移。If the product of the preset sharpness value and the first threshold value is greater than the current sharpness value, the product of the current sharpness value and the second threshold value is less than or equal to the former sharpness value and the rear sharpness value is the maximum value, the back focus of the image acquisition device is shifted.

调整单元203,用于若所述图像采集装置的后焦发生偏移,调整所述成像板位置以校准焦距。具体地,调整单元203可以执行步骤S103、步骤S203以及步骤S303。The adjusting unit 203 is configured to adjust the position of the imaging plate to calibrate the focal length if the back focus of the image acquisition device is shifted. Specifically, the adjustment unit 203 may execute step S103, step S203 and step S303.

具体地,调整单元203包括:Specifically, the adjustment unit 203 includes:

第一控制模块,用于在广角位置下控制所述第一驱动装置10驱动所述成像板移动至第一位置,以使得所述成像板上的图像处于第一最清晰状态。具体地,第一控制模块可以执行步骤S1031。The first control module is configured to control the first driving device 10 to drive the imaging plate to move to a first position in a wide-angle position, so that the image on the imaging plate is in a first clearest state. Specifically, the first control module may execute step S1031.

第二控制模块,用于控制第二驱动装置20驱动所述调焦镜片群组变焦至最长焦位置。具体地,第二控制模块可以执行步骤S1032。The second control module is configured to control the second driving device 20 to drive the focusing lens group to zoom to the longest focal position. Specifically, the second control module may execute step S1032.

第三控制模块,用于控制第三驱动装置30驱动处于最长焦位置的所述调焦镜片群组聚焦至使得所述成像板上的图像处于第二最清晰状态的第二位置。具体地,第三控制模块可以执行步骤S1033。The third control module is configured to control the third driving device 30 to drive the focusing lens group in the longest focal position to focus to a second position where the image on the imaging plate is in the second clearest state. Specifically, the third control module may execute step S1033.

第二控制模块还用于保持所述调焦镜片群组聚焦于所述第二位置,控制所述第二驱动装置20驱动所述调焦镜片群组变焦至广角位置。具体地,第二控制模块可以执行步骤S1034。The second control module is further configured to keep the focusing lens group focused on the second position, and control the second driving device 20 to drive the focusing lens group to zoom to a wide-angle position. Specifically, the second control module may execute step S1034.

第一控制模块还用于在广角位置下控制所述第一驱动装置10驱动所述成像板移动至第三位置,以使得所述成像板上的图像处于第三最清晰状态。具体地,第一控制模块可以执行步骤S1035。The first control module is further configured to control the first driving device 10 to drive the imaging plate to move to a third position in the wide-angle position, so that the image on the imaging plate is in the third clearest state. Specifically, the first control module may execute step S1035.

判断单元202还用于判断所述第三位置与所述第一位置的距离值是否小于预设定的第三阈值。具体地,判断单元202可以执行步骤S1036。The determining unit 202 is further configured to determine whether the distance between the third position and the first position is smaller than a preset third threshold. Specifically, the determination unit 202 may execute step S1036.

执行模块,用于若所述第三位置与所述第一位置的距离值小于预设定的第三阈值,依据所述第三位置校准焦距。具体地,执行模块可以执行步骤S1037。The execution module is configured to calibrate the focus according to the third position if the distance value between the third position and the first position is smaller than a preset third threshold. Specifically, the execution module may execute step S1037.

重置模块,用于若所述第三位置与所述第一位置的距离值大于或等于预设定的第三阈值,将所述第三位置覆盖所述第一位置,生成新的第一位置,并删除已有的所述第二位置和所述第三位置。具体地,重置模块可以执行步骤S1038。A reset module, configured to cover the first position with the third position to generate a new first position if the distance between the third position and the first position is greater than or equal to a preset third threshold position, and delete the existing second position and the third position. Specifically, the reset module may execute step S1038.

综上所述,本发明较佳实施例提供的图像采集装置的焦距校准方法与装置中:首先,每隔预设周期检测成像板上图像的当前清晰值,或检测所述成像板上图像的当前清晰值、前清晰值和后清晰值;依据所述预置清晰值和所述当前清晰值,或依据所述预置清晰值、所述当前清晰值、所述前清晰值和所述后清晰值,判断所述图像采集装置的后焦是否发生偏移;当所述图像采集装置的后焦发生偏移时,调整所述成像板位置以校准焦距,控制器自动检测、判断、调整,减少人工调整的负担,降低维护人员负担,提升维护效率,保障了图像的清晰度;其次,依据所述预置清晰值与预设的第一阈值的积是否大于所述当前清晰值、所述当前清晰值与预设定的第二阈值的积是否大于所述前清晰值和所述后清晰值中的最大值,判断所述图像采集装置的后焦发生偏移,双重验证,能解决环境影响因素,比如下雨、起雾导致的误判问题,提升了检测结果的准确性;然后,若所述第三位置与所述第一位置的距离值小于预设定的第三阈值,则依据所述第三位置校准焦距,从而保证当成像板在第三位置时,调焦镜片群组从广角位置变焦至最长焦位置过程中,成像板上的图像的清晰度;最后,逐步检测判断,当步骤S202的检查结果为否时,则不用执行剩余步骤,降低所述图像采集装置的运行负担,从而提升了设备的运行效率。To sum up, in the focal length calibration method and device of the image acquisition device provided by the preferred embodiment of the present invention: first, the current sharpness value of the image on the imaging plate is detected every preset period, or the current sharpness value, previous sharpness value and post sharpness value; according to said preset sharpness value and said current sharpness value, or according to said preset sharpness value, said current sharpness value, said previous sharpness value and said back sharpness value The clear value is used to determine whether the back focus of the image acquisition device is shifted; when the back focus of the image acquisition device is shifted, the position of the imaging plate is adjusted to calibrate the focal length, and the controller automatically detects, judges, and adjusts. Reduce the burden of manual adjustment, reduce the burden of maintenance personnel, improve maintenance efficiency, and ensure the clarity of the image; secondly, according to whether the product of the preset clear value and the preset first threshold value is greater than the current clear value, the Whether the product of the current sharpness value and the preset second threshold value is greater than the maximum value of the front sharpness value and the rear sharpness value, it is judged that the back focus of the image acquisition device is shifted, and double verification can solve the problem of environmental problems. Influencing factors, such as misjudgment problems caused by rain and fog, improve the accuracy of the detection results; then, if the distance between the third position and the first position is less than the preset third threshold, then The focal length is calibrated according to the third position, so as to ensure the clarity of the image on the imaging plate during the process of zooming the focusing lens group from the wide-angle position to the longest focal position when the imaging plate is in the third position; finally, step by step detection It is judged that when the inspection result of step S202 is negative, the remaining steps are not performed, thereby reducing the operating burden of the image capturing device, thereby improving the operating efficiency of the device.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本发明的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may also be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality and possible implementations of apparatuses, methods and computer program products according to various embodiments of the present invention. operate. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. 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 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 is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.

另外,在本发明各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present invention may be integrated to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1. A focal length calibration method of an image acquisition device is characterized by comprising the following steps:
detecting the current clear value of the image on the imaging plate every other preset period;
the current definition value is the definition value of an image formed by the imaging plate when the image acquisition device is located at a preset coordinate and a wide-angle position;
judging whether the back focus of the image acquisition device deviates or not according to a preset clear value and the current clear value; the preset definition value is the peak value of the definition value of the image formed by the imaging plate when the image acquisition device is positioned at a preset coordinate and a wide-angle position;
and when the back focus of the image acquisition device deviates, adjusting the position of the imaging plate to calibrate the focal length.
2. The method for calibrating the focal length of an image capturing device according to claim 1, wherein the step of determining whether the back focus of the image capturing device is shifted according to the preset sharpness value and the current sharpness value comprises:
and judging whether the product of the preset definition value and a preset first threshold value is less than or equal to the current definition value or not, if not, shifting the back focus of the image acquisition device.
3. The focus calibration method of an image capturing apparatus according to claim 1, wherein the step of the focus calibration method of an image capturing apparatus further comprises:
detecting a front clear value and a rear clear value of an image on the imaging plate every other preset period;
the front clear value is the clear value of an image formed after the imaging plate moves a preset distance from the current position along the direction close to the focusing lens group; the rear clear value is the clear value of an image formed after the imaging plate moves a preset distance from the current position along the direction far away from the focusing lens group; the current position is the position of the imaging plate when the image on the imaging plate corresponds to the current definition value;
the step of judging whether the back focus of the image acquisition device deviates or not according to a preset clear value and the current clear value comprises the following steps:
and judging whether the back focus of the image acquisition device deviates or not according to the preset definition value, the current definition value, the front definition value and the back definition value.
4. The method for calibrating the focal length of an image capturing device according to claim 3, wherein the step of determining whether the back focus of the image capturing device is shifted according to the preset sharpness value, the current sharpness value, the front sharpness value, and the back sharpness value comprises:
judging whether the product of the preset clear value and a preset first threshold value is larger than the current clear value or not;
if the product of the preset definition value and a preset first threshold value is larger than the current definition value, judging whether the product of the current definition value and a preset second threshold value is larger than the maximum value of the front definition value and the rear definition value;
and if the product of the current clear value and a preset second threshold value is less than or equal to the maximum value of the front clear value and the rear clear value, the rear focus of the image acquisition device is deviated.
5. The focus calibration method of an image capture device according to claim 1, wherein said step of adjusting said imaging plate position to calibrate the focus comprises:
controlling a first driving device to drive the imaging plate to move to a first position at a wide-angle position so that an image on the imaging plate is in a first clearest state;
controlling a second driving device to drive the focusing lens group to zoom to the longest focus position, and controlling a third driving device to drive the focusing lens group at the longest focus position to focus to a second position at which an image on the imaging plate is in a second clearest state;
keeping the focusing lens group focused at the second position, and controlling the second driving device to drive the focusing lens group to zoom again to a wide-angle position; controlling the first driving device to drive the imaging plate to move to a third position at the wide-angle position so that the image on the imaging plate is in a third clearest state;
and if the distance value between the third position and the first position is smaller than a preset third threshold, calibrating the focal length according to the third position.
6. The focus calibration method of an image capturing device according to claim 5, wherein the step of controlling the first driving device to drive the imaging plate to move to the first position at the wide angle position so that the image on the imaging plate is in the first clearest state comprises:
controlling the first driving device to drive the imaging plate to move step by step;
recording the clear value of the image on the imaging plate and the position of the imaging plate corresponding to the clear value in each moving step;
calculating a peak value of the clear value according to a hill climbing algorithm, and inquiring a first position associated with the peak value according to the peak value of the clear value;
and controlling the first driving device to drive the imaging plate to move to the first position.
7. The method for calibrating the focal length of an image capturing device according to claim 5, wherein the step of controlling the third driving device to drive the group of focusing lenses at the longest focal position to focus at the second position, which makes the image on the imaging plate at the second sharpest state, comprises:
controlling the third driving device to drive the focusing lens group to move;
recording a clear value of an image on the imaging plate and a position of the focusing lens group corresponding to the clear value;
calculating a peak value of the clear value according to a hill climbing algorithm, and inquiring a second position associated with the peak value according to the peak value of the clear value;
and controlling the third driving device to drive the focusing lens group to move to the second position.
8. A focus calibration apparatus for an image pickup apparatus, comprising:
the detection unit is used for detecting the current clear value of the image on the imaging plate every other preset period;
the current definition value is the definition value of an image formed by the imaging plate when the image acquisition device is located at a preset coordinate and a wide-angle position;
the judging unit is used for judging whether the back focus of the image acquisition device deviates or not according to a preset clear value and the current clear value; the preset definition value is the peak value of the definition value of the image formed by the imaging plate when the image acquisition device is positioned at a preset coordinate and a wide-angle position;
and the adjusting unit is used for adjusting the position of the imaging plate to calibrate the focal length if the back focus of the image acquisition device deviates.
9. The focus calibration apparatus of an image capturing apparatus according to claim 8,
the detection unit is also used for detecting the front clear value and the rear clear value of the image on the imaging plate every other preset period;
the front clear value is the clear value of an image formed after the imaging plate moves a preset distance from the current position along the direction close to the focusing lens group; the rear clear value is the clear value of an image formed after the imaging plate moves a preset distance from the current position along the direction far away from the focusing lens group; the current position is the position of the imaging plate when the image on the imaging plate corresponds to the current definition value;
the judging unit is specifically configured to judge whether a product of the preset clear value and a preset first threshold is greater than the current clear value;
if the product of the preset clear value and a preset first threshold is greater than the current clear value, the judging unit is further configured to judge whether the product of the current clear value and a preset second threshold is greater than the maximum value of the front clear value and the rear clear value;
and if the product of the current clear value and a preset second threshold value is less than or equal to the maximum value of the front clear value and the rear clear value, the rear focus of the image acquisition device is deviated.
10. The focal length calibration apparatus of an image capturing device according to claim 8, wherein the adjusting unit includes:
the first control module is used for controlling the first driving device to drive the imaging plate to move to the first position under the wide-angle position so that the image on the imaging plate is in the first clearest state;
the second control module is used for controlling the second driving device to drive the focusing lens group to zoom to the longest focus position;
the third control module is used for controlling a third driving device to drive the focusing lens group in the longest focus position to focus to a second position which enables the image on the imaging plate to be in a second clearest state;
the second control module is further configured to keep the focusing lens group focused at the second position, and control the second driving device to drive the focusing lens group to zoom to a wide-angle position;
the first control module is further used for controlling the first driving device to drive the imaging plate to move to a third position in the wide-angle position, so that the image on the imaging plate is in a third clearest state;
the judging unit is further configured to judge whether a distance value between the third position and the first position is smaller than a preset third threshold;
and the execution module is used for calibrating the focal length according to the third position if the distance value between the third position and the first position is smaller than a preset third threshold value.
CN201810987956.3A 2018-08-28 2018-08-28 A focal length calibration method and device of an image acquisition device Active CN110868584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810987956.3A CN110868584B (en) 2018-08-28 2018-08-28 A focal length calibration method and device of an image acquisition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810987956.3A CN110868584B (en) 2018-08-28 2018-08-28 A focal length calibration method and device of an image acquisition device

Publications (2)

Publication Number Publication Date
CN110868584A true CN110868584A (en) 2020-03-06
CN110868584B CN110868584B (en) 2021-08-31

Family

ID=69651426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810987956.3A Active CN110868584B (en) 2018-08-28 2018-08-28 A focal length calibration method and device of an image acquisition device

Country Status (1)

Country Link
CN (1) CN110868584B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113834635A (en) * 2020-06-24 2021-12-24 浙江宇视科技有限公司 Virtual focus testing method, device and equipment for image acquisition and storage medium
CN114007016A (en) * 2021-10-29 2022-02-01 江西盛泰精密光学有限公司 A system and method for fast automatic focusing of camera module

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6788891B1 (en) * 2003-05-19 2004-09-07 Elmo Co., Ltd. Back focus adjusting mechanism for imaging camera
CN103442247A (en) * 2013-08-15 2013-12-11 华南理工大学 Camera image resolution estimation method and camera image resolution estimation system
CN104038692A (en) * 2014-04-28 2014-09-10 深圳英飞拓科技股份有限公司 Camera back-focus adjustment method and camera back-focus adjustment device
CN107317966A (en) * 2017-07-20 2017-11-03 深圳中天银河科技有限公司 Camera lens auto focusing method and device
CN108254995A (en) * 2017-12-05 2018-07-06 佛山华国光学器材有限公司 A kind of big zoom camera lens Atomatic focusing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6788891B1 (en) * 2003-05-19 2004-09-07 Elmo Co., Ltd. Back focus adjusting mechanism for imaging camera
CN103442247A (en) * 2013-08-15 2013-12-11 华南理工大学 Camera image resolution estimation method and camera image resolution estimation system
CN104038692A (en) * 2014-04-28 2014-09-10 深圳英飞拓科技股份有限公司 Camera back-focus adjustment method and camera back-focus adjustment device
CN107317966A (en) * 2017-07-20 2017-11-03 深圳中天银河科技有限公司 Camera lens auto focusing method and device
CN108254995A (en) * 2017-12-05 2018-07-06 佛山华国光学器材有限公司 A kind of big zoom camera lens Atomatic focusing method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113834635A (en) * 2020-06-24 2021-12-24 浙江宇视科技有限公司 Virtual focus testing method, device and equipment for image acquisition and storage medium
CN114007016A (en) * 2021-10-29 2022-02-01 江西盛泰精密光学有限公司 A system and method for fast automatic focusing of camera module

Also Published As

Publication number Publication date
CN110868584B (en) 2021-08-31

Similar Documents

Publication Publication Date Title
US10951833B2 (en) Method and device for switching between cameras, and terminal
JP5144487B2 (en) Main face selection device, control method thereof, imaging device, and program
US7925148B2 (en) Apparatus and method for compensating position of camera lens according to temperature variation
US8477187B2 (en) Imaging apparatus and pan/tilt head control method
JP5483953B2 (en) Focus adjustment device, focus adjustment method and program
US20200336672A1 (en) Video recording method and electronic device
JP5883654B2 (en) Image signal processing device
US11223774B2 (en) Imaging apparatus, lens apparatus, and method for controlling the same
CN107787463B (en) Optimized capture of focus stacks
CN107197151A (en) Autofocus method, device, storage medium and electronic equipment
CN101640788B (en) Method and device for controlling monitoring and monitoring system
CN104618636A (en) Method and device for preventing camera from stalling
CN111131687B (en) Image output method and camera
WO2015000418A1 (en) System and method for adjusting mobile terminal camera viewfinder interface display images
JP5173210B2 (en) Optical apparatus having focus lens and zoom lens driving means
CN114401370B (en) Movement calibration method, apparatus, image pickup device, and readable storage medium
CN110868584A (en) Focal length calibration method and device of image acquisition device
CN103763458A (en) Scene change detection method and device
CN106507102A (en) Lens correction method and device
CN113055579A (en) Image processing method, apparatus, electronic device and readable storage medium
CN113938599B (en) Electric lens focusing method and device, electronic equipment and storage medium
CN111836002A (en) A kind of video polling method, device and server
EP1975696B1 (en) Lens apparatus and image taking apparatus using the same
WO2019061650A1 (en) Three-dimensional image acquisition apparatus and method
CN112804477B (en) Method and device for determining image parameters of preset points, electronic equipment and 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