A detection control method and device of an X-ray automatic detection equipment
By setting up inspection and sorting stations in the X-Ray automated inspection equipment, and using X-Ray detector arrays for image acquisition and data processing, the problems of multi-detector control and data management are solved, achieving efficient inspection and data management.
Patent Information
- Application Number
- CN202310791440.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-29
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2043-06-29
AI Technical Summary
Existing X-Ray automated inspection equipment is inefficient in controlling multiple imaging positions and multiple detectors, fails to achieve integrated control, and has insufficient data management and caching capabilities, making it unable to effectively process large amounts of inspection data.
By setting up inspection and sorting stations in the X-Ray automatic inspection equipment, using X-Ray detector arrays for image acquisition, and performing data processing and result queue management during transmission, intelligent control and data caching across stations and multiple detectors can be achieved.
It enables parallel testing and data caching of multiple products and multiple workstations, improving testing efficiency and data management efficiency, and saving testing time.
Smart Images

Figure CN116899899B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of X-Ray detection, and particularly relates to a detection control method and device of an X-Ray automatic detection equipment. BACKGROUND
[0002] In a traditional X-Ray manual detection equipment, one detector is generally used to detect each part of a product. The detection method has the feature that after the detection of one product is completed, the detection of the next product can be performed. When the detection result of the product is calculated, the detection results of each part of the product are simply calculated in sequence to obtain the final detection result of the product. This way can process the detection data of the same product in a continuous period of time, and no detection data of other products needs to be processed during this period of time.
[0003] The X-Ray automatic detection equipment is a new X-Ray detection equipment. The X-Ray automatic detection equipment is generally provided with multiple detectors, each detector is used to detect one part of a product, and the X-Ray automatic detection equipment is generally also provided with multiple shooting positions. When the detection of all the shooting positions is completed, the final result of the product can be obtained after the data of all the shooting positions are summarized. The detection process of the existing X-Ray automatic detection equipment has the following defects:
[0004] Firstly, in the control of the X-Ray automatic detection equipment, the related art has few solutions for unified control of multiple shooting positions and multiple detectors of the X-Ray automatic detection equipment, and still has problems of low detection efficiency and failure to integrally control.
[0005] Secondly, in the data management of the X-Ray automatic detection equipment, the X-Ray automatic detection equipment has higher requirements on the detection timing, and a large amount of data will be generated in the entire detection process. The detection result processing method of the above-mentioned manual detection equipment has the defects of low calculation efficiency, inability to parallel cache and process a large amount of detection data, and is not suitable for the X-Ray automatic detection equipment. The related art lacks a method for integrally managing and caching a large amount of data generated in the detection process of the X-Ray automatic detection equipment.
[0006] Therefore, how to intelligently control multiple stations and multiple detectors of the X-Ray automatic detection equipment while orderly managing a large amount of data generated in the detection process and realizing parallel processing of the data has become a problem to be solved. SUMMARY
[0007] The present application aims to at least partly solve one of the problems in the prior art.
[0008] To this end, the present application aims to provide a detection control method and device for X-Ray automatic detection equipment.
[0009] To achieve the above technical purpose, the technical solutions adopted by the embodiments of the present application include:
[0010] In one aspect, the embodiments of the present application provide a detection control method for X-Ray automatic detection equipment, including the following steps:
[0011] Obtaining a detection station arrival signal, and controlling an X-Ray detector group to perform image acquisition on a product to be detected according to the arrival signal;
[0012] When the X-Ray detector group completes the image acquisition, obtaining a detection image and outputting an end instruction to a control end, so that the control end controls a conveyor belt transmission to convey the product to be detected from the detection station to a sorting station, and processing the detection image in the process of conveying the product to be detected from the detection station to the sorting station, obtaining a detection result and adding it to a result queue;
[0013] Obtaining a sorting station arrival signal, detecting and identifying a query instruction from the control end according to the sorting station arrival signal, the query instruction carrying a product identifier;
[0014] When it is identified that the query instruction carries the product identifier, determining a product to be detected corresponding to the product identifier, and searching for a detection result of the product to be detected from the result queue and outputting it to the control end.
[0015] In another aspect, the embodiments of the present application provide a detection control device for X-Ray automatic detection equipment, applied to X-Ray automatic detection equipment, the equipment being provided with an X-Ray detector group and a conveyor belt, the conveyor belt being provided with a detection station and a sorting station, the detection station being located at a position close to an input end of the conveyor belt, the sorting station being located at a position close to an output end of the conveyor belt, and the conveyor belt being used for conveying a product to be detected; the X-Ray detector group is arranged at the detection station, and is used for detecting the product to be detected; the detection control device includes a calculation end and a control end, and the calculation end includes:
[0016] A detection unit is configured to obtain a detection station arrival signal, and control an X-Ray detector group to perform image acquisition on a product to be detected according to the arrival signal;
[0017] A control unit is configured to obtain a detection image and output an end instruction to a control end when the X-Ray detector group completes the image acquisition;
[0018] An operation unit is configured to process the detection image to obtain a detection result and add the detection result to a result queue during the conveying of the product to be detected from the detection station to the sorting station.
[0019] An acquisition identification unit is configured to acquire a sorting-in-place signal of the sorting station, detect and identify a query instruction from a control end according to the sorting-in-place signal, and the query instruction carries a product identifier.
[0020] A query unit is configured to determine a product to be detected corresponding to the product identifier when the query instruction carrying the product identifier is identified, find the detection result of the product to be detected from the result queue, and output the detection result to the control end.
[0021] The control end comprises:
[0022] A control module is configured to control the transmission of the conveying belt according to the end instruction to convey the product to be detected from the detection station to the sorting station.
[0023] A query module is configured to send a query instruction.
[0024] An acquisition module is configured to acquire the detection result of the product to be detected corresponding to the query instruction.
[0025] The present application has the advantages that the detection control method and device of the X-Ray automatic detection equipment are provided, the defects of the related art that the integrated control of multiple detectors and multiple stations cannot be realized are overcome, the intelligent management and control of the X-Ray automatic detection equipment across stations and multiple detectors are realized, in addition, the present application solves the problems of management and caching of a large amount of detection data, and realizes the ordered caching and management of a large amount of data. The present application can realize the parallel detection and data caching of multiple products and multiple stations, effectively improves the product detection efficiency and data management efficiency, and saves the detection time.
[0026] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent to those skilled in the art from the following description, or can be learned by practice of the present application. The objects and other advantages of the present application can be achieved and obtained by the structure particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following introduces the drawings of the related technical solutions in the embodiments of the present application or the prior art. It should be understood that the drawings in the following introduction are only for the convenience of clearly describing part of the embodiments of the technical solutions of the present application, and for those skilled in the art, other drawings can be obtained without creative labor on the premise of the drawings.
[0028] Figure 1 A structural diagram of an X-Ray automatic detection device according to an embodiment of the present application is provided;
[0029] Figure 2 A module diagram of a detection control device of an X-Ray automatic detection device according to an embodiment of the present application is provided;
[0030] Figure 3 A flow chart of a detection control method of an X-Ray automatic detection device according to an embodiment of the present application is provided;
[0031] Figure 4 A flow chart of inputting data into a result queue according to an embodiment of the present application is provided;
[0032] Figure 5 A structural diagram of a detection result package according to an embodiment of the present application is provided;
[0033] Figure 6 A flow chart of querying data according to an embodiment of the present application is provided;
[0034] Figure 7 A definition diagram of a first detection position and a second detection position of a to-be-detected battery according to an embodiment of the present application is provided;
[0035] Figure 8 A schematic diagram of an X-Ray automatic detection device and a to-be-detected battery according to an embodiment of the present application is provided;
[0036] Figure 9 A data flow diagram of detecting a to-be-detected battery according to an embodiment of the present application is provided. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical scheme and advantages of the present application clearer, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.
[0038] The present application is further described below in combination with the drawings and specific embodiments. The described embodiments should not be considered as limiting the present application, and all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of the present application.
[0039] In the following description, "some embodiments" are described, which describe a subset of all possible embodiments, but it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.
[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to be limiting of this application.
[0041] X-ray has certain penetration, which can be used to detect the internal situation of the object, so X-ray detection equipment has been widely used. In the field of industrial manufacturing, before the product is shipped, it is usually detected by X-ray detection equipment to ensure the quality of the product.
[0042] The traditional X-ray manual detection equipment generally uses one detector to detect each part of the product. The detection method has the characteristics that after the detection of one product is completed, the next product can be detected. When calculating the detection result of the product, only the detection results of each part of the product are sequentially integrated to obtain the final detection result of the product. This way can process the detection data of the same product in a continuous period of time, and no other product detection data needs to be processed during this period. With the development of science and technology, X-ray automatic detection equipment is a new X-ray detection equipment. The X-ray automatic detection equipment generally has multiple detectors and multiple shooting positions. Each detector detects a part of the product. When the detection of all shooting positions is completed, the final result of the product can be obtained after the data of all shooting positions are summarized.
[0043] The existing X-ray automatic detection equipment has the following defects in the detection process:
[0044] Firstly, in the control of X-ray automatic detection equipment, the related technology rarely has a unified control scheme for multiple shooting positions and multiple detectors of X-ray automatic detection equipment, and still has the problems of low detection efficiency and unable to integrate control.
[0045] Secondly, in the data management of X-ray automatic detection equipment, since X-ray automatic detection equipment has higher requirements for detection timing, and a large amount of data will be generated during the entire detection process, the above-mentioned manual detection equipment detection result processing method has the defects of low operation efficiency, unable to parallel cache and process a large amount of detection data, and is not suitable for X-ray automatic detection equipment. However, the related technology lacks a method for integrated management and caching of a large amount of data generated during the detection process of X-ray automatic detection equipment.
[0046] Therefore, how to intelligently control multiple stations and multiple detectors of the X-Ray automatic detection equipment while orderly managing a large amount of data generated in the detection process and realizing parallel processing of the data has become a problem to be solved.
[0047] To solve the above problems, the present application provides a detection control method and device of an X-Ray automatic detection equipment. An embodiment of the present application will be described below with reference to the accompanying drawings.
[0048] With reference to Figure 1 The detection control device 200 is applied to an X-Ray automatic detection equipment, and the equipment includes a conveying belt 100. The conveying belt 100 is provided with a detection station and a sorting station 130, wherein the detection station is located close to the input end of the conveying belt 100, and the sorting station 130 is located close to the output end of the conveying belt 100. In this embodiment, the conveying belt 100 is used to convey one or more products to be detected.
[0049] Further, the detection station includes a first detection station 110 and a second detection station 120. The first detection station 110 is located close to the input end of the conveying belt 100, and the second detection station 120 is located between the first detection station 110 and the sorting station 130.
[0050] Optionally, the first detection station 110 is provided with a first sensor, and when the product to be detected reaches the first detection station 110, the first sensor outputs a to-position signal of the first detection station 110, that is, a first to-position signal. The second detection station 120 is provided with a second sensor, and when the product to be detected reaches the second detection station 120, the second sensor outputs a to-position signal of the second detection station 120, that is, a second to-position signal. The sorting station 130 is provided with a third sensor, and when the product to be detected reaches the sorting station 130, the third sensor outputs a to-position signal of the sorting station 130, that is, a sorting to-position signal.
[0051] Further, the equipment further includes an X-Ray detector group, which is arranged at the detection station and is used to collect images of multiple positions to be detected of the product to be detected.
[0052] Further, the X-Ray detector set can include, but is not limited to, a first X-Ray detector set 140 and a second X-Ray detector set 150, the first X-Ray detector set 140 being arranged at the first detection station 110, and the second X-Ray detector set 150 being arranged at the second detection station 120. The first X-Ray detector set 140 is configured to capture images of a first to-be-detected position of the to-be-detected product, and the second X-Ray detector set 150 is configured to capture images of a second to-be-detected position of the to-be-detected product.
[0053] Optionally, the first X-Ray detector set 140 includes a plurality of first X-Ray detectors, and the second X-Ray detector set 150 includes a plurality of second X-Ray detectors.
[0054] With reference to Figure 2 , the detection control device 200 mainly includes a calculation end 210 and a control end 220. The calculation end 210 includes:
[0055] a detection unit configured to acquire a detection station arrival signal, and control the X-Ray detector set to capture images of the to-be-detected product according to the detection station arrival signal.
[0056] a control unit configured to obtain detection images when the X-Ray detector set completes image capturing, and output an end instruction to the control end 220.
[0057] a calculation unit configured to process the detection images during the to-be-detected product is transferred from the detection station to the sorting station 130, and obtain detection results and add the detection results to a result queue.
[0058] an acquisition and identification unit configured to acquire a sorting station arrival signal of the sorting station 130, and detect and identify a query instruction from the control end 220 according to the sorting station arrival signal.
[0059] It should be noted that the query instruction carries a product identifier.
[0060] a query unit configured to, when it is identified that the query instruction carries the product identifier, determine a to-be-detected product corresponding to the product identifier, find the detection results of the to-be-detected product from the result queue, and output the detection results to the control end 220.
[0061] a data caching unit provided with the result queue, and configured to cache the detection results.
[0062] Specifically, the control end 220 mainly includes:
[0063] a control module configured to control the transmission belt to drive the to-be-detected product to be transferred from the detection station to the sorting station 130 according to the end instruction.
[0064] The query module is configured to send a query instruction.
[0065] The acquisition module is configured to acquire a detection result of the product to be detected corresponding to the query instruction.
[0066] An embodiment of the present application will be described below with reference to the accompanying drawings. The detection control method of the X-Ray automatic detection equipment according to the embodiment of the present application is described below.
[0067] The detection control method of the X-Ray automatic detection equipment according to the embodiment of the present application can be applied to a terminal, a server, or software running in the terminal or the server. The terminal can be a tablet computer, a notebook computer, a desktop computer, or the like, but is not limited thereto. The server can be a physical server, a server cluster or a distributed system composed of multiple physical servers, a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and basic cloud computing services such as big data and artificial intelligence platforms.
[0068] Referring to Figure 3 The detection control method is applied to the operation terminal 210, and the method can include but is not limited to the following steps:
[0069] S100, acquiring a detection position signal of a detection station, and controlling the X-Ray detector group to perform image acquisition on the product to be detected according to the detection position signal;
[0070] S200, when the X-Ray detector group completes the image acquisition, obtaining a detection image and outputting an end instruction to the control terminal, so that the control terminal controls the transmission belt to drive the product to be detected from the detection station to a sorting station. In the process of transferring the product to be detected from the detection station to the sorting station, the detection image is processed to obtain a detection result and added to a result queue;
[0071] S300, acquiring a sorting position signal of the sorting station, and detecting and identifying a query instruction from the control terminal according to the sorting position signal.
[0072] It should be noted that the query instruction carries a product identifier, and the product identifier is used to identify the product to be detected.
[0073] In this step, when the product to be detected is transferred from the detection station to the sorting station 130, the third sensor at the sorting station 130 outputs a sorting position signal after detecting that the product to be detected is in place. The operation terminal 210 detects the query instruction from the control terminal 220 according to the sorting position signal. When the corresponding query instruction is detected, the operation terminal 210 identifies whether the query instruction carries a product identifier.
[0074] Optionally, the product identifier in the embodiment of the present application is a two-dimensional code information. However, in other embodiments of the present application, the product identifier can be other data information, and the present application does not make specific limitation in this regard.
[0075] S400, when it is identified that the query instruction carries the product identifier, determining the product to be tested corresponding to the product identifier, searching the detection result of the product to be tested from the result queue and outputting to the control end.
[0076] In this step, when it is identified that the query instruction carries the product identifier, the product to be tested can be determined through the product identifier since the product identifier can represent the product to be tested, so as to find the detection result required to be queried from the multiple detection results of the result queue.
[0077] In an embodiment of the present application, the implementation process of S100 and S200 will be further described and explained. In the embodiment of the present application, the detection station includes a first detection station 110 and a second detection station 120, the X-Ray detector group includes a first X-Ray detector group 140 and a second X-Ray detector group 150, the detection image includes a first image and a second image, the end instruction includes a first end instruction and a second end instruction, and the detection result includes a first detection result and a second detection result.
[0078] In this embodiment, the arrival signal of the detection station is acquired, the X-Ray detector group is controlled to perform image acquisition on the product to be tested according to the arrival signal, and when the X-Ray detector group completes the image acquisition, the detection image is obtained and the end instruction is output to the control end. The steps are specifically as follows:
[0079] A1, the arrival signal of the first detection station is acquired, and the first X-Ray detector group is controlled to perform image acquisition on the first position to be tested of the product to be tested according to the arrival signal of the first detection station.
[0080] In this specific embodiment, the arrival signal of the first detection station 110 is denoted as a first arrival signal, and the first arrival signal carries a first position identifier, which is used to represent the first position to be tested of the product to be tested.
[0081] A2, when the first X-Ray detector group completes the image acquisition, the first image is obtained and the first end instruction is output to the control end, so that the control end controls the transmission belt to drive to convey the product to be tested from the first detection station to the second detection station. In the process of conveying the product to be tested from the first detection station to the second detection station, the first image is processed to obtain the first detection result and add it to the result queue.
[0082] In the above steps, when the product to be tested is located at the first detection station 110, the first sensor detects that the product to be tested is in place and outputs a first in-place signal. The operation end 210 controls the first X-Ray detector group 140 located at the first detection station 110 to perform image acquisition on the first position to be tested of the product to be tested according to the first in-place signal. When all the first X-Ray detectors in the first X-Ray detector group 140 complete the image acquisition, the operation end 210 obtains the first images output by all the first X-Ray detectors. At the same time, the operation end 210 outputs a first end instruction to the control end 220, and the control end 220 controls the transmission belt 100 to drive according to the instruction. When the transmission belt 100 drives, the product to be tested is conveyed from the first detection station 110 to the second detection station 120. During the conveying process, the operation end 210 processes all the first images to generate the first detection result of the first position to be tested and adds it to the preset result queue. In this way, the operation process and the conveying process of the product to be tested are run in parallel, and the time sequence is saved.
[0083] A3, obtaining a second in-place signal of the second detection station, and controlling the second X-Ray detector group to perform image acquisition on the second position to be tested of the product to be tested according to the second in-place signal of the second detection station.
[0084] In the embodiment, the in-place signal of the second detection station 120 is denoted as a second in-place signal, and the second in-place signal carries a second position identifier. The second position identifier is used to represent the second position to be tested of the product to be tested. It can be understood that the first position to be tested and the second position to be tested should be different positions.
[0085] A4, when the second X-Ray detector group completes the image acquisition, obtaining the second images and outputting a second end instruction to the control end, so that the control end controls the transmission belt to drive to convey the product to be tested from the second detection station to the sorting station. During the conveying process of the product to be tested from the second detection station to the sorting station, the second images are processed to obtain the second detection result and added to the result queue.
[0086] In the above steps, when the product under test is located at the second detection station 120, the second sensor detects that the product under test is in place and outputs a second in-place signal. The operation end 210 controls the second X-Ray detector group 150 located at the second detection station 120 to perform image acquisition on the second position under test of the product under test according to the second in-place signal. When all the second X-Ray detectors in the second X-Ray detector group 150 complete the image acquisition, the operation end 210 obtains the second images output by all the second X-Ray detectors. At the same time, the operation end 210 outputs a second end instruction to the control end 220, and the control end 220 controls the transmission belt 100 to drive according to the instruction. When the transmission belt 100 drives, the product under test is conveyed from the second detection station 120 to the sorting station 130. During the conveying process, the operation end 210 processes the second images to generate second detection results of the second positions under test and adds them to a preset result queue. In this way, the operation process and the conveying process of the product under test are run in parallel, and the time sequence is saved.
[0087] As a further implementation, step A1 will be further described and explained as follows. Step A1 can include but is not limited to the following steps:
[0088] A11, acquire and detect the in-place signal of the first detection station, i.e., the first in-place signal.
[0089] A12, when it is detected that the first in-place signal carries the first position identifier, determine the multiple first positions under test according to the first position identifier.
[0090] It should be noted that the multiple first positions under test correspond to the multiple first X-Ray detectors one by one.
[0091] A13, construct multiple first detection threads.
[0092] It should be noted that the multiple first X-Ray detectors correspond to the multiple first detection threads one by one. Each first detection thread is used to control the corresponding first X-Ray detector in the first X-Ray detector group 140, and the corresponding first X-Ray detector is used to perform image acquisition on the first position under test corresponding to it.
[0093] A14, control the corresponding first X-Ray detector by each first detection thread, so that all the first X-Ray detectors perform corresponding image acquisition on the multiple first positions under test to generate first images of the multiple first positions under test.
[0094] In this step, the operation end 210 controls the first X-ray detector corresponding to each first detection thread, and the first X-ray detector corresponding to the thread collects images of the first to-be-measured position, so that each first detection thread can obtain the first image of the corresponding first to-be-measured position. Wherein, when the first image of the corresponding first to-be-measured position is obtained, it is regarded that the X-ray detector corresponding to the first to-be-measured position completes image collection; when the first images of all first to-be-measured positions are obtained, it is regarded that the first X-ray detector group 140 completes image collection.
[0095] As a further implementation, step A2 will be further described and explained as follows. Step A2 can include but is not limited to the following steps:
[0096] A21, when all first detection threads output corresponding first images are detected by the preset first reply device, the first X-ray detector group completes image collection, obtains the first images output by all first detection threads, and generates a first end instruction through the first reply device and outputs it to the control end, so that the control end controls the transmission belt to drive the to-be-measured product from the first detection station to the second detection station.
[0097] It should be noted that the input end of the preset first reply device is connected with the output end of each first detection thread, and the output end of the first reply device is connected with the control end 220.
[0098] Optionally, the number of input ends of the first reply device is the same as the number of first detection threads. Specifically, the input end of the first reply device includes a plurality of first sub-input ends, and the plurality of first sub-input ends correspond to the plurality of first detection threads one by one. Each first sub-input end is connected with the output end of the first detection thread corresponding thereto.
[0099] In this embodiment, the function of the first reply device is to detect whether all first detection threads output corresponding first images. When all first detection threads output first images, the operation end 210 detects this situation through the first reply device, and regards that the first X-ray detector group 140 completes image collection. At this time, the operation end 210 outputs a first end instruction to the control end 220, so that the to-be-measured product goes to the second detection station 120.
[0100] A22, during the process of transferring the to-be-measured product from the first detection station to the second detection station, the first image is processed to obtain the first detection result and is added to the result queue.
[0101] As a further implementation, step A3 will be further described and explained as follows. Step A3 can include but is not limited to the following steps:
[0102] A31, acquire and detect the arrival signal of the second detection station, i.e., the second arrival signal.
[0103] A32, when it is detected that the second arrival signal carries the second position identifier, determine the plurality of second to-be-tested positions of the to-be-tested product according to the second position identifier.
[0104] It should be noted that the plurality of second to-be-tested positions correspond to the plurality of second X-Ray detectors one by one.
[0105] A33, construct a plurality of second detection threads.
[0106] It should be noted that the plurality of second detection threads correspond to the plurality of second X-Ray detectors one by one, and each second detection thread is used to control a corresponding second X-Ray detector in the second X-Ray detector group 150, and the corresponding second X-Ray detector performs image acquisition on the second to-be-tested position corresponding thereto to generate a corresponding second image.
[0107] A34, control the corresponding second X-Ray detector of each second detection thread by each second detection thread, so that all second X-Ray detectors perform corresponding image acquisition on the plurality of second to-be-tested positions to generate second images of the plurality of second to-be-tested positions.
[0108] In this step, the operation end 210 controls the corresponding second X-Ray detector of each second detection thread, and the second X-Ray detector performs image acquisition on the second to-be-tested position corresponding thereto, and each second detection thread can obtain the second image of the corresponding second to-be-tested position. When the second image of the corresponding second to-be-tested position is obtained, it is regarded that the image acquisition of the X-Ray detector corresponding to the second to-be-tested position is completed; when the second images of all second to-be-tested positions are obtained, it is regarded that the image acquisition of the second X-Ray detector group 150 is completed.
[0109] As a further implementation, step A4 will be further described and explained below. Step A4 can include but is not limited to the following steps:
[0110] A41, when it is detected by the preset second reply device that all second detection threads output corresponding second images, it is regarded that the image acquisition of the second X-Ray detector group is completed, the second images output by all second detection threads are obtained, and a second end instruction is generated by the second reply device and output to the control end.
[0111] It should be noted that the input end of the preset second reply device is connected with the output end of each second detection thread respectively, and the output end of the second reply device is connected with the control end 220.
[0112] Optionally, the number of the input ends of the second replyer is the same as the number of the second detection threads. Specifically, the input ends of the second replyer include a plurality of second sub-input ends, the plurality of second sub-input ends correspond to the plurality of second detection threads one-to-one, and each second sub-input end is connected to the output end of the second detection thread corresponding thereto.
[0113] In this embodiment, the second replyer is used to detect whether all the second detection threads output corresponding second images. When all the second detection threads output corresponding second images, the operation end 210 detects this case through the second replyer, and regards that the second X-ray detector group 150 completes image acquisition. At this time, the operation end 210 outputs a second end instruction to the control end 220, so that the product to be tested goes to the sorting station 130.
[0114] A42, during the process of conveying the product to be tested from the second detection station 120 to the sorting station 130, the second image is processed to obtain a second detection result and add the second detection result to the result queue.
[0115] In an embodiment of the present application, the construction of the result queue in the embodiment of the present application will be further described. The result queue is a result queue container, which is used to store detection data obtained in the detection process. The basic unit of the result queue is a detection result package, and any detection result needs to be packaged as a detection result package before being added to the result queue. In addition, the result queue is provided with a unified input interface and a query interface, the input interface is used to input the detection result package, and the query interface is used to query the detection result package.
[0116] Further, the input interface and the query interface are both provided with a corresponding thread lock, and the thread lock is used to lock the interface to which it belongs. For example, the thread lock of the input interface is used to lock the input interface, and the thread lock of the query interface is used to lock the query interface. The state of the thread lock of the input interface and the query interface includes any one of a locked state or an unlocked state, and the interface state of the input interface and the query interface includes any one of a locked state or an unlocked state.
[0117] In this embodiment, when the thread lock is in the locked state, the interface corresponding to the thread lock is in the locked state; and when the thread lock is in the unlocked state, the interface corresponding to the thread lock is in the unlocked state.
[0118] It can be understood that when the thread lock of the query interface or the input interface is in the locked state, the query interface or the input interface is in the locked state. When the thread lock of the query interface or the input interface is in the unlocked state, the query interface or the input interface is in the unlocked state.
[0119] Further, at the same time, only one of the query interface and the input interface is in the locked state, and the other is in the unlocked state.
[0120] It can be understood that, at the same time, if the query interface is in the locked state, the input interface is in the unlocked state; if the query interface is in the unlocked state, the input interface is in the locked state.
[0121] In the embodiment, the control of the interface is implemented by setting a thread lock in the interface, so that at most one thread is allowed to operate at the same time, that is, only one of the input data process or the query data process is allowed to operate, and the purpose of this is to avoid the conflict between the input data process and the query data process.
[0122] Based on the above embodiment, first, the implementation process of adding the detection result to the result queue will be further described. Referring to Figure 4 , the process can include the following steps:
[0123] B1, the detection result is packaged into a detection result package, and the state of the thread lock of the query interface is detected.
[0124] It should be noted that the structure of the detection result package is not limited by the present application, and the structure of the detection result package can be selected according to actual conditions. For example, in some embodiments of the present application, when the product to be tested is a battery cell, the detection result can include two-dimensional code data of the product to be tested, angle position detection result, angle position number, positive and negative alignment, positive alignment, negative alignment and other detection data, and all the detection data are packaged to form a detection result package as shown in Figure 5 .
[0125] B2, when it is detected that the thread lock of the query interface is in the unlocked state, the state of the thread lock of the input interface is detected.
[0126] In this step, when it is detected that the query interface is not locked, it means that the detection result package can be added to the result queue at present.
[0127] B3, when it is detected that the thread lock of the input interface is in the unlocked state, the detection result package is input to the result queue through the input interface, and the state of the thread lock of the input interface is changed from the unlocked state to the locked state, and the input interface is in the locked state.
[0128] In this step, when it is detected that the input interface is not locked, it means that the detection result package can be added to the result queue. At this time, the detection result package is input to the result queue through the input interface, and the input interface is locked to avoid the conflict between the input data process and the query data process.
[0129] B4, inserting the detection result package into the tail of the result queue, changing the state of the thread lock of the input interface from the locked state to the unlocked state, and the input interface is in the unlocked state.
[0130] In this step, the purpose of inserting the newly added detection result package into the tail of the queue is to ensure the ordered caching of data, so as to facilitate data management and data query. When the detection result package is inserted into the tail of the result queue, the data caching process represented by the detection result package is completed, and the input interface is unlocked at this time, indicating that the data query process can be performed.
[0131] Then, the implementation process of S400 will be described and explained. Referring to Figure 6 , S400 can include but is not limited to the following steps.
[0132] S410, when it is identified that the query instruction carries the product identifier, detecting the state of the thread lock of the input interface.
[0133] It should be noted that the product identifier corresponds to the product to be tested, and all detection results corresponding to the product identifier can be queried through the query instruction.
[0134] S420, when it is detected that the thread lock of the input interface is in the unlocked state, detecting the state of the thread lock of the query interface.
[0135] In this step, when it is detected that the input interface is not locked, it means that all detection results corresponding to the query instruction can be searched for at present.
[0136] S430, when it is detected that the thread lock of the query interface is in the unlocked state, determining the product to be tested corresponding to the product identifier according to the product identifier, and searching for the detection result corresponding to the product to be tested in the result queue, and then changing the state of the thread lock of the query interface from the unlocked state to the locked state, and the query interface is in the locked state.
[0137] In this step, when it is detected that the query interface is not locked, it means that all detection results corresponding to the query instruction can be searched for. At this time, while determining the product to be tested corresponding to the product identifier and searching for the detection result corresponding to the product to be tested in the result queue, the query interface is locked to avoid conflict between the input data process and the data query process.
[0138] S440, judging whether the detection result corresponding to the product to be tested includes the first detection result and the second detection result. If yes, S441 is executed; if no, S442 is executed.
[0139] S441, outputting the first detection result and the second detection result to the control end, and erasing the first detection result and the second detection result from the result queue, and entering S450.
[0140] In this step, after outputting the required detection result, the required detection result is erased from the queue to avoid the problem of data accumulation being too large to cause the operation end 210 to crash, and to reduce the load of the operation end 210.
[0141] S442, output the result of the incomplete detection of the product to be tested, and enter S450.
[0142] S450, change the state of the thread lock of the query interface from the locked state to the unlocked state, and the query interface is in the unlocked state.
[0143] In this step, when the detection result is output, the query data process is completed, and the query interface is unlocked to indicate that the data input process can be performed.
[0144] An embodiment is provided below, and the embodiment takes the battery to be tested as the product to be tested as an example to illustrate the application.
[0145] In the process of manufacturing the battery, it is usually necessary to detect the alignment and other parameters of the four corner positions of the battery product to ensure the quality of the battery product before leaving the factory. Referring to Figure 7 , the four corner positions of the battery to be tested are defined as the first corner position AP1, the second corner position AP2, the third corner position AP3 and the fourth corner position AP4. This embodiment will describe the actual application process of the application by taking the battery to be tested as the product to be tested.
[0146] Referring to Figure 8 , the battery to be tested is detected by the X-Ray automatic detection equipment, and the detection control method and device of the application are used to control the X-Ray automatic detection equipment, and a large amount of data generated during the process is cached and managed. For the four corner positions of the battery product, the first corner position AP1 and the second corner position AP2 are defined as the first detection position of the battery to be tested, and the third corner position AP3 and the fourth corner position AP4 are defined as the second detection position of the battery to be tested. For the X-Ray automatic detection equipment, the first detection station 110, the second detection station 120 and the sorting station 130 are provided on the device of the embodiment, the first X-Ray detector group 140 includes two first X-Ray detectors, and the first X-Ray detector is used to detect the first corner position AP1 and the second corner position AP2; the second X-Ray detector group 150 includes two second X-Ray detectors, and the second X-Ray detector is used to detect the third corner position AP3 and the fourth corner position AP4.
[0147] Referring to Figure 9 , the specific process of detecting and querying data of the battery to be tested in the embodiment includes:
[0148] Step 1, when the previous battery to be tested reaches the first detection station 110, the first detection unit of the operation end 210 receives the first arrival signal located at the first detection station 110, constructs two first detection threads, and controls two first X-Ray detectors through the two first detection threads. Under the control, one of the first X-Ray detectors performs image acquisition on the first angle position API of the previous battery to be tested, and generates the first image corresponding to the second angle position AP2; the other first X-Ray detector performs image acquisition on the second angle position AP2 of the previous battery to be tested, and generates the first image corresponding to the second angle position AP2.
[0149] When each first X-Ray detector completes image acquisition, the first image needs to be output to the first operation unit of the operation end 210 through the output end of the first detection thread. Since the output end of the first detection thread is connected with the input end of the first reply device, the first reply device can detect whether the corresponding first image is output by the first detection thread, and the operation end 210 judges whether the first X-Ray detector group 140 completes image acquisition. When all the first detection threads output the corresponding first image, it is regarded that the first X-Ray detector group 140 completes image acquisition, the first operation unit of the operation end 210 obtains all the first images, and the first control unit of the operation end 210 outputs the first end instruction to the control end 220 through the first reply device.
[0150] The control end 220 controls the transmission of the transmission belt 100 to drive the previous battery to be tested from the first detection station 110 to the second detection station 120.
[0151] Step 2, during the transmission of the previous battery to be tested, the first operation unit of the operation end 210 operates a plurality of first images to obtain the first detection result of the previous battery to be tested. Then, the first operation unit encapsulates the first detection result into a detection result package as shown in Figure 5 When the input interface of the result queue is not locked, the first operation unit inputs the detection result package of the first detection result through the input interface of the result queue, and locks the input interface to avoid conflict between the input data process and the query data process. When the detection result package of the first detection result is inserted into the tail of the result queue, the first operation unit unlocks the input interface.
[0152] It should be noted that when the previous battery under test is conveyed to the second detection station 120, the previous battery under test enters the following step 3. The battery under test behind the previous battery under test, i.e., the first battery under test behind, enters the conveying belt 100 and is conveyed to the first detection station 110, and the detection process and data caching process of steps 1-2 are performed on the first battery under test behind.
[0153] Step 3, when the previous battery under test is conveyed to the second detection station 120, the second detection unit of the operation end 210 receives the second arrival signal at the second detection station 120, constructs two second detection threads, and controls two second X-Ray detectors through the two second detection threads. Under the control, one of the X-Ray detectors performs image acquisition on the third angle AP3 of the previous battery under test to generate a second image corresponding to the third angle AP3, and the other X-Ray detector performs image acquisition on the fourth angle AP4 of the previous battery under test to generate a second image corresponding to the fourth angle AP4.
[0154] When each second X-Ray detector completes image acquisition, the second image needs to be output to the second operation unit through the output end of the second detection thread. Since the output end of the second detection thread is connected to the input end of the second reply, the second reply can detect whether the corresponding second image is output by the second detection thread, and the operation end 210 judges whether the second X-Ray detector group 150 completes image acquisition. When all the second detection threads output the corresponding second image, it is regarded that the second X-Ray detector group 150 completes image acquisition, the second operation unit of the operation end 210 obtains all the second images, and the second control unit of the operation end 210 outputs a second end instruction to the control end 220 through the second reply.
[0155] The control end 220 controls the transmission of the conveying belt 100 to convey the previous battery under test from the second detection station 120 to the sorting station 130.
[0156] Step 4, during the conveying process of the previous battery under test, the second operation unit of the operation end 210 performs operation on the plurality of second images to obtain the second detection result of the previous battery under test. Then, the second operation unit encapsulates the second detection result into a detection result package as shown in Figure 5 The second operation unit judges whether the query interface of the result queue is locked. If yes, it waits; if no, it judges whether the input interface of the result queue is locked. When the input interface of the result queue is not locked, the second operation unit inputs the detection result package of the second detection result through the input interface of the result queue, and locks the input interface to avoid conflict between the input data process and the query data process. When the detection result package of the second detection result is inserted into the tail of the result queue, the second operation unit unlocks the input interface.
[0157] It should be noted that when the previous battery under test is conveyed to the sorting station 130, the previous battery under test enters the following step 5. The detection process of the battery under test following the previous battery under test, i.e. the first battery under test following, has completed the above steps 1 to 2, the first battery under test following is conveyed to the second detection station 120, and the detection process and data caching process of the first battery under test following are performed. At the same time, the battery under test following the first battery under test following, i.e. the second battery under test following, enters the conveying belt 100 and is conveyed to the first detection station 110, and the detection process and data caching process of the second battery under test following are performed.
[0158] Step 5, when the previous battery under test reaches the sorting station 130, the third detection unit detects the sorting-in-place signal of the sorting station 130, and obtains the query instruction from the control end 220 according to the sorting-in-place signal, the query instruction carrying the product identifier, which represents the battery under test. The product identifier of the specific embodiment is two-dimensional code information.
[0159] When the query unit of the operation end 210 receives the query instruction and identifies the corresponding product identifier, it detects whether the input interface is locked; when the input interface is not locked, the next step of detection is performed, i.e. detecting whether the query interface is locked. When the query interface is not locked, the query unit finds the previous battery under test according to the two-dimensional code information, and then finds the first detection result and the second detection result corresponding to the previous battery under test in the result queue.
[0160] If both the first detection result and the second detection result can be found, it means that the four corner positions of the previous battery under test have been detected, at which time all the detection results of the previous battery under test are output to the outside, and then they are erased from the result queue after the results are output.
[0161] If the first detection result and the second detection result cannot be found, or only one of the first detection result or the second detection result can be found, it means that the four corner positions of the previous battery under test have not been completely detected, at which time the incomplete detection result of the battery under test is output to the outside. After the result is output to the outside, the query interface is unlocked.
[0162] It should be noted that when the detection query of the previous battery under test is completed, the entire detection process of the previous battery under test is completed, and it is conveyed to other stations.
[0163] After that, the detection process of the first-in-waiting battery cell has completed the above steps 3 to 4, the first-in-waiting battery cell is transmitted to the sorting station 130, and the above steps 5 are performed on the first-in-waiting battery cell. At this time, the detection process of the second-in-waiting battery cell has completed the above steps 1 to 2, the second-in-waiting battery cell is transmitted to the second detection station 120, and the above steps 3 to 4 are performed on the second-in-waiting battery cell. In this way, the detection of multiple battery cells and the caching of data are completed.
[0164] As can be seen from the above, the present application overcomes the defect that the related art cannot realize integrated control of multiple detectors and multiple stations, and realizes intelligent management and control of cross-station and multiple detectors of the X-Ray automatic detection equipment. In addition, the present application solves the problem of management and caching of a large amount of detection data, and realizes orderly caching and management of a large amount of data. The present application can realize parallel detection and data caching of multiple products and multiple stations, effectively improves product detection efficiency and data management efficiency, and saves detection time without increasing additional time consumption outside the time required to complete the necessary detection task.
[0165] The embodiment of the present application also provides a computer readable storage medium, wherein a processor executable program is stored, and the processor executable program is used for executing the detection control method of the X-Ray automatic detection equipment when executed by a processor.
[0166] Similarly, the contents in the above method embodiments are applicable to the present storage medium embodiment, the present storage medium embodiment specifically realizes the functions and achieves the beneficial effects same as the above method embodiments.
[0167] In some alternative embodiments, the functions / operations mentioned in the block diagram can not occur in the order mentioned in the operation diagram. For example, depending on the functions / operations involved, two blocks shown in succession can actually be executed substantially simultaneously or the blocks can sometimes be executed in reverse order. In addition, the embodiments presented and described in the flowcharts of the present application are provided by way of example, and the purpose is to provide a more comprehensive understanding of the technology. The disclosed method is not limited to the operations and logical flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and in which sub-operations described as part of larger operations are independently executed.
[0168] Furthermore, although the present application is described in the context of functional modules, it is to be understood that one or more of the functions and / or features can be integrated in a single physical device and / or software module, or one or more functions and / or features can be implemented in separate physical devices or software modules. It will also be appreciated that detailed discussion of the actual implementation of each module is not necessary to an understanding of the application. Rather, the actual implementation of the modules, in light of the attributes, functions and internal relationships of the various functional modules disclosed herein, will be apparent to one of ordinary skill in the art given the benefit of this disclosure. Accordingly, the present application is not limited to the specific embodiments illustrated herein, but is applicable for use in general with any device that can benefit from the functionality of the present application. It will also be appreciated that the specific concepts disclosed herein are merely illustrative of the application and that changes in implementation and design can be made without departing from the spirit of the application. The scope of the application is to be determined by the claims appended hereto, along with the full scope of equivalents to which such claims are entitled.
[0169] If the functions are implemented in software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or the part of the prior art that makes essential contributions or the part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of programs for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.
[0170] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered a list of executable instructions for implementing logical functions, and can be specifically embodied in any computer-readable medium for use by or in connection with a program execution system, apparatus or device, such as a computer-based system, a system including a processor, or other system that can take programs from a program execution system, apparatus or device and execute them, or in conjunction with these program execution systems, apparatus or devices. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transport programs for use by or in connection with a program execution system, apparatus or device, or in conjunction with these program execution systems, apparatus or devices.
[0171] More specific examples (a non-exhaustive list) of the computer-readable medium include the following: an electrical connection (electronic) having one or more wires, a portable computer diskette (magnetic), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can also be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, for example, via optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
[0172] It should be understood that aspects of the application can be implemented in hardware, software, firmware or combinations thereof. In the above described embodiments, various steps or methods can be implemented in software or firmware that is stored in memory and executed by a suitable
[0173] In the above description of the present application, reference has been made to descriptive terms such as "one embodiment," "another embodiment," "some embodiments," etc. Such descriptive terms mean that a particular feature, structure, material or characteristic described in connection with the embodiment is included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily referring to the same embodiment. Further, when a particular feature, structure, material or characteristic is described in connection with any one or more embodiments, it is submitted that it is within the purview of the inventor(s) to effect such feature, structure, material or characteristic in connection with any other or all embodiments.
[0174] While the embodiments of the application have been shown and described, it is to be understood that the embodiments described are only by way of example and are not limiting of the scope of the application. The scope of the application is limited only by the claims and the full scope of equivalents thereof.
[0175] The above description is that of the preferred embodiments of the application. Various modifications and changes can be made thereto without departing from the spirit and scope of the application, which is to be given the broadest interpretation of the laws. The description is intended to cover any and all modifications and changes as can come within the scope and spirit of the present application.
Claims
1. A detection control method of an X-Ray automatic detection apparatus, characterized by, The method comprises the following steps: controlling the X-Ray detector group to collect images of the product to be tested; when the X-Ray detector group completes image collection, obtaining a detection image and outputting an end instruction to the control end, so that the control end controls the transmission belt to drive the product to be tested from the detection station to the sorting station, and in the process of transferring the product to be tested from the detection station to the sorting station, the detection image is processed to obtain a detection result and added to the result queue; detecting and identifying a query instruction from the control end, the query instruction carrying a product identifier; when it is identified that the query instruction carries the product identifier, determining the product to be tested corresponding to the product identifier, finding the detection result of the product to be tested from the result queue and outputting it to the control end; wherein the detection station comprises a first detection station and a second detection station, and the detection result comprises a first detection result and a second detection result; the result queue is provided with an input interface and a query interface, and at the same time, only one of the query interface and the input interface is in a locked state, and the other is in an unlocked state; when it is identified that the query instruction carries the product identifier, determining the product to be tested corresponding to the product identifier, finding the detection result of the product to be tested from the result queue and outputting it to the control end, specifically comprising: when it is identified that the query instruction carries the product identifier, detecting the state of the thread lock of the input interface; when it is detected that the thread lock of the input interface is in an unlocked state, detecting the state of the thread lock of the query interface; when it is detected that the thread lock of the query interface is in an unlocked state, determining the product to be tested corresponding to the product identifier according to the product identifier, and finding the detection result corresponding to the product to be tested from the result queue, and then changing the state of the thread lock of the query interface from the unlocked state to the locked state, and the query interface is in the locked state; determining whether the detection result corresponding to the product to be tested includes the first detection result and the second detection result; if yes, outputting the first detection result and the second detection result to the control end, and erasing the first detection result and the second detection result from the result queue, and entering the next step; if not, outputting the result that the product to be tested has not completed detection, and entering the next step; changing the state of the thread lock of the query interface from the locked state to the unlocked state, and the query interface is in the unlocked state.
2. The detection control method of an X-Ray automatic detection apparatus according to claim 1, characterized in that, The X-Ray detector group comprises a first X-Ray detector group and a second X-Ray detector group, and the detection image comprises a first image and a second image, and the end instruction comprises a first end instruction and a second end instruction; wherein the step of controlling the X-Ray detector group to collect images of the product to be tested, when the X-Ray detector group completes image collection, obtaining a detection image and outputting an end instruction to the control end, comprises: An arrival signal of the first detection station is acquired, and the first X-Ray detector group is controlled to perform image acquisition on the first detection position of the product to be detected according to the arrival signal of the first detection station; When the first X-Ray detector group completes the image acquisition, a first image is obtained, and a first end instruction is output to the control end, so that the control end controls the transmission belt to drive the product to be detected from the first detection station to the second detection station, and the first image is processed to obtain a first detection result and add the first detection result to the result queue during the process of the product to be detected from the first detection station to the second detection station; An arrival signal of the second detection station is acquired, and the second X-Ray detector group is controlled to perform image acquisition on the second detection position of the product to be detected according to the arrival signal of the second detection station; When the second X-Ray detector group completes the image acquisition, a second image is obtained, and a second end instruction is output to the control end, so that the control end controls the transmission belt to drive the product to be detected from the second detection station to the sorting station, and the second image is processed to obtain a second detection result and add the second detection result to the result queue during the process of the product to be detected from the second detection station to the sorting station.
3. The method of claim 2, wherein the method further comprises: The acquisition of the arrival signal of the first detection station and the control of the first X-Ray detector group to perform image acquisition on the first detection position of the product to be detected according to the arrival signal of the first detection station specifically includes: An arrival signal of the first detection station is acquired and detected, and the arrival signal of the first detection station carries a first position identifier; When the arrival signal of the first detection station is detected to carry the first position identifier, a plurality of first detection positions of the product to be detected are determined according to the first position identifier; The first X-Ray detector group includes a plurality of first X-Ray detectors, and the plurality of first detection positions correspond to the plurality of first X-Ray detectors one by one; A plurality of first detection threads are constructed, and the plurality of first detection threads correspond to the plurality of first X-Ray detectors one by one; Each first detection thread controls the corresponding first X-Ray detector to make all the first X-Ray detectors perform image acquisition on the plurality of first detection positions to generate a first image of the plurality of first detection positions.
4. The method of claim 3, wherein the method further comprises: When all the first detection threads output corresponding first images are detected by a preset first reply device, the first X-Ray detector group completes the image acquisition, obtains the first images output by all the first detection threads, and generates a first end instruction through the first reply device and outputs the first end instruction to the control end; The input end of the preset first reply device is connected with the output end of each first detection thread, and the output end of the first reply device is connected with the control end.
5. The method of claim 2, wherein the method further comprises: The acquisition of the second detection station arrival signal, and the control of the second X-Ray detector group on the second test position of the product to be tested according to the second detection station arrival signal specifically includes: Acquire and detect the second detection station arrival signal, and the second detection station arrival signal carries a second position identifier; When the second detection station arrival signal is detected to carry the second position identifier, determine the plurality of second test positions of the product to be tested according to the second position identifier; The second X-Ray detector group includes a plurality of second X-Ray detectors, and the plurality of second test positions correspond to the plurality of second X-Ray detectors one by one; A plurality of second detection threads are constructed, and the plurality of second detection threads correspond to the plurality of second X-Ray detectors one by one; Each second detection thread controls the corresponding second X-Ray detector to make all second X-Ray detectors perform image acquisition on the plurality of second test positions to generate second images of the plurality of second test positions.
6. The method of claim 5, wherein the method further comprises: When the second X-Ray detector group completes image acquisition, a second image is obtained and a second end instruction is output to the control end, specifically including: when all second detection threads are detected to output corresponding second images by a preset second reply device, the second X-Ray detector group completes image acquisition, obtains second images output by all second detection threads, and generates a second end instruction by the second reply device and outputs it to the control end; The input end of the preset second reply device is connected with the output end of each second detection thread, and the output end of the second reply device is connected with the control end.
7. The method of claim 1, wherein the method further comprises: determining whether the X-ray automatic detection device is in a standby mode; and if the X-ray automatic detection device is in the standby mode, determining whether a user input is received. The input interface and the query interface are provided with corresponding thread locks, the state of the thread lock includes any one of a locked state or an unlocked state, and the state of the input interface and the query interface includes any one of a locked state or an unlocked state; when the thread lock is in the locked state, the interface corresponding to the thread lock is in the locked state; when the thread lock is in the unlocked state, the interface corresponding to the thread lock is in the unlocked state.
8. The method of claim 7, wherein the method further comprises: The step of adding the detection result to the result queue includes: The detection result is packaged into a detection result package, and the state of the thread lock of the query interface is detected; When it is detected that the thread lock of the query interface is in the unlocked state, the state of the thread lock of the input interface is detected; When it is detected that the thread lock of the input interface is in the unlocked state, the detection result package is input to the result queue through the input interface, and the state of the thread lock of the input interface is changed from the unlocked state to the locked state, and the input interface is in the locked state; The detection result package is inserted into the tail of the result queue, the state of the thread lock of the input interface is changed from the locked state to the unlocked state, and the input interface is in the unlocked state.
9. A detection control device of an X-Ray automatic detection equipment, applied to an X-Ray automatic detection equipment, wherein the equipment is provided with an X-Ray detector group and a conveying belt, the conveying belt is provided with a detection station and a sorting station, the detection station is located at a position close to an input end of the conveying belt, the sorting station is located at a position close to an output end of the conveying belt, and the conveying belt is used for conveying a product to be detected; the X-Ray detector group is arranged at the detection station, and the X-Ray detector group is used for detecting the product to be detected; characterized in that, The detection control device is applied to a detection control method of an X-Ray automatic detection equipment according to any one of claims 1-8, and the detection control device comprises a calculation end and a control end, and the calculation end comprises: a detection unit, configured to acquire a to-position signal of a detection station, and control an X-Ray detector group to collect images of a product to be detected according to the to-position signal; a control unit, configured to acquire detection images when the X-Ray detector group completes the image collection, and output an end instruction to the control end; a calculation unit, configured to process the detection images during the process that the product to be detected is conveyed from the detection station to a sorting station, acquire detection results, and add the detection results to a result queue; an acquisition and identification unit, configured to acquire a sorting to-position signal of the sorting station, detect and identify a query instruction from the control end according to the sorting to-position signal, and the query instruction carries a product identifier; a query unit, configured to determine the product to be detected corresponding to the product identifier when the query instruction carries the product identifier, find the detection results of the product to be detected from the result queue, and output the detection results to the control end; the control end comprises: a control module, configured to control a transmission belt drive according to the end instruction, so as to convey the product to be detected from the detection station to the sorting station; a query module, configured to send a query instruction; an acquisition module, configured to acquire the detection results of the product to be detected corresponding to the query instruction.
Citation Information
Patent Citations
Visual inspection equipment for 2D / 3D arc-edge glass cover plate
CN113351519A
Pressing pump detection device
CN116060310A