CN114554088B - High-speed beat detection system - Google Patents

High-speed beat detection system Download PDF

Info

Publication number
CN114554088B
CN114554088B CN202210142581.7A CN202210142581A CN114554088B CN 114554088 B CN114554088 B CN 114554088B CN 202210142581 A CN202210142581 A CN 202210142581A CN 114554088 B CN114554088 B CN 114554088B
Authority
CN
China
Prior art keywords
camera
thread
image
control card
motion control
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
CN202210142581.7A
Other languages
Chinese (zh)
Other versions
CN114554088A (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.)
Guangzhou Siruite Intelligent Technology Co ltd
Original Assignee
Guangzhou Siruite Intelligent 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 Guangzhou Siruite Intelligent Technology Co ltd filed Critical Guangzhou Siruite Intelligent Technology Co ltd
Priority to CN202210142581.7A priority Critical patent/CN114554088B/en
Publication of CN114554088A publication Critical patent/CN114554088A/en
Application granted granted Critical
Publication of CN114554088B publication Critical patent/CN114554088B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/66Remote control of cameras or camera parts, e.g. by remote control devices
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems
    • G08C19/16Electric signal transmission systems in which transmission is by pulses
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention discloses a high-speed beat detection system and a detection method thereof, comprising the following steps: the industrial computer is internally provided with visual software, and the visual software consists of a motion control card control module, an image processing module and a camera control module; the motion control card is internally provided with a computer connecting wire A and a camera connecting wire, and the computer connecting wire A is connected with the motion control card control module; the camera is internally provided with a control card connecting wire and a computer connecting wire B, the control card connecting wire is connected with the camera connecting wire, and the computer connecting wire B is connected with the camera control module; the motion control card module sends a control instruction to the motion control card through a computer connecting line A; the camera control module sends a control instruction to the camera through a computer connecting line B; the high-speed beat detection system and the detection method thereof have better detection effect.

Description

High-speed beat detection system
Technical Field
The invention relates to a high-speed beat detection system and a detection method thereof.
Background
As shown in fig. 2, in the conventional high-speed beat detection scheme, when a photographing instruction is sent, a camera is triggered by a software instruction to photograph, so that the photographing time fluctuation is large, when the step of detection is executed, the single-sheet detection time is not fixed, and when the step of judging that the number of images is enough is carried out, the detection effect is poor because the time difference between two times of detection is not fixed.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a high-speed beat detection system with better detection effect and a detection method thereof.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a high-speed beat detection system comprising:
the industrial computer is internally provided with visual software, and the visual software consists of a motion control card control module, an image processing module and a camera control module;
the motion control card is internally provided with a computer connecting wire A and a camera connecting wire, and the computer connecting wire A is connected with the motion control card control module;
the camera is internally provided with a control card connecting wire and a computer connecting wire B, the control card connecting wire is connected with the camera connecting wire, and the computer connecting wire B is connected with the camera control module;
the motion control card module sends a control instruction to the motion control card through a computer connecting line A; the camera control module sends a control instruction to the camera through a computer connecting line B.
Furthermore, the motion control card sends a pulse signal to the camera through the camera connecting wire and the control card connecting wire.
Furthermore, each pulse signal triggers a camera to take a picture to form image data, the image data is delivered to the visual software through the computer connecting line B, and the visual software caches the delivered image data.
Furthermore, the pulse signal output by the motion control card is sent to the camera by adopting a set time interval.
Furthermore, the electrical parameters of the pulse signal sent by the motion control card are matched with the external trigger conditions of the camera.
Further, the electrical parameters of the pulse signal sent by the motion control card are matched with the external trigger conditions of the camera.
Another technical problem to be solved by the present invention is to provide a detection method using the above high-speed beat detection system, which includes the following steps:
when the workpiece to be detected reaches the detection position, triggering a detection signal, and when the visual software receives the detection signal, starting to execute detection;
after the visual software enters a detection mode, a thread 1 and a thread 2 are built and started inside, meanwhile, a special image cache region for receiving image data returned by a camera is built in a memory of an industrial computer, and the thread 1 and the thread 2 access the cache region in sequence;
after the thread 1 is started, a motion control card control module in the visual software is called to send a starting instruction of a motion control board card, and after the motion control card receives the starting instruction, a pulse signal is output; meanwhile, the thread 2 circularly scans an image cache region established in the memory of the industrial computer and inquires whether the cache region has image data or not;
after the thread 1 sends a starting instruction of the motion control board card, sending a control instruction to the camera through the camera control module, inquiring whether the camera finishes one-time shooting and generates an image, if the camera does not receive the image, continuously waiting until the control instruction is forcibly ended, after the software receives the image returned by the camera, storing the image in an image cache region, then, when an internal counter reaches a preset value, ending the self flow by the thread 1, and otherwise, returning to the step of inquiring the image of the camera; meanwhile, after scanning the image cache region and detecting the image written by the thread 1, the thread 2 reads the image, and calls a detection step in the software to perform preset processing, after the detection of one image is completed, the counter +1 in the thread 2 judges that when the internal counter reaches a preset value, the thread 2 finishes the flow.
Furthermore, the thread 1 and the thread 2 run synchronously in the industrial computer.
Further, after the vision software internally monitors that the thread 1 and the thread 2 are both finished, the single detection step is finished, and the next detection is waited to start
Further, when the thread 1 and the thread 2 cannot finish the times designated by the counter, the thread 1 and the thread 2 are in a continuous waiting state until the external input end gives a visual software suspension command, and then the thread 1 and the thread 2 jump out of the loop to finish the self flow.
The invention has the beneficial effects that:
compared with the traditional detection scheme, the method has the advantages that the motion control card is adopted to trigger the camera to shoot in the scheme, the shooting time is stable, image data are directly written into the cache region and are processed by the independent thread, pulse signals with the set time interval are adopted to optimize the condition of unfixed time difference influence in the traditional scheme, the cycle time is stable, and the detection effect is better.
Drawings
Fig. 1 is a schematic structural diagram of a high-speed beat detection system according to the present invention;
FIG. 2 is a schematic flow diagram of a prior art detection scheme;
fig. 3 is a schematic flow chart of a detection method using a high-speed beat detection system according to the present invention.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth to illustrate, but are not to be construed to limit the scope of the invention. The invention is more particularly described in the following paragraphs with reference to the accompanying drawings by way of example. Advantages and features of the present invention will become apparent from the following description and from the claims. It is to be noted that the drawings are in a very simplified form and are not to precise scale, which is merely for the purpose of facilitating and distinctly claiming the embodiments of the present invention.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When a component is referred to as being "connected" to another component, it can be directly connected to the other component or intervening components may also be present. When a component is referred to as being "disposed on" another component, it can be directly on the other component or intervening components may also be present. The terms "vertical," "horizontal," "left," "right," and the like are used herein for purposes of illustration only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Examples
Referring to fig. 1 and 3, a high-speed beat detection system includes:
the industrial computer is internally provided with visual software, and the visual software consists of a motion control card control module, an image processing module and a camera control module;
the motion control card is internally provided with a computer connecting wire A and a camera connecting wire, and the computer connecting wire A is connected with the motion control card control module;
the camera is internally provided with a control card connecting wire and a computer connecting wire B, the control card connecting wire is connected with the camera connecting wire, and the computer connecting wire B is connected with the camera control module;
the motion control card module sends a control instruction to the motion control card through a computer connecting line A; the camera control module sends a control instruction to the camera through the computer connecting line B.
The motion control card sends pulse signals to the camera through the camera connecting line and the control card connecting line, and the set time interval of the pulse signals sent by the motion control card is controlled by the pulse board card and is not controlled by the vision software.
And triggering the camera to take a picture once by each pulse signal to form image data, delivering the image data to the visual software through the computer connecting line B, and caching the delivered image data by the visual software.
And the pulse signal output by the motion control card is sent to the camera by adopting a set time interval.
The electrical parameters of the pulse signal sent by the motion control card are matched with the external trigger conditions of the camera.
The hardware connection scheme is illustrated as follows:
1) The visual software is installed in a built-in operating system of the industrial computer and comprises a motion control card control module, a camera control module and an image control module;
2) The industrial computer is connected with the motion control card through a special connecting wire for the motion control card, and the connecting wire can realize that the motion control card module in the visual software sends an instruction to control the motion control card to execute corresponding operation;
3) The industrial computer is connected with the camera through a data line special for the camera, and the connecting line can realize that the camera control module in the visual software sends an instruction to control the camera to execute corresponding operation;
4) The motion control card is connected with the camera through a trigger line special for the camera, the connection mode can ensure that when the motion control card sends a pulse instruction, each pulse signal can trigger the camera to take a picture once, and the image is sent to a camera control module of the vision software through the connection of the step 3) and is delivered to the vision software to be operated;
5) In particular, the motion control card in the solution needs to implement: a specified number of pulse signals can be output, the interval time between each pulse is kept stable, the pulse signals are sent to a camera end through a connecting line of the step 4) and the camera, and the electrical parameters of the signals meet the condition of external triggering of the camera, so that the normal operation of the step 4) is ensured;
6) In particular, the camera in the solution needs to implement: triggering the camera to take a picture by the pulse signal of the motion control card through the connection mode of the step 4), and transmitting the image back to the visual software in the industrial computer through the connection mode of the step 3);
7) In particular, the industrial computer in the solution needs to implement: the connecting line of the industrial computer and the camera in the step 3) can meet the requirement that the quantity and the quality of the image return of the camera in the step 4) are accurate. The memory requirements of an industrial computer are sufficient for image caching as described in the detection process below.
The detection executed by the system is as follows:
1) When a workpiece to be detected reaches a detection position, triggering a detection signal, and starting to execute detection when software receives the detection signal;
2) After software enters a detection mode, two threads are created and started in the software, and the two threads are referred to as a thread 1 and a thread 2 in the following; thread 1 and thread 2 are executed at the same time in the background of the software; meanwhile, a special cache region is established in a memory of the computer and used for receiving the image returned by the camera, and the thread 1 and the thread 2 access the cache region in sequence;
3) After the thread 1 is started, calling a driving part of a software internal control module, sending a starting instruction of a motion control board card through a connecting flat cable, and immediately pulsing a signal after the motion board card receives the starting instruction; the pulse signal is automatically controlled and output by the motion board card, and the single signal interval time is stable;
4) Simultaneously with the step 3), the thread 2 circularly scans the image cache area created in the step 2) and inquires whether the cache area has images or not;
5) After the thread 1 sends a starting instruction of the motion control board card, sending a camera instruction in a hardware connecting line mode, inquiring whether a camera finishes one-time shooting and generates an image, and if the image is not received, continuously waiting until an external instruction is forcibly finished; after receiving the image returned by the camera, the software stores the image in the image cache area created in the step 2, then the thread 1 internal counter +1 judges that the thread 1 finishes the flow when the internal counter reaches the total number set in advance, otherwise, the step of inquiring the camera image is skipped;
6) Simultaneously with the step 5), after the thread 2 scans the image cache area created in the step 2) and detects the image written in the step 5) by the thread 1, reading the image, and calling a detection step in the software to perform a preset processing process; after the detection of one image is finished, the internal counter +1 of the thread 2 judges that the thread 2 finishes the self flow when the internal counter reaches the total number set in advance;
7) After the software internally monitors that the thread 1 and the thread 2 are both finished, finishing the single detection step, and waiting for the next detection to start)
8) Specifically, when the thread 1 and the thread 2 cannot complete the number of times specified by the counter, the thread 1 and the thread 2 are in a state of continuously waiting until the external input end (a hardware signal or an interface click button) gives software to suspend operation, and then the thread 1 and the thread 2 jump out of the loop to finish the self flow.
The above-described embodiments of the present invention are not intended to limit the scope of the present invention, and the embodiments of the present invention are not limited thereto, and various other modifications, substitutions and alterations can be made to the above-described structure of the present invention without departing from the basic technical concept of the present invention as described above, according to the common technical knowledge and conventional means in the field of the present invention.

Claims (8)

1. A high-speed beat detection system, comprising:
the industrial computer is internally provided with visual software, and the visual software consists of a motion control card control module, an image processing module and a camera control module;
the motion control card is internally provided with a computer connecting wire A and a camera connecting wire, and the computer connecting wire A is connected with the motion control card control module;
the camera is internally provided with a control card connecting wire and a computer connecting wire B, the control card connecting wire is connected with the camera connecting wire, and the computer connecting wire B is connected with the camera control module;
the motion control card module sends a control instruction to the motion control card through a computer connecting line A; the camera control module sends a control instruction to the camera through a computer connecting line B;
the detection method of the high-speed beat detection system comprises the following steps:
when a workpiece to be detected reaches a detection position, triggering a detection signal, and starting to execute detection when the visual software receives the detection signal;
after the visual software enters a detection mode, a thread 1 and a thread 2 are built and started inside, meanwhile, a special image cache region for receiving image data returned by a camera is built in a memory of an industrial computer, and the thread 1 and the thread 2 access the cache region in sequence;
after the thread 1 is started, a motion control card control module in the visual software is called to send a starting instruction of a motion control card, and the motion control card outputs a pulse signal after receiving the starting instruction; meanwhile, the thread 2 circularly scans an image cache region established in the memory of the industrial computer and inquires whether the cache region has image data or not;
after the thread 1 sends a starting instruction of the motion control board card, a control instruction is sent to the camera through the camera control module, whether the camera finishes one-time shooting and generates an image is inquired, if the image is not received, the camera continuously waits until the control instruction is forcibly finished, after the software receives the image returned by the camera, the image is stored in an image cache region, then an internal counter +1 of the thread 1 is started, when the internal counter reaches a preset value, the thread 1 finishes the self flow, and otherwise, the step of inquiring the image of the camera is skipped; meanwhile, after scanning the image cache region and detecting the image written by the thread 1, the thread 2 reads the image, and calls a detection step in the software to perform preset processing, after the detection of one image is completed, the counter +1 in the thread 2 judges that when the internal counter reaches a preset value, the thread 2 finishes the flow.
2. The high speed beat detection system according to claim 1, characterized in that: the motion control card sends pulse signals to the camera through the camera connecting line and the control card connecting line.
3. The high speed beat detection system according to claim 2, characterized in that: and triggering the camera to photograph once by each pulse signal to form image data, delivering the image data to the visual software through the computer connecting line B, and caching the delivered image data by the visual software.
4. The high-speed beat detection system according to claim 1, characterized in that: and the pulse signal output by the motion control card is sent to the camera by adopting a set time interval.
5. The high speed beat detection system according to claim 4, wherein: the electrical parameters of the pulse signal sent by the motion control card are matched with the external trigger conditions of the camera.
6. The high-speed beat detection system according to claim 4, characterized in that: thread 1 and thread 2 run synchronously within the industrial computer.
7. The high-speed beat detection system according to claim 1, characterized in that: and when the vision software internally monitors that the thread 1 and the thread 2 are both finished, finishing the single detection step and waiting for the start of the next detection.
8. The high-speed beat detection system according to claim 1, characterized in that: and when the thread 1 and the thread 2 can not finish the times designated by the counter, the thread 1 and the thread 2 are in a continuous waiting state until the external input end gives a visual software stopping command, and the thread 1 and the thread 2 jump out of the loop to finish the self flow.
CN202210142581.7A 2022-02-16 2022-02-16 High-speed beat detection system Active CN114554088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210142581.7A CN114554088B (en) 2022-02-16 2022-02-16 High-speed beat detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210142581.7A CN114554088B (en) 2022-02-16 2022-02-16 High-speed beat detection system

Publications (2)

Publication Number Publication Date
CN114554088A CN114554088A (en) 2022-05-27
CN114554088B true CN114554088B (en) 2023-04-18

Family

ID=81674931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210142581.7A Active CN114554088B (en) 2022-02-16 2022-02-16 High-speed beat detection system

Country Status (1)

Country Link
CN (1) CN114554088B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117142046A (en) * 2023-03-17 2023-12-01 荣耀终端有限公司 Control method, overturning station, motion control assembly and track detection system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102539443A (en) * 2011-12-29 2012-07-04 天津普达软件技术有限公司 Bottle body defect automatic detection device based on machine vision and method thereof
CN109309791A (en) * 2018-11-09 2019-02-05 珠海格力智能装备有限公司 Control camera photographic method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102514767A (en) * 2011-12-29 2012-06-27 天津普达软件技术有限公司 Automatic detection device based on machine vision for defects of instant noodle sauce packets and method
JP6608708B2 (en) * 2016-01-08 2019-11-20 株式会社キーエンス Appearance inspection apparatus, appearance inspection method, and computer program executable by controller used in appearance inspection apparatus
JP6195688B1 (en) * 2016-04-19 2017-09-13 三菱電機株式会社 Transient detection device, transient detection system, and transient detection method
CN106248686A (en) * 2016-07-01 2016-12-21 广东技术师范学院 Glass surface defects based on machine vision detection device and method
CN108355979B (en) * 2018-01-31 2021-01-26 塞伯睿机器人技术(长沙)有限公司 Target tracking and sorting system on conveyor belt
CN113252567A (en) * 2021-06-08 2021-08-13 菲特(天津)检测技术有限公司 Method, system, medium and terminal for rapidly detecting multiple defects on surface of aluminum valve plate

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102539443A (en) * 2011-12-29 2012-07-04 天津普达软件技术有限公司 Bottle body defect automatic detection device based on machine vision and method thereof
CN109309791A (en) * 2018-11-09 2019-02-05 珠海格力智能装备有限公司 Control camera photographic method and system

Also Published As

Publication number Publication date
CN114554088A (en) 2022-05-27

Similar Documents

Publication Publication Date Title
CN114554088B (en) High-speed beat detection system
US20040056960A1 (en) Electronic camera having continuous shooting function
US20020109778A1 (en) Image pickup system and picked-up image signal processing apparatus
US20200084387A1 (en) Low power mode for one or more cameras of a multiple camera system
JP2008243211A (en) Image acquisition system
CN103069789A (en) Image capture device, image capture method and programme
CN106165394B (en) The control device of photographic device
JP2015204948A (en) Capsule endoscope system, capsule endoscope, reception device, imaging control method of capsule endoscope, and program
US8194146B2 (en) Apparatuses for capturing and storing real-time images
EP1749231B1 (en) Improvements in and relating to image capture
CN101431607A (en) Method and system for selecting better shooting images
JP2003032539A (en) Camera mount device
US6903776B1 (en) Digital camera
US20030142217A1 (en) Digital camera
US20190342490A1 (en) Electronic device, image capture method, and control device
CN113612926B (en) Camera cleaning method, device and equipment and readable storage medium
JP2022042832A (en) Image capturing apparatus, control method of image capturing apparatus, system, and program
WO2001015436A1 (en) Universal two dimensional timing generator
JPH0962847A (en) Motion vector detection circuit and object tracking camera device using the same
CN116709012A (en) Updating method of shooting state information
JP7171966B2 (en) IMAGING DEVICE, CONTROL DEVICE, OPERATION METHOD OF IMAGING DEVICE, AND PROGRAM
US11743601B2 (en) Image processing device, image processing method, and storage medium
WO2021166332A1 (en) Image-capturing device, control device, method for operating image-capturing device, and program
JP2022155851A (en) Imaging apparatus and storage medium
US20020126122A1 (en) Apparatus and method for minimizing the idle time of a computer graphic system using hardware controlled flipping

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