A kind of novel machine vision illumination control systemTechnical field
The utility model relates to the field of illumination systems of machine vision, is specifically related to a kind of can regulate brightness of illumination in real time and trigger camera exposure, extend LED light source service life, improve the machine vision illumination control system of vision system operating efficiency.
Background technology
Machine vision technique, is a cross discipline relating to the numerous areas such as artificial intelligence, Neurobiology, psychophysics, computer science, image procossing, pattern-recognition, is a part indispensable in present intelligence manufacture industry.One typical machine vision applications system includes light source, optical system, image capturing system, Digital Image Processing, intelligent decision system and Machinery Control System composition.Machine vision mainly simulates the visual performance of people with computer, from the image of objective things extract information, carry out processing and being understood, eventually for actually detected, measure and control.Under suitable illumination condition, camera shooting object, the optical signalling of object is converted into the signal of telecommunication, after being converted into data signal by image capturing system, delivering to image processing system process, extract the characterization information such as the color of object, brightness, intelligent decision system is mated with pre-conditioned by these information, judging, Machinery Control System controls the action of executing agency according to judged result.
In such a typical vision utility system, light source is as its important part, and its quality directly influences picture quality and the effect of commercial Application of camera shooting.Good illuminator can highlight the contrast of tested part, improves the resolution ratio of whole system, simplifies the computing of software, plays a multiplier effect.Inappropriate smooth source lighting can cause the colored point of picture, shade, the reduction of signal to noise ratio, and these problems will to threshold value in image procossing to select to make troubles.Therefore, a light source is designed in the concrete application scenario for machine vision, is the necessary condition obtaining high-quality stable image.
Along with the research that deepens continuously of machine vision, image composing technique achieves the development advanced by leaps and bounds.Require to be illuminated for the different piece of same object, shoot, the characteristic feature of extraction various piece, then synthesize, in order to the preferably whole object of reduction.Under such a kind of synthetic technology, it is desirable to provide a kind of novel machine vision illumination control system.And current technology cannot solve above-mentioned problem.
Utility model content
Technical problem to be solved in the utility model is for the above-mentioned problems in the prior art, provide a kind of by changing duty cycle adjustment brightness of illumination and time, and under each illumination brightness levels, trigger the novel machine vision illumination control system taken pictures of camera, can preferably reduce whole object according to the requirement of application scenarios.
For solving the problems referred to above, a kind of technical scheme of the present utility model is:
A kind of novel machine vision illumination control system, including communication module, LED drive module, camera trigger module and the microcontroller in order to agreement with the above-mentioned all modules of running;Described microcontroller is by communication module and host computer communication;Described microcontroller is by the LED drive module described in the connection of pwm signal line.
Preferably, described microcontroller includes timer.
Preferably, described LED drive module includes metal-oxide-semiconductor drive circuit.
Preferably, described camera trigger module includes optical coupling isolation circuit.
The utility model compared with prior art, possesses following advantage:
The utility model machine vision illumination control system, including communication module, LED drive module and camera trigger module, all these module is coordinated to operate by microcontroller.Described microcontroller uses serial communication protocol and host computer communication, resolves host computer instruction, and instruction includes brightness degree, lighting hours and Time delay time.After microcontroller has resolved instruction, output PWM ripple, the simultaneously timing of opening timing device the most as requested.PWM ripple accesses LED drive module, and described LED drive module drives LED to light according to the control signal of PWM ripple.Meanwhile, along with the timing of timer, according to lighting hours and the requirement of trigger delay time in instruction, microcontroller completes renewal and the triggering of camera exposure circuit of PWM ripple dutycycle.Camera exposure triggers circuit and is completed isolation by optocoupler, prevents the false triggering of camera.Light source in control system uses LED light source, can require to select annular light source, coaxial light source, backlight etc. according to application.The utility model is by changing duty cycle adjustment brightness of illumination and time, and triggers the novel machine vision illumination control system that camera is taken pictures under each illumination brightness levels, can preferably reduce whole object according to the requirement of application scenarios.
Accompanying drawing explanation
Fig. 1 is structure chart of the present utility model.
Shown in figure 1, microcontroller, 2, camera trigger module, 3, communication module, 4, LED drive module.
Detailed description of the invention
Further describe the utility model below in conjunction with the accompanying drawings with embodiment, but protection domain of the present utility model is not limited to this.
With reference to Fig. 1, a kind of novel machine vision illumination control system of the utility model, a kind of novel machine vision illumination control system, including communication module 3, LED drive module 4, camera trigger module 2 and the microcontroller 1 in order to agreement with the above-mentioned all modules of running;Described microcontroller 1 is by communication module 3 and host computer communication;Described microcontroller 1 is by the LED drive module 4 described in the connection of pwm signal line.Described microcontroller 1 includes timer.Described LED drive module 4 includes metal-oxide-semiconductor drive circuit.Described camera trigger module 2 includes optical coupling isolation circuit.
More specifically, described microcontroller 1 is by communication module 3 and host computer communication, receiving the control instruction of host computer, this instruction comprises illumination brightness levels, lighting hours and camera exposure trigger delay time;After microcontroller 1 parses control instruction, starting to send PWM ripple by after the driving force enhancing of PWM ripple signal, drives the break-make of metal-oxide-semiconductor to complete the illumination of LED to LED drive module 4, LED drive module 4, the illumination intensity levels of LED determines with the break-make frequency of metal-oxide-semiconductor, the i.e. frequency of PWM ripple;Meanwhile, microcontroller 1 carries out timing to lighting hours, when the triggered time of camera exposure arrives, camera sends to touch and signals to camera trigger module 2, and notice camera exposure is taken pictures, when the led is illuminated between when arriving, microcontroller 1 updates PWM ripple, completes the illumination of new brightness degree.
Embodiment one.The utility model brightness of illumination is divided into 256 grades, according to the command request of host computer, and regulation brightness of illumination and lighting hours in real time, and triggering camera is taken pictures under each illumination brightness levels.Under brightness of illumination is 100,120,150,180,200 5 grades, illumination is shot with upper confidential asking, as a example by the time illuminated under each grade is 10ms, 10ms, 5ms, 5ms, 3ms, microcontroller 1 is after receiving above-mentioned instruction, regulation dutycycle is realized brightness of illumination and the time specified, and under each illumination brightness levels, trigger camera exposure, take pictures, the same object 5 pictures under different illumination intensity can be photographed.The time point triggering camera exposure also can be arranged, and just can realize by revising corresponding parameter value in instructing in PC control.
Below only most preferred embodiment of the present utility model is described, but is not to be construed as limitations on claims.The utility model is not limited only to above example, and all various changes made in the protection domain of the utility model independent claims are all in protection domain of the present utility model.