CN107160854B - It is a kind of that the system and implementation method rectified a deviation with line electric eye are realized based on CCD and image recognition technology - Google Patents
It is a kind of that the system and implementation method rectified a deviation with line electric eye are realized based on CCD and image recognition technology Download PDFInfo
- Publication number
- CN107160854B CN107160854B CN201710388088.2A CN201710388088A CN107160854B CN 107160854 B CN107160854 B CN 107160854B CN 201710388088 A CN201710388088 A CN 201710388088A CN 107160854 B CN107160854 B CN 107160854B
- Authority
- CN
- China
- Prior art keywords
- chip microcontroller
- ccd sensor
- controllable
- deviation
- primary colours
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 11
- 238000005516 engineering process Methods 0.000 title claims abstract description 10
- 239000003086 colorant Substances 0.000 claims abstract description 27
- 238000012937 correction Methods 0.000 claims abstract description 14
- 210000004209 hair Anatomy 0.000 claims abstract description 13
- 238000006073 displacement reaction Methods 0.000 claims abstract description 10
- 238000012545 processing Methods 0.000 claims abstract description 10
- 230000003287 optical effect Effects 0.000 claims abstract description 7
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000009434 installation Methods 0.000 claims description 4
- 239000000284 extract Substances 0.000 claims description 3
- 230000001678 irradiating effect Effects 0.000 claims description 3
- 238000012544 monitoring process Methods 0.000 claims description 2
- 230000005611 electricity Effects 0.000 description 6
- 239000003990 capacitor Substances 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000001914 filtration Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000005669 field effect Effects 0.000 description 3
- 238000007639 printing Methods 0.000 description 3
- 238000005070 sampling Methods 0.000 description 3
- 241001269238 Data Species 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 108091008695 photoreceptors Proteins 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 230000004308 accommodation Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000001012 protector Effects 0.000 description 1
- 235000009566 rice Nutrition 0.000 description 1
- 238000005096 rolling process Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41F—PRINTING MACHINES OR PRESSES
- B41F33/00—Indicating, counting, warning, control or safety devices
- B41F33/0009—Central control units
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41F—PRINTING MACHINES OR PRESSES
- B41F33/00—Indicating, counting, warning, control or safety devices
- B41F33/16—Programming systems for automatic control of sequence of operations
Landscapes
- Color Television Image Signal Generators (AREA)
Abstract
It is a kind of that the system and implementation method rectified a deviation with line electric eye, including cross hairs locator, controllable three primary colours backlight, ccd sensor, single-chip microcontroller, multi-mode signal transmitter are realized based on CCD and image recognition technology;Running monitor single-chip microcontroller control ccd sensor and controllable three primary colours backlight first are scanned coiled strip, the optical signal sensed is converted into digital signal by ccd sensor, then digital signal single-chip microcontroller is transmitted to handle, to the displacement of multi-mode signal transmitter output graticule after single-chip microcontroller processing, correction information most is transmitted to deviation correcting device through multi-mode signal transmitter afterwards, is rectified a deviation to realize with line electric eye.
Description
Technical field
It is especially a kind of to be known based on CCD and image the present invention relates to the stroke deviation-rectifying system and method at a kind of printing scene
Other technology realizes the system and implementation method rectified a deviation with line electric eye
Background technique
Displacement sensor photocell mainly has to penetrating with side and reflection with two kinds of line, and wherein correlation is with side electric eye electricity
Road and signal are simple, but can be only installed at coiled strip edge when installation, and mounting means is single, is limited by site environment, positioning accuracy
It is influenced by the notch of coiled strip edge convex-concave, resolution ratio is not high;Reflection-type tracks the printing graticule of coiled strip standard with line electric eye always,
Mounting means is flexible, and tracking accuracy is very high, is mainly used for the printing of coiled strip pattern and coiled strip end finished product " receiving rolling ".First generation reflection
Formula is handled in an analog fashion with the difference size that line electric eye is based on shadow region volume reflection, performance depend entirely on light source with
The contrast and optical system collimation of coiled strip background and the type selecting and pairing of photodiode, can only track background and mark
Line compares strong coiled strip.
Summary of the invention
In view of the deficiencies of the prior art, the present invention is provided a kind of realized based on CCD and image recognition technology and entangled with line electric eye
Inclined system, including cross hairs locator, controllable three primary colours backlight, ccd sensor, single-chip microcontroller, multi-mode signal transmitter,
Running monitor, wherein running monitor monitors ccd sensor, single-chip microcontroller, controllable three primary colours backlight and cross hairs locator,
Single-chip microcontroller controls the information of controllable three primary colours backlight and cross hairs locator and processing ccd sensor, and cross hairs locator is
It is set to demarcate the installation site of electric eye, it is Chong Die with the graticule geometric center to be tracked that cross positions crosspoint;Controllable three primary colours
Backlight is sampled for irradiating coiled strip for ccd sensor, and the color intensity information of ccd sensor output, which is sent to single-chip microcontroller, to be carried out
Processing, color data extracts the displacement of graticule after passing through single-chip microcontroller operation, through multi-mode signal transmitter to communicate, switch
Or the mode of simulation transmits correction information to deviation correcting device;Running monitor is the controllable electric power with timeout mechanism,
When system is out of control, it can it is powered-down to total system, delay restart again, strengthen the reliability of system.
It is a kind of that the implementation method rectified a deviation with line electric eye, specific steps are realized based on CCD and image recognition technology are as follows: single first
Piece machine control ccd sensor and controllable three primary colours backlight are scanned coiled strip, and ccd sensor turns the optical signal sensed
It changes digital signal into, digital signal is then transmitted to single-chip microcontroller and is handled, to multi-mode signal pick-up after single-chip microcontroller processing
Device export graticule displacement, most afterwards through multi-mode signal transmitter to deviation correcting device transmit correction information, thus realize with
The correction of line electric eye.
Preferably, the single-chip microcontroller control ccd sensor and controllable three primary colours backlight are scanned coiled strip, specific to walk
Suddenly are as follows: single-chip microcontroller controls controllable three primary colours backlight first and is irradiated three times to coiled strip, respectively three kinds of colors of red, green, blue,
Then the three coloured light that coiled strip is reflected is incuded by ccd sensor.
Preferably, the optical signal sensed is converted into digital signal by the ccd sensor, is by analog-digital converter core
Piece is realized.
Preferably, described digital signal is transmitted to single-chip microcontroller to handle, specific steps are as follows: single-chip microcontroller receives first
Then signal is carried out respective handling by the digital signal that analog-digital converter chip transmits.
Preferably, the multi-mode signal transmitter includes to the transmission mode that deviation correcting device transmits correction information
UART, RS232, RS485, SPI, switching mode or analog form.
The present invention makees photoreceptor using standard CC D linear array camera, and digitized processing is carried out in a manner of handling image, leads to
Controllable three primary colours backlight irradiation sampling coiled strip is crossed, graticule can be extracted in more complicated coiled strip pattern, universality is more
It is good.
Detailed description of the invention
Fig. 1 is the block diagram of system structure.
Fig. 2 is compensation operation schematic diagram.
Fig. 3 is that single-chip microcontroller handles three color level schematic illustrations.
Fig. 4 is window filtering schematic diagram.
Fig. 5 is multi-mode signal transmitter circuit figure.
Fig. 6 running monitor circuit diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, a kind of realize the system with line electric eye, including cross hairs positioning based on CCD and image recognition technology
Device, controllable three primary colours backlight, ccd sensor, single-chip microcontroller, multi-mode signal transmitter, running monitor, wherein operation monitoring
Device monitors ccd sensor, single-chip microcontroller, controllable three primary colours backlight and cross hairs locator, and single-chip microcontroller controls controllable three primary colours back
The information of light source and cross hairs locator and processing ccd sensor, cross hairs locator be to demarcate the installation site of electric eye and
If it is Chong Die with the graticule geometric center to be tracked that cross positions crosspoint;Controllable three primary colours backlight is supplied for irradiating coiled strip
Ccd sensor sampling, the color intensity information of ccd sensor output, which is sent to single-chip microcontroller, to be handled, and color data passes through monolithic
The displacement that graticule is extracted after machine operation, through multi-mode signal transmitter to correction in a manner of communicating, switch or simulate
Controller transmission correction information;Running monitor is the controllable electric power with timeout mechanism, and when system is out of control, it can be to complete
System is powered-down, delay is restarted again, strengthens the reliability of system.
It is a kind of that the implementation method rectified a deviation with line electric eye, specific steps are realized based on CCD and image recognition technology are as follows: single first
Piece machine control ccd sensor and controllable three primary colours backlight are scanned coiled strip, and ccd sensor turns the optical signal sensed
It changes digital signal into, digital signal is then transmitted to single-chip microcontroller and is handled, to multi-mode signal pick-up after single-chip microcontroller processing
Device export graticule displacement, most afterwards through multi-mode signal transmitter to deviation correcting device transmit correction information, thus realize with
The correction of line electric eye.
The single-chip microcontroller control ccd sensor and controllable three primary colours backlight are scanned coiled strip, specific steps are as follows: root
It is different according to response sensitivity of the ccd sensor to three primary colours, after ccd sensor incudes, the level of available three primary colours
Ratio, wherein red level ratio is minimum, blue level ratio size is placed in the middle, and green level ratio is maximum.As shown in Fig. 2, institute
The compensation operation stated specifically: be direct light since ccd sensor center is received, received two sides are skew rays, due to light
It is strong different, so the response that ccd sensor receives is one " arch ", at this moment need to carry out imbalance caused by camera lens
Compensation operation, compensation operation is used to be carried out in the low mode of higher position.With the low algorithm of higher position are as follows: " arch " is taken to respond two end datas
On the basis of, " arch " intermediate data are filled with to the reference data at both ends.Principle is the middle part number for receiving ccd sensor
According to downward compression, the response curve for receiving CCD is straight, although reducing ccd sensor indirectly with the low algorithm of higher position
Sensitivity but operation is simple, single-chip microcontroller is easily processed.
It is described digital signal is transmitted to single-chip microcontroller to handle, specific steps are as follows: single-chip microcontroller first receives modulus and turns
The digital signal that parallel operation chip transmits, then single-chip microcontroller calculates the three color level datas for sensing ccd sensor and is processed into list
Colour brightness data, then as shown in figure 3, being averaged Averge, maximum to 128 pixel brightness values in ccd sensor
Hereafter value and minimum value are maximized with the half of average value as upper limit M, the half of minimum value and average value makees lower limit S, use
The upper limit M calculated and lower limit S is compared with 128 pixel brightness values in ccd sensor, if it exceeds upper limit M
Primary system one is denoted as 255, and the primary system one lower than lower limit S is denoted as 0, and the primary system one occupy between upper limit M and lower limit S is denoted as 128 formation
Three level notches;It is handled as shown in figure 4, carrying out window filtering twice to three level notches again, window filtering removes three electricity first
Notch in flat notch outside big window, then remove the notch in three level notches in wicket, make width at 1.5 millimeters to 2 millis
Notch in rice range is left, and other three level are then filled to be 128, thus extracts the quantity and displacement number of graticule
According to finally notch of the setting in ccd sensor center is then first graticule runs whole system, monolithic after bringing into operation
Machine is by output displacement data, when output 0-126 then indicates the left side of the graticule heart in the sensor, when output 130-255 is then indicated
For graticule on right side, 127-129 is correction blind area, if graticule midpoint has meant that graticule quasi- in this region, exports number at this time
According to all 128.
As shown in figure 5, the multi-mode signal transmitter transmits the transmission mode of correction information, tool to deviation correcting device
Body step are as follows: multi-mode signal transmitter is by two inputs four and non-Schmitt trigger 74HC132, field-effect tube, comparator
LM393 and several resistance capacitances composition, wherein field-effect tube be for analog form access filter capacitor it is ad hoc, comparator
LM393 is used for differential received, and three output lines of output end can be in six kinds of mode commons, the side of powering on of multi-mode signal transmitter
Formula is asynchronous serial port mode.The implementation of six kinds of mode commons output: communication line connects output terminals A+and A- is RS485 mould
Formula;It is exactly UART mode that communication line, which connects output terminals A+and ground connection,;It is exactly RS232 mode that communication line, which connects output terminals A-and ground connection,;It will
U/S control line is set low, and is exported clock from TXD, is exactly SPI mode from D0 output data;It is sent without data, and only does high electricity
Flat input, is exactly switching mode;Analog form control line M is dragged down, field-effect tube is simultaneously turned on and accesses two filter capacitors just
Having TXD and D0, output difference pulsewidth makees D/A conversion respectively, is exactly complementary using exporting after RC filtering from output terminals A-and A+
Poor type analog form.
As shown in fig. 6, the running monitor is for monitoring entire circuit, it is the accommodation of a kind of pair of switching power source chip
With the running monitor is a time out the battery main switch of shutdown for whole system.When single-chip microcontroller operates normally, operation
Monitor is controlled in a dormant state by single-chip microcontroller, once SCM program malfunctions, running monitor will be activated, in monolithic
After 160 milliseconds out of control of machine, running monitor can by entire down circuitry, then be delayed after 160 milliseconds running monitor can again on
Electricity restarts entire circuit.Running monitor is made of switching power source chip KA3842 and several resistance capacitances, on running monitor
5V power supply for single-chip microcontroller power, the overcurrent feedback end of switching power source chip KA3842 is changed to overvoltage protector, when circuit is defeated
It will be automatically cut off the power when entering voltage higher than 26V and overvoltage protection is implemented to total system;The voltage of switching power source chip KA3842 is anti-
End is presented by capacitive coupling, is connected in single-chip microcontroller mouth line, it can be achieved that quick start, while reboot time can also be accelerated.Work as monolithic
The charge accumulated on timing capacitor C11 constantly is pulled away with pulse when machine normal operation, switching power source chip KA3842 is not because have
There is clock triggering that can only continue supplying power for outside and realize that power supply is controlled oneself, pulse is lost when single-chip microcontroller is out of control and is unable to refresh timing capacitor
C11, after the 160mS that is delayed, the control of KA3842 recovered clock activates its controller to close master switch to lower electricity out of control, under out of control
After electricity, the charge on C8 is released, and 160mS power supply will restart.
The present invention makees photoreceptor using standard CC D linear array camera, and digitized processing is carried out in a manner of handling image, leads to
Controllable three primary colours backlight irradiation sampling coiled strip is crossed, graticule can be extracted in more complicated coiled strip pattern, than commonly entangling
Inclined system universality is more preferable.
Claims (4)
1. a kind of realize the system rectified a deviation with line electric eye based on CCD and image recognition technology, it is characterised in that: fixed including cross hairs
Position device, controllable three primary colours backlight, ccd sensor, single-chip microcontroller, multi-mode signal transmitter, running monitor, wherein operation prison
It controls device monitoring ccd sensor, single-chip microcontroller, controllable three primary colours backlight and cross hairs locator, single-chip microcontroller and controls controllable three primary colours
The information of backlight and cross hairs locator and processing ccd sensor, cross hairs locator are the installation sites to demarcate electric eye
And set, cross positioning crosspoint thereon is Chong Die with the graticule geometric center to be tracked;Controllable three primary colours backlight is for irradiating
Coiled strip is sampled for ccd sensor, and the color intensity information of ccd sensor output, which is sent to single-chip microcontroller, to be handled, and color data is logical
It crosses after single-chip microcontroller operation and extracts the displacement of graticule, through multi-mode signal transmitter in a manner of communicating, switch or simulate
Correction information is transmitted to deviation correcting device;Running monitor is the controllable electric power with timeout mechanism, when system is out of control, it
Can it is powered-down to total system, delay restart again.
2. a kind of realization side described in claim 1 for realizing the system rectified a deviation with line electric eye based on CCD and image recognition technology
Method, which is characterized in that specific steps are as follows: single-chip microcontroller control ccd sensor and controllable three primary colours backlight carry out coiled strip first
Scanning: single-chip microcontroller controls controllable three primary colours backlight first and is irradiated three times to coiled strip, respectively three kinds of colors of red, green, blue,
Then the three coloured light that coiled strip is reflected is incuded by ccd sensor;The optical signal sensed is converted into digital letter by ccd sensor
Number;Then digital signal single-chip microcontroller is transmitted to handle;Graticule is exported to multi-mode signal transmitter after single-chip microcontroller processing
Displacement;Correction information most is transmitted to deviation correcting device through multi-mode signal transmitter afterwards, is rectified a deviation to realize with line electric eye,
Wherein, multi-mode signal transmitter to deviation correcting device transmit correction information transmission mode include UART, RS232, RS485,
SPI, switching mode or analog form.
3. method according to claim 2, it is characterised in that: the optical signal sensed is converted into counting by the ccd sensor
Word signal is realized by analog-digital converter chip.
4. method according to claim 2, it is characterised in that: described that digital signal is transmitted to what single-chip microcontroller was handled
Specific steps are as follows: single-chip microcontroller receives the digital signal that analog-digital converter chip transmits first, and signal is then carried out respective handling.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710388088.2A CN107160854B (en) | 2017-05-27 | 2017-05-27 | It is a kind of that the system and implementation method rectified a deviation with line electric eye are realized based on CCD and image recognition technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710388088.2A CN107160854B (en) | 2017-05-27 | 2017-05-27 | It is a kind of that the system and implementation method rectified a deviation with line electric eye are realized based on CCD and image recognition technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107160854A CN107160854A (en) | 2017-09-15 |
CN107160854B true CN107160854B (en) | 2019-04-30 |
Family
ID=59822323
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710388088.2A Active CN107160854B (en) | 2017-05-27 | 2017-05-27 | It is a kind of that the system and implementation method rectified a deviation with line electric eye are realized based on CCD and image recognition technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107160854B (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001226005A (en) * | 2000-02-16 | 2001-08-21 | Nireco Corp | Edge position correcting device for web |
JP3869355B2 (en) * | 2002-12-10 | 2007-01-17 | 株式会社東京機械製作所 | Registration error detection method, registration error detection device, and registration adjustment automatic control device in a multi-color printing press |
CN100529653C (en) * | 2007-02-12 | 2009-08-19 | 西安理工大学 | CCD based strip automatic centering CPC detecting system and detecting method |
CN202485631U (en) * | 2012-03-07 | 2012-10-10 | 上海科鑫电液控制设备有限公司 | Detection device based on CCD (Charge-Coupled Device) image sensor |
CN104890365A (en) * | 2015-05-22 | 2015-09-09 | 王玉 | Automatic deviation rectifying control system for printing |
CN206037944U (en) * | 2016-07-15 | 2017-03-22 | 西安得鑫光电科技有限公司 | CCD sensor of rectifying picture position |
-
2017
- 2017-05-27 CN CN201710388088.2A patent/CN107160854B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107160854A (en) | 2017-09-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN201788518U (en) | Identification device with facial image and iris image acquisition functions | |
CN104521417B (en) | A kind of intelligent grass-removing system | |
CN201927051U (en) | Face recognition device with anti-glare function | |
CN104064162B (en) | Automated external defibrillator and its brightness of display screen control method and device | |
CN106498874B (en) | A kind of isolated column, lane adjust system and method | |
CN201465142U (en) | Induction type optical fingerprint collecting device | |
CN108826155A (en) | Street illuminating device and system | |
CN204910333U (en) | Medical treatment infusion liquid level autoalarm | |
CN107160854B (en) | It is a kind of that the system and implementation method rectified a deviation with line electric eye are realized based on CCD and image recognition technology | |
CN109805813A (en) | The intelligent economizing type paper delivery system and method for public health infrastructure | |
CN110442063A (en) | A kind of low power-consumption intelligent dustbin control system and control method | |
CN106453930A (en) | Method for lightening screen of mobile terminal and mobile terminal | |
CN207424879U (en) | A kind of anti-counterfeiting mark identifier and identifying system | |
CN204903065U (en) | Force transducer is answered to mining wireless stock anchor rope of ann's type | |
CN104239841B (en) | There is two-dimensional code identifier, recognition system and the method for viewfinder unit | |
CN205040085U (en) | Street lamp illumination control system | |
CN110111586B (en) | Prompting, monitoring and alarming system for safe vehicle speed | |
CN206775808U (en) | A kind of intelligent lighting system with radio communication | |
CN209447235U (en) | Door lock Rouser and electronic lock | |
CN104599364A (en) | Wireless access control system | |
CN207620957U (en) | The ignition angle measuring system of miniature gasoline engine | |
CN204129527U (en) | A kind of trackless dolly Drive and Control Circuit based on brain-computer interface | |
CN209625428U (en) | A kind of appliance control system based on radio communication and infrared remote control | |
CN202565541U (en) | Intelligent illumination control system based on one-chip microcomputer | |
CN209343230U (en) | An automatic monitoring system for tea garden environmental parameters |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 400000 3-2, No. 12, Gangqiao Branch Road, Jiangbei District, Chongqing Patentee after: Chongqing Bianfu Technology Co.,Ltd. Country or region after: China Address before: 400000 3-2, No. 12, Gangqiao Branch Road, Jiangbei District, Chongqing Patentee before: CHONGQING BIAN FU TECHNOLOGY CO.,LTD. Country or region before: China |