Method, system, equipment and medium for identifying same plug appearing at close position by using computer
By constructing and quantifying the model and assembly area of the aviation plug, identifying and comparing the plug shape, the problem of aviation plug docking errors is solved, and the plug is quickly identified and highlighted to indicate the same shape is reduced, and the risk of installation errors is improved and the reliability and safety of the product is improved.
Patent Information
- Application Number
- CN202510542483.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2045-04-28
AI Technical Summary
In the aviation field, due to the accuracy of shape recognition of the wire harness plugs in the product cabin, the plug and electrical equipment are incorrectly connected, causing product failure. Prior art such as barcode scanning methods cannot be applied to aviation plug products and can easily lead to product quality hazards.
By constructing the wiring harness plug model and assembly area, obtain the center of gravity coordinates and identification areas of the plug, quantify the information of the plug and assembly area, identify the shape of the plug in the area to be assembled, and judge whether the shape of the plug is the same based on the center of gravity coordinates and description results. If the same is the same, highlight it.
It realizes rapid identification of the shape of the wire harness plug in the product cabin, reduces the risk of plug installation errors, helps designers to carry out error-proof designs, prompts installation operators to potential errors, and improves product reliability and safety.
Smart Images

Figure CN120068284A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer-aided process planning. Specifically, it relates to a method, system, device and medium for using a computer to identify the same plugs appearing at similar positions. Background Art
[0002] In the aviation field, the wire harness plugs in the product cabin are key components for electrical connection. The accuracy of their shape recognition is crucial for ensuring the reliability and safety of the electrical system. The Chinese invention patent with the name "A Product Error Prevention Method and System Based on Barcode Scanning" and the publication number "CN109615041A" scans and reads the barcodes on the product and compares them with the scanned barcodes in the database. If there are duplicate barcodes, an alarm message is sent. This method requires pasting barcodes on the product. Due to the limitations of the size and shape of aviation plugs, pasting barcodes cannot be applied to aviation plug products. Moreover, when the barcode falls off, it is easy to generate debris inside the product, posing potential product quality hazards. Summary of the Invention
[0003] Aiming at the problem that plugs with the same shape exist at similar positions in the product, resulting in incorrect docking between the plugs and electrical equipment and causing product failures, the present invention proposes a method, system, device and medium for using a computer to identify the same plugs appearing at similar positions. The method first obtains the plug centroid coordinates and the plug recognition area according to the constructed wire harness plug model and the assembly area. Then, it quantitatively describes the plug and assembly area information to obtain a description result. Finally, it identifies the shape of the plugs in the area to be assembled, and determines whether the plug shapes are the same according to the plug centroid coordinates and the description result. If they are the same, they are highlighted. By using a computer to recognize the shapes of the wire harness plugs in the product cabin, plugs with the same shape can be quickly found, realizing the prompt of plugs with the same shape in the same cabin and reducing the risk of incorrect plug installation.
[0004] The specific implementation content of the present invention is as follows: A method for using a computer to identify the same plugs appearing at similar positions first obtains the plug centroid coordinates and the plug recognition area according to the constructed wire harness plug model and the assembly area. Then, it quantitatively describes the plug and assembly area information to obtain a description result. Finally, it identifies the shape of the plugs in the area to be assembled, and determines whether the plug shapes are the same according to the plug centroid coordinates and the description result. If they are the same, they are highlighted.
[0005] To better implement the present invention, further, the method for using a computer to identify the same plugs appearing at similar positions specifically includes the following steps: Step S1: Construct the wire harness plug model and the assembly area in the product structure, obtain the plug centroid coordinates according to the wire harness plug model, and obtain the plug recognition area according to the assembly area; Step S2: Invoke the shape distribution algorithm to quantitatively describe the shape of the part and obtain the description result; Step S3: Search for the plug part model in the area to be assembled, calculate the shape similarity of the plug according to the plug gravity center coordinates and the description result, determine whether the plug shapes are the same, and if so, highlight them.
[0006] To better implement the present invention, further, step S1 specifically includes the following steps: Step S11: Construct a plug part model and extract the plug gravity center coordinates (x, y, z); Step S12: Construct an assembly area and obtain two extreme points (x 1 , y 1 , z 1 ), (x 2 , y 2 , z 2 ) to obtain the plug recognition area.
[0007] To better implement the present invention, further, the specific operation of step S2 is: Invoke the shape distribution algorithm to quantitatively describe the shape of the plug part, obtain the description result, and record the description result as an n-dimensional vector , where , and is the shape vector of the i th dimension.
[0008] To better implement the present invention, further, step S3 specifically includes the following steps: Step S31: Randomly select the area to be assembled and search for the plug part model in the area to be assembled; Step S32: Randomly select plug part p and plug part q from the found plug part models, and calculate the part shape similarity according to the description result; Step S33: According to the set similarity threshold, determine whether the plug shapes of plug part p and plug part q are the same; if so, highlight them.
[0009] To better implement the present invention, further, the specific operation of calculating the part shape similarity in step S32 is: where, and respectively represent the values of the i-th dimension in the shape vectors of part p and part q.
[0010] To better implement the present invention, further, the specific operation of step S33 is: According to the set similarity threshold b, determine whether the plug shapes of plug part p and plug part q are the same. If the part shape similarity If it is determined that errors are likely to occur during the assembly process of plug part p and plug part q, a warning will be given in the aircraft 3D model.
[0011] Based on the method of using a computer to identify identical plugs at similar positions proposed above, in order to better implement the present invention, further, a system for using a computer to identify identical plugs at similar positions is proposed, which is used to implement the above method of using a computer to identify identical plugs at similar positions; it includes an acquisition unit, a description unit, and an identification unit. The acquisition unit is used to obtain the plug center-of-gravity coordinates and the plug identification area according to the constructed wire harness plug model and the assembly area. The description unit is used to quantitatively describe the plug and assembly area information. The identification unit is used to identify the shape of the plug in the area to be assembled, determine whether the plug shapes are the same, and if they are the same, highlight them.
[0012] Based on the method of using a computer to identify identical plugs at similar positions proposed above, in order to better implement the present invention, further, an electronic device is proposed, which includes a memory and a processor; a computer program is stored on the memory; when the computer program is executed on the processor, the above method of using a computer to identify identical plugs at similar positions is implemented.
[0013] Based on the method of using a computer to identify identical plugs at similar positions proposed above, in order to better implement the present invention, further, a computer-readable storage medium is proposed, and a computer instruction is stored on the computer-readable storage medium; when the computer instruction is executed on the above electronic device, the above method of using a computer to identify identical plugs at similar positions is implemented.
[0014] The present invention has the following beneficial effects: (1) The present invention supports designers and installation operators to identify the shapes of wire harness plugs in the product cabin through a computer, quickly find plugs with the same shape, and realize the prompt of plugs with the same shape in the same cabin; it helps designers to prevent errors in the design of plugs at the same position; it helps installation operators to view plugs with the same shape and gives a prompt for the risk of incorrect plug installation.
[0015] (2) The present invention can identify all plug shapes and fully considers the potential hazards of incorrect docking of plugs with the same shape to different devices within the area. Description of the Drawings
[0016] Figure 1 It is the overall flowchart of the method for using a computer to identify identical plugs at similar positions provided by the present invention.
[0017] Figure 2Schematic diagram for extracting the center of gravity coordinates of the plug provided by the embodiment of the present invention.
[0018] Figure 3 Schematic diagram for selecting the comparison area of the plug provided by the embodiment of the present invention.
[0019] Figure 4 Schematic diagram for automatically identifying plugs with the same shape provided by the embodiment of the present invention. Detailed implementation manners
[0020] To more clearly illustrate the technical solutions of the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It should be understood that the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments, and therefore should not be regarded as a limitation of the protection scope. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
[0021] In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, the terms "set", "connected", and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can also be directly connected, or indirectly connected through an intermediate medium, and it can be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.
[0022] Embodiment 1: This embodiment proposes a method for a computer to identify the same plugs appearing in similar positions. First, according to the constructed wire harness plug model and the assembly area, the center of gravity coordinates of the plug and the plug identification area are obtained; then the plug and the assembly area information are quantitatively described to obtain a description result; finally, the shape of the plug in the area to be assembled is identified, and it is judged whether the shapes of the plugs are the same according to the center of gravity coordinates of the plug and the description result. If they are the same, they are highlighted.
[0023] Working principle: In the computer three-dimensional model of the product in this embodiment, the area is determined, and the shape of the cable plug in the area is identified by the computer. If the shapes of the plugs are the same, the computer prompts that there are plugs with the same shape, so as to provide an anti-error design hint for designers or a reminder of easy docking errors for plug installers; the risk of incorrect plug installation is reduced.
[0024] Embodiment 2: This embodiment is described in terms of steps on the basis of Embodiment 1 above.
[0025] The method for using a computer to identify the same plugs appearing at adjacent positions specifically includes the following steps: Step S1: Construct a wire harness plug model and an assembly area in the product structure, obtain the plug center-of-gravity coordinates based on the wire harness plug model, and obtain the plug recognition area based on the assembly area.
[0026] The specific steps of step S1 are as follows: Step S11: Construct a plug part model and extract the plug center-of-gravity coordinates (x, y, z); Step S12: Construct an assembly area and obtain two extreme points (x 1 , y 1 , z 1 ), (x 2 , y 2 , z 2 ) to obtain the plug recognition area.
[0027] Step S2: Invoke the shape distribution algorithm to quantitatively describe the part shape and obtain a description result.
[0028] The specific operation of step S2 is: Invoke the shape distribution algorithm to quantitatively describe the plug part shape, obtain a description result, and record the description result as an n-dimensional vector , where , and is the shape vector of the i th dimension.
[0029] To better implement the present invention, further, the specific operation of calculating the part shape similarity in step S32 is: where, and respectively represent the values of the i-th dimension in the shape vectors of part p and part q.
[0030] Step S3: Search for the plug part model in the area to be assembled, calculate the plug shape similarity based on the plug center-of-gravity coordinates and the description result, determine whether the plug shapes are the same, and if so, highlight them.
[0031] The specific steps of step S3 are as follows: Step S31: Randomly select the area to be assembled and search for the plug part model in the area to be assembled; Step S32: Randomly select plug part p and plug part q from the found plug part models, and calculate the part shape similarity according to the description result; Step S33: According to the set similarity threshold, determine whether the plug shapes of plug part p and plug part q are the same; if so, highlight them.
[0032] The specific operation of step S33 is as follows: according to the set similarity threshold b, determine whether the plug shapes of plug part p and plug part q are the same. If the similarity of the part shapes is high, it is determined that errors are likely to occur during the assembly process of plug part p and plug part q, and a warning is given in the aircraft three-dimensional model.
[0033] Working principle: This embodiment supports designers and installation operators to identify the shapes of wire harness plugs in the product cabin through a computer, quickly find plugs with the same shape, and realize the prompt for plugs with the same shape in the same cabin. It can help designers prevent errors in the design of plugs at the same position; help installation operators view plugs with the same shape and prompt the risk of incorrect plug installation; meet the identification of all plug shapes; the same plug identification method proposed in this embodiment fully considers the hidden danger of incorrect docking of plugs with the same shape to different devices within the area.
[0034] Other parts of this embodiment are the same as those of the above-mentioned Embodiment 1, so they will not be elaborated here.
[0035] Embodiment 3: On the basis of any one of the above-mentioned Embodiments 1-2, this embodiment Figure 1 , Figure 2 , Figure 3 is shown as an example of the product structure and plug model for detailed description.
[0036] The specific steps are as follows: Step 1: Construct the wire harness plug model and the assembly area in the product structure, and describe the plug and assembly area information.
[0037] S1.1: For the plug part model, extract its centroid coordinates . As Figure 2 shown, obtain the centroid coordinates of the plug model.
[0038] S1.2: For each assembly area, use two extreme points and to represent its envelope, where represents the minimum value of the envelope in the coordinate system , and represents the maximum value of the envelope in the coordinate system ; for example Figure 3 , obtain the envelope.
[0039] S1.3: For each part model, use the shape distribution algorithm to quantitatively describe the shape information of the part, and record the description result as an n-dimensional vector , where , and is the shape vector of the i dimension.
[0040] Step 2: Highlight the plugs with the same shape in the area with the same color. The specific steps are as follows: S2.1: Select an area to be compared; for example Figure 3 , obtain the comparison area.
[0041] S2.2: Find all plug models in this area. For the plug model with the center of gravity coordinates of , the judgment rule is as follows: S2.3: In this assembly area, select two plug parts p and q, and calculate the shape similarity between them. The calculation method is as follows: where and respectively represent the values of the i-th dimension in the shape vectors of part p and part q.
[0042] S2.4: Set the similarity threshold b. If , it is considered that errors are likely to occur during the assembly of parts p and q, and a warning is given in the aircraft 3D model. For example Figure 4 , the plugs with the same shape are highlighted.
[0043] This implementation example shows that an automatic recognition method using a computer to avoid the appearance of the same plugs at adjacent positions proposed in this embodiment can be used to recognize the shapes of plugs in a complex product structure and has a good recognition effect.
[0044] The other parts of this embodiment are the same as any one of the above Embodiment 1 - Embodiment 2, so they will not be described in detail here.
[0045] Embodiment 4: Based on any one of the above Embodiment 1 - Embodiment 3, this embodiment proposes a system for using a computer to recognize the appearance of the same plugs at adjacent positions, which is used to implement the method for using a computer to recognize the appearance of the same plugs at adjacent positions; it includes an acquisition unit, a description unit, and an identification unit; The acquisition unit is used to obtain the plug center of gravity coordinates and the plug identification area according to the constructed wire harness plug model and the assembly area; The description unit is used to quantitatively describe the plug and the assembly area information; The identification unit is used to identify the shapes of the plugs in the area to be assembled, judge whether the plug shapes are the same, and if they are the same, highlight them.
[0046] This embodiment also provides an electronic device, including a memory and a processor; a computer program is stored on the memory; when the computer program is executed on the processor, the method for using a computer to identify the same plugs appearing at adjacent positions as described above is implemented.
[0047] This embodiment also provides a computer-readable storage medium, on which a computer instruction is stored; when the computer instruction is executed on the above-mentioned electronic device, the method for using a computer to identify the same plugs appearing at adjacent positions as described above is implemented.
[0048] Other parts of this embodiment are the same as any one of the above Embodiment 1 - Embodiment 3, and thus will not be described in detail.
[0049] The processor involved in the embodiments of this application may be a chip. For example, it may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0050] The memory involved in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchlink dynamic random access memory (SLDRAM), and direct rambus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include but not be limited to these and any other suitable types of memory.
[0051] It should be understood that in various embodiments of the present application, the magnitudes of the sequence numbers of the above processes do not imply the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0052] Those of ordinary skill in the art can realize that the modules and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the present application.
[0053] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the systems, devices, and modules described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.
[0054] In several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there can be other division methods. For example, multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of devices or modules can be in electrical, mechanical, or other forms.
[0055] The modules described as separate components may or may not be physically separated. The components shown as modules may or may not be physical modules, that is, they can be located in one device or distributed to multiple devices. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0056] In addition, in each embodiment of the present application, the functional modules can be integrated in one device, or each module can exist physically separately, or two or more modules can be integrated in one device.
[0057] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that the computer can access or a data storage device such as a server or data center that contains one or more integrated media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a Solid State Disk (SSD)), etc.
[0058] As described above, it is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claimed rights.
Claims
1. A method for identifying identical plugs in close locations using a computer, characterized in that: Firstly, according to the constructed wiring harness plug model and assembly area, the plug center of gravity coordinates and the plug identification area are obtained; then, the plug and assembly area information are quantitatively described to obtain the description result; Finally, the plug shapes in the area to be assembled are identified, and the plug shapes are judged to be the same based on the coordinates of the plug center of gravity and the description results. If they are the same, they are highlighted.
2. A method for identifying identical plugs at similar locations using a computer according to claim 1, characterized in that: The method for using a computer to identify identical plugs at similar locations specifically comprises the following steps: Step S1: constructing a wiring harness plug model and an assembly area in the product structure, and obtaining the coordinates of the plug's center of gravity according to the wiring harness plug model, and obtaining the plug identification area according to the assembly area; Step S2: calling the shape distribution algorithm to quantitatively describe the shape of the part and obtain a description result; Step S3: Find the plug part model in the area to be assembled, calculate the plug shape similarity based on the plug center of gravity coordinates and description results, and determine whether the plug shapes are the same. If they are the same, highlight them.
3. The method of using a computer to identify identical plugs in close locations according to claim 2, characterized in that: The step S1 specifically includes the following steps: Step S11: construct a plug part model and extract the coordinates (x, y, z) of the plug center of gravity; Step S12: construct the assembly area and obtain two extreme points (x1, y1, z1) and (x2, y2, z2) to obtain the plug recognition area.
4. The method of using a computer to identify identical plugs in close locations according to claim 3, characterized in that: The specific operation of step S2 is: calling the shape distribution algorithm to quantitatively describe the shape of the plug part, obtaining a description result, and recording the description result as an n-dimensional vector ,in ,and For the i The shape vector of the dimensions.
5. The method of using a computer to identify identical plugs in close locations according to claim 4, characterized in that: The step S3 specifically comprises the following steps: Step S31: randomly selecting a to-be-assembled area and searching for a plug part model in the to-be-assembled area; Step S32: randomly selecting a plug part p and a plug part q from the searched plug part models, and calculating the part shape similarity according to the description results; Step S33: According to the set similarity threshold, determine whether the plug shapes of the plug part p and the plug part q are the same; if they are the same, highlight them.
6. The method of using a computer to identify identical plugs in close locations according to claim 5, characterized in that: The specific operation of calculating the part shape similarity in step S32 is: in, and Represent the value of the i-th dimension in the shape vector of part p and part q respectively.
7. The method of using a computer to identify identical plugs in close locations according to claim 6, characterized in that: The specific operation of step S33 is: according to the set similarity threshold b, determine whether the plug shapes of the plug parts p and q are the same. If the parts shape similarity is , it is judged that the assembly process of plug part p and plug part q is prone to errors, and a warning is issued in the aircraft three-dimensional model.
8. A system for identifying identical plugs in close locations using a computer, used to implement the method for identifying identical plugs in close locations using a computer as claimed in claim 1; characterized in that: It includes an acquisition unit, a description unit, and an identification unit; The acquisition unit is used to acquire the coordinates of the center of gravity of the plug and the plug identification area according to the constructed wiring harness plug model and the assembly area; The description unit is used to quantitatively describe the plug and assembly area information; The identification unit is used to identify the shape of the plugs in the area to be assembled, determine whether the plug shapes are the same, and highlight them if they are the same.
9. An electronic device, characterized in that: The method comprises a memory and a processor; the memory stores a computer program; when the computer program is executed on the processor, the method of using a computer to identify identical plugs appearing in similar positions as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions; when the computer instructions are executed on the electronic device as described in claim 9, the method of using a computer to identify identical plugs appearing in similar positions as described in any one of claims 1-7 is implemented.
Citation Information
Patent Citations
Product error prevention method and system based on bar code scanning
CN109615041A
Aviation electric connector pin position deviation detection method
CN106500593A
Branch-based aviation wire harness information integration method and readable storage medium
CN113886402A
Aviation cable automatic plugging method and system and storage medium
CN114612563A
Aircraft shipping space assembly deviation recognition device and quantitative evaluation method
CN117649564A