This application is based upon and claims the benefit of priority from the prior Japanese Patent Application No. 2020-038484, filed on Mar. 6, 2020; the entire contents of which are incorporated herein by reference.
Embodiments relate to an inspection terminal device, an inspection device, an inspection system, and an inspection program.
For example, it is desirable to detect the appropriateness of the connection state of an inspection object automatically and with high accuracy for inspection objects such as many crimping terminals connected to a distribution board or the like, a temperature sensor connected to a socket, etc.
An inspection terminal device according to an embodiment includes an imager, a displayer, a feature extractor, and an evaluator. The imager images an inspection object. The displayer displays an image of the inspection object imaged by the imager. The feature extractor extracts a feature of the inspection object in the image. The evaluator evaluates the inspection object based on the feature. The displayer displays an evaluation result of the evaluator to correspond to a position of the inspection object in the image.
Various embodiments are described below with reference to the accompanying drawings.
The drawings are schematic and conceptual; and the relationships between the thickness and width of portions, the proportions of sizes among portions, etc., are not necessarily the same as the actual values. The dimensions and proportions may be illustrated differently among drawings, even for identical portions. In the specification and drawings, components similar to those described previously or illustrated in an antecedent drawing are marked with like reference numerals, and a detailed description is omitted as appropriate.
The inspection system 1 includes an inspection terminal device 10, and an inspection device 20 that has a wired or wireless connection with the inspection terminal device 10. The inspection device 20 may be connected to the inspection terminal device 10 via a network.
In the inspection system 1, an image of an inspection object that is imaged by the inspection terminal device 10 is inspected (evaluated) by the inspection device 20; and the result of the inspection is output to the inspection terminal device 10.
An example is described in the embodiment in which many crimping terminals that are connected to a distribution board are used as the inspection object of the inspection system 1; and the connection state of the many crimping terminals is inspected.
The inspection terminal device 10 includes an imager 11, a displayer 12, a memory part 13, an outputter 14, and a controller 15 that controls these components. For example, a so-called smart device such as a smartphone, a tablet terminal device, etc., can be used as the inspection terminal device.
The imager 11 images the inspection object. As shown in
When the imaging by the imager 11 is performed, the displayer 12 displays the inspection object before imaging. The displayer 12 can display an imaging guide corresponding to the inspection object before the imaging by the imager 11. For example, the displayer 12 may be a touch panel and may also function as an input device.
As shown in
As shown in
As shown in
The memory part 13 stores the inspection image. For example, as imaging guides that correspond to the inspection object, the imaging guide 95 of the terminal block 90 to which the crimping terminals 91 are connected and the imaging guide 96 that indicates the connection positions of the crimping terminals 91 at the terminal block 90 are associated and stored beforehand in the memory part 13.
The outputter 14 outputs the inspection image to the inspection device 20.
The controller 15 controls the operations of the components of the inspection terminal device 10 described above. For example, when the terminal block is selected in the displayer 12, the controller 15 reads the imaging guide 95 of the selected terminal block 90 and the imaging guide 96 of the crimping terminals 91 corresponding to the terminal block 90 from a memory part 103 and displays these imaging guides.
When imaging, the displayer 12 displays the crimping terminals 91 before imaging with the imaging guides 95 and 96. When an imaging button 99 shown in
The inspection device 20 includes an image acquisition part 21, a feature extractor 22, an evaluator 23, an outputter 24, and the memory part 25.
The image acquisition part 21 acquires the image (the inspection image) of the crimping terminals that are the inspection object from the inspection terminal device 10. Here, the image of the crimping terminals is imaged by the inspection terminal device 10 in a state in which the crimping terminals are aligned with the imaging guide. The image acquisition part 21 outputs the image to the feature extractor 22.
The feature extractor 22 extracts the feature of the inspection object in the inspection image. When multiple inspection objects are included in the inspection image, features are extracted respectively for the multiple inspection objects.
In the three examples shown in
Here, the extraction of the feature can be performed using a trained model.
For example, the trained model is generated utilizing a machine learning algorithm such as a neural network, etc. The trained model is generated by inputting training data set to the machine learning algorithm. The training data set include images of various connection states of the crimping terminals and labels indicating the contour lines and the boundary lines of the crimping terminals.
When the feature of the inspection object is extracted using such a trained model, the feature extractor 22 refers to the trained model described above. The feature extractor 22 inputs the inspection image according to the crimping terminal that is the inspection object to the trained model and extracts, as the feature, the contour line and the boundary line that are output from the trained model. The trained model can be prestored in the memory part 25, etc.
The evaluator 23 evaluates the appropriateness of the connection state of the crimping terminal based on the feature.
As shown in
The graphs in
In the example of
For example, the evaluator 23 can evaluate the connection state of the crimping terminal to be appropriate when the following Formula (1) is satisfied.
Rw=Rl−Rr,
Gc>Rl+Rw/3, and
Gc<Rr+Rw/3 (1)
In the example of
The evaluator 23 prepares the evaluation result as information that corresponds to the output destination and outputs the evaluation result to the outputter 24. According to the embodiment, the evaluation result is displayed by the displayer 12 of the inspection terminal device 10. Therefore, the evaluator 23 generates display information for displaying by the displayer 12 of the inspection terminal device 10 to correspond to the display positions of the crimping terminals in the inspection image. The display information is output via the outputter 24 as the evaluation result of the evaluator 23.
For example, the memory part 25 can store the trained model. The memory part 25 may store the inspection image acquired by the image acquisition part 21. The memory part 25 may store various images generated for the appropriateness evaluation of the evaluator 23. The memory part 25 may store formulas used in the evaluation processing of the evaluator 23, etc. Sets of the terminal block and the guides may be recorded.
The flow of the inspection processing of an inspection system having such a configuration will now be described with reference to the flowchart of
In step S101, the user uses the inspection terminal device 10 to display the terminal block selection field 92 for imaging the crimping terminal that is the inspection object. The user selects, from the terminal block selection field 92, the model number of the terminal block 90 to be imaged (
In step S102, the imaging guides 95 and 96 are displayed by the displayer 12. Specifically, when the model number of the terminal block 90 is selected by the user, the imaging guide 95 of the terminal block 90 and the imaging guide 96 of the crimping terminals 91 that match the model number of the selected terminal block 90 are read by the controller 15 from the memory part 13 and displayed in the displayer 12 by the controller 15 (
In step S103, the imager 11 images the inspection object. Specifically, the user aligns the terminal block 90 and the crimping terminals 91 with the imaging guides 95 and 96 displayed in the displayer 12 of the inspection terminal device 10. When the imaging button 99 is pressed in a state in which the terminal block 90 and the crimping terminals 91 are aligned with the imaging guides 95 and 96, the imager 11 performs the imaging; and the inspection image is obtained.
In step S104, the controller 15 evaluates whether or not the inspection image that is imaged in step S103 will be appropriate when the inspection device 20 performs the inspection. For example, when the crimping terminals 91 are not aligned with the imaging guide 96 in the inspection image, etc., “image NG” is displayed in the imaging state display field 97; and the user is prompted to reimage. Step S104 is repeated until an inspection image that is suited to the inspection is imaged. When the inspection image is “image OK”, the flow proceeds to the next step S105 (
In step S105, the inspection image is output from the outputter 14 to the inspection device 20 (broken line Im of
In step S201, the inspection device 20 acquires the inspection image from the inspection terminal device 10.
In step S202, the feature extractor 22 inputs the inspection image acquired in step S201 to the trained model and extracts, as the feature of the inspection image, the contour line of the crimping terminal and the boundary line at the central portion of the connection between the crimping terminal and the electrical wire that are output from the trained model.
In step S203, the evaluator 23 evaluates the appropriateness of the connection state of the crimping terminal by using the feature extracted by the feature extractor 22 in step S202.
In step S204, the evaluator 23 outputs, to the inspection terminal device 10 via the outputter 24, the evaluation result of the evaluation described above as display information for displaying the evaluation result in the displayer 12 of the inspection terminal device 10 (broken line Ri of
The processing transitions to the inspection terminal device 10 when the display information is output as the evaluation result from the inspection device 20 to the inspection terminal device 10.
In step S106, the inspection terminal device 10 accepts the display information of the evaluation result from the inspection device 20. In the inspection terminal device 10, based on the display information, the displayer 12 displays the inspection image having undergone the appropriateness evaluation and the evaluation result that is displayed to correspond to the crimping terminals of the inspection image (
Thus, according to the inspection system according to the embodiment, the inspection image is acquired by the inspection terminal device by imaging the crimping terminals that are the inspection object; and the inspection device performs the appropriateness evaluation of the crimping terminals based on the features of the inspection image. The appropriateness evaluation of the inspection object can be automatically performed thereby.
There are cases where it is difficult to acquire a stable inspection image due to the mounting location and/or the imaging environment of the inspection object; and there are cases where the position and/or the orientation of the inspection object in the image, the brightness of the image, etc., are uneven. According to the embodiment, the extraction of the feature of the inspection object is performed using a trained model. Thereby, the feature can be extracted with high accuracy. A robust appropriateness evaluation can be performed thereby.
An inspection system in which the inspection terminal device 10 is connected to the inspection device 20 is described in the first embodiment described above. In the second embodiment, an example is described in which the imaging of the inspection object, the appropriateness evaluation, and the output (the display) of the evaluation result are performed by the inspection terminal device 10.
When the inspection terminal device 10 performs the appropriateness evaluation processing, for example, a trained model is prestored in the memory part 13. The controller 15 can operate as the feature extractor 22 and the evaluator 23 and can perform the extraction processing of the feature of the image and the appropriateness evaluation processing.
In step S301, the inspection object is selected in the inspection terminal device 10. Specifically, the displayer 12 displays the terminal block selection field 92; and the user selects the model number of the terminal block 90 to be imaged (
In step S302, the displayer 12 displays the imaging guides 95 and 96. Specifically, the displayer 12 displays the imaging guide 95 of the terminal block 90 and the imaging guide 96 of the crimping terminals 91 corresponding to the model number of the selected terminal block 90 when the model number of the terminal block 90 is selected (
In step S303, the inspection object is imaged and the inspection image is acquired. Specifically, the user aligns the terminal block 90 and the crimping terminals 91 with the imaging guides 95 and 96 displayed in the displayer 12 of the inspection terminal device 10. When the imaging button 99 is pressed in a state in which the terminal block 90 and the crimping terminals 91 are aligned with the imaging guides 95 and 96, the imager 11 is imaged, and the inspection image is obtained.
In step S304, the controller 15 evaluates whether or not the inspection image that is imaged in step S303 will be appropriate when the inspection device 20 performs the inspection. Step S304 is repeated until an inspection image that is suited to the inspection is imaged. When the inspection image is “image OK”, the flow proceeds to the next step S305 (
In step S305, in the controller 15, the inspection image that is imaged in step S303 is input to the trained model; and the contour line of the crimping terminal and the boundary line at the central portion of the connection between the crimping terminal and the electrical wire that are output from the trained model are extracted as the features of the inspection image.
In step S306, the appropriateness of the connection state of the crimping terminal is evaluated using the features extracted by the controller 15 in step S305.
In step S307, the controller 15 causes the displayer 12 to display the evaluation result. At this time, the displayer 12 displays the evaluation result with the inspection image so that the evaluation result corresponds to the crimping terminals of the inspection image (
Thus, according to the inspection terminal device according to the embodiment, the inspection image is acquired by imaging the crimping terminal that is the inspection object; and the appropriateness evaluation of the crimping terminal is performed based on the feature of the inspection image. The appropriateness evaluation of the inspection object can be automatically performed thereby. All of the processes from the imaging of the inspection image to the display of the evaluation result are performed by the inspection terminal device; therefore, it is unnecessary to consider the connection between the inspection terminal device and the inspection device, etc.; and the convenience when inspecting is improved.
An example is described in the first and second embodiments described above in which a crimping terminal is the inspection object. An example is described in the modification in which the temperature sensor is the inspection object; and the insertion state of the temperature sensor into a socket or the connection state of the temperature sensor and the socket is inspected.
In the two examples shown in
Based on such feature extraction images, the evaluator 23 evaluates the connection state between the temperature sensor and the socket.
As shown in
Then, an image in which only the temperature sensor 81 portion is extracted is generated by binarizing the image (
According to a modification 2, similarly to the modification 1 described above, the insertion state of the temperature sensor into the socket or the connection state of the temperature sensor and the socket is inspected. According to the modification, the processing of the evaluator 23 that is performed after the feature extractor 22 generates the feature extraction image in which the temperature sensor 81 and the socket 82 are extracted from the inspection image is different from that of the modification 1.
As shown in
Then, the circumscribing rectangle of the temperature sensor 81 portion is calculated from the contour line of the image (
According to a modification 3, similarly to the modifications 1 and 2 described above, the insertion state of the temperature sensor into the socket or the connection state of the temperature sensor and the socket is inspected. According to the modification, the processing of the evaluator 23 that is performed after the feature extractor 22 generates the feature extraction image in which the temperature sensor 81 and the socket 82 are extracted from the inspection image is different from those of the modifications 1 and 2.
As shown in
Then, an image in which only the temperature sensor 81 portion is extracted is generated by binarizing the image (
When the length in the x-axis direction of the temperature sensor 81 is greater than the threshold, the evaluator 23 evaluates the insertion state of the temperature sensor 81 into the socket 82 or the connection state of the temperature sensor and the socket to be inappropriate. When the length in the x-axis direction of the temperature sensor 81 is not more than the threshold, the evaluator 23 evaluates the insertion state of the temperature sensor 81 into the socket 82 to be appropriate.
The evaluation is not limited to the length in the x-axis direction at the y-axis direction center; the circumscribing rectangle of the temperature sensor 81 may be calculated; the length along the x-axis direction of the circumscribing rectangle at each row may be calculated; and the insertion state of the temperature sensor 81 into the socket 82 or the connection state of the temperature sensor and the socket may be evaluated by comparing the maximum length and a threshold.
A general-purpose or dedicated computer is applicable as the inspection device described above. As shown in
The CPU 111 executes various processing in collaboration with various programs prestored in the ROM 114 or the memory part 116 and comprehensively controls the operations of the inspection device 20. The function as the image acquisition part 21, the feature extractor 22, and the evaluator 23 of the inspection device described above is realized thereby. In the processing, the CPU 111 uses a prescribed region of the RAM 115 as a work region. The CPU 111 realizes the inputter 112, the outputter 113, the communicator 117, etc., in collaboration with programs prestored in the ROM 114 or the memory part 116.
The inputter 112 includes, for example, a keyboard, a mouse, or a touch panel. The inputter 112 accepts information input from the user as instruction signals and outputs the instruction signals to the CPU 111. The outputter 113 is, for example, a monitor. The outputter 113 visibly outputs various information based on signals output from the CPU 111.
The ROM 114 non-rewritably stores programs used to control the inspection device 20, various setting information, etc. The RAM 115 is a volatile storage medium such as SDRAM (Synchronous Dynamic Random Access Memory), etc. The RAM 115 functions as a work region of the CPU 111. Specifically, the RAM 115 functions as the memory part 25 described above. That is, the RAM 115 functions as a buffer temporarily storing inspection images that are used by the inspection device 20 as the inspection object, extracted features, etc.
The memory part 116 is a rewritable recording device such as a semiconductor storage medium such as flash memory or the like, a magnetically or optically recordable storage medium, etc. The memory part 116 stores programs used to control the inspection device 20, various setting information, trained models, etc. For example, the communicator 117 is used to transmit and receive information by communicating with external devices such as the inspection terminal device 10, etc.
According to the embodiments described above, the appropriateness evaluation of an inspection object can be automatically performed with high accuracy.
Hereinabove, embodiments of the invention are described with reference to specific examples. However, the invention is not limited to these specific examples. For example, one skilled in the art may similarly practice the invention by appropriately selecting specific configurations of components included in the inspection terminal device, the inspection device, and the inspection system from known art; such practice is within the scope of the invention to the extent that similar effects can be obtained.
Combinations of any two or more components of the specific examples within the extent of technical feasibility also is within the scope of the invention to the extent that the spirit of the invention is included.
Also, all inspection terminal devices, the inspection devices, and the inspection systems practicable by an appropriate design modification by one skilled in the art based on the inspection terminal devices, the inspection devices, and the inspection systems described above as embodiments of the invention also are within the scope of the invention to the extent that the spirit of the invention is included.
Furthermore, various modifications and alterations within the spirit of the invention will be readily apparent to those skilled in the art; and all such modifications and alterations also should be seen as being within the scope of the invention.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2020-038484 | Mar 2020 | JP | national |