Component identification device, component identification method, and component identification program
Patent Information
- Application Number
- PCT/JP2023/008786
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-08
- Publication Date
- 2024-09-12
Smart Images

Figure JP2023008786_12092024_PF_FP_ABST
Abstract
Description
Component identification device, component identification method, and component identification program
[0001] The present disclosure relates to a part identification device, a part identification method, and a part identification program.
[0002] Design support systems that improve the efficiency of product design by utilizing previously developed part design data are known. For example, Patent Literature 1 discloses a design support system that includes a database that stores correspondence between part functions and shapes that realize those functions, thereby enabling easy search and extraction of shape data corresponding to required functions.
[0003] Japanese Patent Application Laid-Open No. 2008-21159
[0004] When designing a new product to replace an existing device, it is sometimes desirable to design the new device with a shape similar to that of the existing device. For example, when replacing an existing control panel implemented with hardware in a factory with a control panel implemented with a software-simulated graphic screen, it is advantageous for the layout of components such as meters (e.g., scales and numerical displays) to be similar to that of the original device, allowing users to begin using the new device without feeling uncomfortable. However, while the above-mentioned conventional technology can extract shape data for components corresponding to their functions, it requires users to select appropriate shape data to achieve a layout similar to that of the original device, which increases the design burden.
[0005] The present disclosure has been made to solve the above-mentioned problems, and aims to show a part having an arrangement of elements similar to that of the original part.
[0006] A part identification device according to the present disclosure includes an input unit that receives input of an image including a first part; a feature extraction unit that extracts, for the first part, feature amounts in the arrangement of elements that constitute the part from the image; a similarity calculation unit that reads out the feature amounts for the second part from a database that stores, for second parts, a plurality of pieces of identification information, which is information for identifying parts, and feature amounts in association with each other, and calculates a similarity by comparing the feature amounts with the feature amounts extracted by the feature extraction unit; and an output unit that uses the similarity to identify similar parts from among the second parts that are similar to the first part, and reads out and outputs the identification information for the similar parts from the database.
[0007] A part identification device according to the present disclosure extracts feature amounts in the arrangement of elements that make up a part from an image of a first part, reads feature amounts from a database storing multiple feature amounts for a second part, calculates a similarity by comparing the extracted feature amounts, and identifies and outputs similar parts from among the second parts using the similarity amounts, thereby making it possible to indicate parts that are similar to the first part in terms of the arrangement of elements.
[0008] 1 is a hardware configuration diagram of a part identification device according to embodiment 1. 2 is a functional configuration diagram of a part identification device according to embodiment 1. 3 is a diagram showing an original part and its elements according to embodiment 1. 4 is a diagram showing the data structure of a feature DB according to embodiment 1. 5 is a flowchart showing the operation of a part identification device according to embodiment 1. 6 is a diagram showing the data structure of a feature DB according to embodiment 2. 7 is a diagram showing a linear meter and its elements according to embodiment 2. 8 is a functional configuration diagram of a part identification device according to embodiment 2.
[0009] Embodiment 1. Hereinafter, embodiment 1 will be described in detail with reference to the drawings. In embodiment 1, an example is shown in which a component identification device identifies components (hereinafter referred to as similar components) similar to components (hereinafter referred to as original components) that constitute a control panel before replacement, and outputs the results. In other words, a user can identify similar components by viewing the information output by the component identification device, and can select which components will actually replace the components that constitute the control panel before replacement.
[0010] The original part corresponds to the first part in the claims.
[0011] 1 is a hardware configuration diagram of a part identification device according to embodiment 1. The part identification device 100 includes a processor 101, a memory 102, an input / output IF (Interface) 103, and a bus 104. The processor 101, the memory 102, and the input / output IF 103 are connected to each other via the bus 104 so as to be able to communicate with each other.
[0012] The processor 101 is, for example, a CPU (Central Processing Unit), a DSP (Digital Signal Processor), a GPU (Graphical Processing Unit), or an FPGA (Field-Programmable Gated Array).
[0013] The memory 102 is, for example, a static random access memory (SRAM), a dynamic random access memory (DRAM), or a read-only memory (ROM). If the memory 102 alone does not have sufficient storage capacity, the part identification device 100 may include an auxiliary storage device (not shown) as needed. The auxiliary storage device is, for example, a hard disk drive (HDD) or a solid state drive (SSD).
[0014] The input / output IF 103 is an interface for inputting and outputting information to and from the outside of the part identification device 100. The input / output IF 103 is connected to, for example, a mouse, a keyboard, a display, an external memory, and a network cable.
[0015] 2 is a functional configuration diagram of part identification device 100 according to embodiment 1. Part identification device 100 includes input unit 105, type identification unit 106, feature extraction unit 107, similarity calculation unit 108, output unit 110, and feature DB 109 (database). Part identification device 100 receives an input of an image of the control panel before replacement via input unit 105, and outputs information indicating parts whose element arrangement is similar to that of original parts constituting the control panel before replacement via output unit 110.
[0016] The input / output IF 103 is implemented as an input unit 105 and an output unit 110. The processor 101 is implemented as a type identification unit 106, a feature extraction unit 107, and a similarity calculation unit 108. The memory 102 is implemented as a feature DB 109.
[0017] The input unit 105 receives an input of an image of the control panel before replacement. Note that the image input to the input unit 105 may not be an image of the control panel, but may be an image of the original component alone.
[0018] The type identification unit 106 recognizes the original part shown in the image received by the input unit 105, and identifies the elements that make up the original part and the type of the original part.
[0019] 3 is a diagram showing an original part and its elements according to the first embodiment. The original part 111 is composed of a needle 111a, a scale 111b, a numerical display 111c, a center circle 111d, and a display board 111e. Here, the type identification unit 106 is preset to identify the type of a part as an analog meter when the part is composed of a needle, a scale, a numerical display, a center circle, and a display board. In other words, the type identification unit 106 recognizes that the original part 111 shown in the image is composed of five elements, namely, the needle 111a, the scale 111b, the numerical display 111c, the center circle 111d, and the display board 111e, and thereby identifies the type of the original part 111 as an analog meter.
[0020] Returning to the explanation of Fig. 2, the feature extraction unit 107 extracts feature amounts relating to the arrangement of elements from the original part 111 recognized by the type identification unit 106.
[0021] The similarity calculation unit 108 calculates the similarity between the original part 111 and the candidate part by comparing the feature amounts. Here, the candidate part is a part that is selected as a component for configuring the control panel after replacement, and a plurality of candidate parts are prepared in advance. The similarity calculation unit 108 uses the feature amount DB 109 when making the comparison.
[0022] 4 is a diagram showing the data structure of the feature DB 109 according to the first embodiment. The feature DB 109 stores, for three candidate parts whose type is an analog meter (their component IDs 112 are A, B, and C, respectively), the component IDs 112 and the feature values 113 in association with each other. The component IDs 112 correspond to identification information that allows a user or a device to identify each component. The identification information may also be the name of the component or a thumbnail image of the component. The feature DB 109 is not limited to the example of the first embodiment, and may store the identification information and the feature values 113 in association with each other.
[0023] For ease of explanation, the feature DB 109 in Fig. 4 shows that only three candidate parts of the type analog meter are stored, but in reality, the feature DB 109 also stores candidate parts of types other than analog meter, with the part IDs and feature amounts associated with each other. In the example of Fig. 4, the feature amounts 113 indicate feature amounts for three points: the position of the center circle, the distance between the scale and the numerical display, and whether or not the scale is outside the numerical display.
[0024] For example, the feature 113 of a candidate part whose part ID 112 is A indicates that the position of the center circle is at coordinates (20, 15). Here, coordinates indicate a position relative to a predetermined origin. In the first embodiment, the origin is the top-left pixel of the image of the cut-out part, and coordinates (20, 15) indicate a point 20 pixels to the right and 15 pixels down from the origin. In this way, the feature 113 may be a coordinate value indicating where within the part an element is located. Note that the position of the origin is arbitrary, and may be, for example, the center of the part. Furthermore, the coordinate units may also be arbitrary, and may be relative values based on the dimensions of the part (e.g., vertical or horizontal width).
[0025] Furthermore, the feature amount 113 of the candidate part whose part ID 112 is A indicates that the distance between the scale and the numerical display is 5. In this way, the feature amount 113 may be the relative distance between elements.
[0026] Furthermore, the feature value 113 of the candidate part whose part ID 112 is A indicates that whether or not the scale is outside the numerical display is "True." In this way, the feature value 113 may indicate the relative positional relationship between elements. Furthermore, the feature value 113 may be a multiple-choice value instead of a numerical value.
[0027] 4, the feature amount 113 of the candidate part whose part ID 112 is B indicates that the position of the center circle is (20, 23), the distance between the scale and the numerical display is 7, and whether or not the scale is outside the numerical display is "False." Also, the feature amount 113 of the candidate part whose part ID 112 is C indicates that the position of the center circle is (20, 17), the distance between the scale and the numerical display is 2, and whether or not the scale is outside the numerical display is "False."
[0028] In the present disclosure, it is assumed that the part identification device 100 pre-stores the feature amount DB 109. The feature amount DB 109 may be created by a user or may be generated by artificial intelligence such as machine learning.
[0029] The similarity calculation unit 108 compares the feature amounts of the original part 111 and the candidate parts to calculate the similarity. The candidate parts that the similarity calculation unit 108 compares are of the same type as the original part 111. Because the type of the original part 111 is an analog meter, three candidate parts with component IDs 112 A, B, and C are compared. The similarity calculation unit 108 calculates the difference between the feature amounts of the original part 111 and the feature amounts 113 of the candidate parts, and calculates a higher similarity as the difference becomes smaller.
[0030] For example, suppose the feature values of the original part 111 indicate that the position of the center circle is (20, 18), the distance between the scale and the numerical display is 2, and whether the scale is outside the numerical display is "False." Also, consider an example in which a comparison is performed with a candidate part with a part ID of A in FIG. 4 . The similarity calculation unit 108 calculates the difference in the position of the center circle to be (20, 18) - (20, 15) = (0, 3). Here, the difference in the position of the center circle is a two-dimensional value, which cannot be added to other one-dimensional differences as is. Therefore, if necessary, it may be converted to one dimension by calculating the norm. For example, the one-dimensional difference in the position of the center circle is |0| + |3| = 3. Furthermore, the difference in the distance between the scale and the numerical display is calculated to be 2 - 5 = -3. Furthermore, regarding whether the scale is outside the numerical display, if the values match, the difference is calculated to be 0; otherwise, the difference is calculated to be 1. In other words, in this example, the difference is calculated to be 1. The similarity calculation unit calculates the absolute value of each difference and adds them together to obtain the overall difference. That is, the overall difference is |3|+|-3|+|1|=3+3+1=7.
[0031] In the above example, the differences between multiple feature amounts are simply summed, but the differences between each feature amount may be multiplied by a predetermined coefficient before being summed. This allows you to set the weighting of each of the multiple feature amounts to calculate the similarity.
[0032] Returning to the description of Figure 2, the output unit 110 uses the similarity calculated by the similarity calculation unit 108 to identify, from among the candidate parts, similar parts that are similar to the original part 111. Specifically, the output unit 110 determines that a candidate part whose similarity exceeds a predetermined threshold is a similar part. The output unit 110 reads out identification information related to the similar parts from the feature DB 109 and outputs the information.
[0033] An example of outputting identification information for similar parts using similarity is described below. For example, the output unit 110 may output identification information for only similar parts as search results. This ensures that the parts output as search results are similar parts, allowing the user to easily select similar parts. The output unit 110 may also output a list of similar parts associated with similarity as search results. This allows the user to understand the similarity of the similar parts and easily recognize similar parts with high similarity. The output unit 110 may also display search results in a way that highlights parts with high similarity. For example, the output unit 110 may list similar parts in descending order of similarity. Alternatively, the output unit 110 may output similar parts together with candidate parts that are not similar, while highlighting only the similar parts (e.g., bolding text, turning text red, using a fluorescent background, or surrounding them with a red border). This makes candidate parts with higher similarity more noticeable to the user, allowing the user to easily recognize candidate parts with high similarity.
[0034] FIG. 5 is a flowchart showing the operation of the part identification device 100 according to the first embodiment.
[0035] The input unit 105 receives an input of an image of the control panel before replacement (step S101), and the process proceeds to step S102.
[0036] The type identification unit 106 recognizes the original part 111 shown in the image received by the input unit 105, identifies the elements that make up the original part 111, and the type of the original part 111 (step S102), and proceeds to step S103.
[0037] The feature extraction unit 107 extracts feature amounts relating to the arrangement of elements from the original part 111 (step S103), and the process proceeds to step S104.
[0038] The similarity calculation unit 108 selects one candidate part of the same type as the original part 111 from the candidate parts stored in the feature DB 109 (step S104), and the process proceeds to step S105.
[0039] The similarity calculation unit 108 calculates the similarity between the original part 111 and the candidate part selected in step S104 by comparing the feature amounts (step S105), and the process proceeds to step S106. The similarity calculation unit 108 obtains the feature amounts 113 of the candidate parts by reading them from the feature amount DB 109.
[0040] The similarity calculation unit 108 determines whether the calculation of similarities has been completed for all candidate parts of the same type among the candidate parts stored in the feature DB 109 (step S106), and if it is determined that the calculation has been completed, proceeds to step S107; otherwise, proceeds to step S104.
[0041] The output unit 110 identifies similar parts from among the candidate parts using the similarity calculated by the similarity calculation unit 108, reads out and outputs identification information related to the similar parts from the feature DB 109 (step S107), and ends the flowchart of Figure 5.
[0042] As described above, the part identification device 100 according to the first embodiment extracts, for a first part, feature quantities in the arrangement of elements constituting a part from an image; reads feature quantities 113 for the second part from a database that stores, for a second part, a plurality of pairs of identification information, which is information for identifying parts, and feature quantities 113 associated with each other; calculates a similarity by comparing the feature quantities with the extracted feature quantities; identifies similar parts from the second parts that are similar to the first part using the similarity; and reads and outputs the identification information for the similar parts from the database. This enables the part identification device 100 to indicate parts that are similar to the first part in terms of their element arrangement, allowing the user to select parts that are highly similar to the first part in terms of their element arrangement.
[0043] Furthermore, the first component is the original component 111 that constitutes the control panel before replacement, and the second component is a candidate component that is a component that is selected as a component that constitutes the replaced control panel realized on the graphic screen. This allows the component identification device 100 to indicate components similar to the original component 111 that constitutes the control panel before replacement, and to support replacement with the control panel realized on the graphic screen.
[0044] Furthermore, the feature quantities 113 related to the candidate parts and the extracted feature quantities indicate the positions of elements within the part, the distance between elements, or the positional relationships between elements, which enables the part identification device 100 to indicate, as similar parts, parts that are similar to the original part 111 in terms of the positions of elements within the part, the distance between elements, or the positional relationships between elements.
[0045] Although the first embodiment illustrates an example in which a user views the information output by the output unit 110, the information output by the output unit 110 according to the present disclosure can also be input to another device. The other device is, for example, a device that automatically replaces a control panel by automatically selecting similar components. As a simple example, the other device can automatically replace a control panel by selecting the most similar component from among the similar components indicated in the information output by the component identification device 100.
[0046] Second Embodiment In a second embodiment, a method of replacing parts so as to give a sense of unity to the entire control panel will be described.
[0047] FIG. 6 is a diagram showing the data structure of the feature DB 109 according to the second embodiment. The difference from the first embodiment is that a group ID 114 has been added. The group ID 114 is a value for grouping candidate parts with similar element arrangements. A candidate part with a component ID of A is associated with group 1 as the group ID 114, a candidate part with a component ID of B is associated with group 2 as the group ID 114, and a candidate part with a component ID of C is associated with group 3 as the group ID 114. While FIG. 6 only shows three candidate analog meter components, group IDs 114 are also assigned to candidate parts of other types (e.g., linear meters, as described below). Analog meters and linear meters that are similar to each other in terms of element arrangement are assigned the same group ID 114. In other words, if a control panel before replacement contains two original components, an analog meter and a linear meter, candidate parts associated with the same group ID 114 are preferentially output as replacement candidate parts for both components, thereby enabling the replacement to have a unified look across the entire control panel.
[0048] FIG. 7 is a diagram illustrating a linear meter and its elements according to the second embodiment. The linear meter 116 includes a meter 116a, a meter 116b, a scale 116c, and a numeric display 116d. One of the features of the linear meter 116 is the distance between the scale 116c and the numeric display 116d. This feature is considered to be identical to the feature 113 relating to the distance between the scale 111b and the numeric display 111c of the analog meter. Therefore, the feature of the distance between the scale and the numeric display is compared, and the analog meter and the linear meter 116 for which the difference is sufficiently small (for example, less than a predetermined threshold) are assigned the same group ID 114. In this way, even components of different types may have some common elements and comparable features. In such cases, the features are compared, and if the difference is sufficiently small, the analog meter and the linear meter 116 are assigned the same group ID 114.
[0049] FIG. 8 is a functional configuration diagram of a component identification device 100 according to the second embodiment. The difference from the first embodiment is the addition of a group judgment unit 115. Consider the replacement of a certain control panel. The group judgment unit 115 collects the group IDs 114 of the identified similar components in the replacement of the control panel. The group judgment unit 115 performs the above-described process for each of the multiple original components constituting the control panel before replacement. The group judgment unit 115 aggregates the distribution of the collected group IDs 114 and determines the group ID appropriate for the control panel before replacement. For example, the group judgment unit 115 may aggregate the group IDs 114 of the similar components with the highest similarity for each original component and determine that the group ID 114 with the highest number of aggregation results is the most appropriate for the control panel before replacement. This allows a majority vote to be taken for each original component, narrowing down the group ID 114 considered appropriate to one. Note that the group determination unit 115 according to the present disclosure is not limited to the above operation, and may extract multiple group IDs 114 suitable for the control panel before replacement. This allows multiple groups to be presented to the user from the component identification device 100, broadening the range of component selection available to the user. In this manner, the group determination unit 115 determines the group ID 114 suitable for the control panel before replacement and transfers the group ID 114 to the output unit 110.
[0050] The output unit 110 outputs information indicating candidate parts corresponding to the group ID 114 suitable for the control panel before replacement. Specifically, the output unit 110 may output candidate parts corresponding to the group ID 114 suitable for the control panel before replacement, in addition to the output of similar parts described in the first embodiment. Alternatively, the output unit 110 may output only identified similar parts that correspond to the group ID 114 suitable for the control panel before replacement.
[0051] As described above, the part identification device 100 according to the second embodiment acquires the group ID 114 for grouping the candidate parts stored in the database in association with the feature quantities of the candidate parts, determines the group of candidate parts suitable for the control panel before replacement using the acquired group ID 114, and reads and outputs identification information from the database for the candidate parts belonging to the group suitable for the control panel before replacement. This makes it possible to output candidate parts that are similar not to a single part but to the entire control panel, thereby enabling replacement with a unified look for the entire control panel.
[0052] 100 Part identification device, 101 Processor, 102 Memory, 103 Input / output IF, 104 Bus, 105 Input unit, 106 Type identification unit, 107 Feature extraction unit, 108 Similarity calculation unit, 109 Feature DB, 110 Output unit, 111 Original part, 111a Needle, 111b Scale, 111c Numerical display, 111d Center circle, 111e Display board, 112 Part ID, 113 Feature, 114 Group ID, 115 Group judgment unit, 116 Linear meter, 116a Meter, 116b Meter, 116c Scale, 116d Numerical display
Claims
1. A part identification device comprising: an input unit for inputting an image including a first part; a feature extraction unit for extracting, for the first part, feature amounts in the arrangement of elements that constitute the part from the image; a similarity calculation unit for reading out the feature amounts for the second part from a database that stores a plurality of identification information, which is information for identifying parts, and feature amounts in association with each other for second parts, and calculating a similarity by comparing the feature amounts with the feature amounts extracted by the feature extraction unit; and an output unit for identifying similar parts that are similar to the first part from among the second parts using the similarity, and reading out and outputting the identification information for the similar parts from the database.
2. The part identification device according to claim 1, characterized in that the first part is an original part constituting the control panel before replacement, and the second part is a candidate part which is a part that is selected as a candidate for constituting the control panel after replacement realized on a graphic screen.
3. The part identification device according to claim 2, characterized in that the feature quantities related to the candidate parts and the feature quantities extracted by the feature quantity extraction unit indicate the positions of elements within a part, or the distance between elements, or the positional relationship between elements.
4. The part identification device according to claim 2, further comprising a group determination unit that obtains, for the similar parts, a group ID for grouping the candidate parts stored in the database in correspondence with the features of the candidate parts, and determines a group of the candidate parts suitable for the control panel before replacement using the obtained group ID, and the output unit reads out the identification information for the candidate parts belonging to the group suitable for the control panel before replacement from the database and outputs it.
5. A part identification method comprising the steps of: inputting an image including a first part; extracting from the image for the first part features of the arrangement of elements that constitute the part; reading out the features for the second part from a database that stores a plurality of pairs of identification information, which is information for identifying parts, and features in association with each other for second parts; calculating a similarity by comparing the features extracted from the image; identifying similar parts that are similar to the first part from among the second parts using the similarity; and reading out and outputting the identification information for the similar parts from the database.
6. A part identification program for executing the following steps: an input process for inputting an image including a first part; a feature extraction process for extracting, for the first part, feature amounts in the arrangement of elements that constitute the part from the image; a similarity calculation process for reading out the feature amounts for the second part from a database that stores a plurality of identification information, which is information for identifying parts, and feature amounts in association with each other for a second part, and calculating a similarity by comparing the feature amounts with the feature amounts extracted by the feature extraction process; and an output process for identifying similar parts that are similar to the first part from among the second parts using the similarity, and reading out the identification information for the similar parts from the database and outputting it.
Citation Information
Patent Citations
Offline teaching method for image measuring device by optimization of illuminating condition
JP2002228424A
Retrieval program, retrieval method and information processing apparatus operating retrieval program
JP2019045894A
Change detection device, change detection method, and change detection program
JP2021103562A
Information converting system
WO2002001505A1
Cited By
Computer-implemented method for measuring and classifying spare parts
BE1032433B1
