CN107274407B - Device and method for precise counting and size recognition of steel balls - Google Patents

Device and method for precise counting and size recognition of steel balls Download PDF

Info

Publication number
CN107274407B
CN107274407B CN201710683914.6A CN201710683914A CN107274407B CN 107274407 B CN107274407 B CN 107274407B CN 201710683914 A CN201710683914 A CN 201710683914A CN 107274407 B CN107274407 B CN 107274407B
Authority
CN
China
Prior art keywords
counting
disc
steel balls
fine
counting disc
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
Application number
CN201710683914.6A
Other languages
Chinese (zh)
Other versions
CN107274407A (en
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.)
Changchun University of Science and Technology
Original Assignee
Changchun University of Science and 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 Changchun University of Science and Technology filed Critical Changchun University of Science and Technology
Priority to CN201710683914.6A priority Critical patent/CN107274407B/en
Publication of CN107274407A publication Critical patent/CN107274407A/en
Application granted granted Critical
Publication of CN107274407B publication Critical patent/CN107274407B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M1/00Design features of general application
    • G06M1/22Design features of general application for visual indication of the result of count on counting mechanisms, e.g. by window with magnifying lens
    • G06M1/24Drums; Dials; Pointers
    • G06M1/248Discs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30242Counting objects in image
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Finish Polishing, Edge Sharpening, And Grinding By Specific Grinding Devices (AREA)

Abstract

钢球精确计数、尺寸识别装置及方法属于钢球制造技术领域,目的在于解决现有技术存在的计数精度差以及无法识别钢球尺寸的问题。本发明包括储料单元;设置在储料盘出口端的预计数单元,预计数单元包括两侧带有凸沿的预计数盘、调整预计数盘工作面积的面积调整机构以及带动预计数盘上下运动的第一升降机构;设置在预计数盘出口端的精计数单元;设置在精计数单元上方的图像采集单元,采集精计数盘上的钢球图像;和图像采集单元连接的计算机控制系统,计算机控制系统控制各运动单元运动并对钢球图像进行数据处理,获得钢球数量及钢球尺寸信息;以及单补偿系统,单补偿系统对精计数盘中的钢球进行步进补偿;储料盘、预计数盘和精计数盘整体倾斜。

The device and method for accurate counting and size identification of steel balls belong to the technical field of steel ball manufacturing, and aim at solving the problems of poor counting accuracy and inability to identify the size of steel balls existing in the prior art. The invention comprises a material storage unit; a pre-counting unit arranged at the outlet end of the material storage tray, the pre-counting unit includes a pre-counting disc with convex edges on both sides, an area adjustment mechanism for adjusting the working area of the pre-counting disc and driving the pre-counting disc to move up and down The first lifting mechanism; the fine counting unit arranged at the outlet end of the pre-counting disc; the image acquisition unit arranged above the fine counting unit to collect the steel ball image on the fine counting disc; the computer control system connected with the image acquisition unit, computer control The system controls the movement of each motion unit and performs data processing on the steel ball image to obtain the number of steel balls and the size information of the steel balls; and the single compensation system, which performs step compensation for the steel balls in the fine counting disc; the storage tray, The pre-counting disc and the precise counting disc are integrally inclined.

Description

钢球精确计数、尺寸识别装置及方法Device and method for accurate counting and size recognition of steel balls

技术领域technical field

本发明属于钢球制造技术领域,具体涉及一种钢球精确计数、尺寸识别装置及方法。The invention belongs to the technical field of steel ball manufacturing, and in particular relates to a device and method for precise counting and size identification of steel balls.

背景技术Background technique

目前国内外钢球的计数大部分采用称重计数的方法,该方法采用电子秤称量钢球重量,人工读数的方法计算钢球数量。由于人工读数的误差以及钢球表面涂有防锈油等原因,造成称重计数不准确,计数效率低,工作强度大。同时人工计数还会带来球面擦伤,混球等问题。混球是指在人工操作中,由于操作失误把其他规格尺寸的钢球混入。不同规格尺寸的钢球一旦装入轴承,会带来严重的安全隐患,如果发生重大事故,会给企业造成极大的影响。At present, most of the counting of steel balls at home and abroad adopts the method of weighing and counting. This method uses electronic scales to weigh the weight of steel balls, and the method of manual reading to calculate the number of steel balls. Due to the error of manual reading and the anti-rust oil coated on the surface of the steel ball, the weighing and counting is inaccurate, the counting efficiency is low, and the work intensity is high. At the same time, manual counting will also bring problems such as ball scratches and mixed balls. Mixed balls refer to the mixing of steel balls of other specifications and sizes due to operational errors during manual operation. Once steel balls of different specifications and sizes are loaded into the bearing, it will bring serious safety hazards. If a major accident occurs, it will have a great impact on the enterprise.

针对电子秤称重存在的计数不准确、计数效率低以及工作强度大的问题,现有计数中采用图像采集的方式进行计数,公开号为CN 103164740的中国专利公开了一项发明名称为一种钢球智能自动计数装置及其自动计数方法的计数方案,该自动计数装置包括计数盘,计数盘上设置有工业照相机,工业照相机连接计算机控制系统,计算机控制系统对工业照相机采集的计数盘上的钢球进行计数处理,计数盘入口处设置有钢球自动补偿装置,自动补偿装置包括设置在计数盘入口处的上料辊和补偿辊,上料辊和补偿辊分别连接步进电机,上料辊外周布置有上料槽,补偿辊外周布置有储料单孔,储料单孔只能储存一只钢球。由于自动补偿装置的上料辊和补偿辊的结构设计,导致补偿数量不准确,不能满足精确计数的要求,同时不能进行钢球尺寸的识别。Aiming at the problems of inaccurate counting, low counting efficiency and high work intensity in the weighing of electronic scales, the existing counting adopts the method of image acquisition for counting. The Chinese patent with the publication number CN 103164740 discloses an invention titled a The counting scheme of the steel ball intelligent automatic counting device and its automatic counting method, the automatic counting device includes a counting disc, the counting disc is provided with an industrial camera, the industrial camera is connected to a computer control system, and the computer control system collects the data on the counting disc collected by the industrial camera. Steel balls are used for counting, and an automatic compensation device for steel balls is installed at the entrance of the counting disc. The outer periphery of the roller is arranged with a feeding trough, and the outer periphery of the compensation roller is arranged with a storage single hole, which can only store one steel ball. Due to the structural design of the feeding roller and compensation roller of the automatic compensation device, the compensation amount is inaccurate, which cannot meet the requirements of accurate counting, and the steel ball size cannot be identified at the same time.

发明内容Contents of the invention

本发明的目的在于提出一种钢球精确计数、尺寸识别装置及方法,解决现有技术存在的计数精度差以及无法识别钢球尺寸的问题。The object of the present invention is to provide a device and method for accurate counting and size identification of steel balls, which solves the problems of poor counting accuracy and inability to identify the size of steel balls existing in the prior art.

为实现上述目的,本发明的钢球精确计数、尺寸识别装置包括:In order to achieve the above object, the steel ball accurate counting and size identification device of the present invention includes:

储料单元,所述储料单元包括两侧带有凸沿的储料盘;A material storage unit, which includes a material storage tray with raised edges on both sides;

设置在储料盘出口端的预计数单元,所述预计数单元包括两侧带有凸沿的预计数盘、调整预计数盘工作面积的面积调整机构以及带动预计数盘上下运动的第一升降机构;The pre-counting unit arranged at the outlet end of the storage tray, the pre-counting unit includes a pre-counting disc with convex edges on both sides, an area adjustment mechanism for adjusting the working area of the pre-counting disc, and a first lifting mechanism that drives the pre-counting disc to move up and down ;

设置在预计数盘出口端的精计数单元,所述精计数单元包括两侧带有凸沿的精计数盘以及设置在精计数盘出口端的出口机构;The fine counting unit arranged at the outlet end of the pre-counting disc, the fine counting unit includes a fine counting disc with raised edges on both sides and an outlet mechanism arranged at the outlet end of the fine counting disc;

设置在精计数单元上方的图像采集单元,采集精计数盘上的钢球图像;The image acquisition unit arranged above the fine counting unit collects the steel ball image on the fine counting disc;

和所述图像采集单元连接的计算机控制系统,所述计算机控制系统控制各运动单元运动并对钢球图像进行数据处理,获得钢球数量及钢球尺寸信息;A computer control system connected to the image acquisition unit, the computer control system controls the movement of each movement unit and performs data processing on the steel ball image to obtain information on the number of steel balls and the size of the steel balls;

以及单补偿系统,所述单补偿系统对精计数盘中的钢球进行步进补偿;And a single compensation system, the single compensation system performs step compensation to the steel balls in the fine counting disc;

所述储料盘、预计数盘和精计数盘整体倾斜,储料盘的进口端最高;所述预计数盘通过第一升降机构带动至最高位时,钢球可以从预计数盘滚到精计数盘中而储料盘的钢球不能滚入到预计数盘中;预计数盘通过第一升降机构带动至最低位时,储料盘中的钢球可以滚入到预计数盘中而预计数盘中的钢球不能滚入到精计数盘中。The storage tray, the pre-counting tray and the precise counting tray are inclined as a whole, and the inlet end of the stock tray is the highest; when the pre-counting tray is driven to the highest position by the first lifting mechanism, the steel balls can roll from the pre-counting tray to the precise counting tray. In the counting tray, the steel balls of the storage tray cannot roll into the estimated counting tray; when the estimated counting tray is driven to the lowest position by the first lifting mechanism, the steel balls in the storage tray can roll into the estimated counting tray and The steel balls in the counting disc cannot roll into the fine counting disc.

所述单补偿系统包括:The single compensation system includes:

设置在储料盘出口一端的进料通道,所述进料通道上端开有补偿槽;A feeding channel arranged at one end of the outlet of the storage tray, and a compensation groove is opened at the upper end of the feeding channel;

设置在储料盘出口一端的补偿推送器,所述补偿推送器为通过气缸带动沿进料通道侧壁升降的推板,所述推板向靠近进料通道一端倾斜,所述推板处于最低位时低于所述储料盘的上端面,处于最高位时高于进料通道的侧壁;A compensation pusher arranged at one end of the outlet of the storage tray, the compensation pusher is a push plate driven by a cylinder to lift up and down along the side wall of the feed channel, the push plate is inclined to the end close to the feed channel, and the push plate is at the lowest position It is lower than the upper end surface of the storage tray when it is at the highest position, and is higher than the side wall of the feeding channel when it is at the highest position;

一端和所述补偿槽出口端连接的补偿管,所述补偿管另一端通过管托支撑在精计数盘进口端一侧,所述补偿管进球端设置有传感器;A compensation tube connected at one end to the outlet end of the compensation tank, the other end of the compensation tube is supported on the side of the inlet end of the fine counting disk through a tube support, and a sensor is provided at the ball end of the compensation tube;

设置在精计数盘进口端补偿管端部的补偿板,所述补偿板上设置有和精计数盘连通的补偿通道;A compensation plate arranged at the end of the compensation tube at the inlet end of the fine counting disc, the compensation plate is provided with a compensation channel communicating with the fine counting disc;

通过电机支架设置在补偿板上的步进电机;A stepper motor set on the compensation plate through the motor bracket;

以及和所述步进电机输出轴固定连接的补偿拨盘,所述补偿拨盘为圆盘结构,和所述补偿管端口相对的一侧面外圆周均布多个槽口,每个槽口容纳一个钢球,所述槽口位于补偿板的补偿通道上方。And a compensation dial fixedly connected to the output shaft of the stepping motor, the compensation dial is a disc structure, and a plurality of notches are evenly distributed on the outer circumference of the side opposite to the port of the compensation tube, and each notch accommodates A steel ball, the notch is located above the compensation channel of the compensation plate.

所述钢球精确计数、尺寸识别装置还包括第二升降机构,所述第二升降机构包括相对设置的上支撑板和下支撑板以及连接在上支撑板和下支撑板之间的升降块,所述升降块调整上支撑板的倾斜角度,所述储料单元、预计数单元和精计数单元均设置在所述上支撑板上。The steel ball accurate counting and size identification device also includes a second lifting mechanism, the second lifting mechanism includes an upper support plate and a lower support plate oppositely arranged and a lifting block connected between the upper support plate and the lower support plate, The lifting block adjusts the inclination angle of the upper supporting plate, and the storage unit, the pre-counting unit and the precise counting unit are all arranged on the upper supporting plate.

所述储料单元还包括设置在储料盘出口端的出口调整机构,所述出口调整机构包括:The storage unit also includes an outlet adjustment mechanism arranged at the outlet end of the storage tray, and the outlet adjustment mechanism includes:

设置在储料盘出口端一侧直角边并和储料盘上端面接触的挡块,所述挡块长度方向设置有滑槽,所述滑槽和固定在储料盘上的滑销滑动配合,所述滑销固定在靠近储料盘一侧凸沿的位置,所述挡块的一端和储料盘的出口端平齐;A stopper arranged on the right-angle side of the outlet end of the storage tray and in contact with the upper surface of the storage tray. The length direction of the stopper is provided with a chute, and the chute is slidably matched with the sliding pin fixed on the storage tray. , the sliding pin is fixed at a position close to the protruding edge on one side of the storage tray, and one end of the stopper is flush with the outlet end of the storage tray;

和所述挡块靠近储料盘出口端一端铰接的第一光杆,所述第一光杆另一端穿过储料盘的凸沿;A first polished rod hinged to one end of the stopper close to the outlet end of the storage tray, and the other end of the first polished rod passes through the convex edge of the storage tray;

以及和储料盘凸沿螺纹连接的固定螺母,所述固定螺母和所述第一光杆垂直,所述固定螺母穿过凸沿,端部和所述第一光杆接触。And a fixing nut threadedly connected with the convex edge of the material storage tray, the fixing nut is perpendicular to the first polished rod, the fixing nut passes through the convex edge, and the end contacts with the first polished rod.

所述面积调整机构包括:The area adjustment mechanism includes:

放置在预计数盘上端面的调整板,所述调整板和所述预计数盘的凸沿平行;An adjustment plate placed on the upper end surface of the pre-counting disk, the adjustment plate is parallel to the convex edge of the pre-counting disk;

一端分别和所述调整板一侧连接的多个第二光杆,所述第二光杆穿过预计数盘一侧的凸沿并伸出;A plurality of second polished rods with one end respectively connected to one side of the adjustment plate, the second polished rods pass through the convex edge on one side of the pre-counter disc and protrude;

以及多个锁紧螺母,每个锁紧螺母和所述凸沿螺纹连接,所述锁紧螺母穿过凸沿,端部和所述第二光杆接触。And a plurality of locking nuts, each locking nut is threadedly connected with the convex edge, the locking nut passes through the convex edge, and the end part is in contact with the second polished rod.

所述第二光杆的数量为两个,两个第二光杆的一个端部分别和调整板的侧壁的两端固定连接。The number of the second polished rods is two, and one end of the two second polished rods is respectively fixedly connected to the two ends of the side wall of the adjustment plate.

所述第一升降机构为直线气缸,所述直线气缸的输出端和所述预计数盘下端面固定连接。The first lifting mechanism is a linear cylinder, and the output end of the linear cylinder is fixedly connected to the lower end surface of the pre-counter disk.

所述出口机构为旋转挡板,所述旋转挡板两端的上方和所述精计数盘出口端两侧的凸沿转动连接,旋转挡板一侧的旋转轴和旋转气缸的输出轴连接;The outlet mechanism is a rotating baffle, and the tops of both ends of the rotating baffle are rotatably connected to the convex edges on both sides of the outlet end of the fine counting disc, and the rotating shaft on one side of the rotating baffle is connected to the output shaft of the rotating cylinder;

所述图像采集单元为工业相机。The image acquisition unit is an industrial camera.

基于钢球精确计数、尺寸识别装置的钢球精确计数、尺寸识别方法包括以下步骤:The steel ball accurate counting and size recognition method based on the steel ball precise counting and size recognition device comprises the following steps:

步骤一:通过第二升降机构调整储料盘、预计数盘和精计数盘的倾斜角度,使钢球依次滚动并呈单层排列,通过第一升降机构调整预计数盘至低位;Step 1: Adjust the inclination angles of the storage tray, the pre-counting tray and the precise counting tray through the second lifting mechanism, so that the steel balls are rolled in sequence and arranged in a single layer, and the pre-counting tray is adjusted to a low position through the first lifting mechanism;

步骤二:通过面积调整机构调整预计数盘的工作面积S,使预计数盘的工作面积S=ND2,其中,D为待计数的钢球直径,N为小于实际需要钢球数量的整数;Step 2: Adjust the working area S of the pre-counting disk through the area adjustment mechanism, so that the working area of the pre-counting disk S=ND 2 , where D is the diameter of the steel balls to be counted, and N is an integer smaller than the number of steel balls actually required;

步骤三:通过出口调整机构调整储料盘出口的大小,使挡块的一个端部和调整板的一个端部接触;Step 3: Adjust the size of the outlet of the storage tray through the outlet adjustment mechanism, so that one end of the stopper is in contact with one end of the adjustment plate;

步骤四:将钢球倒入储料盘中,储料盘中的钢球顺次进入预计数盘中,直到预计数盘工作面积内装满钢球,同时,补偿推送器上下运动带动钢球进入到补偿管中,直到补偿管中装满钢球;Step 4: Pour the steel balls into the storage tray, and the steel balls in the storage tray enter the pre-counting tray in turn until the working area of the pre-counting tray is filled with steel balls. At the same time, the compensation pusher moves up and down to drive the steel balls Enter the compensation tube until the compensation tube is filled with steel balls;

步骤五:通过第一升降机构带动预计数盘至高位,使预计数盘中的钢球滚入到精计数盘中,直到预计数盘中的钢球全部滚入精计数盘后,通过第一升降机构带动预计数盘至低位;Step 5: Drive the pre-counting disc to a high position through the first lifting mechanism, so that the steel balls in the pre-counting disc roll into the fine counting disc, until all the steel balls in the pre-counting disc roll into the fine counting disc, pass the first The lifting mechanism drives the expected counter to the low position;

步骤六:通过工业相机采集精计数盘上的钢球图像,并将钢球图像传至计算机控制系统;Step 6: collect the steel ball image on the precision counting disc through the industrial camera, and transmit the steel ball image to the computer control system;

步骤七:计算机控制系统对钢球图像进行图像处理,获得实际进入到精计数盘中的钢球数量Q及钢球尺寸信息,判断精计数盘中的钢球是否混入其他尺寸钢球,若是,计算机控制系统报警;若否,执行步骤八;Step 7: The computer control system performs image processing on the steel ball image, obtains the quantity Q of steel balls and the size information of the steel balls that actually enter the fine counting disc, and judges whether the steel balls in the fine counting disc are mixed with steel balls of other sizes. If so, Computer control system alarm; if not, perform step eight;

步骤八:计算机控制系统计算获得需要单补偿钢球的数量,即M-Q,其中M为实际需要钢球数量;Step 8: The computer control system calculates the number of steel balls required for single compensation, that is, M-Q, where M is the actual number of steel balls required;

步骤九:根据步骤八中获得的实际需要钢球数量控制步进电机转动,直到经单补偿系统进入到精计数盘中的钢球数量为M-Q;Step 9: Control the rotation of the stepper motor according to the actual number of steel balls required in step 8 until the number of steel balls entering the fine counting disc through the single compensation system is M-Q;

步骤十:工业相机再一次拍摄精计数盘中钢球的图像,重新计数,确认钢球数量为M;Step 10: The industrial camera takes another image of the steel balls in the fine counting tray, counts again, and confirms that the number of steel balls is M;

步骤十一:打开精计数盘出口端的旋转挡板,释放精计数盘中的钢球,完成一次计数及尺寸识别;Step 11: Open the rotary baffle at the outlet end of the fine counting disc, release the steel balls in the fine counting disc, and complete a count and size recognition;

步骤十二:重复步骤四-步骤十一,实现连续计数。Step 12: Repeat steps 4-11 to realize continuous counting.

步骤七中所述的对钢球进行图像处理具体方法为:The concrete method of carrying out image processing to the steel ball described in step seven is:

1)确定图像的有效区域,有效区域以外用黑色代替;1) Determine the effective area of the image, and replace it with black outside the effective area;

2)精计数盘采用黑色,对采集的钢球图像进行二值化处理;每个钢球的中心最亮,灰度值最大,达到250以上,找到这个灰度值最大的点,检索它附近的灰度值在220以上的点,并将他们全部替换成绿色,通过计算机对图像的处理,得到钢球数量并找出规格不一样的钢球后,将规格不一样的钢球标记为红色,机器报警,人工取出规格不一样的钢球。2) The fine counting disk is black, and the collected steel ball image is binarized; the center of each steel ball is the brightest, and the gray value is the largest, reaching more than 250. Find the point with the largest gray value and search for it Points with a gray value above 220, and replace them all with green. After processing the image by computer, get the number of steel balls and find out the steel balls with different specifications, mark the steel balls with different specifications as red , the machine alarms, and the steel balls with different specifications are manually taken out.

步骤一中所述的调整储料盘、预计数盘和精计数盘的倾斜角度保证钢球平稳向下滚动,同时保证钢球单层排列。Adjust the inclination angles of the storage tray, the pre-counting tray and the precise counting tray described in step 1 to ensure that the steel balls roll down smoothly and at the same time ensure that the steel balls are arranged in a single layer.

本发明的有益效果为:本发明的钢球精确计数、尺寸识别装置及方法中的预计数盘可以通过面积的调整使预计数钢球的数量尽量接近且小于目标数即实际需要钢球数量,这样可以减少补偿数,提高效率;精计数盘通过工业相机精确统计数目,计算出需要补偿的个数,再由单补偿系统进行精确补偿,达到采集精确数目的目的。通过相邻半径与平均值的比较确定大、小球,实现对钢球尺寸的识别,避免混入不同规格的钢球造成重大事故的问题。The beneficial effects of the present invention are: the pre-counting plate in the precise counting and size recognition device and method of steel balls of the present invention can make the number of pre-counting steel balls as close as possible and smaller than the target number, that is, the actual number of steel balls required, by adjusting the area. In this way, the number of compensation can be reduced and the efficiency can be improved; the precision counting disc can accurately count the number through the industrial camera, calculate the number that needs to be compensated, and then perform accurate compensation by the single compensation system to achieve the purpose of collecting accurate numbers. The large and small balls are determined by comparing the adjacent radii with the average value, so as to realize the identification of the steel ball size and avoid the problem of major accidents caused by mixing steel balls of different specifications.

附图说明Description of drawings

图1为本发明的钢球精确计数、尺寸识别装置整体结构示意图;Fig. 1 is a schematic diagram of the overall structure of the steel ball accurate counting and size recognition device of the present invention;

图2为本发明的钢球精确计数、尺寸识别装置中单补偿系统结构示意图;Fig. 2 is a schematic structural diagram of the single compensation system in the steel ball accurate counting and size recognition device of the present invention;

图3为本发明的钢球精确计数、尺寸识别装置中出口调整机构示意图;Fig. 3 is a schematic diagram of the outlet adjustment mechanism in the steel ball accurate counting and size recognition device of the present invention;

图4为本发明的钢球精确计数、尺寸识别装置中面积调整机构示意图;Fig. 4 is a schematic diagram of the area adjustment mechanism in the steel ball accurate counting and size recognition device of the present invention;

图5为本发明的钢球精确计数、尺寸识别方法中识别钢球尺寸示意图;Fig. 5 is a schematic diagram of steel ball size identification in the steel ball accurate counting and size identification method of the present invention;

图6为本发明的钢球精确计数、尺寸识别方法中尺寸识别原理图;Fig. 6 is a principle diagram of size recognition in the steel ball accurate counting and size recognition method of the present invention;

其中:1、储料单元,101、储料盘,102、出口调整机构,103、第一光杆,104、固定螺母,105、挡块,2、预计数单元,201、预计数盘,202、面积调整机构,203、调整板,204、第二光杆,205、锁紧螺母,3、精计数单元,301、精计数盘,302、出口机构,303、旋转挡板,4、图像采集单元,401、工业相机,5、单补偿系统,501、步进电机,502、电机支架,503、补偿拨盘,504、补偿板,505、管托,506、补偿管,507、补偿槽,508、进料通道,509、补偿推送器,6、第二升降机构,601、上支撑板,602、升降块,603、下支撑板。Among them: 1. Material storage unit, 101, material storage tray, 102, outlet adjustment mechanism, 103, first polished rod, 104, fixed nut, 105, stopper, 2, pre-counting unit, 201, pre-counting disc, 202, Area adjustment mechanism, 203, adjustment plate, 204, second polished rod, 205, lock nut, 3, fine counting unit, 301, fine counting disc, 302, exit mechanism, 303, rotating baffle, 4, image acquisition unit, 401. Industrial camera, 5. Single compensation system, 501. Stepping motor, 502. Motor bracket, 503. Compensation dial, 504. Compensation plate, 505. Tube holder, 506. Compensation tube, 507. Compensation tank, 508. Feed channel, 509, compensation pusher, 6, second lifting mechanism, 601, upper support plate, 602, lifting block, 603, lower support plate.

具体实施方式Detailed ways

下面结合附图对本发明的实施方式作进一步说明。Embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

参见附图1,本发明的钢球精确计数、尺寸识别装置包括:Referring to accompanying drawing 1, steel ball accurate counting, size identification device of the present invention comprises:

储料单元1,所述储料单元1包括两侧带有凸沿的储料盘101;A storage unit 1, the storage unit 1 includes a storage tray 101 with raised edges on both sides;

设置在储料盘101出口端的预计数单元2,所述预计数单元2包括两侧带有凸沿的预计数盘201、调整预计数盘201工作面积的面积调整机构202以及带动预计数盘201上下运动的第一升降机构;The pre-counting unit 2 arranged at the outlet end of the storage tray 101, the pre-counting unit 2 includes a pre-counting disc 201 with convex edges on both sides, an area adjustment mechanism 202 for adjusting the working area of the pre-counting disc 201 and driving the pre-counting disc 201 The first lifting mechanism that moves up and down;

设置在预计数盘201出口端的精计数单元3,所述精计数单元3包括两侧带有凸沿的精计数盘301以及设置在精计数盘301出口端的出口机构302;The fine counting unit 3 arranged at the outlet end of the pre-counting disc 201, the fine counting unit 3 includes a fine counting disc 301 with convex edges on both sides and an outlet mechanism 302 arranged at the outlet end of the fine counting disc 301;

设置在精计数单元3上方的图像采集单元4,采集精计数盘301上的钢球图像;The image acquisition unit 4 arranged above the fine counting unit 3 collects the steel ball image on the fine counting disc 301;

和所述图像采集单元4连接的计算机控制系统,所述计算机控制系统控制各运动单元运动并对钢球图像进行数据处理,获得钢球数量及钢球尺寸信息;A computer control system connected to the image acquisition unit 4, the computer control system controls the movement of each movement unit and performs data processing on the steel ball image to obtain steel ball quantity and steel ball size information;

以及单补偿系统5,所述单补偿系统5对精计数盘301中的钢球进行步进补偿;And a single compensation system 5, the single compensation system 5 performs step compensation to the steel balls in the fine counting disc 301;

所述储料盘101、预计数盘201和精计数盘301整体倾斜,储料盘101的进口端最高;所述预计数盘201通过第一升降机构带动至最高位时,钢球可以从预计数盘201滚到精计数盘301中而储料盘101的钢球不能滚入到预计数盘201中;预计数盘201通过第一升降机构带动至最低位时,储料盘101中的钢球可以滚入到预计数盘201中而预计数盘201中的钢球不能滚入到精计数盘301中。The storage tray 101, the pre-counting tray 201 and the precise counting tray 301 are inclined as a whole, and the inlet end of the stock tray 101 is the highest; when the pre-counting tray 201 is driven to the highest position by the first lifting mechanism, the steel ball can move from the estimated The counting disc 201 rolls into the fine counting disc 301 and the steel balls of the material storage tray 101 cannot roll into the pre-counting disc 201; Balls can roll into the pre-counting disc 201 and the steel balls in the pre-counting disc 201 cannot roll into the precise counting disc 301 .

参见附图2,所述单补偿系统5包括:Referring to accompanying drawing 2, described single compensation system 5 comprises:

设置在储料盘101出口一端的进料通道508,所述进料通道508上端开有补偿槽507;A feed channel 508 arranged at one end of the outlet of the storage tray 101, the upper end of the feed channel 508 is provided with a compensation groove 507;

设置在储料盘101出口一端的补偿推送器509,所述补偿推送器509为通过气缸带动沿进料通道508侧壁升降的推板,所述推板向靠近进料通道508一端倾斜,所述推板处于最低位时低于所述储料盘101的上端面,处于最高位时高于进料通道508的侧壁;The compensation pusher 509 arranged at one end of the outlet of the storage tray 101, the compensation pusher 509 is a push plate driven by a cylinder to lift along the side wall of the feed channel 508, and the push plate is inclined to the end close to the feed channel 508, so When the push plate is at the lowest position, it is lower than the upper surface of the storage tray 101, and when it is at the highest position, it is higher than the side wall of the feed channel 508;

一端和所述补偿槽507出口端连接的补偿管506,所述补偿管506另一端通过管托505支撑在精计数盘301进口端一侧,所述补偿管506进球端设置有传感器;One end of the compensation tube 506 connected to the outlet end of the compensation tank 507, the other end of the compensation tube 506 is supported on the side of the inlet end of the fine counting disk 301 through the tube support 505, and the ball end of the compensation tube 506 is provided with a sensor;

设置在精计数盘301进口端补偿管506端部的补偿板504,所述补偿板504上设置有和精计数盘301连通的补偿通道;The compensation plate 504 arranged at the end of the compensation pipe 506 at the inlet end of the fine counting disc 301 is provided with a compensation channel communicating with the fine counting disc 301;

通过电机支架502安装在补偿板504上的步进电机501;The stepping motor 501 installed on the compensating board 504 through the motor bracket 502;

以及和所述步进电机501输出轴固定连接的补偿拨盘503,所述补偿拨盘503为圆盘结构,和所述补偿管506端口相对的一侧面外圆周均布多个槽口,每个槽口容纳一个钢球,所述槽口位于补偿板504的补偿通道上方。And the compensation dial 503 fixedly connected to the output shaft of the stepping motor 501, the compensation dial 503 is a disc structure, and a plurality of notches are evenly distributed on the outer circumference of the side opposite to the port of the compensation tube 506, each A steel ball is accommodated in a notch, and the notch is located above the compensation channel of the compensation plate 504 .

所述钢球精确计数、尺寸识别装置还包括第二升降机构6,所述第二升降机构6包括相对设置的上支撑板601和下支撑板603以及连接在上支撑板601和下支撑板603之间的升降块602,所述升降块602调整上支撑板601的倾斜角度,所述储料单元1、预计数单元2和精计数单元3均设置在所述上支撑板601上。The precise counting and size recognition device for steel balls also includes a second elevating mechanism 6, and the second elevating mechanism 6 includes an upper support plate 601 and a lower support plate 603 that are oppositely arranged, and the upper support plate 601 and the lower support plate 603 are connected to each other. The lifting block 602 in between, the lifting block 602 adjusts the inclination angle of the upper support plate 601, and the storage unit 1, the pre-counting unit 2 and the precise counting unit 3 are all arranged on the upper support plate 601.

参见附图3,所述储料单元1还包括设置在储料盘101出口端的出口调整机构102,所述出口调整机构102包括:Referring to Figure 3, the storage unit 1 also includes an outlet adjustment mechanism 102 arranged at the outlet end of the storage tray 101, and the outlet adjustment mechanism 102 includes:

设置在储料盘101出口端一侧直角边并和储料盘101上端面接触的挡块105,所述挡块105长度方向设置有滑槽,所述滑槽和固定在储料盘101上的滑销滑动配合,所述滑销固定在靠近储料盘101一侧凸沿的位置,所述挡块105的一端和储料盘101的出口端平齐;The stopper 105 that is arranged on the right-angled side of the outlet end of the storage tray 101 and contacts the upper end surface of the storage tray 101, the length direction of the stopper 105 is provided with a chute, and the chute is fixed on the storage tray 101 The sliding pin is slidingly fitted, and the sliding pin is fixed at a position close to the protruding edge on one side of the storage tray 101, and one end of the stopper 105 is flush with the outlet end of the storage tray 101;

和所述挡块105靠近储料盘101出口端一端铰接的第一光杆103,所述第一光杆103另一端穿过储料盘101的凸沿;and the first polished rod 103 hinged at one end of the stopper 105 near the outlet end of the storage tray 101, the other end of the first polished rod 103 passes through the convex edge of the storage tray 101;

以及和储料盘101凸沿螺纹连接的固定螺母104,所述固定螺母104和所述第一光杆103垂直,所述固定螺母104穿过凸沿,端部和所述第一光杆103接触。And a fixing nut 104 threadedly connected to the convex edge of the storage tray 101 , the fixing nut 104 is perpendicular to the first polished rod 103 , the fixing nut 104 passes through the convex edge, and its end contacts with the first polished rod 103 .

参见附图4,所述面积调整机构202包括:Referring to accompanying drawing 4, described area adjusting mechanism 202 comprises:

放置在预计数盘201上端面的调整板203,所述调整板203和所述预计数盘201的凸沿平行;The adjustment plate 203 placed on the upper end surface of the pre-counting disk 201, the adjustment plate 203 and the convex edge of the pre-counting disk 201 are parallel;

一端分别和所述调整板203一侧连接的多个第二光杆204,所述第二光杆204穿过预计数盘201一侧的凸沿并伸出;A plurality of second polished rods 204 connected to one side of the adjustment plate 203 at one end respectively, the second polished rods 204 pass through the convex edge on one side of the pre-counter disk 201 and protrude;

以及多个锁紧螺母205,每个锁紧螺母205和所述凸沿螺纹连接,所述锁紧螺母205穿过凸沿,端部和所述第二光杆204接触。And a plurality of locking nuts 205 , each locking nut 205 is threadedly connected with the convex edge, the locking nut 205 passes through the convex edge, and the end part contacts with the second polished rod 204 .

所述第二光杆204的数量为两个,两个第二光杆204的一个端部分别和调整板203的侧壁的两端固定连接。The number of the second polished rods 204 is two, and one end of the two second polished rods 204 is respectively fixedly connected to two ends of the side wall of the adjustment plate 203 .

所述第一升降机构为直线气缸,所述直线气缸的输出端和所述预计数盘201下端面固定连接。The first lifting mechanism is a linear cylinder, and the output end of the linear cylinder is fixedly connected to the lower end surface of the pre-counter disk 201 .

所述出口机构302为旋转挡板303,所述旋转挡板303两端的上方和所述精计数盘301出口端两侧的凸沿转动连接,旋转挡板303一侧的旋转轴和旋转气缸的输出轴连接;The outlet mechanism 302 is a rotating baffle 303, and the top of the two ends of the rotating baffle 303 is rotationally connected with the convex edges on both sides of the outlet end of the fine counting disk 301, and the rotating shaft on one side of the rotating baffle 303 is connected to the side of the rotating cylinder. output shaft connection;

所述图像采集单元4为工业相机401。The image acquisition unit 4 is an industrial camera 401 .

本发明的钢球精确计数、尺寸识别装置工作原理:,当需要计M个钢球时,可以通过对第二光杆204伸出长度的调整来改变预计数盘201的面积,调整完毕以后用锁紧螺母205锁紧,使每次进入预计数盘201钢球的数量都在M以内,预计数盘201的工作面积S=ND2,N取小于M的最大整数值,因为预计数盘201的面积不可能刚好是每个刚球所占正方形面积N倍,最后实际进入预计数盘201的钢球个数为Q,Q与M之间的差值由后面的单补偿机构进行补偿,以达到精确计数的目的。预计数盘201在气缸的带动下下降至低位,回到初始状态。气缸的行程调定为:当它升起来的时候钢球可以顺利的滚到精计数盘301中而储料盘101的钢球不能滚入到预计数盘201中,当气缸降下来的时候,储料盘101的钢球可以顺利滚入到预计数盘201中而不能滚入到精计数盘301中。由于预计数盘201面积的调整会带来一定的死角,钢球的流动不是很顺畅,故采用出口调整机构102来调整储料盘101出口的宽度。通过调整光杆伸出的长度来调整挡板的位置,使小球可以顺利的流入到预计数盘201中。然后预计数盘201升起至高位,使预计数盘201的高度高于储料盘101和精计数盘301,初计数盘中一定数量的钢球会进入精计数盘301进行精确计数。通过精计数盘301上方的CCD相机拍摄精计数盘301中钢球的图像,经过图像处理,对钢球进行精确计数。例如:当需要M个钢球时,通过预计数盘201的调整,到达精计数盘301的钢球个数为Q,Q小于等于目标个数M。单补偿系统5启动,通过计算机给出的信号,单补偿机构自动补偿M-Q个钢球进入精计数盘301,达到精确计数M个钢球的目的。补偿推送器509将储料通道一侧边缘的钢球推到补偿槽507上方,沿斜面自由滑落到补偿槽507中,然后进入补偿管506中储存。补偿推送器509回位,进行下一次推送,直到安装在补偿管506始端的传感器检测到管内的钢球已经储存满了为止。每次推送的钢球数量由补偿推送器509的推板长度确定。补偿推板的宽度只能容纳一排钢球。当需要补偿时,补偿拨盘503由步进电机501驱动旋转,进行单球补偿,所需补偿钢球的数量即为M-Q。为提高补偿效率,调整预计数盘201的面积,使Q的数值小于但越接近M越好。The working principle of the steel ball accurate counting and size recognition device of the present invention: when it is necessary to count M steel balls, the area of the pre-counting disk 201 can be changed by adjusting the extension length of the second polished rod 204, and after the adjustment is completed, use the lock The tight nut 205 is locked so that the number of steel balls entering the pre-counting disc 201 is within M each time, the working area of the pre-counting disc 201 is S=ND 2 , and N is the largest integer value less than M, because the pre-counting disc 201 The area cannot be exactly N times the square area occupied by each rigid ball, and the number of steel balls actually entering the pre-counting disc 201 is Q, and the difference between Q and M is compensated by the single compensation mechanism behind to achieve for exact counting purposes. It is estimated that the counting disc 201 descends to a low position under the drive of the cylinder, and gets back to the initial state. The stroke of the cylinder is set as follows: when it rises, the steel balls can smoothly roll into the precise counting disc 301 and the steel balls of the storage tray 101 cannot roll into the pre-counting disc 201. When the cylinder is lowered, The steel balls of the storage tray 101 can smoothly roll into the pre-counting tray 201 but cannot roll into the precise counting tray 301. Since the adjustment of the area of the counting disc 201 is expected to bring certain dead angles, the flow of the steel balls is not very smooth, so the outlet adjustment mechanism 102 is used to adjust the width of the outlet of the storage tray 101. The position of the baffle is adjusted by adjusting the length of the polished rod so that the balls can flow into the pre-counting disk 201 smoothly. Then the counting disc 201 is expected to rise to a high position, so that the height of the counting disc 201 is higher than the storage tray 101 and the fine counting disc 301, and a certain amount of steel balls in the initial counting disc will enter the fine counting disc 301 for accurate counting. The image of the steel balls in the precise counting disc 301 is captured by a CCD camera above the precise counting disc 301, and the steel balls are accurately counted after image processing. For example: when M steel balls are needed, through the adjustment of the pre-counting disc 201, the number of steel balls arriving at the precise counting disc 301 is Q, and Q is less than or equal to the target number M. The single compensation system 5 is started, and the single compensation mechanism automatically compensates MQ steel balls and enters the precision counting disc 301 through the signal given by the computer, so as to achieve the purpose of accurately counting M steel balls. The compensating pusher 509 pushes the steel ball on one edge of the material storage channel above the compensating groove 507 , slides freely along the inclined plane into the compensating groove 507 , and then enters the compensating pipe 506 for storage. Compensation pusher 509 returns, and pushes next time, until the sensor that is installed in the beginning of compensation pipe 506 detects that the steel ball in the pipe is full. The steel ball quantity that pushes each time is determined by the push plate length of compensation pusher 509. The width of the compensation push plate can only accommodate a row of steel balls. When compensation is required, the compensation dial 503 is driven to rotate by the stepper motor 501 to perform single-ball compensation, and the required number of compensation steel balls is MQ. In order to improve the compensation efficiency, the area of the pre-counter disk 201 is adjusted so that the value of Q is smaller but closer to M, the better.

基于钢球精确计数、尺寸识别装置的钢球精确计数、尺寸识别方法包括以下步骤:The steel ball accurate counting and size recognition method based on the steel ball precise counting and size recognition device comprises the following steps:

步骤一:根据钢球的尺寸规格通过第二升降机构6调整储料盘101、预计数盘201和精计数盘301的倾斜角度,由于每次包装都是长时间包装同一类型的钢球,所以角度不会经常调整,所以在使用之前先调整好第二升降机构6的高度,使钢球能够靠自重由储料通道向下滚动,本实施例以直径为7.938mm的钢球为例,倾斜角度为6-10度,使钢球依次滚动,通过第一升降机构调整预计数盘201至低位;Step 1: Adjust the inclination angles of the storage tray 101, the pre-counting tray 201 and the precise counting tray 301 through the second lifting mechanism 6 according to the size specifications of the steel balls. Since each package is to pack the same type of steel balls for a long time, so The angle will not be adjusted frequently, so adjust the height of the second lifting mechanism 6 before use, so that the steel ball can roll down from the storage channel by its own weight. The angle is 6-10 degrees, so that the steel balls roll sequentially, and the pre-counting disc 201 is adjusted to a low position through the first lifting mechanism;

步骤二:通过面积调整机构202调整预计数盘201的工作面积S,使预计数盘201的工作面积S=ND2,其中,D为待计数的钢球直径,N为小于实际需要钢球数量的整数,本实施例以实际需要钢球数量3000为例;Step 2: Adjust the working area S of the pre-counting disc 201 through the area adjustment mechanism 202, so that the working area S of the pre-counting disc 201 = ND 2 , where D is the diameter of the steel balls to be counted, and N is less than the actual number of steel balls required An integer of , this embodiment takes the actual number of 3000 steel balls as an example;

步骤三:通过出口调整机构102调整储料盘101出口的大小,使挡块105的一个端部和调整板203的一个端部接触,保证储料盘101出口的宽度和预计数盘201进口的宽度相同;Step 3: Adjust the size of the outlet of the storage tray 101 through the outlet adjustment mechanism 102, so that one end of the stopper 105 is in contact with one end of the adjustment plate 203, so as to ensure that the width of the outlet of the storage tray 101 is the same as that of the entrance of the pre-counting tray 201. same width;

步骤四:将钢球倒入储料盘101中,储料盘101中的钢球顺次进入预计数盘201中,直到预计数盘201工作面积内装满钢球,同时,补偿推送器509上下运动带动钢球进入到补偿管506中,直到补偿管506中装满钢球,初始时预计数盘201处于低位,储料盘101中的钢球靠自重滚动到预计数盘201中,并且由于滚动呈单层分布到预计数盘201上,预计数盘201的面积可调整,根据预计数盘201的面积和钢球的直径可粗略计算钢球的数量,当预计数盘201储满钢球时,钢球自然停止进料,通过预计数盘201面积的调节,可以对盘中钢球的数量有一个大致的估计,但一定要小于等于所需钢球的数量;Step 4: Pour the steel balls into the storage tray 101, and the steel balls in the storage tray 101 enter the pre-counting tray 201 in turn until the working area of the pre-counting tray 201 is filled with steel balls. At the same time, the compensation pusher 509 The up and down movement drives the steel balls into the compensating pipe 506 until the compensating pipe 506 is filled with steel balls. Initially, the pre-counting disc 201 is at a low position, and the steel balls in the storage tray 101 roll into the pre-counting disc 201 by their own weight, and Because the rolling is distributed on the pre-counting disc 201 in a single layer, the area of the pre-counting disc 201 can be adjusted, and the number of steel balls can be roughly calculated according to the area of the pre-counting disc 201 and the diameter of the steel balls. When the pre-counting disc 201 is full of steel balls , the steel balls stop feeding naturally, by adjusting the area of the pre-counting plate 201, you can have a rough estimate of the number of steel balls in the plate, but it must be less than or equal to the number of required steel balls;

步骤五:通过第一升降机构带动预计数盘201至高位,使预计数盘201中的钢球滚入到精计数盘301中,当初计数盘中的钢球全部滚入精计数盘后,通过第一升降机构带动预计数盘201至低位;Step 5: Drive the pre-counting disc 201 to a high position through the first lifting mechanism, so that the steel balls in the pre-counting disc 201 roll into the fine counting disc 301. The first lifting mechanism drives the pre-counter 201 to the low position;

步骤六:通过工业相机401采集精计数盘301上的钢球图像,并将钢球图像传至计算机控制系统;Step 6: collect the steel ball image on the precise counting disc 301 through the industrial camera 401, and transmit the steel ball image to the computer control system;

步骤七:计算机控制系统对钢球图像进行图像处理,获得实际进入到精计数盘301中的钢球数量Q及钢球尺寸信息,判断精计数盘301中的钢球是否混入其他尺寸钢球,若是,计算机控制系统报警;若否,执行步骤八;Step 7: The computer control system performs image processing on the steel ball image, obtains the quantity Q of steel balls and the size information of the steel balls actually entering the fine counting disc 301, and judges whether the steel balls in the fine counting disc 301 are mixed with steel balls of other sizes, If so, the computer control system reports to the police; If not, perform step eight;

步骤八:计算机控制系统计算获得需要单补偿钢球的数量,即M-Q,其中M为实际需要钢球数量;Step 8: The computer control system calculates the number of steel balls required for single compensation, that is, M-Q, where M is the actual number of steel balls required;

步骤九:根据步骤八中获得的实际需要钢球数量控制步进电机501转动,直到经单补偿系统5进入到精计数盘301中的钢球数量为M-Q;Step 9: Control the stepper motor 501 to rotate according to the actual required steel ball quantity obtained in step 8 until the number of steel balls entering the fine counting disc 301 through the single compensation system 5 is M-Q;

步骤十:工业相机401再一次拍摄精计数盘301中钢球的图像,重新计数,确认钢球数量为M;Step 10: The industrial camera 401 takes another image of the steel balls in the fine counting disc 301, counts again, and confirms that the number of steel balls is M;

步骤十一:打开精计数盘301出口端的旋转挡板303,释放精计数盘301中的钢球,完成一次技术及尺寸识别;Step 11: Open the rotary baffle 303 at the outlet end of the fine counting disc 301, release the steel balls in the fine counting disc 301, and complete a technical and size identification;

步骤十二:重复步骤四-步骤十一,实现连续计数。Step 12: Repeat steps 4-11 to realize continuous counting.

参见附图5,步骤七中所述的对钢球进行图像处理具体方法为:Referring to accompanying drawing 5, the concrete method of carrying out image processing to steel ball described in step 7 is:

1)确定图像的有效区域,有效区域以外用黑色代替;1) Determine the effective area of the image, and replace it with black outside the effective area;

2)精计数盘301采用黑色,对采集的钢球图像进行二值化处理;利用钢球比精计数盘301亮的特性,即钢球和精计数盘301有较大的灰度差,每个钢球的中心最亮,灰度值最大,能达到250以上,找到这个灰度值最大的点,然后检索他附近的灰度值在220以上的点,并将他们全部替换成绿色,这样钢球就可以用一个小绿斑点来代替,同时也可知道球心的位置即灰度值最大的坐标,方便后面的大小球的判断。通过计算机对图像的处理,找出规格不一样的钢球后,标记为红色,机器报警,人工取出规格不一样的钢球达到对钢球尺寸识别的目的,图5中左侧图中间虚线球为小球,其余为正常球,图5中右侧图中间虚线球为大球,其余为正常球。2) The fine counting disc 301 is black, and the collected steel ball image is binarized; the characteristic that the steel ball is brighter than the fine counting disc 301 is used, that is, the steel ball and the fine counting disc 301 have a larger gray scale difference, and each The center of a steel ball is the brightest and has the largest gray value, which can reach more than 250. Find the point with the largest gray value, and then retrieve the points near it with a gray value above 220, and replace them all with green, so that The steel ball can be replaced by a small green spot, and at the same time, the position of the center of the ball, that is, the coordinate with the largest gray value, can be known, which is convenient for the judgment of the size of the ball later. Through the computer processing of the image, after the steel balls with different specifications are found, they are marked in red, and the machine alarms, and the steel balls with different specifications are manually taken out to achieve the purpose of identifying the size of the steel balls. It is a small ball, and the rest are normal balls. The dotted ball in the middle of the right picture in Figure 5 is a big ball, and the rest are normal balls.

在倾斜的精计数盘301上,钢球由于自重向下滚动,所以钢球不会孤立存在,而是与其它钢球紧密靠在一起。故以所需要判断的钢球为中心,确定计数区域,选出一部分钢球并找出小球的球心即最亮的那个点。On the inclined fine counting disc 301, the steel balls roll down due to their own weight, so the steel balls do not exist in isolation, but are closely connected with other steel balls. Therefore, take the steel ball to be judged as the center, determine the counting area, select a part of the steel ball and find the center of the ball, which is the brightest point.

尺寸识别的方法如下:由于精计数盘倾斜以及钢球向下滚动一定的距离后停止,精计数盘中的每个钢球至少与一个其它钢球靠在一起。为消除工业相机像差和畸变的影响,尺寸识别之前把精计数盘按坐标分成多个正方形区域,在每个区域内对钢球进行图像处理计算和尺寸识别。在一个区域内,通过计算机控制系统对钢球图像的处理计算出第一个钢球与所有相邻钢球之间的球心距离,并求出它们的最小值,该最小值一定是紧靠在一起的两个钢球的球心距。该最小值是为了去除与它不相邻的钢球之间的距离,因为最小值一定是与它紧密相邻的钢球之间的距离,而不与他相邻钢球的距离一定大于这个值,如图6所示。在三个钢球中a为紧靠在一起的钢球之间的距离,故a小于b和c,a为最小值。再计算与第一个钢球相邻的第二个钢球与所有相邻钢球的球心距,依次类推,按照平面坐标X、Y两个方向搜索,直到计算完区域内的所有钢球。之后计算这些最小值的平均值,如果盘中有大球,则该平均值大于正常球的球心距;如果盘中有小球,则该平均值小于正常紧靠在一起正常钢球的球心距。从第一个球开始按顺序依次用每个最小值与平均值比较,当某一数值大于平均值时,则该钢球就是大球,如果某一数值小于平均值,那么该钢球就是小球。The method of size identification is as follows: due to the inclination of the fine counting disc and the steel balls rolling down a certain distance and then stopping, each steel ball in the fine counting disc is close to at least one other steel ball. In order to eliminate the influence of industrial camera aberration and distortion, the precise counting disk is divided into multiple square areas according to the coordinates before the size recognition, and the image processing calculation and size recognition of the steel ball are performed in each area. In an area, the distance between the center of the first steel ball and all adjacent steel balls is calculated through the processing of the steel ball image by the computer control system, and their minimum value is calculated, and the minimum value must be close to The distance between the centers of two steel balls together. The minimum value is to remove the distance between the steel balls that are not adjacent to it, because the minimum value must be the distance between the steel balls that are closely adjacent to it, and the distance between the steel balls that are not adjacent to him must be greater than this value, as shown in Figure 6. Among the three steel balls, a is the distance between the steel balls that are close together, so a is smaller than b and c, and a is the minimum value. Then calculate the center distance between the second steel ball adjacent to the first steel ball and all adjacent steel balls, and so on, search according to the two directions of plane coordinates X and Y, until all the steel balls in the area are calculated . Then calculate the average value of these minimum values. If there are large balls in the plate, the average value is greater than the center distance of normal balls; heart distance. Starting from the first ball, compare each minimum value with the average value in order. When a certain value is greater than the average value, the steel ball is a big ball. If a certain value is smaller than the average value, then the steel ball is a small ball. ball.

Claims (8)

1. Steel ball accurate counting, size recognition device, its characterized in that includes:
the storage unit (1), the storage unit (1) comprises a storage disc (101) with convex edges at two sides;
the pre-counting unit (2) is arranged at the outlet end of the storage disc (101), and the pre-counting unit (2) comprises a pre-counting disc (201) with convex edges at two sides, an area adjusting mechanism (202) for adjusting the working area of the pre-counting disc (201) and a first lifting mechanism for driving the pre-counting disc (201) to move up and down;
the fine counting unit (3) is arranged at the outlet end of the pre-counting disc (201), and the fine counting unit (3) comprises a fine counting disc (301) with convex edges at two sides and an outlet mechanism (302) arranged at the outlet end of the fine counting disc (301);
an image acquisition unit (4) arranged above the fine counting unit (3) for acquiring the steel ball image on the fine counting disc (301);
the computer control system is connected with the image acquisition unit (4) and controls each motion unit to move and performs data processing on the steel ball images to obtain the number of steel balls and the size information of the steel balls;
the single compensation system (5) performs stepping compensation on the steel balls in the fine counting disc (301);
the storage disc (101), the pre-counting disc (201) and the fine counting disc (301) are integrally inclined, and the inlet end of the storage disc (101) is highest; when the pre-counting disc (201) is driven to the highest position by the first lifting mechanism, steel balls can roll from the pre-counting disc (201) to the fine counting disc (301) and steel balls of the storage disc (101) cannot roll into the pre-counting disc (201); when the pre-counting disc (201) is driven to the lowest position by the first lifting mechanism, steel balls in the storage disc (101) can roll into the pre-counting disc (201), and steel balls in the pre-counting disc (201) cannot roll into the fine-counting disc (301);
the single compensation system (5) comprises:
a feeding channel (508) arranged at one end of the outlet of the storage disc (101), wherein a compensation groove (507) is formed at the upper end of the feeding channel (508);
the compensating pusher (509) is arranged at one end of the outlet of the storage disc (101), the compensating pusher (509) is a push plate which is driven by a cylinder to lift along the side wall of the feeding channel (508), the push plate is inclined towards one end close to the feeding channel (508), the push plate is lower than the upper end surface of the storage disc (101) when being at the lowest position, and is higher than the side wall of the feeding channel (508) when being at the highest position;
one end of the compensation tube (506) is connected with the outlet end of the compensation groove (507), the other end of the compensation tube (506) is supported on one side of the inlet end of the fine counting disc (301) through a tube bracket (505), and a sensor is arranged at the ball inlet end of the compensation tube (506);
the compensating plate (504) is arranged at the end part of the compensating tube (506) at the inlet end of the fine counting disc (301), and a compensating channel communicated with the fine counting disc (301) is arranged on the compensating plate (504);
a stepping motor (501) provided on the compensation plate (504) through a motor bracket (502);
the compensation driving plate (503) is fixedly connected with the output shaft of the stepping motor (501), the compensation driving plate (503) is of a disc structure, a plurality of notches are uniformly distributed on the outer circumference of one side surface opposite to the port of the compensation pipe (506), each notch accommodates one steel ball, and the notch is positioned above a compensation channel of the compensation plate (504);
the area adjustment mechanism (202) includes:
an adjusting plate (203) arranged on the upper end surface of the pre-counting disc (201), wherein the adjusting plate (203) is parallel to the convex edge of the pre-counting disc (201);
a plurality of second polished rods (204) with one ends respectively connected with one side of the adjusting plate (203), wherein the second polished rods (204) penetrate through the convex edges of one side of the pre-counting disc (201) and extend out;
and a plurality of lock nuts (205), each lock nut (205) is in threaded connection with the convex edge, the lock nuts (205) penetrate through the convex edge, and the end parts of the lock nuts are in contact with the second polished rod (204).
2. The steel ball accurate counting and size identifying device according to claim 1, further comprising a second lifting mechanism (6), wherein the second lifting mechanism (6) comprises an upper supporting plate (601) and a lower supporting plate (603) which are oppositely arranged, and a lifting block (602) connected between the upper supporting plate (601) and the lower supporting plate (603), the lifting block (602) adjusts the inclination angle of the upper supporting plate (601), and the storage unit (1), the pre-counting unit (2) and the accurate counting unit (3) are all arranged on the upper supporting plate (601).
3. The steel ball accurate counting, size identifying device according to claim 1, characterized in that the storage unit (1) further comprises an outlet adjustment mechanism (102) arranged at the outlet end of the storage tray (101), the outlet adjustment mechanism (102) comprising:
the sliding block (105) is arranged on one right-angle edge of the outlet end of the storage disc (101) and is contacted with the upper end face of the storage disc (101), a sliding groove is formed in the length direction of the block (105), the sliding groove is in sliding fit with a sliding pin fixed on the storage disc (101), the sliding pin is fixed at a position close to the protruding edge of one side of the storage disc (101), and one end of the block (105) is flush with the outlet end of the storage disc (101);
the first polished rod (103) is hinged to one end, close to the outlet end of the storage disc (101), of the stop block (105), and the other end of the first polished rod (103) penetrates through the convex edge of the storage disc (101);
and the fixing nut (104) is in threaded connection with the convex edge of the storage disc (101), the fixing nut (104) is perpendicular to the first polished rod (103), the fixing nut (104) penetrates through the convex edge, and the end part of the fixing nut is in contact with the first polished rod (103).
4. The steel ball accurate counting and size identifying device according to claim 1, wherein the number of the second polished rods (204) is two, and one end of each of the two second polished rods (204) is fixedly connected with two ends of the side wall of the adjusting plate (203).
5. The steel ball accurate counting and size identifying device according to claim 1, wherein the first lifting mechanism is a linear cylinder, and the output end of the linear cylinder is fixedly connected with the lower end surface of the pre-counting disc (201); the outlet mechanism (302) is a rotary baffle (303), the upper parts of the two ends of the rotary baffle (303) are rotationally connected with the convex edges on the two sides of the outlet end of the fine counting disc (301), and the rotary shaft on one side of the rotary baffle (303) is connected with the output shaft of a motor;
the image acquisition unit (4) is an industrial camera (401).
6. The steel ball accurate counting and size identifying method based on the steel ball accurate counting and size identifying device as claimed in claim 1, which is characterized by comprising the following steps:
step one: the inclination angles of the storage disc (101), the pre-counting disc (201) and the fine counting disc (301) are adjusted through the second lifting mechanism (6), so that the steel balls roll in sequence and are arranged in a single layer, and the pre-counting disc (201) is adjusted to be at a low position through the first lifting mechanism;
step two: the working area S of the pre-counting disk (201) is adjusted by an area adjusting mechanism (202) so that the working area S=ND of the pre-counting disk (201) 2 Wherein D is the diameter of the steel balls to be counted, and N is an integer smaller than the number of the steel balls actually needed;
step three: the size of the outlet of the storage disc (101) is adjusted through the outlet adjusting mechanism (102), so that one end part of the stop block (105) is contacted with one end part of the adjusting plate (203);
step four: pouring steel balls into a storage disc (101), sequentially entering the steel balls in the storage disc (101) into a pre-counting disc (201) until the working area of the pre-counting disc (201) is filled with the steel balls, and simultaneously, driving the steel balls to enter a compensation tube (506) by up-and-down movement of a compensation pusher (509) until the steel balls are filled in the compensation tube (506);
step five: driving the pre-counting disc (201) to a high position through a first lifting mechanism, enabling steel balls in the pre-counting disc (201) to roll into the fine counting disc (301), and driving the pre-counting disc (201) to a low position through the first lifting mechanism after all steel balls in the pre-counting disc (201) roll into the fine counting disc (301);
step six: acquiring a steel ball image on a precise counting disc (301) through an industrial camera (401), and transmitting the steel ball image to a computer control system;
step seven: the computer control system performs image processing on the steel ball image to obtain the number Q of the steel balls actually entering the fine counting disc (301) and the size information of the steel balls, judges whether the steel balls in the fine counting disc (301) are mixed with steel balls of other sizes, and if yes, the computer control system alarms; if not, executing the step eight;
step eight: the computer control system calculates and obtains the number of the steel balls needing single compensation, namely M-Q, wherein M is the number of the steel balls actually needed;
step nine: controlling the stepping motor (501) to rotate according to the number of the steel balls actually required obtained in the step eight until the number of the steel balls entering the fine counting disc (301) through the single compensation system (5) is M-Q;
step ten: the industrial camera (401) shoots the image of the steel balls in the fine counting disc (301) again, counts again, and confirms that the number of the steel balls is M;
step eleven: opening a rotary baffle (303) at the outlet end of the fine counting disc (301), releasing steel balls in the fine counting disc (301), and completing one-time technology and size identification;
step twelve: repeating the fourth step and the eleventh step to realize continuous counting.
7. The method for accurately counting and identifying the size of the steel ball according to claim 6, wherein the specific method for performing image processing on the steel ball in the seventh step is as follows:
1) Determining an effective area of the image, wherein the effective area is replaced by black;
2) The fine counting disc (301) adopts black, and binarizes the collected steel ball image; the center of each steel ball is brightest, the gray value is the largest, the gray value reaches more than 250, the point with the largest gray value is found, the point with the gray value more than 220 near the point is searched, all the points are replaced with green, the number of the steel balls is obtained through the processing of a computer on an image, after the steel balls with different specifications are found, the steel balls with different specifications are marked as red, a machine is used for alarming, and the steel balls with different specifications are manually taken out.
8. The method for precisely counting and identifying the size of the steel balls according to claim 6, wherein the inclination angles of the storage disc (101), the pre-counting disc (201) and the precise counting disc (301) are adjusted in the first step to ensure that the steel balls roll downwards smoothly and simultaneously ensure single-layer arrangement of the steel balls.
CN201710683914.6A 2017-08-11 2017-08-11 Device and method for precise counting and size recognition of steel balls Active CN107274407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710683914.6A CN107274407B (en) 2017-08-11 2017-08-11 Device and method for precise counting and size recognition of steel balls

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710683914.6A CN107274407B (en) 2017-08-11 2017-08-11 Device and method for precise counting and size recognition of steel balls

Publications (2)

Publication Number Publication Date
CN107274407A CN107274407A (en) 2017-10-20
CN107274407B true CN107274407B (en) 2023-07-18

Family

ID=60080254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710683914.6A Active CN107274407B (en) 2017-08-11 2017-08-11 Device and method for precise counting and size recognition of steel balls

Country Status (1)

Country Link
CN (1) CN107274407B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113096106B (en) * 2021-04-16 2024-10-25 洛阳理工学院 Steel ball detection method based on machine vision
CN114013988B (en) * 2021-10-28 2023-08-01 惠州佰维存储科技有限公司 SSD transfer method and device, readable storage medium and electronic equipment
CN116384435B (en) * 2023-03-30 2024-03-22 华能山东石岛湾核电有限公司 System and method for judging neglected recording of high-temperature gas cooled reactor counter

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4918627A (en) * 1986-08-04 1990-04-17 Fmc Corporation Computer integrated gaging system
JPH11211420A (en) * 1998-01-20 1999-08-06 Fuji Mach Mfg Co Ltd Optical dimension measurement and device therefor
CN101572828A (en) * 2009-05-20 2009-11-04 长春理工大学 Method for correcting distortion in real time based on GPU camera and video camera
EP2515526A2 (en) * 2011-04-08 2012-10-24 DigitalOptics Corporation Europe Limited Display device with image capture and analysis module
CN105374042A (en) * 2015-11-30 2016-03-02 中国计量学院 Device and method of on-line automatic count of fries on the basis of machine vision

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6151406A (en) * 1997-10-09 2000-11-21 Cognex Corporation Method and apparatus for locating ball grid array packages from two-dimensional image data
US9032745B2 (en) * 2007-04-27 2015-05-19 Whirlpool Corporation Ice imaging system
CN101221118A (en) * 2007-12-07 2008-07-16 东华大学 A system and method for intelligently identifying and counting tuberculosis bacteria in microscopic images of sputum smears
CN101387493B (en) * 2008-07-10 2010-09-08 长春理工大学 Non-contact photoelectric detection method for shape, position and size of iron tower component holes
CN101766476B (en) * 2009-07-08 2011-05-11 中国科学院自动化研究所 Auto-fluorescence molecule imaging system
CN102156981A (en) * 2011-03-10 2011-08-17 北京航空航天大学 Regularized high-order statistics based hyperspectral space multi-target detection method
CN102289824B (en) * 2011-07-06 2013-04-24 湖南大学 Method for positioning plane centroid of pipe orifice image of condenser
KR101767093B1 (en) * 2012-12-14 2017-08-17 한화테크윈 주식회사 Apparatus and Method for color restoration
CN103164740B (en) * 2013-03-04 2016-04-06 无锡市飞云球业有限公司 A kind of steel ball intelligence robot scaler and automatic counting method thereof
CN103544524A (en) * 2013-10-11 2014-01-29 天津工业大学 Bar reviewing-counting method and device
US20160180544A1 (en) * 2014-12-19 2016-06-23 Sstatzz Oy Apparatus for camera-assisted trajectory estimation of a sensorized sports projectile
CN207115500U (en) * 2017-08-11 2018-03-16 长春理工大学 Steel ball accurate metering, Dimensions recognition device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4918627A (en) * 1986-08-04 1990-04-17 Fmc Corporation Computer integrated gaging system
JPH11211420A (en) * 1998-01-20 1999-08-06 Fuji Mach Mfg Co Ltd Optical dimension measurement and device therefor
CN101572828A (en) * 2009-05-20 2009-11-04 长春理工大学 Method for correcting distortion in real time based on GPU camera and video camera
EP2515526A2 (en) * 2011-04-08 2012-10-24 DigitalOptics Corporation Europe Limited Display device with image capture and analysis module
CN105374042A (en) * 2015-11-30 2016-03-02 中国计量学院 Device and method of on-line automatic count of fries on the basis of machine vision

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
二元光学在凸非球面零件检测中的应用;肖永鹏等;东北师大学报;第39卷(第3期);131-133 *
基于图像识别技术的钢球精确计数方法;王忠山等;长春理工大学学报;第38卷(第3期);94-96 *
蒲昭邦等.测控仪器设计.机械工业出版社,2007,(第1版),76-77. *

Also Published As

Publication number Publication date
CN107274407A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
CN107274407B (en) Device and method for precise counting and size recognition of steel balls
CN108942484B (en) Automatic on-line detection system for isolator
CN105784716B (en) Friction plate Quality Inspection System
CN207115500U (en) Steel ball accurate metering, Dimensions recognition device
CN104502356A (en) Automatic detection method for defects of inner surface of sliding bearing on basis of computer vision
CN104438100A (en) Visual detection device for screw detection
CN204359271U (en) The pick-up unit of semiconductor wafer
CN108120375A (en) A kind of cylinder bar Linearity surveying method and its application system
CN116753823A (en) Automatic production detection device and method for electronic scale
CN104438119A (en) Screw detection machine
CN107583875A (en) A kind of table tennis anti-pumping performance detection means
CN111039070B (en) Automatic cloth inspecting machine
CN112871717B (en) High-precision sorting device and method for steel ball diameter
CN110146028B (en) Silver colloid measuring equipment and measuring method
CN109990722A (en) A bottle cap inspection equipment
CN218066343U (en) Fin detection device
CN207494053U (en) A kind of table tennis anti-pumping performance detection device
CN112710506B (en) Food detection equipment
CN209783531U (en) Silver colloid measuring equipment
CN205702185U (en) A kind of stamping machine rotary transfer feed mechanism
CN205002732U (en) Motor shaft screw thread size optics automatic measure machine
CN111069065B (en) Spherical fruit automatic grading machine based on vision
CN115727773A (en) High-precision wall thickness detection device and detection method for capacitor aluminum shell
CN204881540U (en) Ball cage automatic check out system
CN104897074B (en) A kind of cage retainer automatic checkout system

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