Visual inspection picture management method, system and device and storage medium

By scanning the capacity in the storage device and executing deletion policies and file organization, the problem of low storage and management efficiency of visual inspection image data is solved, efficient storage management and capacity utilization are achieved, and traceability of workpiece defects is facilitated.

CN118796780AInactive Publication Date: 2024-10-18GUANGZHOU SMART ROBOVISION TECH CO LTD

Patent Information

Application Number
CN202411293449.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, the storage and management efficiency of visual inspection picture data is low, resulting in insufficient storage device capacity and inconvenience in subsequent defect traceability of target workpieces.

Method used

Scan the remaining capacity by triggering a preset scanner in the storage device to determine whether it is less than the preset capacity. If it is less than the preset capacity, execute the image deletion policy, create a folder and store the image data, and use preset naming rules such as camera_point ID_identification Map IDs for file organization.

Benefits of technology

It improves the efficiency of storage and management of visual inspection pictures, ensures the capacity utilization of storage devices, and facilitates subsequent defect tracing of target workpieces through picture data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796780A_ABST
    Figure CN118796780A_ABST
Patent Text Reader

Abstract

The invention discloses a visual inspection picture management method, system and device and a storage medium, and the method comprises the steps: obtaining a to-be-stored picture data set corresponding to a target workpiece after the image collection processing of the target workpiece; before the to-be-stored picture data set is stored, a preset scanning program is triggered to execute scanning operation on the residual capacity of the storage device, and the current residual capacity of the storage device is obtained; judging whether the front residual capacity is smaller than or equal to preset capacity data or not, and when the front residual capacity is smaller than or equal to the preset capacity data, deleting picture data stored in the storage equipment based on a picture deleting strategy; and creating a corresponding folder in the storage device according to a preset naming rule based on a preset storage path, and storing the picture data in the to-be-stored picture data set into the corresponding folder. According to the embodiment of the invention, the storage management efficiency of the visual inspection picture is improved, and meanwhile, the capacity utilization rate of the storage equipment is effectively ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image management technology, and in particular to a visual inspection image management method, system, device and storage medium. Background Art

[0002] When inspecting a workpiece, it is necessary to perform corresponding storage management on the inspection images generated by the inspection, so as to facilitate the subsequent tracing and viewing of the inspection image data. However, in current technology, the inspection image data generated by the target workpiece inspection is generally stored according to the workpiece name and inspection time, and the image data stored in the storage device is generally not further processed. This will cause the storage space of the storage device to be drastically reduced, resulting in no storage space for storing the corresponding image data. At the same time, such storage is not convenient for the subsequent tracing of defects in the target workpiece through the inspection images. Summary of the invention

[0003] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides a visual inspection image management method, system, device and storage medium to improve the storage management efficiency of visual inspection images, while effectively ensuring the capacity utilization of storage devices, and facilitating the subsequent defect tracing of target workpieces through image data.

[0004] In order to solve the above technical problems, an embodiment of the present invention provides a visual inspection picture management method, the method comprising: After performing image acquisition processing on the target workpiece, a picture data set to be stored corresponding to the target workpiece is obtained; Before storing the to-be-stored picture data set, triggering a preset scanning program based on a storage instruction to perform a scanning operation on the remaining capacity of a storage device to obtain a current remaining capacity of the storage device; Determining whether the current remaining capacity is less than or equal to the preset capacity data, and when the current remaining capacity is less than or equal to the preset capacity data, performing a deletion operation on the picture data stored in the storage device based on the picture deletion policy; After the image data stored in the storage device is deleted, a corresponding folder is created in the storage device according to a preset naming rule based on a preset storage path, and the image data in the image data set to be stored is stored in the corresponding folder.

[0005] Optionally, the step of triggering a preset scanning program based on the storage instruction to perform a scanning operation on the remaining capacity of the storage device to obtain the current remaining capacity of the storage device includes: Generating the storage instruction based on the image data set to be stored, and generating a scanning control instruction for controlling a preset scanning program according to the storage instruction; Based on the scan control instruction, the preset scan program is controlled to scan the remaining capacity of the storage device to obtain the current remaining capacity of the storage device.

[0006] Optionally, after determining whether the current remaining capacity is less than or equal to the preset capacity data, the method further includes: When the current remaining capacity is greater than the preset capacity data, a corresponding folder is created in the storage device according to a preset naming rule based on a preset storage path, and the picture data in the picture data set to be stored is stored in the folder.

[0007] Optionally, performing a deletion operation on the image data stored in the storage device based on the image deletion policy includes: Perform traversal query processing on each artifact folder in the storage device in the order of naming time, and obtain the traversal results of all folders corresponding to each date under each artifact folder; According to the traversal results of all folders corresponding to each date under each workpiece folder, confirm whether there is an NG type picture in the corresponding folder, wherein confirm whether the corresponding picture is an NG type picture according to the picture name in the corresponding folder; When it is confirmed that there is no NG type picture in the corresponding folder, a deletion operation is performed on the pictures in the folder.

[0008] Optionally, the traversal query process of each artifact folder in the storage device in the order of naming time includes: When performing traversal query processing on each artifact folder in the storage device in the order of naming time, performing traversal query processing on the artifact folders in the current time period, and determining whether the traversal query on each artifact folder in the current time period has been completed; If all the workpiece folders in the current time period have not been traversed and queried, the next workpiece folder in the current time period is traversed, and after the traversal of the next workpiece folder is completed, it is returned to determine whether all the workpiece folders in the current time period have been traversed and queried; If all the artifact folders in the current time period are traversed, the artifact folders in the next time period are traversed and queried until all the artifact folders in all time periods are traversed and queried.

[0009] Optionally, the creating a corresponding folder in the storage device according to a preset naming rule based on the preset storage path includes: A corresponding folder is created in the storage device based on the user-defined path using the workpiece model of the target workpiece, the current date, the current acquisition sequence number of the target workpiece, and the image acquisition time of the target workpiece.

[0010] Optionally, storing the image data in the image data set to be stored in a corresponding folder includes: Extracting each piece of picture data in the picture data set to be stored in sequence, and performing a naming process on each piece of picture data according to a preset image naming rule to obtain a plurality of named picture data; The named image data are stored in corresponding folders, wherein the preset image naming rule is camera_point ID_identification mapping ID, and the identification mapping ID is used to map the defect category existing in the image data.

[0011] In addition, an embodiment of the present invention further provides a visual inspection image management system, the system comprising: Acquisition module: used to obtain the image data set to be stored corresponding to the target workpiece after performing image acquisition processing on the target workpiece; Scanning module: used for triggering a preset scanning program to perform a scanning operation on the remaining capacity of the storage device based on the storage instruction before storing the image data set to be stored, so as to obtain the current remaining capacity of the storage device; Image deletion module: used to determine whether the current remaining capacity is less than or equal to the preset capacity data, and when the current remaining capacity is less than or equal to the preset capacity data, perform a deletion operation on the image data stored in the storage device based on the image deletion policy; Image storage module: used to create a corresponding folder in the storage device according to a preset naming rule based on a preset storage path after performing a deletion operation on the image data stored in the storage device, and store the image data in the image data set to be stored in the corresponding folder.

[0012] In addition, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the visual inspection image management method as described in any one of the above is implemented.

[0013] In addition, an embodiment of the present invention further provides a device, the device comprising: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to: execute the visual inspection image management method according to any one of the above.

[0014] In an embodiment of the present invention, a to-be-stored image data set corresponding to a target workpiece is obtained; before the to-be-stored image data set is stored, a preset scanning program is triggered to perform a scanning operation on the remaining capacity of a storage device to obtain the current remaining capacity of the storage device; it is determined whether the remaining capacity is less than or equal to the preset capacity data, and when it is less than or equal to the preset capacity data, a deletion operation is performed on the image data stored in the storage device based on an image deletion policy; a corresponding folder is created in the storage device according to a preset naming rule based on a preset storage path, and the image data in the to-be-stored image data set is stored in the corresponding folder; the storage management efficiency of visual inspection images can be improved, while effectively ensuring the capacity utilization of the storage device, and facilitating the subsequent defect tracing of the target workpiece through image data. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 is a flow chart of a visual inspection image management method in an embodiment of the present invention; Figure 2 Schematic diagram of the structure of the visual inspection image management system in an embodiment of the present invention; Figure 3 It is a schematic diagram of the structural composition of the equipment device in the embodiment of the present invention. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0018] For example, see Figure 1 , Figure 1 It is a flow chart of the visual inspection picture management method in an embodiment of the present invention.

[0019] like Figure 1 As shown, a visual inspection picture management method, the method comprising: S11: After performing image acquisition processing on the target workpiece, a picture data set to be stored corresponding to the target workpiece is obtained; In the specific implementation process of the present invention, after the visual inspection system acquires images of the target workpiece, a picture data set to be stored corresponding to the target workpiece can be obtained; wherein the time detection system includes multiple image acquisition devices, a transmission device, a workpiece sensor device, a control device, etc.; wherein multiple image acquisition devices, a transmission device, and a workpiece sensor device are connected to the control device, multiple image acquisition devices are arranged above the transmission device in a preset manner, each image acquisition device includes multiple posture-adjustable cameras, and the workpiece sensor device is arranged at the entrance side of the workpiece; the control device controls multiple image acquisition devices to acquire images of the target workpiece according to the signal of the workpiece sensor device, and the picture data set to be stored corresponding to the target workpiece can be obtained.

[0020] S12: before storing the image data set to be stored, triggering a preset scanning program based on the storage instruction to perform a scanning operation on the remaining capacity of the storage device to obtain the current remaining capacity of the storage device; In the specific implementation process of the present invention, the preset scanning program is triggered based on the storage instruction to perform a scanning operation on the remaining capacity of the storage device to obtain the current remaining capacity of the storage device, including: generating the storage instruction based on the image data set to be stored, and generating a scanning control instruction for controlling the preset scanning program according to the storage instruction; controlling the preset scanning program to scan and process the remaining capacity of the storage device based on the scanning control instruction to obtain the current remaining capacity of the storage device.

[0021] Specifically, after obtaining the to-be-stored image data set corresponding to the target workpiece, it is necessary to store the to-be-stored image data set, so it is necessary to generate a storage instruction based on the to-be-stored image data set. At this time, it is necessary to trigger the generation of a scanning control instruction for controlling a preset scanning program based on the storage instruction; then, the preset scanning program is controlled by the scanning control instruction to scan the remaining capacity of the storage device to obtain the current remaining capacity of the storage device; before storing the image data in the to-be-stored image data set corresponding to the target workpiece, by scanning the remaining capacity of the storage device, it can be effectively ensured that the storage device has sufficient storage capacity to ensure the subsequent storage of the image data, and there will be no prompt of insufficient capacity during the storage process, resulting in the failure of the image data storage.

[0022] S13: Determine whether the current remaining capacity is less than or equal to the preset capacity data; In the specific implementation process of the present invention, after determining whether the current remaining capacity is less than or equal to the preset capacity data, it also includes: when the current remaining capacity is greater than the preset capacity data, a corresponding folder is created in the storage device according to a preset naming rule based on a preset storage path, and the picture data in the picture data set to be stored is stored in the folder.

[0023] After obtaining the current remaining capacity, it is necessary to determine whether the current remaining capacity is less than or equal to the preset capacity data, and perform the next step of processing based on the judgment result. For example, when the current remaining capacity is greater than the preset capacity data, a corresponding folder can be created in the storage device according to the preset storage path according to the preset naming rules, and the image data in the image data set to be stored can be stored in the folder, thereby completing the storage of the image data in the image data set to be stored corresponding to the target workpiece.

[0024] S14: When the current remaining capacity is less than or equal to the preset capacity data, performing a deletion operation on the picture data stored in the storage device based on the picture deletion policy; In the specific implementation process of the present invention, the image data stored in the storage device is deleted based on the image deletion strategy, including: traversing and querying each workpiece folder in the storage device in the order of naming time, and obtaining the traversal results of all folders corresponding to each date under each workpiece folder; confirming whether there is an NG type image in the corresponding folder based on the traversal results of all folders corresponding to each date under each workpiece folder, wherein whether the corresponding image is an NG type image is confirmed based on the image name in the corresponding folder; when it is confirmed that there is no NG type image in the corresponding folder, performing a deletion operation on the image in the folder.

[0025] Furthermore, the traversal query processing of each artifact folder in the storage device in the order of naming time includes: when the traversal query processing of each artifact folder in the storage device in the order of naming time is performed, the artifact folder in the current time period is traversed and queried, and it is determined whether the traversal query of each artifact folder in the current time period has been completed; if the traversal query of each artifact folder in the current time period has not been completed, the traversal of the next artifact folder in the current time period is entered, and after the traversal of the next artifact folder is completed, it is returned to determine whether the traversal query of each artifact folder in the current time period has been completed; if the traversal of each artifact folder in the current time period has been completed, the artifact folder in the next time period is traversed and queried, until the traversal query of each artifact folder in all time periods has been completed.

[0026] Specifically, when the current remaining capacity is less than or equal to the preset capacity data, in order to ensure the subsequent storage demand for image data, it is necessary to perform a deletion operation on the image data stored in the storage device, that is, perform the deletion operation according to the image deletion policy.

[0027] First, it is necessary to perform traversal query processing on each workpiece folder in the storage device in the order of naming time. The traversal query here is a deep traversal query, which can obtain the traversal results of all folders corresponding to each date under each workpiece folder; then it is necessary to confirm whether there are NG type pictures in the corresponding folder according to the traversal results of all folders corresponding to each date under each workpiece folder, where NG type pictures are pictures with defects; specifically, it is to confirm whether the corresponding picture is an NG type picture by naming the picture in the corresponding folder; in this technical solution, the naming method of the stored picture data is: Camera_Point ID_Identification Mapping ID, where the relationship of the identification mapping ID is shown in Table 1: Table 1 is the relationship table between the identification mapping ID and the defect category

[0028] In this way, whether the corresponding picture is an NG type picture can be determined based on the picture name; when it is confirmed that there is no NG type picture in the corresponding folder, it is necessary to delete the pictures in the folder; if it is confirmed that there is an NG type picture in the corresponding folder, it is not necessary to delete the pictures in the folder.

[0029] In this embodiment, the identification mapping ID can be queried through the naming index of the stored image data, so that the image and workpiece information corresponding to the defect type can be quickly found, thereby reducing the hard disk read and write time.

[0030] When performing traversal query processing, when traversing and querying each artifact folder in the storage device in the order of naming time, it is necessary to traverse and query the artifact folders in the current time period, and determine whether the traversal and query of each artifact folder in the current time period has been completed; if the traversal and query of each artifact folder in the current time period has not been completed, then enter the traversal of the next artifact folder in the current time period, and after completing the traversal of the next artifact folder, return to determine whether the traversal and query of each artifact folder in the current time period has been completed; if the traversal of each artifact folder in the current time period has been completed, then traverse and query the artifact folder in the next time period until the traversal and query of each artifact folder in all time periods has been completed; in this way, all folders in the storage device can be traversed quickly and effectively.

[0031] S15: After performing a deletion operation on the image data stored in the storage device, a corresponding folder is created in the storage device according to a preset naming rule based on a preset storage path, and the image data in the image data set to be stored is stored in the corresponding folder.

[0032] In the specific implementation process of the present invention, the corresponding folder is created in the storage device according to the preset naming rules based on the preset storage path, including: based on the user-defined path, the corresponding folder is created in the storage device using the workpiece model of the target workpiece, the date of the day, the current acquisition sequence number of the target workpiece, and the image acquisition time of the target workpiece.

[0033] Furthermore, the storing of the image data in the image data set to be stored in the corresponding folder includes: extracting each image data in the image data set to be stored in turn, and naming each image data according to a preset image naming rule to obtain a number of named image data; storing the several named image data in the corresponding folder, wherein the preset image naming rule is camera_point ID_identification mapping ID, and the identification mapping ID is used to map the defect category existing in the image data.

[0034] Specifically, when creating a corresponding folder in a storage device according to a preset storage path and a preset naming rule, a corresponding folder is created in the storage device according to a user-defined path using the workpiece model of the target workpiece, the date of the day, the current acquisition sequence number of the target workpiece, and the image acquisition time of the target workpiece.

[0035] When storing the image data in the image data set to be stored in the corresponding folder, it is necessary to extract each image data in the image data set to be stored in turn, and name each image data accordingly. In this embodiment, the naming process is performed according to the preset naming rule to obtain several named image data; then the several named image data are stored in the corresponding folder, wherein the preset naming rule is camera_point ID_identification mapping ID, and the identification mapping ID is used to map the defect category existing in the image data.

[0036] In an embodiment of the present invention, a to-be-stored image data set corresponding to a target workpiece is obtained; before the to-be-stored image data set is stored, a preset scanning program is triggered to perform a scanning operation on the remaining capacity of a storage device to obtain the current remaining capacity of the storage device; it is determined whether the remaining capacity is less than or equal to the preset capacity data, and when it is less than or equal to the preset capacity data, a deletion operation is performed on the image data stored in the storage device based on an image deletion policy; a corresponding folder is created in the storage device according to a preset naming rule based on a preset storage path, and the image data in the to-be-stored image data set is stored in the corresponding folder; the storage management efficiency of visual inspection images can be improved, while effectively ensuring the capacity utilization of the storage device, and facilitating the subsequent defect tracing of the target workpiece through image data.

[0037] For example 2, please refer to Figure 2 , Figure 2 It is a schematic diagram of the structural composition of the visual inspection image management system in an embodiment of the present invention.

[0038] like Figure 2 As shown, a visual inspection picture management system, the system includes: Acquisition module 21: used to obtain a to-be-stored image data set corresponding to the target workpiece after performing image acquisition processing on the target workpiece; In the specific implementation process of the present invention, after the visual inspection system acquires images of the target workpiece, a picture data set to be stored corresponding to the target workpiece can be obtained; wherein the time detection system includes multiple image acquisition devices, a transmission device, a workpiece sensor device, a control device, etc.; wherein multiple image acquisition devices, a transmission device, and a workpiece sensor device are connected to the control device, multiple image acquisition devices are arranged above the transmission device in a preset manner, each image acquisition device includes multiple posture-adjustable cameras, and the workpiece sensor device is arranged at the entrance side of the workpiece; the control device controls multiple image acquisition devices to acquire images of the target workpiece according to the signal of the workpiece sensor device, and the picture data set to be stored corresponding to the target workpiece can be obtained.

[0039] Scanning module 22: used for triggering a preset scanning program to perform a scanning operation on the remaining capacity of the storage device based on the storage instruction before storing the image data set to be stored, so as to obtain the current remaining capacity of the storage device; In the specific implementation process of the present invention, the preset scanning program is triggered based on the storage instruction to perform a scanning operation on the remaining capacity of the storage device to obtain the current remaining capacity of the storage device, including: generating the storage instruction based on the image data set to be stored, and generating a scanning control instruction for controlling the preset scanning program according to the storage instruction; controlling the preset scanning program to scan and process the remaining capacity of the storage device based on the scanning control instruction to obtain the current remaining capacity of the storage device.

[0040] Specifically, after obtaining the to-be-stored image data set corresponding to the target workpiece, it is necessary to store the to-be-stored image data set, so it is necessary to generate a storage instruction based on the to-be-stored image data set. At this time, it is necessary to trigger the generation of a scanning control instruction for controlling a preset scanning program based on the storage instruction; then, the preset scanning program is controlled by the scanning control instruction to scan the remaining capacity of the storage device to obtain the current remaining capacity of the storage device; before storing the image data in the to-be-stored image data set corresponding to the target workpiece, by scanning the remaining capacity of the storage device, it can be effectively ensured that the storage device has sufficient storage capacity to ensure the subsequent storage of the image data, and there will be no prompt of insufficient capacity during the storage process, resulting in the failure of the image data storage.

[0041] Image deletion module 23: used for judging whether the current remaining capacity is less than or equal to the preset capacity data, and when the current remaining capacity is less than or equal to the preset capacity data, performing a deletion operation on the image data stored in the storage device based on the image deletion policy; In the specific implementation process of the present invention, after determining whether the current remaining capacity is less than or equal to the preset capacity data, it also includes: when the current remaining capacity is greater than the preset capacity data, a corresponding folder is created in the storage device according to a preset naming rule based on a preset storage path, and the picture data in the picture data set to be stored is stored in the folder.

[0042] After obtaining the current remaining capacity, it is necessary to determine whether the current remaining capacity is less than or equal to the preset capacity data, and perform the next step of processing based on the judgment result. For example, when the current remaining capacity is greater than the preset capacity data, a corresponding folder can be created in the storage device according to the preset storage path according to the preset naming rules, and the image data in the image data set to be stored can be stored in the folder, thereby completing the storage of the image data in the image data set to be stored corresponding to the target workpiece.

[0043] In the specific implementation process of the present invention, the image data stored in the storage device is deleted based on the image deletion strategy, including: traversing and querying each workpiece folder in the storage device in the order of naming time, and obtaining the traversal results of all folders corresponding to each date under each workpiece folder; confirming whether there is an NG type image in the corresponding folder based on the traversal results of all folders corresponding to each date under each workpiece folder, wherein whether the corresponding image is an NG type image is confirmed based on the image name in the corresponding folder; when it is confirmed that there is no NG type image in the corresponding folder, performing a deletion operation on the image in the folder.

[0044] Furthermore, the traversal query processing of each artifact folder in the storage device in the order of naming time includes: when the traversal query processing of each artifact folder in the storage device in the order of naming time is performed, the artifact folder in the current time period is traversed and queried, and it is determined whether the traversal query of each artifact folder in the current time period has been completed; if the traversal query of each artifact folder in the current time period has not been completed, the traversal of the next artifact folder in the current time period is entered, and after the traversal of the next artifact folder is completed, it is returned to determine whether the traversal query of each artifact folder in the current time period has been completed; if the traversal of each artifact folder in the current time period has been completed, the artifact folder in the next time period is traversed and queried, until the traversal query of each artifact folder in all time periods has been completed.

[0045] Specifically, when the current remaining capacity is less than or equal to the preset capacity data, in order to ensure the subsequent storage demand for image data, it is necessary to perform a deletion operation on the image data stored in the storage device, that is, perform the deletion operation according to the image deletion policy.

[0046] First, it is necessary to perform traversal query processing on each workpiece folder in the storage device in the order of naming time. The traversal query here is a deep traversal query, which can obtain the traversal results of all folders corresponding to each date under each workpiece folder; then it is necessary to confirm whether there are NG type pictures in the corresponding folder according to the traversal results of all folders corresponding to each date under each workpiece folder, where NG type pictures are pictures with defects; specifically, it is to confirm whether the corresponding picture is an NG type picture by naming the picture in the corresponding folder; in this technical solution, the naming method of the stored picture data is: Camera_Point ID_Identification Mapping ID, where the relationship of the identification mapping ID is shown in Table 2: Table 2 is the relationship table between the identification mapping ID and the defect category

[0047] In this way, whether the corresponding picture is an NG type picture can be determined based on the picture name; when it is confirmed that there is no NG type picture in the corresponding folder, it is necessary to delete the pictures in the folder; if it is confirmed that there is an NG type picture in the corresponding folder, it is not necessary to delete the pictures in the folder.

[0048] In this embodiment, the identification mapping ID can be queried through the naming index of the stored image data, so that the image and workpiece information corresponding to the defect type can be quickly found, thereby reducing the hard disk read and write time.

[0049] When performing traversal query processing, when traversing and querying each artifact folder in the storage device in the order of naming time, it is necessary to traverse and query the artifact folders in the current time period, and determine whether the traversal and query of each artifact folder in the current time period has been completed; if the traversal and query of each artifact folder in the current time period has not been completed, then enter the traversal of the next artifact folder in the current time period, and after completing the traversal of the next artifact folder, return to determine whether the traversal and query of each artifact folder in the current time period has been completed; if the traversal of each artifact folder in the current time period has been completed, then traverse and query the artifact folder in the next time period until the traversal and query of each artifact folder in all time periods has been completed; in this way, all folders in the storage device can be traversed quickly and effectively.

[0050] The picture storage module 24 is used to create a corresponding folder in the storage device according to a preset naming rule based on a preset storage path after performing a deletion operation on the picture data stored in the storage device, and store the picture data in the picture data set to be stored in the corresponding folder.

[0051] In the specific implementation process of the present invention, the corresponding folder is created in the storage device according to the preset naming rules based on the preset storage path, including: based on the user-defined path, the corresponding folder is created in the storage device using the workpiece model of the target workpiece, the date of the day, the current acquisition sequence number of the target workpiece, and the image acquisition time of the target workpiece.

[0052] Furthermore, the storing of the image data in the image data set to be stored in the corresponding folder includes: extracting each image data in the image data set to be stored in turn, and naming each image data according to a preset image naming rule to obtain a number of named image data; storing the several named image data in the corresponding folder, wherein the preset image naming rule is camera_point ID_identification mapping ID, and the identification mapping ID is used to map the defect category existing in the image data.

[0053] Specifically, when creating a corresponding folder in a storage device according to a preset storage path and a preset naming rule, a corresponding folder is created in the storage device according to a user-defined path using the workpiece model of the target workpiece, the date of the day, the current acquisition sequence number of the target workpiece, and the image acquisition time of the target workpiece.

[0054] When storing the image data in the image data set to be stored in the corresponding folder, it is necessary to extract each image data in the image data set to be stored in turn, and name each image data accordingly. In this embodiment, the naming process is performed according to the preset naming rule to obtain several named image data; then the several named image data are stored in the corresponding folder, wherein the preset naming rule is camera_point ID_identification mapping ID, and the identification mapping ID is used to map the defect category existing in the image data.

[0055] In an embodiment of the present invention, a to-be-stored image data set corresponding to a target workpiece is obtained; before the to-be-stored image data set is stored, a preset scanning program is triggered to perform a scanning operation on the remaining capacity of a storage device to obtain the current remaining capacity of the storage device; it is determined whether the remaining capacity is less than or equal to the preset capacity data, and when it is less than or equal to the preset capacity data, a deletion operation is performed on the image data stored in the storage device based on an image deletion policy; a corresponding folder is created in the storage device according to a preset naming rule based on a preset storage path, and the image data in the to-be-stored image data set is stored in the corresponding folder; the storage management efficiency of visual inspection images can be improved, while effectively ensuring the capacity utilization of the storage device, and facilitating the subsequent defect tracing of the target workpiece through image data.

[0056] A computer-readable storage medium provided by an embodiment of the present invention stores a computer program on the computer-readable storage medium, and when the program is executed by a processor, the visual inspection image management method of any one of the above embodiments is implemented. Wherein, the computer-readable storage medium includes but is not limited to any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (EraSable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the storage device includes any medium that can store or transmit information in a readable form by a device (for example, a computer, a mobile phone), which can be a read-only memory, a disk or an optical disk, etc.

[0057] An embodiment of the present invention further provides a computer application program, which runs on a computer and is used to execute the visual inspection image management method of any one of the above embodiments.

[0058] also, Figure 3 It is a schematic diagram of the structural composition of the equipment device in the embodiment of the present invention.

[0059] The embodiment of the present invention also provides a device, such as Figure 3 The device includes a processor 302, a memory 303, an input unit 304, a display unit 305 and other devices. Those skilled in the art will understand that Figure 3The device structure device shown does not constitute a limitation on all devices, and may include more or fewer components than shown, or combine certain components. The memory 303 can be used to store the application 301 and various functional modules, and the processor 302 runs the application 301 stored in the memory 303, thereby executing various functional applications and data processing of the device. The memory can be an internal memory or an external memory, or include both internal and external memories. The internal memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a U disk, a magnetic tape, etc. The memory disclosed in the present invention includes but is not limited to these types of memories. The memory disclosed in the present invention is only used as an example and not as a limitation.

[0060] The input unit 304 is used to receive the input of signals and keywords input by the user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect the touch operations of the user on or near it, and drive the corresponding connection device according to a pre-set program; other input devices may include but are not limited to one or more of a physical keyboard, function keys (such as playback control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc. The display unit 305 can be used to display the information input by the user or the information provided to the user and various menus of the terminal device. The display unit 305 can be in the form of a liquid crystal display, an organic light emitting diode, etc. The processor 302 is the control center of the terminal device, which uses various interfaces and lines to connect various parts of the entire device, and executes various functions and processes data by running or executing software programs and / or modules stored in the memory 303, and calling data stored in the memory.

[0061] As an embodiment, the device apparatus includes: one or more processors 302, a memory 303, and one or more applications 301, wherein the one or more applications 301 are stored in the memory 303 and are configured to be executed by the one or more processors 302, and the one or more applications 301 are configured to execute the visual detection image management method in any one of the above-mentioned embodiments.

[0062] In an embodiment of the present invention, a to-be-stored image data set corresponding to a target workpiece is obtained; before the to-be-stored image data set is stored, a preset scanning program is triggered to perform a scanning operation on the remaining capacity of a storage device to obtain the current remaining capacity of the storage device; it is determined whether the remaining capacity is less than or equal to the preset capacity data, and when it is less than or equal to the preset capacity data, a deletion operation is performed on the image data stored in the storage device based on an image deletion policy; a corresponding folder is created in the storage device according to a preset naming rule based on a preset storage path, and the image data in the to-be-stored image data set is stored in the corresponding folder; the storage management efficiency of visual inspection images can be improved, while effectively ensuring the capacity utilization of the storage device, and facilitating the subsequent defect tracing of the target workpiece through image data.

[0063] In addition, the above describes in detail a visual inspection image management method, system, device and storage medium provided in an embodiment of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A visual inspection image management method, characterized in that: The method comprises: After performing image acquisition processing on the target workpiece, a picture data set to be stored corresponding to the target workpiece is obtained; Before storing the to-be-stored picture data set, triggering a preset scanning program based on a storage instruction to perform a scanning operation on the remaining capacity of a storage device to obtain a current remaining capacity of the storage device; Determining whether the current remaining capacity is less than or equal to the preset capacity data, and when the current remaining capacity is less than or equal to the preset capacity data, performing a deletion operation on the picture data stored in the storage device based on the picture deletion policy; After the image data stored in the storage device is deleted, a corresponding folder is created in the storage device according to a preset naming rule based on a preset storage path, and the image data in the image data set to be stored is stored in the corresponding folder.

2. The visual inspection image management method according to claim 1, characterized in that: The method of triggering a preset scanning program based on the storage instruction to perform a scanning operation on the remaining capacity of the storage device to obtain the current remaining capacity of the storage device includes: Generating the storage instruction based on the image data set to be stored, and generating a scanning control instruction for controlling a preset scanning program according to the storage instruction; Based on the scan control instruction, the preset scan program is controlled to scan the remaining capacity of the storage device to obtain the current remaining capacity of the storage device.

3. The visual inspection image management method according to claim 1, characterized in that: After determining whether the current remaining capacity is less than or equal to the preset capacity data, the method further includes: When the current remaining capacity is greater than the preset capacity data, a corresponding folder is created in the storage device according to a preset naming rule based on a preset storage path, and the picture data in the picture data set to be stored is stored in the folder.

4. The visual inspection image management method according to claim 1, characterized in that: The performing a deletion operation on the image data stored in the storage device based on the image deletion policy includes: Perform traversal query processing on each artifact folder in the storage device in the order of naming time, and obtain the traversal results of all folders corresponding to each date under each artifact folder; According to the traversal results of all folders corresponding to each date under each workpiece folder, confirm whether there is an NG type picture in the corresponding folder, wherein confirm whether the corresponding picture is an NG type picture according to the picture name in the corresponding folder; When it is confirmed that there is no NG type picture in the corresponding folder, a deletion operation is performed on the pictures in the folder.

5. The visual inspection image management method according to claim 4, characterized in that: The traversal query process of each workpiece folder in the storage device according to the order of naming time includes: When performing traversal query processing on each artifact folder in the storage device in the order of naming time, performing traversal query processing on the artifact folders in the current time period, and determining whether the traversal query on each artifact folder in the current time period has been completed; If all the workpiece folders in the current time period have not been traversed and queried, the next workpiece folder in the current time period is traversed, and after the traversal of the next workpiece folder is completed, it is returned to determine whether all the workpiece folders in the current time period have been traversed and queried; If all the artifact folders in the current time period are traversed, the artifact folders in the next time period are traversed and queried until all the artifact folders in all time periods are traversed and queried.

6. The visual inspection image management method according to claim 1, characterized in that: The creating a corresponding folder in the storage device according to a preset naming rule based on the preset storage path includes: A corresponding folder is created in the storage device based on the user-defined path using the workpiece model of the target workpiece, the current date, the current acquisition sequence number of the target workpiece, and the image acquisition time of the target workpiece.

7. The visual inspection image management method according to claim 1, characterized in that: The step of storing the image data in the image data set to be stored in the corresponding folder includes: Extracting each piece of picture data in the picture data set to be stored in sequence, and performing a naming process on each piece of picture data according to a preset image naming rule to obtain a plurality of named picture data; The named image data are stored in corresponding folders, wherein the preset image naming rule is camera_point ID_identification mapping ID, and the identification mapping ID is used to map the defect category existing in the image data.

8. A visual inspection image management system, characterized in that: The system comprises: Acquisition module: used to obtain the image data set to be stored corresponding to the target workpiece after performing image acquisition processing on the target workpiece; Scanning module: used for triggering a preset scanning program to perform a scanning operation on the remaining capacity of the storage device based on the storage instruction before storing the image data set to be stored, so as to obtain the current remaining capacity of the storage device; Image deletion module: used to determine whether the current remaining capacity is less than or equal to the preset capacity data, and when the current remaining capacity is less than or equal to the preset capacity data, perform a deletion operation on the image data stored in the storage device based on the image deletion policy; Image storage module: used to create a corresponding folder in the storage device according to a preset naming rule based on a preset storage path after performing a deletion operation on the image data stored in the storage device, and store the image data in the image data set to be stored in the corresponding folder.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the visual inspection image management method as described in any one of claims 1 to 7 is implemented.

10. A device, characterized in that: The equipment comprises: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to: execute the visual inspection image management method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Download resource processing method and device

    CN111402110A

  • Video image recording method of recording board

    CN115412693A

  • Data deletion method and device for visual detection, equipment and storage medium

    CN116932793A

Cited By

  • Test data processing method, device, electronic equipment and system

    CN120804034A

  • Product detection method, device and equipment and storage medium

    CN121213485A