Cigarette box stack type anomaly detection method and device based on binocular vision
Through binocular cameras and stereo vision technology, the stacking abnormalities of cigarette boxes are identified and monitored, which solves the problem that existing photoelectric switches cannot detect stacking abnormalities and the number of cigarette boxes inconsistent, and realizes real-time monitoring and abnormal detection of automated three-dimensional warehouses. Improves production stability and efficiency.
Patent Information
- Application Number
- CN202410957966.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-22
AI Technical Summary
The existing photoelectric switches cannot detect the stacking abnormality and the number of cigarette boxes in real time, and there are false alarms and missed reports, and the placement of goods cannot be effectively monitored, resulting in damage to the finished cigarette boxes and stagnation in production.
Images are collected by binocular cameras, and three-dimensional data point cloud maps are generated through stereoscopic visual reconstruction, identify the category, position and shape of cigarette boxes, monitor stacking abnormalities in real time, and generate panoramic images through feature point matching and stitching techniques, and compare and judge abnormalities with standard models. .
Real-time monitoring of stacking piles is realized, accurate detection of stacking abnormalities and smoke boxes, reducing false alarms and missed reports, improving production stability and efficiency, and reducing finished product damage.
Smart Images

Figure CN119006368A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of machine vision, and in particular to a method and device for detecting cigarette box stack abnormalities based on binocular vision. Background Art
[0002] The automated three-dimensional warehouse is the main equipment for the storage and inventory of finished cigarette box auxiliary materials. The main body of the automated three-dimensional warehouse is composed of shelves, aisle stacking cranes, inbound (outbound) workbenches, and automatic inbound (outbound) and operation control systems. The shelves are buildings or structures of steel or reinforced concrete structures. The shelves are standard-sized cargo spaces. The aisle stacking cranes travel through the aisles between the shelves to complete the storage and retrieval of goods.
[0003] Due to the high degree of automation of the equipment, it is impossible to monitor the working status of the stacker and the placement of the goods in real time and intuitively during operation. For example, the number of cigarette boxes does not match due to empty grabbing and other situations in the front-end stacking process, which will cause the warehousing information to be inconsistent with the actual goods. At the same time, the cigarette box sealing tape is not firmly attached or has an opening, or the finished product stack collapses during the stacker fork picking process, which will cause abnormal stacking, resulting in damage to the finished cigarette boxes, increasing the troubleshooting time and affecting the normal warehousing of production.
[0004] At present, the stacking type detection of the cargo platform of the stacker is mainly completed by photoelectric sensors. Two sets of photoelectric limit switches are installed on the upper, left and right planes of the cargo platform. The two sets of limit switches on each plane cross-emit lasers to form an X-shaped laser detection line. If the stack is too wide, too long or too high to block the laser line, the switch can detect it and alarm. However, there are still the following defects:
[0005] 1. Existing photoelectric switches can only detect over-limit of regular stacks. If the stack is abnormal and causes partial over-limit of the stack, but does not block the laser line, the photoelectric switch cannot detect and alarm.
[0006] 2. The existing photoelectric switch is also unable to detect the situation where the stack type does not exceed the limit but the number of cigarette boxes in the stack is incorrect.
[0007] 3. Existing photoelectric switches often have false alarms or missed alarms due to looseness and displacement. Summary of the invention
[0008] To solve the above problems, the present application provides a method and device for detecting cigarette box stack abnormalities based on binocular vision. By collecting images through a binocular camera, a three-dimensional data point cloud map is obtained, the type, position and shape of each cigarette box is identified, and the stack on the loading platform is monitored in real time to see if there are any abnormalities.
[0009] The technical solution adopted by the present invention to solve the technical problem is:
[0010] The present invention provides a method for detecting abnormality of cigarette box stack type based on binocular vision, comprising the following steps:
[0011] Step S1: Establishing the standard model
[0012] The images of standard piles of each category are collected by binocular cameras and reconstructed by stereo vision to form three-dimensional point cloud data, and the standard model of each category is established based on this data;
[0013] Step S2: Stack detection
[0014] The two perspectives provided by the binocular camera are used to calculate the depth information of the object in the image, and the presence or absence of the object is determined by comparing the position difference of the object under the two perspectives;
[0015] Step S3: Image stitching
[0016] When the binocular camera detects that the stack image is stable, it collects images from two perspectives, determines the overlapping area of the two images, detects feature points in the overlapping area, matches the two images through the feature points, aligns and splices them, and finally post-processes the spliced panoramic image;
[0017] Step S4: Stack type analysis
[0018] The panoramic image processed in step S3 generates three-dimensional point cloud data of the stack by calculating parallax, segmenting and identifying each cigarette box, determining the category, shape and position of each cigarette box, comparing the three-dimensional point cloud data of the current category with the standard model of the stack of the corresponding category, and judging whether there is any abnormality in the cigarette box in the stack;
[0019] Step S5: Exception handling and recording
[0020] If the difference between the smoke box and the smoke box corresponding to the position in the standard model exceeds the preset threshold, the system determines that the smoke box is abnormal, and then enters the abnormality handling process, and records the time, location and specific description of each abnormal situation;
[0021] As an improvement of the above solution, step S3: image stitching
[0022] When the binocular camera detects that the stack image is stable, it collects images from two perspectives, determines the overlapping area of the two images, detects feature points in the overlapping area using SIFT, SURF or ORB algorithm, generates feature point descriptors using BRIEF algorithm, matches the two images using nearest neighbor matching or RANSAC algorithm for the feature point descriptors, aligns the two images using an image registration algorithm based on panoramic transformation, stitches the aligned images using multi-resolution stitching, Poisson fusion or multi-band fusion method to generate a panoramic image, and then performs post-processing on the stitched panoramic image to correct color, remove distortion and remove stitching defects.
[0023] As an improvement of the above solution, in step S3, the process of stitching the aligned images includes merging overlapping areas, filling gaps and fusing boundaries.
[0024] As an improvement of the above solution, in step S3, the panoramic transformation image registration algorithm is an affine transformation image registration algorithm or a perspective transformation image registration algorithm.
[0025] As an improvement of the above solution, in step S4, the abnormality handling process includes stopping the operation on the stack and triggering an alarm to notify the operator.
[0026] As an improvement of the above solution, the binocular vision-based cigarette box stack type abnormality detection method further includes:
[0027] Step S6: Counting the number of cigarette boxes
[0028] After each cigarette box is identified, the number of abnormal cigarette boxes is counted, and all normal cigarette boxes are classified and counted according to the category or size information of the cigarette boxes.
[0029] The present invention also provides a device for detecting abnormality of cigarette box stack type based on binocular vision, which is applied to any of the above-mentioned methods for detecting abnormality of cigarette box stack type based on binocular vision, comprising a stereoscopic warehouse, a lane stacking crane, and a central control room, lanes are arranged between the stereoscopic warehouses, the stereoscopic warehouse comprises a plurality of cargo platforms, the lane stacking crane transports the stacks to the cargo platforms, and the device for detecting abnormality of cigarette box stack type based on binocular vision further comprises a binocular camera assembly;
[0030] A bracket is arranged above the cargo platform, and the binocular camera assembly includes a binocular camera and a visual analyzer. The binocular camera includes two 3D cameras, and the two 3D cameras are arranged opposite to each other on the bracket. The images collected by the 3D camera are uploaded to the visual analyzer for stack reconstruction and analysis, and the information is uploaded to the central control room, and the central control room is used to monitor in real time whether there is any abnormality in the stack.
[0031] As an improvement of the above solution, the visual analyzer is communicatively connected to an audible and visual alarm for sounding an alarm when the stack is abnormal.
[0032] As an improvement to the above solution, a wireless access point is installed in the central control room, and a wireless access point is separately set in each lane, and each wireless access point in the lane communicates with the adjacent visual analyzer through a network. This network configuration can improve the communication efficiency and data transmission speed between devices, and ensure the stability and accuracy of the cigarette box stack type abnormality detection device.
[0033] The beneficial effects brought by the present invention are:
[0034] The present invention uses a binocular camera to detect the cargo platform stack, supports multiple cameras for image stitching, and can be installed and deployed in a small space;
[0035] The present invention uses visual recognition technology to monitor the operation of the cargo platform of the finished product high-bay warehouse stacker, and feeds back the visual recognition picture and abnormal information to the control terminal through the network. The image data can be intuitively analyzed to detect abnormal conditions of the stack, realize the comparison of the quantity of goods, and solve the problem of stack collapse and damage of finished cigarette boxes caused by blind operation due to the inability to see the abnormal conditions;
[0036] The present invention uses widely used low-cost cameras and embedded computers, is easy to implement and promote, can reduce the cost of equipment and facilitate popularization. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0038] Attached Figure 1 This is a flow chart of a method for detecting cigarette box stack abnormalities based on binocular vision in the present application. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] In the description of the present invention, it should be understood that the terms "upper side", "lower side", "upper end", "two ends", "width", "height", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0041] In the present invention, unless otherwise clearly specified and limited, the terms "set", "install", "connect", "connect", "connection", "communication" and the like should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection; it can be a mechanical connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0042] Example 1
[0043] See also Figure 1 This embodiment provides a method for detecting abnormality of cigarette box stack type based on binocular vision, comprising the following steps:
[0044] Step S1: Establishing the standard model
[0045] The images of each category of standard stacks are collected by binocular cameras and reconstructed through stereo vision to form three-dimensional point cloud data, and a standard model of each category is established based on this, which is used for subsequent comparison with the currently inspected stack.
[0046] The above-mentioned stereoscopic vision reconstruction forms three-dimensional point cloud data of the standard stack according to the method of step S3 and step S4 below.
[0047] Step S2: Stack detection
[0048] Most of the time, there is no cargo on the loading platform. After the binocular camera detects the stack, the next step is carried out: using the two perspectives provided by the binocular camera, the depth information of the object in the image is calculated, and the position difference of the object under the two perspectives is compared to determine whether the object exists;
[0049] Step S3: Image stitching
[0050] Since the stack may enter the loading platform from both sides, that is, from any lane direction on both sides, the images of the 3D cameras on both sides are not synchronized. When the binocular camera detects that the stack image is stable, the following steps are performed:
[0051] The binocular camera collects images from two perspectives, determines the overlapping area of the two images, and uses algorithms such as SIFT, SURF, or ORB to detect feature points in the overlapping area. Feature points can be key points, corner points, edges, etc.
[0052] The BRIEF algorithm is used to generate feature point descriptors, and the nearest neighbor matching or RANSAC algorithm is used to match the two images. The matching goal is to find similar feature point pairs in the same scene for subsequent image alignment and splicing.
[0053] The image registration algorithm based on panoramic transformation (such as affine transformation and perspective transformation) aligns two images. The goal of alignment is to make the overlapping areas between adjacent images match as much as possible, so as to achieve subsequent seamless image stitching.
[0054] The aligned images are stitched together using methods such as multi-resolution stitching, Poisson fusion or multi-band fusion to generate a panoramic image. The image stitching process includes steps such as merging overlapping areas, filling gaps and fusing boundaries.
[0055] Finally, the stitched panoramic images are post-processed, such as color correction, distortion removal, and stitching defect removal, to improve image quality and visual effects.
[0056] Step S4: Stack type analysis
[0057] The panoramic image processed by step S3 generates the three-dimensional point cloud data of the stack by calculating the parallax, and these point cloud data can represent the three-dimensional position and shape of each cigarette box in the stack. In the three-dimensional point cloud data, each cigarette box is segmented and identified by an object segmentation algorithm, and a commonly used algorithm includes an object segmentation and recognition algorithm based on shape features, color features or depth information. Through these algorithms, the category, shape and position of each cigarette box are determined, and the three-dimensional position and shape information of the cigarette box are used to detect the abnormal cigarette box in the stack. For example, objects with abnormal height, abnormal position (such as a certain cigarette box is not aligned with the stack as a whole, or half of it is outside the stack) or abnormal shape can be detected, and marked as abnormal cigarette boxes. The specific method of cigarette box detection is: the three-dimensional point cloud data of the current category is compared with the standard model of the stack of its corresponding category, and it is judged whether the cigarette box in the stack is abnormal.
[0058] Step S5: Exception handling and recording
[0059] If the difference between the cigarette box and the cigarette box corresponding to the position in the standard model exceeds a preset threshold, the system determines that the cigarette box is abnormal, and then enters the abnormality handling process, and records the time, location and specific description of each abnormal situation; wherein, the abnormality handling process includes stopping the operation of the stack and triggering an alarm to notify the operator.
[0060] Step S6: Counting the number of cigarette boxes
[0061] After each cigarette box is identified, the number of abnormal cigarette boxes is counted, and all normal cigarette boxes are classified and counted according to the category or size information of the cigarette boxes, or the density of the three-dimensional point cloud data of the stack is directly estimated to estimate the number of cigarette boxes.
[0062] Example 2
[0063] This embodiment provides a device for detecting cigarette box stack types based on binocular vision, which is applied to a method for detecting cigarette box stack types based on binocular vision in any one of the above-mentioned embodiments 1, and includes a stereoscopic warehouse, a tunnel stacking crane, a central control room and a binocular camera assembly.
[0064] Laneways are arranged between the three-dimensional warehouses, and the laneway stacking crane moves in the laneway to store and retrieve goods. The three-dimensional warehouse includes a shelf, and a cargo platform is arranged in the shelf. The laneway stacking crane transports the piles to the cargo platform, and the piles can usually enter from both sides of the cargo platform located in the laneway.
[0065] Generally speaking, due to the very limited distance around the cargo platform, the available space is only on the upper part of the cargo platform and the height is very limited, the camera field of view can only cover a small part of the pile, and the pile cannot be modeled. In the present embodiment, a bracket is provided above the cargo platform, the binocular camera assembly includes a binocular camera and a visual analyzer, the binocular camera includes two 3D cameras, the 3D camera is directly arranged on the bracket, and the distance from the top of the pile is 1500mm, the 3D camera shoots downward to collect the pile image and uploads it to the visual analyzer for pile reconstruction and analysis, and the visual analyzer uploads its information to the central control room, and the central control room monitors whether the pile is abnormal in real time.
[0066] The visual analyzer is communicatively connected to an audible and visual alarm for sounding an alarm when the stack is abnormal.
[0067] In terms of network transmission, since the cargo platform can move in both the lane direction and the height direction of the stereoscopic warehouse, wireless communication can be performed to reduce wiring costs. Since the metal shelves across different lanes in the stereoscopic warehouse severely block wireless signals, in this embodiment, an independent wireless access point is set in each lane for communication, and each wireless access point in the lane communicates with the adjacent visual analyzer through the network. This network configuration can improve the communication efficiency and data transmission speed between devices, and ensure the stability and accuracy of the entire cigarette box stack type abnormality detection device.
[0068] It should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for detecting abnormality of cigarette box stacks based on binocular vision, characterized in that: The following steps are involved: Step S1: Establishing the standard model The images of standard piles of each category are collected by binocular cameras and reconstructed by stereo vision to form three-dimensional point cloud data, and the standard model of each category is established based on this data; Step S2: Stack detection The two perspectives provided by the binocular camera are used to calculate the depth information of the object in the image, and the presence or absence of the object is determined by comparing the position difference of the object under the two perspectives; Step S3: Image stitching When the binocular camera detects that the stack image is stable, it collects images from two perspectives, determines the overlapping area of the two images, detects feature points in the overlapping area, matches the two images through the feature points, aligns and splices them, and finally post-processes the spliced panoramic image; Step S4: Stack type analysis The panoramic image processed in step S3 generates three-dimensional point cloud data of the stack by calculating parallax, segmenting and identifying each cigarette box, determining the category, shape and position of each cigarette box, and comparing the three-dimensional point cloud data of the current category with the standard model of the stack of the corresponding category to determine whether there is any abnormality in the cigarette box in the stack. Step S5: Exception handling and recording If the difference between the smoke box and the smoke box corresponding to the position in the standard model exceeds a preset threshold, the system determines that the smoke box is abnormal, immediately enters the abnormality handling process, and records the time, location and specific description of each abnormal situation.
2. The method for detecting abnormality of cigarette box stack type based on binocular vision according to claim 1, characterized in that: Step S3: Image stitching When the binocular camera detects that the stack image is stable, it collects images from two perspectives, determines the overlapping area of the two images, detects feature points in the overlapping area using SIFT, SURF or ORB algorithm, generates feature point descriptors using BRIEF algorithm, matches the two images using nearest neighbor matching or RANSAC algorithm for the feature point descriptors, aligns the two images using an image registration algorithm based on panoramic transformation, stitches the aligned images using multi-resolution stitching, Poisson fusion or multi-band fusion method to generate a panoramic image, and then performs post-processing on the stitched panoramic image to correct color, remove distortion and remove stitching defects.
3. A binocular vision-based cigarette box stack abnormality detection method according to claim 1 or 2, characterized in that: In step S3, the process of stitching the aligned images includes merging overlapping areas, filling gaps and fusing boundaries.
4. The method for detecting abnormality of cigarette box stack type based on binocular vision according to claim 2, characterized in that: In the step S3, the panoramic transformation image registration algorithm is an affine transformation image registration algorithm or a perspective transformation image registration algorithm.
5. The method for detecting abnormality of cigarette box stack type based on binocular vision according to claim 1, characterized in that: In step S4, the abnormality handling process includes stopping the operation on the stack and triggering an alarm to notify the operator.
6. The method for detecting abnormality of cigarette box stack type based on binocular vision according to claim 1, characterized in that: The binocular vision-based cigarette box stack type abnormality detection method further includes: Step S6: Counting the number of cigarette boxes After each cigarette box is identified, the number of abnormal cigarette boxes is counted, and all normal cigarette boxes are classified and counted according to the category or size information of the cigarette boxes.
7. A device for detecting abnormality of cigarette box stacks based on binocular vision, which is applied to a method for detecting abnormality of cigarette box stacks based on binocular vision as claimed in any one of claims 1 to 6, comprising a three-dimensional warehouse, a lane stacking crane, and a central control room, lanes are arranged between the three-dimensional warehouses, the three-dimensional warehouse comprises a plurality of cargo platforms, the lane stacking crane transports the stacks to the cargo platforms, and is characterized in that: The binocular vision-based cigarette box stack type abnormality detection device also includes a binocular camera assembly; A bracket is arranged above the cargo platform, and the binocular camera assembly includes a binocular camera and a visual analyzer. The binocular camera includes two 3D cameras, and the two 3D cameras are arranged opposite to each other on the bracket. The images collected by the 3D camera are uploaded to the visual analyzer for stack reconstruction and analysis, and the information is uploaded to the central control room, and the central control room is used to monitor in real time whether there is any abnormality in the stack.
8. The binocular vision-based cigarette box stack abnormality detection device according to claim 7, characterized in that: The visual analyzer is communicatively connected to an audible and visual alarm for sounding an alarm when the stack is abnormal.
9. The device for detecting abnormality of cigarette box stack type based on binocular vision according to claim 7, characterized in that: A wireless access point is installed in the central control room, and a wireless access point is separately set in each lane. The wireless access point in each lane communicates with the adjacent visual analyzer through a network.
Citation Information
Cited By
Test sample car sample piece state monitoring system and method
CN119781385A
A test vehicle prototype piece state monitoring system and method
CN119781385B
