Sample interference identification device, method, electronic device and computer storage medium
Through the sample interference identification device, the image grayscale map is obtained by irradiating the light source, the average brightness value is calculated, and whether there is interference in the sample is determined, which solves the problem of frost, dew, and mist interference caused by ambient temperature difference, and improves the stability and storage efficiency of the low-temperature storage device.
Patent Information
- Application Number
- CN202111198958.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-14
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2041-10-14
AI Technical Summary
Due to the ambient temperature difference, frost and dew fog are attached to the sample encoding surface, resulting in the problem of inaccurate proofreading of sample encoding.
The sample interference identification device is adopted, including a collection module, an image algorithm module, a configuration module and a calculation module. By illuminating the camera and samples by light source, the image grayscale map of the full board rack, the empty board rack and the board rack to be tested is obtained, the average brightness value is calculated, and compared with the configuration value to determine whether the sample exists and whether there is frost and dew fog interference.
By obtaining more accurate and effective image information, it is possible to accurately judge whether there is interference in the sample, ensure the complete execution of the storage or withdrawal operation, and improve the stability and storage efficiency of the low-temperature storage device.
Smart Images

Figure CN113989200B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image recognition, and in particular to a sample interference recognition device, method, electronic equipment and computer storage medium. Background Art
[0002] When storing or taking out samples from a sample low-temperature storage device, it is necessary to verify whether the sample is the intended sample. For samples marked with image codes, frost and dew may adhere to the surface of the code due to the difference in ambient temperature, making it impossible to accurately proofread the sample code. Summary of the invention
[0003] The purpose of the present invention is to provide a sample interference identification device, method, electronic device and computer storage medium, which are used to solve the problem that sample coding cannot be accurately proofread due to frost and dew fog adhering to the coding surface due to ambient temperature differences.
[0004] The present invention solves the technical problem by adopting the following technical solution:
[0005] A sample interference identification device comprises an acquisition module, an image algorithm module, a configuration module and a calculation module; the acquisition module acquires image information of a plate rack and coding information of a sample, and transmits them to the image algorithm module and the calculation module respectively; the image algorithm module receives the image information, performs parameterized processing and transmits it to the configuration module; the configuration module receives the parameter information, converts it into configuration information and transmits it to the calculation module; the calculation module receives the configuration information and outputs a sample identification result.
[0006] Preferably, the calculation module calculates the configuration information and transmits it to the configuration module;
[0007] The calculation module determines that there is interference and transmits a continue scanning instruction to the acquisition module;
[0008] The calculation module is connected to the image algorithm module to transfer algorithm library data.
[0009] Preferably, the sample identification result includes no sample and existing sample; the existing sample result includes the sample without frost, dew or fog interference and the sample with frost, dew or fog interference.
[0010] A sample interference identification method comprises the following steps:
[0011] Step 1: shine the light source above the camera and the sample, obtain the grayscale images of the full rack and the empty rack, and configure them to obtain the brightness configuration value;
[0012] Step 2: shine the light source above the camera and the sample to obtain a grayscale image of the plate rack to be tested;
[0013] Step 3: Calculate the average brightness of each area of the board to be tested, compare it with the brightness configuration value, and output the result of whether the sample exists;
[0014] Step 4: If there are samples on the test rack, obtain the number of samples to be tested and the number of camera recognition codes, compare the number of samples and codes, and determine whether there is environmental interference;
[0015] Step 5: Output the judgment result and complete the judgment.
[0016] Preferably, the configuration of step one includes the following steps:
[0017] Step 1: Get the grayscale image of the full rack;
[0018] Step 2: Divide the image area according to the sample coordinates;
[0019] Step 3: Record the average brightness of each sample area as the minimum value;
[0020] Step 4: Obtain the grayscale image of the empty rack;
[0021] Step 5: Record the average brightness of each sample area as the maximum value;
[0022] Step 6: Calculate the average of the maximum and minimum values of each region and record it as the configuration value;
[0023] Step 7: Complete the configuration.
[0024] Preferably, the result of whether the sample exists in step 3 is:
[0025] Result 1: If the average brightness of the panel to be tested is greater than the configured value, the output result is that there is no sample in this area;
[0026] Result 2: If the average brightness of the panel to be tested is less than the configured value, the output result is that there are samples in the area, and the number of samples is compared.
[0027] Preferably, the result of the environmental interference judgment in step 5 is:
[0028] Result 1: If the number of samples and codes is equal, there is no frost or fog in the output environment;
[0029] Result 2: If the number of samples and codes are not equal, the output result is that there is frost and fog in the environment.
[0030] Preferably, in the result 2, if the judgment is continued, the process returns to step 2, obtains the grayscale image of the panel rack to be tested, and repeats the above steps; otherwise, the judgment is completed.
[0031] An electronic device comprises a memory and a processor; the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the sample interference identification method.
[0032] A computer storage medium stores computer executable instructions, wherein the computer executable instructions are used to execute the sample interference identification device or the sample interference identification method.
[0033] The present invention obtains different image grayscale images by irradiating the camera and the sample with a light source, so as to obtain more accurate and effective image information. While obtaining all sample codes, the device is informed of the existence of interfered and unrecognized samples, ensuring that the storage or retrieval action can be completely executed, helping the low-temperature storage device to run a stable process and improve storage efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 This is a connection diagram of the sample interference identification device of the present invention;
[0035] Figure 2 It is a flow chart of the sample interference identification method of the present invention;
[0036] Figure 3 It is a flow chart of the configuration method of the present invention;
[0037] Figure 4 It is a schematic diagram of a specific implementation structure of the present invention;
[0038] In the figure: 1-acquisition module; 2-image algorithm module; 3-configuration module; 4-computation module; 5-light source; 6-plate rack; 7-empty sample; 8-full sample; 9-camera. DETAILED DESCRIPTION
[0039] The technical solution of the present invention is further described below in conjunction with the embodiments and drawings.
[0040] Example 1
[0041] The present embodiment provides a sample interference identification device, including an acquisition module 1, an image algorithm module 2, a configuration module 3 and a calculation module 4; the acquisition module 1 acquires image information of a plate rack 6 and coding information of a sample, and transmits them to the image algorithm module 2 and the calculation module 4 respectively; the image algorithm module 2 receives the image information, performs parameterized processing and transmits it to the configuration module 3; the configuration module 3 receives the parameter information, converts it into configuration information and transmits it to the calculation module 4; the calculation module 4 receives the configuration information and outputs a sample identification result.
[0042] In view of the problem in the prior art that frost, dew and fog are attached to the code surface of samples marked with image QR codes due to the difference in ambient temperature, resulting in the inability to accurately proofread the sample code, the present invention discloses a sample interference identification device, wherein the acquisition module 1 takes pictures of the sample and the rack 6, collects image information of the rack 6 of the fully loaded sample 8 and the empty sample 7 and transmits it to the image algorithm module 2, and transmits the encoding information of the identified sample to the calculation module 4. The image algorithm module 2 receives the image information of the rack 6, extracts the parameter information required for this embodiment, and transmits the key parameter information of the rack 6 to the configuration module 3. The configuration module 3 configures the acquired parameter information of the fully loaded sample 8 and the empty sample 7, obtains the grayscale image of the image, and calculates and obtains The average brightness value is the configuration value and is passed to the calculation module 4. The calculation module 4 receives the configuration information and the QR code information of the sample, compares the configuration value and the average brightness value of different areas of the sample, and then compares the number of samples in combination with the number of sample codes. It calculates and identifies whether there is a sample and whether there is frost, dew or fog interference on the sample, and outputs different sample identification results. By illuminating the camera 9 and the sample with the light source 5, different image grayscale images are obtained, so that more accurate and effective image information can be obtained. While obtaining all the sample codes, the device is informed of the existence of interfered and unrecognized samples, ensuring that the storage or retrieval actions can be completely executed, helping the low-temperature storage equipment to run a stable process and improve storage efficiency.
[0043] In a further implementation manner of this embodiment, the calculation module 4 calculates the configuration information and transmits it to the configuration module 3 to complete the entire configuration step process.
[0044] The calculation module 4 determines that there is interference and transmits a continue scanning instruction to the acquisition module 1. The interference is that the sample coding information is incomplete or there is a missing image acquisition of the plate rack 6. The acquisition module 1 re-collects the image information of the plate rack 6 and the sample coding recognition QR code information until it is confirmed that the interference has been eliminated.
[0045] The calculation module 4 is connected to the image algorithm module 2 to transfer the algorithm library data, so that the image algorithm module 2 can call the algorithm library to perform parameterized processing on the image.
[0046] In a further implementation manner of this embodiment, the sample identification result includes no sample and existing sample; the existing sample result includes the sample without frost, dew or fog interference and the sample with frost, dew or fog interference, and the judgment result is output according to different calculation results.
[0047] Example 2
[0048] This embodiment provides a sample interference identification method, including the following steps:
[0049] Step 1: Irradiate the light source 5 above the camera 9 and the sample, obtain the grayscale images of the full rack and the empty rack, and configure them to obtain the brightness configuration value;
[0050] Step 2: shine the light source 5 on the camera 9 and the sample to obtain a grayscale image of the plate rack 6 to be tested;
[0051] Step 3: Calculate the average brightness of each area of the board to be tested, compare it with the brightness configuration value, and output the result of whether the sample exists;
[0052] Step 4: If there are samples on the test rack, the number of samples to be tested and the number of codes recognized by the camera 9 are obtained, and the number of samples and codes is compared to determine whether there is environmental interference;
[0053] Step 5: Output the judgment result and complete the judgment.
[0054] This embodiment obtains the image grayscale and coding information by collecting the codes and images of the sample and the rack 6, calculates the brightness value and compares it, and determines whether there is interference with the sample based on different comparison results. It can obtain more accurate and effective image information, and can determine whether there is frost, dew or fog interference for unidentified samples, thereby helping the low-temperature storage equipment to operate stably and improve storage efficiency.
[0055] In a further implementation of this embodiment, the configuration of step 1 includes the following steps:
[0056] Step 1: Get the grayscale image of the full rack;
[0057] Step 2: Divide the image area according to the sample coordinates;
[0058] Step 3: Record the average brightness of each sample area as the minimum value;
[0059] Step 4: Obtain the grayscale image of the empty rack;
[0060] Step 5: Record the average brightness of each sample area as the maximum value;
[0061] Step 6: Calculate the average of the maximum and minimum values of each region and record it as the configuration value;
[0062] Step 7: Complete the configuration.
[0063] The configuration value is the average brightness of an empty rack and a full rack. When there is no sample on the rack 6, the brightness value of the area is greater than the configuration value. When there is a sample on the rack 6, the brightness value of the area is less than the configuration value, so as to determine whether there is a sample on the rack 6.
[0064] In a further implementation manner of this embodiment, the result of whether the sample exists in step 3 is:
[0065] Result 1: If the average brightness of the panel to be tested is greater than the configured value, the output result is that there is no sample in this area;
[0066] Result 2: If the average brightness of the panel to be tested is less than the configured value, the output result is that there are samples in the area, and the number of samples is compared;
[0067] In a further implementation of this embodiment, the result of the environmental interference judgment in step 5 is:
[0068] Result 1: If the number of samples and codes is equal, there is no frost or fog in the output environment;
[0069] Result 2: If the number of samples and codes are not equal, the output result is that there is frost and fog in the environment.
[0070] The camera 9 collects the coded information of the sample and records the number a. The number of samples collected by the light source 5 is b. If a and b are equal, it means that there is no frost, dew or fog interference in the environment, and there is no unrecognized coded information in the sample; if a and b are not equal, it means that there is frost, dew or fog interference in the environment, and there is unrecognized coded information in the sample.
[0071] In a further implementation of this embodiment, in the result 2, if the judgment is continued, the process returns to step 2, obtains the grayscale image of the panel rack to be tested, and repeats the above steps; otherwise, the judgment is completed.
[0072] Example 3
[0073] This embodiment provides an electronic device, including a memory and a processor; the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method of Embodiment 2.
[0074] Those skilled in the art can understand the specific structure and deformation of the electronic device of Example 3 of the present application. All electronic devices used to implement the sample interference identification method of Example 2 of the present application fall within the scope of protection of the embodiments of the present application.
[0075] Example 4
[0076] This embodiment provides a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the sample interference identification device or the sample interference identification method.
[0077] The computer-readable storage medium may include: ROM (Read Only Memory), RAM (Random Access Memory), SSD (Solid State Drives) or an optical disk, etc.
[0078] The order of the above embodiments is only for the convenience of description and does not represent the advantages or disadvantages of the embodiments.
[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A sample interference identification device, characterized in that: It includes acquisition module, image algorithm module, configuration module and calculation module; The acquisition module acquires image information of the rack and coding information of the sample, and transmits them to the image algorithm module and the calculation module respectively, wherein the rack includes a full rack, an empty rack and a rack to be tested; The image algorithm module receives the image information, performs parameterized processing and transmits it to the configuration module, wherein the parameterized processing includes obtaining a grayscale image of a full rack, dividing the image area according to the sample coordinates, recording the average brightness of each sample area as the minimum value, obtaining a grayscale image of an empty rack; recording the average brightness of each sample area as the maximum value; The configuration module receives parameter information, converts it into configuration information and transmits it to the calculation module, wherein the process of converting into configuration information includes: calculating the average value of the maximum value and the minimum value of each area and recording it as the configuration value; The calculation module receives configuration information and outputs sample identification results, wherein the processing of the calculation module includes: calculating the average brightness of each area of the panel to be tested based on the image information of the panel, comparing the configuration value and the average brightness value of different areas of the sample, and then comparing the number of samples in combination with the number of sample codes, calculating and identifying whether there is a sample and whether the sample has frost, dew or fog interference, and outputting corresponding different sample identification results.
2. The sample interference identification device according to claim 1, characterized in that: The calculation module calculates the configuration information and transmits it to the configuration module; The calculation module determines that there is interference and transmits a continue scanning instruction to the acquisition module; The calculation module is connected with the image algorithm module to transfer algorithm library data.
3. The sample interference identification device according to claim 1, characterized in that: The sample identification results include no sample and existing sample; the existing sample results include samples without frost, dew or fog interference and samples with frost, dew or fog interference.
4. A sample interference identification method, characterized in that: The following steps are included: Step 1: shine the light source above the camera and the sample, take pictures of the full and empty racks, divide the image area of the full rack according to the sample coordinates, and record the average brightness of each sample area as the minimum value; Obtain the grayscale image of the empty rack: record the average brightness of each sample area, record it as the maximum value, calculate the average of the maximum and minimum values of each area and record it as the brightness configuration value; Step 2: shine the light source above the camera and the sample to obtain a grayscale image of the plate rack to be tested; Step 3: Calculate the average brightness of each area of the board to be tested, compare it with the brightness configuration value, and output the result of whether the sample exists; Step 4: If there are samples on the test rack, obtain the number of samples to be tested and the number of camera recognition codes, compare the number of samples and codes, and determine whether there is frost, dew or fog interference; Step 5: Output the judgment result and complete the judgment.
5. The sample interference identification method according to claim 4, characterized in that: The result of whether the sample exists in step 3 is: Result 1: If the average brightness of the panel to be tested is greater than the configured value, the output result is that there is no sample in this area; Result 2: If the average brightness of the panel to be tested is less than the configured value, the output result is that there are samples in the area, and the number of samples is compared.
6. The sample interference identification method according to claim 4, characterized in that: The result of environmental interference judgment in step 5 is: Result 1: If the number of samples and codes is equal, there is no frost or fog in the output environment; Result 2: If the number of samples and codes are not equal, the output result is that there is frost and fog in the environment.
7. The sample interference identification method according to claim 4, characterized in that: In the result 2, if the judgment is continued, the process returns to step 2, obtains the grayscale image of the rack to be tested, and repeats the above steps; otherwise, the judgment is completed.
8. An electronic device, characterized in that: It comprises a memory and a processor; the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the sample interference identification method as described in any one of claims 4 to 7.
9. A computer storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used to: execute the sample interference identification device according to any one of claims 1 to 3; or execute the sample interference identification method according to any one of claims 4 to 7.
Citation Information
Patent Citations
Method and a system for identifying oil stain blurring in an image, electronic equipment and storage medium
CN112818817A