Method for Extracting Drawing Detection Items, Controller, and Storage Medium
Through the drawing detection item extraction method, the detection item information in the drawing is automatically processed, solving the problem of inefficient manual detection and achieving efficient automatic detection.
Patent Information
- Application Number
- CN202111279070.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-31
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2041-10-31
AI Technical Summary
In the prior art, factory product quality inspection relies on manual handwritten drawings, which are inefficient and paper archiving is not conducive to management.
Through the drawing detection item extraction method, the detection item information in the drawing is automatically obtained, the preset deleted characters are removed, the character position and segmentation symbol information are obtained, and the system is automatically detected.
Improve the efficiency of inspection work, reduce manual operations, and improve the degree of automation of inspection.
Smart Images

Figure CN114065700B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to, but are not limited to, the field of communications, and in particular, to a method for extracting drawing inspection items, a controller, and a storage medium. Background Art
[0002] With the continuous improvement of productivity, the products produced in factory workshops are becoming more and more diverse, and the quality requirements for the product materials and component sizes produced or purchased in the workshop are also getting higher and higher. Therefore, the existing factories are becoming more and more strict in product quality control. However, in the existing product quality inspection work, it mainly relies on manual opening of drawings, and then obtaining data by manually copying the inspection information in the drawings. This processing method has very low work efficiency, and paper-based archiving is not conducive to management. Summary of the Invention
[0003] The following is an overview of the subject matter described in detail herein. This overview is not intended to limit the scope of protection of the claims.
[0004] The main purpose of the embodiments of the present invention is to provide a method for extracting drawing inspection items, a controller, and a storage medium, which can effectively improve the inspection efficiency.
[0005] In a first aspect, an embodiment of the present invention provides a method for extracting drawing inspection items, including:
[0006] Obtaining inspection item information in the drawing, where the inspection item information includes type information and first annotation information corresponding to the type information;
[0007] When the type information is first type information, performing a removal process on the first annotation information according to preset deletable character information to obtain second annotation information;
[0008] Obtaining a first character in the second annotation information and the position of the first character;
[0009] Performing a removal process on the second annotation information according to the position of the first character to obtain third annotation information;
[0010] Obtaining preset delimiter information in the third annotation information;
[0011] Processing the third annotation information according to the quantity information and position information of the preset delimiter information to obtain target digital information.
[0012] In an embodiment, the first type information includes at least one of the following:
[0013] General annotation type;
[0014] General dimension type;
[0015] Key dimension type.
[0016] In one embodiment, the second annotation information is processed according to the position of the first character to obtain third annotation information:
[0017] In the case where the second annotation information includes a first character, and the characters between the first digit and the position of the first character in the second annotation information are all digits, the digits and the first character are removed to obtain third annotation information.
[0018] In one embodiment, processing the third annotation information according to the quantity information and position information of the preset segmentation symbol information to obtain target digital information includes:
[0019] In the case where the quantity information of the preset segmentation symbol information is 1 and the position information is greater than 0, the third annotation information is processed to obtain target digital information, and the target digital information includes the digits between the first digit and the position of the preset segmentation symbol in the third annotation information, and the digits between the position of the preset segmentation symbol and the last digit of the third annotation information;
[0020] Or,
[0021] In the case where the quantity information of the preset segmentation symbol information is multiple, the third annotation information is processed to obtain target digital information, and the target digital information includes the digits between the first digit and the position of the preset segmentation symbol in the third annotation information, the digits between the position of the first character and the last digit of the third annotation information, and the digits between every two preset segmentation symbols;
[0022] Or,
[0023] In the case where the quantity information of the preset segmentation symbol information is 0, the third annotation information is the target digital information.
[0024] In one embodiment, the method further includes:
[0025] In the case where the type information is the second type information, obtain the second character in the second annotation information and the position of the second character;
[0026] Process the second annotation information according to the second character and the position of the second character to obtain target digital information.
[0027] In one embodiment, the second type information includes at least one of the following:
[0028] Geometric tolerance type;
[0029] Key finish type;
[0030] Ordinary finish type;
[0031] External dimension type.
[0032] In one embodiment, the obtaining of the inspection item information in the drawing includes:
[0033] Traverse the symbol information on all pages of the drawing,
[0034] When there is a finish symbol in the symbol information, obtain the finish value of the symbol information, and according to the finish value and a preset finish threshold, obtain the inspection item information, where the inspection item information includes an identifier corresponding to the key finish type or an identifier corresponding to the ordinary finish type,
[0035] When there is no finish symbol in the symbol information and the symbol information is a geometric tolerance symbol, determine the inspection item information according to the geometric tolerance symbol, where the inspection item information includes an identifier corresponding to the geometric tolerance type;
[0036] Or,
[0037] Traverse the dimension information on all pages of the drawing,
[0038] According to the dimension information and a preset dimension threshold, determine the inspection item information, where the inspection item information includes an identifier corresponding to the external dimension type, or an identifier corresponding to a key dimension, or an identifier corresponding to an ordinary dimension;
[0039] Or
[0040] Traverse the note information on all pages of the drawing,
[0041] According to the note information and preset keyword information, determine the inspection item information, where the inspection item information includes an identifier corresponding to the technical requirement, or an identifier corresponding to a key note, or an identifier corresponding to an ordinary note.
[0042] In one embodiment, after processing the third annotation information according to the quantity information and position information of the preset segmentation symbol information to obtain the target digital information, it includes:
[0043] Obtain inspection quantity information and inspection item information;
[0044] According to the inspection item information, determine the target digital information corresponding to the inspection item information;
[0045] Measure the materials corresponding to the inspection item information according to the target digital information to obtain the measurement results of each material;
[0046] Generate an inspection report based on the measurement results and the detected quantity information.
[0047] In a second aspect, an embodiment of the present invention provides a controller, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the method for extracting drawing inspection items as described in the first aspect is implemented.
[0048] In a third aspect, a computer-readable storage medium stores computer-executable instructions for executing the method for extracting drawing inspection items as described in the first aspect.
[0049] The embodiment of the present invention includes: The method for extracting drawing inspection items includes the following steps: Obtain inspection item information in the drawing, where the inspection item information includes type information and first annotation information corresponding to the type information; In the case where the type information is the first type information, perform a removal process on the first annotation information according to the preset deletable character information to obtain second annotation information; Obtain the first character in the second annotation information and the position of the first character; Perform a removal process on the second annotation information according to the position of the first character to obtain third annotation information; In the case where the third annotation information includes numbers, obtain the preset segmentation symbol information in the third annotation information; Process the third annotation information according to the quantity information and position information of the preset segmentation symbol information to obtain target digital information. In the technical solution of this embodiment, the inspection item information in the drawing is automatically converted into target digital information by the system without manual operation. The inspectors can directly inspect the inspected materials according to the target digital information, effectively improving the inspection work efficiency.
[0050] Other features and advantages of the present invention will be described in the subsequent description, and some will be obvious from the description or understood by implementing the present invention. The objectives and other advantages of the present invention can be achieved and obtained through the structures specifically pointed out in the description, claims, and drawings. Brief Description of the Drawings
[0051] Figure 1 It is a schematic diagram of a system architecture platform for executing the method for extracting drawing inspection items provided by an embodiment of the present invention;
[0052] Figure 2 It is a flowchart of the method for extracting drawing inspection items provided by an embodiment of the present invention;
[0053] Figure 3 It is a flowchart for obtaining target digital information in the method for extracting drawing inspection items provided by an embodiment of the present invention;
[0054] Figure 4It is a flowchart for classifying inspection item information through symbol information in the method for extracting drawing inspection items provided by an embodiment of the present invention;
[0055] Figure 5 It is a flowchart for classifying inspection item information through dimension information in the method for extracting drawing inspection items provided by an embodiment of the present invention;
[0056] Figure 6 It is a flowchart for classifying inspection item information through annotation information in the method for extracting drawing inspection items provided by an embodiment of the present invention;
[0057] Figure 7 It is a flowchart for generating an inspection report in the method for extracting drawing inspection items provided by an embodiment of the present invention. Detailed implementation manners
[0058] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0059] It should be noted that although functional module division is performed in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from the module division in the device or the flowchart. Terms such as "first" and "second" in the description, claims or the above-mentioned drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence.
[0060] An embodiment of the present invention provides a method for extracting drawing inspection items, a controller and a storage medium. The method for extracting drawing inspection items includes the following steps: obtaining inspection item information in a drawing, where the inspection item information includes type information and first annotation information corresponding to the type information; in the case where the type information is the first type information, performing a removal process on the first annotation information according to preset deletable character information to obtain second annotation information; obtaining the first character and the position of the first character in the second annotation information; performing a removal process on the second annotation information according to the position of the first character to obtain third annotation information; in the case where the third annotation information includes numbers, obtaining preset delimiter information in the third annotation information; processing the third annotation information according to the quantity information and position information of the preset delimiter information to obtain target digital information. In the technical solution of this embodiment, the inspection item information in the drawing is automatically converted into target digital information by the system without manual operation, and the inspector can directly inspect the inspected materials according to the target digital information, effectively improving the inspection work efficiency.
[0061] The following further elaborates on the embodiments of the present invention with reference to the accompanying drawings.
[0062] In Figure 1 example, the system architecture platform 100 is provided with a processor 110 and a memory 120. Among them, the processor 110 and the memory 120 can be connected through a bus or other means. Figure 1 Taking the connection through the bus as an example.
[0063] As a non-transitory computer-readable storage medium, the memory 120 can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory 120 can include high-speed random access memory, and can also include non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory 120 optionally includes a memory remotely provided relative to the processor 110, and these remote memories can be connected to the system architecture platform through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0064] Those skilled in the art can understand that the system architecture platform can be applied to a 5G communication network system and subsequent evolved mobile communication network systems, etc., and this embodiment does not make specific limitations thereto.
[0065] Those skilled in the art can understand that Figure 1 the system architecture platform shown in does not constitute a limitation to the embodiments of the present invention, and may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0066] The system architecture platform 100 can be an independent system architecture platform 100, or can be a cloud system architecture platform 100 that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, a content delivery network (CDN), and big data and artificial intelligence platforms.
[0067] Based on the above system architecture platform, the following presents various embodiments of the method for extracting drawing detection items of the present invention.
[0068] As Figure 2 shown, Figure 2 is a flowchart of a method for extracting drawing detection items provided by an embodiment of the present invention. The method for extracting drawing detection items is applied to the above architecture platform, and the method for extracting drawing detection items includes but is not limited to steps S100, S200, S300, S400, S500, and S600.
[0069] Step S100, obtain the inspection item information in the drawing. The inspection item information includes type information and the first annotation information corresponding to the type information.
[0070] Specifically, when there are drawings that have been successfully transferred and stored in the system, the information in the drawings can be interpreted. By traversing the information on the drawings, the inspection item information in the drawings can be obtained. The inspection item information includes type information and the first annotation information corresponding to the type information. It can be understood that the type information represents what type of material the material on the drawing belongs to, and the first annotation information represents the first annotation information corresponding to a certain type of material in the drawing, which is specific data information. This data information can include different data structures, different symbol information, and different delimiter information according to different type information.
[0071] Step S200, when the type information is the first type information, perform a removal process on the first annotation information according to the preset deletable character information to obtain the second annotation information.
[0072] Specifically, when the type information is the first type information, the same characters in the first annotation information as the preset deletable character information can be removed to obtain the second annotation information from which the deletable characters have been removed.
[0073] It should be noted that the preset deletable character information can include °, P.C.D, PCD, EDS, EQS, ,, space characters, (), Chinese characters, etc. This embodiment does not make specific limitations on it, and it can be set according to the characters in the actual first annotation information.
[0074] It should be noted that the first type information includes at least one of the following: general annotation type; general dimension type; key dimension type. This embodiment does not make specific limitations on it.
[0075] Step S300, obtain the first character in the second annotation information and the position of the first character.
[0076] Specifically, obtain the first character and the position of the first character from the second annotation information. For example: if the first character is -, then - can be searched for in the second annotation information, and it can be determined in which position of the second annotation information - is; another example: if the first character is x, then x can be searched for in the second annotation information, and it can be determined in which position of the second annotation information x is.
[0077] Step S400, perform a removal process on the second annotation information according to the position of the first character to obtain the third annotation information.
[0078] In one embodiment, when the second annotation information includes the first character, and the characters between the first position of the second annotation information and the position of the first character are all numbers, the numbers and the first character are removed to obtain the third annotation information.
[0079] In one embodiment, the position of the first character in the second annotation information can be determined. If the content between the first position of the second annotation information and the first character is all numbers, this part of the content is removed; if the character in the next position of the first character is a preset character, then no removal is performed. For example, the second annotation information is 6xФ10.00, and the first character is x. Since x is followed by Ф (preset character), no removal is performed.
[0080] Step S500: obtaining preset segmentation symbol information in the third annotation information.
[0081] Specifically, the preset segmentation symbol information is searched in the third annotation information, so that the quantity information and position information of the preset segmentation symbol information can be obtained.
[0082] It should be noted that the preset segmentation symbols may include Rc, R, DP-, DP, 凵Ф, xФ, ∨Ф, / Ф, Ф, 凵-, 凵, CC, / C, C, M (followed by x or *), etc., and this embodiment does not specifically limit it.
[0083] Step S600: Process the third annotation information according to the quantity information and position information of the preset segmentation symbol information to obtain target digital information.
[0084] Specifically, the third annotation information can be processed according to the quantity information and position information of the preset segmentation symbol information, and finally the target digital information can be obtained. The system automatically converts the inspection item information in the drawing into the target digital information without manual operation. The inspection personnel can directly inspect the inspection materials according to the target digital information, effectively improving the inspection work efficiency.
[0085] In one embodiment, when the quantity information of the preset segmentation symbol information is 1 and the position information is greater than 0, the third annotation information is processed to obtain target digital information, where the target digital information includes a number between the first digit of the third annotation information and the position of the preset segmentation symbol, and a number between the position of the preset segmentation symbol and the last digit of the third annotation information;
[0086] In one embodiment, when the quantity information of the preset delimiter information is multiple, the third annotation information is processed to obtain target digital information, where the target digital information includes the numbers between the first digit and the position of the preset delimiter in the third annotation information, the numbers between the position of the first character and the end of the third annotation information, and the numbers between every two preset delimiters;
[0087] In one embodiment, when the quantity information of the preset delimiter information is 0, the third annotation information is the target digital information.
[0088] According to steps S100, S200, S300, S400, S500, and S600. In one embodiment, first, the inspection item information in the drawing is obtained, where the inspection item information includes type information and the first annotation information corresponding to the type information; when the type information is the first type information, the first annotation information is processed according to the preset deletable character information to obtain the second annotation information, then the first character and the position of the first character in the second annotation information are obtained, and the second annotation information is processed according to the position of the first character to obtain the third annotation information; when the third annotation information includes numbers, the preset delimiter information in the third annotation information is obtained, and the third annotation information is processed according to the quantity information and the position information of the preset delimiter information to obtain the target digital information. In the technical solution of this embodiment, the inspection item information in the drawing is automatically converted into the target digital information by the system without manual operation, and the inspector can directly inspect the inspected materials according to the target digital information, effectively improving the inspection work efficiency.
[0089] According to steps S100, S200, S300, S400, S500, and S600. In one embodiment, if the type information in the inspection item information in the drawing is general dimension and the first annotation information is 4-Ф4.5∨Ф9.9x90°, then after processing according to the preset deletable character information, the second annotation information obtained is 4-Ф4.5∨Ф9.9x90. The first character "-" and the position of the first character "-" obtained from the second annotation information are the second position. Then, after processing the second annotation information, the third annotation information obtained is Ф4.5∨Ф9.9x90. The preset delimiter information obtained from the third annotation information includes "Ф, ∨Ф, x". After processing the third annotation information according to the quantity information and the position information of the preset delimiter information, the target digital information 4.5, 9.9, 90 is obtained, and the inspector can directly inspect the inspected materials according to the target digital information, effectively improving the inspection work efficiency.
[0090] Refer to Figure 3, in one embodiment, the method for extracting drawing inspection items further includes but is not limited to step S310 and step S320.
[0091] Step S310, when the type information is the second type information, obtain the second character in the second annotation information and the position of the second character;
[0092] Step S320, process the second annotation information according to the second character and the position of the second character to obtain the target digital information.
[0093] Specifically, when the type information is the second type information, the second character in the second annotation information and the position of the second character can be obtained, and then the second annotation information is processed according to the second character and the position of the second character to obtain the target digital information.
[0094] It should be noted that the second type information includes at least one of the following: geometric tolerance type; key surface finish type; general surface finish type; external dimension type. This embodiment does not make specific limitations on it.
[0095] In one embodiment, when the second type information is the key surface finish type and the first annotation information is surface finish 1.6, after removing according to the preset deletable character information, the second annotation information obtained is 1.6. Then, the second character "." and the position of the second character "." are obtained, and then the target digital information 1.6 is obtained by matching the decimal part according to the regular expression.
[0096] It should be noted that the second character can be set to ".", and this embodiment does not make a unique limitation on it, and it can be set according to the actual situation.
[0097] It should be noted that the first annotation information represents the first annotation information corresponding to a certain type of material in the drawing, which is specific data information, and this data information can include different data structures and different symbol information according to different type information.
[0098] Refer to Figure 4 , in one embodiment, step S100 includes but is not limited to step S410, step S420 and step S430.
[0099] Step S410, traverse the symbol information of all pages in the drawing;
[0100] Step S420, when there is a surface finish symbol in the symbol information, obtain the surface finish value of the symbol information, and obtain the inspection item information according to the surface finish value and the preset surface finish threshold, and the inspection item information includes the identifier corresponding to the key surface finish type or the identifier corresponding to the general surface finish type;
[0101] Step S430, in the case that there is no surface finish symbol in the symbol information and the symbol information is a geometric tolerance symbol, determine the inspection item information according to the geometric tolerance symbol. The inspection item information includes the identifier corresponding to the geometric tolerance type.
[0102] In one embodiment, when it is necessary to obtain the symbol information in the inspection item information, the symbol information on all pages of the drawing can be traversed, and information such as its coordinate position, page number where it is located, symbol name, symbol value, etc. can be recorded, and then it is determined whether it is a surface finish symbol (symbol name: SJCCD). In the case that there is a surface finish symbol in the symbol information, obtain the surface finish value of the symbol information, and according to the surface finish value and the preset surface finish threshold, obtain the inspection item information. The inspection item information includes the identifier corresponding to the key surface finish type or the identifier corresponding to the ordinary surface finish type. For example, if the surface finish value is 0.6, which is less than the preset surface finish threshold of 0.8, then the inspection item information includes the identifier corresponding to the ordinary surface finish type; for another example, if the surface finish value is 1.6, which is greater than the preset surface finish threshold of 0.9, then the inspection item information includes the identifier corresponding to the key surface finish type. In the case that there is no surface finish symbol in the symbol information, it is determined whether it is a geometric tolerance (symbol name: GE_TOLERANCE). If so, the inspection item information includes the identifier corresponding to the geometric tolerance type. It should be noted that the preset surface finish threshold can be set according to the actual situation, and this embodiment does not make specific limitations on it.
[0103] Refer to Figure 5 In one embodiment, step S100 includes, but is not limited to, step S510 and step S520.
[0104] Step S510, traverse the dimension information on all pages of the drawing;
[0105] Step S520, according to the dimension information and the preset dimension threshold, determine the inspection item information. The inspection item information includes the identifier corresponding to the external dimension type, or the identifier corresponding to the key dimension, or the identifier corresponding to the ordinary dimension.
[0106] In one embodiment, when it is necessary to obtain the dimension information in the inspection item information, the dimension information on all pages of the drawing can be traversed, and its coordinate position, page number where it is located, dimension value, tolerance value, etc. can be recorded, and then it is determined whether it is an external dimension. If so, the inspection item information includes the identifier corresponding to the external dimension type; if not, it is determined whether it is a key dimension (including tolerance). If so, the inspection item information includes the identifier corresponding to the key dimension type; if not, the inspection item information includes the identifier corresponding to the ordinary dimension type.
[0107] Refer to Figure 6 In one embodiment, step S100 includes, but is not limited to, step S610 and step S620.
[0108] Step S610, traverse the annotation information of all pages in the drawing;
[0109] Step S620, determine the inspection item information according to the annotation information and the preset keyword information. The inspection item information includes the identifier corresponding to the technical requirement, or the identifier corresponding to the key annotation, or the identifier corresponding to the general annotation.
[0110] In an embodiment, when it is necessary to obtain the annotation information in the inspection item information, it is possible to traverse the dimension information of all pages in the drawing and record information such as its coordinate position, the page number where it is located, and the annotation content, etc., and then determine whether it is a technical requirement (the annotation content contains the keyword "technical requirement"). If so, the inspection item information includes the identifier corresponding to the technical requirement type; if not, determine whether it is a key annotation (including tolerance). If so, the inspection item information includes the identifier corresponding to the key annotation type; if not, the inspection item information includes the identifier corresponding to the general annotation type.
[0111] Refer to Figure 7 , in an embodiment, the drawing inspection item extraction method includes, but is not limited to, steps S710, S720, S730, and S740.
[0112] Step S710, obtain the inspection quantity information and the inspection item information;
[0113] Step S720, determine the target digital information corresponding to the inspection item information according to the inspection item information;
[0114] Step S730, measure the materials corresponding to the inspection item information according to the target digital information to obtain the measurement results of each material;
[0115] Step S740, generate an inspection report according to the measurement results and the inspection quantity information.
[0116] In an embodiment, when there is received goods information in the system, the received goods information includes the order number, material number, receipt voucher, received quantity, etc. Determine the drawing to be inspected according to the received goods information, and then extract the inspection item information from the drawing to obtain the target digital information. Generate the inspection quantity information and the inspection item information according to the generated material to-be-inspected task, then determine the target digital information corresponding to the inspection item information according to the inspection item information, then measure the materials corresponding to the inspection item information according to the target digital information to obtain the measurement results of each material, and then generate an inspection report according to the measurement results and the inspection quantity information. During the inspection process, the inspector can directly inspect the inspection materials according to the target digital information, effectively improving the inspection work efficiency.
[0117] Based on the above drawing inspection item extraction method, various embodiments of the drawing inspection item extraction device, controller, and computer-readable storage medium of the present invention are respectively proposed below.
[0118] An embodiment of the present invention further provides a drawing inspection item extraction device, including:
[0119] A first acquisition module, configured to acquire inspection item information in a drawing, where the inspection item information includes type information and first annotation information corresponding to the type information;
[0120] A first removal module, configured to, when the type information is the first type information, perform a removal process on the first annotation information according to preset deletable character information to obtain second annotation information;
[0121] A second acquisition module, configured to acquire a first character in the second annotation information and the position of the first character;
[0122] A second removal module, configured to perform a removal process on the second annotation information according to the position of the first character to obtain third annotation information;
[0123] A third acquisition module, configured to acquire preset delimiter information in the third annotation information;
[0124] A processing module, configured to process the third annotation information according to the quantity information and position information of the preset delimiter information to obtain target digital information.
[0125] In one embodiment, the second removal module is further configured to, when the second annotation information includes the first character and the characters between the first position and the position of the first character in the second annotation information are all numbers, perform a removal process on the numbers and the first character to obtain third annotation information.
[0126] In one embodiment, the update module is further configured to update the fault device processing record data in the device fault processing device according to the first user information and the first fault processing step to obtain an update result.
[0127] In one embodiment, the processing module is further configured to, when the quantity information of the preset delimiter information is 1 and the position information is greater than 0, process the third annotation information to obtain target digital information, where the target digital information includes the numbers between the first position and the position of the preset delimiter in the third annotation information, and the numbers between the position of the preset delimiter and the last position of the third annotation information; or, when the quantity information of the preset delimiter information is multiple, process the third annotation information to obtain target digital information, where the target digital information includes the numbers between the first position and the position of the preset delimiter in the third annotation information, the numbers between the position of the first character and the last position of the third annotation information, and the numbers between every two preset delimiters; or, when the quantity information of the preset delimiter information is 0, the third annotation information is the target digital information.
[0128] In one embodiment, the second acquisition module is further configured to, when the type information is the second type information, acquire the second character in the second annotation information and the position of the second character.
[0129] In one embodiment, the processing module is further configured to process the second annotation information according to the second character and the position of the second character to obtain target digital information.
[0130] In one embodiment, the first acquisition module is further configured to traverse the symbol information of all pages in the drawing. When there is a finish symbol in the symbol information, acquire the finish value of the symbol information, and obtain inspection item information according to the finish value and a preset finish threshold. The inspection item information includes an identifier corresponding to a key finish type or an identifier corresponding to a general finish type. When there is no finish symbol in the symbol information and the symbol information is a geometric tolerance symbol, determine the inspection item information according to the geometric tolerance symbol. The inspection item information includes a geometric tolerance type; or, traverse the dimension information of all pages in the drawing, and determine the inspection item information according to the dimension information and a preset dimension threshold. The inspection item information includes an identifier corresponding to an external dimension type, or an identifier corresponding to a key dimension, or an identifier corresponding to a general dimension; or, traverse the annotation information of all pages in the drawing, and determine the inspection item information according to the annotation information and preset keyword information. The inspection item information includes an identifier corresponding to a technical requirement, or an identifier corresponding to a key annotation, or an identifier corresponding to a general annotation.
[0131] In one embodiment, it further includes a generation module, configured to acquire inspection quantity information and inspection item information; determine target digital information corresponding to the inspection item information according to the inspection item information; measure the materials corresponding to the inspection item information according to the target digital information to obtain the measurement result of each material; and generate an inspection report according to the measurement result and the inspection quantity information.
[0132] It should be noted that the technical means, the technical problems solved, and the technical effects achieved in the above various embodiments of the drawing inspection item extraction device are the same as those in the embodiments of the drawing inspection item extraction method, and will not be specifically described here. For details, refer to the embodiments of the drawing inspection item extraction method.
[0133] In addition, an embodiment of the present invention provides a controller, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor.
[0134] The processor and the memory can be connected through a bus or other means.
[0135] It should be noted that the controller in this embodiment is disposed in the drawing inspection item extraction device in the embodiment as Figure 1 shown, and includes a memory and a processor, and can constituteFigure 1 A part of the system architecture platform in the illustrated embodiment, both belonging to the same inventive concept, so they have the same implementation principle and beneficial effects, which will not be elaborated here.
[0136] The non-transitory software programs and instructions required to implement the communication method on the controller side of the above embodiment are stored in the memory. When executed by the processor, the communication method of the above embodiment is executed. For example, execute the Figure 2 method steps S100 to S600 in Figure 3 method steps S310 to S320 in Figure 4 method steps S410 to S430 in Figure 5 method steps S510 to step S520 in Figure 6 method steps S610 to step S620 in Figure 7 method steps S710 to step S740 in
[0137] In addition, an embodiment of the present invention also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are used to execute the communication method on the terminal side, for example, execute the Figure 2 method steps S100 to S600 in Figure 3 method steps S310 to S320 in Figure 4 method steps S410 to S430 in Figure 5 method steps S510 to step S520 in Figure 6 method steps S610 to step S620 in Figure 7 method steps S710 to step S740 in
[0138] Those of ordinary skill in the art will understand that all or some of the steps and systems disclosed above can be implemented as software, firmware, hardware, and their appropriate combinations. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or can be implemented as hardware, or can be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media typically include computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium.
[0139] The above has specifically described the preferred embodiments of the present invention, but the present invention is not limited to the above-mentioned embodiments. Those skilled in the art can also make various equivalent deformations or substitutions without departing from the spirit of the present invention, and these equivalent deformations or substitutions are all included within the scope defined by the claims of the present invention.
Claims
1. A method for extracting drawing inspection items, comprising: Obtaining inspection item information in the drawing, where the inspection item information includes type information and first annotation information corresponding to the type information; When the type information is the first type information, performing a removal process on the first annotation information according to preset deletable character information to obtain second annotation information; Obtaining the first character in the second annotation information and the position of the first character; Performing a removal process on the second annotation information according to the position of the first character to obtain third annotation information; Obtaining preset delimiter symbol information in the third annotation information; Processing the third annotation information according to the quantity information and position information of the preset delimiter symbol information to obtain target numerical information; Wherein, the obtaining of the inspection item information in the drawing includes: Traversing the symbol information on all pages in the drawing, When there is a surface finish symbol in the symbol information, obtaining the surface finish value of the symbol information, and obtaining the inspection item information according to the surface finish value and a preset surface finish threshold; When there is no surface finish symbol in the symbol information and the symbol information is a geometric tolerance symbol, determining the inspection item information according to the geometric tolerance symbol; Or, Traversing the dimension information on all pages in the drawing, Determining the inspection item information according to the dimension information and a preset dimension threshold, where the inspection item information includes an identifier corresponding to the overall dimension type, or an identifier corresponding to a key dimension, or an identifier corresponding to a general dimension; Or, Traversing the annotation information on all pages in the drawing, Determining the inspection item information according to the annotation information and preset keyword information, where the inspection item information includes an identifier corresponding to the technical requirement, or an identifier corresponding to a key annotation, or an identifier corresponding to a general annotation.
2. The method for extracting drawing inspection items according to claim 1, wherein The first type information includes at least one of the following: General annotation type; General dimension type; Key dimension type.
3. The method for extracting drawing inspection items according to claim 1 or 2, characterized in that The performing of the removal process on the second annotation information according to the position of the first character to obtain third annotation information: When the second annotation information includes the first character and the characters between the first character and the start of the second annotation information are all numbers, removing the numbers and the first character to obtain third annotation information.
4. The method for extracting drawing inspection items according to claim 1 or 2, characterized in that, The processing of the third annotation information according to the quantity information and position information of the preset delimiter symbol information to obtain target numerical information includes: When the quantity information of the preset delimiter symbol information is 1 and the position information is greater than 0, processing the third annotation information to obtain target numerical information, where the target numerical information includes the numbers between the start of the third annotation information and the position of the preset delimiter, and the numbers between the position of the preset delimiter and the end of the third annotation information; Or, When the quantity information of the preset segmentation symbol information is multiple, process the third annotation information to obtain target digital information, where the target digital information includes the numbers between the first digit of the third annotation information and the position of the preset segmentation symbol, the numbers between the position of the first character and the last digit of the third annotation information, and the numbers between every two preset segmentation symbols; Or, When the quantity information of the preset segmentation symbol information is 0, the third annotation information is the target digital information.
5. The method for extracting drawing inspection items according to claim 1, wherein The method further includes: When the type information is the second type information, obtain the second character in the second annotation information and the position of the second character; Process the second annotation information according to the second character and the position of the second character to obtain target digital information.
6. The method for extracting drawing inspection items according to claim 5, wherein The second type information includes at least one of the following: Geometric tolerance type; Key surface finish type; General surface finish type; External dimension type.
7. The method for extracting drawing inspection items according to claim 1, wherein In the step of obtaining the inspection item information according to the surface finish value and the preset surface finish threshold, the inspection item information includes an identifier corresponding to the key surface finish type or an identifier corresponding to the general surface finish type; In the step of determining the inspection item information according to the geometric tolerance symbol, the inspection item information includes an identifier corresponding to the geometric tolerance type.
8. The method for extracting drawing inspection items according to claim 1, characterized in that After processing the third annotation information according to the quantity information and position information of the preset segmentation symbol information to obtain the target digital information, it includes: Obtain inspection quantity information and inspection item information; Determine the target digital information corresponding to the inspection item information according to the inspection item information; Measure the materials corresponding to the inspection item information according to the target digital information to obtain the measurement results of each material; Generate an inspection report according to the measurement results and the inspection quantity information.
9. A controller, comprising: A memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the computer program, it implements the method for extracting drawing inspection items according to any one of claims 1 to 8.
10. A computer-readable storage medium storing computer-executable instructions for executing the method for extracting drawing inspection items according to any one of claims 1 to 8.
Citation Information
Patent Citations
Digital control system machining code general generation method and device
CN101169640A
Architectural drawing component identification method, electronic equipment and related products
CN111832447A