CN207472194U - A kind of box for material circulation volume weight measuring system - Google Patents

A kind of box for material circulation volume weight measuring system Download PDF

Info

Publication number
CN207472194U
CN207472194U CN201721368026.7U CN201721368026U CN207472194U CN 207472194 U CN207472194 U CN 207472194U CN 201721368026 U CN201721368026 U CN 201721368026U CN 207472194 U CN207472194 U CN 207472194U
Authority
CN
China
Prior art keywords
fine
tuning
laser ranging
ranging module
bull
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.)
Expired - Fee Related
Application number
CN201721368026.7U
Other languages
Chinese (zh)
Inventor
黄琪峻
刘信宏
叶浩荣
雷亮
周金运
刘树成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN201721368026.7U priority Critical patent/CN207472194U/en
Application granted granted Critical
Publication of CN207472194U publication Critical patent/CN207472194U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

The utility model discloses a kind of box for material circulation volume weight measuring systems, including mounting bracket and the conveyer belt being arranged on the mounting bracket, electronic scale, buphthalmos ball plate, fine-tuning stent, signal processing system, X-direction trimming part, Y-direction trimming part, Z-direction trimming part, LED bar graph light source, industrial camera and laser ranging module;The area data and input information that altitude information that signal processing system is obtained according to laser ranging module, image analysis obtain calculate box for material circulation volume, while provide its weight;The utility model can be realized while carry out real-time automatic measuring, efficiently and accurately to the volume and weight of box for material circulation on assembly line;Need not carry out Feature Points Matching compared to light curtain method or bis- (more) mesh vision measurement systems, this system, avoid the low texture of object, repeat texture, overlapping and it is discontinuous the problems such as, and substantially reduce computation complexity.

Description

一种物流箱体积重量测量系统A logistics box volume and weight measurement system

技术领域technical field

本实用新型涉及非接触智能测控技术领域,具体涉及一种物流箱体积重量测量系统。The utility model relates to the technical field of non-contact intelligent measurement and control, in particular to a system for measuring the volume and weight of a logistics box.

背景技术Background technique

视觉测量技术属于计算机视觉技术,是一项通过相机拍摄物体,获取图像信息,再进行图像分析,从而获取物体的位姿和尺寸等信息的工程学科,分为单目视觉和双(多)目视觉技术;对于测量物体,计算机视觉不受人工因素的影响,精度不受测量标尺等参照物精度的限制,相比于传统的人工标尺测量,具有快速、准确、非接触和成本低廉等优势,适用于批量的自动化测量,极大地降低人工成本,提高生产效率。Visual measurement technology belongs to computer vision technology. It is an engineering discipline that takes pictures of objects through cameras, obtains image information, and then performs image analysis to obtain information such as the pose and size of objects. It is divided into monocular vision and double (multi) vision. Vision technology; for measuring objects, computer vision is not affected by artificial factors, and its accuracy is not limited by the accuracy of reference objects such as measuring scales. Compared with traditional manual scale measurement, it has the advantages of fast, accurate, non-contact and low cost. It is suitable for batch automated measurement, which greatly reduces labor costs and improves production efficiency.

单目视觉技术中,无需进行特征点匹配和视差计算,减少了系统运算量,提高了系统运行速度和系统稳定性。但是,单目视觉只能获取平面物体的位置信息,不能测量其深度信息。In the monocular vision technology, there is no need for feature point matching and parallax calculation, which reduces the amount of system calculation and improves the system operation speed and system stability. However, monocular vision can only obtain the position information of planar objects, and cannot measure its depth information.

双目或多目视觉技术中,需要对物体进行特征点匹配和视差计算,该过程受光学失真及噪声、平滑表面的镜面反射、投影缩减、透视失真、低纹理、重复纹理、图像重叠和非连续等问题的干扰,使得匹配精度和系统稳定性极大降低,且匹配过程运算量大。In binocular or multi-eye vision technology, it is necessary to perform feature point matching and disparity calculation on objects. This process is affected by optical distortion and noise, specular reflection on smooth surfaces, projection reduction, perspective distortion, low texture, repeated texture, image overlap and non-linearity. The interference of continuous and other problems greatly reduces the matching accuracy and system stability, and the matching process has a large amount of computation.

另外,计算机视觉常使用图像分割处理方法,分割过程中可采用固定阈值分割法、边缘分割法、最大类间方差等自动阈值分割方法。而固定阈值分割法受光照变化影响严重;边缘分割法受物体纹理干扰严重;最大类间方差法能有效抑制光照变化的影响,但若物体部分平滑表面发生镜面反射,或者物体表面及背景的灰度呈明显的3个或3个以上的灰度等级状态,往往容易导致只将反光或最高亮灰度等级的区域分割出来,而忽略了物体其他部分。In addition, computer vision often uses image segmentation processing methods, and automatic threshold segmentation methods such as fixed threshold segmentation, edge segmentation, and maximum between-class variance can be used in the segmentation process. The fixed threshold segmentation method is seriously affected by illumination changes; the edge segmentation method is seriously disturbed by object texture; the maximum inter-class variance method can effectively suppress the impact of illumination changes, but if the mirror reflection occurs on the smooth surface of the object, or the gray surface of the object surface and the background There are obvious 3 or more gray levels, which often lead to only segmenting the area of reflection or the highest brightness gray level, while ignoring other parts of the object.

实用新型内容Utility model content

本实用新型的目的在于克服现有技术的缺点与不足,提供一种物流箱体积重量测量系统。The purpose of the utility model is to overcome the shortcomings and deficiencies of the prior art, and provide a volume and weight measurement system for logistics boxes.

本实用新型的目的通过下述技术方案实现:The purpose of this utility model is achieved through the following technical solutions:

一种物流箱体积重量测量系统,包括安装架,以及设置在所述安装架上的传送带、电子秤、牛眼滚珠板、微调支架、信号处理系统、X方向微调部件、Y方向微调部件、Z方向微调部件、LED条形光源、工业相机和激光测距模块,其中,所述传送带设置在所述牛眼滚珠板的左右两侧,所述电子秤设置在所述牛眼滚珠板的下方;所述X方向微调部件、Y方向微调部件、Z方向微调部件、LED条形光源、工业相机和激光测距模块都设置在所述微调支架上,且所述X方向微调部件、Y方向微调部件、LED条形光源、工业相机和激光测距模块均设置在所述微调支架的顶部,所述工业相机和激光测距模块并排设置且位于所述牛眼滚珠板正上方,所述LED条形光源设置在所述工业相机和激光测距模块四周且位于所述工业相机和激光测距模块下方;所述X方向微调部件控制所述工业相机和激光测距模块左右移动,所述Y方向微调部件控制所述工业相机和激光测距模块前后移动,所述Z方向微调部件控制所述工业相机和激光测距模块上下移动;A logistics box volumetric weight measurement system, including a mounting frame, and a conveyor belt arranged on the mounting frame, an electronic scale, a bull's-eye ball plate, a fine-tuning bracket, a signal processing system, an X-direction fine-tuning component, a Y-direction fine-tuning component, a Z-direction fine-tuning component, a Direction fine-tuning components, LED strip light sources, industrial cameras and laser distance measuring modules, wherein the conveyor belt is arranged on the left and right sides of the bull's-eye ball board, and the electronic scale is arranged under the bull's-eye ball board; The fine-tuning parts in the X direction, the fine-tuning parts in the Y direction, the fine-tuning parts in the Z direction, the LED bar light source, the industrial camera and the laser ranging module are all arranged on the fine-tuning bracket, and the fine-tuning parts in the X-direction and the fine-tuning parts in the Y direction , LED strip light source, industrial camera and laser ranging module are all set on the top of the fine-tuning bracket, the industrial camera and laser ranging module are arranged side by side and are located directly above the bull’s-eye ball plate, and the LED strip The light source is arranged around the industrial camera and the laser ranging module and is located below the industrial camera and the laser ranging module; the X direction fine-tuning component controls the left and right movement of the industrial camera and the laser ranging module, and the Y direction fine-tuning The component controls the industrial camera and the laser ranging module to move back and forth, and the Z direction fine-tuning component controls the industrial camera and the laser ranging module to move up and down;

所述工业相机、激光测距模块和电子秤分别与所述信号处理系统相连接;所述信号处理系统设有显示屏。The industrial camera, the laser ranging module and the electronic scale are respectively connected with the signal processing system; the signal processing system is provided with a display screen.

优选地,所述牛眼滚珠板为黑色或暗色调的金属底板。Preferably, the bull's-eye ball plate is a black or dark metal bottom plate.

优选地,所述牛眼滚珠板上的牛眼滚珠呈阵列式排布。Preferably, the bull's-eye balls on the bull's-eye ball plate are arranged in an array.

本实用新型的工作原理:Working principle of the utility model:

工作时,步骤一,启动物流箱体积重量测量系统,工业相机、激光测距模块、LED条形光源、电子秤和信号处理系统开始工作,调节X方向微调部件、Y方向微调部件和Z方向微调部件;When working, step 1, start the logistics box volume and weight measurement system, industrial camera, laser distance measuring module, LED bar light source, electronic scale and signal processing system start to work, adjust the fine-tuning parts in the X direction, the fine-tuning parts in the Y direction and the fine-tuning in the Z direction part;

步骤二,进行工业相机的内参数、外参数和畸变系数的标定,以及激光测距模块与牛眼滚珠板最高点间距离的标定,并将上述参数录入信号处理系统,具体工作流程如下:Step 2. Calibrate the internal parameters, external parameters and distortion coefficient of the industrial camera, as well as the distance between the laser ranging module and the highest point of the bull’s-eye ball plate, and input the above parameters into the signal processing system. The specific workflow is as follows:

(1)相机标定:(1) Camera calibration:

工业相机满足针孔相机模型,设图像坐标向量为其中(u,v)为目标点的像素坐标;相机内参数矩阵为其中fx,fy,cx,cy分别为x向焦距,y向焦距和光轴中心坐标;相机外参数矩阵为(R|T),其中R为相机光心坐标系相对于世界坐标系的3×3旋转矩阵,T为相机光心坐标系相对于世界坐标系的3×1平移矩阵;世界坐标向量为其中X,Y,Z为目标点的世界坐标;相机成像模型满足关系式:The industrial camera satisfies the pinhole camera model, and the image coordinate vector is Where (u, v) is the pixel coordinates of the target point; the internal parameter matrix of the camera is Where f x , f y , c x , c y are the x-direction focal length, y-direction focal length and optical axis center coordinates respectively; the camera extrinsic parameter matrix is (R|T), where R is the camera optical center coordinate system relative to the world coordinate system The 3×3 rotation matrix, T is the 3×1 translation matrix of the camera optical center coordinate system relative to the world coordinate system; the world coordinate vector is Among them, X, Y, and Z are the world coordinates of the target point; the camera imaging model satisfies the relation:

其中zc为尺度因子;此外,相机畸变模型满足如下关系:where z c is the scale factor; in addition, the camera distortion model satisfies the following relationship:

其中,(x,y)为畸变纠正前的图像物理坐标,(xcor,ycor)为畸变纠正后的图像物理坐标,r=x2+y2,k1,k2,k3,p1,p2为相机的3个径向畸变系数和2个切向畸变系数;Among them, (x, y) are the physical coordinates of the image before distortion correction, (x cor , y cor ) are the physical coordinates of the image after distortion correction, r=x 2 +y 2 ,k 1 ,k 2 ,k 3 ,p 1 , p 2 are three radial distortion coefficients and two tangential distortion coefficients of the camera;

相机标定的目的在于求解相机内参数、外参数和畸变系数,将牛眼滚珠板最高点所处平面设为零平面,采用张正友棋盘平面标定法,通过改变棋盘的位置和角度拍摄20张图像,进行相机标定,求解得到相机内参数、外参数和畸变系数;The purpose of camera calibration is to solve the internal parameters, external parameters and distortion coefficient of the camera, set the plane where the highest point of the bull’s-eye ball board is located as the zero plane, and adopt Zhang Zhengyou’s checkerboard plane calibration method to take 20 images by changing the position and angle of the checkerboard. Carry out camera calibration, and solve to obtain camera internal parameters, external parameters and distortion coefficients;

(2)激光测距模块标定:(2) Laser ranging module calibration:

将棋盘放置于牛眼滚珠板上,通过激光测距模块测得棋盘与激光测距模块之间的距离,再补偿棋盘的厚度,得到激光测距模块与牛眼滚珠板最高点间距离;Place the chessboard on the bull's-eye ball board, measure the distance between the board and the laser ranging module through the laser ranging module, and then compensate the thickness of the chessboard to obtain the distance between the laser ranging module and the highest point of the bull's-eye ball board;

步骤三,选取ROI(Region Of Interest)区域,屏蔽相机视场中牛眼滚珠板以外的区域;Step 3, select the ROI (Region Of Interest) area, and shield the area outside the bull's-eye ball plate in the camera's field of view;

步骤四,将物流箱放入传送带,物流箱通过传送带进入牛眼滚珠板,电子秤探测物流箱的重量,当电子秤的数据稳定时,记录物流箱重量并将数据传送到信号处理系统,之后启动激光测距模块,获取物流箱的高度H;Step 4, put the logistics box into the conveyor belt, the logistics box enters the bull's-eye ball plate through the conveyor belt, and the electronic scale detects the weight of the logistics box. When the data of the electronic scale is stable, record the weight of the logistics box and transmit the data to the signal processing system, then Start the laser ranging module to obtain the height H of the logistics box;

步骤五,启动基于嵌套循环最大类间方差的物流箱体积识别算法流程,具体工作流程如下:Step 5: Start the logistics box volume identification algorithm process based on the nested loop maximum variance between classes. The specific workflow is as follows:

(1)输入相机内参数fx、相机外参数Tz、相机畸变系数、物流箱高度H和物流箱图像G0(1) Input camera intrinsic parameters f x , camera extrinsic parameters T z , camera distortion coefficient, logistics box height H and logistics box image G 0 ;

(2)若物流箱高度H小于预设阈值,则返回错误信息给信号处理系统,并启动步骤六;否则利用相机的畸变系数对物流箱图像进行去畸变处理,得到去畸变图像G;(2) If the height H of the logistics box is less than the preset threshold, an error message is returned to the signal processing system, and step six is started; otherwise, the distortion coefficient of the camera is used to perform de-distortion processing on the logistics box image to obtain the de-distorted image G;

(3)采用最大类间方差法对物流箱图像数据进行第一次二值化处理,分割得到的二值图像B0中的目标区域为高亮区域,然后定义中间二值图像Btmp=B0(3) Use the method of maximum variance between classes to carry out the first binarization process on the logistics box image data, and the target area in the binary image B 0 obtained by segmentation is the highlighted area, and then define the intermediate binary image B tmp =B 0 ;

(4)将二值图像Btmp取反,得到掩模图像M;(4) Invert the binary image B tmp to obtain the mask image M;

(5)针对与掩模图像M高亮区域相对应的去畸变图像G中的区域进行最大类间方差法的二值化处理,得到类间方差D和高亮目标的二值图像,并将得到高亮目标的二值图像赋给Btmp,若类间方差D大于预设阈值,则将Btmp的高亮区域添加到二值图像B0中,并回到步骤五(4),否则进行下一步处理;(5) For the region in the dedistorted image G corresponding to the highlighted region of the mask image M, the binarization process of the maximum inter-class variance method is performed to obtain the inter-class variance D and the binary image of the highlighted target, and Assign the binary image of the highlighted target to B tmp , if the inter-class variance D is greater than the preset threshold, add the highlighted area of B tmp to the binary image B 0 , and return to step 5 (4), otherwise proceed to the next step;

(6)寻找二值图像B0的最大轮廓,计算并用高亮灰度填充其凸包轮廓C,并计算凸包轮廓C的最小外接矩形的像素长度L、像素宽度W和顶点像素坐标P={P1,P2,P3,P4};(6) Find the maximum contour of the binary image B 0 , calculate and fill its convex hull contour C with highlighted gray scale, and calculate the pixel length L, pixel width W and vertex pixel coordinates P of the smallest circumscribed rectangle of the convex hull contour C= {P 1 ,P 2 ,P 3 ,P 4 };

(7)进行物流箱出界检测及干扰检测,具体工作流程如下:(7) Carry out logistics box out-of-boundary detection and interference detection, the specific workflow is as follows:

①输入步骤三得到的ROI信息和步骤五(6)得到的C、L、W和P;① Input the ROI information obtained in step 3 and the C, L, W and P obtained in step 5 (6);

②利用ROI的边界信息,判断并记录顶点像素坐标P中出界的元素;② Use the boundary information of ROI to judge and record the out-of-bounds elements in the vertex pixel coordinates P;

③若出界顶点个数N大于1,且有两个以上相邻顶点出界,则返回错误信息给信号处理系统,并启动步骤六;否则根据出界的顶点及其相邻两个顶点的坐标和ROI边界信息,利用相似三角形性质,计算出界区域的面积,所得出界区域面积为其他边界出界情况同理,总出界面积为若无顶点出界,则 ③ If the number N of out-of-bounds vertices is greater than 1, and more than two adjacent vertices are out-of-bounds, return an error message to the signal processing system and start step 6; otherwise, according to the coordinates of the out-of-bounds vertex and its two adjacent vertices and the ROI Boundary information, using similar triangle properties to calculate the area of the out-of-bounds area, the area of the out-of-bounds area is which is The same is true for other boundary out-of-boundary situations, and the total out-of-boundary area is If no vertex is out of bounds, then

④进行干扰检测,计算凸包轮廓C的面积SC,若面积比小于预设阈值,则返回错误信息给信号处理系统,并启动步骤六;否则启动步骤五(8);④ Carry out interference detection, calculate the area S C of the convex hull contour C, if the area ratio If it is less than the preset threshold, an error message is returned to the signal processing system, and step six is started; otherwise, step five (8) is started;

(8)若步骤五(7)的物流箱出界检测及干扰检测通过,则计算出物流箱体积并将物流箱体积信息返回给信号处理系统;(8) If the out-of-bounds detection and interference detection of the logistics box in step 5 (7) pass, calculate the volume of the logistics box And return the logistics box volume information to the signal processing system;

步骤六,信号处理系统的显示屏显示物流箱体积及重量信息,或者显示物流箱出界的提示信息。。Step 6, the display screen of the signal processing system displays the volume and weight information of the logistics box, or displays a prompt message that the logistics box is out of bounds. .

本实用新型与现有技术相比具有以下的有益效果:Compared with the prior art, the utility model has the following beneficial effects:

(1)相比于传统的人工标尺测量,本实用新型具有快速、准确、非接触和成本低廉等优势,适用于批量的自动化测量,极大地降低人工成本,提高生产效率;(1) Compared with the traditional manual scale measurement, the utility model has the advantages of fast, accurate, non-contact and low cost, and is suitable for batch automatic measurement, which greatly reduces labor costs and improves production efficiency;

(2)相比于双目或多目视觉系统,本实用新型采用单目视觉系统,无需进行特征点匹配和视差计算,这减少了系统运算量,提高了系统运行速度和系统稳定性,同时本实用新型引入激光测距模块进行获取图像中物流箱的深度信息,高效实现了对物流箱体积的测量,再者,相比于容易造成测距稳定但重量未稳定的激光测距触发方式,本实用新型采用重量稳定触发,利于获取稳定且无干扰的重量和体积数据;(2) Compared with the binocular or multi-eye vision system, the utility model adopts the monocular vision system, which does not need to perform feature point matching and parallax calculation, which reduces the amount of system calculation, improves the system operation speed and system stability, and at the same time The utility model introduces a laser ranging module to obtain the depth information of the logistics box in the image, and realizes the measurement of the volume of the logistics box efficiently. Furthermore, compared with the laser ranging trigger method that is easy to cause stable ranging but unstable weight, The utility model adopts weight stable trigger, which is beneficial to obtain stable and non-interfering weight and volume data;

(3)本实用新型采用的嵌套循环最大类间方差的图像分割方法,相比于固定阈值分割法、边缘分割法和最大类间方差这些图像分割方法,本实用新型能有效减弱光照变化、物体表面纹理及平滑表面镜面反射对分割的影响;(3) The image segmentation method of the nested loop maximum variance between classes adopted by the utility model, compared with the image segmentation methods of the fixed threshold segmentation method, the edge segmentation method and the maximum variance between the clusters, the utility model can effectively weaken the illumination change, The effect of object surface texture and smooth surface specular reflection on segmentation;

(4)本实用新型对目标进行了出界及干扰检测,有效地判断出目标是否出界,且相机视场中是否有其他干扰物导致测量错误,该出界及干扰检测有效地对测量数据进行过滤,极大地减低将错误数据误作为正确数据的风险,并给出了具体的出界或干扰提示信息,使得操作人员能快速的调整物流箱或系统。(4) The utility model has carried out out-of-bounds and interference detection on the target, effectively judging whether the target is out of bounds, and whether there are other interference objects in the camera field of view that cause measurement errors, and the out-of-bounds and interference detection can effectively filter the measurement data, It greatly reduces the risk of wrong data being mistaken for correct data, and gives specific out-of-bounds or interference prompt information, so that operators can quickly adjust the logistics box or system.

附图说明Description of drawings

图1为本实用新型的结构示意图;Fig. 1 is the structural representation of the utility model;

图2为本实用新型的系统识别算法部分整体流程图;Fig. 2 is the overall flowchart of the system recognition algorithm part of the present utility model;

图3为本实用新型的基于嵌套循环最大类间方差的物流箱体积识别算法流程图;Fig. 3 is the flow chart of the logistics box volume recognition algorithm based on the maximum variance between classes of nested loops of the present invention;

图4为本实用新型的出界及干扰检测算法流程图;Fig. 4 is a flow chart of out-of-bounds and interference detection algorithm of the present utility model;

图5为本实用新型的右边界出界的计算方法示意图。Fig. 5 is a schematic diagram of the calculation method of the right boundary out of the present invention.

图中附图标记为:1、信号处理系统;2、工业相机;3、激光测距模块;4、LED条形光源;5、牛眼滚珠板;6、电子秤;7、传送带;8、微调支架;9、Z方向微调部件;10、X方向微调部件;11、Y方向微调部件;12、安装架。The reference signs in the figure are: 1. Signal processing system; 2. Industrial camera; 3. Laser ranging module; 4. LED bar light source; 5. Bull's eye ball board; 6. Electronic scale; 7. Conveyor belt; Fine-tuning bracket; 9. Z-direction fine-tuning part; 10. X-direction fine-tuning part; 11. Y-direction fine-tuning part; 12. Mounting frame.

具体实施方式Detailed ways

下面结合实施例及附图对本实用新型作进一步详细的描述,但本实用新型的实施方式不限于此。The utility model will be further described in detail below in conjunction with the embodiments and accompanying drawings, but the implementation of the utility model is not limited thereto.

如图1~5所示,一种物流箱体积重量测量系统,包括安装架12,以及设置在所述安装架12上的传送带7、电子秤6、牛眼滚珠板5、微调支架8、信号处理系统1、X方向微调部件10、Y方向微调部件11、Z方向微调部件9、LED条形光源4、工业相机2和激光测距模块3,其中,所述牛眼滚珠板5为黑色或暗色调的金属底板,这样设置能够方便图像的采集;同时所述牛眼滚珠板5上的牛眼滚珠呈阵列式排布,这样设置能够方便物流箱进出牛眼滚珠板5;所述传送带7设置在所述牛眼滚珠板5的左右两侧,所述电子秤6设置在所述牛眼滚珠板5的下方;所述X方向微调部件10、Y方向微调部件11、Z方向微调部件9、LED条形光源4、工业相机2和激光测距模块3都设置在所述微调支架8上,且所述X方向微调部件10、Y方向微调部件11、LED条形光源4、工业相机2和激光测距模块3均设置在所述微调支架8的顶部,所述工业相机2和激光测距模块3并排设置且位于所述牛眼滚珠板5正上方,所述LED条形光源4设置在所述工业相机2和激光测距模块3四周且位于所述工业相机2和激光测距模块3下方,设置LED条形光源4能够实现均匀打光以供工业相机2获取优质图像;所述X方向微调部件10控制所述工业相机2和激光测距模块3左右移动,所述Y方向微调部件11控制所述工业相机2和激光测距模块3前后移动,所述Z方向微调部件9控制所述工业相机2和激光测距模块3上下移动;所述工业相机2、激光测距模块3和电子秤6分别与所述信号处理系统1相连接;所述信号处理系统1设有显示屏。As shown in Figures 1 to 5, a logistics box volumetric weight measurement system includes a mounting frame 12, and a conveyor belt 7, an electronic scale 6, a bull's-eye ball plate 5, a fine-tuning bracket 8, and a signal mounted on the mounting frame 12. Processing system 1, X-direction fine-tuning part 10, Y-direction fine-tuning part 11, Z-direction fine-tuning part 9, LED bar light source 4, industrial camera 2 and laser distance measuring module 3, wherein, the bull's-eye ball plate 5 is black or The dark-toned metal bottom plate can facilitate the collection of images in this way; at the same time, the bull’s-eye balls on the bull’s-eye ball plate 5 are arranged in an array, so that the logistics box can be conveniently entered and exited by the bull’s-eye ball plate 5; the conveyor belt 7 It is arranged on the left and right sides of the bull's-eye ball plate 5, and the electronic scale 6 is arranged under the bull's-eye ball plate 5; , LED bar-shaped light source 4, industrial camera 2 and laser ranging module 3 are all arranged on the fine-tuning bracket 8, and the X-direction fine-tuning part 10, Y-direction fine-tuning part 11, LED bar-shaped light source 4, industrial camera 2 and the laser distance measuring module 3 are all arranged on the top of the fine-tuning bracket 8, the industrial camera 2 and the laser distance measuring module 3 are arranged side by side and are located directly above the bull's-eye ball plate 5, and the LED bar light source 4 is arranged Around the industrial camera 2 and the laser rangefinder module 3 and below the industrial camera 2 and the laser rangefinder module 3, an LED strip light source 4 can be set to achieve uniform lighting for the industrial camera 2 to obtain high-quality images; X-direction fine-tuning part 10 controls described industrial camera 2 and laser ranging module 3 to move left and right, described Y-direction fine-tuning part 11 controls described industrial camera 2 and laser distance-finding module 3 to move forward and backward, and described Z-direction fine-tuning part 9 controls The industrial camera 2 and the laser distance measuring module 3 move up and down; the industrial camera 2, the laser distance measuring module 3 and the electronic scale 6 are respectively connected with the signal processing system 1; the signal processing system 1 is provided with a display screen .

本实用新型给出一种嵌套循环最大类间方差的图像分割方法,并引入用于获取物体深度信息的激光测距模块3,结合单目视觉技术所获取的物体二维信息,实现对物流箱的长、宽和高的精确非接触测量,同时利用传统电子秤6产生触发与称重的功能,最终实现对物流箱的体积和重量的便捷、自动、高准确度的测量。The utility model provides an image segmentation method with a nested loop maximum variance between classes, and introduces a laser ranging module 3 for obtaining object depth information, and combines the object two-dimensional information obtained by monocular vision technology to realize logistics Accurate non-contact measurement of the length, width and height of the box, while using the traditional electronic scale 6 to generate trigger and weighing functions, and finally realize the convenient, automatic and high-accuracy measurement of the volume and weight of the logistics box.

工作时,步骤一,启动物流箱体积重量测量系统,工业相机2、激光测距模块3、LED条形光源4、电子秤6和信号处理系统1开始工作,调节X方向微调部件10、Y方向微调部件11和Z方向微调部件9;When working, step 1 starts the logistics box volume and weight measurement system, the industrial camera 2, the laser distance measuring module 3, the LED bar light source 4, the electronic scale 6 and the signal processing system 1 start to work, and adjust the fine-tuning parts 10 in the X direction and the Y direction A fine-tuning component 11 and a Z-direction fine-tuning component 9;

步骤二,进行工业相机2的内参数、外参数和畸变系数的标定,以及激光测距模块3与牛眼滚珠板5最高点间距离的标定,并将上述参数录入信号处理系统1,具体工作流程如下:Step 2: Carry out the calibration of the internal parameters, external parameters and distortion coefficient of the industrial camera 2, as well as the calibration of the distance between the laser ranging module 3 and the highest point of the bull’s-eye ball plate 5, and input the above parameters into the signal processing system 1, and the specific work The process is as follows:

(1)相机标定:(1) Camera calibration:

工业相机2满足针孔相机模型,设图像坐标向量为其中(u,v)为目标点的像素坐标;相机内参数矩阵为其中fx,fy,cx,cy分别为x向焦距,y向焦距和光轴中心坐标;相机外参数矩阵为(R|T),其中R为相机光心坐标系相对于世界坐标系的3×3旋转矩阵,T为相机光心坐标系相对于世界坐标系的3×1平移矩阵;世界坐标向量为其中X,Y,Z为目标点的世界坐标;相机成像模型满足关系式:The industrial camera 2 satisfies the pinhole camera model, and the image coordinate vector is set as Where (u, v) is the pixel coordinates of the target point; the internal parameter matrix of the camera is Where f x , f y , c x , c y are the x-direction focal length, y-direction focal length and optical axis center coordinates respectively; the camera extrinsic parameter matrix is (R|T), where R is the camera optical center coordinate system relative to the world coordinate system The 3×3 rotation matrix, T is the 3×1 translation matrix of the camera optical center coordinate system relative to the world coordinate system; the world coordinate vector is Among them, X, Y, and Z are the world coordinates of the target point; the camera imaging model satisfies the relation:

其中zc为尺度因子;此外,相机畸变模型满足如下关系:where z c is the scale factor; in addition, the camera distortion model satisfies the following relationship:

其中,(x,y)为畸变纠正前的图像物理坐标,(xcor,ycor)为畸变纠正后的图像物理坐标,r=x2+y2,k1,k2,k3,p1,p2为相机的3个径向畸变系数和2个切向畸变系数;Among them, (x, y) are the physical coordinates of the image before distortion correction, (x cor , y cor ) are the physical coordinates of the image after distortion correction, r=x 2 +y 2 ,k 1 ,k 2 ,k 3 ,p 1 , p 2 are three radial distortion coefficients and two tangential distortion coefficients of the camera;

相机标定的目的在于求解相机内参数、外参数和畸变系数,将牛眼滚珠板5最高点所处平面设为零平面,采用张正友棋盘平面标定法,通过改变棋盘的位置和角度拍摄20张图像,进行相机标定,求解得到相机内参数、外参数和畸变系数;The purpose of camera calibration is to solve the internal parameters, external parameters and distortion coefficient of the camera, set the plane at the highest point of the bull’s-eye ball board 5 as the zero plane, and adopt Zhang Zhengyou’s checkerboard plane calibration method to take 20 images by changing the position and angle of the checkerboard , carry out camera calibration, and solve to obtain camera intrinsic parameters, extrinsic parameters and distortion coefficients;

(2)激光测距模块3标定:(2) Laser ranging module 3 calibration:

将棋盘放置于牛眼滚珠板5上,通过激光测距模块3测得棋盘与激光测距模块3之间的距离,再补偿棋盘的厚度,得到激光测距模块3与牛眼滚珠板5最高点间距离;Place the checkerboard on the bull's-eye ball board 5, measure the distance between the checkerboard and the laser range-finding module 3 through the laser range-finding module 3, and then compensate the thickness of the checkerboard to obtain the highest distance between the laser range-finding module 3 and the bull's-eye ball board 5. distance between points;

步骤三,选取ROI(Region Of Interest)区域,屏蔽相机视场中牛眼滚珠板5以外的区域;Step 3, select the ROI (Region Of Interest) area, and shield the areas other than the bull's-eye ball plate 5 in the field of view of the camera;

步骤四,将物流箱放入传送带7,物流箱通过传送带7进入牛眼滚珠板5,电子秤6探测物流箱的重量,当电子秤6的数据稳定时,记录物流箱重量并将数据传送到信号处理系统1,之后启动激光测距模块3,获取物流箱的高度H;Step 4, put the logistics box into the conveyor belt 7, the logistics box enters the bull's-eye ball plate 5 through the conveyor belt 7, and the electronic scale 6 detects the weight of the logistics box. When the data of the electronic scale 6 is stable, record the weight of the logistics box and transmit the data to The signal processing system 1 starts the laser ranging module 3 afterwards to obtain the height H of the logistics box;

步骤五,启动基于嵌套循环最大类间方差的物流箱体积识别算法流程,如图3所示,具体工作流程如下:Step 5: Start the logistics box volume identification algorithm process based on the nested loop maximum variance between classes, as shown in Figure 3, the specific workflow is as follows:

(1)输入相机内参数fx、相机外参数Tz、相机畸变系数、物流箱高度H和物流箱图像G0(1) Input camera intrinsic parameters f x , camera extrinsic parameters T z , camera distortion coefficient, logistics box height H and logistics box image G 0 ;

(2)若物流箱高度H小于预设阈值(此处的预设阈值为经过多次实验后总结实验数据得到的经验值),则返回错误信息给信号处理系统1,并启动步骤六;否则利用相机的畸变系数对物流箱图像进行去畸变处理,得到去畸变图像G;(2) If the height H of the logistics box is less than the preset threshold (the preset threshold here is the empirical value obtained by summarizing the experimental data after many experiments), then return an error message to the signal processing system 1, and start step 6; otherwise Use the distortion coefficient of the camera to perform de-distortion processing on the logistics box image to obtain the de-distorted image G;

(3)采用最大类间方差法对物流箱图像数据进行第一次二值化处理,分割得到的二值图像B0中的目标区域为高亮区域,然后定义中间二值图像Btmp=B0(3) Use the method of maximum variance between classes to carry out the first binarization process on the logistics box image data, and the target area in the binary image B 0 obtained by segmentation is the highlighted area, and then define the intermediate binary image B tmp =B 0 ;

(4)将二值图像Btmp取反,得到掩模图像M;(4) Invert the binary image B tmp to obtain the mask image M;

(5)针对与掩模图像M高亮区域相对应的去畸变图像G中的区域进行最大类间方差法的二值化处理,得到类间方差D和高亮目标的二值图像,并将得到高亮目标的二值图像赋给Btmp,若类间方差D大于预设阈值(此处的预设阈值为经过多次实验后总结实验数据得到的经验值),则将Btmp的高亮区域添加到二值图像B0中,并回到步骤五(4),否则进行下一步处理;(5) For the region in the dedistorted image G corresponding to the highlighted region of the mask image M, the binarization process of the maximum inter-class variance method is performed to obtain the inter-class variance D and the binary image of the highlighted target, and Get the binary image of the highlighted target and assign it to Btmp . If the inter-class variance D is greater than the preset threshold (the preset threshold here is the empirical value obtained by summarizing the experimental data after many experiments), then the high value of Btmp Add the bright area to the binary image B 0 , and get back to step five (4), otherwise proceed to the next step;

(6)寻找二值图像B0的最大轮廓,计算并用高亮灰度填充其凸包轮廓C,并计算凸包轮廓C的最小外接矩形的像素长度L、像素宽度W和顶点像素坐标P={P1,P2,P3,P4};(6) Find the maximum contour of the binary image B 0 , calculate and fill its convex hull contour C with highlighted gray scale, and calculate the pixel length L, pixel width W and vertex pixel coordinates P of the smallest circumscribed rectangle of the convex hull contour C= {P 1 ,P 2 ,P 3 ,P 4 };

(7)进行物流箱出界检测及干扰检测,如图4所示,具体工作流程如下:(7) Carry out logistics box out-of-bounds detection and interference detection, as shown in Figure 4, the specific workflow is as follows:

①输入步骤三得到的ROI信息和步骤五(6)得到的C、L、W和P;① Input the ROI information obtained in step 3 and the C, L, W and P obtained in step 5 (6);

②利用ROI的边界信息,判断并记录顶点像素坐标P中出界的元素;② Use the boundary information of ROI to judge and record the out-of-bounds elements in the vertex pixel coordinates P;

③若出界顶点个数N大于1,且有两个以上相邻顶点出界,则返回错误信息给信号处理系统1,并启动步骤六;否则根据出界的顶点及其相邻两个顶点的坐标和ROI边界信息,利用相似三角形性质,计算出界区域的面积,如图5所示为右边界出界的计算方法,所得出界区域面积为其他边界出界情况同理,总出界面积为若无顶点出界,则 ③ If the number N of out-of-bound vertices is greater than 1, and more than two adjacent vertices are out-of-bound, return an error message to signal processing system 1, and start step six; otherwise, according to the coordinate sum of the out-of-bound vertex and its two adjacent vertices, For ROI boundary information, use the similar triangle property to calculate the area of the out-of-bounds area, as shown in Figure 5, the calculation method for the right-boundary out-of-bounds area, and the area of the out-of-bounds area is which is The same is true for other boundary out-of-boundary situations, and the total out-of-boundary area is If no vertex is out of bounds, then

④进行干扰检测,计算凸包轮廓C的面积SC,若面积比小于预设阈值(此处的预设阈值为经过多次实验后总结实验数据得到的经验值),则返回错误信息给信号处理系统1,并启动步骤六;否则启动步骤五(8);④ Carry out interference detection, calculate the area S C of the convex hull contour C, if the area ratio Less than the preset threshold (the preset threshold here is the empirical value obtained by summarizing the experimental data after many experiments), then return error information to the signal processing system 1, and start step six; otherwise start step five (8);

(8)若步骤五(7)的物流箱出界检测及干扰检测通过,则计算出物流箱体积并将物流箱体积信息返回给信号处理系统1;(8) If the out-of-bounds detection and interference detection of the logistics box in step 5 (7) pass, calculate the volume of the logistics box And return the logistics box volume information to the signal processing system 1;

步骤六,信号处理系统1的显示屏显示物流箱体积及重量信息,或者显示物流箱出界的提示信息。Step 6, the display screen of the signal processing system 1 displays the volume and weight information of the logistics box, or displays a prompt message that the logistics box is out of bounds.

本实用新型相比于传统的人工标尺测量,具有快速、准确、非接触和成本低廉等优势,适用于批量的自动化测量,极大地降低人工成本,提高生产效率;相比于双目或多目视觉系统,本实用新型采用单目视觉系统,无需进行特征点匹配和视差计算,这减少了系统运算量,提高了系统运行速度和系统稳定性,同时本实用新型引入激光测距模块进行获取图像中物流箱的深度信息,高效实现了对物流箱体积的测量,再者,相比于容易造成测距稳定但重量未稳定的激光测距触发方式,本实用新型采用重量稳定触发,利于获取稳定且无干扰的重量和体积数据;采用的嵌套循环最大类间方差的图像分割方法,相比于固定阈值分割法、边缘分割法和最大类间方差这些图像分割方法,本实用新型能有效减弱光照变化、物体表面纹理及平滑表面镜面反射对分割的影响;对目标进行了出界及干扰检测,有效地判断出目标是否出界,且相机视场中是否有其他干扰物导致测量错误,该出界及干扰检测有效地对测量数据进行过滤,极大地减低将错误数据误作为正确数据的风险,并给出了具体的出界或干扰提示信息,使得操作人员能快速的调整物流箱或系统。Compared with the traditional manual ruler measurement, the utility model has the advantages of fast, accurate, non-contact and low cost, and is suitable for batch automatic measurement, which greatly reduces labor costs and improves production efficiency; compared with binocular or multi-eye Vision system, the utility model adopts a monocular vision system, which does not need to perform feature point matching and parallax calculation, which reduces the amount of calculation of the system, improves the system operation speed and system stability, and at the same time, the utility model introduces a laser ranging module to acquire images The depth information of the logistics box in the logistics box efficiently realizes the measurement of the volume of the logistics box. Furthermore, compared with the laser ranging trigger method that is easy to cause stable distance measurement but unstable weight, the utility model uses stable weight triggering, which is beneficial to obtain stable weight. and non-interfering weight and volume data; the image segmentation method of the nested loop maximum variance between classes adopted, compared with the image segmentation methods of fixed threshold segmentation method, edge segmentation method and maximum variance between classes, the utility model can effectively reduce the The impact of illumination changes, object surface texture, and smooth surface specular reflection on segmentation; the out-of-bounds and interference detection of the target is carried out to effectively determine whether the target is out of bounds, and whether there are other interference objects in the camera's field of view that cause measurement errors, the out-of-bounds and Interference detection effectively filters the measurement data, which greatly reduces the risk of mistaking wrong data as correct data, and gives specific out-of-bounds or interference prompt information, allowing operators to quickly adjust logistics boxes or systems.

上述为本实用新型较佳的实施方式,但本实用新型的实施方式并不受上述内容的限制,其他的任何未背离本实用新型的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本实用新型的保护范围之内。The above is a preferred implementation of the utility model, but the implementation of the utility model is not limited by the above content, and any other changes, modifications, substitutions, combinations, Simplification should be equivalent replacement methods, all of which are included in the protection scope of the present utility model.

Claims (3)

1.一种物流箱体积重量测量系统,其特征在于,包括安装架,以及设置在所述安装架上的传送带、电子秤、牛眼滚珠板、微调支架、信号处理系统、X方向微调部件、Y方向微调部件、Z方向微调部件、LED条形光源、工业相机和激光测距模块,其中,所述传送带设置在所述牛眼滚珠板的左右两侧,所述电子秤设置在所述牛眼滚珠板的下方;所述X方向微调部件、Y方向微调部件、Z方向微调部件、LED条形光源、工业相机和激光测距模块都设置在所述微调支架上,且所述X方向微调部件、Y方向微调部件、LED条形光源、工业相机和激光测距模块均设置在所述微调支架的顶部,所述工业相机和激光测距模块并排设置且位于所述牛眼滚珠板正上方,所述LED条形光源设置在所述工业相机和激光测距模块四周且位于所述工业相机和激光测距模块下方;所述X方向微调部件控制所述工业相机和激光测距模块左右移动,所述Y方向微调部件控制所述工业相机和激光测距模块前后移动,所述Z方向微调部件控制所述工业相机和激光测距模块上下移动;1. A logistics box volumetric weight measurement system, characterized in that it includes a mounting frame, and a conveyor belt, an electronic scale, a bull's-eye ball plate, a fine-tuning bracket, a signal processing system, a fine-tuning component in the X direction, and a conveyor belt arranged on the mounting frame. Fine-tuning parts in the Y direction, fine-tuning parts in the Z direction, LED bar light sources, industrial cameras and laser distance measuring modules, wherein the conveyor belt is set on the left and right sides of the bull's-eye ball board, and the electronic scale is set on the bull's-eye Below the eye ball plate; the fine-tuning parts in the X direction, the fine-tuning parts in the Y direction, the fine-tuning parts in the Z direction, the LED bar light source, the industrial camera and the laser ranging module are all arranged on the fine-tuning bracket, and the fine-tuning parts in the X direction Components, Y-direction fine-tuning components, LED bar light source, industrial camera and laser ranging module are all arranged on the top of the fine-tuning bracket, and the industrial camera and laser ranging module are arranged side by side and located directly above the bull’s-eye ball plate , the LED bar-shaped light source is arranged around and below the industrial camera and the laser ranging module; the X direction fine-tuning component controls the left and right movement of the industrial camera and the laser ranging module , the Y-direction fine-tuning component controls the industrial camera and the laser ranging module to move back and forth, and the Z-direction fine-tuning component controls the industrial camera and the laser ranging module to move up and down; 所述工业相机、激光测距模块和电子秤分别与所述信号处理系统相连接;所述信号处理系统设有显示屏。The industrial camera, the laser ranging module and the electronic scale are respectively connected with the signal processing system; the signal processing system is provided with a display screen. 2.根据权利要求1所述的物流箱体积重量测量系统,其特征在于,所述牛眼滚珠板为黑色或暗色调的金属底板。2. The logistics box volumetric weight measuring system according to claim 1, characterized in that, the bull's-eye ball plate is a black or dark metal bottom plate. 3.根据权利要求1所述的物流箱体积重量测量系统,其特征在于,所述牛眼滚珠板上的牛眼滚珠呈阵列式排布。3. The logistics box volumetric weight measuring system according to claim 1, wherein the bull's-eye balls on the bull's-eye ball plate are arranged in an array.
CN201721368026.7U 2017-10-23 2017-10-23 A kind of box for material circulation volume weight measuring system Expired - Fee Related CN207472194U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201721368026.7U CN207472194U (en) 2017-10-23 2017-10-23 A kind of box for material circulation volume weight measuring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201721368026.7U CN207472194U (en) 2017-10-23 2017-10-23 A kind of box for material circulation volume weight measuring system

Publications (1)

Publication Number Publication Date
CN207472194U true CN207472194U (en) 2018-06-08

Family

ID=62264340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201721368026.7U Expired - Fee Related CN207472194U (en) 2017-10-23 2017-10-23 A kind of box for material circulation volume weight measuring system

Country Status (1)

Country Link
CN (1) CN207472194U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107816943A (en) * 2017-10-23 2018-03-20 广东工业大学 A kind of box for material circulation volume weight measuring system and its implementation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107816943A (en) * 2017-10-23 2018-03-20 广东工业大学 A kind of box for material circulation volume weight measuring system and its implementation
CN107816943B (en) * 2017-10-23 2023-09-22 广东工业大学 A logistics box volume and weight measurement system and its implementation method

Similar Documents

Publication Publication Date Title
CN107816943B (en) A logistics box volume and weight measurement system and its implementation method
CN107869954B (en) A binocular vision volume weight measurement system and its realization method
CN106091984B (en) A method for acquiring 3D point cloud data based on line laser
CN109612390A (en) Large-size workpiece automatic measuring system based on machine vision
CN114494045B (en) Large spur gear geometric parameter measurement system and method based on machine vision
CN107578464A (en) A kind of conveyor belt workpieces measuring three-dimensional profile method based on line laser structured light
CN105716539B (en) A kind of three-dimentioned shape measurement method of quick high accuracy
CN107687819B (en) A fast and high-accuracy method for sub-pixel extraction of light strip center
CN113324478A (en) Center extraction method of line structured light and three-dimensional measurement method of forge piece
CN112561983A (en) Device and method for measuring and calculating surface weak texture and irregular stacking volume
CN112037189A (en) Device and method for detecting geometric parameters of steel bar welding seam
CN103217108A (en) Method for detecting geometrical parameters of spectacle frame
CN113418933A (en) Flying shooting visual imaging detection system and method for detecting large-size object
CN103033127A (en) Base plate pre-alignment pose measuring method
CN208254424U (en) A kind of laser blind hole depth detection system
CN110954555A (en) WDT 3D vision detection system
CN115082538A (en) 3D reconstruction system and method of multi-vision gimbal parts surface based on line structured light projection
CN110793462A (en) Measuring method of index circle of nylon gear based on vision technology
CN113313116A (en) Vision-based accurate detection and positioning method for underwater artificial target
CN207472194U (en) A kind of box for material circulation volume weight measuring system
CN112361989A (en) Method for calibrating parameters of measurement system through point cloud uniformity consideration
CN111968182A (en) Calibration method for binocular camera nonlinear model parameters
CN108180825B (en) A three-dimensional recognition and localization method of cuboid-shaped objects based on line structured light
CN110310371B (en) Method for constructing three-dimensional contour of object based on vehicle-mounted monocular focusing sequence image
CN207472195U (en) A kind of binocular vision volume weight measuring system

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180608

Termination date: 20191023

CF01 Termination of patent right due to non-payment of annual fee