CN115484414A - Method for changing camera photographing period by detecting coded signal - Google Patents
Method for changing camera photographing period by detecting coded signal Download PDFInfo
- Publication number
- CN115484414A CN115484414A CN202211401838.2A CN202211401838A CN115484414A CN 115484414 A CN115484414 A CN 115484414A CN 202211401838 A CN202211401838 A CN 202211401838A CN 115484414 A CN115484414 A CN 115484414A
- Authority
- CN
- China
- Prior art keywords
- camera
- period
- trigger signal
- processor
- signal
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000006073 displacement reaction Methods 0.000 claims abstract description 25
- 238000004590 computer program Methods 0.000 claims description 6
- 238000003860 storage Methods 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 230000000007 visual effect Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
Images
Landscapes
- Studio Devices (AREA)
Abstract
The invention provides a method for changing the photographing period of a camera by detecting a coded signal, which comprises the following steps: s1, acquiring displacement information of a displacement sensor, and S2, editing characteristic information of a trigger signal according to the displacement information and camera input parameter information; and S3, the camera receives the trigger signal, and adjusts the image acquisition interval time of the camera, the height value and the resolution of the acquired image according to the trigger signal. The invention has the beneficial effects that: the controller edits the characteristic information of the image acquisition trigger signal according to the frequency of the trigger signal and the image resolution of the camera, and outputs the edited trigger signal to the signal acquisition device of the camera, so that the period of image acquisition and the adjustment of the image height can be realized, the process of controlling the photographing period of the camera does not need the intervention and control of camera vision software, and the smoothness and the execution efficiency of the camera vision software are improved.
Description
Technical Field
The invention belongs to the technical field of controlling the photographing period of a camera, and particularly relates to a method for changing the photographing period of the camera by detecting a coded signal.
Background
The industrial camera is divided into a linear array camera and an area array camera, the linear array camera only acquires images of one row of pixels each time, a complete image is obtained by splicing the acquired images of a plurality of rows, and the area array camera acquires the whole image at one time.
In the visual detection field in industrial production, the position of industry camera is fixed, because of visual detection is that the product is mostly the mobile product on product line conveyer belt, consequently generally use the drive shaft of encoder connection conveyer belt more, the moving speed of product can be thought to be the same speed with the conveyer belt that the drive shaft drove, the rotational speed and the current position of axis of rotation can be judged to the encoder, consequently can judge the driving shaft through the girth and the rotational speed of judging the driving shaft area and rotate the working distance and the speed of round conveyer belt.
The encoder generates an electrical pulse signal output outwards along with the rotation, and the signal can be used for controlling the image acquisition of a camera in a vision system.
For the linear array camera, signals acquired each time are generally sent to the linear array camera by external signals, and the external signals are generally of fixed frequency, so that when the image photographing period and the interval time are required to be changed, the software controls the time when the images are displayed and stored, and the software does not process the images during the interval time, but at the moment, the hardware of the camera still works under the external trigger signal to acquire the images. The software control interval time and the image acquisition period need to record the number of externally triggered signals at any time, and the signal frequency is constant, so that the time can be converted into the number of signals. However, this undoubtedly increases the overhead of software, especially in the field of visual recognition, because the software has a large processing data volume, which easily causes inaccurate synchronization of software.
For an area-array camera, compared with a line-array camera, because the area-array camera can acquire a complete image once, the external trigger signal controls not the number of lines for acquiring the image but the time when the image starts to be acquired.
Disclosure of Invention
In view of the above, the present invention is directed to a method for changing a photographing period of a camera by detecting a code signal, so as to solve at least one of the above-mentioned problems.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the first aspect of the present invention provides a method for changing the photographing period of a camera by detecting a coded signal, comprising the steps of:
s1, collecting displacement information of a displacement sensor;
s2, editing characteristic information of the trigger signal according to the displacement information and the camera input parameter information;
and S3, the signal acquisition device of the camera receives the edited trigger signal, and the signal acquisition device changes the image acquisition interval time of the camera and the height value and resolution of the acquired image according to the characteristic information of the trigger signal.
Further, the displacement sensor is an encoder, and the displacement information is a trigger signal frequency of the encoder.
Further, the characteristic information of the trigger signal includes a frequency, a period time interval, and a period number of the trigger signal.
Furthermore, the camera is a linear array camera, and the linear array camera adjusts the image acquisition interval time of the linear array camera, the height value and the resolution of the acquired image according to the frequency, the period time interval and the period number of the trigger signal.
Furthermore, the camera is an area-array camera, and the area-array camera adjusts the inter-picture-taking time of the area-array camera through the trigger signal cycle time interval.
A second aspect of the present invention provides an electronic device, including a processor and a memory communicatively connected to the processor and storing instructions executable by the processor, wherein: the processor is configured to execute the method for changing the photographing period of the camera by detecting the encoded signal according to the first aspect.
A third aspect of the present invention provides a server, comprising: comprising at least one processor, and a memory communicatively connected to the processor, the memory storing instructions executable by the at least one processor, the instructions being executable by the processor to cause the at least one processor to perform the method of changing a photographing period of a camera by detecting a coded signal as described in the first aspect.
A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program, characterized in that: the computer program, when executed by a processor, implements the method for changing a photographing period of a camera by detecting a code signal according to the first aspect.
A fifth aspect of the present invention provides an apparatus for applying the method for changing a photographing period of a camera by detecting a coded signal according to the first aspect, wherein the method comprises: the displacement sensor is electrically connected with the controller, and the controller is electrically connected with the camera.
Compared with the prior art, the method for changing the photographing period of the camera by detecting the coded signal has the following beneficial effects:
(1) According to the method for changing the photographing period of the camera by detecting the coded signal, the controller edits the characteristic information (including the frequency, the period time interval and the period number of the trigger signal) of the trigger signal according to the frequency of the trigger signal and the image resolution of the linear array camera and outputs the characteristic information to the signal acquisition device of the camera, so that the period of image acquisition and the adjustment of the image height can be realized, the process of controlling the photographing period of the camera does not need the intervention and control of camera vision software, and the smoothness and the execution efficiency of the camera vision software are improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart illustrating a method for changing a photographing period of a camera according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
The first embodiment is as follows:
a method for changing a photographing period of a camera by detecting a coded signal, comprising the steps of:
s1, collecting displacement information of a displacement sensor;
s2, editing characteristic information of the trigger signal according to the displacement information and the camera input parameter information;
and S3, the signal acquisition device of the camera receives the edited trigger signal, and the signal acquisition device changes the image acquisition interval time of the camera and the height value and resolution of the acquired image according to the characteristic information of the trigger signal.
The displacement sensor is an encoder, and the displacement information is the trigger signal frequency of the encoder.
The characteristic information of the trigger signal comprises the frequency, the period time interval and the period number of the trigger signal.
When the camera is a linear array camera, the linear array camera adjusts the image acquisition interval time of the linear array camera, the height value and the resolution of the acquired image according to the frequency, the period time interval and the period number of the trigger signal.
When the camera is an area-array camera, the area-array camera adjusts the self-image-taking interval time through the trigger signal cycle time interval.
Displacement sensor can be encoder, photoelectric sensor, color mark discernment sensor, and displacement sensor is the encoder in this embodiment, and the encoder is connected with the drive roller that the drive material removed, and the trigger signal frequency that the material removed is gathered to the encoder, and displacement sensor is connected with the controller electricity, and the controller is connected with the camera electricity. The controller can be one of MCU, MPU, FPGA, CPLD and ZYNQ.
For example, the output signal frequency of an encoder triggered by the detected material movement is 1000HZ, and the image resolution set by the line camera is 1024 × 1000, so that the line camera needs to acquire images with 1024 × 1000 pixels in a single line, and when the images are directly input to the camera signal acquisition device by an external signal, if the image synthesis time is neglected, the generation frequency of the complete image is 1HZ. The output signal of the encoder is acquired and edited, the pulse signal frequency of the trigger signal is changed into 2000Hz, and then the edited signal is output to a signal acquisition device of a camera, so that the acquisition variable of the complete image is 2Hz, and the image acquisition frequency and the period value are changed on the basis of not changing the material moving speed and the original signal characteristic of the encoder; after the signal number with the same number as the image height is output, the signal output of the next image height number can be carried out after a period of time is paused, and the acquisition interval time between complete images can be controlled by controlling the delay time.
The controller edits characteristic information (including frequency, cycle time interval and cycle number of the trigger signals) of the trigger signals to the camera signal acquisition device according to the frequency of the trigger signals and the image resolution of the linear array camera, so that the image acquisition cycle and the image height can be adjusted, the camera photographing cycle is controlled without intervention and control of camera vision software, and the smoothness and the execution efficiency of the camera vision software are improved. And the shooting period is convenient to adjust, and compared with software counting, the method has higher accuracy.
Example two:
an electronic device comprising a processor and a memory communicatively coupled to the processor and configured to store processor-executable instructions, wherein: the processor is configured to execute the method for changing the photographing period of the camera by detecting the encoded signal according to the first embodiment.
Example three:
a server, characterized by: the camera comprises at least one processor and a memory which is in communication connection with the processor, wherein the memory stores instructions which can be executed by the at least one processor, and the instructions are executed by the processor to enable the at least one processor to execute the method for changing the photographing period of the camera by detecting the coded signal according to the first embodiment.
Example four:
a fourth aspect of the present invention provides a computer-readable storage medium storing a computer program, characterized in that: the computer program, when executed by the processor, implements the method for changing the photographing period of the camera by detecting the encoded signal according to the first embodiment.
Example five:
a fifth aspect of the present invention provides an apparatus for applying the method for changing a photographing period of a camera by detecting a coded signal according to the first embodiment, wherein the method comprises: the device comprises a controller and a displacement sensor, wherein the displacement sensor is electrically connected with the controller, and the controller is electrically connected with a camera.
Those of ordinary skill in the art will appreciate that the elements and method steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of clearly illustrating the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed method and system may be implemented in other ways. For example, the above described division of elements is merely a logical division, and other divisions may be realized, for example, multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not executed. The units may or may not be physically separate, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being covered by the appended claims and their equivalents.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (9)
1. A method for changing a photographing period of a camera by detecting a coded signal, comprising the steps of:
s1, collecting displacement information of a displacement sensor;
s2, editing characteristic information of the trigger signal according to the displacement information and the camera input parameter information;
and S3, the signal acquisition device of the camera receives the edited trigger signal, and the signal acquisition device changes the image acquisition interval time of the camera and the height value and resolution of the acquired image according to the characteristic information of the trigger signal.
2. The method of claim 1, wherein the method for changing the photographing period of the camera by detecting the encoded signal comprises: the displacement sensor is an encoder, and the displacement information is the trigger signal frequency of the encoder.
3. The method of claim 2, wherein the method for changing the photographing period of the camera by detecting the encoded signal comprises: the characteristic information of the trigger signal comprises the frequency, the period time interval and the period number of the trigger signal.
4. A method for changing the photographing period of a camera by detecting a coded signal according to claim 3, wherein: the camera is a linear array camera, and the linear array camera adjusts the image acquisition interval time of the linear array camera, the height value and the resolution of the acquired image according to the frequency, the period time interval and the period number of the trigger signal.
5. A method for changing the photographing period of a camera by detecting a coded signal according to claim 3, wherein: the camera is an area-array camera, and the area-array camera adjusts the self picture-taking interval time through the trigger signal period time interval.
6. An electronic device comprising a processor and a memory communicatively coupled to the processor and configured to store processor-executable instructions, wherein: the processor is used for executing the method for changing the photographing period of the camera by detecting the code signal as claimed in any one of the above claims 1 to 5.
7. A server, characterized by: comprising at least one processor, and a memory communicatively coupled to the processor, the memory storing instructions executable by the at least one processor, the instructions being executable by the processor to cause the at least one processor to perform the method of changing a photographing period of a camera by detecting a coded signal as claimed in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that: the computer program, when executed by a processor, implements the method of changing a photographing period of a camera by detecting a coded signal as claimed in any one of claims 1 to 5.
9. An apparatus for applying the method of changing the photographing period of a camera by detecting a code signal according to any one of claims 1 to 5, wherein: the displacement sensor is electrically connected with the controller, and the controller is electrically connected with the camera.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211401838.2A CN115484414A (en) | 2022-11-10 | 2022-11-10 | Method for changing camera photographing period by detecting coded signal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211401838.2A CN115484414A (en) | 2022-11-10 | 2022-11-10 | Method for changing camera photographing period by detecting coded signal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115484414A true CN115484414A (en) | 2022-12-16 |
Family
ID=84395532
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211401838.2A Pending CN115484414A (en) | 2022-11-10 | 2022-11-10 | Method for changing camera photographing period by detecting coded signal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115484414A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116233614A (en) * | 2023-04-24 | 2023-06-06 | 钛玛科(北京)工业科技有限公司 | Industrial camera acquisition processing method |
CN116760931A (en) * | 2023-06-20 | 2023-09-15 | 深圳市光太科技有限公司 | Method and device for improving shooting precision of line scanning camera |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11166904A (en) * | 1997-12-05 | 1999-06-22 | Nkk Corp | Image processor of moving object |
CN101482518A (en) * | 2009-01-09 | 2009-07-15 | 东华大学 | On-line quality detection system for movable band-shaped material |
CN102937596A (en) * | 2012-10-23 | 2013-02-20 | 鞍钢股份有限公司 | Strip steel surface image on-line frequency-conversion collection method |
CN203537492U (en) * | 2013-10-23 | 2014-04-09 | 苏州华兴致远电子科技有限公司 | Non-shape-transformation train image acquisition apparatus |
CN114241177A (en) * | 2021-12-20 | 2022-03-25 | 民航成都电子技术有限责任公司 | Airport pavement apparent image detection system based on linear array scanning imaging |
CN114598814A (en) * | 2022-02-28 | 2022-06-07 | 厦门聚视智创科技有限公司 | Multi-bit line camera scanning trigger control system |
CN115174761A (en) * | 2022-06-08 | 2022-10-11 | 浙江华睿科技股份有限公司 | Method and device for adjusting image acquisition frequency and image acquisition of camera |
-
2022
- 2022-11-10 CN CN202211401838.2A patent/CN115484414A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11166904A (en) * | 1997-12-05 | 1999-06-22 | Nkk Corp | Image processor of moving object |
CN101482518A (en) * | 2009-01-09 | 2009-07-15 | 东华大学 | On-line quality detection system for movable band-shaped material |
CN102937596A (en) * | 2012-10-23 | 2013-02-20 | 鞍钢股份有限公司 | Strip steel surface image on-line frequency-conversion collection method |
CN203537492U (en) * | 2013-10-23 | 2014-04-09 | 苏州华兴致远电子科技有限公司 | Non-shape-transformation train image acquisition apparatus |
CN114241177A (en) * | 2021-12-20 | 2022-03-25 | 民航成都电子技术有限责任公司 | Airport pavement apparent image detection system based on linear array scanning imaging |
CN114598814A (en) * | 2022-02-28 | 2022-06-07 | 厦门聚视智创科技有限公司 | Multi-bit line camera scanning trigger control system |
CN115174761A (en) * | 2022-06-08 | 2022-10-11 | 浙江华睿科技股份有限公司 | Method and device for adjusting image acquisition frequency and image acquisition of camera |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116233614A (en) * | 2023-04-24 | 2023-06-06 | 钛玛科(北京)工业科技有限公司 | Industrial camera acquisition processing method |
CN116233614B (en) * | 2023-04-24 | 2023-07-18 | 钛玛科(北京)工业科技有限公司 | Industrial camera acquisition processing method |
CN116760931A (en) * | 2023-06-20 | 2023-09-15 | 深圳市光太科技有限公司 | Method and device for improving shooting precision of line scanning camera |
CN116760931B (en) * | 2023-06-20 | 2024-01-30 | 深圳市光太科技有限公司 | Method and device for improving shooting precision of line scanning camera |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115484414A (en) | Method for changing camera photographing period by detecting coded signal | |
CN112179910B (en) | Real-time detection processing method and system for defects of lithium battery pole piece | |
CN111161404B (en) | Annular scanning morphology three-dimensional reconstruction method, device and system | |
US8026956B2 (en) | Image sensor, image taking apparatus, and state inspection system | |
CN101653289B (en) | Intelligent positioning method of tobacco bundles | |
CN102118556B (en) | Method for adjusting image capturing frequency in real time by using image sensing device | |
CN107421438B (en) | Machine vision-based film size detection control system and method | |
CN104007122A (en) | Cylindrical object lateral surface detection device and method based on turntable type assembly line | |
CN116309079B (en) | Dynamic image acquisition, splicing and optimizing system | |
US20210279905A1 (en) | Crystal line growing state detection method, apparatus and device for silicon rod | |
US4965841A (en) | Luminance cumulative integrating method and apparatus in image processes | |
US5452370A (en) | Image processing apparatus | |
EP4322544A3 (en) | Image pickup apparatus capable of performing image pickup with reduced flicker influence, method for controlling the same, program, and storage medium | |
US6081613A (en) | System for inspecting an appearance of a printed circuit board | |
CN103434290B (en) | A kind of embroidered cloth digital spray printing method realizing intelligent vision and guide | |
EP3452806B1 (en) | A machine vision method and system | |
CN116320779A (en) | Splicing method and system for monitoring video of fully mechanized mining face | |
CN108238477B (en) | Edge detection method, system, equipment and crimping machine for reel materials | |
CN112907513B (en) | Image position stamping system in industrial vision detection and generation method thereof | |
CN206488848U (en) | A kind of big visual field multiple spot three-dimensional vibrating measurement apparatus | |
CN117232396A (en) | Visual detection system and method for product quality of high-speed production line | |
CN110082365B (en) | Robot for detecting quality of edge of steel coil based on machine vision | |
CN113055595B (en) | Industrial camera control method, and coiled material defect identification method and system | |
CN109696189B (en) | Rotation delay measuring method of VR helmet based on encoder | |
CN212576900U (en) | Wheat infection scab disease grain rate online detection system based on embedded deep learning |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20221216 |
|
RJ01 | Rejection of invention patent application after publication |