Information processing device and information processing method
By adjusting image range settings based on target attributes, the method enhances detection performance for targets with undefined sizes by optimizing the detection window sizes for specific characteristics.
Patent Information
- Application Number
- JP2024122547
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing methods for detecting detection targets in images with undefined sizes fail to account for the variation in size attributes of the targets, leading to inconsistent detection performance.
A technique for determining appropriate image range settings based on the attributes of the detection target, using a combination of setting values for detection window sizes tailored to the specific characteristics of the target.
Improves detection performance by accurately adjusting the image range input to the model, ensuring effective detection of targets regardless of their size variations.
Smart Images

Figure 2024149545000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a technique for detecting an object from an image. [Background technology]
[0002] When detecting a region of a detection target from a large image, generally, a large number of small regions of a predetermined size are cut out from the image, and each small region is input into a model for detection processing. In particular, when the size of the detection target is indefinite, the size of the small region input into the model is important because it affects the detection performance. For example, even if the detection target is reflected in a small region, if the reflected part is only a part of the detection target, the model may not be able to detect the detection target correctly. In response to this problem, Patent Document 1 discloses a method of cutting out a plurality of small regions of different sizes from an image and applying a model trained for each size of the small region to perform detection processing. With this method, even if the detection target is of indefinite size, there is a possibility that the detection target can be detected by one of the models. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 5834812 Summary of the Invention [Problem to be solved by the invention]
[0004] However, in the method disclosed in Patent Document 1, the small regions are determined to have a specified size. On the other hand, the appropriate size of the small regions varies depending on the attributes of the detection target. For example, when there is a large variation in the size of the detection target, it is good to set the size of the small regions widely, but when the variation is small, this is not necessary. Therefore, it is required to set an appropriate combination of sizes depending on the attributes of the detection target. The present invention provides a technology for appropriately determining the setting values of parameters that affect the image range to be input to a model. [Means for solving the problem]
[0005] One aspect of the present invention includes a determination means for acquiring attributes of a detection target to be detected from an image including a structure, and determining a setting value of a parameter related to an image range based on the attributes, and a detection means for detecting the detection target within an image range of the image based on the setting value, wherein the determination means determines an image range of a size indicated by the setting value according to the attributes. Effect of the Invention
[0006] According to the configuration of the present invention, it is possible to appropriately determine the setting values of parameters that affect the image range to be input to the model. [Brief description of the drawings]
[0007] [Figure 1] 1A is a diagram showing a detection process for detecting a detection target from an image of the detection target, and FIG. 1B is a diagram showing a process when a plurality of detection window sizes are used. [Diagram 2] FIG. 2 is a block diagram showing an example of the hardware configuration of an information processing device 200. [Diagram 3] FIG. 2 is a block diagram showing an example of the functional configuration of an information processing device 200. [Figure 4] 4 is a flowchart of processing from when the information processing device 200 reads an image of a detection target to when it acquires an integrated result. [Diagram 5] 5A is a diagram showing an example of the configuration of a window 510, and FIG. 5B is a diagram showing an example of the configuration of a table. [Figure 6] 11 is a diagram for explaining how the determining unit 350 determines "candidate combinations of setting values." [Figure 7] FIG. 7 shows an example of the configuration of a window 710. [Figure 8] FIG. 2 is a block diagram showing an example of the functional configuration of an information processing device 200. [Figure 9] FIG. 1A is a diagram showing a specific flow of a learning process, and FIG. 1B is a diagram showing a specific flow of a detection process. [Figure 10]10 is a flowchart of a process according to a second embodiment. [Figure 11] 10 is a flowchart showing details of the process in step S405. [Figure 12] FIG. 11 is a diagram showing another embodiment of a method for determining a combination of setting values. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Hereinafter, the embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.
[0009] [First embodiment] This embodiment relates to a technology for appropriately determining the setting values of parameters related to the range on the image to be input to a model when detecting a detection target from an image. The range on the image to be input to the model was described above as a small region, but will be referred to as the image range hereinafter. Also, this embodiment focuses on the size of the detection window as a parameter related to the image range to be input to the model, and determines the combination of setting values for this. The unit of the size of the detection window is pixel x pixel, but will be referred to as pixel hereinafter for simplicity.
[0010] In this embodiment, an example will be described in which the combination of parameter setting values is important, in which abnormal areas are detected from images of a concrete wall, which is an example of the wall surface of an infrastructure structure, for the purpose of inspecting the infrastructure structure, such as a bridge or dam.
[0011] First, the inspection of a concrete wall surface will be described. In the inspection of a concrete wall surface, an inspector records information on abnormal areas on the concrete wall surface, such as efflorescence, exposed rebar, or cracks, which will be described later. Hereinafter, such abnormal areas will be referred to as abnormalities. In the inspection of a concrete wall surface using images, an inspector takes a picture of the concrete wall surface and creates an inspection result by recording the position and range of abnormalities from the taken image. The created inspection result is managed by corresponding it to the drawing of the concrete wall surface together with the image. At this time, the task of discovering and recording all abnormalities from the image is a difficult task. Therefore, in recent years, a model that detects abnormalities in an image of a concrete wall surface is learned by machine learning to improve the efficiency of image inspection. Hereinafter, the model used for detection is assumed to be a model that detects a specific abnormality area from an image of a concrete wall surface.
[0012] Next, the data handled in this embodiment will be described as a premise. First, the image handled in this embodiment is an image showing a concrete wall surface. This image is captured in high resolution in order to inspect even small abnormalities on the concrete wall surface. Therefore, in order to record all the concrete wall surfaces of a huge infrastructure structure as images, it is necessary to divide the range of the object to be photographed into many sections, photograph each section, and obtain many images. After photographing, a process of stitching together the many images is performed to obtain one large image composed of the many images. In this embodiment, images obtained in this manner are handled. Hereinafter, the image to be detected is referred to as an image of the detection object.
[0013] In addition, since it is assumed that the image handled in this embodiment will be associated with the coordinate information of the drawing later, the image is photographed so that the number of pixels on the image that captures the unit length on the concrete wall surface is constant in the photographing of the entire concrete wall surface. For example, the image is photographed so that 1 mm on the actual concrete wall surface corresponds to 1 pixel on the image. Hereinafter, the number of pixels on the image that captures the unit length on the concrete wall surface is referred to as the resolution, and the unit is mm / pixel. In order to photograph an image with a predetermined resolution, when photographing a rectangular area containing an actual object, it is necessary to photograph the image so that the value obtained by multiplying the number of pixels on one side of the photographed image by the resolution matches the length of the corresponding side of the rectangular area of the actual object. Therefore, the photographing is performed while measuring the actual object to be photographed. Since the image handled in this embodiment is photographed and acquired in this way, the resolution is known.
[0014] Next, the detection object in this embodiment will be described. In this embodiment, the detection object is a deformation on the concrete wall surface of a structure such as a bridge or a dam. There are various types of deformations, such as efflorescence, exposed rebar, and cracks. Efflorescence is a white substance that is formed when rainwater penetrates the inside of the concrete dissolves the components inside the concrete and flows out onto the surface. Exposed rebar is a state in which the inside rebar is exposed from a portion where the surface of the concrete deteriorates and peels off. These deformations have different trends in the size of the area. For example, the size of efflorescence varies, with actual dimensions ranging from a few centimeters to over one meter. On the other hand, the size of exposed rebar varies relatively little, at a few centimeters. In this embodiment, a combination of parameter settings is determined for each type of detection object, taking into account the trend in the size of the area.
[0015] Next, the advance preparation required for this embodiment will be described. First, it is assumed that various concrete wall surfaces have been photographed at a plurality of different resolutions. It is assumed that these images include a correct answer image showing the correct location of the deformation area on the image. The correct answer image is an image of the same size as the corresponding image, and stores 1 in the area corresponding to the area on the image where the detection target (deformation) is reflected, and 0 in the other areas. Hereinafter, the area on the image where the detection target (deformation) is reflected is referred to as the detection target area, and the other areas are referred to as the background area. Also, the area on the correct answer image consisting of pixels in which 1 is stored is referred to as the correct answer area. Hereinafter, a pair of an image and a correct answer image is referred to as learning data. Note that the correct answer image may have a pixel value of 1 or 0, and may have metadata for the area corresponding to the area on the image where the detection target (deformation) is reflected and the other areas.
[0016] Furthermore, as a preliminary step, multiple models for determining the detection target for each pixel are generated (learned) using the learning data. In this embodiment, multiple setting values for the size of the detection window are prepared, and a model is generated (learned) for each setting value. This learning is performed for each resolution after dividing the learning data by the resolution at the time of shooting. Each generated model (trained model) is managed in association with the setting value and resolution corresponding to the model. Any machine learning algorithm may be used for learning the model in this embodiment, and for example, an algorithm such as a neural network may be used.
[0017] After carrying out the above process, in this embodiment, the type of detection target is specified from among a number of options for the type of anomaly, and considering that the appropriate setting value differs depending on the type of detection target, a combination of setting values is determined according to the specified type of detection target. As will be described in detail later, the combination is determined based on the resolution of the image of the detection target and the tendency of the area size of the area of the anomaly that is the detection target. Once the combination is determined, a model is selected based on the resolution of the detection target for each setting value included in the combination, and the detection process of the detection target is performed using the selected model. Therefore, in this embodiment, an appropriate model is selected by determining an appropriate setting value.
[0018] Next, a hardware configuration example of the information processing device 200 according to this embodiment will be described with reference to the block diagram of Fig. 2. Note that the configuration shown in Fig. 2 is merely an example of a configuration applicable to the information processing device 200, and the following description is not intended to be limited to the configuration in Fig. 2.
[0019] A CPU (Central Processing Unit) 201 executes various processes using computer programs and data stored in a ROM 202 and a RAM 203. As a result, the CPU 201 controls the operation of the entire information processing device 200, and executes or controls each process that will be described as being performed by the information processing device 200.
[0020] A ROM (Read-Only Memory) 202 stores setting data for the information processing device 200, computer programs and data related to the startup of the information processing device 200, computer programs and data related to the basic operation of the information processing device 200, and the like.
[0021] The RAM (Random Access Memory) 203 has an area for storing computer programs and data loaded from the ROM 202 or the HDD (Hard Disk Drive) 204. The RAM 203 also has an area for storing data received from the outside by a communication unit 207. The RAM 203 also has a work area used when the CPU 201 executes various processes. In this way, the RAM 203 can provide various areas as needed.
[0022] The HDD 204 stores an OS (operating system), computer programs and data for making the CPU 201 execute or control various processes described as being performed by the information processing device 200, and the like. The data stored in the HDD 204 includes data described below as being prepared in advance and data treated as known data. The computer programs and data stored in the HDD 204 are loaded into the RAM 203 as appropriate under the control of the CPU 201, and become targets for processing by the CPU 201. The information processing device 200 may use an external storage device in addition to or instead of the HDD 204. The external storage device may be realized, for example, by a medium (recording medium) and an external storage drive for realizing access to the medium. Examples of such media include a flexible disk (FD), a CD-ROM, a DVD, a USB memory, an MO, and a flash memory. The external storage device may also be a server device or the like that can communicate with the information processing device 200 via a network. Such an external storage device may be responsible for part or all of the functions of the HDD 204.
[0023] The display unit 205 has a liquid crystal screen or a touch panel screen, and displays the processing results by the CPU 201 as images, characters, etc. The display unit 205 may be an external device connected to the information processing device 200 by wire or wirelessly. The display unit 205 may also be a projection device such as a projector that projects images and characters.
[0024] The operation unit 206 is a user interface such as a keyboard, a mouse, and a touch panel screen, and the user can input various instructions to the CPU 201 by operating it.
[0025] The communication unit 207 is a communication interface for performing wired and / or wireless data communication with an external device using a known communication technology. The CPU 201, the ROM 202, the RAM 203, the HDD 204, the display unit 205, the operation unit 206, and the communication unit 207 are all connected to a system bus 208.
[0026] An example of the functional configuration of the information processing device 200 according to this embodiment is shown in the block diagram of Fig. 3. In Fig. 3, the functional units within a rectangle 300 are characteristic components of the information processing device 200, but in this embodiment, the information processing device 200 also has functional units outside the rectangle 300.
[0027] In the following, the functional units shown in Fig. 3 will be described as the main processing units. In reality, however, the functions of the functional units are realized by the CPU 201 executing a computer program for causing the CPU 201 to execute or control the functions of the functional units. Note that the functional units shown in Fig. 3 may be implemented by hardware (a calculation unit or a circuit).
[0028] The process from when the information processing device 200 reads an image of the detection target to when it acquires the integrated result will be described with reference to the flowchart in FIG. 4. In step S401, the image acquisition unit 320 acquires an image of the detection target. As described above, the image acquired in step S401 is an image of the wall surface of an infrastructure structure, and has a constant resolution throughout the image. In this embodiment, this image is used for the purpose of detecting efflorescence. The image acquisition unit 320 may acquire the image of the detection target from the HDD 204, or may acquire the image of the detection target received from an external device via the communication unit 207. In other words, the image of the detection target may be acquired from any device.
[0029] In step S402, the resolution acquisition unit 340 acquires the resolution of the image of the detection target acquired in step S401. The method of acquiring the resolution of the image of the detection target is not limited to a specific acquisition method, but an example will be described with reference to FIG. 5. For example, the CPU 201 displays a window 510 illustrated in FIG. 5(A) on the display unit 205. The user operates the operation unit 206 to input the resolution of the image of the detection target in an area 514. When the user operates the operation unit 206 to move the pointer 512 to the decision button 513 and perform a decision operation (e.g., a click operation), the resolution acquisition unit 340 acquires the resolution input by the user in the area 514. In the following, for the purpose of a specific description, the resolution acquired in step S402 is described as 1.0 mm / pixel, but the following description is not limited to such a resolution and may be any resolution.
[0030] In step S403, the attribute acquisition unit 310 acquires an attribute (category) of the detection target. In this embodiment, the type of the anomaly to be detected is acquired as the attribute of the detection target. In the following, for the purpose of specific explanation, a case where efflorescence is acquired as the attribute of the detection target is described, but the following explanation is not limited to this case. The method of acquiring the attribute of the detection target is not limited to a specific method, but an example is described with reference to FIG. 5. The above window 510 is provided with a pull-down list 511 that displays a list of types of anomaly. The user can select the desired type of anomaly as a selected type by operating the operation unit 206 to move the pointer 512 to a display position of a type of anomaly (a desired type of anomaly) that the user wants to detect from among the types of anomaly displayed in the pull-down list 511 and performing a selection operation (e.g., a click operation). Then, when the user operates the operation unit 206 to move the pointer 512 to the decision button 513 and perform a decision operation (e.g., a click operation), the attribute acquisition unit 310 acquires the selected type as an attribute of the detection target. FIG. 5(A) shows a state in which efflorescence is selected as the selection type.
[0031] Next, in the processes of steps S404 and S405, the determination unit 350 determines a combination of setting values. In general terms, in step S404, candidates for the combination of setting values are first obtained, and in step S405, a combination of setting values is selected from the candidates.
[0032] First, the process of step S404 will be described. In step S404, the determination unit 350 acquires "candidates for combinations of setting values" corresponding to the type of deformation acquired in step S403. For example, as shown in FIG. 5(B), a table is stored in the HDD 204 in which "candidates for combinations of setting values" corresponding to each type of deformation are registered. The determination unit 350 acquires "candidates for combinations of setting values" corresponding to the type of deformation acquired in step S403 from the table. In this case, since the type of deformation acquired in step S403 is efflorescence, in step S404, the "candidates for combinations of setting values" surrounded by a dotted rectangle 515 in FIG. 5(B) are acquired. The table shown in FIG. 5(B) is not limited to being stored in the HDD 204, but may be stored in an external device that can communicate with the communication unit 207, or may be stored in another device.
[0033] Here, as a preparation for the process of step S404, a process of determining the "candidates for the combination of setting values" to be registered in the table will be described. The determination unit 350 acquires the group of correct images acquired by the correct image acquisition unit 380 for each type of deformation from the correct image acquisition unit 380. The correct image acquisition unit 380 may acquire the group of correct images for each type of deformation from the HDD 204 or from an external device, or may acquire the group of correct images for each type of deformation from any device. Then, the determination unit 350 determines the corresponding "candidates for the combination of setting values" for each type of deformation based on the group of correct images acquired for each type of deformation. Below, a method of determining the "candidates for the combination of setting values" by the determination unit 350 will be described with reference to FIG. 6 as an example, in which a frequency distribution of the area of the correct region is acquired from a group of correct images of a predetermined resolution, and the "candidates for the combination of setting values" are determined based on the acquired frequency distribution.
[0034] A correct image 610 shown on the left side of Fig. 6(A) is a correct image of efflorescence, and a frequency distribution 620 shown on the right side of Fig. 6(A) shows a frequency distribution of the area of correct regions in a collection of correct images of efflorescence such as correct image 610. That is, on the right side of Fig. 6(A), the horizontal axis shows the area of the correct regions, and the vertical axis shows the number.
[0035] A correct image 630 shown on the left side of Fig. 6(B) is a correct image of exposed rebars, and a frequency distribution 660 shown on the right side of Fig. 6(B) shows a frequency distribution of the area of correct regions in a collection of correct images of exposed rebars such as the correct image 630. That is, on the right side of Fig. 6(B), the horizontal axis shows the area of the correct regions, and the vertical axis shows the number.
[0036] Assuming that a larger detection window is suitable for a deformation where the area of the correct region is close to Smax, and a smaller detection window is suitable for a deformation where the area of the correct region is smaller, the suitable setting value differs between efflorescence and exposed rebar. With efflorescence, as shown in the correct image 610, the area of the correct region tends to vary, so it is necessary to prepare detection windows of various sizes.
[0037] Specifically, in efflorescence, the size of a rectangle that can enclose the area Smax is set as the maximum value of the detection window. Here, for example, the maximum value is set to 1000 pixels, and the setting values are selected at equal intervals within a range of 1000 pixels or less. The "candidate combinations of setting values" enclosed by the dotted rectangle 515 in Fig. 5 include a combination of four setting values "250 pixels, 500 pixels, 750 pixels, 1000 pixels" selected at equal intervals within a range of 1000 pixels or less, a combination of three setting values "330 pixels, 660 pixels, 990 pixels" selected at equal intervals within the range, a combination of two setting values "500 pixels, 1000 pixels" selected at equal intervals within the range, and a combination of one setting value "500 pixels" selected at equal intervals within the range.
[0038] On the other hand, in the case of exposed rebar, the peak position is at Sr and the width of the peak is narrow in the frequency distribution 640. For this reason, for example, it is decided that the setting value to be included in the "candidates for combination of setting values" is one, and the size of a rectangle that can enclose the area Sr is set as the setting value to be included in the "candidates for combination of setting values".
[0039] In this way, the corresponding "candidates for combinations of setting values" are acquired for each type of deformation. This process is a process that should be performed as a preliminary preparation for the process in step S404.
[0040] Next, in step S405, the determination unit 350 determines a "combination of setting values" to be used in the following process from the "candidate combination of setting values" acquired in step S404. The determination unit 350 determines an appropriate "combination of setting values" from the "candidate combination of setting values" in consideration of the predicted processing time and detection performance when performing detection processing on an image of the detection target.
[0041] Here, attention is focused on the fact that the processing time and detection performance change depending on the number of setting values of the parameter combination. It is assumed that the more the number of setting values, the better the detection performance, and the predicted value of detection performance can be determined based on the number of setting values. As for the predicted processing time, it is assumed that the more the number of setting values, the longer the processing time, and the predicted value of processing time can be determined based on the number of setting values. These predicted values are determined in advance for each number of setting values, for example, as values proportional to the number of setting values. In the following, attention is focused on the trade-off between detection performance and processing time with respect to the number of setting values, and the user is allowed to select a "combination of setting values" that is preferable to the user from "candidate combinations of setting values".
[0042] A method for selecting an appropriate "combination of setting values" from the "candidate combinations of setting values" will be described below using window 710 in FIG. 7. In dotted area 711 in window 710, the processing time and detection performance predicted in performing the detection process are displayed as predicted values, and the result of this prediction changes in conjunction with a slider bar in dotted area 712. This slider bar is a slider bar for operating whether to prioritize short processing time or high detection performance. When the user operates operation unit 206 to place pointer 713 on the knob of the slider bar and perform a drag operation there to move the knob closer to the top end of the slider bar, a predicted value when a combination with a short processing time but low detection performance, i.e., a combination with a small number of setting values is used, is displayed in area 711. On the other hand, when the user operates the operation unit 206 to place the pointer 713 on the knob of the slider bar and perform a drag operation there to move the knob closer to the bottom end of the slider bar, a combination with a long processing time but high detection performance, that is, a predicted value when a combination with a large number of setting values is used, is displayed in the area 711. The user moves the position of the knob and compares the predicted processing time and detection performance for each candidate, and when the processing time and detection performance become preferable values, the user operates the operation unit 206 to place the pointer 713 on the decision button 714 and perform a click operation there. By this click operation, the decision unit 350 decides, as an appropriate "combination of setting values", the "combination of setting values" including the setting value of "number" corresponding to the "predicted value of processing time and detection performance" displayed in the area 711 at this point in time.
[0043] Here, it is assumed that a combination with three setting values is selected as an appropriate combination, i.e., "330 pixels, 660 pixels, 990 pixels" is selected from the "candidate combinations of setting values" shown in the dotted rectangle 515 in FIG. 5(B). In this way, by displaying the processing time and detection performance in a comparable manner, the user can select a combination that is preferable to the user from among the candidates. Note that, although the configuration is such that the setting value to be actually used is selected from the candidate setting values, a configuration in which one setting value is automatically determined may also be used. Also, although the configuration is such that the combination of setting values is determined, a configuration in which one setting value is automatically determined may also be used.
[0044] Next, in step S406, the determination unit 350 selects a trained model for each setting value included in the combination determined in step S405, based on the "resolution of the image of the detection target" acquired in step S402. In this embodiment, trained models corresponding to multiple setting values are associated by resolution and managed in the model storage unit 390. Therefore, once the setting value is determined, a trained model can be determined based on the resolution. Here, since the number of setting values in the combination is three, three trained models are selected.
[0045] Next, in steps S407 to S411, the detection unit 360 performs a detection process to detect the detection target from the image of the detection target. The detection process to detect the detection target from the image of the detection target, which is performed in steps S407 to S411, will be described with reference to FIG. 1(A) as an example.
[0046] In FIG. 1(A), reference numeral 110 indicates an image of the detection target, reference numeral 112 indicates a trained model, and reference numeral 120 indicates an image 120 obtained as a result of performing a full range of detection on image 110 using a detection window.
[0047] A portion 111 in which a detection window of a predetermined size (a size corresponding to the set value included in the combination determined in step S405) is set in an image 110 of a detection target is an image range to be input to the trained model 112. An image (partial image) within the image range is hereinafter referred to as a patch image. When a patch image in the portion 111 is input to the trained model 112, the trained model 112 performs a detection process on the patch image and outputs an image 121 of the same size as the patch image. In this image 121, a high score is stored for pixels on the patch image in the portion 111 that are likely to contain a detection target, and a low score is stored for pixels that are unlikely to contain a detection target. Such an image 121 is hereinafter referred to as a patch score map. In this way, the process of acquiring a patch image from an image and detecting it is performed while moving the detection window little by little. Specifically, the first position of the detection window is set to the upper left end of the image, and the next position is set to a position translated to the right by a predetermined number of pixels from the previous position, and this process is repeated until the detection window reaches the right end of the image. After reaching the right edge of the image, the next detection window is moved to a position on the left edge of the image, a predetermined number of pixels below the previous left edge position, and then moved to the right again by a predetermined number of pixels. This process is repeated until the detection window reaches the bottom right edge of the image, and detection is performed each time the window moves, thereby obtaining a large number of patch score maps. Then, by arranging each patch score map in a position corresponding to the patch image corresponding to the patch score map, an image 120 can be obtained that is the same size as the original image 110 and contains pixels that indicate the possibility of anomaly for each pixel. The image 120 obtained here is distinguished from the patch score map and will be referred to as the score map hereinafter.
[0048] In this embodiment, such basic detection processing is performed using detection windows of multiple sizes. Processing when multiple detection window sizes are used will be described with reference to Fig. 1(B). In Fig. 1(B), detection windows of three different sizes are placed in an image 130 of a detection target, and patch images are obtained from each of image ranges 131, 132, and 133 where the detection windows of the three different sizes are placed.
[0049] When a patch image acquired from an image area 131 is input to a trained model 134 corresponding to the image area 131, the trained model 134 performs a detection process on the patch image and outputs a patch score map corresponding to the patch image. By performing the same process for all image areas 131 on the image 130, a score map 150 corresponding to the image 130 and according to the size of the image area 131 is generated.
[0050] When a patch image acquired from an image area 132 is input to a trained model 135 corresponding to the image area 132, the trained model 135 performs a detection process on the patch image and outputs a patch score map corresponding to the patch image. By performing the same process for all image areas 132 on the image 130, a score map 160 corresponding to the image 130 and according to the size of the image area 132 is generated.
[0051] When a patch image acquired from an image range 133 is input to a trained model 136 corresponding to the image range 133, the trained model 136 performs a detection process on the patch image and outputs a patch score map corresponding to the patch image. By performing the same process for all image ranges 133 on the image 130, a score map 170 corresponding to the image 130 and according to the size of the image range 133 is generated.
[0052] In this embodiment, an integration result 180, which is an integration result of these score maps 150, 160, and 170, is obtained as a final detection result. Based on the general flow described above, the processes of steps S407 to S410 will be described in order, returning to FIG.
[0053] In step S407, the detection unit 360 selects one unselected setting value from among the setting values included in the combination determined in step S405 as a selected setting value. In step S408, the detection unit 360 selects, as a selected model, a model corresponding to the selected setting value selected in step S407 and the resolution acquired in step S402 from the models for each setting value selected in step S406. In step S409, the detection unit 360 sets a detection window of a size according to the selected setting value in the image to be detected, and acquires (cuts out) a patch image within the image area of the detection window.
[0054] In step S410, the detection unit 360 inputs the patch image acquired in step S409 into the selection model selected in step S408, and performs detection processing on the patch image using the selection model, thereby generating a patch score map corresponding to the patch image.
[0055] In step S411, the detection unit 360 determines whether or not movement of the detection window on the image of the detection target has been completed. If the result of this determination is that movement of the detection window on the image of the detection target has been completed (the current position of the detection window is at the lower right corner of the image of the detection target), the process proceeds to step S412. On the other hand, if movement of the detection window has not yet been completed (the current position of the detection window is not at the lower right corner of the image of the detection target), the position of the detection window is moved as described above, and then the process proceeds to step S409.
[0056] In step S412, the detection unit 360 generates one score map by arranging each patch score map acquired while moving the detection window having a size according to the selected setting value according to the position of the corresponding patch image. For example, when the image area of the detection window having a size according to the selected setting value selected in step S407 is the image range 131 / 132 / 133 and the movement of the detection window on the image of the detection target is completed, in step S412, the score map 150 / 160 / 170 is generated.
[0057] In step S413, the detection unit 360 determines whether or not all the setting values included in the combination determined in step S405 have been selected as selected setting values. If the result of this determination is that all the setting values included in the combination determined in step S405 have been selected as selected setting values, the process proceeds to step S414. On the other hand, if any setting values included in the combination determined in step S405 remain that have not yet been selected as selected setting values, the process proceeds to step S407.
[0058] In step S414, the integration unit 370 performs a process of integrating the score maps generated for each of the setting values included in the combination determined in step S405 into one integrated score map (integration result). Specifically, pixel values at the same position (target pixel position) are acquired from each score map, and the average value of the acquired pixel values is set as the pixel value at the target pixel position of the integrated score map. The pixel value m(x, y) at the target pixel position (x, y) of the integrated score map is calculated based on, for example, the following formula (1).
[0059]
number
[0060] Here, n is the number of patch score maps (= the number of setting values = the number of trained models). i (x, y) is a set of n patch score maps p1, p2, …, p n The ith patch score map p i is the pixel value of the pixel position (x, y) of interest in the integrated score map. By applying this formula (1) to all pixel positions, the pixel values at all pixel positions in the integrated score map can be obtained.
[0061] In this way, according to this embodiment, it is possible to appropriately determine a combination of setting values of parameters that affect the image range of a patch image to be input to the trained model based on the resolution of the image of the detection target and the attributes of the detection target.
[0062] The processing in each step in FIG. 4 is not limited to being performed in the above order. For example, the processing in each step in steps S401 to S403 may be performed in any order. Moreover, since the image acquisition in step S401 only needs to be performed before the patch image is acquired in step S409, it may be performed at any timing before step S409. Moreover, in FIG. 4, the score map for the entire image is generated in step S412 after the process of scanning the detection window over the entire image in steps S409 to S411 is completed, but this order is not necessary. As a method, first, a temporary score map is created in the same size as the image to be detected before the patch image is cut out in step S409, in which a temporary value such as 0 is stored in all pixels. Then, every time the patch score map is acquired from the patch image in step S410, the pixels in the image range corresponding to the patch image are rewritten on the temporary score map with the value of the patch score map. With this method, the score map can be created at the timing when the scanning of the detection window is completed.
[0063] <Variations of Integrated Section 370> In the above description, the integration unit 370 generates one integrated score map by integrating multiple score maps by calculating the average pixel value in the multiple score maps, but the method of integrating multiple score maps is not limited to a specific integration method. For example, the pixel values of the integrated score map may be determined by performing weighted addition on each pixel value of each score map. In this case, the pixel value m(x, y) at the pixel position (x, y) of interest in the integrated score map is calculated based on, for example, the following formula (2).
[0064]
number
[0065] w i is the score map p iis a weighting coefficient (integration weight) for the pixel value of the pixel of interest at the position (x, y) in the image. The aim is to improve the accuracy of the integration result by appropriately determining the integration weight, and two methods for determining the integration weight are explained below.
[0066] The first method of determining the integration weight is a method that takes into account the reliability of each trained model. The reliability is a value that indicates how good each trained model is relatively. In this method, the model storage unit 390 stores the trained model in association with the reliability of the trained model. Then, for the integration weight for the score map, the reliability stored in the model storage unit 390 in association with the trained model corresponding to the score map is used. Here, two specific examples of how to determine the reliability will be described using an example of a situation in which score maps obtained from three trained models are integrated.
[0067] As a first specific example, a method of determining reliability based on the detection performance of a trained model will be described. Here, it is assumed that the detection performance is calculated for each trained model using the evaluation method described below, and the reliability of a trained model is calculated, for example, using the following formula.
[0068]
number
[0069] Here, reliability i is the score map p i The trained model M corresponding to i is the confidence level of i is the trained model M i For example, suppose the detection performance of each of the three trained models is 90%, 85%, and 75%. In this case, the reliability of each of the three trained models is 0.36 (= 90 / (90 + 85 + 75)), 0.34 (= 85 / (90 + 85 + 75)), and 0.30 (= 75 / (90 + 85 + 75)). The reliability calculated in this way is i The integrated weight w iBy determining the integration weights in this way, the contribution of the output from a better trained model can be increased, improving detection performance.
[0070] Next, as a second specific example, a method of determining the reliability based on the ratio of the amount of data used to train the trained model will be described. In this method, the model storage unit 390 holds information on the amount of data used to train the trained model in association with the trained model. Then, the output of the trained model trained with a large amount of data is considered to be of good quality, and the reliability is the ratio of the amount of data. For example, the number of patches used to train each of the three trained models is assumed to be 70,000, 20,000, and 10,000. In this case, the reliability of each of the three trained models is set to 0.7 (= 70,000 / (70,000+20,000+10,000)), 0.2 (= 20,000 / (70,000+20,000+10,000)), and 0.1 (= 10,000 / (70,000+20,000+10,000)). The reliability calculated in this manner is used as it is as the integrated weight. In this way, when the integrated weight based on the amount of data is used, the same effect as when the weight is determined based on the detection performance can be obtained.
[0071] The second method of determining the integrated weight is a method that takes into account the attributes of the detection target. Here, the aim is to determine the integrated weight to a value that matches the attribute, taking into consideration that there is a tendency in the size of the area on the image for each attribute of the detection target. Specifically, the integrated weight is determined based on the frequency distribution of the correct answer area for each attribute of the detection target. For the sake of explanation, it is assumed that the frequency distribution created from the correct answer image of efflorescence has a tendency to have a larger number of correct answer areas with larger areas, as shown as frequency distribution 650 in FIG. 6(C). Since it can be seen from the frequency distribution that there are many abnormalities with large areas, if a large detection window size is suitable for abnormalities with large areas as in the above assumption, it is assumed that there are many abnormalities that can be detected by a large detection window. For this reason, the integrated weight of the score map obtained using a large detection window is set to be large. For example, it is assumed that the sizes of the detection windows used are 330 pixels, 660 pixels, and 990 pixels. In this case, the connection weight for the score map obtained using a detection window having a size of 330 pixels is 0.2 (the calculation result of 330 / (330+660+990) rounded off). Similarly, the connection weight for the score map obtained using a detection window having a size of 660 pixels is 0.3 (the calculation result of 660 / (330+660+990) rounded off). Similarly, the connection weight for the score map obtained using a detection window having a size of 990 pixels is 0.5 (the calculation result of 990 / (330+660+990) rounded off). In this way, by determining the integration weight based on the size of the detection window, a value suitable for the attribute can be set.
[0072] In the above, the method of calculating the integrated weights has been described as taking into account the reliability and the attribute, but the integrated weights may be calculated by taking into account both the reliability and the attribute. For example, the score map p i A weighting factor (integration weight) for the pixel value at the pixel position of interest in may be calculated.
[0073]
number
[0074] Here, w ri is the weight determined by the reliability i ), w ai is the weight determined by the attributes of the detection target. In this way, by determining the integrated weight taking into account both the reliability and the attributes, the integrated weight can be set to a more balanced value.
[0075] <Variations of the determination unit 350> In the above description, the table in Fig. 5(B) has already been created and stored in HDD 204 at the start of step S404. However, as long as this table is created by step S404, the creation timing is not limited to a specific creation timing. For example, this table may be created before the start of the process according to the flowchart in Fig. 4, or may be created by step S404 after the start of the process according to the flowchart in Fig. 4.
[0076] In the above, the determination unit 350 creates multiple candidate combinations of setting values and determines an appropriate combination from among them. However, the process of creating candidate combinations of setting values may be omitted. In this case, the number of setting values to be included in the combination is determined to be one from the beginning. If the creation of candidates is omitted, it becomes impossible to select a combination that satisfies the conditions that are preferred by the user, but the effort of the user's operation can be reduced.
[0077] In addition, as described above, when the determination unit 350 displays the predicted values of the processing time and the detection performance, the predicted values are predicted based on the number of setting values, but the prediction method is not limited to the above method. Below, a method for acquiring the predicted detection performance and processing time based on the detection performance and processing time acquired using a part of the learning data will be described.
[0078] First, a method of acquiring the predicted detection performance will be described. First, the detection unit 360 acquires a plurality of score maps by applying a learned model corresponding to each set value to a portion of the learning data. Then, the evaluation unit 330 evaluates each score map to acquire an evaluation value of the accuracy for each score map, and the evaluation value of the score map is set as a predicted value of the detection performance of the learned model corresponding to the score map. As the evaluation value, for example, a match rate is calculated using the score map and the correct image. Specifically, a binarization process is performed on the score map to acquire a binary image, and a difference image is acquired by subtracting the correct image from the binary image. Since it can be seen that the pixel values of both match at the points where 0 is stored in the difference image, the rate of pixels where 0 is stored among all pixels is set as the match rate. Here, the predicted value of the detection performance calculated for each score map for this portion of the learning data is displayed in the window 710.
[0079] Next, a method for obtaining the predicted processing time will be described. In this process, the detection unit 360 performs the above detection process on a portion of the images in the learning data, and calculates the processing time required for the image to be detected based on the processing time. Here, it is assumed that the processing time is measured in the detection process for calculating the above detection performance. The predicted processing time is obtained based on the scale of the image for which the processing time is measured (image size or total size of image files) and the scale of the image to be detected. For example, if the scale of the image to be detected is half the scale of the image for which the processing time is measured, the predicted value is set to half the measured processing time. In this way, by obtaining the predicted detection performance and processing time based on the detection performance and processing time obtained using a portion of the learning data, the accuracy of the predicted value can be improved.
[0080] In the above, the determination unit 350 has shown a method of displaying predicted values of processing time and detection performance in a comparable manner so that the user can determine a combination of setting values, but the display method is not limited to this. For example, only the predicted processing time for each combination is displayed on the display unit 205, and the user is prompted to set an acceptable processing time using the operation unit 206. Then, a candidate that corresponds to the acceptable processing time and has the maximum detection performance is determined as an appropriate combination. In this way, when a combination is determined based on the acceptable processing time, the number of operations by the user can be reduced compared to the above method.
[0081] In the above, the determination unit 350 may determine the set value directly from the frequency distribution. Here, for the sake of explanation, a frequency distribution 660 shown in FIG. 6(D) is used. The frequency distribution 660 is generated from a certain type of group of correct images. A set value W1 is determined as a detection window size suitable for an area deformation between areas S1 and S2. A set value W2 is determined as a detection window size suitable for an area deformation between areas S2 and S3. A set value W3 is determined as a detection window size suitable for an area deformation between areas S3 and S4. A set value W4 is determined as a detection window size suitable for an area deformation between areas S4 and S5. A set value W5 is determined as a detection window size suitable for an area deformation equal to or larger than area S5.
[0082] Also, if a combination of setting values suitable for a different image that is different from the image of the detection target only in resolution is obtained, a combination of setting values suitable for the image of the detection target can be obtained according to the combination and the ratio of the resolution of the different image to the resolution of the image of the detection target. Even if the different image has a different resolution from the image of the detection target, the setting value can be determined so that the size of the setting value (detection window size) corresponding to the actual wall surface is the same for the image of the detection target and the different image. In this embodiment, as described above, it is assumed that there is a trend in the size of the attribute of the detection target (here, the type of deformation such as efflorescence and exposed rebar), which leads to improved detection performance. Specifically, the resolution of the different image that is different from the image of the detection target only in resolution is 2.0 mm / pixel, and the combination of setting values suitable for the different image is 330 pixels, 660 pixels, and 990 pixels. When the resolution of the image to be detected is 1.0 mm / pixel, the combinations of setting values suitable for the image to be detected are 660 pixels, 1320 pixels, and 1980 pixels, which are obtained by multiplying the resolution ratio "2" by 330 pixels, 660 pixels, and 990 pixels.
[0083] Another embodiment of the method for determining the combination of the set values will be described below. A method for determining the combination of the set values using the correct answer image of the attribute of the detection target without using the resolution will be described below. Here, a plurality of random values are prepared as provisional set values, and a score is assigned to each provisional set value. Then, the combination is determined based on the score. Specifically, patch images cut out of image ranges of various sizes are displayed on the display unit 205, and an input (feedback) on whether or not the image can be identified is received from the user, and a score is determined based on the feedback. Here, under the assumption that if a person cannot identify the image, the trained model should also not be able to make a judgment, a score is assigned to each provisional set value, and the set value with the highest score is adopted. A specific example will be described with reference to FIG. 12. A window 1210 is displayed on the display unit 205. A column 1211 in the window 1210 displays a plurality of detection window sizes ws1, ws2, and ws3 as provisional set values. Columns 1212 and 1213 display a patch image of the detection target area cut out from the image of the detection target based on the correct answer area of the correct answer image, and an image of the background area, respectively. The user compares the patch image in column 1212 with the image in column 1213 for each provisional setting value, judges whether it is identifiable by eye, and inputs the judgment result of identifiable or not using the check button shown in column 1214. The user operates the operation unit 206 to move the pointer 1215 to the check button on the left side when it is identifiable, to the check button on the right side when it is not identifiable, and to the check button in the center when it is neither. The determination unit 350 obtains a score according to the check button indicated for each provisional setting value. For example, the provisional setting value indicated by the user as identifiable is assigned a score of "1", the provisional setting value indicated by the user as not identifiable is assigned a score of "0", and the provisional setting value indicated by the user as neither is assigned a score of "0.5". The determination unit 350 then adopts the provisional setting values with scores higher than a predetermined value as the setting values to be included in the combination. In the case of FIG. 12, for example, when the predetermined value is 0.3, of the provisional setting values ws1, ws2, and ws3, ws2 and ws3 are adopted as the setting values to be included in the combination, and the combination of the adopted provisional setting values is determined to be an appropriate combination.In this way, by using the correct image of the attribute of the detection target and determining the combination based on whether it is distinguishable by the human eye, it is possible to determine a combination that is more suitable for the attribute of the detection target.
[0084] [Second embodiment] In the following embodiments including this embodiment, the difference from the first embodiment will be described, and it will be assumed that the embodiments are the same as the first embodiment unless otherwise specified below. In the first embodiment, a method for determining a combination of parameter setting values related to an image range on an image to be input to a trained model when performing detection processing was described. In contrast, in this embodiment, a correct answer image of the training data is used to determine a combination of parameter setting values suitable for both training and detection. The image handled in this embodiment is an image of the wall surface of an infrastructure structure as in the first embodiment, the attribute of the detection target is efflorescence, and the parameter of interest is the size of the detection window. In addition, in this embodiment, a combination of parameter setting values is determined using training data as in the first embodiment.
[0085] An example of the functional configuration of the information processing device 200 according to this embodiment will be described with reference to the block diagram of Fig. 8. The configuration shown in Fig. 8 is a configuration in which a learning unit 810 is added to the configuration shown in Fig. 3. The learning unit 810 learns a model based on the error between a patch score map output by the detection unit 360 for a patch image and a ground truth image corresponding to the patch image.
[0086] Next, an overview of this embodiment will be described. In this embodiment, as in the first embodiment, as a preparation, models corresponding to various setting values are learned, and the setting values and the learned models are associated and managed. Once the preparation is complete, an appropriate combination is determined for each number of setting values in the combination. As a method, for each number of setting values, various combinations are created using setting values corresponding to the learned models, and the integration results are evaluated for each combination. Then, based on the evaluation results, an appropriate combination is determined for each number of setting values.
[0087] Next, a specific process flow will be described. First, the advance preparation will be described. Here, the upper limit of the setting value is determined by frequency distribution as in the first embodiment. The upper limit is set to, for example, 1000 pixels, and setting values are selected at equal intervals within a range of 1000 pixels or less, and model learning is performed for each setting value. Once the advance preparation is complete, a process for determining a combination is performed. The process flow will be described using the flowchart in FIG. 10.
[0088] In step S1001, the image acquiring unit 320 acquires an image to be used for evaluation, and in step S1002, the image acquiring unit 320 acquires a correct image to be used for evaluation from the correct image acquiring unit 380. These images are different data from the data used for learning the model.
[0089] In step S402, the resolution acquisition unit 340 acquires the resolution of the image acquired in step S1001. The method of acquiring the resolution is the same as in the first embodiment.
[0090] In step S403, attribute acquisition unit 310 acquires efflorescence as an attribute of the detection target. Then, by the processes of steps S1003 to S1010, a combination suitable for each number of setting values is determined.
[0091] In step S1003, the determination unit 350 selects the number of unselected setting values from the set of setting value numbers as the selection number. Here, for example, it is assumed that "4" is selected as the selection number.
[0092] In step S1004, the determination unit 350 creates multiple combinations including the same number of setting values as the selections selected in step S1003. In step S1005, the determination unit 350 selects one unselected combination from the multiple combinations created in step S1004 as a selected combination. In step S1006, the detection unit 360 acquires a model corresponding to the selected combination.
[0093] In step S1007, evaluation is performed using the evaluation image acquired in step S1001 and the evaluation answer image acquired in step S1002. More specifically, the detection unit 360 performs detection processing on the evaluation image for each setting value, and acquires an integrated result by integrating the score map obtained for each setting value. The evaluation unit 330 then uses the integrated result and the evaluation answer image to perform evaluation by the evaluation method described in the first embodiment, thereby obtaining an evaluation value.
[0094] In step S1008, CPU 201 determines whether or not all of the combinations created in step S1004 have been selected as selected combinations in step S1005. If the result of this determination is that all of the combinations have been selected as selected combinations, the process proceeds to step S1009. On the other hand, if any of the combinations created in step S1004 remain to be selected as selected combinations, the process proceeds to step S1005.
[0095] In step S1009, the determination unit 350 determines an optimal combination based on the result of the evaluation in step S1007. Specifically, the determination unit 350 determines the combination with the highest evaluation value among the multiple combinations created in step S1004 as the optimal combination for the number of selections selected in step S1003.
[0096] In step S1010, CPU 201 determines whether or not all the numbers included in the set of numbers of setting values have been selected as selected numbers in step S1003. If the result of this determination is that all the numbers included in the set of numbers of setting values have been selected as selected numbers, the process according to the flowchart in Fig. 10 ends. On the other hand, if there are still numbers remaining in the set of numbers of setting values that have not yet been selected as selected numbers in step S1003, the process proceeds to step S1003. Through the above process, an optimal combination of setting values can be determined for each number of setting values.
[0097] The combinations for each number of setting values thus determined can be acquired as candidate combinations of setting values in step S404. According to the above method, it is possible to select a combination that improves detection performance more than the method of the first embodiment.
[0098] The combination determined by the above method may be used not only for detection but also as a combination of parameter setting values used for learning. For example, when a correct image is included in a part of the image to be detected, a trained model is generated by learning using the part of the image, and the trained model is applied to the remaining image for detection. At this time, a patch image is cut out from the image using a combination of setting values (detection window size) determined by the above method, and training data is created. Then, learning is performed for each setting value, and a trained model can be generated. According to this method, learning specialized for the image to be detected can be performed using a combination that matches the attributes.
[0099] In the above, the attributes are efflorescence and exposed rebar, but are not limited thereto. The attributes can also be large-area efflorescence and small-area efflorescence. In this case, the advance preparation is slightly changed. First, multiple set values are determined as described above. Also, the learning data is divided in advance into data including large-area efflorescence and data not including large-area efflorescence, and learning data is created from each of the data. Next, multiple set values determined randomly are prepared. Then, for each set value, if the set value is larger than a predetermined value, learning is performed with data including large efflorescence, and if the set value is smaller than the predetermined value, learning is performed with data including small efflorescence, and a trained model is generated. After completing the above advance preparation, a process of determining a combination is performed. For example, when the attribute acquisition unit 310 acquires information that the detection target is small efflorescence, a set value equal to or smaller than a predetermined value is used to perform a series of processes shown in FIG. 10. In this way, by performing a process that takes into account the size of the area as an attribute of the detection target, it is possible to determine a combination specialized for the target to be detected.
[0100] <How to perform training and detection with one model> So far, we have explained the process of learning and detection using models that correspond to multiple detection window sizes, but it is also possible to use one model for learning and detection. In this case, the parameters of interest include not only the detection window size but also the magnification factor described below.
[0101] In this process, a combination of parameter setting values is first determined before learning or detection. The parameter of interest is the magnification, and the combination is determined based on the attributes of the detection target, as in the case where the parameter is the size of the detection window. The lower limit of the setting value is determined on a rule basis, for example, to 1 / 3, and is determined based on the specified attribute. For example, when the attribute of the detection target is efflorescence, the frequency distribution (FIG. 6(A)) described in the first embodiment is taken into consideration and the setting is made to meet the lower limit condition. Here, it is assumed that the combination of magnification setting values is determined to be 1x, 1 / 2x, and 1 / 3x.
[0102] A specific process flow for learning and detection is shown in Fig. 9. Fig. 9(A) shows the learning process, and Fig. 9(B) shows the detection process. First, size conversion is performed at multiple different magnifications using general image processing for each of the images included in the learning data and the correct image. Image 910 is assumed to be an image included in the learning data. Image 910 is reduced to the same size, 1 / 2 size, and 1 / 3 size, and size-converted images 911, 912, and 913 are obtained as the respective results. By performing such size conversion on the correct image included in the learning data, the correct image after size conversion is obtained.
[0103] Then, a patch image is collected from the results of applying size conversion to the image and the correct answer image (the image after size conversion, and the correct answer image after size conversion, respectively) using a detection window of a predetermined size. In this way, when the patch images are collected using the same size detection window after size conversion by multiple magnifications, the collected patch images 917 have a uniform size, but contain information on image ranges of different sizes in the original image 910. Next, patch images corresponding to a common image range between the image included in the learning data and the correct answer image are paired, and one model is learned using a large number of pairs to generate a trained model 918. The above is a rough flow of the learning process. Next, the flow of the detection process will be described using FIG. 9(B).
[0104] As a procedure, first, size conversion is performed on the image 920 of the detection target using the same magnification as in learning. The results of size conversion on the image 920 of the detection target are images 921, 922, and 923. Next, the trained model 918 is applied to each of the images 921, 922, and 923, and the basic detection process described in the first embodiment is performed to obtain score maps 924, 925, and 926 corresponding to the images 921, 922, and 923, respectively. The size of the detection window used here is the same as that used in learning. The score maps 924, 925, and 926 are all the same size as the corresponding images 921, 922, and 923 after size conversion. The size of the image after size conversion is the same as that of the score map obtained from that image. Finally, the integration unit 370 integrates these score maps. Unlike the first embodiment, in this embodiment, the sizes of the score maps to be integrated are different from each other, so that the size of each score map is converted using the inverse of the magnification to convert each score map to the same size and then integrated into one. For example, since the score map 925 is 1 / 2 the size of the original image 920, the size is converted to twice the inverse, and a score map 927 after the size conversion is obtained. In a similar manner, the size of the score map 926 is also converted to obtain a score map 928. On the other hand, since the score map 924 is the same size as the original image 920, the size is not converted, and the score map 924 is used as it is for integration. In the integration process, the score maps 924, 927, and 928 are integrated in the same manner as in the first embodiment to generate one integrated score map 929.
[0105] The above is the process flow for learning and detection using one model. By performing learning all at once in this way, it is not necessary to prepare a model for each setting value, making model management easier.
[0106] In the above description, the original image is reduced in size in the size conversion process, but it is not limited to reduction, and can also be enlarged. For example, a model that has been trained to increase the resolution of an input image is prepared and applied to the image, thereby obtaining an enlarged, high-resolution image.
[0107] [Third embodiment] In the first and second embodiments, a combination of setting values is determined based on the correct answer image of the learning data, and the combination is used to perform detection on the image of the detection target. In contrast, in this embodiment, a combination of setting values suitable for the image of the detection target is determined based on the correct answer image, assuming that a correct answer image is included in a part of the image of the detection target. Hereinafter, a part of the image of the detection target that has a correct answer is referred to as an image with a correct answer, and the correct answer image of the image with a correct answer is referred to as a partially correct answer image. The image handled in this embodiment is an image of the wall surface of an infrastructure structure, as in the first and second embodiments. The attribute is the type of deformation, and the attribute of the detection target is efflorescence. Also, the parameter of interest in this embodiment is the size of the detection window used for detection, as in the first embodiment.
[0108] Next, an overview of this embodiment will be described. In this embodiment, the difficulty level of the image of the detection target is estimated, and the number of parameter setting values is determined based on the difficulty level, thereby determining the combination of setting values. As a method, statistical values, which will be described later, obtained from the correct image of various structures other than the detection target and the partial correct image of the detection target image are compared, and the relative difficulty level of the image of the detection target relative to the image of the other structures is estimated. Here, the purpose is to ensure the minimum detection performance, and when the number of setting values is large, many score maps are integrated, so that the detection performance is high, but the processing time is long. In consideration of this, the number of setting values is adjusted according to the difficulty level. Specifically, it is assumed that the minimum detection performance can be obtained without using many score maps when the difficulty level is low, and the combination is determined by reducing the number of setting values compared to when the difficulty level is high.
[0109] In this embodiment, the following changes are made to the process according to the flowchart in Fig. 4. In this embodiment, only the process in step S405 is different from the first embodiment.
[0110] In the following description, it is assumed that the process from step S401 to step S404 obtains "candidates for combination of setting values" surrounded by a dotted rectangle 515 as candidates for combination of setting values, and in step S405, a combination of setting values is determined from these candidates. The process of step S405 according to this embodiment will be described below with reference to the flowchart in FIG.
[0111] In step S1101, the correct image acquisition unit 380 acquires correct images of a plurality of structures, and in step S1102, the correct image acquisition unit 380 acquires a partial correct image of the image of the detection target. Note that the resolution of the images of the plurality of structures and the image of the detection target is the same.
[0112] Next, in step S1103, the determination unit 350 estimates the difficulty level of the image of the detection target using the correct image of the images of the multiple structures and the partial correct image. As a method, the images of the multiple structures are divided into several difficulty classes based on a statistical value. The statistical value is, for example, the variance of the correct region. An image with a large variance is interpreted as having a large variation in the area of the correct region and a high difficulty level, and here, the level is divided according to the size of the variance. For example, the images of the multiple structures are divided into four levels based on three predetermined values, and the difficulty levels of each class are determined as levels 1, 2, 3, and 4 from the lowest. Then, the statistical value is calculated from the partial correct image in the same manner, and it is determined which of the above levels 1 to 4 the statistical value corresponds to, and the corresponding level is estimated as the difficulty level of the image of the detection target. Here, it is assumed that the difficulty level is determined to be level 2.
[0113] Next, in step S1104, the determination unit 350 determines the number of setting values for the combination on a rule basis based on the difficulty level estimated in step S1103. For example, the numbers of setting values are determined to be 1, 2, 3, and 4 for difficulty levels 1, 2, 3, and 4, respectively. As an example here, since the difficulty level is estimated to be level 2 in step S1103, the number of setting values is determined to be 2 in step S1104.
[0114] Finally, in step S1105, the determination unit 350 selects a combination using the number of setting values determined in step S1104 and the candidate combinations of setting values. Because the number of setting values is determined to be two by the above process, the candidate combination of setting values "500pixel, 1000pixel" that includes two setting values is selected as the combination.
[0115] As described above, the difficulty level of the image of the detection target is estimated, and the combination can be determined based on the difficulty level. According to this method, when the difficulty level is low, the number of setting values included in the combination can be reduced, thereby shortening the processing time according to the image while ensuring the minimum detection performance.
[0116] In the above, the variance of the correct answer region is used as a statistical value when estimating the difficulty level, but the purpose can be achieved in the same way as the above method by using image features. In this method, in addition to the correct answer images of the multiple structures and the correct answer images of the detection target, the corresponding images must also be read in order to estimate the difficulty level. First, the correct answer images of the multiple structures are referenced, and the detection target region and the background region on the corresponding image are cut out, and image features are obtained from each of them. The image feature is, for example, the average brightness. Next, for each of the images of the multiple structures, the similarity between the image feature of the detection target region and the image feature of the background region in the image is calculated. When the similarity is high, it is interpreted that it is difficult to distinguish the detection target region and the background region, and when the similarity is low, it is interpreted that it is easy to distinguish, and the similarity is obtained for each of the images of the multiple structures. Then, the level of difficulty of the images of the multiple structures is determined in the same way as above according to the magnitude of the similarity. Finally, the similarity is also obtained from the image of the detection target, and the level corresponding to the similarity is estimated as the difficulty level. The above is the method of estimating the difficulty level based on the image features.
[0117] Note that image features are not limited to luminance, and may be texture information or CNN features, as described below. Texture information can be extracted, for example, by applying a Fourier transform, which is one method of acquiring frequency components, to an image. CNN features are data generated from a map of feature amounts that can be acquired by applying a deep learning architecture to an image. While other image features are manually set by humans, CNN features are automatically set by a machine. For example, a histogram is calculated from the feature map, and the histogram is used as the image feature.
[0118] In the above, a method of estimating the difficulty level using one statistical value was described, but there are cases where it is difficult to estimate the difficulty level using only one statistical value. For example, when only variance is used as a statistical value, the difficulty level due to the similarity between the detection target area and the background area on the image is not taken into consideration. Therefore, it is better to estimate the difficulty level based on multiple statistical values. For example, the difficulty level can be estimated using both the above-mentioned variance and image features. For example, the difficulty level for each image of a structure is classified based on the magnitude of the linear sum of the statistical values. In this way, a method using multiple statistical values can estimate the difficulty level from multiple perspectives, so a more appropriate number of setting values can be determined.
[0119] In the above, we have described a method for determining the number of set values to be included in a combination based on the difficulty level when there is a correct image of the detection target, but there is also a method for determining combinations without using the difficulty level. For example, there is a method for comparing correct images of multiple structures with partial correct images of the detection target and determining combinations based on similarity.
[0120] In this method, it is assumed that information on appropriate combinations has been experimentally obtained for a plurality of structures, and information on appropriate combinations is linked to each image of the structure. Then, among the images of the plurality of structures, information on combinations linked to images of structures that have high similarity to the image of the detection target is obtained, and the obtained combination is determined as an appropriate combination. Specifically, for each frequency distribution obtained from the correct images of the plurality of structures, the similarity with the frequency distribution obtained from the partial correct image of the detection target is calculated, and an image of a structure with high similarity is selected. Then, the combination linked to the selected image of the structure is determined as an appropriate combination of setting values for the image of the detection target. By determining the combination in this way while taking into account the similarity of the data, an appropriate combination can be applied to the image of the detection target without repeating experimental trials.
[0121] If there is no image of a structure with a high similarity among the images of the multiple structures, it may be determined that the information of the combination linked to the images of those structures cannot be applied, and a message may be output as an exception processing. By receiving the message, the user can determine that a different method described above should be applied to the image of the detection target, rather than a method based on similarity. The output form of this message is not limited to a specific output form, and may be, for example, displayed as text information on the display unit 205, or may be output as sound via a speaker (not shown).
[0122] The numerical values, processing timing, processing order, window configurations and operation methods used in the above explanation are given as examples to provide a concrete explanation, and are not intended to be limiting.
[0123] In addition, any part or all of the embodiments and modifications described above may be used in appropriate combination. In addition, any part or all of the embodiments and modifications described above may be used selectively.
[0124] (Other embodiments) The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.
[0125] The invention is not limited to the above-described embodiments, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, the following claims are appended to apprise the public of the scope of the invention. [Explanation of symbols]
[0126] 310: Attribute acquisition unit 320: Image acquisition unit 330: Evaluation unit 340: Resolution acquisition unit 350: Determination unit 360: Detection unit 370: Integration unit 380: Correct image acquisition unit 390: Model storage unit
Claims
1. a determination means for obtaining attributes of a detection target to be detected from an image including a structure, and determining setting values of parameters related to an image range based on the attributes; a detection means for detecting the detection target within an image range of the image based on the set value; Equipped with The information processing apparatus is characterized in that the determination means determines an image range of a size indicated by the setting value according to the attribute.
2. The determining means determines a combination of the parameters; The information processing apparatus according to claim 1 , wherein the detection means detects the detection target within an image range of the image based on the combination.
3. Furthermore, a means for acquiring a correct image in which a detection target area of the image is a correct area; The information processing apparatus according to claim 2 , wherein the determining means determines the combination based on the correct solution area.
4. 4. The information processing apparatus according to claim 3, wherein the determining means determines the combination based on a frequency distribution of the areas of the correct solution regions.
5. Furthermore, means for acquiring a resolution of the image; 5. The information processing apparatus according to claim 2, wherein the determining means determines the combination based on the resolution.
6. 6. The information processing apparatus according to claim 5, wherein the determining means determines a combination of setting values suitable for the image from combinations of setting values suitable for the other image based on a ratio between the resolution of the image and the resolution of another image different from the image.
7. means for managing a model for the detection in association with the setting value and a resolution of the image; 6. The information processing apparatus according to claim 2, wherein the determining means selects a corresponding model based on the resolution of the image and a setting value included in the combination.
8. Furthermore, an evaluation means for evaluating accuracy of a score map representing a result of the detection by the detection means based on the correct image; The information processing apparatus according to claim 3 , wherein the determining means determines the combination based on the evaluation.
9. The information processing device according to any one of claims 2 to 8, characterized in that the determination means determines the number of setting values to be included in the combination based on detection performance predicted based on the number of setting values and processing time predicted based on the number of setting values.
10. 10. The information processing apparatus according to claim 9, wherein the determining unit displays the detection performance predicted based on the number of set values and the processing time predicted based on the number of set values in a comparative manner.
11. The information processing apparatus according to claim 8 , wherein the determining means determines the number of the setting values to be included in the combination by determining detection performance predicted depending on the number of setting values based on a result of the evaluation.
12. The information processing device according to any one of claims 2 to 11, characterized in that the detection means acquires, for each setting value included in the combination, a score map which is the result of detection by the detection means based on the setting value, and acquires an integrated result by integrating the acquired score maps.
13. Furthermore, A means for managing the model for the detection in association with the reliability of the model, The information processing device according to claim 12, characterized in that the detection means performs the integration by adding the score maps obtained for each setting value included in the combination, weighting the score maps according to the reliability of the model that output the score maps.
14. The information processing apparatus according to claim 12 , wherein the detection means performs the integration by adding up score maps obtained for the setting values included in the combinations, weighted by a weight based on the attribute.
15. 3 . The information processing apparatus according to claim 2 , wherein the determining unit receives an input of a determination result as to whether or not a patch image cut out from the image is the detection target, and determines the combination based on the input.
16. Furthermore, The information processing device according to claim 3, further comprising a learning means for generating a trained model for detecting the detection target by learning a model based on an error between the detection result and the correct image.
17. The learning means learns one model, 17. The information processing apparatus according to claim 16, wherein the detection means detects the detection target by using the one model and the combination for an image different from the image.
18. The information processing device described in any one of claims 3 to 8, 12 to 17, characterized in that the determination means obtains statistical values regarding the correct area from a correct answer image in which the area of the detection target of the image is the correct area and a correct answer image in which the area of the detection target of an image different from the image is the correct area, estimates a difficulty level of the image based on the statistical values, and determines the number of setting values to be included in the combination based on the difficulty level.
19. The information processing device described in any one of claims 3 to 8, 12 to 17, characterized in that the determination means obtains a similarity between image features of the detection target area and the background area from each of a plurality of images and the image, estimates a difficulty level of the image based on the similarity, and determines the number of setting values to be included in the combination based on the difficulty.
20. 3 . The information processing apparatus according to claim 2 , wherein the determining means determines the combination based on a similarity between a frequency distribution of detection target regions in a plurality of images and a frequency distribution of detection target regions in the image.
21. 21. The information processing apparatus according to claim 20, wherein the determining means outputs a message when the similarity of the frequency distributions is low.
22. a determination means for obtaining attributes of a detection target to be detected from an image and determining setting values of parameters related to an image range based on the attributes; a detection means for detecting the detection target within an image range of the image based on the set value; An acquisition means for acquiring a correct image in which a detection target area of the image is a correct area, The determining means determines a combination of the parameters based on the correct solution area; The information processing device is characterized in that the detection means detects the detection target within an image range of the image based on the combination.
23. a determination means for obtaining attributes of a detection target to be detected from an image and determining setting values of parameters related to an image range based on the attributes; a detection means for detecting the detection target within an image range of the image based on the set value; An acquisition means for acquiring a resolution of the image; Equipped with The determining means determines the combination of parameters based on the resolution, The information processing device is characterized in that the detection means detects the detection target within an image range of the image based on the combination.
24. An information processing method performed by an information processing device, a determination step of acquiring attributes of a detection target to be detected from an image including a structure, and determining setting values of parameters related to an image range based on the attributes; a detection step of detecting the detection target within an image range of the image based on the set value; Equipped with The information processing method, wherein the determining step determines an image range of a size indicated by the setting value according to the attribute.
25. An information processing method performed by an information processing device, a determination step of acquiring attributes of a detection target to be detected from an image and determining setting values of parameters related to an image range based on the attributes; a detection step of detecting the detection target within an image range of the image based on the set value; an acquisition step of acquiring a correct image in which the detection target region of the image is a correct region; Equipped with In the determination step, a combination of parameters is determined based on the correct solution area; The information processing method, wherein in the detection step, the detection target is detected within an image range of the image based on the combination.
26. An information processing method performed by an information processing device, a determination step of acquiring attributes of a detection target to be detected from an image and determining setting values of parameters related to an image range based on the attributes; a detection step of detecting the detection target within an image range of the image based on the set value; acquiring a resolution of the image; Equipped with In the determining step, the combination of parameters is determined based on the resolution; In the detection step, the detection target is detected within an image range of the image based on the combination.
23. An information processing method comprising:
27. A computer program for causing a computer to function as each of the means of the information processing device according to any one of claims 1 to 23.
Citation Information
Patent Citations
Image processor and method of controlling the same
JP2009271792A
Inspection device, inspection method, and inspection program
JP2017194334A
Image processing device, information processing device and method, as well as program
JP2018005555A
Attribute determining device, attribute determining method, computer program, and recording medium
JP2018067149A
Continuous vapor-phase polymerization of ethylene
JP1983034812A
