Detection method and detection device
By adjusting the brightness of the infrared emitter in the detection device to adapt to environmental changes, and combining with the camera to identify infrared light images, the error detection and missed detection problems caused by inadequate brightness of the light source are solved, and the accurate identification of the number and distribution of flat material layers is achieved.
Patent Information
- Application Number
- CN202011331338.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-24
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2040-11-24
AI Technical Summary
The brightness of the light emitted by the existing line scanning flat material detection device or optical detection system does not adapt to environmental changes, resulting in the problem of false detection or missed detection during the identification of flat material.
The infrared emitter in the detection device is used to adjust the brightness of the environment in which the target cartridge is located, control the brightness of the infrared rays to adapt to environmental changes, and combine the camera to capture and identify the reflected infrared light image of the flat material to determine its layer number and distribution.
It improves the accuracy of identifying the number of layers of flat material in the cassette and reduces the occurrence of false detection and missed detection.
Smart Images

Figure CN114544617B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of detection technology, and in particular to a detection method and a detection device. Background Art
[0002] Flat sheet materials are typically ultra-thin, highly transparent, a common example being liquid crystal glass substrates. LCD glass substrates are typically approximately 1mm thick and nearly transparent. Flat sheet materials are typically arranged in multiple layers within a cassette, with up to 30 layers and a height exceeding 2 meters. Due to the relative fragility of these flat sheet materials, non-contact inspection methods are typically employed to avoid scratching them. Non-contact inspection involves scanning the flat sheet material within the cassette using a line scan flat sheet material inspection device or a light source from an optical inspection system. The scanned material is then identified to determine the number and distribution of layers within the cassette.
[0003] The light source emitted by conventional line-scan flatbed material inspection devices or optical inspection systems generally has a fixed intensity. However, in some cases, if the light intensity of the line-scan flatbed material inspection device or optical inspection system is too high or too low, it may lead to false detection or missed detection of flatbed materials in the cassette. Summary of the Invention
[0004] The embodiments of the present application provide a detection method and a detection device, which can improve the accuracy of identifying the number of layers of flat materials in a cassette.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] In the first aspect, an embodiment of the present application provides a detection method, which is applied to a detection device, wherein the detection device includes one or more detection units, each detection unit includes at least one camera and multiple groups of infrared emitters, and the method includes: the detection device receives a first detection command, and the first detection command is used to instruct the detection of flat material in a target cartridge; the detection device controls the multiple groups of infrared emitters of the target detection unit in the one or more detection units to emit infrared rays to the target cartridge, and the brightness of the infrared rays is determined according to the brightness of the environment in which the target cartridge is located; the detection device captures the reflected infrared light image of the flat material in the target cartridge through at least one camera of the target detection unit, and identifies the infrared light image to determine the number of layers and distribution of the flat material in the target cartridge.
[0007] Based on the technical solution provided in this application, upon receiving a detection command to detect the number of layers of flat material in a target cassette, the detection device can control multiple sets of infrared emitters in the detection unit to emit infrared light toward the target cassette, matching the brightness of the current environment. Because the infrared light emitted by the infrared emitters matches the brightness of the current environment, the detection device can adjust the brightness of the infrared light emitted by the infrared emitters based on the brightness of the current environment. The adjusted brightness of the infrared light emitted by the infrared emitters can be used to identify the number and distribution of layers of flat material in the cassette. Based on this, the detection device can accurately determine the number and distribution of layers of flat material in the target cassette by identifying infrared light images emitted by the flat material captured by at least one camera.
[0008] In one possible implementation, for any target infrared emitter in the multiple groups of infrared devices of the target detection unit, the detection device adjusts the first brightness and the second brightness of the infrared light emitted by the target infrared emitter according to a preset adjustment graduation value. The first brightness is the minimum brightness of the target infrared emitter in the environment where the target cartridge is located and the detection device can identify a single layer of flat material. The second brightness is the maximum brightness of the target infrared emitter in the environment where the target cartridge is located and the detection device can identify a single layer of flat material.
[0009] Based on this possible implementation method, the detection device can adjust the brightness of the infrared light emitted by any infrared emitter so that the adjusted brightness of the infrared light emitted by any infrared emitter can identify a single layer of flat material in the environment where the cassette is located, thereby meeting the detection requirements.
[0010] In one possible implementation, the detection device adjusts the infrared rays emitted by the multiple groups of infrared emitters of the target detection unit according to a preset adjustment graduation value to obtain a third brightness and a fourth brightness of the infrared rays emitted by the multiple groups of infrared emitters. The third brightness is the minimum brightness of the multiple groups of infrared emitters in the environment where the target cartridge is located and the detection device can identify multi-layer flat materials. The fourth brightness is the maximum brightness of the multiple groups of infrared emitters in the environment where the target cartridge is located and the detection device can identify multi-layer flat materials.
[0011] Based on this possible implementation method, the detection device can simultaneously adjust the brightness of infrared rays emitted by multiple groups of infrared emitters of the detection unit, so that the adjusted detection unit can identify multi-layer flat materials in the environment where the cassette is located to meet the detection requirements.
[0012] In one possible implementation, the brightness of infrared rays emitted by multiple groups of infrared emitters of the target detection unit to the target cartridge is determined based on the minimum brightness among multiple groups of first brightness, the minimum brightness among multiple groups of second brightness, the third brightness, and the fourth brightness.
[0013] Based on this possible implementation, the brightness of the infrared rays emitted by the multiple groups of infrared emitters of the target detection unit to the target cartridge can identify the single-layer flat material and the multi-layer flat material in the target cartridge more accurately.
[0014] In a possible implementation, the brightness of the infrared light emitted by the multiple groups of infrared emitters of the target detection unit to the target cartridge is greater than or equal to max(α l ,γ1), and less than or equal to min(β l ,δ1); where α l is the minimum brightness among multiple groups of first brightness, β l is the minimum brightness among the multiple groups of second brightness, γ1 is the third brightness, and δ1 is the fourth brightness.
[0015] Based on this possible implementation, the detection device can accurately determine the brightness of infrared rays emitted by multiple groups of infrared emitters of the target detection unit to the target cartridge, which is simple and convenient.
[0016] In one possible implementation, the brightness of the infrared light emitted by the multiple groups of infrared emitters of the target detection unit to the target cartridge is greater than or equal to and less than or equal to Among them, α l is the minimum brightness among multiple groups of first brightness, β l is the minimum brightness among the multiple groups of second brightness, γ1 is the third brightness, δ1 is the fourth brightness, and n is an integer.
[0017] Based on this possible implementation, the detection device can accurately determine the brightness of infrared rays emitted by multiple groups of infrared emitters of the target detection unit to the target cartridge, which is simple and convenient.
[0018] In one possible implementation, the brightness of the infrared light emitted by the target infrared emitter in the target detection unit is greater than or equal to and less than or equal to
[0019] Among them, α x is the first light brightness, β x is the second light brightness, and m is an integer greater than 1.
[0020] Based on this possible implementation, the detection device can control the infrared light intensity emitted by the multiple groups of infrared emitters in the target detection unit toward the target cassette to be within a range between the minimum and maximum brightness levels required for each group to identify a single layer of flat material. This allows the detection device to flexibly and accurately control the infrared light intensity emitted by each group of infrared emitters in the target detection unit toward the target cassette to be optimally suited to the current environment.
[0021] In one possible implementation, the detection device receives a first adjustment command for instructing adjustment of the brightness of infrared rays emitted by each group of infrared emitters in at least one detection unit; the detection device adjusts the brightness of infrared rays emitted by each group of infrared emitters in at least one detection unit according to the first adjustment command, so that the brightness of infrared rays emitted by each group of infrared emitters after adjustment corresponds to the brightness of the environment in which the detection device is located.
[0022] Based on this possible implementation, if the environment in which the detection device is located changes, the detection device can adjust the brightness of the infrared light emitted by the infrared emitter in at least one detection unit based on the brightness of the current environment. This allows the brightness of the infrared light emitted by the infrared emitter to adapt to the current environment. As a result, the detection device can maintain detection accuracy despite changes in the environment.
[0023] In a second aspect, an embodiment of the present application provides a detection device, including: a communication unit and a processing unit;
[0024] A communication unit is used to receive a first detection command, which is used to detect the flat material in the target cartridge; a processing unit is used to control multiple groups of infrared emitters of the target detection unit to emit infrared rays to the target cartridge, the target detection unit is one of the one or more detection units in the detection device, and the brightness of the infrared rays emitted by the multiple groups of infrared emitters of the target detection unit is determined according to the brightness of the environment in which the target cartridge is located; the processing unit is also used to capture the reflected infrared light image of the flat material in the target cartridge through at least one camera of the target detection unit, and recognize the reflected infrared light image to determine the number of layers and distribution of the flat material in the target cartridge.
[0025] In a third aspect, a detection device is provided, which includes a processor, a memory and a communication interface; wherein the communication interface is used for the detection device to communicate with other devices; the memory is used to store one or more programs, and the one or more programs include computer execution instructions. When the detection device is running, the processor executes the computer execution instructions stored in the memory to enable the detection device to execute the first aspect and any possible implementation of the first aspect.
[0026] In a fourth aspect, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are executed, the method of the first aspect is implemented.
[0027] In a fifth aspect, a computer program product is provided, which includes at least one instruction. When the at least one instruction is executed on a computer, the computer executes the method of the first aspect.
[0028] In a sixth aspect, a chip is provided, comprising at least one processor and a communication interface, wherein the communication interface is coupled to the at least one processor, and the at least one processor is used to run a computer program or instruction to implement the method of the first aspect.
[0029] The detection device or computer-readable storage medium or computer program product or chip provided above are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding schemes in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A schematic diagram illustrating the detection principle of a flat material provided in an embodiment of the present application;
[0031] Figure 2 A schematic diagram of an image of a flat material captured according to an embodiment of the present application;
[0032] Figure 3 A schematic structural diagram of a detection device provided in an embodiment of the present application;
[0033] Figure 4 A schematic structural diagram of another detection device provided in an embodiment of the present application;
[0034] Figure 5 A schematic structural diagram of another detection device 500 provided in an embodiment of the present application;
[0035] Figure 6 A flowchart of an infrared transmitter adjustment method provided in an embodiment of the present application;
[0036] Figure 7 A schematic diagram of a detection method provided in an embodiment of the present application;
[0037] Figure 8 This is a schematic structural diagram of another detection device 80 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] Before describing the embodiments of the present application, the following terms and definitions are provided:
[0039] Image recognition: This refers to determining the number and distribution of layers of flat material in an image based on the difference in brightness between the edge of the flat material illuminated by infrared light and the surrounding environment.
[0040] For example, Figure 1 As shown, the detection device can emit infrared rays to the flat material in the cassette through multiple sets of infrared emitters. After the infrared rays are emitted to the edge of the flat material, they are reflected by the edge of the flat material and then reflected to the camera for camera shooting. The image captured by the camera can be as follows Figure 2 shown. Figure 2 In the image, the first area is the edge area of the flat material, and the second area is the area without flat material (for example, it can be the gap between flat materials). The brightness of the first area is higher than that of the second area. Based on this principle, the detection device can identify the number of layers and distribution of flat materials in the image. If there is no illuminated area in the image captured by the camera (for example, an area with a large difference in light and dark appears in the image), it means that there is no flat material in the cartridge. Alternatively, if the shape of the illuminated area in the image is significantly different from that of the edge of the flat material, it means that there is a problem with the detection device (for example, the brightness of the infrared light emitted by the infrared emitter is too high or too low).
[0041] It should be noted that in the embodiments of the present application, if the detection device detects the cassette using a single detection unit, the number of infrared emitters in the detection unit is equal to the number of flat sheet materials that can be accommodated within the cassette, and the spacing between multiple groups of infrared emitters is consistent with or similar to the spacing between flat sheet materials within the cassette. If the infrared light emitted by a group of infrared emitters is reflected, and the image captured by the camera can identify flat sheet materials, then this indicates that there are flat sheet materials in that layer within the cassette. In this way, the detection device can determine the number and distribution of layers of flat sheet materials within the cassette based on the position information of each group of infrared emitters and whether the corresponding image can identify flat sheet materials.
[0042] For example, the detection device controls multiple groups of infrared emitters in the detection unit 1 to emit infrared rays toward the cassette 1. The detection unit 1 includes 20 groups of infrared emitters. The arrangement of the 20 groups of infrared emitters from top to bottom is: infrared emitter 1 → infrared emitter 2 → ... → infrared emitter 20. The cassette 1 can accommodate 20 layers of flat materials. The spacing between the 20 groups of infrared emitters in the detection unit 1 is the same as the number of layers of flat materials in the cassette 1. If the detection device's recognition result is that the images corresponding to infrared emitters 1 to 13 cannot identify flat materials (that is, the number of flat materials is 0), and the images corresponding to infrared emitters 14 to 20 can identify flat materials, then the detection device can determine that the distribution of flat materials in the cassette is: there are no flat materials placed on layers 1 to 13, and there are flat materials placed on layers 14 to 20.
[0043] If the detection device detects the cassette using multiple detection units, the total number of infrared emitters in the multiple detection units can be the same as the number of flat materials that can be accommodated in the cassette, and the spacing between the multiple groups of infrared emitters in the multiple detection units can be consistent or similar to the spacing between the flat materials in the cassette. Each detection unit can be used to detect flat materials within a certain area within the cassette. The sum of the areas detected by each of the multiple detection units is the area where the flat materials are located in the cassette, and the areas detected by the multiple detection units do not overlap. In this way, based on the number and distribution of flat material layers within the corresponding area detected by each detection unit, the number and distribution of flat material layers within the entire cassette can be determined.
[0044] Specifically, the detection device detects the number of layers and distribution of the flat material in the cartridge according to each detection unit, which can be referred to above.
[0045] For example, the detection device includes three detection units, namely detection unit 1, detection unit 2, and detection unit 3. The arrangement of detection units 1, 2, and 3 from top to bottom is: detection unit 1 → detection unit 2 → detection unit 3. Each of detection units 1, 2, and 3 has 10 groups of infrared emitters. The detection result of detection unit 1 is: the images corresponding to infrared emitters 1 to 7 cannot identify flat materials. The detection result of detection unit 2 is: the images corresponding to infrared emitters 1 to 10 can identify flat materials. The detection result of detection unit 3 is: the images corresponding to infrared emitters 1 to 10 can identify flat materials. The detection device can then determine the distribution of flat materials in the cassette as follows: no flat materials are placed on layers 1 to 7, and flat materials are placed on layers 8 to 30.
[0046] It should be noted that in the embodiments of the present application, the detection device may be a line scanning flat material detection device or an optical detection system. For ease of description, these will be collectively referred to as the detection device. The infrared emitter may be an infrared irradiation lamp. The wavelength of the infrared light emitted by the infrared emitter may be set as needed, for example, to 850 nanometers (nm). Accordingly, the capture unit may be a camera capable of capturing infrared light reflected from the edge of the flat material.
[0047] As can be seen from the above, the detection device primarily relies on the difference in brightness between the illuminated edge of the flat material and the surrounding environment during image recognition. Therefore, to achieve effective and accurate image recognition, the illuminated edge of the flat material must be clearly distinguishable from the surrounding environment. However, due to the complex external lighting environment of the line-scanning flat material detection device on the production line, and the ultra-thin and highly transparent nature of the flat material, a clear difference in brightness between the flat material edge and the surrounding environment is required to distinguish the flat material from the surrounding environment. Therefore, the brightness of the infrared light used to illuminate the flat material edge is a crucial factor.
[0048] Typically, the light source in a detection device can only be turned on or off, but its brightness cannot be adjusted, or the brightness can only be adjusted to a fixed reference value. Therefore, in actual use, the light source in the detection device only has a fixed brightness or is adjusted to a fixed reference value. However, the ambient lighting conditions and installation situations in which the detection device is installed vary, and the fixed brightness value of the detection device's light source may not be suitable for the environment. This may result in no noticeable difference in brightness between the edge of the flat material and the surrounding environment, leading to false detection or missed detection.
[0049] If the infrared emitter brightness is too low, it will not be able to fully illuminate the edge of the flat material. Due to the ultra-thin and highly transparent nature of flat materials, the image of the flat material cannot be effectively distinguished from the background image, resulting in the inability to recognize the presence of the flat material, which is a missed detection error.
[0050] If the infrared emitter's brightness is too high, the light will be too strong, illuminating the edge of the glass flat material while also illuminating the surrounding environment, making it difficult to distinguish the flat material edge from the surrounding environment; if there is no flat material on the layer, but there is flat material on the adjacent layer or there are other interfering objects around, the infrared emitter with excessive brightness may illuminate the edge of the flat material on the other adjacent layer or other interfering objects very brightly. At this time, image recognition may misjudge the presence of flat material on this layer, i.e., a false detection error occurs.
[0051] In view of this, an embodiment of the present application provides a detection method, which includes: a detection device receives a first detection command, and the first detection command is used to detect the number of layers of flat material in a target cartridge; the detection device controls multiple groups of infrared emitters of a target detection unit in one or more detection units to emit infrared rays to the target cartridge, and the brightness of the infrared rays is determined according to the brightness of the environment in which the target cartridge is located; the detection device captures an infrared light image reflected by the flat material in the target cartridge through at least one camera of the target detection unit, and identifies the infrared light image to determine the number of layers of the flat material in the target cartridge.
[0052] Based on the technical solution provided in this application, upon receiving a detection command to detect the number of layers of flat material in a target cassette, the detection device can control multiple sets of infrared emitters in the detection unit to emit infrared light toward the target cassette, matching the brightness of the current environment. Because the infrared light emitted by the infrared emitters matches the brightness of the current environment, the detection device can adjust the brightness of the infrared light emitted by the infrared emitters based on the brightness of the current environment. The adjusted brightness of the infrared light emitted by the infrared emitters can be used to identify the number of layers of flat material in the cassette. Based on this, the detection device can accurately determine the number of layers of flat material in the target cassette by identifying infrared light images emitted by the flat material captured by at least one camera.
[0053] A data transmission method provided in an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0054] Figure 3 A detection device provided in an embodiment of the present application, such as Figure 3 As shown, the detection device may include a main control unit, at least one detection unit (e.g., detection unit 1, detection unit 2, ... detection unit N), a command input interface, and a parameter storage unit. The main control unit is respectively connected to the at least one detection unit, the command input interface, and the parameter storage unit. For example, the connection can be made by wired (such as universal serial bus (USB), type-C) or wireless (such as Bluetooth, wireless fidelity (wifi)).
[0055] The main control unit may be configured to receive operating instructions from a staff member via a command input interface, and to send a detection instruction to the detection unit, for instructing the detection unit to perform a detection operation on the flat material in the cartridge.
[0056] For example, the main control unit can be a chip, a single-chip microcomputer, etc., without limitation.
[0057] The parameter storage unit can be used to store the brightness values of the infrared emitter's light source and, in response to a call instruction from the main control unit, send the brightness value corresponding to the call instruction to the main control unit. The parameter storage unit can also be used to store the effective adjustment range, adjustment scale, and adjusted brightness set value of the infrared light emitted by each infrared emitter. In this way, when the detection device is powered off and restarted, the detection device can directly retrieve the adjusted brightness of each infrared emitter from the parameter storage unit, without having to adjust the brightness again.
[0058] The effective adjustment range of the infrared light brightness of the infrared emitter may refer to the minimum and maximum brightness of the infrared light emitted by the infrared emitter when the infrared emitter is operating normally. The adjustment scale value may be used to adjust the brightness of the infrared light emitted by the infrared emitter. The set value after brightness adjustment may refer to the brightness of the infrared light emitted by the infrared emitter at which the detection device can accurately identify the number of layers of flat material in the image.
[0059] The detection unit can be used to emit infrared rays toward the flat material in the cassette according to the detection instructions of the main control unit, and to photograph the cassette to obtain an image of the cassette. The detection unit can also be used to send the photographed image to the main control unit for the main control unit to recognize the image and determine the number of layers of flat material in the cassette.
[0060] For example, Figure 4 As shown, the detection unit may include a camera, one or more infrared emitters (e.g., infrared emitter 1, infrared emitter 2, ..., infrared emitter N). Of course, the detection unit may also include other modules, such as a brightness adjustment module and an infrared emitter gating module.
[0061] The camera can capture an infrared image reflected by the edge of the flat material and send the infrared image to the main control unit. Correspondingly, the infrared emitter can be used to emit infrared rays.
[0062] It should be noted that in the embodiment of the present application, the spacing between the multiple groups of infrared emitters in each detection unit of at least one detection unit of the detection device is consistent. The spacing between the multiple groups of infrared emitters in different detection units in at least one detection unit can be the same or different. The spacing between the multiple groups of infrared emitters in each detection unit can be set as needed. For example, the spacing between the multiple groups of infrared emitters in detection unit 1 to detection unit N can be between 30 millimeters (mm) and 50 mm. For another example, the spacing between the multiple groups of infrared emitters in detection unit 1 can be 30 mm, the spacing between the multiple groups of infrared emitters in detection unit 2 can be 40 mm, and the spacing between the multiple groups of infrared emitters in detection unit N can be 50 mm, without limitation.
[0063] Furthermore, the spacing between the multiple groups of infrared emitters in the detection unit may be consistent with or close to the spacing between the flat materials in the cartridge.
[0064] Based on this design, the infrared emitter can emit light more closely to the edge of the flat material, thereby increasing the brightness of the image of the flat material and enhancing the distinction between the flat material and the surrounding environment.
[0065] The brightness adjustment module can control the brightness of the infrared light emitted by the infrared emitter according to the adjustment instruction of the main control unit.
[0066] The infrared transmitter selection module can be used to control the infrared transmitter to transmit infrared rays or stop transmitting infrared rays according to the control instruction of the main control unit.
[0067] When implementing it specifically, Figure 3 The detection device can be used Figure 5 The composition results shown may include Figure 5 Parts shown. Figure 5 This is a schematic diagram of the composition of a detection device 500 provided in an embodiment of the present application. The detection device 500 can be a detection device or a chip or system on a chip in a detection device. Figure 5 As shown, the detection device 500 includes a processor 501 , a communication interface 502 and a communication line 503 .
[0068] Furthermore, the detection device 500 may further include a memory 504 , wherein the processor 501 , the memory 504 and the communication interface 502 may be connected via a communication line 503 .
[0069] The processor 501 is a CPU, a general-purpose processor, a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The processor 501 may also be other devices with processing functions, such as circuits, devices, or software modules, without limitation.
[0070] The communication interface 502 is used to communicate with other devices or other apparatuses. The communication interface 502 can be a module, a circuit, a communication interface or any apparatus capable of implementing communication.
[0071] The communication line 503 is used to transmit information between the components included in the detection device 500.
[0072] The memory 504 is used to store instructions, where the instructions may be computer programs.
[0073] The memory 504 may be a read-only memory (ROM) or other type of static storage device that can store static information and / or instructions, or a random access memory (RAM) or other type of dynamic storage device that can store information and / or instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, etc., without limitation.
[0074] It should be noted that the memory 504 can exist independently of the processor 501 or can be integrated with the processor 501. The memory 504 can be used to store instructions, program code, or some data. The memory 504 can be located within the detection device 500 or outside the detection device 500, without limitation. The processor 501 is configured to execute the instructions stored in the memory 504 to implement the detection methods provided in the following embodiments of this application.
[0075] In one example, the processor 501 may include one or more CPUs, such as Figure 5 CPU0 and CPU1 in.
[0076] As an optional implementation, the detection device 500 includes multiple processors, for example, Figure 5 In addition to the processor 501, a processor 507 may also be included.
[0077] As an optional implementation, the detection apparatus 500 further includes an output device 505 and an input device 506. For example, the input device 506 is a device such as a keyboard, and the output device 505 is a device such as a display.
[0078] It should be pointed out that Figure 5 The composition structure shown in the figure does not constitute a limitation on the detection device, except Figure 5 In addition to the components shown, the detection device may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0079] In the embodiment of the present application, the chip system can be composed of chips, or can include chips and other discrete devices.
[0080] In addition, the actions and terms involved in the various embodiments of this application can refer to each other without limitation. The message names or parameter names in the messages exchanged between the various devices in the embodiments of this application are only examples, and other names can also be used in specific implementations without limitation.
[0081] To facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the first brightness and the second brightness are merely used to distinguish different brightness levels and do not limit their order. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity or execution order, and words such as "first" and "second" do not necessarily mean that they are different.
[0082] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0083] In this application, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0084] The following combination Figure 3 The detection device shown in the figure describes the detection method provided in the embodiment of the present application. Among them, the detection device described in the following embodiment can have Figure 2 The components shown are not described in detail here. Among them, the actions, terms, etc. involved in the various embodiments of the present application can refer to each other without limitation. The message names or parameter names in the messages exchanged between the various devices in the embodiments of the present application are only an example, and other names can also be used in the specific implementation without limitation. The actions involved in the various embodiments of the present application are only an example, and other names can also be used in the specific implementation, such as: "included in" described in the embodiments of the present application can also be replaced by "carried on" or "carried in", etc.
[0085] The detection method provided in the embodiment of the present application includes: a process in which the detection device adjusts the brightness of infrared light emitted by each group of infrared emitters in at least one detection unit according to a first adjustment command (referred to as the "infrared emitter adjustment process") and a process in which the detection device uses the adjusted infrared emitters to detect flat material in a cartridge (referred to as the "detection process").
[0086] The following first describes the "adjustment process of the infrared transmitter".
[0087] like Figure 6 As shown, the “infrared transmitter adjustment process” may include: steps 601 to 602 .
[0088] Step 601: The detection device receives a first adjustment command.
[0089] The detection device can be Figure 3 or Figure 4 There is no restriction on the detection device.
[0090] The first adjustment command may be used to instruct the detection device to adjust the brightness of infrared rays emitted by multiple groups of infrared emitters in one detection unit, and the adjusted brightness corresponds to the environment in which the detection device is located.
[0091] The brightness relative to the environment in which the detection device is located can refer to the fact that after the infrared light emitted by the infrared emitter is reflected by the flat material, the brightness of the area where the flat material is located in the image captured by the camera is significantly different from the brightness of other areas without the flat material. This makes the image captured by the camera easier to recognize.
[0092] In a possible implementation, after the environment in which the detection device is located changes, the staff may send a first adjustment command to the detection device through the command input interface.
[0093] The change in the environment of the detection device may include one or more of the following: a change in the intensity of light outside the detection device (e.g., an increase or decrease in the intensity of the optical fiber), a change in the location of the detection device (e.g., a movement of the detection device from location A to location B), optimization or updating of the detection device's software, updating of the detection device's hardware, or exceeding a preset period of use. The preset period may be set as needed and is not limited.
[0094] Step 602: The detection device adjusts at least one detection unit.
[0095] The detection device adjusting the at least one detection unit may refer to the detection device adjusting the brightness of the infrared light emitted by the infrared emitter in the at least one detection unit.
[0096] In a possible implementation, the detection device may first test each detection unit in the at least one detection unit to obtain a test result of each detection unit.
[0097] Testing the detection units may involve the detection device sequentially controlling each infrared emitter in a detection unit to emit infrared light toward a single layer of flat material and capturing an image. The detection device then identifies the captured image. If the detection device identifies that the number of flat materials in the image is one, the brightness of the infrared light emitted by the infrared emitter is normal. If the detection device cannot identify the number of flat materials in the image, or identifies that the number of flat materials is greater than one, the brightness of the infrared light emitted by the infrared emitter is abnormal and requires adjustment.
[0098] In one example, combining Figure 4 Taking the detection device as an example of testing the infrared emitter 1 in the detection unit 1, the process of the detection device testing the infrared emitter 1 in the detection unit 1 may include:
[0099] S1. The detection device sends a first instruction to the infrared transmitter selection module.
[0100] The first instruction is used to instruct infrared transmitter 1 to operate, and to instruct infrared transmitter 2 to infrared transmitter N to stop operating.
[0101] S2. In response to the first instruction, the infrared transmitter 1 transmits infrared rays to the cartridge.
[0102] In one possible implementation, a worker can use a cassette containing at least one layer of flat material as the test object (hereinafter referred to as the "test cassette" for ease of distinction). The spacing (or arrangement) between the at least one layer of flat material is consistent with the spacing (or arrangement) between the at least one infrared emitter in the detection unit 1. This ensures that the infrared light from each infrared emitter can reach the edge of the flat material.
[0103] S3. The detection device controls the camera to capture a first image.
[0104] The first image is an image captured by a camera of the infrared emitter 1 in operation.
[0105] S4. The detection device performs image recognition on the first image.
[0106] Herein, the image recognition can refer to the above description and will not be elaborated on here.
[0107] If the detection device identifies that the number of flat materials in the first image is 1, then the brightness of the infrared light emitted by infrared emitter 1 is normal. If the detection device cannot identify the number of flat materials in the first image, or if the number of flat materials in the first image is greater than 1, then the brightness of the infrared light emitted by infrared emitter 1 is abnormal and requires adjustment. The specific adjustment method can be found in the subsequent description and is not detailed here.
[0108] In one example, if the brightness of the infrared light emitted by infrared emitter 1 is abnormal, the detection device may output a first notification message indicating that the brightness of the infrared light emitted by infrared emitter 1 needs to be adjusted. For example, the first notification message may be "A1-a1-UNNORMAL," where "A1" may represent detection unit 1, "a1" may identify infrared emitter 1 in detection unit 1, and "UNNORMAL" may indicate abnormal brightness.
[0109] In another example, if the brightness of the infrared light emitted by infrared emitter 1 is normal, the detection device may output a second notification message indicating that the brightness of the infrared light emitted by infrared emitter 1 is normal. For example, the second notification message may be "A1-a1-NORMAL," where "A1" may represent detection unit 1, "a1" may identify infrared emitter 1 in detection unit 1, and "NORMAL" may indicate that the brightness is normal.
[0110] In this way, the detection device can test each infrared emitter in the detection unit 1 and each infrared emitter in other detection units (such as detection unit 2 to detection unit N) according to the above-mentioned test process to obtain the test results of each infrared emitter in each detection unit.
[0111] In another possible implementation, the detection device may adjust the brightness of the infrared light emitted by the infrared emitter.
[0112] In one example, combining Figure 4 The process of the detection device adjusting the brightness of the infrared light emitted by the infrared emitter 1 in the detection unit 1 may include:
[0113] S5. The detection device obtains the effective adjustment range of the brightness and adjusts the graduation value.
[0114] The description of the effective adjustment range of the brightness and the adjustment graduation value can refer to the above description and will not be repeated here.
[0115] In one possible implementation, the detection device can obtain the effective brightness adjustment range and adjustment scale values from a parameter storage unit. For example, in response to an adjustment command input by a staff member, the main control unit can send a call command to the parameter storage unit. After receiving the call command, the parameter storage unit can send the effective brightness adjustment range and adjustment scale values to the main control unit.
[0116] S6. The detection device adjusts the brightness of the infrared emitter 1 according to the effective brightness adjustment range and the adjustment graduation value.
[0117] Adjusting the brightness of the infrared emitter 1 may refer to determining a first brightness and a second brightness of the infrared emitter 1 .
[0118] The first brightness may refer to the minimum brightness of the infrared emitter 1 in the environment of the test cassette, at which the detection device can identify a single layer of flat material in the test cassette. The first brightness may refer to the maximum brightness of the infrared emitter 1 in the environment of the test cassette, at which the detection device can identify a single layer of flat material in the test cassette.
[0119] For example, the detection device can control the infrared emitter 1 to work and control the other infrared emitters to stop working. In this way, the infrared emitter 1 can be adjusted.
[0120] In one example, the detection device can control the initial brightness of the infrared light emitted by infrared emitter 1 to be the minimum value in the effective adjustment range. The detection device gradually increases the brightness of the infrared light emitted by infrared emitter 1 according to the adjustment scale value to obtain the first brightness and the second brightness of infrared emitter 1.
[0121] For example, the effective adjustment range of the brightness is [A, B], and the adjustment scale is C. The detection device can control the initial brightness of the infrared light emitted by infrared emitter 1 to A. If the detection device cannot identify the number of layers of flat material in the test cassette, the detection device adjusts the brightness of the infrared light emitted by infrared emitter 1 to A+C. If the detection device can identify the number of layers of flat material in the test cassette when the brightness of the infrared light emitted by infrared emitter 1 is A+C, A+C is used as the first brightness of infrared emitter 1. In this way, the detection device can gradually increase the brightness of the infrared light emitted by infrared emitter 1 until the number of layers of flat material in the test cassette cannot be identified. If the detection device cannot identify the number of layers of flat material in the test cassette when the brightness of the infrared light emitted by infrared emitter 1 is A+nC, A+(n-1)C is used as the second brightness value of infrared emitter 1, where n is a positive integer.
[0122] The method for determining the first brightness value and the second brightness value of other infrared emitters in the detection unit 1 can refer to the method for determining the first brightness value and the second brightness value of the infrared emitter 1, and will not be described in detail.
[0123] It should be noted that if the infrared reflector cannot identify the number of layers of flat material in the test cassette within the effective brightness adjustment range, this indicates a possible problem with the detection device. For example, the detection device may have malfunctioned. In this case, the detection device may output a first alarm message. This first alarm message may indicate a problem with the detection device and require personnel to inspect or debug the detection device, the surrounding environment, or the detection unit. Once the problem has been corrected, the staff can control the detection device to readjust the brightness of the infrared reflector.
[0124] Furthermore, to ensure the accuracy of each detection unit in detecting the number of multi-layer veneer materials, the detection device can simultaneously adjust the brightness of the infrared light emitted by the multiple sets of infrared emitters in each detection unit. The adjusted brightness of the infrared light emitted by the multiple sets of infrared emitters in each detection unit enables the detection device to identify the multi-layer veneer materials.
[0125] It should be noted that in the embodiment of the present application, the brightness ranges of the multiple groups of infrared emitters of each detection unit (i.e., [first brightness, second brightness]) may have an intersection, and the intersection is not empty. If the intersection is empty, it means that there may be a problem with the detection device. For example, the detection device has failed. In this case, the detection device can input a second alarm message. The second alarm message refers to the description of the first alarm message and is not repeated here.
[0126] The following combination Figure 4 Still taking the detection unit 1 as an example, the process of the detection device adjusting the brightness of the infrared rays emitted by the multiple groups of infrared emitters of each detection unit may include:
[0127] S7. The detection device obtains the effective adjustment range of the brightness and adjusts the graduation value.
[0128] Here, this step can refer to the above S5 and will not be described in detail.
[0129] S8. The detection device adjusts the detection unit 1 according to the effective adjustment range of the brightness and the adjustment graduation value.
[0130] The adjusting of the detection unit 1 may refer to controlling multiple groups of infrared emitters of the detection unit 1 to work simultaneously, so as to determine the third brightness value and the fourth brightness value of the multiple groups of infrared emitters.
[0131] The third brightness value may be the minimum brightness at which the detection device can identify the number of multi-layer flat materials in the test cassette when the multiple sets of infrared emitters are in the environment in which the test cassette is located. The fourth brightness value may be the maximum brightness at which the detection device can identify the number of multi-layer flat materials in the test cassette when the multiple sets of infrared emitters are in the environment in which the test cassette is located.
[0132] For example, the detection device can control multiple groups of infrared emitters of the detection unit 1 to work simultaneously, and control other detection units to stop working. In this way, the multiple groups of infrared emitters of the detection unit 1 can be adjusted.
[0133] In one example, the detection device can control the initial brightness of the infrared light emitted by the multiple groups of infrared emitters in the detection unit 1 to be the minimum value in the effective adjustment range. The detection device gradually increases the brightness of the infrared light emitted by the multiple groups of infrared emitters according to the adjustment scale value to obtain the third brightness and the fourth brightness of the multiple groups of infrared emitters.
[0134] For example, the effective adjustment range of the brightness is [A, B], and the adjustment scale is C. The detection device can control the initial brightness of the infrared light emitted by the multiple sets of infrared emitters in the detection unit 1 to be A. If the detection device cannot identify the number of layers of flat material in the test cassette, the detection device adjusts the brightness of the infrared light emitted by the infrared emitter 1 to A+C. If the detection device still cannot identify the number of layers of flat material in the test cassette even when the brightness of the infrared light emitted by the multiple sets of infrared emitters in the detection unit 1 is A+C, the detection device adjusts the brightness of the infrared light emitted by the infrared emitter 1 to A+2C.
[0135] In this way, the detection device can gradually increase the brightness of the infrared light emitted by the multiple sets of infrared emitters in detection unit 1. If the detection device cannot identify the number of layers of flat material in the test cassette when the brightness of the infrared light emitted by the multiple sets of infrared emitters in detection unit 1 is A+(m-1)C, and can identify the number of layers of flat material in the test cassette when the brightness of the infrared light emitted by the multiple sets of infrared emitters in detection unit 1 is A+mC, then A+mC is used as the third brightness value of the multiple sets of infrared emitters in the detection unit. The detection device continues to increase the brightness of the infrared light emitted by the multiple sets of infrared emitters in detection unit 1. If the detection device can identify the number of layers of flat material in the test cassette when the brightness of the infrared light emitted by the multiple sets of infrared emitters in detection unit 1 is A+(m+k-1)C, and if the detection device cannot identify the number of layers of flat material in the test cassette when the brightness of the infrared light emitted by the multiple sets of infrared emitters in detection unit 1 is A+(m+k)C, then A+(m+k)C is used as the fourth brightness value of the multiple sets of infrared emitters in detection unit 1. m and k are positive integers.
[0136] It should be noted that the brightness ranges of the multiple groups of infrared emitters in detection unit 1 (i.e., [third brightness, fourth brightness]) intersect with the brightness ranges of any group of infrared emitters in detection unit 1 (i.e., [first brightness, second brightness]), and the intersection is not empty. If the intersection is empty, it indicates that there is a problem with the detection device. For example, the detection device has failed. In this case, the detection device can input a third alarm message. The third alarm message refers to the description of the first alarm message above and is not repeated here.
[0137] The method for adjusting the brightness of infrared rays emitted by the multiple groups of infrared emitters of other detection units of the detection device can refer to the method for adjusting the brightness of infrared rays emitted by the multiple groups of infrared emitters of the detection unit 1 of the detection device, and will not be repeated here.
[0138] Next, the "detection process" is described.
[0139] After the brightness of the light emitted by the multiple groups of infrared emitters in each detection unit of the detection device is adjusted by the above method, each detection unit after adjustment can be used to detect the amount of flat materials in the target cartridge. Figure 7 As shown, the detection method provided in the embodiment of the present application may include:
[0140] Step 701: The detection device receives a first detection command.
[0141] The first detection command may be used to instruct to detect the quantity of flat plate materials in the target cartridge.
[0142] It should be noted that in the embodiment of the present application, the environment of the target cartridge is consistent with the environment of the test cartridge. The spacing between the flat materials in the target cartridge is consistent with or close to the spacing between the multiple groups of infrared emitters in the detection unit.
[0143] Step 702: The detection device controls the multiple infrared emitters of the target detection unit to emit infrared rays toward the target cartridge.
[0144] Among them, the target detection unit can be Figure 3 or Figure 4 Of course, the target detection unit can also be Figure 3 or Figure 4 There is no limit on the number of detection units in .
[0145] The infrared ray emission of the target detection unit's multiple infrared emitters to the target cartridge is determined based on the brightness of the environment the target cartridge is in. The specific determination method can be referred to the "infrared emitter adjustment process" above and will not be elaborated on here.
[0146] In one possible implementation, the brightness of the infrared light emitted by the multiple sets of infrared emitters toward the target cartridge can be determined based on the first brightness, second brightness, third brightness, and fourth brightness of the multiple sets of infrared emitters. Specifically, refer to the following methods 1 to 4.
[0147] The first brightness may be the minimum brightness at which the target infrared emitter of the target detection unit can identify a single-layer flat material in the environment where the test cassette is located. The second brightness may be the maximum brightness at which the target infrared emitter of the target detection unit can identify a single-layer flat material in the environment where the test cassette is located.
[0148] Among them, the third brightness is the minimum brightness of the target detection unit's multiple groups of infrared emitters in the environment where the test cartridge is located and the detection device can identify the multi-layer flat material, and the fourth brightness is the maximum brightness of the multiple groups of infrared emitters in the environment where the test cartridge is located and the detection device can identify the multi-layer flat material.
[0149] Method 1: The brightness of the infrared light emitted by the multiple infrared emitters of the target detection unit to the target cartridge can be greater than or equal to max(α l ,γ1), and less than or equal to min(β l , δ1).
[0150] Among them, α l is the minimum brightness among multiple groups of first brightness of the target detection unit, β l is the minimum brightness among the multiple groups of second brightness of the target detection unit, γ1 is the third brightness, and δ1 is the fourth brightness.
[0151] For example, in combination with the example in step 602 above, taking detection unit 1 as an example, the first light brightness of infrared emitter 1 in detection unit 1 is α1=A+C, and the second light brightness is β2=A+(n-1)C. The first light brightness of infrared emitter 2 is α2=A+aC, and the second light brightness is β2=A+(a+x)C. The first light brightness of infrared emitter N is α N =A+bC, the second light brightness β N =A+(b+y)C. The third brightness of the multiple infrared emitters of the detection unit 1 is A+mC, and the fourth brightness is A+(m+k)C. If A+aC is the minimum brightness among the first brightness of the multiple infrared emitters of the detection unit 1, and A+(b+y)C is the minimum brightness among the second brightness of the multiple infrared emitters of the detection unit 1, then the above α l =A+aC,β l =A+(b+y)C, γ1=A+mC, δ1=A+(m+k)C.
[0152] If A+aC is greater than A+mC and A+(b+y)C is less than A+(m+k)C, then the brightness of the infrared light emitted by the multiple sets of infrared emitters in detection unit 1 toward the target cartridge is greater than or equal to A+aC and less than or equal to A+(b+y)C. In other words, the brightness of the infrared light emitted by the multiple sets of infrared emitters in detection unit 1 toward the target cartridge can be any value within [A+aC, A+(b+y)C]. For example, it can be A+aC, A+(b+y)C, or a value between A+aC and A+(b+y)C, without limitation.
[0153] Method 2: The brightness of the infrared light emitted by the multiple infrared emitters of the target detection unit to the target cartridge can be greater than or equal to and less than or equal to
[0154] Among them, α l , β l, γ1, and δ1 can refer to the description of the above-mentioned method 1 and are not repeated here. n is a positive integer. The value of n can be set as needed, for example, it can be 3, without limitation.
[0155] For example, in combination with the example in step 602 above, taking detection unit 1 as an example, the third light brightness of the multiple groups of infrared emitters of detection unit 1 is A+mC, and the fourth light brightness is A+(m+k)C. That is, α l =A+aC,β l =A+(b+y)C, γ1=A+mC, δ1=A+(m+k)C. n=3.
[0156] If A+aC is greater than A+mC, and A+(b+y)C is less than A+(m+k)C, then the brightness of the infrared light emitted by the multiple groups of infrared emitters of the detection unit 1 toward the target cartridge is greater than or equal to A+(2a+b+y)C / 3, and less than or equal to A+(a+2b+2y)C / 3. In other words, the brightness of the infrared light emitted by the multiple groups of infrared emitters of the detection unit 1 toward the target cartridge can be any value in [A+(2a+b+y)C / 3, A+(a+2b+2y)C / 3]. For example, it can be A+(2a+b+y)C / 3, or A+(a+2b+2y)C / 3, or any value between A+(2a+b+y)C / 3 and A+(a+2b+2y)C / 3, without limitation.
[0157] In another example, the infrared ray emitted by the target infrared ray emitter of the target detection unit to the target cartridge can be determined based on the first brightness and the second brightness of the target infrared ray emitter.
[0158] The target infrared emitter is any detection unit in the target detection unit. For example, if the target detection unit is detection unit 1, the target infrared emitter can be any one of infrared emitter 1 to infrared emitter N.
[0159] Mode 3: The brightness of the infrared light emitted by the target infrared emitter to the target cartridge can be any brightness between the first brightness and the second brightness of the target infrared emitter.
[0160] For example, assuming that the target detection unit is detection unit 1 and the target infrared emitter is infrared emitter 1 in detection unit 1, the first brightness of infrared emitter 1 is α1 = A + C, and the second brightness is β1 = A + (n-1) C. The brightness of the infrared light emitted by infrared emitter 1 toward the target cartridge can be A + C, A + (n-1) C, or any value between A + C and A + (n-1) C, without limitation.
[0161] In mode 4, the brightness of the infrared light emitted by the target infrared emitter to the target cartridge may belong to a portion of the brightness between the first brightness and the second brightness.
[0162] For example, the brightness of the infrared light emitted by the target infrared emitter to the target cartridge is greater than or equal to and less than or equal to
[0163] Among them, α x is the first light brightness of the target infrared emitter, β x is the second light brightness of the target infrared emitter, and m is an integer greater than 1. m can be set as needed, for example, it can be 3, without limitation.
[0164] For example, assuming the target detection unit is detection unit 1, the target infrared emitter is infrared emitter 1 in detection unit 1, and m = 3, the first brightness of infrared emitter 1 is α1 = A + C, and the second brightness is β1 = A + (n-1) C. The brightness of the infrared light emitted by infrared emitter 1 toward the target cartridge can be greater than or equal to A + (n-2) C / 3 and less than or equal to A + (2n-1) C / 3. In other words, the brightness of the infrared light emitted by infrared emitter 1 of detection unit 1 toward the target cartridge can be any value between [A + (n-2) C / 3, A + (2n-1) C / 3]. For example, it can be A + (n-2) C / 3, A + (2n-1) C / 3, or any value between A + (n-2) C / 3 and A + (2n-1) C / 3, without limitation.
[0165] Step 703: The detection device captures an infrared light image reflected by the flat material in the target cartridge through at least one camera of the target detection unit, and identifies the infrared light image to determine the number of layers of the flat material in the target cartridge.
[0166] Here, step 703 can refer to the description of the above image recognition and will not be described in detail.
[0167] based on Figure 7According to a technical solution, upon receiving a detection command for detecting the number of flat sheet materials in a target cassette, the detection device can control multiple infrared emitters in the detection unit to emit infrared light adapted to the brightness of the current environment toward the target cassette. Because the infrared light emitted by the infrared emitters is adapted to the brightness of the current environment, the detection device can adjust the brightness of the infrared light emitted by the infrared emitters based on the brightness of the current environment. The adjusted brightness of the infrared light emitted by the infrared emitters can be used to identify the number of flat sheet materials in the cassette. Based on this, the detection device can accurately determine the number of flat sheet materials in the target cassette by identifying infrared light images emitted by the flat sheet materials captured by at least one camera.
[0168] The various solutions in the above embodiments of the present application can be combined under the premise that there is no contradiction.
[0169] In the embodiment of the present application, the detection device can be divided into functional modules or functional units according to the above method examples. For example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0170] In the case of dividing each functional module into corresponding functional modules, Figure 8 The schematic diagram of the structure of a detection device 80 is shown. The detection device 80 can be a detection device or a chip used in the detection device. The detection device 80 can be used to perform the functions of the detection device involved in the above embodiment. Figure 6 The adjustment method of the infrared emitter of the target detection unit shown, or Figure 7 The detection method shown in FIG. 80 may include a communication unit 801 and a processing unit 802 .
[0171] The communication unit 801 is used to receive a first detection command, which is used to instruct to detect the number of flat materials in the target cartridge. For example, it can be used to execute Figure 7 Step 701 in .
[0172] The processing unit 802 is used to control the multiple infrared emitters of the target detection unit in one or more detection units to emit infrared rays to the target cartridge. The brightness of the infrared rays is determined according to the brightness of the environment where the target cartridge is located. For example, it can be used to execute Figure 7 Step 702 in .
[0173] The processing unit 802 is further configured to capture the infrared light image reflected by the flat material in the target cartridge through at least one camera of the target detection unit, and identify the infrared light image to determine the number of layers of the flat material in the target cartridge. Figure 7 Step 703 in .
[0174] The specific implementation of the detection device 80 can be found in Figure 6 Behavioral function of the detection device in the detection method shown.
[0175] In one possible design, Figure 8 The detection device 80 shown may further include a storage unit 803. The storage unit 803 is used to store program codes and instructions.
[0176] In one possible design, for any target infrared emitter in the multiple groups of infrared detectors of the target detection unit, the processing unit 802 is further configured to adjust the first brightness and the second brightness of the infrared light emitted by the target infrared emitter according to a preset adjustment scale value;
[0177] Among them, the first brightness is the minimum brightness of the target infrared emitter in the environment where the target cartridge is located and the detection device can identify a single layer of flat material, and the second brightness is the maximum brightness of the target infrared emitter in the environment where the target cartridge is located and the detection device can identify a single layer of flat material.
[0178] In one possible design, the processing unit 802 is further configured to adjust the infrared rays emitted by the multiple groups of infrared emitters of the target detection unit according to a preset adjustment scale value to obtain a third brightness and a fourth brightness of the infrared rays emitted by the multiple groups of infrared emitters;
[0179] Among them, the third brightness is the minimum brightness at which the detection device can identify multi-layer flat materials under the environment where the target cartridge is located, and the fourth brightness is the maximum brightness at which the detection device can identify multi-layer flat materials under the environment where the target cartridge is located.
[0180] In one possible design, the brightness of infrared rays emitted by multiple groups of infrared emitters of the target detection unit to the target cartridge is determined based on the minimum brightness among multiple groups of first brightness, the minimum brightness among multiple groups of second brightness, the third brightness, and the fourth brightness.
[0181] In one possible design, the brightness of the infrared light emitted by the multiple infrared emitters of the target detection unit to the target cartridge is greater than or equal to max(α l ,γ1), and less than or equal to min(β l ,δ1); where α l is the minimum brightness among multiple groups of first brightness, βl is the minimum brightness among the multiple groups of second brightness, γ1 is the third brightness, and δ1 is the fourth brightness.
[0182] In one possible design, the brightness of the infrared light emitted by the multiple infrared emitters of the target detection unit to the target cartridge is greater than or equal to and less than or equal to Among them, α l is the minimum brightness among multiple groups of first brightness, β l is the minimum brightness among the multiple groups of second brightness, γ1 is the third brightness, δ1 is the fourth brightness, and n is an integer.
[0183] In one possible design, the brightness of the infrared light emitted by the target infrared emitter in the target detection unit is greater than or equal to and less than or equal to
[0184] Among them, α x is the first light brightness of the target infrared emitter, β x is the second light brightness of the target infrared emitter, and m is an integer greater than 1.
[0185] In one possible design, the communication unit 801 is also used to receive a first adjustment command for instructing adjustment of the brightness of infrared rays emitted by each group of infrared emitters in at least one detection unit; the processing unit 802 is also used to adjust the brightness of infrared rays emitted by each group of infrared emitters in at least one detection unit according to the first adjustment command, so that the brightness of infrared rays emitted by each group of infrared emitters after adjustment corresponds to the brightness of the environment in which the detection device is located.
[0186] As another possible implementation method, Figure 8 The processing unit 802 in the embodiment may be replaced by a processor, which may integrate the functions of the processing unit 802. Figure 8 The communication unit 801 in the embodiment may be replaced by a transceiver or a transceiver unit, which may integrate the functions of the communication unit 801.
[0187] Furthermore, when the processing unit 802 is replaced by a processor and the communication unit 801 is replaced by a transceiver or a transceiver unit, the detection device 80 involved in the embodiment of the present application can be Figure 4 The detection device shown.
[0188] The present application embodiment also provides a computer-readable storage medium. All or part of the process in the above method embodiment can be completed by a computer program to instruct the relevant hardware, and the program can be stored in the above computer-readable storage medium. When the program is executed, it can include the process of each method embodiment as described above. The computer-readable storage medium can be the internal storage unit of the detection device (including the data sending end and / or the data receiving end) of any of the aforementioned embodiments, such as the hard disk or memory of the detection device. The above computer-readable storage medium can also be the external storage device of the above detection device, such as the plug-in hard disk equipped on the above detection device, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. Further, the above computer-readable storage medium can also include both the internal storage unit of the above detection device and an external storage device. The above computer-readable storage medium is used to store the above computer program and other programs and data required for the above detection device. The above computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.
[0189] It should be noted that the terms "first" and "second" in the specification, claims, and drawings of this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products, or devices.
[0190] It should be understood that in the present application, "at least one (item)" refers to one or more, "more than one" refers to two or more, "at least two (items)" refers to two or three and more than three, and "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0191] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0192] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0193] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0194] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0195] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
[0196] The above is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A detection method, characterized in that: Applied to a detection device, the detection device includes one or more detection units, the detection units include at least one camera and multiple groups of infrared emitters, the method includes: The detection device receives a first detection command, wherein the first detection command is used to instruct to detect the flat material in the target cartridge; The detection device controls multiple groups of infrared emitters of the target detection unit to emit infrared rays to the target cartridge, the target detection unit is one of the one or more detection units, and the brightness of the infrared rays emitted by the multiple groups of infrared emitters of the target detection unit is determined according to the minimum brightness among the multiple groups of first brightnesses, the minimum brightness among the multiple groups of second brightnesses, the third brightness, and the fourth brightness; the first brightness is the minimum brightness of a single-layer flat material that the detection device can identify under the environment where the target cartridge is located, the second brightness is the maximum brightness of a single-layer flat material that the detection device can identify under the environment where the target cartridge is located; the third brightness is the minimum brightness of a multi-layer flat material that the detection device can identify under the environment where the target cartridge is located, and the fourth brightness is the maximum brightness of a multi-layer flat material that the detection device can identify under the environment where the target cartridge is located; The detection device captures a reflected infrared image of the flat material in the target cartridge through at least one camera of the target detection unit, and recognizes the infrared image. Based on the difference in brightness between the portion of the flat material edge illuminated by infrared rays in the infrared image and the surrounding environment, the detection device determines the number of layers and distribution of the flat material in the target cartridge.
2. The method according to claim 1, characterized in that For the target infrared emitter, the target infrared emitter is any infrared emitter in the plurality of groups of infrared emitters of the target detection unit, and the method further includes: The detection device adjusts the brightness of the infrared ray emitted by the target infrared ray emitter according to a preset adjustment graduation value to obtain a first brightness and a second brightness of the infrared ray emitted by the target infrared ray emitter.
3. The method according to claim 2, characterized in that The method further comprises: The detection device adjusts the brightness of the infrared rays emitted by the multiple groups of infrared emitters of the target detection unit according to the preset adjustment graduation value to obtain the third light brightness and the fourth light brightness of the infrared rays emitted by the multiple groups of infrared emitters.
4. The method according to claim 3, characterized in that The brightness of the infrared rays emitted by the multiple infrared emitters of the target detection unit to the target cartridge is greater than or equal to max(α l ,γ1), and less than or equal to min(β l , δ1); Among them, α l is the minimum brightness among the multiple groups of the first brightness, β l is the minimum brightness among the multiple groups of the second brightness, γ1 is the third brightness, and δ1 is the fourth brightness.
5. The method according to claim 3, characterized in that The brightness of the infrared rays emitted by the multiple infrared emitters of the target detection unit to the target cartridge is greater than or equal to and less than or equal to Among them, α l is the minimum brightness among the multiple groups of the first brightness, β l is the minimum brightness among multiple groups of the second brightness, γ1 is the third brightness, δ1 is the fourth brightness, and n is a positive integer.
6. The method according to claim 2, characterized in that The brightness of the infrared light emitted by the target infrared emitter in the target detection unit is greater than or equal to and less than or equal to Among them, α x is the first light brightness, β x is the second light brightness, and m is an integer greater than 1.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: The detection device receives a first adjustment command, wherein the first adjustment command is used to instruct the detection device to adjust the brightness of infrared rays emitted by each group of infrared emitters in the at least one detection unit; The detection device adjusts the brightness of the infrared rays emitted by each group of infrared emitters in the at least one detection unit so that the brightness of the infrared rays emitted by each group of infrared emitters after adjustment corresponds to the brightness of the environment in which the detection device is located.
8. A detection device, characterized in that: The detection device is used to perform the method according to any one of claims 1 to 7, and the detection device includes a communication unit and a processing unit; The communication unit is configured to receive a first detection command, wherein the first detection command is configured to instruct detection of a flat material in a target cartridge; The processing unit is used to control the multiple groups of infrared emitters of the target detection unit to emit infrared rays to the target cartridge, the target detection unit is one of the one or more detection units in the detection device, and the brightness of the infrared rays emitted by the multiple groups of infrared emitters of the target detection unit is determined according to the minimum brightness among the multiple groups of first brightness, the minimum brightness among the multiple groups of second brightness, the third brightness, and the fourth brightness; the first brightness is the minimum brightness of a single-layer flat material that the detection device can identify under the environment where the target cartridge is located, the second brightness is the maximum brightness of a single-layer flat material that the detection device can identify under the environment where the target cartridge is located; the third brightness is the minimum brightness of a multi-layer flat material that the detection device can identify under the environment where the target cartridge is located, and the fourth brightness is the maximum brightness of a multi-layer flat material that the detection device can identify under the environment where the target cartridge is located; The processing unit is further used to capture a reflected infrared image of the flat material in the target cartridge through at least one camera of the target detection unit, and to identify the infrared image, based on the difference in brightness between the portion of the edge of the flat material illuminated by infrared rays in the infrared image and the surrounding environment, to determine the number of layers and distribution of the flat material in the target cartridge.
9. A detection device, characterized in that: The detection device includes a processor, a memory and a communication interface; wherein the communication interface is used for the detection device to communicate with other devices; the memory is used to store one or more programs, and the one or more programs include computer-executable instructions. When the detection device is running, the processor executes the computer-executable instructions stored in the memory to enable the detection device to perform the method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Novel display panel surface defect detection system
CN110849906A
Detection device for glass substrate in cartridge
CN203858376U
Real-time measurement system for slope deformation and displacement parameters
CN210833422U