[ Utility model ] content
For overcoming the problem that exists among the prior art, the utility model provides a work piece detection device based on machine vision.
The utility model provides a technical problem's scheme provides a work piece detection device based on machine vision, it includes conveyer and measuring device, conveyer includes conveyer belt and detector, the detector sets up in conveyer belt one side in order to detect whether there is the work piece to place on the conveyer belt; the detector is electrically connected with the measuring device so as to enable the measuring device to detect the size of the workpiece when the workpiece is detected by the detector; the measuring device comprises a first camera and a second camera, the first camera is arranged on one side of the conveying belt to detect the height of the workpiece, and the second camera is arranged on one surface, perpendicular to the conveying belt, of the workpiece to detect the length and the width of the workpiece.
Preferably, the detector comprises any one of an infrared emitter, a laser emitter, and combinations thereof.
Preferably, the number of the detectors is at least two, and the detectors are arranged on the same side of the conveyor belt at intervals and used for detecting whether the workpieces are conveyed in place.
Preferably, the conveying device further comprises a driving part, the driving part drives the conveyor belt to convey the workpiece, and the driving part is electrically connected with the detector so as to stop driving the conveyor belt to convey the workpiece when the detector detects the workpiece.
Preferably, a calibration plate is arranged on the conveying device, and the position of the calibration plate corresponds to the position of the measuring device, so as to perform three-dimensional calibration on the measuring device.
Preferably, the measuring device is further provided with a coaxial light source and a backlight light source, wherein the backlight light source is arranged on one side of the conveying device and opposite to the position of the first camera, and the coaxial light source is arranged between the second camera and the conveying device.
Preferably, the workpiece detection device based on machine vision further comprises a rail device, the rail device is arranged in parallel with the conveyor belt, and the first camera and the second camera are arranged on the rail device in a sliding manner.
Preferably, the rail device includes a first guide rail and a second guide rail, the first guide rail and the second guide rail are consistent with the conveying direction of the conveyor belt, the first camera is disposed on the first guide rail, and the second camera is disposed on the second guide rail.
Preferably, the measuring device is further provided with a third camera and a fourth camera which can move synchronously with the workpiece, the third camera is arranged on the first guide rail, the fourth camera is arranged on the second guide rail, and images obtained by photographing by the third camera and the fourth camera can be compared with images obtained by photographing by the first camera and the second camera.
Preferably, the measuring device further includes a second coaxial light source and a second backlight light source, wherein the second backlight light source is disposed on one side of the conveyer and opposite to the third camera, the coaxial light source is disposed between the fourth camera and the conveyer, and the second backlight light source and the second coaxial light source move synchronously based on the movement of the third camera and the fourth camera.
Compared with the prior art, the utility model discloses a work piece detection device based on machine vision has following advantage:
1. after the detector detects the work piece, recycle measuring device and measure the size of work piece, it is accurate convenient, effectively solved the big problem of artifical measuring error, and arrange the work piece in on the conveyer belt, need not the tradition and press from both sides the assistance of tool, can stably lay, measure more convenient convenience, effectively improved work efficiency.
2. The workpiece is measured and compared by arranging the plurality of cameras, the measuring accuracy is effectively improved, the situation that the whole measuring device cannot normally work due to the fact that a certain camera breaks down can be prevented, the production efficiency is effectively improved, and the production cost is reduced.
3. By arranging a plurality of detectors, after one detector fails, other detectors can work normally, so that the normal work of the measuring device is ensured.
4. The calibration plate is arranged on the conveying device to perform three-dimensional calibration on the measuring device, so that the measuring accuracy of the measuring device is improved, and errors are reduced.
5. By arranging the rail device, when one of the sensors fails, the first camera and the second camera can move to the position of the other sensor through the rail device so as to take a picture of the workpiece for measurement; or when the size of the workpiece is not detected due to failure or delay of one or two of the first camera and the second camera, the first camera and the second camera can move through the guide rail to track the workpiece so as to take a picture of the workpiece for measurement, and the normal work of the measuring device is ensured.
6. The third camera and the fourth camera which can move synchronously with the workpiece are arranged to photograph the workpiece, images obtained by photographing the first camera and the second camera with the third camera and the fourth camera can be compared, and measurement errors caused by displacement of the workpiece in the conveying process are avoided, so that the measurement accuracy is improved; and when one or two of the first camera and the second camera are not detected due to faults or delays, the size of the workpiece can be measured by the third camera and the fourth camera, so that the normal work of the measuring device is ensured.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, the present invention provides a workpiece detecting device 1 based on machine vision, which includes a conveying device 10, a measuring device 11 and a track device 12, wherein the measuring device 11 is installed on the track device 12, and the track device 12 is installed on one side of the conveying device 10.
Referring to fig. 2, the conveying device 10 includes a driving member 102, a conveyor belt 103, and a detector 101, wherein the driving member 102 is used for driving the conveyor belt 103 to convey a workpiece.
The detector 101 may be an infrared detector 101 or a laser detector 101, the detector 101 is disposed at one side of the conveyor 10, and when the detector 101 emits light during operation, the light emitted by the detector 101 is broken by the workpiece when the workpiece on the conveyor belt 103 moves to the detector 101, and the detector 101 is determined to detect the workpiece.
The driving member 102 is electrically connected to the detector 101, so that when the detector 101 detects a workpiece, the driving member 102 stops driving the conveyor belt 103 for the next operation.
Referring to fig. 3, the measuring device 11 includes a first camera 111, a second camera 112, a coaxial light source 116, and a backlight light source 115, wherein the first camera 111 is disposed at one side of the conveyor belt 103 for detecting the height of the workpiece, and the second camera 112 is disposed at a side perpendicular to the conveyor belt 103 where the workpiece is placed for detecting the length and the width of the workpiece.
The measuring device 11 is electrically connected to the detector 101 so that the measuring device 11 detects the size of the workpiece when the detector 101 detects the workpiece.
It is understood that the first camera 111 and the second camera 112 may be a CCD industrial camera or a CMOS industrial camera.
The backlight source 115 is disposed at one side of the conveying device 10 and opposite to the first camera 111, and the coaxial light source 116 is disposed between the second camera 112 and the conveying device 10.
Through the cooperation of the backlight source 115 and the coaxial light source 116 with the first camera 111 and the second camera 112, the imaging quality of the first camera 111 and the second camera 112 is improved, and the measurement accuracy of the measurement apparatus 11 is further improved. The first camera 111 and the second camera 112 can photograph images of the workpiece to be detected.
Referring to fig. 4, the track device 12 includes a first guide rail 122 and a second guide rail 123, the setting directions of the first guide rail 122 and the second guide rail 123 are both consistent with the conveying direction of the conveyor belt 103, and the positions of the first guide rail 122 and the second guide rail 123 correspond to the first camera 111 and the second camera 112, respectively, the first camera 111 is disposed on the first guide rail 122, and the second camera 112 is disposed on the second guide rail 123, that is, the first camera 111 and the second camera 112 can move on the first guide rail 122 and the second guide rail 123, respectively.
The rail device 12 is further provided with a driving motor 121, the driving motor 121 is electrically connected with the first camera 111 and the second camera 112 to drive the first camera 111 and the second camera 112, specifically, when one of the sensors fails, the driving motor 121 drives the first camera 111 and the second camera 112 to move to a position where the other sensor is located through the rail device 12 to take a picture of the workpiece for measurement; or when the size of the workpiece is not detected due to a fault or delay in one or both of the first camera 111 and the second camera 112, the driving motor 121 drives the first camera 111 and the second camera 112 to move and track the workpiece through the guide rail, so as to perform photographing measurement on the workpiece.
As an optimized implementation manner, the conveying device 10 is further provided with a calibration plate (not shown), and the position of the calibration plate corresponds to the positions of the first camera 111 and the second camera 112, so as to perform three-dimensional calibration on the first camera 111 and the second camera 112, that is, calibrate the first camera and the second camera simultaneously, and obtain a rotation matrix and a translation matrix of the two relative to the same coordinate system, so as to improve the measurement accuracy of the measuring device 11 and reduce errors.
Referring to fig. 5, in a workpiece detecting device 1 based on machine vision according to a second embodiment of the present invention, the measuring device 11 is further provided with a third camera 113 and a fourth camera 114 capable of moving synchronously with the workpiece, the third camera 113 is disposed on the same side of the first camera 111 for detecting the height of the workpiece, and the fourth camera 114 is disposed on the same side of the second camera 112 for detecting the length and the width of the workpiece.
The third camera 113 is mounted on the first guide rail 122, the fourth camera 114 is mounted on the second guide rail 123, and the third and fourth cameras 113 and 114 are connected to a driving motor 121 to move on the first and second guide rails 122 and 123.
The measuring apparatus 11 further includes a second coaxial light source 118 and a second backlight light source 117, wherein the second backlight light source 117 is disposed at one side of the conveyer 10 and opposite to the third camera 113, the coaxial light source 116 is disposed between the fourth camera 114 and the conveyer 10, and the second backlight light source 117 and the second coaxial light source 118 can move along with the third camera 113 and the fourth camera 114. Specifically, the second backlight source 117 and the second coaxial light source 118 may be connected to the third camera 113 and the fourth camera 114 through a connecting rod, respectively, so as to achieve synchronous movement.
When the detector 101 detects a workpiece, the first camera 111 and the second camera 112 measure the size of the workpiece, the third camera 113 and the fourth camera 114 move synchronously with the workpiece, and measure the size of the workpiece, and images obtained by photographing the first camera 111, the second camera 112, the third camera 113 and the fourth camera 114 are compared, so that measurement errors caused by displacement of the workpiece in the conveying process are avoided, and the measurement accuracy is improved.
Further, when the size of the workpiece is not detected due to a failure or delay in one or both of the first camera 111 and the second camera 112, the size of the workpiece may be measured by the third camera 113 and the fourth camera 114, thereby ensuring the normal operation of the measuring device 11.
Compared with the prior art, the utility model discloses a work piece detection device based on machine vision has following advantage:
1. after the detector detects the work piece, recycle measuring device and measure the size of work piece, it is accurate convenient, effectively solved the big problem of artifical measuring error, and arrange the work piece in on the conveyer belt, need not the tradition and press from both sides the assistance of tool, can stably lay, measure more convenient convenience, effectively improved work efficiency.
2. The workpiece is measured and compared by arranging the plurality of cameras, the measuring accuracy is effectively improved, the situation that the whole measuring device cannot normally work due to the fact that a certain camera breaks down can be prevented, the production efficiency is effectively improved, and the production cost is reduced.
3. By arranging a plurality of detectors, after one detector fails, other detectors can work normally, so that the normal work of the measuring device is ensured.
4. The calibration plate is arranged on the conveying device to perform three-dimensional calibration on the measuring device, so that the measuring accuracy of the measuring device is improved, and errors are reduced.
5. By arranging the rail device, when one of the sensors fails, the first camera and the second camera can move to the position of the other sensor through the rail device so as to take a picture of the workpiece for measurement; or when the size of the workpiece is not detected due to failure or delay of one or two of the first camera and the second camera, the first camera and the second camera can move through the guide rail to track the workpiece so as to take a picture of the workpiece for measurement, and the normal work of the measuring device is ensured.
6. The third camera and the fourth camera which can move synchronously with the workpiece are arranged to photograph the workpiece, images obtained by photographing the first camera and the second camera with the third camera and the fourth camera can be compared, and measurement errors caused by displacement of the workpiece in the conveying process are avoided, so that the measurement accuracy is improved; and when one or two of the first camera and the second camera are not detected due to faults or delays, the size of the workpiece can be measured by the third camera and the fourth camera, so that the normal work of the measuring device is ensured.
The above description is only a preferred embodiment of the present invention, and should not be taken as limiting the invention, and any modifications, equivalent replacements, and improvements made within the principle of the present invention should be included within the protection scope of the present invention.