A method, system, storage medium, and electronic device for sorting light-colored glass
By using cameras at different locations to capture images of glass raw materials during the sorting process and performing preprocessing and feature recognition, the problem of difficulty in distinguishing light-colored glass in existing technologies has been solved, achieving a more efficient sorting effect.
Patent Information
- Application Number
- CN202311736616.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-15
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-12-15
AI Technical Summary
Existing technology makes it difficult to distinguish light-colored glass from clear glass, resulting in light-colored glass being mixed in with the finished clear glass products, which fails to meet customers' sorting needs.
Images of glass raw materials in the same scene are captured by cameras at different locations. Through image preprocessing and feature recognition, it is determined whether there is a continuous target color gamut exceeding a threshold in different parts of the material image, so as to accurately identify the differences between light-colored glass and clear glass.
This allows for more accurate separation of light-colored glass from clear glass, improving sorting accuracy.
Smart Images

Figure CN117583278B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of glass sorting technology, and more specifically, to a method, system, storage medium, and electronic device for sorting light-colored glass. Background Technology
[0002] Waste glass recyclers typically categorize waste glass into three main types at the source: bottle glass, flat glass, and slag glass. Regardless of the type, waste glass generally undergoes pre-treatment processes such as dust removal, removal of light particles and metals, and screening before optical and color sorting. Optical sorting utilizes the optical properties of glass to remove opaque, refractory materials, thus preserving the glass itself. Color sorting removes discolored glass, retaining the desired transparent glass.
[0003] In sorting bottle glass, besides removing refractory materials, there is sometimes a need to separate impurities. For example, Chinese patent document CN115588105A discloses a method for identifying the characteristics of mirrored glass and its application. By acquiring images of waste glass raw materials and extracting highlights and filtering the images, it can accurately identify stone ceramics and mirrored glass, significantly reducing the carry-over of mirrored glass during the optical sorting process for removing refractory materials. In the above optical and color sorting processes, although it is possible to reduce the carry-over of mirrored glass when removing refractory materials, it is difficult to distinguish light-colored impurities from clear glass. Therefore, some clear glass may be misidentified in the rejected products. To reduce the carry-over of clear glass, some light-colored impurities will remain in the finished product. Minimizing the carry-over of clear glass from waste glass raw materials while removing refractory materials and all impurities is becoming an urgent need in the glass sorting market. Summary of the Invention
[0004] 1. The technical problem that the invention aims to solve.
[0005] Existing technologies, while removing refractory materials and impurities from waste glass raw materials, often struggle to distinguish light-colored glass from clear glass, resulting in light-colored glass being mixed in with the finished clear glass product. For applications requiring complete separation of light-colored glass from clear glass, this present invention provides a method, system, storage medium, and electronic device for sorting light-colored glass. The method involves preprocessing and feature recognition of acquired images to determine whether a continuous target color gamut exceeding a threshold exists in the outer ring portion, middle ring portion, and innermost center portion of the material image. This allows for more accurate separation of light-colored glass from clear glass.
[0006] 2. Technical Solution
[0007] To achieve the above objectives, the present invention provides a method for sorting light-colored glass, comprising the following steps:
[0008] S1. Collect images of waste glass raw materials; use the first camera and the second camera to simultaneously collect images of waste glass raw materials under white light from the same viewpoint at different positions in the same direction, and record the images collected by the first camera and the second camera as image P1 and image P2 respectively.
[0009] S2. Preprocessing images: After removing the background and adding a synchronization signal to images P1 and P2 respectively, compare them with the original images P1 and P2, leaving the foreground, and generate images P1 and P2 respectively. 1a P 2a ; the image P 1a P 2a Edge erosion filtering is performed to obtain the image P. 1a P 2a The material image retains the outer ring-shaped part P 1c P 2c The material image retains the central ring-shaped portion P. 1e P 2e And the material image retains the center part P 1d P 2d ;
[0010] S3, Identify features; transfer image P 1a P 1c P 1d P 1e and image P 2a P 2c P 2d P 2e Simultaneously, the feature recognition module is input and it is determined whether there is a continuous target color region exceeding the threshold. If the continuous target color region exists, a signal to remove the target is issued; if the continuous target color region does not exist, a signal to retain the target is issued.
[0011] S4. Output defective product rejection signal; based on the signal of the rejection target, output defective product rejection signal.
[0012] Furthermore, in step S2, the image P... 1a Image P is obtained by edge erosion filtering 1b The image P 1b With image P 1a Compare and retain the non-overlapping parts to generate image P. 1c ; For the image P 1b Image P is obtained by edge erosion filtering 1d Image P 1d With image P 1b Continue comparing and retaining the non-overlapping parts to generate image P. 1e ;
[0013] For the image P2a Image P is obtained by edge erosion filtering 2b Image P 2b With image P 2a Compare and retain the non-overlapping parts to generate image P. 2c ; for the image P 2b Image P is obtained by edge erosion filtering 2d Image P 2d With image P 2b Continue comparing and retaining the non-overlapping parts to generate image P. 2e .
[0014] Furthermore, in step S3, the image P is determined. 1a Does it exceed the threshold T? 1a Continuous target color region: If the region does not exist, a signal to preserve the target is emitted, causing the image containing the target to be binarized into B... 1a If the region exists, a signal to remove the target is issued, causing the image containing the target to be binarized into B0. 1b .
[0015] Determine the image P 2a Does it exceed the threshold T? 2a Continuous target color region: If the region does not exist, a signal to preserve the target is emitted, causing the image containing the target to be binarized into B... 2a If the region exists, a signal to remove the target is issued, causing the image containing the target to be binarized into B0. 2b .
[0016] Furthermore, determine image P 1c With image B 1a Does the overlapping region contain more than the threshold T? 1c Continuous target color region: If the region does not exist, a signal to preserve the target is emitted, causing the image containing the target to be binarized into B... 1c If the region exists, a signal to remove the target is issued, causing the image containing the target to be binarized into B0. 1d Among them, T 1c <T 1a ;
[0017] Determine the image P 2c With image B 2a Does the overlapping region contain more than the threshold T? 2c Continuous target color region: If the region does not exist, a signal to preserve the target is emitted, causing the image containing the target to be binarized into B... 2c If the region exists, a signal to remove the target is issued, causing the image containing the target to be binarized into B0. 2d Among them, T2c <T 2a .
[0018] Furthermore, determine image P 1e Does it exceed the threshold T? 1e Continuous target color region: If the region does not exist, a signal to preserve the target is emitted, causing the image containing the target to be binarized into B... 1e If the region exists, a signal to remove the target is issued, causing the image containing the target to be binarized into B0. 1f Among them, T 1e =T 1c ;
[0019] Determine the image P 2e Does it exceed the threshold T? 2e Continuous target color region: If the region does not exist, a signal to preserve the target is emitted, causing the image containing the target to be binarized into B... 2e If the region exists, a signal to remove the target is issued, causing the image containing the target to be binarized into B0. 2f , among which, T 2e =T 2c .
[0020] Furthermore, determine image P 1d Does it exceed the threshold T? 1d Continuous target color region: If the region does not exist, a signal to preserve the target is emitted, causing the image containing the target to be binarized into B... 1g If the region exists, a signal to remove the target is issued, causing the image containing the target to be binarized into B0. 1h Among them, T 1c <T 1d <T 1a ;
[0021] Determine P 2d Does the image contain elements exceeding a threshold T? 2d Continuous target color region: If the region does not exist, a signal to preserve the target is emitted, causing the image containing the target to be binarized into B... 2g If the region exists, a signal to remove the target is issued, causing the image containing the target to be binarized into B0. 2h Among them, T 2c <T 2d <T 2a .
[0022] Furthermore, when binary graph B 1a The region contains binary image B. 1d and B 1f When, or when binary graph B 1aThe region contains binary image B. 1d and B 1h When, or when binary graph B 1a The region contains binary image B. 1d B 1f and B 1h When the region is the corresponding target region, a target removal signal is issued, causing the image containing the target to be binarized into B0. 1s ;
[0023] When binary image B 2a The region contains binary image B. 2d and B 2f When, or when binary graph B 1a The region contains binary image B. 2d and B 2h When, or when binary graph B 2a The region contains binary image B. 2d B 2f and B 2h When the region is the corresponding target region, a target removal signal is issued, causing the image containing the target to be binarized into B0. 2s ;
[0024] When binary image B 1a The region does not contain binary map B. 1d When, or when binary graph B 2a The region does not contain binary map B. 2d At that time, binary graph B 1a And binary image B 2a Corresponding superposition is required; after superposition, the same region must contain at least B. 1d Or B 2d One of them, and at least one of them contains B. 1f Or B 2f One of them, and at least one of them contains B. 1h and B 2h If one of the regions is the corresponding target region, then a target removal signal is issued, and the image containing the target is binarized into B0. 3s ;
[0025] Based on binary image B 1s B 1b B 2s B 2b B 3s The marked area outputs a defective product rejection signal.
[0026] The present invention also provides a light-colored glass sorting system, comprising,
[0027] The image acquisition module acquires images of waste glass raw materials under white light from the same viewpoint.
[0028] The image preprocessing module performs background removal, adds synchronization signals, contrast-based foreground retention, and edge erosion filtering on the images acquired by the image acquisition module.
[0029] The image feature recognition module performs feature recognition on the image processed by the image preprocessing module, and determines whether there is a continuous target color region in the preprocessed image that exceeds a threshold. If the continuous target color region exists, a signal to remove the target is issued; if the continuous target color region does not exist, a signal to retain the target is issued.
[0030] The output module outputs a defective product rejection signal based on the rejection target signal emitted by the image feature recognition module.
[0031] The present invention also provides an electronic device, including a memory and a processor, wherein the memory supports the processor in executing a program for the above-described sorting method for light-colored glass, and the processor is configured to execute a program stored in the memory.
[0032] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the above-described method for sorting light-colored glass.
[0033] 3. Beneficial effects
[0034] Compared with existing known technologies, the technical solution provided by this invention has the following beneficial effects:
[0035] (1) The present invention provides a method for sorting light-colored glass, which uses cameras at different positions to collect images of glass raw materials in the same scene, and then compares the images at different target positions to accurately identify the differences between light-colored glass and clear glass. After preprocessing and feature recognition of the collected images, it is determined whether there is a continuous target color gamut exceeding a threshold in the outer ring part, the middle ring part, and the very center part of the material image, so as to more accurately separate the light-colored glass from the clear glass. Attached Figure Description
[0036] The dimensions and scales in the accompanying drawings do not represent the actual dimensions and scales of the product. The drawings are for illustrative purposes only, and some non-essential elements or features have been omitted for clarity.
[0037] Figure 1 This is a flowchart illustrating the light-colored glass sorting method according to an embodiment of the present invention. Detailed Implementation
[0038] To further understand the content of this invention, a detailed description of the invention is provided in conjunction with the accompanying drawings and embodiments. The description herein is merely a preferred embodiment of the invention; those skilled in the art can conceive of other ways to implement the invention based on the preferred embodiments, and such other ways also fall within the scope of this invention.
[0039] Terminology Explanation:
[0040] Flat glass: mainly refers to glass windows and curtain walls made from industrial and construction waste, other flat glass products, or broken glass from waste automobile windshields. Most of them are flat, and depending on specific needs, some are tempered and some are coated.
[0041] Bottle glass: This mainly refers to the glass from broken glass bottles found in household waste or medical waste. The biggest difference between bottle glass and flat glass is that bottle glass is mostly curved, while flat glass is mostly flat.
[0042] Slag glass: mainly refers to the granular glass left after municipal solid waste is incinerated for power generation. The biggest difference between slag glass and flat glass and bottle glass is that slag glass particles are relatively small and have a rough surface.
[0043] Refractory materials: solid waste materials such as stone, ceramics, and metal that are opaque and have a melting point higher than glass.
[0044] Clear glass: Transparent glass that is completely colorless.
[0045] Mixed glass: This refers to colored glass, as opposed to clear glass.
[0046] Tea-colored glass: A type of mixed glass, which is tea-colored throughout.
[0047] Blue glass: A type of mixed glass, which is blue throughout.
[0048] Green glass: A type of mixed glass, which is green throughout.
[0049] Gray glass: A type of mixed glass, which is gray in color throughout.
[0050] Example
[0051] The drawback of existing waste glass sorting schemes is that they cannot effectively identify the characteristics of light-colored glass, which can lead to confusion between light-colored glass and clear glass.
[0052] This embodiment provides a method for sorting light-colored glass. This method can be implemented using a low-end FPGA chip, such as... Figure 1 As shown, it includes the following steps:
[0053] S1, Image Acquisition
[0054] Using a camera with a normal aperture (referred to as camera 1) and another identical camera (referred to as camera 2), images of waste glass material under white light are simultaneously acquired from different positions in the same direction, focusing on the same viewpoint. The image acquired by camera 1 is a 24-bit RGB image (P1), and the image acquired by camera 2 is a 24-bit RGB image (P2). It should be noted that by acquiring glass images of the same scene from different positions and then comparing them at different target locations, the differences between light-colored and clear glass can be accurately identified. In practical applications, the relative positions of camera 1 and camera 2 can be varied; they can be placed side-by-side, side-by-side vertically, or relatively offset. In practical applications, the white light is provided by a material lighting system, which can use either front-reflected light plus rear-transmitted light, or entirely rear-transmitted light.
[0055] S2, Image Preprocessing
[0056] S2.1. Remove the background from image P1, add a synchronization signal, compare it with the original image, and retain the foreground to generate image P. 1a After removing the background from image P2, adding a synchronization signal, and comparing it with the original image while retaining the foreground, image P is generated. 2a .
[0057] S2.2, For image P 1a Image P is obtained by edge erosion filtering 1b Image P 1b With image P 1a Compare and retain the non-overlapping parts to generate image P. 1c This indicates that the material image retains the outer ring-shaped portion; for image P 2a Image P is obtained by edge erosion filtering 2b Image P 2b With image P 2a Compare and retain the non-overlapping parts to generate image P. 2c This indicates that the material image retains an outer ring-shaped portion.
[0058] S2.3, For image P 1b Image P is obtained by edge erosion filtering 1d This indicates that the material image retains only the center portion; the image P... 1d With image P 1b Continue comparing and retaining the non-overlapping parts to generate image P. 1e This indicates that the material image retains the central ring-shaped portion; for image P 2b Image P is obtained by edge erosion filtering 2d This indicates that the material image retains only the center portion; the image P... 2d With image P 2b Continue comparing and retaining the non-overlapping parts to generate image P. 2eThis indicates that the material image retains the central ring-shaped portion.
[0059] S3, Feature Recognition
[0060] Image P 1a P 1c P 1d P 1e and image P 2a P 2c P 2d P 2e Simultaneously, the data is fed into the feature recognition module for feature recognition. The workflow of the feature recognition module is as follows: Figure 1 The part inside the dashed box is shown.
[0061] S3.1, Determine P 1a Does the image contain elements exceeding a threshold T? 1a Continuous target color region: If the region does not exist, a signal to preserve the target is emitted, causing the image containing the target to be binarized into B... 1a If the region exists, a signal to remove the target is issued, causing the image containing the target to be binarized into B0. 1b .
[0062] Determine P 2a Does the image contain elements exceeding a threshold T? 2a Continuous target color region: If the region does not exist, a signal to preserve the target is emitted, causing the image containing the target to be binarized into B... 2a If the region exists, a signal to remove the target is issued, causing the image containing the target to be binarized into B0. 2b .
[0063] S3.2, Determine P 1c Image and B 1a Does the overlapping region contain more than the threshold T? 1c (the T) 1c <T 1a A continuous target color region: If the region does not exist, a signal to retain the target is issued, and the image containing the target is binarized to B1c; if the region exists, a signal to remove the target is issued, and the image containing the target is binarized to B1c. 1d .
[0064] Determine P 2c Image and B 2a Does the overlapping region contain more than the threshold T? 2c (the T) 2c <T 2a ) continuous target color region: If the region does not exist, a signal to preserve the target is emitted, causing the image containing the target to be binarized into B... 2cIf the region exists, a signal to remove the target is issued, causing the image containing the target to be binarized into B0. 2d .
[0065] S3.3, Determine P 1e Does the image contain elements exceeding a threshold T? 1e (the T) 1e =T 1c ) continuous target color region: If the region does not exist, a signal to preserve the target is emitted, causing the image containing the target to be binarized into B... 1e If the region exists, a signal to remove the target is issued, causing the image containing the target to be binarized into B0. 1f .
[0066] Determine P 2e Does the image contain elements exceeding a threshold T? 2e (the T) 2e =T 2c ) continuous target color region: If the region does not exist, a signal to preserve the target is emitted, causing the image containing the target to be binarized into B... 2e If the region exists, a signal to remove the target is issued, causing the image containing the target to be binarized into B0. 2f .
[0067] It should be noted that the threshold mentioned above is set manually, and the threshold represents the number of target color pixels.
[0068] S3.4 Determine whether there is a value exceeding the threshold T in the P1d image. 1d (the T) 1c <T 1d <T 1a ) continuous target color region: If the region does not exist, a signal to preserve the target is emitted, causing the image containing the target to be binarized into B... 1g If the region exists, a signal to remove the target is issued, causing the image containing the target to be binarized into B0. 1h .
[0069] Determine P 2d Does the image contain elements exceeding a threshold T? 2d (the T) 2c <T 2d <T 2a ) continuous target color region: If the region does not exist, a signal to preserve the target is emitted, causing the image containing the target to be binarized into B... 2g If the region exists, a signal to remove the target is issued, causing the image containing the target to be binarized into B0. 2h .
[0070] S3.5, When binary graph B 1a The region contains binary image B. 1d and B 1f When, or when binary graph B 1a The region contains binary image B. 1d and B 1h When, or when binary graph B 1a The region contains binary image B. 1d B 1f and B 1h When the region is the corresponding target region, a target removal signal is issued, causing the image containing the target to be binarized into B0. 1s ;
[0071] When binary image B 2a The region contains binary image B. 2d and B 2f When, or when binary graph B 1a The region contains binary image B. 2d and B 2h When, or when binary graph B 2a The region contains binary image B. 2d B 2f and B 2h When the region is the corresponding target region, a target removal signal is issued, causing the image containing the target to be binarized into B0. 2s ;
[0072] When binary image B 1a The region does not contain binary map B. 1d When or when binary graph B 2a The region does not contain binary map B. 2d At that time, binary graph B 1a And binary image B 2a Corresponding superposition is required; after superposition, the same region must contain at least B. 1d Or B 2d One of them, and at least one of them contains B. 1f Or B 2f One of them, and contains at least B. 1h and B 2h If one of the regions is the corresponding target region, then a target removal signal is issued, and the image containing the target is binarized into B0. 3s .
[0073] S4, Final Target Elimination
[0074] Based on binary image B 1s B 1b B 2s B 2b B 3sThe marked area outputs a signal to reject defective white glass products.
[0075] This embodiment also provides a light-colored glass sorting system, including an image acquisition module that acquires images of waste glass raw materials under white light from the same viewpoint; an image preprocessing module that performs background removal, adds synchronization signals, contrast foreground retention, and edge erosion filtering on the images acquired by the image acquisition module; an image feature recognition module that performs feature recognition on the images processed by the image preprocessing module to determine whether there are continuous target color regions exceeding a threshold in the preprocessed images. If the continuous target color regions exist, a signal to reject the target is issued; if the continuous target color regions do not exist, a signal to retain the target is issued; and an output module that outputs a defective product rejection signal based on the rejection signal issued by the image feature recognition module.
[0076] This embodiment also provides an electronic device, including a memory and a processor. The memory supports the processor in executing the program of the light-colored glass sorting method described above, and the processor is configured to execute the program stored in the memory.
[0077] This embodiment also provides a computer-readable storage medium storing a computer program, which, when run by a processor, executes the steps of the light-colored glass sorting method described above.
[0078] The invention and its embodiments have been described above illustratively. This description is not restrictive, and the invention can be implemented in other specific forms without departing from its spirit or essential characteristics. The accompanying drawings are only one embodiment of the invention, and the actual structure is not limited thereto. No reference numerals in the claims should limit the scope of the claims. Therefore, if a person skilled in the art is inspired by this description and designs a similar structure and embodiment without departing from the spirit of the invention, such design should fall within the scope of protection of this patent. Furthermore, the word "comprising" does not exclude other elements or steps, and the word "a" preceding an element does not exclude the inclusion of "a plurality" of that element. Multiple elements stated in the product claims may also be implemented by a single element through software or hardware. The terms "first," "second," etc., are used to indicate names and do not indicate any specific order.
Claims
1. A method for sorting light-colored glass, characterized in that, Includes the following steps: S1. Collect images of waste glass raw materials; use the first camera and the second camera to simultaneously collect images of waste glass raw materials under white light from the same viewpoint at different positions in the same direction, and record the images collected by the first camera and the second camera as image P1 and image P2 respectively. S2. Preprocessing the images: After removing the background and adding a synchronization signal to images P1 and P2 respectively, compare them with the original images P1 and P2, leaving the foreground to generate images P1a and P2a respectively; perform edge erosion filtering on image P1a to obtain image P1b, compare image P1b with image P1a to leave the non-overlapping parts, and generate image P1c; perform edge erosion filtering on image P1b to obtain image P1d, compare image P1d with image P1b to leave the non-overlapping parts, and generate image P1e; perform edge erosion filtering on image P2a... Image P2b is obtained by wave erosion. Image P2b is compared with image P2a to retain the non-overlapping parts, generating image P2c. Image P2b is edge-eroded and filtered to obtain image P2d. Image P2d is compared with image P2b to retain the non-overlapping parts, generating image P2e. Images P1a and P2a are edge-eroded and filtered to obtain the material images of images P1a and P2a respectively, retaining the outer ring-shaped parts P1c and P2c, the middle ring-shaped parts P1e and P2e, and the very middle parts P1d and P2d. S3. Feature recognition: Simultaneously input images P1a, P1c, P1d, P1e and images P2a, P2c, P2d, P2e into the feature recognition module and determine whether each has a continuous target color region exceeding the threshold. Specifically, the process involves determining whether a continuous target color region exceeding a threshold T1a exists in image P1a: if the region does not exist, a signal to retain the target is issued, and the image containing the target is binarized to B1a; if the region exists, a signal to remove the target is issued, and the image containing the target is binarized to B1b; similarly, the process involves determining whether a continuous target color region exceeding a threshold T2a exists in image P2a: if the region does not exist, a signal to retain the target is issued, and the image containing the target is binarized to B2a; if the region exists, a signal to remove the target is issued, and the image containing the target is binarized to B2b. S4. Output defective product rejection signal; based on the signal of the rejection target, output defective product rejection signal.
2. The method for sorting light-colored glass according to claim 1, characterized in that, Determine whether there exists a continuous target color region exceeding a threshold T1c in the overlapping region of images P1c and B1a: if the region does not exist, issue a signal to retain the target, and binarize the image containing the target into B1c; if the region exists, issue a signal to remove the target, and binarize the image containing the target into B1d; where T1c <T1a; Determine whether a continuous target color region exceeding a threshold T2c exists in the overlapping region of images P2c and B2a: if the region does not exist, issue a signal to retain the target, and binarize the image containing the target into B2c; if the region exists, issue a signal to remove the target, and binarize the image containing the target into B2d; where T2c <T2a。 3. The method for sorting light-colored glass according to claim 2, characterized in that, Determine whether there is a continuous target color region in image P1e that exceeds the threshold T1e: if the region does not exist, issue a signal to retain the target, and binarize the image containing the target into B1e; if the region exists, issue a signal to remove the target, and binarize the image containing the target into B1f; where T1e=T1c; Determine whether there is a continuous target color region in image P2e that exceeds the threshold T2e: if the region does not exist, issue a signal to retain the target, and binarize the image containing the target into B2e; if the region exists, issue a signal to remove the target, and binarize the image containing the target into B2f, where T2e=T2c.
4. The method for sorting light-colored glass according to claim 3, characterized in that, Determine whether there is a continuous target color region in image P1d that exceeds a threshold T1d: If the region does not exist, issue a signal to retain the target, and binarize the image containing the target as B1g; if the region exists, issue a signal to remove the target, and binarize the image containing the target as B1h; where T1c <T1d<T1a; Determine whether a continuous target color region exceeding a threshold T2d exists in the P2d image: If the region does not exist, issue a signal to retain the target, binarizing the image containing the target as B2g; if the region exists, issue a signal to remove the target, binarizing the image containing the target as B2h; where T2c <T2d<T2a。 5. The method for sorting light-colored glass according to claim 4, characterized in that, When the region containing binary image B1a includes binary images B1d and B1f, or when the region containing binary image B1a includes binary images B1d and B1h, or when the region containing binary image B1a includes binary images B1d, B1f and B1h, the region is the corresponding target region, and a target removal signal is issued, so that the image containing the target is binarized into B1s; When the region containing binary image B2a includes binary images B2d and B2f, or when the region containing binary image B1a includes binary images B2d and B2h, or when the region containing binary image B2a includes binary images B2d, B2f and B2h, the region is the corresponding target region, and a target removal signal is issued, so that the image containing the target is binarized into B2s; When the region containing binary image B1a does not contain binary image B1d, or when the region containing binary image B2a does not contain binary image B2d, binary images B1a and B2a need to be superimposed accordingly. After superposition, if the same region contains at least one of B1d or B2d, and at least one of B1f or B2f, and at least one of B1h and B2h, then the region is the corresponding target region. In this case, a target removal signal is issued, and the image containing the target is binarized to B3s. Output defective product rejection signals based on the regions marked by B1s, B1b, B2s, B2b, and B3s in the binary image.
6. A light-colored glass sorting system for performing the sorting method according to any one of claims 1-5, characterized in that, include, The image acquisition module acquires images of waste glass raw materials under white light from the same viewpoint. The image preprocessing module performs background removal, adds synchronization signals, contrast-based foreground retention, and edge erosion filtering on the images acquired by the image acquisition module. The image feature recognition module performs feature recognition on the image processed by the image preprocessing module, and determines whether there is a continuous target color region in the preprocessed image that exceeds a threshold. If the continuous target color region exists, a signal to remove the target is issued; if the continuous target color region does not exist, a signal to retain the target is issued. The output module outputs a defective product rejection signal based on the rejection target signal emitted by the image feature recognition module.
7. An electronic device, comprising a memory and a processor, characterized in that, The memory supports a processor in executing a program for the sorting method of light-colored glass according to any one of claims 1-5, wherein the processor is configured to execute a program stored in the memory.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is run by the processor, it performs the steps of the sorting method for light-colored glass according to any one of claims 1-5.
Citation Information
Patent Citations
LED chip sorting system and method
CN112547536A
Mirror glass feature recognition method and application thereof
CN115588105A
