The present invention relates to techniques for determining a change in the state of a defect.
There are methods for detecting defects such as cracks from images imaged of an inspection target such as a wall surface of a structure and for determining a change in state, such as progression or retraction, of defects from images imaged in different times. The technique described in Japanese Patent Laid-Open No. 2019-211277 compares first defect data generated from a first image and second defect data generated from a second image, the images being imaged in different times, and determines a change in the state of the length, width, or the like of a defect.
However, in Japanese Patent Laid-Open No. 2019-211277, a change in the state, such as the length, width, or the like of the defect, can be confirmed. However, it is not as simple as the shape of a defect simply progressing from its past shape, and in some cases the shape or position of a past defect may change or the like. Thus, defect data that can accurately reproduce portions that have changed from the past defect and portions that have not changed may be unable to be generated.
Also, in Japanese Patent Laid-Open No. 2019-211277, display cannot be switched between a display of a change in the state of a defect when the first defect data is used as reference data and a display of a change in the state of a defect when the second defect data is used as reference data. Thus, the change in the state of the defect cannot be multilaterally comprehended.
The present invention has been made in consideration of the aforementioned problems, and realizes a technique that can generate defect data enabling a change in the state of a defect to be accurately reproduced.
The present invention also realizes a technique that enables a change in the state of a defect to be multilaterally comprehended.
In order to solve the aforementioned problems, the present invention provides an information processing apparatus comprising: an acquisition unit configured to acquire first defect data and second defect data generated on a basis of images imaged of an identical target; a calculation unit configured to obtain, on a basis of the first defect data and the second defect data, a common portion that is common between the first defect data and the second defect data and a different portion that exists in either the first defect data or the second defect data and calculate position data corresponding a boundary between the common portion and the different portion; and a generation unit configured to generate state change data indicating a change in a defect included in the common portion and the different portion using the position data.
In order to solve the aforementioned problems, the present invention provides an image processing apparatus comprising: an acquisitions unit configured to acquire first defect data and second defect data generated on a basis of images imaged of an identical target; a calculation unit configured to use either the first defect data or the second defect data as reference data and use the other as comparison data and obtain a common portion that is common between the first defect data and the second defect data and a different portion that exists in either the first defect data or the second defect data; and a display unit configured to, in a case where the first defect data is the reference data, display defect data of the common portion and defect data of the different portion of the first defect data, and in a case where the second defect data is the reference data, display defect data of the common portion and defect data of the different portion of the second defect data.
In order to solve the aforementioned problems, the present invention provides an information processing system including an input device and an information processing apparatus, wherein the input device comprises an input unit configured to input first defect data and second defect data generated on a basis of images imaged of an identical target, and wherein the information processing apparatus comprises an acquisition unit configured to acquire the first defect data and the second defect data from the input device; a calculation unit configured to obtain, on a basis of the first defect data and second defect data, a common portion that is common between the first defect data and the second defect data and a different portion that exists in either the first defect data or the second defect data and calculate position data corresponding a boundary between the common portion and the different portion; and a generation unit configured to generate state change data indicating a change in a defect included in the common portion and the different portion using the position data.
In order to solve the aforementioned problems, the present invention provides an image processing method of detecting a change in a state of a defect, comprising: acquiring first defect data and second defect data generated on a basis of images imaged of an identical target; on a basis of the first defect data and the second defect data, obtaining a common portion that is common between the first defect data and the second defect data and a different portion that exists in either the first defect data or the second defect data and calculating position data corresponding a boundary between the common portion and the different portion; and generating state change data indicating a change in a defect included in the common portion and the different portion using the position data.
In order to solve the aforementioned problems, the present invention provides an image processing method of detecting a change in a state of a defect, comprising: acquiring first defect data and second defect data generated on a basis of images imaged of an identical target; using either the first defect data or the second defect data as reference data and using the other as comparison data and obtaining a common portion that is common between the first defect data and the second defect data and a different portion that exists in either the first defect data or the second defect data; in a case where the first defect data is the reference data, displaying defect data of the common portion and defect data of the different portion of the first defect data; and in a case where the second defect data is the reference data, displaying defect data of the common portion and defect data of the different portion of the second defect data.
In order to solve the aforementioned problems, the present invention provides a non-transitory computer-readable storage medium storing a program for causing a computer to execute an image processing method of detecting a change in a state of a defect, comprising: acquiring first defect data and second defect data generated on a basis of images imaged of an identical target; on a basis of the first defect data and the second defect data, obtaining a common portion that is common between the first defect data and the second defect data and a different portion that exists in either the first defect data or the second defect data and calculating position data corresponding a boundary between the common portion and the different portion; and generating state change data indicating a change in a defect included in the common portion and the different portion using the position data.
In order to solve the aforementioned problems, the present invention provides a non-transitory computer-readable storage medium storing a program for causing a computer to execute an image processing method of detecting a change in a state of a defect, comprising: acquiring first defect data and second defect data generated on a basis of images imaged of an identical target; using either the first defect data or the second defect data as reference data and using the other as comparison data and obtaining a common portion that is common between the first defect data and the second defect data and a different portion that exists in either the first defect data or the second defect data; in a case where the first defect data is the reference data, displaying defect data of the common portion and defect data of the different portion of the first defect data; and in a case where the second defect data is the reference data, displaying defect data of the common portion and defect data of the different portion of the second defect data.
According to the present invention, defect data that enables a change in the state of a defect to be accurately reproduced can be generated.
According to the present invention, a change in the state of a defect can be multilaterally comprehended.
Further features of the present invention will become apparent from the following description of exemplary embodiments (with reference to the attached drawings).
Hereinafter, embodiments will be described in detail with reference to the attached drawings. Note, the following embodiments are not intended to limit the scope of the claimed invention. Multiple features are described in the embodiments, but limitation is not made to an invention that requires all such features, and multiple such features may be combined as appropriate. Furthermore, in the attached drawings, the same reference numerals are given to the same or similar configurations, and redundant description thereof is omitted.
In the first embodiment, an example is described in which a computer apparatus operates as an information processing apparatus and determines a change in state, such as progression, retraction, disappearance due to repair, and the like, for a defect detected from images imaged in different times, generates defect data that enables accurate reproduction of the change in the state of the defect, and displays the change in the state of the defect so as to be multilaterally comprehended.
Note that the term defect means a crack or the like in a concrete surface caused by damage, degradation, or the like to a concrete structure, such as a limited-access road, a bridge, a tunnel, a dam, and the like. The term crack means linear damage with a start point, an end point, length, and width that occurs in a wall surface of a structure or the like due to degradation over time, shock from earthquakes, and the like.
First, the hardware configuration of an information processing apparatus according to the present embodiment will be described with reference to
In the present embodiment, a computer apparatus operates as the information processing apparatus 100. Note that the processing of the information processing apparatus according to the present embodiment may be implemented by a single computer apparatus or may be implemented by dividing the functions amongst a plurality of computer apparatuses as necessary. The plurality of computer apparatuses are communicatively connected each other.
The information processing apparatus 100 includes a control unit 101, a non-volatile memory 102, a working memory 103, a storage device 104, an input device 105, an output device 106, a network interface 107, and a system bus 108.
The control unit 101 includes a calculation processing processor, such as a CPU, MPU, or the like, for controlling the entire information processing apparatus 100. The non-volatile memory 102 is a ROM that stores programs and parameters executed by the processor of the control unit 101. Herein, the term program refers to a program for executing the state change determination processing described below. The working memory 103 is a RAM that temporarily stores programs and data supplied from an external apparatus or the like. The storage device 104 is an internal device, such as a hard disk, memory card, or the like built into the information processing apparatus 100 or an external device, such as a hard disk, memory card, or the like, that is detachably connected to the information processing apparatus 100. The storage device 104 includes a memory card, hard disk, or the like configured from a semiconductor memory, a magnetic disk, or the like. Also, the storage device 104 includes a storage medium configured from a disk drive for reading and writing data to/from an optical disk, such as a DVD, Blu-ray Disc (registered trademark), and the like.
The input device 105 is an operation member, such as a mouse, keyboard, touch panel, or the like, for accepting user operations. The input device 105 outputs operation instruction to the control unit 101. The output device 106 is a display apparatus, such as a display, monitor, or the like, configured from an LCD, an organic EL, or the like. The output device 106 displays data possessed by the information processing apparatus 100 and data supplied from the external device. The network interface 107 communicatively connects to a network, such as the Internet, a Local Area Network (LAN), and the like. The system bus 108 includes an address bus, a data bus, and a control bus for connecting components to 107 of the information processing apparatus 100 so as to be capable of transferring and receiving data.
An operating system (OS), which is fundamental software executed by the control unit 101, and applications that cooperate with the OS to implement practical functions are stored in the non-volatile memory 102. Also, in the present embodiment, the non-volatile memory 102 stores an application for the information processing apparatus 100 to implement a state change determination processing described below.
The processing of the information processing apparatus 100 according to the present embodiment is implemented by reading software provided by an application. Note that herein, the application includes software for using the basic function of the OS installed in the information processing apparatus 100. Also, the OS of the information processing apparatus 100 may include software for implementing the processing according to the present embodiment.
Note that the input device 105 and the information processing apparatus may be provided separately, and an information processing system in which the input device 105 and the information processing apparatus are connected each other by wired or wireless may be constructed. In addition, the output device and the information processing equipment 100 may be provided separately, and an information processing system in which the output device 106 and the information processing apparatus 100 are connected each other by wired or wireless may be constructed. In this case, the input device 105 and the output device 106 may be tablet terminals. The input device 105 and the output device may also be the same tablet terminal.
Next, the data structure of a defect data table according to the present embodiment will be described with reference to
In the example of the present embodiment described below, defects are represented as vector data and defects are cracks.
The first defect data table 201 and the second defect data table 251 include, as information relating to cracks (defect data), defect ID 202, 252, maximum width 203, 253, number of vertices 204, 254, and vertex coordinates list 205, 255. The defect ID 202, 252 is identification information uniquely allocated to each crack. The maximum width 203, 253 is the maximum value of the width (thickness) of the crack. The number of vertices 204, 254 and the vertex coordinates list 205, 255 correspond to information relating to the number and the coordinates of vertices that correspond to the start points and the end points of line segments when the shape of a crack is represented as a polyline made of one or a plurality of line segments. Note that the defect data tables 201, 251 includes information acquired from images imaged of the inspection target, and each piece of defect data may be input by the user tracing on an image on a tablet or the like, may be automatically generated by image analysis processing or the like, or may be input by a combination thereof. Also, image analysis processing may be executed using a learning model generated via artificial intelligence (AI) machine learning and/or deep learning.
On the GUI screen 400, a first data input button 401 is a button for selecting the first defect data registered in the first defect data table 201 of
A first defect data display region 411 is a region where the first defect data selected via the first data input button 401 is displayed. The first defect data display region 411 displays the display screen 300 of the first defect data illustrated in
A result display region 421 is a region displaying state change data, which is the state change determination processing result described below using
Next, the state change determination processing executed by the information processing apparatus 100 according to the present embodiment will be described with reference to
The processing of the
In the example of the present embodiment described below, the processing includes a past first defect data and a most recent second defect data generated in different times being input, common portions and different portions in the past first defect data and the most recent second defect data being calculated, and the calculated state change data being displayed.
In step S501, the control unit 101 reads out a past first defect data from the first defect data table 201 stored in the storage device 104 and reads out a most recent second defect data from the second defect data table 251.
In step S502, the control unit 101 generates first state change data which is data obtained by comparing the most recent second defect data used as comparison data with the past first defect data input in step S501 used as reference data. The first state change data includes information indicating common portions which are portions determined to exist in both the past first defect data and the most recent second defect data. Also, the first state change data includes information indicating different portions which are portions determined to exist in the past first defect data but not in the most recent second defect data. Furthermore, the first state change data includes information indicating the corresponding relationship between the common portions of the past first defect data and the common portions of the most recent second defect data.
In step S503, the control unit 101 generates second state change data which is data obtained by comparing the past first defect data used as comparison data with the most recent second defect data input in step S501 used as reference data. The second state change data includes information indicating common portions which are portions determined to exist in both the past first defect data and the most recent second defect data. Also, the second state change data includes information indicating different portions which are portions determined to exist in the most recent second defect data but not the past first defect data. Furthermore, the second state change data includes information indicating the corresponding relationship between the common portions of the past first defect data and the common portions of the most recent second defect data.
Information indicating common portions is information of defect portions in the reference data that also exist in the comparison data. Also, information indicating different portions is information of defect portions that exist in the reference data but not in the comparison data. For example, when the comparison data is the past first defect data and the reference data is the most recent second defect data, the information indicating different portions corresponds to newly formed cracks not detected in the past inspection. Also, when the comparison data is the most recent second defect data and the reference data is the past first defect data, the information corresponds to cracks that have disappeared due to repair or the like.
The state change data generation processing of steps S502 and S503 and the data structure will be described below.
In step S504, the control unit 101 sets the state change data generated in steps S502 and S503 as the reference data to be displayed.
In step S505, the control unit 101 displays, in the result display region 421 of
In step S506, the control unit 101 determines whether the user operation accepted by the input device 105 is a result output instruction via the result output button 441 of
In step S507, the control unit 101 outputs the state change data generated in steps S502 and S503 as a file and ends the processing. As long as the output file format can describe the defect data structure according to the present embodiment, a known format, such as CSV, JSON, XML, and the like, an original format, or a combination thereof may be used. Also, the state change data includes a total of types of data described below using
In step S508, the control unit 101 switches the defect data to the reference data specified in step S506 and returns the processing to step S505. When the reference data is switched to the past first defect data, in the example of
Note that in the processing of
In step S701, the control unit 101 executes expanding processing to set an expanded region for the defect data for each defect ID in the defect data table correspond to comparison data from among the past first defect data and the most recent second defect data input in step S501.
In step S702, the control unit 101 uses the defect data of the reference data and the expanded region generated from the defect data of the comparison data generated in step S701 to generate defect data of common portions and different portions in the reference data and the comparison data. The defect data generation processing of the common portions and the different portions will be described below using
In step S703, the control unit 101 generates corresponding relationship data indicating the corresponding relation between the expanded region generated in step S701 and the defect data of the common portions generated in step S702. The corresponding relationship data generation processing will be described below using
Next, the defect data generation processing of the common portions and the different portions of step S702 of
In step S901, the control unit 101 initializes the defect data table of the common portions and the different portions that is output as the processing result.
The defect data table 1015 of the different portions of
Next, the processing of
In step S902, the processing of steps S903 to S910 are repeated for each piece of defect data corresponding to reference data from the defect data of
In step S903, the processing of steps S904 to S909 is repeated for each line segment of the polyline of the defect data that is the current processing target for the reference data, or in other words, the processing is repeated for each of the line segments 1101 to 1106 of the polyline 1100 illustrated in
In step S904, the control unit 101 searches, from the expanded region data table 801 of
In step S905, the control unit 101 adds the line segment of the defect data that is the current processing target to the pointer position of the defect data table of different portions of
The next line segment 1102 overlaps the expanded region 1111. Thus, it is determined that the defect data of the comparison data corresponding the expanded region overlapping the line segment of the defect data that is the current processing target in step S904 is detected, and the processing proceeds to step S906.
In step S906, the control unit 101 determines whether or not the line segment of the defect data that is the current processing target is enclosed by the expanded region. When the control unit 101 determines that a portion of the line segment of the defect data that is the current processing target is enclosed by the expanded region, the control unit 101 proceeds the processing to step S907. When the control unit 101 determines that all of the line segment is enclosed by the expanded region, the control unit 101 proceeds the processing to step S908. To determine whether or not the line segment of the defect data is enclosed by the expanded region and to calculate the intersection point described below, a technique widely known in the computer graphics field or the like may be used. Since a portion of the line segment 1102 is enclosed by the expanded region, the processing proceeds to step S907.
In step S907, the control unit 101 calculates the position data of midpoint coordinates not in the vertex coordinates list of the defect data table that is the comparison target by dividing the line segment enclosed by the expanded region and the line segment outside of the expanded region at the intersection point between the contour line of the expanded region and the line segment. Calculating the midpoint coordinates includes calculating a midpoint 1131, which is a diamond-shaped intersection point of a contour line 1111 with the line segment 1102, as illustrated in
In step S908, the control unit 101 divides the data of the line segments divided in step S907 into a data of the line segment enclosed by the expanded region and data of the line segment outside of the expanded region. Then, the data of the line segment enclosed in the expanded region is added to the defect data table 1001 of the common portions of
Since the next line segment 1103 overlaps the expanded region 1111, with the determination of step S904, the processing proceeds to step S906, and since the line segment 1103 is completely enclosed in the expanded region 1111, the processing proceeds to step S909.
In step S909, the control unit 101 adds the data of the line segment 1103 to the defect data table 1001 of the common portions of
Since the next line segment 1104 partly overlaps the expanded region 1111, the processing proceeds to step S907, and the line segment 1104 is divided in a line segment 1123 and a line segment 1124 at a midpoint 1132, which is an intersection point with the expanded region. In step S908, the data of the line segment 1123 with the midpoint 1132 as the end point is added to the defect data table 1001 of the common portions of
The processing to add the data of the line segment 1124 to the defect data table 1051 of the different portions of
At the pointer position of the defect data table 1051 of the different portions of
Similar processing is executed for the line segments 1105 and 1106. The line segment 1106 is divided into a line segment 1125 with a midpoint 1133 as the end point, a line segment 1126 with the midpoint 1133 as the start point and a midpoint 1134 as the end point, and a line segment 1127 with the midpoint 1134 as the start point. The processing to add each divided line segment to the defect data table 1001 of the common portions of
The processing to divide line segment in step S907 will now be further described using
Next, the corresponding relationship data generation processing of step S703 of
In step S1201, the control unit 101 initializes the corresponding relationship data table that is output as the processing result.
In step S1202, the processing of steps S1203 to S1209 is repeated for each row of the defect data table 1001 of the common portions of
In step S1203, the processing of steps S1204 to S1208 is repeated for each line segment of the polyline of the defect data of the common portions that is the current processing target.
In step S1204, the control unit 101 acquires the defect data of the line segment corresponding to a candidate for the comparison data corresponding to the line segment that is the current processing target. Herein, the defect ID of the comparison data corresponding to the source of the expanded region overlapped with the line segment is searched for from the expanded region data table 801 of
In step S1205, the control unit 101 determines whether or not there is more than one piece of defect data of a line segment corresponding to a candidate acquired in step S1204. When the control unit 101 determines that there is one candidate acquired in step S1204, the control unit 101 proceeds the processing to step S1206. When the control unit 101 determines that there is more than one candidate acquired in step S1204, the control unit 101 proceeds the processing to step S1207.
In step S1206, the control unit 101 determine the defect data acquired in step S1204 to be a candidate for comparison data corresponding the line segment that is the current processing target.
In step S1207, the control unit 101 determines, from the defect data acquired in step S1207, the defect data with the longest overlapping length between the expanded region and the line segment as a candidate for comparison data corresponding the line segment that is the current processing target. Note that the user may be able to change the candidate determined in step S1207.
Next, the processing to determine the defect data of the line segment corresponding to a candidate for comparison data corresponding the line segment that is the current processing target in steps S1205 to S1207 will be described with reference to
In
In step S1208, the control unit 101 registers the defect ID of the comparison data determined to be a candidate in step S1206 or step S1207 and the information relating to an increase or decrease in the maximum width of the crack as a set in the corresponding relationship data table. The defect ID of the comparison data and the information relating to an increase or decrease in the maximum width of the crack are registered in the corresponding information 1303 of the defect ID at the pointer position in the corresponding relationship data table 1301 of
By repeating the processing of steps S1204 to S1209, the candidate for the defect data of the comparison data and the information relating to an increase or decrease in the maximum width of the crack are registered for each line segment composing the defect data of the defect ID of the common portion that is the current processing target.
By referencing the corresponding relationship data table 1301 of
Also, as state change data using the past first defect data as reference data in step S502 of
Next, the relationship between the six types of tables output as the state change determination processing result when a first defect data table 1501 (
Using the second defect data table 1502 as the reference data and the first defect data table 1501 as the comparison data, a defect data table 1511 (
Furthermore, a corresponding relationship data table 1531 (
Lastly, a display example of the state change data will be described with reference to
When the second defect data table 1502 is used as the reference data, the defect data table 1511 of the common portions of
First, an example will be described where two cracks with different branching directions are displayed using the past first defect data of
A display region 1600 of
A display region 1610 of
A display region 1620 of
Note that the defect data 1622 to 1624 are each displayed using a different color. Also, the display color of the defect data 1622 to 1624 can be changed on the basis of the information relating to an increase or decrease in the maximum width of the crack registered as the corresponding information 1303 in the corresponding relationship data table 1301 of
For example, when the increase or decrease in the maximum width of the crack in the corresponding information 1303 of the defect data 1624 is registered as Wide, the line width is made wider or the color is made darker than the defect data 1623 registered as Same, thereby making it possible to highlight the portion to which the user's attention is drawn. Also, when the increase or decrease in the maximum width of the crack in the corresponding information 1303 of the defect data 1622 is registered as Narrow, the color is made lighter than the defect data registered as Same, for example, thereby making it possible to be identifiably displayed. Note that how the defect data is displayed is not limited to color and thickness representations, and defect data may be represented using an animation of flashing or width thickness and the like.
Also, defect data 1625 is registered in the defect data table 1512 of the different portions corresponds to a portion where the maximum width of the crack of the defect data 1624 has progressed compared to the past first defect data. Note that the common portion defect data 1624 and the different portion defect data 1625 are divided at a midpoint 1627 that does not exist in the defect data (second defect data table 1502) of
Also, defect data 1621 indicates a portion that has disappear due to repair or the like during the time up until the most recent inspection. The defect data is registered in the defect data table 1522 of the different portions generated using the first defect data table 1501 as the reference data and the second defect data table 1502 as the comparison data. The different portion defect data 1621 is composed of a midpoint 1628 that does not exist in the defect data 1611 of
Next, an example of a display of the processing result when the reference data and the comparison data are switched via the reference select button 431 will be described.
A display region 1630 of
Defect data 1632 and 1633 are registered with the same defect ID in the defect data table 1521 of the common portions generated using the first defect data table 1501 as the reference. Also, defect data 1634 is registered with a different defect ID. In a similar manner to the display region 1620 of
Also, defect data 1631 corresponds to different portion defect data that is the same as the defect data 1621 of
Defect data 1635 is registered in the defect data table 1512 of the different portions. The defect data 1635 is different portion defect data corresponding to different portion defect data that is the same as the defect data 1625 of
Also, as illustrated in
Note that since a line segment 1662 corresponds to a line segment that does not exist in the most recent second defect data and the past first defect data, the user's attention may be drawn to it when displayed by it being represented using color or a line. Also, when the common portion defect data 1633 and the different portion defect data 1635 are treated as the same crack, using the first defect data table 1501 as the reference data, the defect ID of the different portions registered in the defect data table 1522 of the different portions, the reference defect ID and the defect ID of the common portions of the defect data table 1521 of the common portions are used. Furthermore, the defect ID of the common portions registered in the corresponding relationship data table 1532 and the corresponding information may be used and specified.
Also in some cases, the shape of the crack may differ between the past first defect data and the most recent second defect data regarding the defect data of the common portions. In this case also, by switching the reference data in step S508 of
Also, in the corresponding relationship data table 1301 of
According to the present embodiment, a change in a defect, such as the progress, retraction, repair, and the like of a crack, can be intuitively comprehended by a user. Also, by switching between the reference data and the comparison data when comparing the past first defect data and the most recent second defect data, a change in a crack can be confirmed using either the past first defect data or the most recent second defect data as the reference data and the other as the comparison data. This allows the user to multilaterally comprehend a change in the state of a defect.
Also, by generating defect data of the common portions and the defect data of the different portions, the amount of change in the cracks can be more easily calculated. Also, since a corresponding relationship data table of defect data of a plurality of common portions at different times can be generated and the cracks can be managed, even when the cracks branch in different directions, for the branched crack, the common portion of the past first defect data and the common portion of the most recent second defect data can be associated together. Furthermore, because the corresponding relationship between the common portion of the past first defect data and the common portion of the most recent second defect data can be obtained, an increase or decrease in the maximum width of the crack can also be calculated.
In the example of the present embodiment described above, determination is performed to determine whether or not a line segment and an expanded region overlap and processing is executed to calculate the intersection point with a contour as vector data. However, no such limitation is intended. For example, objects corresponding to a filled in line segment and expanded region are rasterized into a 2-bit bitmap using a graphics library, and overlap determination and intersection point calculation may be performed via bit operation of both raster images. The information processing apparatus 100 of
In the first embodiment, of the line segments of the reference data, all of the portions enclosed by the expanded region of the defect data that is the comparison target are determined to be common portions. However, in the present embodiment, these portions are further investigated and narrowed down, and a final determination of whether they are common portions or different portions is performed.
The hardware configuration of the information processing apparatus 100 of the second embodiment is similar to that illustrated in
In step S1801, the control unit 101 initializes the hold list and the different portion list to be used in the subsequent processing and repeatedly executes the processing of steps S1802 to S1807 for each row (comparison target defect data) of the data table which is the comparison data in step S701 from among the defect data tables of
In step S1802, from the reference defect data of the common portions generated in step S702, the control unit 101 acquires those that overlap a region obtained by executed expanding processing on the comparison target defect data being processed.
In step S1803, the control unit 101 calculates a score indicating the degree of match with the defect data that is the comparison target being processed for each line segment of the reference defect data of the common portions acquired in step S1802. Higher scores indicate that the line segment of the comparison target defect data being processed with respect to the line segment of the reference defect data is closer in terms of distance and is closer to being parallel. For example, the distance between line segments is the length of a perpendicular line from the midpoint of the line segment of the reference defect data down to the line segment of the comparison target defect data.
Next, an example of score calculation using the distance will be described using
The following Equation 1 is an example of a score calculation formula for one line segment of the reference defect data.
In Equation 1, W is the width of the expanded region of the comparison target defect data, d is the length of the perpendicular line, θ is the angle (from 0 to 90°) formed by the line segment of the reference defect data and the line segment of the comparison target defect data. For example, the angles formed by the line segment 1907 and the line segment 1902 and the line segment 1906 and the line segment 1903 are angles 1910 and 1912, respectively. k is a coefficient for determining the relative weighting between the distance and the angle, and in the present embodiment, k=1.
Note that the defect data detected from the imaged image may include contiguous short line segments forming a saw-like pattern. In such a case, the value of θ in Equation 1 is unstable, and the score may be far from a comprehensive degree of match. To prevent this, for each line segment of the reference defect data, following the order of the line segments, the score may be averaged out via a moving average, and the moving average value may be used for θ to calculate to score.
In step S1804, the control unit 101 compares scores calculated in step S1803 and determines line segments of the reference defect data with score values that are outliers to be different portions and adds them to a different portion list. The outlier criteria is, for example, determined using a known statistical method such as taking a value obtained by subtracting the standard deviation from the score average value as a threshold and determining any value less than that as an outlier. In this manner, the line segment at a section that has branched away from the comparison target defect data is determined to be a different portion. Note that a value greater than the outlier criteria may be set as a second threshold, and a line segment with a score than is equal to or greater than the outlier threshold but less than the second threshold may be determined to not certainly be but have the possibility of being a different portion and be added to the hold list generated in step S1803. The second threshold is the average value of the scores, for example, but is not limited thereto, and it is sufficient that the value be greater than the outlier threshold.
In the case of
In step S1805, in the case where a line segment that branches at the base like the line segments 1907 and 1927 illustrated in
In
In step S1805, first, the line segment 2004 with the highest score is determined to be a common portion, and then, from the remaining line segments, those that are different portions are identified using the defect data characteristics. For example, since one crack includes contiguous line segments, the line segments of the same crack does not run parallel near one another. Thus, the line segments that run parallel with a line segment determined to be a common portion can be determined to be a crack different from the common portion and thus a different portion. Whether a line segment is parallel is determined, for example, by whether or not the area of the line segment of the reference defect data overlaps the coordinate axis in the long side direction of a circumscribed rectangle of the line segment of the comparison target defect data. In the case of the line segment 2000 of the comparison target defect data of
In step S1806, the control unit 101 performs the final determination using the adjacent line segment determination result for the line segments of the comparison target defect data entered onto the hold list in steps S1803 and S1804. The determination processing is executed on continuous hold portions line segments (line segments in the hold list) in the comparison target defect data, and only when both adjacent line segments are determined to be different portions, the hold portion line segments therebetween are collectively determined to be different portions.
The processing described above is repeatedly executed until there are no new line segments determined to be a different portion.
In step S1807, the control unit 101 reflects the inspection results of steps S1802 to S1806 in the defect data tables of the common portions and the different portions of
As described above, according to the present embodiment, reference defect data that overlaps an expanded region of comparison target defect data are inspected and narrowed down common portions and different portions on the basis of a degree of match with the comparison target defect data to obtain differences in terms of length and number of line segments more accurately. Also, by calculating the degree of match from the distance to the comparison target data and the angle with the comparison target data, branches and intersection base portions of defect data can be determined to be different portions with more accuracy. Furthermore, by narrowing down the reference defect data per each line segment composing the defect data, differences in connections at branching sections, subdivision of same defects, and the like generated when generating the defect data from image can be buffered. Also, by narrowing down by removing degree of match outliers, defects of the reference data of sections far from the comparison target data can be determined to be different portions. Furthermore, by obtaining a moving average following the connection of line segments of the defect data when calculating the degree of match, localized line segment disorder can be buffered. Also, by performing inspection based on defect data characteristics, the accuracy of the different portion determination can be further improved.
Embodiment(s) of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as a ‘non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment(s) and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiment(s). The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application Nos. 2021-197278 and 2021-197279, filed Dec. 3, 2021 and 2022-158764, filed Sep. 30, 2022 which are hereby incorporated by reference herein in their entireties.
The disclosure herein includes the following information processing apparatus, information processing method, system, storage medium and program.
[Aspect 1] An information processing apparatus comprising: an acquisition unit configured to acquire first defect data and second defect data generated on a basis of images imaged of an identical target;
a calculation unit configured to obtain, on a basis of the first defect data and the second defect data, a common portion that is common between the first defect data and the second defect data and a different portion that exists in either the first defect data or the second defect data and calculate position data corresponding a boundary between the common portion and the different portion; and
a generation unit configured to generate state change data indicating a change in a defect included in the common portion and the different portion using the position data.
[Aspect 2] The information processing apparatus according to aspect 1, wherein
the calculation unit uses either the first defect data or the second defect data as reference data and uses the other as comparison data and sets an expanded region based on the comparison data, and
uses defect data of a portion of the reference data enclosed by the expanded region as the common portion and uses other defect data of the reference data as the different portion and sets coordinates of an intersection point between the reference data and the expanded region as the position data.
[Aspect 3] The information processing apparatus according to aspect 2, wherein
the defect data includes information of at least one line segment composing a defect; and
in a case where there are a plurality of line segments of the comparison data for a line segment of the reference data, the generation unit sets a line segment, from among line segments of the comparison data, with a longest length overlapping the expanded region as the line segment of the comparison data.
[Aspect 4] The information processing apparatus according to aspect 3, wherein
in a case where a plurality of expanded regions overlap, the expanded region is set to a region where all overlap.
[Aspect 5] The information processing apparatus according to any one of aspect 2 to 4, wherein
the defect data includes identification information of each defect, width of defect, number of vertices of line segment composing defect, and vertex coordinates; and
data of the expanded region includes identification information of each defect and coordinates of a contour of the expanded region.
[Aspect 6] The information processing apparatus according to any one of aspects 2 to 5, wherein
the generation unit generates as the state change data defect data of the common portion, defect data of the different portion, and corresponding relationship data indicating a corresponding relationship between the common portion of the reference data and the comparison data.
[Aspect 7] The information processing apparatus according to aspect 6, wherein
the acquisition unit reads out the first defect data from a first defect data table in which the first defect data is registered and reads out the second defect data from a second defect data table in which the second defect data is registered; and
the generation unit generates a defect data table of the common portion where defect data of the common portion is to be registered and a defect data table of the different portion where defect data of the different portion is to be registered,
registers the position data in a defect data table of the common portion and a defect data table of the different portion, and
generates a corresponding relationship data table where the corresponding relationship data is to be registered.
[Aspect 8] The information processing apparatus according to aspect 6 or 7, wherein
the corresponding relationship data includes information indicating width of defect data of the common portion.
[Aspect 9] The information processing apparatus according to any one of aspects 1 to 8, wherein
the calculation unit
obtains a common portion and a different portion using the first defect data as reference data and the second defect data as comparison data, and
obtains a common portion and a different portion using the second defect data as reference data and the first defect data as comparison data; and
the generation unit generates the state change data for each obtained result.
[Aspect 10] The information processing apparatus according to any one of aspects 2 to 8, wherein
the calculation unit includes
a second calculation unit configured to calculate a degree of match between reference data enclosed by the expanded region and the comparison data, and
a filter unit configured to further narrow down defect data as the common portion on a basis of the degree of match.
[Aspect 11] The information processing apparatus according to aspect 10, wherein
the second calculation unit calculates the degree of match from a distance to the comparison data and an angle with the comparison data.
[Aspect 12] The information processing apparatus according to aspect 10 or 11, wherein
the second calculation unit calculates the degree of match for each line segment composing the reference data.
[Aspect 13] The information processing apparatus according to aspect 12, wherein
the second calculation unit obtains a moving average following connections in the reference data of scores of the degree of match calculated for each line segment.
[Aspect 14] The information processing apparatus according to any one of aspects 10 to 13, wherein
the second calculation unit performs the narrowing down by removing outliers with less than a threshold for the degree of match.
[Aspect 15] The information processing apparatus according to any one of aspects 10 to 14, wherein
the filter unit narrows down on a basis of defect data characteristics.
[Aspect 16] An image processing apparatus comprising:
an acquisition unit configured to acquire first defect data and second defect data generated on a basis of images imaged of an identical target;
a calculation unit configured to use either the first defect data or the second defect data as reference data and use the other as comparison data and obtain a common portion that is common between the first defect data and the second defect data and a different portion that exists in either the first defect data or the second defect data; and
a display unit configured to, in a case where the first defect data is the reference data, display defect data of the common portion and defect data of the different portion of the first defect data, and
in a case where the second defect data is the reference data, display defect data of the common portion and defect data of the different portion of the second defect data.
[Aspect 17] The information processing apparatus according to aspect 16, further comprising:
a selection unit configured to select whether to display the first defect data or the second defect data as the reference data,
wherein the display unit, in a case where the first defect data is selected as the reference data, displays defect data of the common portion and defect data of the different portion of the first defect data and defect data of the different portion of the second defect data, and
in a case where the second defect data is selected as the reference data, displays defect data of the common portion and defect data of the different portion of the second defect data and defect data of the different portion of the first defect data.
[Aspect 18] The information processing apparatus according to aspect 16 or 17, wherein
the display unit identifiably displays defect data of the common portion and defect data of the different portion.
[Aspect 19] The information processing apparatus according to any one of aspects 16 to 18, wherein
the display unit identifiably displays a portion of defect data of the common portion with a changed defect width.
[Aspect 20] The information processing apparatus according to any one of aspects 16 to 19, wherein
in a case where defect data of the different portion of the comparison data with the reference data is discontinuous with the reference data, the display unit displays defect data of the different portion and the reference data connected as one piece of defect data.
[Aspect 21] The information processing apparatus according to any one of aspects 16 to 19, wherein
the display unit combines and displays common portions of the reference data and different portions of the comparison data.
[Aspect 22] The information processing apparatus according to any one of aspects 16 to 19, wherein
the display unit overlaps and displays common portions of the comparison data on common portions and different portions of the reference data.
[Aspect 23] The information processing apparatus according to any one of aspects 16 to 22, further comprising:
a generation unit configured to use either the first defect data or the second defect data as reference data and the other as comparison data, set an expanded region based on the comparison data, and generate state change data in which defect data of a portion of the reference data enclosed by the expanded region is used as the common portion and use other defect data of the reference data is used as the different portion.
[Aspect 24] The information processing apparatus according to aspect 23, wherein
the generation unit generates as the state change data defect data of the common portion, defect data of the different portion, and corresponding relationship data indicating a corresponding relationship between the common portion of the reference data and the comparison data.
[Aspect 25] The information processing apparatus according to any one of aspects 1 to 24, wherein
the first defect data is defect data generated from an image imaged of an inspection target in a first time; and
the second defect data is defect data generated from an image imaged of the inspection target in a second time after the first time.
[Aspect 26] The information processing apparatus according to any one of aspects 1 to 25, wherein
the defect data is data relating to a crack.
[Aspect 27] An information processing system including an input device and an information processing apparatus,
wherein the input device comprises an input unit configured to input first defect data and second defect data generated on a basis of images imaged of an identical target, and
wherein the information processing apparatus comprises
an acquisition unit configured to acquire the first defect data and the second defect data from the input device;
a calculation unit configured to obtain, on a basis of the first defect data and second defect data, a common portion that is common between the first defect data and the second defect data and a different portion that exists in either the first defect data or the second defect data and calculate position data corresponding a boundary between the common portion and the different portion; and
a generation unit configured to generate state change data indicating a change in a defect included in the common portion and the different portion using the position data.
[Aspect 28] An image processing method of detecting a change in a state of a defect, comprising the steps of:
acquiring first defect data and second defect data generated on a basis of images imaged of an identical target;
on a basis of the first defect data and the second defect data, obtaining a common portion that is common between the first defect data and the second defect data and a different portion that exists in either the first defect data or the second defect data and calculating position data corresponding a boundary between the common portion and the different portion; and
generating state change data indicating a change in a defect included in the common portion and the different portion using the position data.
[Aspect 29] An image processing method of detecting a change in a state of a defect, comprising the steps of:
acquiring first defect data and second defect data generated on a basis of images imaged of an identical target;
using either the first defect data or the second defect data as reference data and using the other as comparison data and obtaining a common portion that is common between the first defect data and the second defect data and a different portion that exists in either the first defect data or the second defect data;
in a case where the first defect data is the reference data, displaying defect data of the common portion and defect data of the different portion of the first defect data; and
in a case where the second defect data is the reference data, displaying defect data of the common portion and defect data of the different portion of the second defect data.
[Aspect 30] A computer-readable storage medium storing a program that causes a computer to execute the method according to aspect 28 or 29.
[Aspect 31] A program that causes a computer to execute the method according to aspect 28 or 29.
Number | Date | Country | Kind |
---|---|---|---|
2021-197278 | Dec 2021 | JP | national |
2021-197279 | Dec 2021 | JP | national |
2022-158764 | Sep 2022 | JP | national |