CN107664805A - A kind of antidote for focusing on presetting bit - Google Patents

A kind of antidote for focusing on presetting bit Download PDF

Info

Publication number
CN107664805A
CN107664805A CN201710984305.4A CN201710984305A CN107664805A CN 107664805 A CN107664805 A CN 107664805A CN 201710984305 A CN201710984305 A CN 201710984305A CN 107664805 A CN107664805 A CN 107664805A
Authority
CN
China
Prior art keywords
presetting bit
focusing
bit
presetting
reached
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
CN201710984305.4A
Other languages
Chinese (zh)
Other versions
CN107664805B (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.)
Shandong Sheenrun Optics Electronics Co Ltd
Original Assignee
Shandong Sheenrun Optics Electronics 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 Shandong Sheenrun Optics Electronics Co Ltd filed Critical Shandong Sheenrun Optics Electronics Co Ltd
Priority to CN201710984305.4A priority Critical patent/CN107664805B/en
Publication of CN107664805A publication Critical patent/CN107664805A/en
Application granted granted Critical
Publication of CN107664805B publication Critical patent/CN107664805B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/02Mountings, adjusting means, or light-tight connections, for optical elements for lenses
    • G02B7/04Mountings, adjusting means, or light-tight connections, for optical elements for lenses with mechanism for focusing or varying magnification

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Focusing (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

The present invention discloses a kind of antidote for focusing on presetting bit, this method sets a direction during setting flag bit expression setting presetting bit, and compare the direction of direction when presetting bit is set and focusing position, carry out backhaul gap supplement or directly invoke presetting bit, it can effectively eliminate and presetting bit skew is focused on caused by the reasons such as camera lens backhaul gap, solve the problems, such as presetting bit skew.Threshold value and offset are set simultaneously, make focusing position more accurate.

Description

A kind of antidote for focusing on presetting bit
Technical field
The present invention relates to it is a kind of focus on presetting bit antidote, available for the visible ray with electric focusing function, heat into As camera lens and like product, the focusing presetting bit offset problem caused by the reasons such as camera lens backhaul gap can be eliminated.
Background technology
With the further development of security and guard technology, intelligent, unattended feature turn into monitoring system development trend it One, monitor plays very important effect in monitoring system and realized more, it is necessary to coordinate with daemon software as headend equipment More intelligent, automation functions, the realization of these intelligent functions first have to rely on clearly image frame, especially high definition Product requires higher to lens focusing position accuracy.But in actual applications, camera lens generally has backhaul gap, i.e., one The presetting bit for the focus that individual direction is set, focus degree can reduce when being called from another direction.
The content of the invention
The technical problem to be solved in the present invention is to provide a kind of antidote for focusing on presetting bit, solve because between camera lens backhaul Presetting bit offset problem is focused on caused by the reasons such as gap.
In order to solve the technical problem, the technical solution adopted by the present invention:It is a kind of to correct the method for focusing on presetting bit, bag Include following steps:S01), direction when setting flag bit to represent to set presetting bit, have when presetting bit is set from closely to remote and From as far as nearly both direction, the two directions are represented using different flag bits;S02), when calling presetting bit, judge current adjust Whether direction when being set with the direction of presetting bit with called presetting bit is identical, if identical, directly invokes the presetting bit, Will focusing position adjustment to presetting bit position, if it is different, then first will focus position be transferred to it is identical with the presetting bit that is called Direction, then recall presetting bit, will focusing position adjustment to presetting bit position.
Further, in the process for presetting bit equidirectional that position of focusing is transferred to and is called, setting one first is big The small threshold value for 2 ~ 3 times of lens focusing gap used, the threshold value be exactly adjustment focus position to called presetting bit phase Tongfang To the stroke size of side, afterwards according to the threshold value by position of focusing be transferred to and be called presetting bit equidirectional position i.e. Can.
Further, using flag bit 1 represent from closely to a distant place to presetting bit, represented using flag bit 0 from as far as near The presetting bit in direction.
Further, when calling presetting bit, an offset is set, and the offset is is called presetting bit numerical values recited 0.2 ~ 0.3 times, according to presetting bit and offset and/or difference will focusing position adjustment to presetting bit position.
Further, when calling presetting bit, if presetting bit is from closely to a distant place to the current focusing position of judgement below Direction, if current location in nearside, that is, position of focusing is direction adjustment near to far, the focusing direction for position of focusing and setting Direction during presetting bit is identical, then directly invokes the presetting bit, by focusing position adjustment to presetting bit position;It is if current Nearside is transferred to, then judges whether focusing position has reached nearside really again, if in distal side, the then position that will first focus in position Reach, then call presetting bit, if do not reached, continue adjustment focusing position to nearside and judged whether to reach really.
Further, when calling presetting bit, if from the presetting bit as far as nearly direction, then it is all to exist to judge current location Distal side, if in distal side, directly invoke the presetting bit;If it is not, then existing be transferred to distal side by focusing position, then judgement is It is no to have reached distal side really, if it has been reached, calling presetting bit, if do not reached, continue adjustment focusing position to distal side And judged whether to reach really.
Beneficial effects of the present invention:The present invention sets direction during flag bit expression setting presetting bit, and it is pre- to compare setting The direction in direction and focusing position during set, carries out backhaul gap supplement or directly invokes presetting bit, can effectively can eliminate Presetting bit skew is focused on caused by the reasons such as camera lens backhaul gap, solves the problems, such as presetting bit skew.Simultaneously set threshold value and Offset, make focusing position more accurate.
Brief description of the drawings
Fig. 1 is the flow chart of embodiment 1.
Embodiment
The present invention is further illustrated with specific embodiment below in conjunction with the accompanying drawings.
A kind of antidote for focusing on presetting bit, comprises the following steps:S01), set flag bit represent to set it is preset Direction during position, have when presetting bit is set from closely to remote and from as far as nearly both direction, using different flag bits represent this two Individual direction;S02), when calling presetting bit, judge that current direction when calling the direction of presetting bit to be set with called presetting bit is It is no identical, if identical, the presetting bit is directly invoked, by focusing position adjustment to presetting bit position, if it is different, then First focusing position is transferred to and is called presetting bit identical direction, then recalls presetting bit, will focusing position adjustment in advance Set position;In the process for presetting bit equidirectional that position of focusing is transferred to and is called, it is used to set a size first The threshold value that 2 ~ 3 times of lens focusing gap, the threshold value be exactly adjustment focusing position to called presetting bit equidirectional side Stroke size, the position for presetting bit equidirectional that position of focusing is transferred to and is called according to the threshold value afterwards.
In the present embodiment, using flag bit 1 represent from closely to a distant place to presetting bit, using flag bit 0 represent from as far as The presetting bit in nearly direction.
In order that presetting bit position more prepares, when calling presetting bit, an offset is set, and the offset is is called 0.2 ~ 0.3 times of presetting bit numerical values recited, according to presetting bit and offset and/or difference will focusing position adjustment to presetting bit position Put.
Embodiment 1
In the present embodiment, the antidote for focusing on presetting bit is applied to the camera lens of thermal imaging system, and mirror is gathered using potentiometer The position of head, as shown in figure 1, the present embodiment concretely comprises the following steps:
S01), direction when setting flag bit to represent to set presetting bit, have when presetting bit is set from closely to remote(Near is arrived far)With from as far as near(Far near)Both direction, represent far to near's using 1 presetting bit for representing near to far, 0 Presetting bit;
S02), call presetting bit when, judge the presetting bit to be called whether be direction near to far(Abbreviation far side in accompanying drawing To), if it is, judge the direction of current focusing position again, if current location near sides, that is, position of focusing be near to Far directions adjust, and the focusing direction for position of focusing is identical with direction during setting presetting bit, then directly invokes the presetting bit, will Position adjustment focus to presetting bit position;If near sides are transferred in current location in far sides, the position that will first focus, Then judge whether focusing position has reached near sides really again, if it has been reached, presetting bit is called, if do not reached, Continue adjustment focusing position near sides and judged whether to reach really;
S03), it is same, if far near directions(Abbreviation near directions in accompanying drawing)Presetting bit, then judge current location It is all in far sides, if in far sides, calls the presetting bit in far near directions;If it is not, then existing adjust focusing position To far sides, then judge whether to have reached far sides really, if it has been reached, presetting bit is called, if do not reached, after Continuous adjustment focusing position to far sides and is judged whether to reach really.
In the present embodiment, the process that position of focusing is transferred to near sides or far sides is:It is used to set a size first The threshold value that 2 ~ 3 times of lens focusing gap, the threshold value be exactly adjustment focusing position to called presetting bit equidirectional side Stroke size, afterwards according to the threshold value(Stroke size)Focusing position is transferred to and near sides or far sides.
In the present embodiment, in order that presetting bit position more prepares, when calling presetting bit, an offset, the benefit are set Repay value by 0.2 ~ 0.3 times of calling presetting bit numerical values recited, according to actual conditions, using presetting bit and offset and/or difference as Camera lens stroke size will focus position adjustment to presetting bit position.
Described above is only that the general principle of the present invention and preferred embodiment, those skilled in the art do according to the present invention The improvement and replacement gone out, belongs to protection scope of the present invention.

Claims (6)

  1. A kind of 1. antidote for focusing on presetting bit, it is characterised in that:Comprise the following steps:S01), set a flag bit table Show direction when presetting bit is set, have when presetting bit is set from closely to remote and from as far as nearly both direction, using different marks Position represents the two directions;S02), when calling presetting bit, judge current to call the direction of presetting bit to set with called presetting bit When direction it is whether identical, if identical, directly invoke the presetting bit, will focusing position adjustment to presetting bit position, The presetting bit identical direction if it is different, then the position that will first focus is transferred to and is called, then recalls presetting bit, by position of focusing Put and be adjusted to presetting bit position.
  2. 2. the antidote of focal position according to claim 1, it is characterised in that:It is transferred to by focusing position with being adjusted During with the process of presetting bit equidirectional, the threshold value that a size is 2 ~ 3 times of lens focusing gap used is set first, and the threshold value is just Be adjustment focusing position to the stroke size with called presetting bit equidirectional side, will be focused position according to the threshold value afterwards It is transferred to the position with called presetting bit equidirectional.
  3. 3. the antidote according to claim 1 for focusing on presetting bit, it is characterised in that:Represented using flag bit 1 near To a distant place to presetting bit, represented using flag bit 0 from the presetting bit as far as nearly direction.
  4. 4. the antidote according to claim 1 for focusing on presetting bit, it is characterised in that:When calling presetting bit, if Put an offset, the offset by 0.2 ~ 0.3 times of calling presetting bit numerical values recited, according to presetting bit and offset and/or Difference will focusing position adjustment to presetting bit position.
  5. 5. the antidote according to claim 1 for focusing on presetting bit, it is characterised in that:When calling presetting bit, if in advance Set is from closely to a distant place to the direction of current focusing position being judged below, if current location is in nearside, that is, position of focusing Direction adjusts near to far, and it is preset then to directly invoke this with setting direction during presetting bit identical for the focusing direction for position of focusing Position, by focusing position adjustment to presetting bit position;If nearside is transferred in current location in distal side, the position that will first focus, Then judge whether focusing position has reached nearside really again, if it has been reached, presetting bit is called, if do not reached, after Continuous adjustment focusing position to nearside and is judged whether to reach really.
  6. 6. the antidote according to claim 1 for focusing on presetting bit, it is characterised in that:When calling presetting bit, if From the presetting bit as far as nearly direction, then it is all in distal side to judge current location, if in distal side, directly invokes the presetting bit; If it is not, then existing be transferred to distal side by focusing position, then judge whether to have reached distal side really, if it has been reached, calling Presetting bit, if do not reached, continue adjustment focusing position to distal side and judged whether to reach really.
CN201710984305.4A 2017-10-20 2017-10-20 Correction method for focusing preset position Active CN107664805B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710984305.4A CN107664805B (en) 2017-10-20 2017-10-20 Correction method for focusing preset position

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710984305.4A CN107664805B (en) 2017-10-20 2017-10-20 Correction method for focusing preset position

Publications (2)

Publication Number Publication Date
CN107664805A true CN107664805A (en) 2018-02-06
CN107664805B CN107664805B (en) 2020-10-16

Family

ID=61097604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710984305.4A Active CN107664805B (en) 2017-10-20 2017-10-20 Correction method for focusing preset position

Country Status (1)

Country Link
CN (1) CN107664805B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753172A (en) * 2019-10-22 2020-02-04 Oppo广东移动通信有限公司 Correction method and device, electronic equipment and voice coil motor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103901704A (en) * 2014-03-21 2014-07-02 天津市亚安科技股份有限公司 Pan-tilt and presetting bit recall control method of pan-tilt
CN104079883A (en) * 2014-07-07 2014-10-01 山东神戎电子股份有限公司 Laser night-vision device illuminator presetting bit implementation method based on stepping motor
US20150288936A1 (en) * 2014-04-04 2015-10-08 Samsung Electronics Co., Ltd. Method and apparatus for controlling focus of projector of portable terminal
CN106657790A (en) * 2016-12-30 2017-05-10 山东神戎电子股份有限公司 Laser night-vision device with preset position compensation function and preset position compensation method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103901704A (en) * 2014-03-21 2014-07-02 天津市亚安科技股份有限公司 Pan-tilt and presetting bit recall control method of pan-tilt
US20150288936A1 (en) * 2014-04-04 2015-10-08 Samsung Electronics Co., Ltd. Method and apparatus for controlling focus of projector of portable terminal
CN104079883A (en) * 2014-07-07 2014-10-01 山东神戎电子股份有限公司 Laser night-vision device illuminator presetting bit implementation method based on stepping motor
CN106657790A (en) * 2016-12-30 2017-05-10 山东神戎电子股份有限公司 Laser night-vision device with preset position compensation function and preset position compensation method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753172A (en) * 2019-10-22 2020-02-04 Oppo广东移动通信有限公司 Correction method and device, electronic equipment and voice coil motor

Also Published As

Publication number Publication date
CN107664805B (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN108029015B (en) Wireless access point and terminal device in communication network
CN101727665B (en) Method and device for fusing infrared images and visible light images
JP3182009B2 (en) Binocular stereoscopic device
CN106925784A (en) A kind of 3D printing course monitoring method and device based on camera captured in real-time
CN107392853B (en) Method and system for video fusion distortion correction and viewpoint fine adjustment of double cameras
CN103686107A (en) Processing method and device based on projected image
CN101902616A (en) Quick stereo positioning method for video monitoring
CN107664805A (en) A kind of antidote for focusing on presetting bit
CN110514126A (en) A method of the tunnel tunnel face displacement monitoring based on machine vision
CN109073470A (en) Work auxiliary device and operation auxiliary system
US11418438B2 (en) Signaling packet processing method and entity
CN107911612A (en) A kind of camera automatic focusing method and apparatus
CN109834355A (en) Bga device laser soldering solution soldering method
CN105472263B (en) Image acquisition method and the image capture equipment for using the method
EP3840360A1 (en) Image obtaining device control method and apparatus
CN109302567A (en) Camera image low latency synchronization system and image low latency synchronous method
CN100420274C (en) Pick-up head and data processing apparatus
JP6231757B2 (en) Imaging apparatus, information processing apparatus, control method therefor, and program
WO2023156900A1 (en) Local generation of commands to a vehicle sensor
KR100759930B1 (en) Zoom-Appended Stereo Vision Equipment
CN105807660B (en) The time delay correction method and device of remote controlled travelling device
CN104656348B (en) Projection arrangement and projecting method
CN114007009B (en) Electronic device and image processing method
WO2014183419A1 (en) Method and system for monitoring dynamic video
KR101082329B1 (en) Apparatus for object position estimation and estimation method using the same

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