CN103491306B - Fast focusing method based on soft synchronous technology - Google Patents

Fast focusing method based on soft synchronous technology Download PDF

Info

Publication number
CN103491306B
CN103491306B CN201310464496.3A CN201310464496A CN103491306B CN 103491306 B CN103491306 B CN 103491306B CN 201310464496 A CN201310464496 A CN 201310464496A CN 103491306 B CN103491306 B CN 103491306B
Authority
CN
China
Prior art keywords
module
calculation control
control module
image
synchronous
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
CN201310464496.3A
Other languages
Chinese (zh)
Other versions
CN103491306A (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.)
Suzhou Tian Zhun Science And Technology Co Ltd
Original Assignee
Suzhou Tian Zhun Science And Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Tian Zhun Science And Technology Co Ltd filed Critical Suzhou Tian Zhun Science And Technology Co Ltd
Priority to CN201310464496.3A priority Critical patent/CN103491306B/en
Publication of CN103491306A publication Critical patent/CN103491306A/en
Application granted granted Critical
Publication of CN103491306B publication Critical patent/CN103491306B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a fast focusing method based on a soft synchronous technology. The fast focusing method based on the soft synchronous technology has the advantages that automatic feedback information finds the position where an image is the clearest, parameters of a detected workpiece are measured at the clear position, and therefore the problems of instability and inaccuracy of measured data caused by workpiece difference and manual inconsistent placing are solved. Meanwhile, a pause does not exist in the process of focusing, a clear face can be found by moving up and down, and the focusing speed can be greatly increased. According to the fast focusing method based on the soft synchronous technology, synchronous information does not need to be transmitted through a synchronous triggering signal line between a moving driving module and an image collecting module, and a mechanical mechanism is simple. Under the condition that no hardware is arranged for synchronous triggering between the moving driving module and the image collecting module, a better effect can be achieved through a software synchronous method than through a hardware synchronous method, the mechanical structure is simplified, and convenience is provided for popularization and promotion of an image mapping device.

Description

A kind of quick focusing method based on soft simultaneous techniquess
Technical field
The present invention relates to a kind of quick focusing method, especially a kind of quick focusing method based on soft simultaneous techniquess.
Background technology
In accurate radiographic measurement field, measuring apparatus need to have to focus on automatically makes measured target clearly function, here On the basis of could realize each task that accurately measures.
The common method for adopting in industry at present is the motion drive module by measuring apparatus and according to image acquisition mould The feedback information of block, finds image most clearly position.Then the size of the clear position measurement measured target of here is counted with other It is believed that breath etc., and then eliminate because of workpiece differences and operator that to put measurement data caused by inconsistent institute unstable inaccurately Problem.
But traditional auto focusing method, after needing multistep of pausing near clear face, each step to stop completely Image can be gathered and calculated, therefore be not difficult to find out, this method is inefficient.
Do not stop during further quickly focusing on focusing, can by moving up and down for image capture module To find clear face.But this needs is transmitted between motion drive module and image capture module by synchronous triggering signal line Synchronizing information, could realize quick focusing.But this pattern underaction, because for low and middle-end radiographic measurement equipment comes Say, its usually not external trigger function, therefore these equipment cannot realize quick focusing.In addition, increasing firing line can make machinery Structure is complex.This hard method of synchronization synchronous based on position has its unavoidable scarce for the quick realization for focusing on Fall into.
And it is a kind of it is new quick focusing is realized based on the soft method of synchronization of time synchronized, then need not drive in motion Synchronizing information is transmitted by synchronous triggering signal line between module and image capture module, simultaneously as without trigger Line so that frame for movement keeps original succinct.Therefore the quick focusing method under this soft simultaneous techniquess is quick for realizing Focusing has great significance.
The content of the invention
To solve the above problems, the technical solution used in the present invention is as follows:
A kind of quick focusing method based on soft simultaneous techniquess, including with lower module:Motion drive module, image acquisition mould Block, calculation control module and iteration module;The calculation control module includes lock unit and indexing unit;The lock unit Include position mark subelement and image tagged including synchronous subelement and image synchronization subelement, the indexing unit is driven Unit.
The motion drive module is used to drive described image acquisition module and be allowed to mobile;
Described image acquisition module is used to be imaged measured workpiece, and institute is transferred to into the calculating into image data Control module;
The calculation control module is used to control all working process of the motion drive module, for processing the figure The image data collected as acquisition module is obtaining the parameter of measured workpiece;Lock unit therein is used for the synchronous motion Drive module and described image acquisition module, indexing unit therein is adopted for motion drive module and described image described in labelling Collection module.
The iteration module is used for the position in the clear face for finding optimum to realize final quick focusing.
A kind of quick focusing method based on soft simultaneous techniquess, comprises the following steps:
1. motion drive module is synchronous by the driving in the calculation control module with the calculation control module described in Subelement realizes time synchronized.First, it is described to drive synchronous subelement by sending acquisition request to the motion drive module Its present clock calculates again the intermediate value of calculation control module first and last clock in the process, you can obtain the motion The clock of drive module.Above step is repeated several times, the clock meansigma methodss of most stable of process several times is chosen as the motion Synchronization time difference between drive module and the calculation control module.
2. described image acquisition module with the calculation control module by the image synchronization in the calculation control module Subelement realizes time synchronized.First, a gauge block is placed in radiographic measurement effective display area domain, is made by profile light irradiation Gauge block manifests the edge of a black-to-white transition.Then, the calculation control module controls the motion drive module and makes this edge Streaked in the image acquisition visual field with a certain fixed speed.According to the corresponding machine of each clock of motion drive module record Device position, can converse per the position that in a flash this black and white edge should be in theory;Again to occurring black and white edge in motion Several two field pictures carry out the algorithm of motion blur, obtain actual edge location;Under the conditions of known to speed, by reality Border marginal position and theoretical margin position just can calculate same between described image acquisition module and the calculation control module Step time difference.
3. described image acquisition module is by the described image labelling subelement in the calculation control module, continuously not between It is disconnected that image is gathered with maximum sampling rate, and to every two field picture labelling acquisition time.
4. the position mark subelement during motion drive module is by the calculation control module described in, with higher than figure The positional information of the speed record moving component of image-to-frame ratio, and to each position mark hardware timeout.
5. calculation control module described in, calculates the corresponding positional information of each two field picture, is made by interpolation algorithm corresponding Sampling density of the accuracy higher than positional information.The definition of image is calculated with single thread, and selectively calculates needs The image of calculating and without calculating the image of all collections.
6. the image information and iterative algorithm that iteration module described in is provided by the calculation control module finds optimum clear The position in clear face.After position and the definition numerical value of existing three points, by judging this 3 points trend articulation point is estimated Most possible position, the corresponding point looked in image sequence near this position, usual this point is not necessarily most clearly Position, but most clearly position has been sufficiently close to, this point is replaced point farthest in original 3 points, sentence as continuing It is disconnected that most clearly position just can be found after little a few step iteration, so far complete all processes of quick focusing.
The invention has the beneficial effects as follows:Automatic feedback information finds close image most clearly position, the clear position of here The parameter for measuring measured workpiece is gone, and then is eliminated because workpiece differences and operator put the caused measurement data of inconsistent institute It is unstable and inaccurate.Meanwhile, do not stop during focusing, by moving up and down in the clear face that just can find, focus on speed Degree can be greatly improved.By the quick focusing method based on soft simultaneous techniquess, then need not in the motion drive module and Synchronizing information is transmitted by synchronous triggering signal line between described image acquisition module, mechanical mechanism is relatively simple.
Description of the drawings
With reference to the accompanying drawings and examples the present invention is further described.
Fig. 1 is the block schematic illustration of the quick focusing method based on soft simultaneous techniquess.
Fig. 2 is the composition schematic diagram of the lock unit in Fig. 1.
Fig. 3 is the composition schematic diagram of the indexing unit in Fig. 1.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, and It is not used in the restriction present invention.
Fig. 1, Fig. 2 and Fig. 3 are refer to, the embodiment of the present invention provides a kind of quick focusing method based on soft simultaneous techniquess, It is included with lower module:Motion drive module 11, image capture module 12, calculation control module 13 and iteration module 14;It is described Calculation control module 13 includes lock unit 131 and indexing unit 132;The lock unit 131 includes driving synchronous subelement 1311 and image synchronization subelement 1312;The indexing unit 132 includes that position mark subelement 1321 and image tagged are single Unit 1322.
The motion drive module 11 is used to drive described image acquisition module 12 and be allowed to mobile;
Described image acquisition module 12 is used to be imaged measured workpiece, and institute is transferred to into the meter into image data Calculate control module 13;
The calculation control module 13 is used to control all working process of the motion drive module 11, for processing State image data that image capture module 12 collects to obtain the parameter of measured workpiece;Lock unit therein 131 is used for same The motion drive module 11 and described image acquisition module 12 are walked, indexing unit therein 132 is used for motion described in labelling and drives Dynamic model block 11 and described image acquisition module 12.
The iteration module 14 is used for the position in the clear face for finding optimum to realize final quick focusing.
A kind of quick focusing method based on soft simultaneous techniquess, it realizes that the quick process for focusing on is as follows:
1. motion drive module 11 described in carries out exact time synchronization with the calculation control module 13.Both synchronization is Realized by the driving synchronization subelement 1311 in the calculation control module 13.
1) first, the starting clock t for driving synchronous subelement 1311 to record the calculation control module 131, and open Begin to its present clock of the motion drive module 11 transmission acquisition request, its present clock is returned to the calculation control module Record the clock t of the calculation control module 13 after 13 again2
2) first assume that waiting time for sending and receiving of information is equal, then the first and last clock of the calculation control module 13 The average clock t=1/2 (t for corresponding to the acquired motion drive module 111+t2)。
3) above step is repeated several times, determines the fluctuation range of data transfer time delay, and it is most stable of to choose transmission delay The average synchronization time difference as between the motion drive module 11 and the calculation control module 13 several times.
4) when sending between and in the case of the reception time is unequal there is small difference in this synchronization time difference and actual value It is different, this difference e1Can repair by together with when next step described image acquisition module 12 is synchronous with the calculation control module 13 Just.
2. described image acquisition module 12 carries out exact time synchronization with the calculation control module 13.Both synchronization is Realized by the image synchronization subelement 1312 in the calculation control module 13.
1) gauge block is placed first in the range of radiographic measurement effective display area domain, by profile light irradiation it is manifested The edge of one black-to-white transition.
2) calculation control module 13 controls the motion drive module 11 makes black and white edge exist with a certain fixed speed Image acquisition is streaked in the visual field.
3) because the now motion drive module 11 has completed synchronous with the calculation control module 13, and the fortune Dynamic drive module 11 have recorded the corresponding machine location of each clock during this, it is possible to converse per in a flash this is black The position that white edge edge should be in theory.
4) several two field pictures to occurring black and white edge in motion carry out the algorithm of motion blur, obtain actual edge appearance Position, under the conditions of known to speed, the theoretical margin position calculated by actual edge position and the motion drive module 11 Put the synchronization time difference that just can be calculated between described image acquisition module 12 and the calculation control module 13.
5) when the time is sent when actually described motion drive module 11 is synchronous with the calculation control module 13 and being received Between it is inconsistent produced by difference be equally reflected in described image acquisition module 12 and the difference of the calculation control module 13, Assume that described image acquisition module 12 is e with the synchronous difference of the calculation control module 132, then the actual variance after synchronization be e1+e2, although e can not be specifically calculated after synchronization1、e2It is individually how many, but e1+e2The two errors can have been corrected to whole The difference that individual focusing brings.
3. the described image labelling subelement 1322 that described image acquisition module 12 passes through the calculation control module 13, even It is continuous uninterrupted with maximum sampling rate collection image, per two field picture labelling acquisition time.
4. the position mark subelement 1321 that motion drive module 11 described in passes through the calculation control module 13, with Higher than the positional information of the speed record moving component of image frame per second, each position mark hardware timeout.
5. calculation control module 13 described in, calculate the corresponding positional information of each two field picture, are made with interpolation algorithm corresponding Sampling density of the accuracy higher than positional information.The definition of image is calculated with single thread, has selection with the mode of intelligence Ground calculate calculative image and without calculating the image of all collections.
6. the image information and iterative algorithm that iteration module 14 described in is provided by the calculation control module 13 finds most The position in excellent clear face.After position and the definition numerical value of existing three points, judge that this 3 points trend goes to estimate clear The most possible position of point, the corresponding point looked in image sequence near this position, usual this point is not necessarily most clear Position, but be sufficiently close to most clearly position, this point is replaced point farthest in original 3 points, continue such Judgement just can find most clearly position after little a few step iteration.So far all processes of quick focusing are completed.

Claims (1)

1. a kind of quick focusing method based on soft simultaneous techniquess, it is characterised in that include with lower module:Motion drive module, Image capture module, calculation control module and iteration module;The calculation control module includes lock unit and indexing unit;Institute Stating lock unit includes driving synchronous subelement and image synchronization subelement, the indexing unit include position mark subelement and Image tagged subelement;Wherein, comprise the following steps:
The motion drive module and the calculation control module are by the synchronous subelement reality of the driving of the calculation control module Existing time synchronized;
The image synchronization subelement reality that described image acquisition module passes through the calculation control module with the calculation control module Existing time synchronized;
The image tagged subelement that described image acquisition module passes through the calculation control module, it is continuous uninterrupted with maximum sampling Speed gathers image, and to every two field picture labelling acquisition time;
The position mark subelement that the motion drive module passes through the calculation control module, with higher than the speed of image frame per second The positional information of record moving component, and to each position mark hardware timeout;
The image information and iterative algorithm that the iteration module is provided by the calculation control module finds optimum clear face Position;The motion drive module is used to drive described image acquisition module and be allowed to mobile;
Described image acquisition module is used to be imaged measured workpiece, and institute is transferred to into the calculating control into image data Module;
The calculation control module is used to control all working process of the motion drive module, adopts for processing described image The image data that collects of collection module is obtaining the parameter of measured workpiece;Lock unit therein is used for the synchronous motion and drives Module and described image acquisition module, indexing unit therein is used for motion drive module described in labelling and described image collection mould Block;
Wherein, described image acquisition module realizes time synchronized with the calculation control module, comprises the steps:
A gauge block is placed in the range of radiographic measurement effective display area domain, makes it manifest a black and white mistake by profile light irradiation The edge for crossing;
The calculation control module controls the motion drive module makes black and white edge regard in image acquisition with a certain fixed speed Streak in open country;
Converse per the position that in a flash this black and white edge should be in theory;
Several two field pictures to occurring black and white edge in motion carry out the algorithm of motion blur, obtain the position of actual edge appearance Put, under the conditions of known to speed, the theoretical margin position calculated by actual edge position and the motion drive module calculates Synchronization time difference between described image acquisition module and the calculation control module.
CN201310464496.3A 2013-09-29 2013-09-29 Fast focusing method based on soft synchronous technology Active CN103491306B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310464496.3A CN103491306B (en) 2013-09-29 2013-09-29 Fast focusing method based on soft synchronous technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310464496.3A CN103491306B (en) 2013-09-29 2013-09-29 Fast focusing method based on soft synchronous technology

Publications (2)

Publication Number Publication Date
CN103491306A CN103491306A (en) 2014-01-01
CN103491306B true CN103491306B (en) 2017-04-12

Family

ID=49831239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310464496.3A Active CN103491306B (en) 2013-09-29 2013-09-29 Fast focusing method based on soft synchronous technology

Country Status (1)

Country Link
CN (1) CN103491306B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109631852A (en) * 2019-02-21 2019-04-16 苏州天准科技股份有限公司 A kind of method of SPEED VISION measurement

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1691541A2 (en) * 2005-02-14 2006-08-16 Fujifilm Electronic Imaging Limited Method and apparatus for estimating an in-focus position
CN102055910A (en) * 2009-11-09 2011-05-11 三星电子株式会社 Camera system and image forming apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1691541A2 (en) * 2005-02-14 2006-08-16 Fujifilm Electronic Imaging Limited Method and apparatus for estimating an in-focus position
CN102055910A (en) * 2009-11-09 2011-05-11 三星电子株式会社 Camera system and image forming apparatus

Also Published As

Publication number Publication date
CN103491306A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
CN103292695B (en) A kind of single eye stereo vision measuring method
CN109682826A (en) NI Vision Builder for Automated Inspection and detection method for the detection of cambered surface appearance
CN103471512B (en) A kind of glass plate width detecting system based on machine vision
CN103728813A (en) Method for synchronizing focusing operation and zooming operation
WO2017161523A1 (en) Photography focusing method, device, and apparatus for terminal
CN107421466B (en) A kind of synchronous acquisition device and acquisition method of two and three dimensions image
CN102254222B (en) Method and device for counting bar materials
CN203587519U (en) Circuit board detection device based on laser scanning and machine vision
CN106375706A (en) Method and apparatus for velocity measurement of moving object by use of double pick-up heads, and terminal
CN102866160B (en) System and method for detecting surface quality of coin mold
CN206440244U (en) Distributed multi-view stereo vision system
CN103491306B (en) Fast focusing method based on soft synchronous technology
CN107957245A (en) Engine link dimension measuring device and its measuring method based on machine vision
CN104180770A (en) Three-dimensional shape detection method for tool wear
CN102270339A (en) Method and system for deblurring of space three-dimensional motion of different fuzzy cores
CN109272575A (en) A method of improving digital slices scanner modeling speed
CN101482517B (en) On-line image collection method and apparatus based on asynchronous reset
KR20070036123A (en) Method and apparatus for automatic visual event detection
CN203672319U (en) Automation equipment for visual inspection of large-scale automobile parts
CN102564924B (en) Automatic scanning method of single-frame image of blood cell
CN107368789B (en) People flow statistical device and method based on Halcon visual algorithm
CN209640238U (en) NI Vision Builder for Automated Inspection for the detection of cambered surface appearance
CN110657750B (en) Detection system and method for passivation of cutting edge of cutter
CN105093480A (en) Method for improving optical lens focusing accuracy
CN102445450A (en) Online detection device for optical film

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: Science and Technology City high tech Zone of Suzhou City, Jiangsu province 215163 eswell Road No. 5

Applicant after: Suzhou Tian Zhun Science and Technology Co., Ltd.

Address before: Science and Technology City high tech Zone of Suzhou City, Jiangsu province 215163 eswell Road No. 5

Applicant before: Suzhou Tianhuai Precision Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SUZHOU TIANHUAI PRECISION TECHNOLOGY CO., LTD. TO: SUZHOU TZTEK TECHNOLOGY CO., LTD.

GR01 Patent grant
GR01 Patent grant