CN117412157A - Labview-based high-speed image acquisition method - Google Patents

Labview-based high-speed image acquisition method Download PDF

Info

Publication number
CN117412157A
CN117412157A CN202311258331.0A CN202311258331A CN117412157A CN 117412157 A CN117412157 A CN 117412157A CN 202311258331 A CN202311258331 A CN 202311258331A CN 117412157 A CN117412157 A CN 117412157A
Authority
CN
China
Prior art keywords
image
image acquisition
speed
acquisition
labview
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.)
Pending
Application number
CN202311258331.0A
Other languages
Chinese (zh)
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.)
Anhui East China Institute of Optoelectronic Technology
Original Assignee
Anhui East China Institute of Optoelectronic Technology
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 Anhui East China Institute of Optoelectronic Technology filed Critical Anhui East China Institute of Optoelectronic Technology
Priority to CN202311258331.0A priority Critical patent/CN117412157A/en
Publication of CN117412157A publication Critical patent/CN117412157A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a Labview-based high-speed image acquisition method, which comprises the steps of configuring equipment, establishing an image acquisition cache space and calculating the memory of the image acquisition cache space; capturing an external image, and calculating the memory size of the image within one millisecond; performing association calculation according to the calculation result and the size of the memory of the image acquisition cache space; adjusting the memory size of an image acquisition cache space, and setting a temporary storage space; judging the state of the acquired image, and automatically acquiring; generating an acquisition pixel set and carrying out cache processing through a temporary storage space; storing in real time in time when each frame of image buffer is obtained; identifying the memory size threshold value of the image acquisition cache space, and changing the state; restoring the images to images at different exposure moments; performing two-dimensional conversion on the image and performing image display processing through a Labview board card; and stopping shooting after the image display processing, and cleaning the space. The method has high processing efficiency and can efficiently ensure the image quality.

Description

Labview-based high-speed image acquisition method
Technical Field
The invention relates to the technical field of high-speed image acquisition, in particular to a Labview-based high-speed image acquisition method.
Background
Labview is a graphic programming software provided by a national instrument (National Instruments) in the United states, can rapidly develop a test program by combining a virtual instrument technology, has a good industrial detection equipment interface and powerful functional modules comprising vision, motion control, embedded development, bus communication and the like, and is widely applied to the field of industrial measurement and control. The high-speed data acquisition is a technology for acquiring and digitizing video image information at high speed and uploading the digital video image information to a hardware device of a computer, playing or storing the digital video image information according to requirements. What the high-speed image acquisition system does is to ensure that the image data stream is reliably transmitted, displayed and stored according to a pre-arranged path. The method has wide application in the aspects of image processing, video conference, public security monitoring system, traffic monitoring, industrial control, military, medical science, aerospace and the like.
However, the existing Labview-based high-speed image acquisition is inconvenient to control the space of the image cache, the problem of image acquisition vacancy is easily caused by the problem of cache memory during high-speed image acquisition, important image omission is caused, and the exposure authenticity for image display is inconvenient to adjust, so that the quality of image acquisition is affected.
Disclosure of Invention
The invention aims to provide a Labview-based high-speed image acquisition method which has high processing efficiency and can efficiently guarantee image quality.
In order to achieve the above object, the present invention provides a Labview-based high-speed image acquisition method, which includes:
step 1: configuring a Labview board card, a high-speed camera and a CMOS high-frame sensor;
step 2: configuring high-speed camera acquisition parameters;
step 3: establishing an image acquisition cache space and calculating the memory of the image acquisition cache space;
step 4: capturing an external image through a Labview board card, a high-speed camera and a CMOS high-frame sensor, and calculating the memory size of the image within one millisecond of capturing the external image;
step 5: performing association calculation according to the calculated one millisecond image memory size and the image acquisition cache space memory size;
step 6: adjusting the memory size of an image acquisition cache space and setting a temporary storage space;
step 7: judging the state of the acquired image, and automatically acquiring the image;
step 8: generating an acquisition pixel set and caching the image through a temporary storage space;
step 9: when each frame of image cache is obtained, timely performing real-time storage operation on each frame of image cache set;
step 10: identifying a memory size threshold value of an image acquisition cache space, and changing an automatic image acquisition state according to the threshold value;
step 11: restoring the images to images at different exposure moments;
step 12: performing two-dimensional conversion on the image and performing image display processing through a Labview board card;
step 13: and stopping shooting after the image display processing, and cleaning all memory space occupied by the image.
Preferably, configuring the high-speed camera acquisition parameters in step 2 includes: and calling the external camera ccf file, and configuring each acquisition parameter of the high-speed camera through the called external ccf file.
Preferably, step 3 comprises:
step 3.1: establishing an image acquisition cache space, and caching the high-speed acquired images;
step 3.2: and calculating the size of the storable memory of the image acquisition buffer space to obtain the total size of the cacheable high-speed acquisition image.
Preferably, step 5 comprises:
step 5.1: recording according to the calculated memory size of the image in one millisecond;
step 5.2: and calculating the cacheable millisecond total time according to the memory size of the image acquisition cache space to obtain the total time length of the high-speed image acquisition.
Preferably, step 6 comprises:
step 6.1: amplifying and reducing and adjusting the memory size of the image acquisition buffer space according to the high-speed image acquisition total duration;
step 6.2: after the size of the memory of the image acquisition buffer space is adjusted, setting a temporary storage space of the memory of the image acquisition buffer space, and temporarily storing image data.
Preferably, step 8 comprises:
step 8.1: generating an acquisition pixel set and sending data to a temporary storage space;
step 8.2: and carrying out image caching processing on the collected pixel set through the temporary storage space.
Preferably, step 9 comprises:
step 9.1: reading each frame of image cache set when each frame of image cache is obtained;
step 9.2: and automatically storing each frame of image cache set into an image acquisition cache space, and performing storage operation on the images.
Preferably, step 10 includes stopping the image auto-acquisition state, changing the image auto-acquisition position, and changing the image auto-acquisition speed.
Preferably, step 11 comprises:
step 11.1: sampling the photosensitive region of the image, and setting the interval between sampling pixel rows;
step 11.2: and calculating the average photosensitive value of the sampling pixels, and restoring the images into images at different exposure moments.
Preferably, step 12 includes storing the images into a one-dimensional image group, converting the one-dimensional image group into a two-dimensional image group, and sizing the two-dimensional image group.
According to the technical scheme, the method and the device realize the calculation of the time for continuously acquiring the image by carrying out the association calculation between the memory size of the image in one millisecond and the memory size of the image acquisition buffer space, ensure the pre-estimated calculation processing of the high-speed image acquisition time based on Labview, acquire the images at different exposure moments of the image by sampling the average photosensitive value of the pixels, restore the images at different exposure moments to be displayed, and facilitate the guarantee of the image quality of the high-speed image acquisition.
Additional features and advantages of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification, illustrate the invention and together with the description serve to explain, without limitation, the invention. In the drawings:
fig. 1 is a flowchart of a Labview-based high-speed image acquisition method provided by the invention.
Detailed Description
The following describes specific embodiments of the present invention in detail with reference to the drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the invention, are not intended to limit the invention.
Referring to fig. 1, the invention provides a Labview-based high-speed image acquisition method, which comprises the following steps:
step 1: configuring a Labview board card, a high-speed camera and a CMOS high-frame sensor;
step 2: configuring high-speed camera acquisition parameters;
step 3: establishing an image acquisition cache space and calculating the memory of the image acquisition cache space;
step 4: capturing an external image through a Labview board card, a high-speed camera and a CMOS high-frame sensor, and calculating the memory size of the image within one millisecond of capturing the external image;
step 5: performing association calculation according to the calculated one millisecond image memory size and the image acquisition cache space memory size;
step 6: adjusting the memory size of an image acquisition cache space and setting a temporary storage space;
step 7: judging the state of the acquired image, and automatically acquiring the image;
step 8: generating an acquisition pixel set and caching the image through a temporary storage space;
step 9: when each frame of image cache is obtained, timely performing real-time storage operation on each frame of image cache set;
step 10: identifying a memory size threshold value of an image acquisition cache space, and changing an automatic image acquisition state according to the threshold value;
step 11: restoring the images to images at different exposure moments;
step 12: performing two-dimensional conversion on the image and performing image display processing through a Labview board card;
step 13: and stopping shooting after the image display processing, and cleaning all memory space occupied by the image.
Specifically, the configuring the high-speed camera acquisition parameters in the step 2 includes: and calling the external camera ccf file, and configuring each acquisition parameter of the high-speed camera through the called external ccf file.
The step 3 comprises the following steps:
step 3.1: establishing an image acquisition cache space, and caching the high-speed acquired images;
step 3.2: and calculating the size of the storable memory of the image acquisition buffer space to obtain the total size of the cacheable high-speed acquisition image.
The step 5 comprises the following steps:
step 5.1: recording according to the calculated memory size of the image in one millisecond;
step 5.2: and calculating the cacheable millisecond total time according to the memory size of the image acquisition cache space to obtain the total time length of the high-speed image acquisition.
The step 6 comprises the following steps:
step 6.1: amplifying and reducing and adjusting the memory size of the image acquisition buffer space according to the high-speed image acquisition total duration;
step 6.2: after the size of the memory of the image acquisition buffer space is adjusted, setting a temporary storage space of the memory of the image acquisition buffer space, and temporarily storing image data.
Step 8 comprises:
step 8.1: generating an acquisition pixel set and sending data to a temporary storage space;
step 8.2: and carrying out image caching processing on the collected pixel set through the temporary storage space.
Step 9 comprises:
step 9.1: reading each frame of image cache set when each frame of image cache is obtained;
step 9.2: and automatically storing each frame of image cache set into an image acquisition cache space, and performing storage operation on the images.
Step 10 includes stopping the image automatic acquisition state, changing the image automatic acquisition position, and changing the image automatic acquisition speed.
Step 11 comprises:
step 11.1: sampling the photosensitive region of the image, and setting the interval between sampling pixel rows;
step 11.2: and calculating the average photosensitive value of the sampling pixels, and restoring the images into images at different exposure moments.
Step 12 includes storing the images in a one-dimensional image group, converting the one-dimensional image group into a two-dimensional image group, and setting the size of the two-dimensional image group.
Therefore, the image is stably and high-speed acquired through the processing of the step 1, so that the stability of high-speed image acquisition and the display quality of the image can be improved.
The image size within one millisecond is calculated through the processing of the step 4, so that the stability in the later acquisition is ensured.
In step 5, the correlation calculation is performed between the memory size of the image in one millisecond and the memory size of the image acquisition cache space, so that the calculation of the image acquisition time of sustainable image acquisition of the memory size of the image acquisition cache space is realized, and the prediction calculation processing of the high-speed image acquisition time based on Labview is ensured.
In step 11, the average photosensitive value of the sampling pixels is used for acquiring images at different exposure moments, and the images are restored to be displayed at different exposure moments, so that the quality of the high-speed image acquisition image is guaranteed, and the image is better displayed.
In summary, the invention calculates the sustainable image acquisition time of the memory size of the image acquisition buffer space by performing the association calculation between the memory size of the image acquisition buffer space and the memory size of the image acquisition buffer space, ensures that the high-speed image acquisition time based on Labview is used for the pre-estimated calculation processing, acquires images at different exposure moments of the image by sampling the average photosensitive value of the pixels, restores the image to the images at different exposure moments for display, and is convenient for guaranteeing the image quality of the high-speed image acquisition.
The preferred embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the present invention is not limited to the specific details of the above embodiments, and various simple modifications can be made to the technical solution of the present invention within the scope of the technical concept of the present invention, and all the simple modifications belong to the protection scope of the present invention.
In addition, the specific features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various possible combinations are not described further.
Moreover, any combination of the various embodiments of the invention can be made without departing from the spirit of the invention, which should also be considered as disclosed herein.

Claims (10)

1. A Labview-based high-speed image acquisition method, the method comprising:
step 1: configuring a Labview board card, a high-speed camera and a CMOS high-frame sensor;
step 2: configuring high-speed camera acquisition parameters;
step 3: establishing an image acquisition cache space and calculating the memory of the image acquisition cache space;
step 4: capturing an external image through a Labview board card, a high-speed camera and a CMOS high-frame sensor, and calculating the memory size of the image within one millisecond of capturing the external image;
step 5: performing association calculation according to the calculated one millisecond image memory size and the image acquisition cache space memory size;
step 6: adjusting the memory size of an image acquisition cache space and setting a temporary storage space;
step 7: judging the state of the acquired image, and automatically acquiring the image;
step 8: generating an acquisition pixel set and caching the image through a temporary storage space;
step 9: when each frame of image cache is obtained, timely performing real-time storage operation on each frame of image cache set;
step 10: identifying a memory size threshold value of an image acquisition cache space, and changing an automatic image acquisition state according to the threshold value;
step 11: restoring the images to images at different exposure moments;
step 12: performing two-dimensional conversion on the image and performing image display processing through a Labview board card;
step 13: and stopping shooting after the image display processing, and cleaning all memory space occupied by the image.
2. The Labview-based high-speed image acquisition method according to claim 1, wherein configuring the high-speed camera acquisition parameters in step 2 comprises: and calling the external camera ccf file, and configuring each acquisition parameter of the high-speed camera through the called external ccf file.
3. The Labview-based high-speed image acquisition method according to claim 1, wherein step 3 comprises:
step 3.1: establishing an image acquisition cache space, and caching the high-speed acquired images;
step 3.2: and calculating the size of the storable memory of the image acquisition buffer space to obtain the total size of the cacheable high-speed acquisition image.
4. The Labview-based high-speed image acquisition method according to claim 1, wherein step 5 comprises:
step 5.1: recording according to the calculated memory size of the image in one millisecond;
step 5.2: and calculating the cacheable millisecond total time according to the memory size of the image acquisition cache space to obtain the total time length of the high-speed image acquisition.
5. The Labview-based high-speed image acquisition method according to claim 1, wherein step 6 comprises:
step 6.1: amplifying and reducing and adjusting the memory size of the image acquisition buffer space according to the high-speed image acquisition total duration;
step 6.2: after the size of the memory of the image acquisition buffer space is adjusted, setting a temporary storage space of the memory of the image acquisition buffer space, and temporarily storing image data.
6. The Labview-based high-speed image acquisition method according to claim 1, wherein step 8 comprises:
step 8.1: generating an acquisition pixel set and sending data to a temporary storage space;
step 8.2: and carrying out image caching processing on the collected pixel set through the temporary storage space.
7. The Labview-based high-speed image acquisition method according to claim 1, wherein step 9 comprises:
step 9.1: reading each frame of image cache set when each frame of image cache is obtained;
step 9.2: and automatically storing each frame of image cache set into an image acquisition cache space, and performing storage operation on the images.
8. The Labview-based high speed image acquisition method according to claim 1, wherein step 10 includes stopping the image automatic acquisition state, changing the image automatic acquisition position, and changing the image automatic acquisition speed.
9. The Labview-based high-speed image acquisition method according to claim 1, wherein step 11 comprises:
step 11.1: sampling the photosensitive region of the image, and setting the interval between sampling pixel rows;
step 11.2: and calculating the average photosensitive value of the sampling pixels, and restoring the images into images at different exposure moments.
10. The Labview-based high speed image acquisition method according to claim 1, wherein step 12 includes storing the images into a one-dimensional image group, converting the one-dimensional image group into a two-dimensional image group, and setting the size of the two-dimensional image group.
CN202311258331.0A 2023-09-26 2023-09-26 Labview-based high-speed image acquisition method Pending CN117412157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311258331.0A CN117412157A (en) 2023-09-26 2023-09-26 Labview-based high-speed image acquisition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311258331.0A CN117412157A (en) 2023-09-26 2023-09-26 Labview-based high-speed image acquisition method

Publications (1)

Publication Number Publication Date
CN117412157A true CN117412157A (en) 2024-01-16

Family

ID=89499113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311258331.0A Pending CN117412157A (en) 2023-09-26 2023-09-26 Labview-based high-speed image acquisition method

Country Status (1)

Country Link
CN (1) CN117412157A (en)

Similar Documents

Publication Publication Date Title
Dong et al. Spike camera and its coding methods
CN109640007B (en) Artificial intelligence image sensing equipment
CN113973190A (en) Video virtual background image processing method and device and computer equipment
US20070222858A1 (en) Monitoring system, monitoring method and program therefor
TW201503054A (en) Image processor and image merging method thereof
CN105827935A (en) Terminal screenshot method and terminal
CN114079820A (en) Interval shooting video generation centered on an event/object of interest input on a camera device by means of a neural network
JP2008042695A (en) Monitor camera apparatus, monitor camera system, and method of recording monitor camera image
CN113099122A (en) Shooting method, shooting device, shooting equipment and storage medium
CN106303249B (en) Video anti-shake method and device
CN112422909B (en) Video behavior analysis management system based on artificial intelligence
KR20020047069A (en) Device and Method for transmitting picture data
CN112565603B (en) Image processing method and device and electronic equipment
CN117412157A (en) Labview-based high-speed image acquisition method
CN113079342A (en) Target tracking method and system based on high-resolution image device
CN115564695A (en) Processing method and electronic equipment
US20210152782A1 (en) Data Transmission Method, Camera and Electronic Device
CN113676673A (en) Image acquisition method, image acquisition system and unmanned equipment
WO2019076156A1 (en) Data transmission method, camera and electronic device
JP5662088B2 (en) Remote visual inspection device
CN111681164B (en) Device and method for cruising panoramic image in partial end-to-end connection mode
CN115118974A (en) Video generation method, device, system, electronic equipment and readable storage medium
CN110475044B (en) Image transmission method and device, electronic equipment and computer readable storage medium
CN112261474A (en) Multimedia video image processing system and processing method
JP2002314984A (en) Monitoring camera system

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