CN1700214A - Pulsed laser spot software synchronization acquisition method - Google Patents
Pulsed laser spot software synchronization acquisition method Download PDFInfo
- Publication number
- CN1700214A CN1700214A CN 200510031639 CN200510031639A CN1700214A CN 1700214 A CN1700214 A CN 1700214A CN 200510031639 CN200510031639 CN 200510031639 CN 200510031639 A CN200510031639 A CN 200510031639A CN 1700214 A CN1700214 A CN 1700214A
- Authority
- CN
- China
- Prior art keywords
- pictorial data
- ccd camera
- infrared camera
- image collection
- collection card
- 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
Links
Abstract
The invention relates to a software synchronization acquisition method of impulse laser light spot, which adopts ridge CCD camera which can output standard video signal or infrared camera, image collection card and measuring system which is formed by main control computer with capture software program. It collects data by ridge CCD camera or infrared camera and controls image collection card which is connected with ridge CCD camera or infrared camera by video cable through capture software program which is connected with image collection card. It collects the light impulse laser spots and achieves totally software synchronization acquisition and analysis in executing function.
Description
Technical field
The invention belongs to the collection of laser facula, be specifically related to a kind of pulsed laser spot synchronization acquiring method.
Background technology
The collection of laser facula and analysis have important practice significance in the laser application.The catching of pulsed laser spot, collection and the collection of continuous laser hot spot are not quite similar, the pictorial data that computing machine is preserved by the image collection card continuous acquisition all is valid data for continuous laser, if same method is used for pulse laser, then computing machine will be preserved a large amount of invalid datas, serious waste system resource, and can cause loss of data owing to do not cause the leakage of pulsed laser spot to be adopted synchronously.At present, the catching, often gather and realize of pulsed laser spot by hardware synchronization, concrete grammar is as follows:
1, the same footwork of flashlamp: be the pulsed xenon light that pump cavity is leaked, with transferring electric signal to after the photodiode reception, through amplifying, after the shaping time-delay, send into the sync card of built-in computer, send look-at-me by sync card to the image card and freeze the image back and gather through optocoupler.
2, pulse laser synchronous triggering method: the field blanking interrupt function of promptly utilizing the CCD camera, producing interruption after suitable time-delay, export a trigger pip and give laser instrument, make it to produce laser output, finish impulsive synchronization and measure (control of pulse laser output Stimulated Light hot spot acquisition system).
The method of above-mentioned hardware synchronization, the hardware configuration complexity is subject in the course of work disturb, and the pumping source of pulsed laser etc. is a strong interferers, and reliability is lower, and the dirigibility of use is subject to many limitations, and needs on-the-spot settle hardware circuit, wiring etc.
Summary of the invention
Technical matters to be solved by this invention is to overcome above-mentioned the deficiencies in the prior art, provide be not subject in a kind of course of work interference, reliability height, dirigibility better, system stability and the simple pulsed laser spot software synchronization acquisition method of hardware configuration.
For solving the problems of the technologies described above, the present invention adopts following technical proposals.
A kind of pulsed laser spot software synchronization acquisition method, it is characterized in that adopting by area array CCD camera that is output as video standard signal or infrared camera, image collection card and the measuring system that the main control computer of catching software program is formed is installed, gather pictorial data by area array CCD camera or infrared camera, by with main control computer that image collection card links to each other in install catch software program, the image collection card that control is connected with area array CCD camera or infrared camera by vision cable, the paired pulses laser facula is gathered, and realizes catching of complete software synchronization pulsed laser spot in the overall situation function that readjustment is carried out, analyze; Concrete steps are:
1) area array CCD camera or infrared camera are gathered the hot spot image;
2) image collection card carries out the A/D conversion with the vision signal of area array CCD camera or infrared camera output, and CPU carries out collecting thread, and the pictorial data of gathering conversion is delivered to internal memory;
3) CPU carries out user job person thread, carries out call back function, and the pictorial data in the zone that needs in the internal memory to judge is carried out computing;
4) judge whether pictorial data is the laser facula data in the current internal memory, the judgement of laser facula is based on the mean value of the gray-scale value of: selection area image pixel
Whether greater than judgment threshold I
Threshold
N wherein: selection area pixel count;
5), then preserve in the current internal memory pictorial data successively in the main control computer fixed disk file if laser facula; Otherwise do not preserve data, the judgement of beginning next round.
Described software program utilizes the multithreading support of Win32, requires to operate under the Windows 2000 above 32-bit operating systems.Set up new collecting thread when gathering beginning, the person's thread that starts the user job is afterwards carried out call back function in the cyclic process that (or by) gathered frame by frame.In call back function, carry out the judgement of hot spot, the operations such as deposit of hot spot data.
The method of available mouse drag and drop is directly set at the image displaying area of running software needs the zone judged, and CPU only carries out computing to pictorial data that should the zone in the internal memory, and effective pulse hot spot pictorial data is saved in the main control computer fixed disk file.
The program code of realizing is as follows:
OkSetSeqCallback (hBoard, CatchBegin, CatchSetTo, CatchEnd); // call back function is set
OkCaptureByBuffer (hBoard, BUFFER, 0,0); // continuous sequence collection is ceaselessly inserted buffer memory with the pictorial data of AD conversion.Wherein: the pictorial data buffer memory of BUFFER for opening up in advance.
In the implementation of this function, set up new collecting thread, the person's thread that starts the user job is afterwards carried out call back function in the cyclic process that (or by) gathered frame by frame.
In the intact frame of the every collection overall situation function that just readjustment is carried out, following code is used for judging whether pulsed laser spot:
SumSelAreaPix=SelAreaRect.Width*SelAreaRect.Hight;<br/>int PixGrayValue=0;<br/>for(int j=0;j<((SelAreaRect.Width));j++)<br/>{<br/> for(int i=0;i<((SelAreaRect.Hight));i++)<br/> {<br/> PixGrayValue=PixGrayValue+(WORD)*(pPixGrayValue+(SelAreaRect.Bott<br/> on+i)*iWidth+(SelAreaRect.Left+j));<br/> <!-- SIPO <DP n="2"> --> <dp n="d2"/> }<br/>}<br/>PixGrayValue=PixGrayValue/((SumSelAreaPix));<br/>if(PixGrayValue>=iCatchThreshold)<br/>{<br/> memcpy(lpbit3D,lpbitsave,BlockSize);<br/>
Wherein: the regional structure that SelAreaRect need judge for the image displaying area of setting with the method for mouse drag and drop, it comprises this regional position and size information;
PixGrayValue is the grey scale pixel value of pixel in the zone;
ICatchThreshold sets in the program run interface for judging the grey scale pixel value threshold value of laser facula.
Compare with existing pulsed laser spot catching method, beneficial effect of the present invention is: the present invention adopts software program synchro control image collection card collection image and analyzes and catch, utilize the powerful hardware capability of computing machine and image collection card, need not to develop in addition hardware synchronous circuit; Its harvester and measured laser device system are separate, have increased the stability of system, and the course of work is not subject to disturb, the reliability height, and system and device is simple in structure.Be output as under the area array CCD camera or infrared camera normal operating conditions with the video standard signal of image collection card compatibility, guarantee that they are connected with the signal of image collection card, as long as start main control computer software, system just is saved in pulse hot spot pictorial data in the main control computer fixed disk file, and what guarantee the fixed disk file preservation all is valid data; Can directly set at the image displaying area of running software with the method for mouse drag and drop needs the zone judged, and CPU only carries out computing to pictorial data that should the zone in the internal memory, can capture pulsed laser spot rapidly and accurately; And can adjust measurement parameter at the scene, and carry out the hot spot analysis, make measurement flexible.Owing to adopt software synchronization acquisition method, can be type line by line as the area array CCD camera of laser facula detector, also can be the interlacing type.At the laser instrument of different-waveband, can select for use visible light area array CCD camera or infrared camera as the hot spot detector.
Description of drawings
Fig. 1 is the system schematic of the embodiment of the invention;
Fig. 2 is a program flow diagram of the present invention.
Embodiment
Pulsed laser spot software synchronization acquisition method of the present invention, be utilize as shown in Figure 1 by area array CCD camera that is output as video standard signal or infrared camera 3, the image collection card 2 and measuring system that the main control computer 1 of catching software program is formed is installed, gather pictorial data by area array CCD camera or infrared camera 3, by with main control computer 1 that image collection card 2 links to each other in install catch software program, the image collection card 2 that control is connected with area array CCD camera or infrared camera 3 by vision cable, the paired pulses laser facula is gathered, and realizes catching of complete software synchronization pulsed laser spot in the overall situation function that readjustment is carried out, analyze.The assurance system is waiting for or is catching pulsed laser spot all the time.
Concrete workflow of the present invention is at first preserved the filename of the pictorial data that captures to main control computer 1 input as shown in Figure 2, sets call back function, carries out following steps then:
1) gathers pictorial data by area array CCD camera or infrared camera 3;
2) image collection card 2 carries out the A/D conversion with the vision signal of area array CCD camera or infrared camera 3 outputs, and CPU carries out collecting thread, will frame by frame the pictorial data changed of (or by) collection deliver to internal memory;
3) CPU carries out user job person thread, in the cyclic process that gather (or by field) frame by frame, carry out call back function, directly in the image displaying area set memory of running software, need the zone judged with the method for mouse drag and drop, pictorial data to the zone that needs in the internal memory that sets to judge is carried out computing, calculates the mean value of ganmma controller value in institute's favored area;
4) in call back function, carry out the judgement of laser facula, judge whether pictorial data is the laser facula data in the current internal memory, the judgement of laser facula based on:
The mean value of the gray-scale value of selection area image pixel
Whether greater than judgment threshold I
Threshold
N wherein: selection area pixel count;
If the mean value of the gray-scale value of selection area image pixel
Greater than judgment threshold I
Threshold, then be laser facula, otherwise be not laser facula;
5), then preserve in the current internal memory effectively pulse hot spot pictorial data successively in the fixed disk file of main control computer 1 if laser facula; Otherwise do not preserve data, the judgement of beginning next round.
System software program is to develop on the compiling platform Visual of Microsoft C++6.0, and flare three-dimensional display part is wherein realized by OpenGL, realizes having the three-dimensional picture of vivid effect.
Software program utilizes the multithreading support of Win32, requires to operate under the Windows 2000 above 32-bit operating systems.
Image collection card 2 of the present invention is based on pci bus high speed image capture card, this image collection card has adopted the high-speed transfer mode of matched, add perfect software and hardware Interrupt Process, when internal memory is gathered image, CPU can independently do other image processing work, this image acquisition provides technical foundation with the bussing technique of sharing of CPU image processing for parallel image processing, guarantee that CPU can carry out call back function in the image collection card cyclic process that gather (or by field) frame by frame, make CPU obtain the pictorial data processing that a large amount of time is used for call back function.
The recommended configuration of system of the present invention is: area array CCD camera is 500 * 582 a pixel CCIR normal videos output black and white camera, its photosensitive area is 4.9mm * 3.7mm, adopt the OKM30 image collection card, being configured to of main control computer 1: CPU:Intel P41G, internal memory: 256M, hard disk: 40G, display card: 64 bit pattern accelerator cards.
Claims (3)
1, a kind of pulsed laser spot software synchronization acquisition method, it is characterized in that it is to adopt by area array CCD camera that is output as video standard signal or infrared camera, image collection card and the measuring system that the main control computer of catching software program is formed is installed, gather pictorial data by area array CCD camera or infrared camera, by with main control computer that image collection card links to each other in install catch software program, the image collection card that control is connected with area array CCD camera or infrared camera by vision cable, the paired pulses laser facula is gathered, and realizes catching of complete software synchronization pulsed laser spot in the overall situation function that readjustment is carried out, analyze; Concrete steps are:
1) area array CCD camera or infrared camera are gathered pictorial data;
2) image collection card carries out the A/D conversion with the vision signal of area array CCD camera or infrared camera output, and CPU carries out collecting thread, and the pictorial data of gathering conversion is delivered to internal memory;
3) CPU carries out user job person thread, carries out call back function, and the pictorial data in the zone that needs in the internal memory to judge is carried out computing;
4) judge whether pictorial data is the laser facula data in the current internal memory, the judgement of laser facula based on:
The mean value of the gray-scale value of selection area image pixel
Whether greater than judgment threshold I
Nthreshold
N wherein: selection area pixel count;
5), then preserve in the current internal memory pictorial data successively in the main control computer fixed disk file if laser facula; Otherwise do not preserve data, the judgement of beginning next round.
2, pulsed laser spot software synchronization acquisition method according to claim 1 is characterized in that described software program utilizes the multithreading support of Win32, requires to operate under the Windows 2000 above 32-bit operating systems.
3, pulsed laser spot software synchronization acquisition method according to claim 1 and 2, it is characterized in that directly setting the zone that needs are judged at the image displaying area of running software with the method for mouse drag and drop, CPU only carries out computing to pictorial data that should the zone in the internal memory, and effective pulse hot spot pictorial data is saved in the main control computer fixed disk file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100316397A CN100367281C (en) | 2005-06-01 | 2005-06-01 | Pulsed laser spot software synchronization acquisition method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100316397A CN100367281C (en) | 2005-06-01 | 2005-06-01 | Pulsed laser spot software synchronization acquisition method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1700214A true CN1700214A (en) | 2005-11-23 |
CN100367281C CN100367281C (en) | 2008-02-06 |
Family
ID=35476280
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005100316397A Expired - Fee Related CN100367281C (en) | 2005-06-01 | 2005-06-01 | Pulsed laser spot software synchronization acquisition method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100367281C (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101886951A (en) * | 2010-04-09 | 2010-11-17 | 中国科学院上海技术物理研究所 | System and method for analyzing movable target aiming performance of high repetition frequency laser |
CN103776297A (en) * | 2014-01-23 | 2014-05-07 | 中国人民解放军总参谋部第六十研究所 | Laser target identifying system based on character pictures and identifying method of laser target identifying system |
CN104502863A (en) * | 2014-12-16 | 2015-04-08 | 天津大学 | Pulse xenon lamp spot detection device |
CN104730280A (en) * | 2015-04-10 | 2015-06-24 | 苏州大学 | Speed measuring method and system for balls |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1360196A (en) * | 2000-12-18 | 2002-07-24 | 中国科学院光电技术研究所 | Declinometer |
CN1156795C (en) * | 2002-03-27 | 2004-07-07 | 清华大学 | Image processing method for image transmission system and its optical fibre endoscope |
-
2005
- 2005-06-01 CN CNB2005100316397A patent/CN100367281C/en not_active Expired - Fee Related
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101886951A (en) * | 2010-04-09 | 2010-11-17 | 中国科学院上海技术物理研究所 | System and method for analyzing movable target aiming performance of high repetition frequency laser |
CN101886951B (en) * | 2010-04-09 | 2012-06-27 | 中国科学院上海技术物理研究所 | System and method for analyzing movable target aiming performance of high repetition frequency laser |
CN103776297A (en) * | 2014-01-23 | 2014-05-07 | 中国人民解放军总参谋部第六十研究所 | Laser target identifying system based on character pictures and identifying method of laser target identifying system |
CN103776297B (en) * | 2014-01-23 | 2015-11-18 | 中国人民解放军总参谋部第六十研究所 | The laser target recognition system of feature based figure and recognition methods thereof |
CN104502863A (en) * | 2014-12-16 | 2015-04-08 | 天津大学 | Pulse xenon lamp spot detection device |
CN104730280A (en) * | 2015-04-10 | 2015-06-24 | 苏州大学 | Speed measuring method and system for balls |
Also Published As
Publication number | Publication date |
---|---|
CN100367281C (en) | 2008-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107945530B (en) | Vehicle overrun detection system and detection method thereof | |
WO2015196616A1 (en) | Image edge detection method, image target recognition method and device | |
CN100435160C (en) | Video image processing method and system for real-time sampling of traffic information | |
CN100530221C (en) | Image-based bus passenger number automatic statistics meter | |
CN109711318B (en) | Multi-face detection and tracking method based on video stream | |
CN109409368A (en) | Mine leather belt is vertical to tear detection device and detection method | |
CN102740121B (en) | Be applied to video quality diagnostic control system and the method for video surveillance network | |
CN102254222B (en) | Method and device for counting bar materials | |
CN1700214A (en) | Pulsed laser spot software synchronization acquisition method | |
CN104013424B (en) | A kind of ultrasonic wide-scene imaging method based on depth information | |
CN113096158A (en) | Moving object identification method and device, electronic equipment and readable storage medium | |
CN110738150A (en) | Camera linkage snapshot method and device and computer storage medium | |
CN103905691A (en) | Method for obtaining sharp image through penetration through rain, snow and fog, and photographing system | |
CN113380069A (en) | Street lamp-based roadside parking system and method thereof | |
CN102446034B (en) | Optical touch control system and object sensing method thereof | |
CN104935885A (en) | AXI bus based extensible multi-channel image acquisition device | |
CN201413506Y (en) | Image trapping positioning device | |
CN101998111A (en) | Video acquisition mode automatic conversion system and method of high-definition (HD) camera | |
CN107277383A (en) | Optical detection apparatus and its synchronization adjustment method | |
CN103680137B (en) | Image acquiring method and device based on intelligent traffic monitoring system | |
CN101581989B (en) | System for capturing and positioning image | |
CN1687955A (en) | Counter for person number at exit and entrance | |
CN103956055B (en) | A kind of method for snap control captured for vehicle image | |
CN110827317B (en) | Four-eye moving object detection and identification equipment and method based on FPGA | |
CN210530832U (en) | Shield tail clearance measuring device for shield tunneling machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080206 Termination date: 20150601 |
|
EXPY | Termination of patent right or utility model |