A kind of microscope automatic focusing system
Technical field
The utility model relates to a kind of control and regulates the device that microscope focuses on, and especially for the microscope of metallographic examination, belongs to the control technology field.
Background technology
Microscope has a wide range of applications in the examination of materials, but microscope control gear complexity, price height, the trivial operations of existing band auto-focus function.Particularly the auto-focus function of instrument is according to feature calculation focal plane, visual field, and for metallographic examination, inclusion analysis particularly is because characteristic body seldom can not accurately focus in the visual field.Therefore design microscope automatic focusing system and important practical value is arranged for improving microscopical application performance with accurate focusing function.
Summary of the invention
The utility model is used to overcome the defective of general microscope focusing and a kind of microscope automatic focusing system of realizing focusing on based on 3 linear predicted methods is provided.
The technical scheme that addresses the above problem is:
A kind of microscope automatic focusing system, it is made up of computing machine, electric machine controller, focusing of microscope interface, stepper motor, digital camera, image pick-up card, wherein, digital camera is loaded on the microscopical camera interface, described focusing of microscope interface is provided with Z to governor motion, the latter is driven by stepper motor 10, the communication interface of computing machine is connected to the communication module of electric machine controller, the output of electric machine controller connects stepper motor respectively, and the output signal of digital camera is connected to the image pick-up card of computing machine.
Above-mentioned microscope automatic focusing system, it is provided with a manual operating key K1, and manually operating key K1 is connected on input port Z1, the Z2 of electric machine controller input template 2-3.
Adopt the microscope automatic focusing system of this structure, can image be sent into computing machine, electric machine controller is sent instruction, make stepper motor drive the focusing of microscope leading screw and rotate, focus by computing machine after the automatic focus software processes by digital camera.Computing machine becomes control image pick-up card, camera, reaches the platform of operation automatic focus program.The utility model focuses on and adopts 3 linear predicted methods: parfocal is gathered 3 width of cloth arbitrary figures, directly calculates from its differential and sounds out the interval reliably, gathers arbitrary figure in this interval again, can accurately make the focal plane.Adopt intelligent the processing, the focusing accuracy height even characteristic body seldom in the visual field, also can accurately focus on.
Description of drawings
Fig. 1 is the utility model electricity theory diagram;
Fig. 2 is the utility model electrical schematic diagram;
Fig. 3 is the automatic focus program flow diagram.
Embodiment
The utility model comprises parts such as computing machine 1, electric machine controller 2, focusing of microscope interface 3, digital camera 4, stepper motor 10, image pick-up card.As we can see from the figure, focusing of microscope interface 3 connects stepper motor 10, and electric machine controller 2 adopts WJY-1 type multi-axis controller, and it comprises communication module 2-1, output template 2-2, input template 2-3.Output port Z1, the Z2 of output template 2-2 is connected on the stepper motor 10, and input port Z1, the Z2 end of input template 2-3 connects an operating key K1, by its input point dynamic control signal.Communication module 2-1 adopts communication port, it is connected to the serial ports of computing machine 1, digital camera 4 is connected on the microscopical camera interface 3, be connected to image pick-up card in computing machine 1 slot by data line, computing machine 1 is control figure camera 4, image pick-up card and the platform that moves automatic focus software.
During the utility model work, drive microscopical focusing knob by stepper motor 10 and rotate, focus.Rotating speed etc. is adjusted in the rotating of electric machine controller 2 control step motors 10, and its control procedure is as follows:
Automatic control mode: the communication port of the communication module 2-1 of electric machine controller 2 is received the steering order that computing machine 1 sends, be transferred to electric machine controller 2 by serial ports, 2 pairs of signals of electric machine controller are handled, computer instruction is converted to motor control signal, deliver on the stepper motor 10 by the output port of output template 2-2, control step motor 10 is pressed instruction operation, and the operation feedback signal then is fed to computing machine 1.
Manual control model: the input template 2-3 of electric machine controller 2 receives the control signal of manual operating key K1, also the running of may command stepper motor 10.
The focal plane is determined to be finished under focalizer control by digital camera 4.After computing machine 1 received the Stepping Motor Control signal, control figure camera 4 was gathered micro-image, and is transferred in the image pick-up card of computing machine 1.Computing machine 1 is by focusing on software, realize following function: control figure camera 4 acquisition field of view images, control focusing of microscope move, pass through to gather the image of different focal, view field image feature calculation microscope focal plane position, adjusting focusing knob according to diverse location arrive focal plane position, realize focusing on.
The number of element types that the utility model adopts is: electric machine controller--WJY-1 type multi-axis controller; Stepper motor-STONE 22-2BYG25B type; Digital camera-PL-661A type numeral ccd video camera, the 132-34 fire-wire interfaces; Computing machine-general purpose PC.