Product detection method and device and related equipment
By automating the detection method on the host controller PC, analyzing product detection requests and sending control instructions to the PLC, the problem of unstable and low efficiency manual detection results is solved, efficient and accurate product detection is achieved, and production needs are met.
Patent Information
- Application Number
- CN202410849272.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-15
AI Technical Summary
In the existing technology, manual inspection of finished camera equipment results in unstable judgment results, vulnerability to environmental influences, long operation time, resulting in personnel fatigue, low efficiency and accuracy, and inability to meet production needs.
By implementing the automated detection method on the host controller PC, the product detection request is analyzed, the control instructions are sent to the programmable logic controller PLC, the detection is performed, and the results are displayed on the external display, and the preset thresholds and rules are used to judge the detection results. , reduce manual intervention.
It improves the accuracy and efficiency of detection, reduces operational complexity and cost, realizes automated data statistics and result display, and meets production needs.
Smart Images

Figure CN118778540A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of product detection, and in particular to a product detection method, device and related equipment. Background Art
[0002] At present, most companies use a host computer combined with manual labor to test the machine to complete the inspection of the whole machine finished product of the camera. The whole machine inspection time is about 80 seconds. At the same time, due to manual judgment, the judgment result is unstable and easily affected by the on-site environment. In addition, long-term operation will cause personnel fatigue, reduce work efficiency, and make data statistics inconvenient, which reduces the accuracy and efficiency of detection and can no longer meet production needs.
[0003] Therefore, an improved method is urgently needed to improve the above technical problems. Summary of the invention
[0004] Based on this, it is necessary to provide a product inspection method, device and related equipment that can improve inspection accuracy and efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides a product detection method, which is applied to a host computer controller PC, and the method comprises:
[0006] Analyze the received product testing request and determine the control instruction corresponding to the product testing request from a preset corresponding relationship;
[0007] Sending a control instruction to a programmable logic controller (PLC) to control the PLC to perform a corresponding test on the product according to the control instruction to obtain a test result;
[0008] Receive test results from PLC and send them to an external monitor for display.
[0009] In one embodiment, a control instruction is sent to a programmable logic controller (PLC) to control the PLC to perform a corresponding test on the product according to the control instruction to obtain a test result, including:
[0010] A control instruction is sent to a programmable logic controller (PLC) to control the PLC to determine the size relationship between the detection value corresponding to the product and a preset threshold value according to the control instruction, and obtain the detection result based on the preset rules.
[0011] In one embodiment, after receiving the detection result from the PLC and sending it to an external display for display, the method includes:
[0012] Determine whether the test result is qualified based on the status of the indicator light on the external monitor.
[0013] In a second aspect, the present application also provides a product detection device, the device comprising:
[0014] An analysis module, used to analyze the received product detection request and determine the control instruction corresponding to the product detection request from a preset corresponding relationship;
[0015] A sending module is used to send a control instruction to a programmable logic controller (PLC) to control the PLC to perform a corresponding test on the product according to the control instruction to obtain a test result;
[0016] The receiving module is used to receive the detection results from the PLC and send them to an external display for display.
[0017] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned product detection method when executing the computer program.
[0018] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above-mentioned product detection method when the computer program is executed by a processor.
[0019] In a fifth aspect, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned product detection method are implemented.
[0020] The above product detection method, when applied to the host computer controller PC, analyzes the received product detection request, determines the control instruction corresponding to the product detection request from the preset corresponding relationship; sends the control instruction to the programmable logic controller PLC to control the PLC to perform the corresponding detection on the product according to the control instruction to obtain the detection result; receives the detection result from the PLC and sends it to the external display for display. The product detection method of the present application automatically performs the detection process by the machine, which improves the detection accuracy and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 Schematic diagram of a product detection method in one embodiment;
[0022] Figure 2 A schematic diagram of a process for obtaining a detection result in one embodiment;
[0023] Figure 3 is a structural block diagram of a product detection device in one embodiment;
[0024] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0026] At present, most companies use a host computer combined with manual labor to test the machine to complete the whole machine finished product inspection of the camera. The whole machine inspection time is about 80 seconds. At the same time, due to manual judgment, the judgment result is unstable and easily affected by the on-site environment. In addition, long-term operation will cause personnel fatigue, reduce work efficiency, and make data statistics inconvenient, which reduces the accuracy and efficiency of detection and can no longer meet production needs. Based on this, the embodiment of the present application provides a product detection method to improve the above technical problems.
[0027] In one embodiment, Figure 1 A product detection method is provided according to an embodiment of the present application, and is described by taking the method applied to a host computer controller PC as an example. The method comprises the following steps:
[0028] S101, analyzing the received product detection request, and determining the control instruction corresponding to the product detection request from a preset corresponding relationship.
[0029] Optionally, when it is necessary to detect electric current, night market lights, and foreign objects, different types of product detection requests need to be sent to the PC. The PC determines different control instructions corresponding to different types of product detection requests based on a pre-stored preset correspondence (product detection request-control instruction).
[0030] S102, sending a control instruction to a programmable logic controller (PLC) to control the PLC to perform a corresponding test on the product according to the control instruction to obtain a test result.
[0031] Optionally, after determining different control instructions corresponding to different types of product inspection requests, the different control instructions are sent to the programmable logic controller PLC, and the PLC is controlled to perform corresponding inspections on different parts of the machine such as current, night market lights, and foreign objects according to different control instructions to obtain inspection results.
[0032] Furthermore, the device detects the following situations:
[0033] 1. PC sends a positioning command to PLC. PLC controls the rotary cylinder solenoid valve actuator according to the positioning command to complete the positioning of the product. After the positioning is completed, PLC informs PC that the positioning is completed.
[0034] 2. The product exchanges data with the PC through data communication connection (the PC and the product are connected by UDT), verifies the product information, and proceeds to the next step if the verification is qualified.
[0035] 3. After passing the verification, the PC starts the scanner to complete the binding of the QR code and the unique product information.
[0036] 4. After successful binding, the PC and product interact to complete current detection.
[0037] 5. After the current detection is qualified, the PC sends an arrival instruction to the PLC. The PLC controls the foreign object plate solenoid valve actuator according to the arrival instruction to move it to the avoidance position. After the arrival action is completed, the PLC informs the PC that the arrival action is completed.
[0038] 6. The PC uses an external camera to take LED photos of the product. After taking the photos, the PC processes the current pictures with algorithms and makes judgments.
[0039] 7. After the LED inspection is qualified, the PC uses an external camera to take a photo of the product with a night vision light. After the photo is taken, the PC processes the current image with an algorithm and makes a judgment. The algorithm processing process is as follows: After the host computer obtains the current video frame, it processes the image with grayscale and Gaussian filtering and reduces the image noise to obtain the processed image. The processed image is binarized to obtain an image with a black target and a white background. The image is corroded and the contour of the corroded image is recognized.
[0040] 8. After the night vision light test is qualified, the PC uses an external camera to take a photo of the product under white light. After the photo is taken, the PC processes the current picture with an algorithm and makes a judgment.
[0041] 9. After the white light lamp test is qualified, the PC interacts with the product to enable the product to perform a pink screen test (detection of the infrared light board). The product takes a photo of the infrared light board. After the photo is taken, the PC processes the current image through an algorithm, makes a judgment, identifies the current image, compares it with the set threshold, and determines whether it is qualified.
[0042] 10. After the powder screen test is qualified, the PC sends an arrival instruction to the PLC. The PLC controls the solenoid valve actuator of the foreign body light board to move to the detection position according to the arrival instruction. After the arrival action is completed, the PLC informs the PC that the arrival action is completed.
[0043] 11. The PC interacts with the product to enable the product to take a photo of the foreign object light board. After the photo is taken, the PC processes the current photo with an algorithm and makes a judgment. The solenoid valve actuator moves it to the avoidance position. After the action is completed, the PLC interacts with the PC to inform it that the action is completed.
[0044] 12. After the foreign body detection is qualified, the PC sends an arrival command to the PLC. The PLC controls the foreign body plate solenoid valve actuator to move to the avoidance position according to the arrival command. After the action is completed, the PLC interacts with the PC to inform that the action is completed.
[0045] 13. PC sends simulation instructions to PLC, and PLC controls the SD card buffer component (simulating the strength and use of manual operation) solenoid valve actuator to make it move according to the simulation instructions. After the simulation action is completed, PLC notifies PC that the simulation action is completed.
[0046] 14. The PC interacts with the product, completes SD card detection, and the PC makes a judgment.
[0047] 15. After the SD card is tested and qualified, the PC sends a simulation instruction to the PLC. The PLC controls the SD card buffer component (simulating the strength and use of manual operation) and the solenoid valve actuator according to the simulation instruction to make it move to the avoidance position. After the simulation action is completed, the PLC informs the PC that the simulation action is completed.
[0048] 16. PC sends simulation instructions to PLC, and PLC controls the reset key buffer component (simulating the strength and use of manual operation) and the solenoid valve actuator to make it move according to the simulation instructions. After the simulation action is completed, PLC notifies PC that the simulation action is completed.
[0049] 17. The PC interacts with the product, completes the reset button detection, and the PC makes a judgment.
[0050] 18. After the reset button is tested and qualified, the PC sends a simulation command to the PLC. The PLC controls the reset button buffer component (simulating the strength and usage of manual operation) and the solenoid valve actuator according to the simulation command to make it move to the avoidance position. After the simulation action is completed, the PLC informs the PC that the simulation action is completed.
[0051] 19. PC sends test instructions to PLC. PLC can prompt the operator with the results according to the test instructions after the test is completed. The red light means failure and the green light means passing.
[0052] Furthermore, the host computer saves the test results and uploads the data to the cloud server - HIMS (Hualai production management system). Complete the configuration test of the product, complete the test process and test point combination of each product through the background configuration, shorten the support complexity and time of new products; all test items are automatically tested, strict test standards are formulated, and the test results are guaranteed; through the deployment of multiple stations, the test cycle of a single product and the complexity of workers' operations are reduced, thereby improving the overall test efficiency and reducing the test cost.
[0053] S103, receiving the detection result from the PLC and sending it to an external display for display.
[0054] Optionally, after the PLC obtains the test results, the PC receives these results from the PLC and displays them on the display, and determines whether the test results are qualified based on the status of the indicator light on the display. For example, if the color of the indicator light is red, it means that the test result is unqualified, and if the color of the indicator light is green, it means that the test result is qualified; or if the indicator light flashes quickly, it means that the test result is unqualified, or if the indicator light flashes slowly, it means that the test result is qualified.
[0055] The above product detection method, when applied to the host computer controller PC, analyzes the received product detection request, determines the control instruction corresponding to the product detection request from the preset corresponding relationship; sends the control instruction to the programmable logic controller PLC to control the PLC to perform the corresponding detection on the product according to the control instruction to obtain the detection result; receives the detection result from the PLC and sends it to the external display for display. The product detection method of the present application automatically performs the detection process by the machine, which improves the detection accuracy and efficiency.
[0056] Based on the above embodiments, Figure 2 The steps to obtain the test results are broken down and refined. Figure 2 As shown, the implementation process includes the following:
[0057] S201, sending a control instruction to a programmable logic controller PLC to control the PLC to determine the size relationship between the detection value corresponding to the product and a preset threshold value according to the control instruction, and obtain a detection result based on a preset rule.
[0058] It should be noted that the detection results corresponding to the size relationship between different types of detection values and preset thresholds may be different. For example, if the first type of detection value is greater than the first preset threshold, then the first type of detection value is determined to be qualified, otherwise it is unqualified; and if the second type of detection value is less than the first preset threshold, then the first type of detection value is determined to be qualified, otherwise it is unqualified.
[0059] It can be understood that this embodiment provides a possible implementation method for obtaining the detection result, which lays a foundation for subsequent vehicle scheduling.
[0060] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0061] Based on the same inventive concept, the embodiment of the present application also provides a product detection device for implementing the product detection method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more product detection device embodiments provided below can refer to the limitations on the product detection method above, and will not be repeated here.
[0062] In one embodiment, by Figure 3 FIG. 2 shows a structural block diagram of a product detection device in an embodiment. Figure 3 As shown, a product detection device 3 is provided, which is applied to a host computer controller PC. The device 3 includes: an analysis module 30, a sending module 31 and a receiving module 32, wherein:
[0063] The analysis module 30 is used to analyze the received product detection request and determine the control instruction corresponding to the product detection request from a preset corresponding relationship;
[0064] The sending module 31 is used to send a control instruction to the programmable logic controller PLC to control the PLC to perform a corresponding test on the product according to the control instruction to obtain a test result;
[0065] The receiving module 32 is used to receive the detection results from the PLC and send them to an external display for display.
[0066] The above-mentioned product detection device, when applied to the host computer controller PC, analyzes the received product detection request, determines the control instruction corresponding to the product detection request from the preset corresponding relationship; sends the control instruction to the programmable logic controller PLC to control the PLC to perform corresponding detection on the product according to the control instruction to obtain the detection result; receives the detection result from the PLC and sends it to the external display for display. The product detection device of the present application automatically performs the detection process by the machine, which improves the detection accuracy and efficiency.
[0067] In one embodiment, the sending module 31 is specifically used for:
[0068] A control instruction is sent to a programmable logic controller (PLC) to control the PLC to determine the size relationship between the detection value corresponding to the product and a preset threshold value according to the control instruction, and obtain the detection result based on the preset rules.
[0069] In one embodiment, after the receiving module 32, the device 3 further specifically includes:
[0070] The determination module is used to determine whether the detection result is qualified according to the state of the indicator light on the external display.
[0071] Each module in the above-mentioned product detection device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module above.
[0072] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a network interface and a transceiver connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The transceiver of the computer device is used to perform operations of receiving data or sending data under the control of the processor. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as sample data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a product detection method is implemented.
[0073] Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. Specifically, the computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0074] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory. The principles and specific processes of implementing the embodiments by the processor can be found in the description of the product detection method embodiment in the aforementioned embodiment, which will not be repeated here.
[0075] In one embodiment, a computer-readable storage medium is provided on which a computer program is stored. When the computer program is executed by a processor, the principles and specific processes in each embodiment are implemented. Please refer to the description of the product detection method embodiment in the aforementioned embodiment, which will not be repeated here.
[0076] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the principles and specific processes in each embodiment are implemented. Please refer to the description in the product detection method embodiment in the aforementioned embodiment, which will not be repeated here.
[0077] It should be noted that the information involved in this application (including but not limited to product testing requests, control instructions, etc. in this application) are all information or data fully authorized by all parties.
[0078] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0079] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0080] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A product testing method, It is characterized in that Applied to a host computer controller PC, the method includes: Analyze the received product detection request and determine the control instruction corresponding to the product detection request from a preset corresponding relationship; Sending a control instruction to a programmable logic controller (PLC) to control the PLC to perform a corresponding test on the product according to the control instruction to obtain a test result; The detection result is received from the PLC and sent to an external display for display.
2. The method according to claim 1, It is characterized in that The sending of a control instruction to a programmable logic controller (PLC) to control the PLC to perform a corresponding test on the product according to the control instruction to obtain a test result includes: A control instruction is sent to a programmable logic controller (PLC) to control the PLC to determine the size relationship between the detection value corresponding to the product and a preset threshold value according to the control instruction, and obtain a detection result based on a preset rule.
3. The method according to claim 1, It is characterized in that After receiving the detection result from the PLC and sending it to an external display for display, the method further comprises: Whether the test result is qualified is determined according to the state of the indicator light on the external display.
4. A product detection device, It is characterized in that Applied to a host computer controller PC, the device comprises: An analysis module, used to analyze the received product detection request and determine the control instruction corresponding to the product detection request from a preset corresponding relationship; A sending module, used for sending a control instruction to a programmable logic controller (PLC), so as to control the PLC to perform a corresponding test on the product according to the control instruction to obtain a test result; The receiving module is used to receive the detection result from the PLC and send it to an external display for display.
5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
7. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
