BOM-based image processing method, system, terminal and readable storage medium

Through the BOM-based image processing method, the drawings are automatically stored in the corresponding folders by comparing the file names, text information and closed images, solving the storage problems caused by the inconsistency between the drawings and the bill of materials, and achieving efficient and accurate drawings. storage.

CN118377757BActive Publication Date: 2024-09-03AEROTECH BEIJING
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410816677.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-03
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

In industrial production, inconsistencies between drawings and bills of materials (BOM) lead to frequent deletion and re-uploading of drawings by drawing personnel, resulting in production errors and a waste of manpower and material resources. Existing technology makes it difficult to automatically and accurately store drawings.

Method used

Using BOM-based image processing method, drawings are automatically stored in corresponding folders through comparison of file names, text information and closed images, and similarity calculation and adjustment coefficients are used to determine the most appropriate storage folder to ensure the quality of drawings. Accurate storage.

Benefits of technology

It improves the efficiency and accuracy of drawing storage, ensures the accuracy of drawing storage, reduces the waste of manual review, and improves production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377757B
    Figure CN118377757B
Patent Text Reader

Abstract

The present invention relates to the technical field of batch image storage, and discloses an image processing method, system, terminal and readable storage medium based on BOM. The image processing method comprises: obtaining a set of engineering technical drawings including at least one sub-drawing and a target folder including at least one sub-folder; judging one by one whether the file name of the sub-folder is the same as the file name of the sub-drawing, if the same, the sub-drawing is stored in the sub-folder; judging one by one whether the file name of the sub-folder is the same as the text information in each unstored sub-drawing, if the same, the sub-drawing is stored in the sub-folder; judging whether the closed image in each unstored sub-drawing is consistent with the reference image in the stored sub-drawing; generating the similarity between the closed image and each reference image included in each stored sub-drawing one by one, and storing the sub-drawing including the closed image in the folder where the sub-drawing with the highest similarity is located. The present invention can improve the efficiency and accuracy of drawing storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of batch image storage, and in particular relates to an image processing method, system, terminal and readable storage medium based on BOM. Background Art

[0002] The Bill of Materials (BOM) is an important document used to describe the composition of a product. The BOM contains all the components, raw materials, and other related information of the product, such as material number, quantity, specification, supplier, etc. The BOM can be organized in a hierarchical structure, from the top-level final assembly product to the bottom-level raw materials, to clearly show the composition relationship and structure of the product.

[0003] In industrial production, a set of engineering technical drawings usually includes finished product drawings and multiple parts drawings, which need to be stored in different folders according to the expanded BOM level of the product. Finally, the finished product is produced based on the combination of BOM and drawings. However, in actual applications, it is found that when storing drawings in the file where the corresponding BOM is located, it is necessary to manually analyze the file name, image content, and the name of the folder where the drawing is located. Whether it is consistent with the folder where the BOM is located, and then upload the drawings in batches and folders. If the drawings and BOM storage are inconsistent, it will cause the draftsman to frequently delete and re-upload the drawings, the BOM personnel frequently delete the drawings for archiving, and the production personnel to make production errors. In order to avoid the above problems, multiple relevant personnel are required to review the drawings according to the drawing review process, which wastes a lot of manpower and material resources.

[0004] In view of this, it is urgent to propose a method that can intelligently and accurately allocate different drawings included in a set of drawings to matching folders. Summary of the invention

[0005] The object of the present invention is to provide a BOM-based image processing method, system, terminal and readable storage medium for automatically storing a set of drawings in corresponding different folders, thereby improving the efficiency and accuracy of drawing storage.

[0006] In a first aspect, the present invention provides an image processing method based on BOM, comprising the following steps:

[0007] S10. Obtaining a set of engineering drawings and a target folder; wherein a set of engineering drawings includes at least one sub-drawing, and the target folder includes at least one sub-folder;

[0008] S11. For each sub-drawing, determine whether the file name of the sub-folder is the same as the file name of the sub-drawing. If they are the same, store the sub-drawing in the sub-folder; if all sub-folders are traversed and no sub-folder with the same file name as the sub-drawing is matched, jump to S12;

[0009] S12. Extract the text information in each sub-drawing that is not stored, and determine whether the file name of the sub-folder is the same as the text information. If the sub-drawing is the same, store the sub-drawing in the sub-folder; if all sub-folders are traversed and no sub-folder that is the same as the text information is matched, jump to S13;

[0010] S13. Extracting the closed image in each unstored sub-drawing, determining whether the closed image is consistent with the reference image in the sub-drawing that has been executed in S11 and S12 and stored, if consistent, the sub-drawing including the closed image is stored in a folder consistent with the reference image; if inconsistent, jump to S14;

[0011] S14. Generate similarities between the closed image and each comparison image included in each sub-drawing that has been executed S11 and S12 and stored one by one, and store the sub-drawing including the closed image in the folder where the sub-drawing with the highest similarity is located.

[0012] As a possible implementation, the similarity between the closed image and each reference image included in each sub-drawing sheet that has been stored after S11 and S12 is performed is determined by the following method:

[0013] S140. Determine a folder range for storing sub-drawings including closed images; the folder range includes folders defined as pre-stored folders; the folder range is selected from folders that have executed S11 and S12 and have stored sub-drawings;

[0014] S141. Determine the initial matching degree of the closed image with each sub-drawing stored in each pre-stored folder including the control image;

[0015] S142. Determine a first adjustment coefficient for each pre-stored folder, the first adjustment coefficient being determined according to the draftsman information in the sub-drawings included in each pre-stored folder;

[0016] S143. Determine a second adjustment coefficient for each pre-stored folder, the second adjustment coefficient being determined based on associated person information related to the draftsman in the sub-drawings included in each pre-stored folder;

[0017] S144. Calculate the similarity of the sub-drawings in each pre-stored folder according to the initial matching degree×(1+first adjustment coefficient)×(1+second adjustment coefficient) to obtain the similarity.

[0018] As a possible implementation manner, S140 specifically includes the following steps:

[0019] S1400. Extracting personnel information from the sub-drawing where the closed image is not stored, the personnel information includes the draftsman information and the associated person information;

[0020] S1401. Extract the folder where the sub-drawings executed in S11 and S12 and containing personnel information are located;

[0021] S1402. Determine the folder range as a union of the folders associated with the map maker information and the folders associated with the associated person information whose storage times exceed a third threshold.

[0022] As a possible implementation method, S141 specifically includes: there are N closed images in the sub-drawing to be stored; there are M reference images in the sub-drawing stored in each pre-stored file; the matching degree between the closed image and the reference image under the same viewing angle is calculated, and the one with the lowest matching degree is selected as the preliminary matching degree.

[0023] As a possible implementation, the first adjustment coefficient of each pre-storage folder is determined by the following method: according to the number of times the cartographer stores the pre-storage folder in the historical storage record, the first adjustment coefficient is configured for each pre-storage file according to the number of storage times from high to low, and the range of the first adjustment coefficient is 1% to 10%;

[0024] The second adjustment coefficient of each pre-stored folder is determined in the following manner: according to the number of times the associated person stores the pre-stored folder in the historical storage record, the second adjustment coefficient is configured for each pre-stored file from high to low, and the range of the second adjustment coefficient is 1% to 5%.

[0025] As a possible implementation, the similarity between the closed image and each reference image included in each sub-drawing sheet that has been stored after S11 and S12 is performed is determined by the following method:

[0026] S150. Determine a folder range for storing sub-drawings including closed images, the folder range includes folders defined as pre-stored folders; the folder range is selected from folders that have executed S11 and S12 and have stored sub-drawings;

[0027] S151. Determine the initial match between the closed image and each sub-drawing in each pre-stored folder and the stored control image included;

[0028] S152. For each pre-stored folder, determine whether it is a folder selected by the cartographer more than the first threshold number of times. If so, increase the matching similarity value between the stored image and the closed image in the sub-drawing included in the pre-stored folder, and output the similarity value accordingly; then determine whether there is a similarity value exceeding the second threshold. If so, output the stored image with the highest similarity value as the sub-drawing with the highest similarity; if not, jump to S153;

[0029] S153. Lower the first threshold number of pre-stored folders whose associated person and map maker overlap, and execute S150 to S152 again until a pre-stored folder with a similarity exceeding a second threshold is found.

[0030] As a possible implementation method, S150 specifically includes the following steps:

[0031] S1500. Extracting personnel information from the sub-drawing where the closed image is not stored, the personnel information includes the draftsman information and the associated person information;

[0032] S1501. Extract the folder where the sub-drawings executed in S11 and S12 and containing personnel information are located;

[0033] S1502. Determine the folder range as a union of the folders associated with the map maker information and the folders associated with the associated person information whose storage times exceed a third threshold.

[0034] As a possible implementation method, the sub-drawing to be stored has N closed images; each sub-drawing stored in the pre-stored file has M reference images; the matching degree between the closed image and the reference image under the same viewing angle is calculated, and the one with the lowest matching degree is selected as the preliminary matching degree.

[0035] In a second aspect, the present invention provides an image processing system based on BOM, comprising:

[0036] An acquisition unit is used to acquire a set of engineering technical drawings and a target folder; wherein a set of engineering technical drawings includes at least one sub-drawing, and the target folder includes at least one sub-folder;

[0037] The first judgment unit judges, for each sub-drawing, whether the file name of the sub-folder is the same as the file name of the sub-drawing. If they are the same, the sub-drawing is stored in the sub-folder; if all sub-folders are traversed and no sub-folder with the same file name as the sub-drawing is matched, the process jumps to the second judgment unit;

[0038] The second judgment unit extracts the text information in each sub-drawing that has not been stored, and judges whether the file name of the sub-folder is the same as the text information. If they are the same, the sub-drawing is stored in the sub-folder; if all sub-folders are traversed and no sub-folder that is the same as the text information is matched, jump to the third judgment unit;

[0039] The third judgment unit extracts the closed image in each unstored sub-drawing, and judges whether the closed image is consistent with the reference image in the sub-drawing that has been executed S11 and S12 and stored. If they are consistent, the sub-drawing including the closed image is stored in a folder consistent with the reference image; if they are inconsistent, jump to the fourth judgment unit;

[0040] The fourth judgment unit generates similarities between the closed image and each comparison image included in each sub-drawing that has been executed by the first judgment unit and the second judgment unit and stored, and stores the sub-drawing including the closed image in a folder where the sub-drawing with the highest similarity value is located.

[0041] In a third aspect, the present invention further provides a BOM-based image processing terminal, which applies the BOM-based image processing system provided in the second aspect.

[0042] In a fourth aspect, the present invention provides a computer-readable storage medium, comprising a processor and a communication interface coupled to the processor, wherein the processor is used to run a computer program or instruction to implement the BOM-based image processing method provided in the first aspect of the present invention.

[0043] Compared with the prior art, the present invention has the following effects:

[0044] 1. The BOM-based image processing method provided by the present invention adopts a method of comparing multiple features such as name, text information, closed image, etc. to automatically store a set of drawings into corresponding different folders, thereby improving the efficiency and accuracy of drawing storage.

[0045] 2. The BOM-based image processing method provided by the present invention determines the similarity between the sub-drawing and the folder based on the closed image matching degree, the first adjustment coefficient, and the second adjustment coefficient, and stores the sub-drawing in the storage folder with the highest similarity, so that the accuracy of drawing storage is high.

[0046] 3. The BOM-based image processing method provided by the present invention sets two thresholds: the number of times the draftsman selects a storage folder and the matching degree between the closed image and the reference image. The two thresholds are continuously updated in a cycle to obtain the storage folder with the highest similarity, thereby effectively ensuring the accuracy of drawing storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The drawings described herein are used to provide further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0048] Figure 1 A flow chart of an image processing method based on BOM provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. For example, the first threshold and the second threshold are only used to distinguish different thresholds, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0050] It should be noted that, in the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0051] In the present invention, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, the combination of a and b, the combination of a and c, the combination of b and c, or the combination of a, b and c, where a, b, c can be single or multiple.

[0052] To solve the above problems, the present invention provides a BOM-based image processing method, system and medium, which automatically store sets of drawings in corresponding different folders, thereby improving the efficiency and accuracy of drawing storage.

[0053] In a first aspect, the present invention provides an image processing method based on BOM, see Figure 1 , including the following steps:

[0054] S10. Obtaining a set of engineering drawings and a target folder; wherein a set of engineering drawings includes at least one sub-drawing, and the target folder includes at least one sub-folder;

[0055] As an example, a set of valve body drawings is obtained, which includes multiple sub-drawings such as valve body finished product drawings, valve seat parts drawings, valve needle parts drawings, and valve bonnet parts drawings; a target folder is obtained, which includes multiple sub-folders such as 10001 valve body drawing folder, 20001 valve seat drawing folder, 20002 valve needle drawing folder, and 20003 valve bonnet drawing folder.

[0056] S11. For each sub-drawing, determine whether the file name of the sub-folder is the same as the file name of the sub-drawing. If they are the same, store the sub-drawing in the sub-folder; if all sub-folders are traversed and no sub-folder with the same file name as the sub-drawing is matched, jump to S12;

[0057] As an example, if the file name of the valve body finished product drawing is "10001XXXX-valve body-specification model (finished product drawing).pdf", then the sub-drawing will be directly stored in the "10001 valve body drawing" folder.

[0058] S12. Extract the text information in each sub-drawing that is not stored, and determine whether the file name of the sub-folder is the same as the text information. If the sub-drawing is the same, store the sub-drawing in the sub-folder; if all sub-folders are traversed and no sub-folder that is the same as the text information is matched, jump to S13;

[0059] As an example, the text information "10001 Valve Body Drawing" is extracted from the sub-drawing valve seat part drawing, and all sub-folders are traversed to retrieve the "10001 Valve Body Drawing" folder, then the sub-drawing with the text information "10001 Valve Body Drawing" is stored in the "10001 Valve Body Drawing" folder.

[0060] S13. Extracting the closed image in each unstored sub-drawing, determining whether the closed image is consistent with the reference image in the sub-drawing that has been executed in S11 and S12 and stored, if consistent, the sub-drawing including the closed image is stored in a folder consistent with the reference image; if inconsistent, jump to S14;

[0061] As an example, the closed image is any one of the three views. For example, when a sub-drawing includes three views including a front view, a top view, and a right view, the reference image in the stored sub-drawing is stored only if the front view, the top view, and the right view of the reference image in the stored sub-drawing are consistent with the front view, the top view, and the right view of the sub-drawing. Figure 1 Only when the sub-drawings including the closed image are consistent can the sub-drawings including the closed image be stored in the same folder as the reference image.

[0062] S14. Determine the similarity between the closed image and each reference image included in each sub-drawing that has executed S11 and S12 and has been stored one by one, sort the similarities in descending order, store the sub-drawing including the closed image in the folder where the sub-drawing with the highest similarity is located, and wait for confirmation.

[0063] It needs to be further explained that after executing S11 and S12, no sub-drawings are stored in any folder, and the BOM-based image processing method provided by the present invention will still automatically execute S13 and S14, that is, there is a possibility that the sub-drawings cannot be stored in any folder after executing S11 to S14, but the result does not affect the automatic cyclic execution of the BOM-based image processing method provided by the present invention.

[0064] As a possible implementation, the similarity between the closed image and each image included in each sub-drawing sheet that has been stored after S11 and S12 is performed is determined by the following method:

[0065] S140. Determine a folder range for storing sub-drawings including closed images; the folder range includes folders defined as pre-stored folders; the folder range is selected from folders that have executed S11 and S12 and have stored sub-drawings;

[0066] As a possible implementation manner, S140 specifically includes the following steps:

[0067] S1400. Extracting personnel information from the sub-drawing where the closed image is not stored, the personnel information includes the draftsman information and the associated person information;

[0068] S1401. Extract the folder where the sub-drawings executed in S11 and S12 and containing personnel information are located;

[0069] S1402. Determine the folder containing the map maker information and the folder containing the associated person information whose storage times exceed the third threshold as the folder range. The third threshold can be selected as 1 to 10 times, preferably 3 times. It needs to be further explained that the union of all the folders containing the map maker information and the folders commonly used by the associated person is selected as the pre-stored folder, that is, the folder range.

[0070] As an example, there are 200 storage folders and each folder has a different name and stores different sub-drawing types. Assuming that the draftsman and the associated personnel have uploaded drawings to 50 of the 200 storage folders, it is considered that the production of a set of equipment or devices generally involves 50 parts, and these 50 folders are selected as pre-storage folders. In general, the associated personnel refer to those who are in the same group or project as the draftsman.

[0071] S141. Determine the initial matching degree of the closed image with each sub-drawing stored in each pre-stored folder including the control image;

[0072] As a possible implementation, S141 specifically includes: the sub-drawing to be stored has N closed images; each sub-drawing stored in the pre-stored file has M reference images; calculating the matching degree of the closed image and the reference image under the same viewing angle, and selecting the lowest matching degree as the preliminary matching degree. It needs to be further explained that the above-mentioned same viewing angle means that the closed image and the reference image are both main views or both left views.

[0073] As an example, there are three closed images in the sub-drawing to be stored, and there are three comparison images in the sub-drawing stored in each pre-stored file, namely the main view, the right view, and the top view. Using any image matching algorithm in the prior art, assuming that the matching degree between the main view and the main view calculated by the algorithm is 100%; the matching degree between the top view and the top view is 90%; the matching degree between the left view and the left view is 95%, then the final matching degree is 90%, that is, the lowest matching degree among the three views is selected as the preliminary matching degree. It needs to be further explained that the above-mentioned comparison image is an image to be compared with the closed image, and the specific comparison method can be any similarity calculation method provided by the prior art.

[0074] As a second example, see the following table:

[0075] Table 1 Preliminary matching degree

[0076]

[0077] S142. Determine a first adjustment coefficient for each pre-stored folder, the first adjustment coefficient being determined according to the draftsman information in the sub-drawings included in each pre-stored folder;

[0078] As a possible implementation, the first adjustment coefficient of each pre-storage folder is determined by the following method: according to the number of times the cartographer stores the pre-storage folder in the historical storage record, the first adjustment coefficient is configured for each pre-storage file according to the number of storage times from high to low, and the range of the first adjustment coefficient is 1% to 10%;

[0079] As an example, among the 50 pre-storage folders, the draftsman stores drawings in a pre-storage folder named A the most times, which is 100 times; and the draftsman stores drawings in a pre-storage folder named B the least times, which is 1 time. Then the first adjustment coefficient of pre-storage folder A is determined to be 10%, and the first adjustment coefficient of pre-storage folder B is determined to be 1%. The first adjustment coefficient of the pre-storage folders with storage times between B and A is configured at a ratio between 1% and 10%.

[0080] For example, if the cartographer stores data 1 to 5 times, the value is 1%, if the cartographer stores data 6 to 10 times, the value is 5%, and if the cartographer stores data more than 11 times, the value is 10%.

[0081] S143. Determine a second adjustment coefficient for each pre-stored folder, the second adjustment coefficient being determined based on associated person information related to the draftsman in the sub-drawings included in each pre-stored folder;

[0082] As a possible implementation method, the second adjustment coefficient of each pre-stored folder is determined in the following way: according to the number of times the associated person stores the pre-stored folder in the historical storage record, the second adjustment coefficient is configured for each pre-stored file from high to low, and the range of the second adjustment coefficient is 1% to 5%.

[0083] As an example, among the 50 pre-storage folders, the associated person stores drawings in a pre-storage folder named C the most times, which is 100 times; the associated person stores drawings in a pre-storage folder named D the least times, which is 1 time. Then the second adjustment coefficient of pre-storage folder C is determined to be 5%, and the second adjustment coefficient of pre-storage folder D is determined to be 1%. The second adjustment coefficient of the pre-storage folders with storage times between D and C is configured at a ratio between 1% and 5%. It needs to be further explained that the associated person is a person in the same group as the draftsman, that is, a person in the same team.

[0084] For example, if the associated person is stored 1 to 5 times, it is 1%; if the associated person is stored 6 to 10 times, it is 3%; and if the associated person is stored more than 11 times, it is 5%.

[0085] S144. Calculate the similarity of the sub-drawings in each pre-stored folder according to the initial matching degree×(1+first adjustment coefficient)×(1+second adjustment coefficient) to obtain the similarity.

[0086] As a possible implementation, the similarity between the closed image and each reference image included in each sub-drawing sheet that has been stored after S11 and S12 is performed is determined by the following method:

[0087] S150. Determine a folder range for storing sub-drawings including closed images, the folder range includes folders defined as pre-stored folders; the folder range is selected from folders that have executed S11 and S12 and have stored sub-drawings;

[0088] As a possible implementation method, S150 specifically includes the following steps:

[0089] S1500. Extracting personnel information from the sub-drawing where the closed image is not stored, the personnel information includes the draftsman information and the associated person information;

[0090] S1501. Extract the folder where the sub-drawings that have executed S11 and S12 and contain personnel information are located, which is the folder range.

[0091] As an example, there are 200 storage folders and each folder has a different name and stores different sub-drawing types. Assuming that the draftsman and the associated personnel have uploaded drawings to 50 of the 200 storage folders, it is considered that the production of a set of equipment or devices generally involves 50 parts, and these 50 folders are selected as pre-storage folders. In general, the associated personnel refer to those who are in the same group or project as the draftsman.

[0092] S151. Determine the initial match between the closed image and each sub-drawing in each pre-stored folder and the stored control image included;

[0093] As a possible implementation method, the sub-drawing to be stored has N closed images; each sub-drawing stored in the pre-stored file has M reference images; the matching degree between the closed image and the reference image under the same viewing angle is calculated, and the one with the lowest matching degree is selected as the preliminary matching degree.

[0094] As an example, the sub-drawing to be stored has three closed images, and each sub-drawing stored in the pre-stored file has three comparison images, namely the main view, the left view, and the top view. Any image matching algorithm in the prior art is used. It is assumed that the matching degree between the main view and the main view calculated by the algorithm is 100%; the matching degree between the top view and the top view is 90%; the matching degree between the left view and the left view is 95%, then the final matching degree is 90%, that is, the lowest matching degree among the three views is selected as the preliminary matching degree.

[0095] S152. For each pre-stored folder, determine whether it is a folder selected by the cartographer more than the first threshold number of times. If so, increase the matching value between the stored image and the closed image in the sub-drawing included in the pre-stored folder, and output the similarity value accordingly; then determine whether there is a similarity value exceeding the second threshold. If so, output the stored image with the highest similarity value as the sub-drawing with the highest similarity; if not, jump to S153;

[0096] S153. Lower the first threshold number of pre-stored folders whose associated person and map maker overlap, and execute S150 to S152 again until a pre-stored folder with a similarity exceeding a second threshold is found.

[0097] As an example, referring to Table 2, the first threshold number is set to 5 and the second threshold is set to 95%. Assuming that there are seven pre-stored folders with serial numbers 1 to 7, it is determined whether there is a folder selected by the draftsman for a number of times that reaches or exceeds the first threshold of 5 in the seven pre-stored folders. From Table 2, it can be seen that if the number of selections of pre-stored folders No. 2 and No. 5 reaches or exceeds 5 times, the matching degree of pre-stored folders No. 2 and No. 5 is increased by 3%. For example, the first matching degree of pre-stored folder No. 2 is 85%, and the improved matching degree is 85×(1+3%)=87.55%. Similarly, the improved matching degree of pre-stored folder No. 5 is calculated to be 88.58%. It is further determined whether there is a matching degree exceeding the second threshold of 95%. From Table 2, it can be seen that the matching degrees do not exceed 95%. At this time, the first threshold is reduced to 4, and the second round of determination is continued to determine whether there is a pre-stored folder selected for more than 4 times. This cycle is repeated until a folder with a matching degree exceeding the second threshold of 95% is obtained. In this case, the pre-stored folder is the folder where the sub-drawing with the highest similarity is located.

[0098] Table 2 Pre-storage folder matching degree

[0099]

[0100] The following method is used to determine the degree of matching: calculate the largest overlapping area of ​​the closed image and the reference image with the same annotations, and then compare the other parts to determine the proportion of non-overlapping parts as the dissimilar parts, and the overlapping parts as the similar parts, and the similar part / (similar part + dissimilar part) = matching degree.

[0101] As a possible implementation method, it is determined whether there is a drawing with the same hash value as the sub-drawing. If so, the sub-drawing with the same hash value is changed to the file name and stored in the storage folder. If not, the sub-drawing with the same file name is stored in the storage folder with the same folder name. For example, the file name of the drawing to be stored may be confusing, and the file name that has been stored can be understood as correct. By comparing the hash value, the file name to be stored can be modified correctly.

[0102] In a second aspect, the present invention provides an image processing system based on BOM, comprising:

[0103] An acquisition unit is used to acquire a set of engineering technical drawings and a target folder; wherein a set of engineering technical drawings includes at least one sub-drawing, and the target folder includes at least one sub-folder;

[0104] The first judgment unit judges, for each sub-drawing, whether the file name of the sub-folder is the same as the file name of the sub-drawing. If they are the same, the sub-drawing is stored in the sub-folder; if all sub-folders are traversed and no sub-folder with the same file name as the sub-drawing is matched, the process jumps to the second judgment unit;

[0105] The second judgment unit extracts the text information in each sub-drawing that has not been stored, and judges whether the file name of the sub-folder is the same as the text information. If they are the same, the sub-drawing is stored in the sub-folder; if all sub-folders are traversed and no sub-folder that is the same as the text information is matched, jump to the third judgment unit;

[0106] The third judgment unit extracts the closed image in each unstored sub-drawing, and judges whether the closed image is consistent with the reference image in the sub-drawing that has been executed S11 and S12 and stored. If they are consistent, the sub-drawing including the closed image is stored in a folder consistent with the reference image; if they are inconsistent, jump to the fourth judgment unit;

[0107] The fourth judgment unit generates similarities between the closed image and each comparison image included in each sub-drawing that has been executed by the first judgment unit and the second judgment unit and stored, and stores the sub-drawing including the closed image in a folder where the sub-drawing with the highest similarity value is located.

[0108] In a third aspect, the present invention further provides a BOM-based image processing terminal, which applies the BOM-based image processing system provided in the second aspect.

[0109] In a fourth aspect, the present invention provides a computer-readable storage medium, comprising a processor and a communication interface coupled to the processor, wherein the processor is used to run a computer program or instruction to implement the BOM-based image processing method provided in the first aspect of the present invention.

[0110] Compared with the prior art, the present invention has the following technical effects:

[0111] 1. The BOM-based image processing method provided by the present invention adopts a method of comparing multiple features such as name, text information, closed image, etc. to automatically store a set of drawings into corresponding different folders, thereby improving the efficiency and accuracy of drawing storage.

[0112] 2. The BOM-based image processing method provided by the present invention determines the similarity between the sub-drawing and the folder based on the closed image matching degree, the first adjustment coefficient, and the second adjustment coefficient, and stores the sub-drawing in the storage folder with the highest similarity, so that the accuracy of drawing storage is high.

[0113] 3. The BOM-based image processing method provided by the present invention sets two thresholds: the number of times the draftsman selects a storage folder and the matching degree between the closed image and the reference image. The two thresholds are continuously updated in a cycle to obtain the storage folder with the highest similarity, thereby effectively ensuring the accuracy of drawing storage.

[0114] Although the present invention is described herein in conjunction with various embodiments, in the process of implementing the claimed invention, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the drawings, etc. In the specification, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit can implement several functions listed in the specification. Certain measures are recorded in different embodiments, but this does not mean that these measures cannot be combined to produce good results.

[0115] Although the present invention has been described in conjunction with specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present invention. Accordingly, this specification and the accompanying drawings are merely exemplary illustrations of the present invention and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present invention. Obviously, those skilled in the art may make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, the present invention is intended to include such modifications and variations as fall within the scope of the technology to which the present invention relates and its equivalents.

Claims

1. A BOM-based image processing method, characterized in that: The steps include: S10. Obtaining a set of engineering drawings and a target folder; wherein the set of engineering drawings includes at least one sub-drawing, and the target folder includes at least one sub-folder; S11. For each of the sub-drawings, determine whether the file name of the sub-folder is the same as the file name of the sub-drawing. If they are the same, store the sub-drawing in the sub-folder; if all sub-folders are traversed and no sub-folder with the same file name as the sub-drawing is matched, jump to S12; S12. extracting the text information in each of the sub-drawings that is not stored, and determining whether the file name of the sub-folder is the same as the text information one by one, if the same, storing the sub-drawing in the sub-folder; if traversing all sub-folders and not matching the sub-folder with the text information, jumping to S13; S13. Extracting the closed image in each of the sub-drawings that is not stored, and determining whether the closed image is consistent with the reference image in the sub-drawings that have been executed in S11 and S12 and stored, if consistent, storing the sub-drawings including the closed image in a folder consistent with the reference image; if inconsistent, jumping to S14; S14. Generate the similarity of each comparison image included in each sub-drawing executed in S11 and S12 and stored one by one, and store the sub-drawing including the closed image in the folder where the sub-drawing with the highest similarity is located; The similarity between the closed image and each reference image included in each sub-drawing sheet that has been stored after S11 and S12 is performed is determined by the following method, including: S140. Determine a folder range for storing sub-drawings including closed images; the folder range includes folders defined as pre-stored folders; the folder range is selected from the folders that have been executed S11 and S12 and have stored sub-drawings; S141. Determine the initial matching degree of the closed image with each of the sub-drawings stored in each pre-stored folder including the control image; S142. Determine a first adjustment coefficient for each pre-stored folder, wherein the first adjustment coefficient is determined based on the draftsman information in the sub-drawings included in each pre-stored folder; S143. Determine a second adjustment coefficient for each pre-stored folder, the second adjustment coefficient being determined based on associated person information related to the draftsman in the sub-drawings included in each pre-stored folder; S144. Calculate the similarity of each sub-drawing in the pre-stored folder according to the initial matching degree × (1 + first adjustment coefficient) × (1 + second adjustment coefficient); The similarity between the closed image and each reference image included in each sub-drawing sheet that has been stored after S11 and S12 is performed is determined by the following method: S150. Determine a folder range for storing sub-drawings including closed images, the folder range includes folders defined as pre-stored folders; the folder range is selected from the folders that have been executed S11 and S12 and have stored sub-drawings; S151. Determine the initial matching degree of the closed image and each of the sub-drawings in each pre-stored folder including the stored control image; S152. For each pre-stored folder, determine whether it is a folder selected by the cartographer more than the first threshold number of times. If so, increase the matching similarity value between the stored image and the closed image in the sub-drawing included in the pre-stored folder, and output the similarity value accordingly; then determine whether there is a similarity value exceeding the second threshold. If so, output the stored image with the highest similarity value as the sub-drawing with the highest similarity; if not, jump to S153; S153. Lower the first threshold number of pre-stored folders whose associated person and map maker overlap, and execute S150 to S152 again until a pre-stored folder with a similarity exceeding a second threshold is found.

2. The BOM-based image processing method according to claim 1, characterized in that: The S140 specifically includes the following steps: S1400. Extracting personnel information in the sub-drawing where the closed image is not stored, the personnel information includes the drawing person information and the associated person information; S1401. Extract the folder where the sub-drawings executed in S11 and S12 and containing the personnel information are located; S1402. Determine the folder range as a union of the folders associated with the map maker information and the folders associated with the associated person information whose storage times exceed a third threshold.

3. The BOM-based image processing method according to claim 2, characterized in that: The S141 specifically includes: the sub-drawing to be stored has N closed images; each sub-drawing stored in the pre-stored file has M reference images; calculating the matching degree between the closed image and the reference image under the same viewing angle, and selecting the one with the lowest matching degree as the preliminary matching degree.

4. The BOM-based image processing method according to claim 3, characterized in that: Determine the first adjustment coefficient of each pre-stored folder by the following method: according to the number of times the cartographer stores the pre-stored folder in the historical storage record, configure the first adjustment coefficient for each of the pre-stored files according to the number of storages from high to low, and the range of the first adjustment coefficient is 1% to 10%; The second adjustment coefficient of each pre-stored folder is determined in the following manner: according to the number of times the associated person stores the pre-stored folder in the historical storage record, the second adjustment coefficient is configured for each of the pre-stored files from high to low, and the range of the second adjustment coefficient is 1% to 5%.

5. The BOM-based image processing method according to claim 1, characterized in that: The S150 specifically includes the following steps: S1500. Extracting personnel information in the sub-drawing where the closed image is not stored, the personnel information includes the drawing person information and the associated person information; S1501. Extract the folder where the sub-drawings executed in S11 and S12 and containing the personnel information are located; S1502. Determine the folder range as a union of the folders associated with the map maker information and the folders associated with the associated person information whose storage times exceed a third threshold.

6. A BOM-based image processing system, characterized in that: include: An acquisition unit, used to acquire a set of engineering technical drawings and a target folder; wherein the set of engineering technical drawings includes at least one sub-drawing, and the target folder includes at least one sub-folder; The first judgment unit judges, for each of the sub-drawings, whether the file name of the sub-folder is the same as the file name of the sub-drawing, and if they are the same, stores the sub-drawing in the sub-folder; if all sub-folders are traversed and no sub-folder with the same file name as the sub-drawing is matched, jumps to the second judgment unit; The second judgment unit extracts the text information in each of the sub-drawings that is not stored, and judges whether the file name of the sub-folder is the same as the text information one by one. If they are the same, the sub-drawing is stored in the sub-folder; if all sub-folders are traversed and no sub-folder that is the same as the text information is matched, jump to the third judgment unit; a third judgment unit, extracting a closed image in each of the sub-drawings that is not stored, and judging whether the closed image is consistent with a reference image in the sub-drawings that has been executed by the first judgment unit and the second judgment unit and has been stored, and if they are consistent, storing the sub-drawings including the closed image in a folder that is consistent with the reference image; if they are inconsistent, jumping to the fourth judgment unit; The fourth judgment unit generates the similarity between the closed image and each reference image included in each sub-drawing that has been executed by the first judgment unit and the second judgment unit and has been stored, and stores the sub-drawing including the closed image in the folder where the sub-drawing with the highest similarity value is located; The similarity between the closed image and each comparison image included in each sub-drawing that has been processed by the first judgment unit and the second judgment unit and has been stored is determined by the following method, including: S140. Determine a folder range for storing sub-drawings including closed images; the folder range includes folders defined as pre-stored folders; the folder range is selected from the folders that have been executed S11 and S12 and have stored sub-drawings; S141. Determine the initial matching degree of the closed image with each of the sub-drawings stored in each pre-stored folder including the control image; S142. Determine a first adjustment coefficient for each pre-stored folder, wherein the first adjustment coefficient is determined based on the draftsman information in the sub-drawings included in each pre-stored folder; S143. Determine a second adjustment coefficient for each pre-stored folder, the second adjustment coefficient being determined based on associated person information related to the draftsman in the sub-drawings included in each pre-stored folder; S144. Calculate the similarity of each sub-drawing in the pre-stored folder according to the initial matching degree × (1 + first adjustment coefficient) × (1 + second adjustment coefficient); The similarity between the closed image and each reference image included in each sub-drawing that has been executed by the first judgment unit and the second judgment unit and stored is determined by the following method: S150. Determine a folder range for storing sub-drawings including closed images, the folder range includes folders defined as pre-stored folders; the folder range is selected from the folders that have been executed S11 and S12 and have stored sub-drawings; S151. Determine the initial matching degree of the closed image and each of the sub-drawings in each pre-stored folder including the stored control image; S152. For each pre-stored folder, determine whether it is a folder selected by the cartographer more than the first threshold number of times. If so, increase the matching similarity value between the stored image and the closed image in the sub-drawing included in the pre-stored folder, and output the similarity value accordingly; then determine whether there is a similarity value exceeding the second threshold. If so, output the stored image with the highest similarity value as the sub-drawing with the highest similarity; if not, jump to S153; S153. Lower the first threshold number of pre-stored folders whose associated person and map maker overlap, and execute S150 to S152 again until a pre-stored folder with a similarity exceeding a second threshold is found.

7. A BOM-based image processing terminal, characterized in that: The image processing terminal applies the BOM-based image processing method according to any one of claims 1 to 5.

8. A readable storage medium, comprising a processor and a communication interface coupled to the processor, wherein the processor is used to run a computer program or instruction to implement the BOM-based image processing method according to any one of claims 1 to 5.