Area correction device, area correction method, and program

The area correction device and method enhance image analysis accuracy by refining prediction areas using line segment extraction and correction, addressing errors from shadow and curvature distortions in image analysis.

JP7560793B2Active Publication Date: 2024-10-03NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023543585
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-08-26
Publication Date
2024-10-03
Estimated Expiration
2041-08-26

AI Technical Summary

Technical Problem

Existing image analysis methods, such as deep learning, often result in erroneous detection of areas in images due to shadow formation and curvature distortions, leading to inaccurate detection of subjects in real space.

Method used

An area correction device and method that includes an input unit for prediction area information, a line segment extraction unit to extract the outline of the subject, and a correction unit to refine the prediction area based on line segments, ensuring accurate detection of the subject's area in the image.

Benefits of technology

The solution enables high-precision detection of the area corresponding to the subject in real space, correcting for errors caused by shadows and distortions without increasing calculation cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007560793000001
    Figure 0007560793000001
  • Figure 0007560793000002
    Figure 0007560793000002
  • Figure 0007560793000003
    Figure 0007560793000003
Patent Text Reader

Abstract

An area correction device (1) according to the present disclosure is provided with: an input unit (41) that receives input of predicted area information indicating a predicted area (PA) representing an image of a prescribed subject as detected from a captured image of the prescribed subject; a line segment extraction unit (42) that extracts line segments on the basis of the contour of the predicted area (PA) indicated by the predicted area information; a correction unit (43) that corrects the predicted area (PA) on the basis of the line segments; and an output unit (44) that outputs corrected predicted area information indicating the corrected predicted area PA.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an area correction device, an area correction method, and a program. [Background technology]

[0002] Conventionally, when an image analysis device detects an area (prediction area PA) showing an image of a specific subject in an image using an image analysis method such as deep learning, erroneous detection may occur. For example, while an area (correct answer area PAc) in a captured image corresponding to an area in which a specific subject exists in real space is shown as in Fig. 17A, the image analysis device may detect a prediction area PA as shown in Fig. 17B.

[0003] In more detail, as shown in FIG. 18A, which is an enlarged view of the rectangle RC1A in FIG. 17A, the contour of the correct answer area PAc is a line segment that extends straight. In contrast, as shown in FIG. 18B, which is an enlarged view of the rectangle RC1A in FIG. 17B, the contour of the predicted area PA is made up of a series of lines that are shorter than the line segments of the correct answer area PAc and shifted from one another. Also, as shown in FIG. 19A, which is an enlarged view of the rectangle RC2A in FIG. 17A, the contour that defines the correct answer area PAc is a line segment that extends straight. In contrast, as shown in FIG. 19B, which is an enlarged view of the rectangle RC2B in FIG. 17B, the contour of the predicted area PA, especially the rightmost one, is curved.

[0004] That is, as shown in Fig. 18B, the image analysis device may detect a part that is not the correct answer area PAc as the predicted area PA, or may not detect a part that is the correct answer area PAc as the predicted area PA. Such erroneous detection is considered to be caused by the formation of an image such as a shadow in the part of the image corresponding to the subject, depending on the light irradiated on the subject in real space.

[0005] Non-Patent Document 1 describes a method that takes advantage of the fact that lines of text written on paper are straight lines, and corrects the curvature distortion and inclination of the lines of text by fitting the lines of text shown in a binary image and a grayscale image scanned by a scanning device to a distortion model while taking into account the consistency of the entire page.

[0006] Furthermore, Non-Patent Document 2 describes a method for improving the accuracy of detecting cracks in a concrete structure by detecting cracks in the concrete structure based on brightness values ​​from an image of the concrete structure as a subject, and by identifying formwork marks based on the linearity of the cracks. [Prior art documents] [Non-patent literature]

[0007] [Non-Patent Document 1] Hiroki Esaki and 3 others, "A method for correcting document image curvature distortion based on global optimization," Image Recognition and Understanding Symposium (MIRU2005), 2005 [Non-Patent Document 2] Zenbongi, et al., "Detection of cracks by image analysis and identification of formwork marks and P-concrete remains by Hough transform," Proceedings of the Japan Concrete Institute, Vol. 37, No. 1, 2015. Summary of the Invention [Problem to be solved by the invention]

[0008] However, the technique described in Non-Patent Document 1 requires correction of the entire image, which increases calculation costs. Furthermore, the technique described in Non-Patent Document 1 has the disadvantage that correcting the entire image distorts the shape of the subject's image, making it difficult to accurately detect the position of the subject's image in the image.

[0009] In addition, the technology described in Non-Patent Document 2 detects line segments included in an image, but does not correct the line segments included in the image. Therefore, the technology described in Non-Patent Document 2 cannot detect an area showing an image of a subject with high accuracy, and therefore it is difficult to detect an area in an image that corresponds to an area in real space where a specific subject exists with high accuracy.

[0010] In consideration of the above circumstances, an object of the present disclosure is to provide an area correction device, an area correction method, and a program capable of detecting, with high accuracy, an area in an image that corresponds to an area in real space where a specific subject exists. [Means for solving the problem]

[0011] In order to solve the above problem, the area correction device disclosed herein includes an input unit that accepts input of prediction area information indicating a prediction area showing an image of a specific subject detected from an image of the specific subject, a line segment extraction unit that extracts a line segment corresponding to the contour of the specific subject based on the contour of the prediction area indicated by the prediction area information, a correction unit that corrects the prediction area based on the line segment, and an output unit that outputs corrected prediction area information indicating a corrected prediction area, which is the corrected prediction area.

[0012] In addition, in order to solve the above problem, the area correction method disclosed herein includes the steps of accepting input of predicted area information indicating a predicted area showing an image of a specified subject, detected from an image capturing the specified subject, extracting a line segment corresponding to the contour of the specified subject based on the contour of the predicted area indicated by the predicted area information, correcting the predicted area based on the line segment, and outputting corrected predicted area information indicating the corrected predicted area obtained by correcting the predicted area.

[0013] In order to solve the above problem, a program according to the present disclosure causes a computer to function as the above-mentioned area correction device. Effect of the Invention

[0014] According to the area correction device, area correction method, and program of the present disclosure, it is possible to detect with high accuracy an area in an image that corresponds to an area in real space where a predetermined subject exists. [Brief description of the drawings]

[0015] [Figure 1A] 1 is a schematic diagram of an area correction system according to a first embodiment. [Figure 1B] 1B is a schematic diagram of a line segment extraction unit shown in FIG. 1A. [Figure 1C] FIG. 1B is a schematic diagram of a correction unit shown in FIG. 1A. [Diagram 2] 1B is a diagram showing an example of a captured image acquired by the image acquisition device shown in FIG. 1A. [Diagram 3] 3 is a diagram showing an example of a binarized image indicating a predicted region detected from the captured image shown in FIG. 2; [Figure 4] 4 is a diagram showing line segment candidates detected from the binarized image shown in FIG. 3. [Figure 5A] FIG. 4 is a diagram for explaining extraction of line segments in the first example. [Figure 5B] FIG. 11 is a diagram for explaining extraction of line segments in the second example. [Figure 5C] FIG. 13 is a diagram for explaining extraction of line segments in the third example. [Figure 5D] FIG. 13 is a diagram for explaining extraction of line segments in the fourth example. [Figure 6] FIG. 4 is an enlarged view of a portion of the binarized image shown in FIG. [Figure 7A] FIG. 2 is a schematic diagram showing a predicted region and a non-predictive region in a part of a binarized image. [Figure 7B] 7B is a schematic diagram showing line segment pixels in a part of the binarized image shown in the schematic diagram of FIG. 7A. [Figure 8A] 7C is a schematic diagram showing a part of a stored image in which the arrangement of the peripheral pixels shown in FIG. 7B has been changed. FIG. [Figure 8B] 8B is a schematic diagram showing a part of a corrected image in which the surrounding pixels shown in FIG. 8A have been redetermined; FIG. [Figure 9] 1B is a sequence diagram showing an example of an operation of the area correction device shown in FIG. 1A. [Figure 10] 10 is a sequence diagram showing details of a process of extracting a line segment shown in FIG. 9. FIG. [Figure 11] 10 is a sequence diagram showing details of a process of correcting the prediction region shown in FIG. 9. FIG. [Figure 12A] FIG. 11 is a schematic diagram of an area correction system according to a second embodiment. [Figure 12B] FIG. 12B is a schematic diagram of the conversion unit shown in FIG. 12A. [Figure 13A] FIG. 2 is a schematic diagram showing an image including images of a first subject and a second subject. [Figure 13B] 13B is a schematic diagram showing a predicted region of a first subject shown in FIG. 13A. FIG. [Figure 13C] FIG. 13C is a schematic diagram showing a closing prediction region obtained by subjecting the prediction region shown in FIG. 13B to a closing process. [Figure 14] 12B is a sequence diagram showing an example of the operation of the area correction device shown in FIG. 12A. [Figure 15] 15 is a sequence diagram showing details of a process of converting the prediction region information shown in FIG. 14. FIG. [Figure 16] FIG. 2 is a hardware block diagram of the area correction device. [Figure 17A] FIG. 13 is a schematic diagram showing a correct answer region. [Figure 17B] FIG. 13 is a schematic diagram showing a prediction region. [Figure 18A] FIG. 17B is an enlarged view of a portion of FIG. 17A. [Figure 18B] FIG. 17C is an enlarged view of a portion of FIG. 17B. [Figure 19A] FIG. 17B is an enlarged view of another part of FIG. 17A. [Figure 19B] FIG. 17C is an enlarged view of another part of FIG. 17B. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] <<First embodiment>> The overall configuration of the first embodiment will be described with reference to FIGS. 1A, 1B, and 1C.

[0017] As shown in FIG. 1A, the area correction system 100 according to the first embodiment includes an image acquisition device 1, an image saving device 2, an image analysis device 3, an area correction device 4, and a data storage device 5.

[0018] <Configuration of image acquisition device> The image acquisition device 1 may be configured by a camera including an optical element, an image sensor, and an output interface. The output interface is an interface for outputting the image captured by the image sensor.

[0019] The image acquisition device 1 acquires a captured image of a subject as shown in Fig. 2. The captured image is composed of pixels two-dimensionally arranged in a predetermined direction (the y-axis direction in Fig. 2) and a direction perpendicular to the predetermined direction (the x-axis direction in Fig. 2). In the example of Fig. 2, the predetermined subject extends in a direction corresponding to the y-axis direction in real space, and the captured image includes an image IM of the predetermined subject. Note that in the example of a diagram showing a binarized image based on the captured image, which will be referred to hereinafter, the predetermined direction and the perpendicular direction are the y-axis direction and the x-axis direction, respectively.

[0020] The predetermined subject may be a component to be inspected. Specifically, the predetermined subject may be a component constituting a structure, for example, a reinforcing bar provided in a trench, a manhole, a handhole, or the like. In this embodiment, the contour of the subject is known, for example, a line segment. The contour of the predetermined subject is known. The contour of the predetermined subject may be, for example, a line segment, but is not limited to this, and may be any line. In the following, an example in which the contour of the predetermined subject is a line segment will be described in detail.

[0021] Moreover, the image acquisition device 1 outputs the captured image to the image storage device 2.

[0022] <Image storage device configuration> The image storage device 2 shown in FIG. 1A may be configured by a computer including a memory, a control unit (controller), an input interface, and an output interface. The memory may be configured by a hard disk drive (HDD), a solid state drive (SSD), an electrically erasable programmable read-only memory (EEPROM), a read-only memory (ROM), a random access memory (RAM), or the like. The control unit may be configured by dedicated hardware such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA), or may be configured by a processor, or may be configured to include both. The input interface may be a pointing device, a keyboard, a mouse, or the like. The input interface may also be an interface that accepts input of information received by a communication interface. For the communication interface, standards such as Ethernet (registered trademark), Fiber Distributed Data Interface (FDDI), Wi-Fi (registered trademark), or the like may be used.

[0023] The image storage device 2 stores the captured images acquired by the image acquisition device 1. The image storage device 2 also outputs the captured images to the image analysis device 3.

[0024] <Image analysis device configuration> The image analysis device 3 may be configured by a computer including a memory, a control unit (controller), an input interface, and an output interface.

[0025] The image analysis device 3 receives an input of a captured image stored by the image storage device 2. Then, the image analysis device 3 detects a prediction area PA in the captured image. The prediction area PA is an area in the captured image that is detected as showing an image of a predetermined subject.

[0026] The predicted area PA has an error with respect to the correct area PAc due to the fact that the light irradiated to the subject is blocked by another object and a shadow is formed. The correct area PAc is an area in the captured image that corresponds to an area in which a specific subject exists in real space. For example, the contour BDc of the correct area PAc in the example described with reference to FIG. 17A is a line segment extending from the upper end to the lower end of the binarized image showing the correct area PAc. In contrast, the line segments constituting the contour BD of the predicted area PA in the example shown in FIG. 3 do not extend straight from the upper end to the lower end of the binarized image showing the predicted area PA, and are shifted and connected to each other, the line segments being shorter than the line segments showing the contour BDc.

[0027] The method by which the image analysis device 3 detects the prediction area PA may be any method. As an example, the image analysis device 3 may detect the prediction area PA by a method such as deep learning. Furthermore, the image analysis device 3 may detect the prediction area PA by a method according to the subject.

[0028] Furthermore, when the image analysis device 3 detects the prediction area PA in the captured image, it outputs prediction area information indicating the position of the prediction area PA in the captured image to the area correction device 4. The prediction area information may be a binary image composed of pixels determined to be either prediction pixels included in the prediction area PA or non-prediction pixels included in a non-prediction area that is not the prediction area PA. As shown in FIG. 3, the prediction pixels may be indicated by a first color (e.g., white), and the non-prediction pixels may be indicated by a second color (e.g., black). In the example of FIG. 3, the black color of the non-prediction pixels is indicated by halftone dots. Alternatively, the first color may be black, and the second color may be white. That is, the image analysis device 3 detects the prediction area in the captured image, determines the pixels included in the prediction area as prediction pixels, and determines the pixels included in the non-prediction area that is not the prediction area as non-prediction pixels, thereby generating a binary image indicating the prediction area information.

[0029] <Configuration of area correction device> The area correction device 4 includes an input unit 41, a line segment extraction unit 42, a correction unit 43, and an output unit 44. The input unit 41 is configured by an input interface. The line segment extraction unit 42 and the correction unit 43 can form a control unit, and the output unit 44 is configured by an output interface.

[0030] The input unit 41 receives input of prediction region information indicating a prediction region PA showing an image of a specific subject detected from a captured image of the specific subject. The input unit 41 receives input of the prediction region information output by the image analysis device 3.

[0031] The line segment extraction unit 42 extracts line segments based on the contour of the prediction area PA indicated by the prediction area information. For example, the line segment extraction unit 42 extracts a plurality of line segment candidates based on the contour, and extracts line segments from the plurality of line segment candidates based on one or more of the distance between each of the plurality of line segment candidates and other line segment candidates, the length of each of the plurality of line segment candidates, the extension direction of each of the plurality of line segment candidates, and the presence or absence of intersection of each of the plurality of line segment candidates with other line segment candidates.

[0032] The line segment extraction unit 42 includes a detection unit 421 and an extraction unit 422 .

[0033] The detection unit 421 detects line segment candidates based on the contour of the prediction area PA indicated by the prediction area information received by the input unit 41. Specifically, the detection unit 421 detects, as line segment candidates, line segments that minimize an error from each of a plurality of lines that are connected while having a deviation smaller than a threshold value in the contour of the prediction area PA indicated by the binarized image that is the prediction area information. At this time, as shown in FIG. 4, multiple line segment candidates may be detected corresponding to one of the contours of one prediction area PA (see FIG. 3) due to the contour of the prediction area PA not extending straight. In FIG. 4, the line segment candidates are indicated by white lines, and FIG. 4 shows that a plurality of thin white lines are arranged close to each other, overlap, or intersect.

[0034] The extraction unit 422 extracts a line segment corresponding to the contour of the prediction area PA, which is used in the correction by the correction unit 43, from a plurality of line segment candidates as shown in FIG.

[0035] Here, first to fourth examples of the process performed by the extraction unit 422 to extract line segments from the line segment candidates LN will be described in detail with reference to FIGS. 5A to 5D.

[0036] In a first example, the extraction unit 422 extracts lines based on the distance between each of the multiple line segment candidates LN detected by the detection unit 421 and the other line segment candidates LN. For example, when the distance between each of the line segment candidates LN and the other line segment candidates LN is equal to or less than a predetermined distance, the extraction unit 422 extracts only one of the line segment candidates LN as a line segment.

[0037] Specifically, as shown in FIG. 5A, the extraction unit 422 selects two line segment candidates LN from among the multiple line segment candidates LN detected by the detection unit 421. Then, the extraction unit 422 calculates a start point-to-start point distance ls, which is a distance between one end point (start point Ps) of one line segment candidate LN and one end point (start point Ps) of the other line segment candidate LN, among the two line segment candidates LN. The start point Ps of the other line segment candidate LN is an end point closer to the start point Ps of one line segment candidate LN, among the end points of the other line segment candidate LN. In addition, the extraction unit 422 calculates an end point-to-end point distance lf, which is a distance between the other end point (end point Pf) of one line segment candidate LN and the other end point (end point Pf) of the other line segment candidate LN, among the two line segment candidates LN. The end point Pf of the other line segment candidate LN is an end point closer to the end point Pf of one line segment, among the end points of the other line segment candidate LN.

[0038] Then, the extraction unit 422 judges whether the distance between the start points ls and the distance between the end points lf are each equal to or less than a predetermined distance. If the extraction unit 422 judges that the distance between the start points ls and the distance between the end points lf are each equal to or less than a predetermined distance, the extraction unit 422 extracts only one of the line segment candidates LN as a line segment. If the extraction unit 422 judges that either the distance between the start points ls or the distance between the end points lf is longer than a predetermined distance, the extraction unit 422 extracts both of the line segment candidates LN as line segments.

[0039] In the second example, as shown in FIG. 5B, the extraction unit 422 calculates the length l of each of the multiple line segment candidates LN detected by the detection unit 421. Then, the extraction unit 422 determines whether the length l of each of the multiple line segment candidates LN is equal to or greater than a predetermined length. The predetermined length can be a length according to the subject for which the prediction area PA is to be detected. If the extraction unit 422 determines that the length l is equal to or greater than the predetermined length, it extracts the line segment candidate LN having the length l as a line segment. If the extraction unit 422 determines that the length l is less than the predetermined length, it does not extract the line segment candidate LN having the length l as a line segment.

[0040] In the second example, the extraction unit 422 may first determine whether or not both ends of a plurality of line segment candidates LN are located at both ends (upper end and lower end) of the binarized image. Then, the extraction unit 422 may calculate the length l of the line segment candidates LN whose both ends are not located at both ends of the binarized image, and determine whether or not the length l is equal to or greater than a predetermined length.

[0041] In the third example, the extraction unit 422 extracts lines from the line segment candidates LN based on the extension direction of each of the line segment candidates LN detected by the detection unit 421. For example, the extraction unit 422 may extract lines from the line segment candidates LN based on an acute angle formed with respect to the y-axis direction in the extension direction of each of the line segment candidates LN.

[0042] For example, the extraction unit 422 may determine that the extension direction of each line segment candidate LN is equal to or smaller than a predetermined angle with respect to the y-axis direction based on the first distance and the second distance. The first distance is the distance between the start point Ps and the end point Pf of the line segment candidate LN in the x-axis direction. The second distance is the distance between the start point Ps and the end point Pf in the y-axis direction.

[0043] Specifically, the extraction unit 422 calculates the distance in the x-axis direction between the start point Ps and the end point Pf of the line segment candidate LN (x-axis direction distance). In addition, the extraction unit 422 calculates the distance in the y-axis direction between the start point Ps and the end point Pf for each line segment candidate LN (y-axis direction distance). As shown in Fig. 5C, in an example where the coordinates of the start point Ps of the line segment candidate LN are (x1, y1) and the coordinates of the end point Pf of the line segment candidate LN are (x2, y2), the extraction unit 422 calculates the orthogonal direction distance as |x1-x2| and the predetermined direction distance as |y1-y2|.

[0044] Then, the extraction unit 422 judges whether the distance in the y-axis direction is equal to or greater than the distance in the x-axis direction. If the extraction unit 422 judges that the distance in the y-axis direction is equal to or greater than the distance in the x-axis direction, the extraction unit 422 extracts the line segment candidate LN as a line segment. If the extraction unit 422 judges that the distance in the y-axis direction is less than the distance in the x-axis direction, the extraction unit 422 does not extract the line segment candidate LN as a line segment.

[0045] In the fourth example, as shown in Fig. 5D, the extraction unit 422 judges whether or not the multiple line segment candidates LN detected by the detection unit 421 intersect. When the extraction unit 422 judges that the multiple line segment candidates LN intersect, it extracts one of the multiple line segment candidates LN as a line segment. When the extraction unit 422 judges that the multiple line segment candidates LN do not intersect, it extracts each of the multiple line segment candidates LN as a line segment. Furthermore, the extraction unit 422 may calculate the average value of the slopes and the average value of the intercepts of the multiple intersecting line segment candidates LN, and extract a line segment having the slope and the intercept, respectively.

[0046] The correction unit 43 corrects the prediction area PA based on the line segments extracted by the line segment extraction unit 42. Specifically, the correction unit 43 corrects the binarized image based on the arrangement of line segment pixels indicating the line segments extracted by the line segment extraction unit 42 and the prediction pixels and non-prediction pixels. More specifically, the correction unit 43 moves a predetermined number of peripheral pixels positioned adjacent to the line segment pixels in the orthogonal direction to the predetermined direction so that the line segment pixels are aligned in a row in the predetermined direction. Then, the correction unit 43 corrects the binarized image by re-determining the prediction pixels and non-prediction pixels of each of the peripheral pixels based on the number of prediction pixels and the number of non-prediction pixels constituting the peripheral pixels.

[0047] The correction unit 43 includes a surrounding pixel determination unit 431 , a surrounding pixel storage unit 432 , and a surrounding pixel conversion unit 433 .

[0048] The surrounding pixel determination unit 431 determines surrounding pixels based on the prediction region information received by the input unit 41 and the line segments extracted by the line segment extraction unit 42. Specifically, the surrounding pixel determination unit 431 first determines the number of surrounding pixels n based on the prediction region information. Then, the surrounding pixel determination unit 431 determines surrounding pixels based on line segment pixels indicating the line segments and the number of surrounding pixels n.

[0049] The number of surrounding pixels n (n is an odd number) is expressed by equation (1). min can be set to the minimum width of a prediction area PA having a width equal to or greater than a predetermined width in a binarized image. min As shown in Fig. 6, B can be the minimum number of pixels in the x-axis direction between the smallest prediction area PA and the next smallest prediction area PA, which are equal to or larger than a predetermined area, in the binarized image. Fig. 6 is an enlarged view of the rectangle RC in Fig. 3. Also, B min can also be the minimum number of pixels in the x-axis direction between the prediction area PA with the shortest length in the y-axis direction in the binarized image and the prediction area PA with the next shortest length in the y-axis direction. n≦B min (1)

[0050] By determining the number of surrounding pixels n in this way, a surrounding pixel conversion unit 433 (described later) can re-determine whether each of the surrounding pixels is a prediction pixel or a non-prediction pixel, thereby suppressing the influence on pixels constituting other prediction areas PA in the binarized image when correcting the binarized image. As a result, erroneous correction can be suppressed.

[0051] The surrounding pixel determination unit 431 determines the number of surrounding pixels n based on the formula (1). The surrounding pixel determination unit 431 then determines n pixels arranged adjacent to the line segment pixel in the +x-axis direction and the -x-axis direction as surrounding pixels. The line segment pixels are pixels indicating the line segments extracted by the line segment extraction unit 42. Specifically, the surrounding pixel determination unit 431 determines, for each y coordinate, whether the x coordinate of the line segment pixel is greater than or equal to x k Then, the x coordinate is x k +1 to x k A pixel located at +1+n and a pixel with x coordinate x k -1-n to x k The pixel located at -1 is determined as a neighboring pixel.

[0052] The surrounding pixel storage unit 432 stores the surrounding pixels. Specifically, the surrounding pixel storage unit 432 re-determines each of the surrounding pixels as either a prediction pixel or a non-prediction pixel by moving the surrounding pixels at each y coordinate in the x-axis direction so that a line segment extends in the y-axis direction.

[0053] In the example shown in FIG. 7A, the pixel located from the coordinate (0,0) to the coordinate (4,2) and the pixel located from the coordinate (0,3) to the coordinate (2,7) are non-prediction pixels, and the area formed by the non-prediction pixels is the non-prediction area. Also, the pixel located from the coordinate (5,0) to the coordinate (11,2) and the pixel located from the coordinate (3,3) to the coordinate (11,7) are prediction pixels, and the area formed by the prediction pixels is the prediction area PA. Also, in this example, as shown in FIG. 7B, the pixel located from the coordinate (6,0) to the coordinate (6,2) and the pixel located from the coordinate (5,3) to the coordinate (5,7) are line segment pixels (pixels hatched in FIG. 7B).

[0054] Specifically, the surrounding pixel storage unit 432 moves the surrounding pixels so that the line segment pixels are arranged in a row in the y-axis direction and the arrangement order of the predictive pixels and the non-predictive pixels in the x-axis direction is not changed. In this way, the surrounding pixel storage unit 432 generates a stored image in which the surrounding pixels are moved in the binarized image.

[0055] Explaining with reference to examples shown in FIG. 7B and FIG. 8A, the surrounding pixel storage unit 432 moves the surrounding pixels shown in FIG. 7B so that the line segment pixels at y coordinates 0 to 5 are aligned in a row in the y axis direction as shown in FIG. 8A, and the arrangement order of the predicted pixels and the non-predicted pixels in the x axis direction is not changed. More specifically, the surrounding pixel storage unit 432 changes the arrangement of the surrounding pixels by moving each pixel whose y coordinate is 0 by one pixel in the -x axis direction so that the line segment pixel located at the coordinate (6, 0) in FIG. 7B is located at the coordinate (5, 0) in FIG. 8A. Similarly, the surrounding pixel storage unit 432 changes the arrangement of the surrounding pixels by moving each pixel whose y coordinate is 1 by one pixel in the -x axis direction so that the line segment pixel located at the coordinate (6, 1) in FIG. 7B is located at the coordinate (5, 1) in FIG. 8A. Similarly, the surrounding pixel storage unit 432 changes the arrangement of the surrounding pixels by moving each pixel whose y coordinate is 2 by one pixel in the -x-axis direction so that the line segment pixel located at coordinate (6, 2) in Fig. 7B is located at coordinate (5, 2) in Fig. 8A. In this example, the surrounding pixel storage unit 432 does not move the pixels located at y coordinates 3 to 7. As a result, the pixels are arranged so that the line segment pixels are lined up in a row in the y-axis direction within the correction area including the line segment pixels and the surrounding pixels.

[0056] 8B, the surrounding pixel conversion unit 433 generates a corrected image indicating a corrected prediction area obtained by correcting the prediction area PA by re-determining whether the surrounding pixels in the stored image stored by the surrounding pixel storage unit 432 are predictive pixels or non-predictive pixels. Specifically, the surrounding pixel conversion unit 433 re-determines whether the surrounding pixels on each side are predictive pixels or non-predictive pixels based on the number of non-predictive pixels and the number of predictive pixels among the surrounding pixels on each side of the line segment pixel in the x-axis direction, and generates corrected prediction area information indicating the corrected prediction area constituted by the re-determined predictive pixels.

[0057] More specifically, the surrounding pixel conversion unit 433 determines whether or not the number of prediction pixels is equal to or greater than the number of non-prediction pixels in the surrounding pixels on the +x-axis direction of the line segment pixel for each y coordinate. If the surrounding pixel conversion unit 433 determines that the number of prediction pixels is equal to or greater than the number of non-prediction pixels, it re-determines all the surrounding pixels on the +x-axis direction of the y coordinate as prediction pixels. If the surrounding pixel conversion unit 433 determines that the number of prediction pixels is less than the number of prediction pixels, it re-determines all the surrounding pixels on the +x-axis direction of the y coordinate as non-prediction pixels. Similarly, the surrounding pixel conversion unit 433 determines whether or not the number of prediction pixels is equal to or greater than the number of non-prediction pixels in the surrounding pixels on the -x-axis direction of the line segment pixel for each y coordinate. If the surrounding pixel conversion unit 433 determines that the number of prediction pixels is equal to or greater than the number of non-prediction pixels, it re-determines all the surrounding pixels on the -x-axis direction of the y coordinate as prediction pixels. If the surrounding pixel conversion unit 433 determines that the number of predicted pixels is less than the number of predicted pixels, it re-determines all surrounding pixels on the -x-axis direction side of the y coordinate as non-prediction pixels.

[0058] In the example shown in FIG. 8A, the surrounding pixel conversion unit 433 determines that the number of prediction pixels is 5 and the number of non-prediction pixels is 0 in the surrounding pixels located from coordinate (6,0) to coordinate (10,0) on the +x-axis direction side of the line segment pixel located at coordinate (5,0). Therefore, the surrounding pixel conversion unit 433 determines that the number of prediction pixels is greater than the number of non-prediction pixels. Then, as shown in FIG. 8B, the surrounding pixel conversion unit 433 re-determines the surrounding pixels located from coordinate (6,0) to coordinate (10,0) on the +x-axis direction side of the line segment pixel as prediction pixels (leaving them as prediction pixels). Also, the surrounding pixel conversion unit 433 determines that the number of prediction pixels is 1 and the number of non-prediction pixels is 4 in the surrounding pixels located from coordinate (0,0) to coordinate (4,0) on the -x-axis direction side of the line segment pixel located at coordinate (5,0). Therefore, the surrounding pixel conversion unit 433 determines that the number of prediction pixels is less than the number of non-prediction pixels. Then, the surrounding pixel conversion unit 433 re-determines all surrounding pixels located on the -x-axis direction side of the line segment pixel from coordinate (0,0) to coordinate (4,0) as non-predictive pixels. That is, the surrounding pixel conversion unit 433 leaves the surrounding pixels located from coordinate (0,0) to coordinate (3,0) as non-predictive pixels, and changes the surrounding pixel located at coordinate (4,0) to a non-predictive pixel. The surrounding pixel conversion unit 433 also re-determines the surrounding pixels with y coordinates of 1 to 5 in the same way. As a result, the surrounding pixel conversion unit 433 generates corrected prediction region information indicating a corrected prediction region which is a prediction region PA constituted by the re-determined predicted pixels.

[0059] After the peripheral pixel conversion unit 433 re-determines the peripheral pixels for each y coordinate, it may similarly re-determine the peripheral pixels based on the number of predicted pixels and the number of non-predicted pixels in a predetermined number of adjacent rows in the y-axis direction. For example, when the number of predicted pixels is greater than the number of non-predicted pixels among the peripheral pixels of a predetermined number of adjacent rows, the peripheral pixel conversion unit 433 may re-determine the peripheral pixels of the predetermined number of rows as predicted pixels. In such a configuration, for example, when the number of non-predicted pixels is greater than the number of predicted pixels among the peripheral pixels of a predetermined number of adjacent rows, the peripheral pixel conversion unit 433 may re-determine the peripheral pixels of the predetermined number of rows as predicted pixels. In this example, the "predetermined number" of rows is an odd number.

[0060] In the above-described example, the peripheral pixel conversion unit 433 converts the n peripheral pixels located on the +x-axis direction side of the line segment pixel and the n peripheral pixels located on the -x-axis direction side, but this is not the limit. For example, the peripheral pixel conversion unit 433 may re-determine whether each of the c peripheral pixels (c < n) located on the +x-axis direction side of the line segment pixel and the c peripheral pixels located on the -x-axis direction side is a predicted pixel or a non-predicted pixel. By re-determining whether each of the c peripheral pixels smaller than n is a predicted pixel or a non-predicted pixel in this way, it is possible to suppress the incorrect correction of pixels in a region that does not originally need to be corrected.

[0061] The output unit 44 outputs correction prediction region information indicating the corrected prediction region PA, which is the prediction region corrected by the correction unit 43. Specifically, the output unit 44 may output the correction prediction region information to the data storage device 5 via a communication network. The output unit 44 may also output the correction prediction region information to a display device configured by an organic EL (Electro Luminescence), a liquid crystal panel, or the like.

[0062] <Configuration of Data Storage Device> The data storage device 5 shown in FIG. 1A is configured by a computer including a memory, a control unit, and an input interface. The data storage device 5 stores the correction prediction region information output from the region correction device 4.

[0063] <Operation of area correction device> Here, the operation of the area correction device 4 according to the first embodiment will be described with reference to Fig. 9. Fig. 9 is a flowchart showing an example of the operation of the area correction device 4 according to the first embodiment. The operation of the area correction device 4 described with reference to Fig. 9 corresponds to an example of an area correction method of the area correction device 4 according to the first embodiment.

[0064] In step S11, the input unit 41 receives input of prediction area information indicating a prediction area PA showing an image of a specific subject detected from a captured image of the specific subject. Specifically, the input unit 41 receives input of the prediction area information output by the image analysis device 3.

[0065] In step S12, the line segment extraction unit 42 extracts line segments based on the contour of the prediction area PA indicated by the prediction area information.

[0066] Now, with reference to FIG. 10, the extraction of lines executed by the line segment extracting unit 42 in step S12 will be described in detail.

[0067] In step S121, the detection unit 421 detects line segment candidates LN based on the contour of the prediction area PA indicated by the prediction area information.

[0068] In step S122, extraction unit 422 extracts a line segment that corresponds to the contour of a predetermined subject from the multiple line segment candidates LN detected in step S121.

[0069] Returning to FIG. 9, in step S13, the correction unit 43 corrects the prediction area PA based on the line segment extracted in step S12.

[0070] Here, the correction performed by the correction unit 43 in step S13 will be described in detail with reference to FIG.

[0071] In step S131, the surrounding pixel determination unit 431 determines surrounding pixels based on the prediction region information input by the input unit 41 and the line segments extracted by the line segment extraction unit .

[0072] In step S132, the surrounding pixel storage section 432 stores the surrounding pixels.

[0073] In step S133, the surrounding pixel conversion unit 433 re-determines whether the surrounding pixels stored in step S132 are prediction pixels or non-prediction pixels.

[0074] Returning to FIG. 9, in step S14, the output unit 44 outputs corrected prediction region information indicating the corrected prediction region obtained by correcting the prediction region PA in step S13.

[0075] As described above, according to the first embodiment, the area correction device 4 includes a line segment extraction unit 42 that extracts a line segment based on the contour of the predicted area PA indicated by the predicted area information, a correction unit 43 that corrects the predicted area PA based on the line segment, and an output unit 44 that outputs corrected predicted area information indicating the corrected predicted area obtained by correcting the predicted area PA. This allows the area correction device 4 to detect with high accuracy an area in the captured image that corresponds to an area in real space where a specific subject exists. Furthermore, the area correction device 4 can detect with high accuracy an area in the captured image without increasing the calculation cost.

[0076] According to the first embodiment, the area correction device 4 may extract a plurality of line segment candidates LN based on the contour, and extract a line segment based on the distance between each of the plurality of line segment candidates LN and the other line segment candidates LN. For example, the area correction device 4 may extract only one of the line segment candidates LN as a line segment when the distance between each of the line segment candidates LN and the other line segment candidates LN is equal to or less than a predetermined distance. This allows the area correction device 4 to extract only one line segment that can be detected even when an error is included in the binarized image that is the predicted area information generated by the image analysis device 3 and multiple lines are detected due to the error. Therefore, the area correction device 4 can correct the predicted area PA with high accuracy, and accordingly, can detect with higher accuracy an area in the captured image that corresponds to an area in which a predetermined subject exists in real space.

[0077] According to the first embodiment, the area correction device 4 may extract a plurality of line segment candidates LN based on the contour, and extract a line segment from the plurality of line segment candidates LN based on the length of each of the plurality of line segment candidates LN. For example, the area correction device 4 may determine whether the length of each of the plurality of line segment candidates LN is equal to or less than a predetermined length, and when it is determined that the length is equal to or more than the predetermined length, extract the line segment candidate LN having the length as a line segment. In this way, when an error is included in the binarized image that is the predicted area information generated by the image analysis device 3 and a line segment is erroneously detected due to the error, the area correction device 4 does not extract a line segment having a length less than a predetermined length that is considered to be highly likely to be erroneously detected, thereby making it possible to appropriately extract the line segment. Therefore, the area correction device 4 can correct the predicted area PA with high accuracy, and accordingly, can detect with higher accuracy an area in the captured image that corresponds to an area in which a predetermined subject exists in real space.

[0078] Also, according to the first embodiment, the area correction device 4 may extract a plurality of line segment candidates LN based on the contour, and extract lines from the plurality of line segment candidates LN based on the extension direction of each of the plurality of line segment candidates LN. For example, the area correction device 4 may extract line segment candidates LN whose acute angle in the extension direction with respect to the y-axis direction is equal to or smaller than a predetermined angle as a line segment, and may not extract line segment candidates LN whose acute angle in the extension direction with respect to the y-axis direction is greater than the predetermined angle as a line segment. In an example in which a predetermined subject extending in a direction corresponding to the y-axis direction in real space is the subject of inspection, the line segment showing the contour of the image of the subject is expected to extend in the y-axis direction. Therefore, if the acute angle of the extension direction of the line segment with respect to the y-axis direction is greater than a predetermined angle, the line segment is expected to be highly likely to be erroneously detected. Therefore, the area correction device 4 can correct the predicted area PA with high accuracy by not extracting the line segment expected to be erroneously detected as the correction subject. Accordingly, the area correction device 4 can detect with higher accuracy an area in the captured image that corresponds to an area in real space where a predetermined subject exists.

[0079] Also, according to the first embodiment, the area correction device 4 may extract a plurality of line segment candidates LN based on the contour, and extract a line segment from the plurality of line segment candidates LN based on the presence or absence of intersection of the plurality of line segment candidates LN. For example, when the area correction device 4 determines that the plurality of line segment candidates LN intersect, it may extract one of the plurality of line segment candidates LN as a line segment, and when it determines that the plurality of line segment candidates LN do not intersect, it may extract each of the plurality of line segment candidates LN as a line segment. It is expected that the line segments indicating the contour of the predicted area PA in the captured image in which a predetermined subject is captured will not intersect. Therefore, when a plurality of line segments intersect, it is expected that the plurality of line segments are highly likely to be erroneously detected. Therefore, the area correction device 4 can correct the predicted area PA with high accuracy by not extracting the line segment candidates LN expected to be erroneously detected as lines. Accordingly, the area correction device 4 can detect with high accuracy an area in the captured image corresponding to an area in which a predetermined subject exists in real space.

[0080] (Modification) In the first embodiment described above, the area correction device 4 may store in advance the correct area PAc information indicating the correct area PAc in the captured image. In such a configuration, the area correction device 4 may extract lines only from the vicinity of the contour of the correct area PAc indicated by the correct area information. This allows the area correction device 4 to more efficiently detect the line segments corresponding to the contour of the predicted area PA.

[0081] Furthermore, in the above-described first embodiment, the predicted region information output by the image analysis device 3 may not be a binary image, but may be an image other than the binary image, such as a grayscale image. In such a configuration, the region correction device 4 may include a binary image generation unit. The binary image generation unit binarizes an image other than the binary image, which is the predicted region information output from the image analysis device 3 and accepted as input by the input unit 41, to generate a binary image. Then, the line segment extraction unit 42 executes the above-described processing using the binary image generated by the binary image generation unit.

[0082] <<Second embodiment>> The overall configuration of the second embodiment will be described with reference to Figures 12A and 12B. In the second embodiment, the same functional units as those in the first embodiment are denoted by the same reference numerals, and the description thereof will be omitted.

[0083] As shown in FIG. 12A, the area correction system 100-1 according to the second embodiment includes an image acquisition device 1, an image saving device 2, an image analysis device 3, an area correction device 4-1, and a data storage device 5.

[0084] <Configuration of area correction device> The area correction device 4-1 includes an input unit 41, a line segment extraction unit 42, a correction unit 43, an output unit 44, and a conversion unit 45. The conversion unit 45 constitutes a control unit.

[0085] The conversion unit 45 converts the prediction region information the input of which is accepted by the input unit 41. As shown in FIG.

[0086] The noise removal unit 451 removes noise contained in the prediction region information whose input is accepted by the input unit 41. The noise is a fine non-predictive region contained in the prediction region PA, or a fine prediction region PA contained in the non-predictive region. The fine non-predictive region may be, for example, a non-predictive region having an area equal to or smaller than a predetermined area, or a non-predictive region having an area equal to or smaller than a predetermined ratio with respect to the size of the prediction region PA. The fine prediction region PA may be, for example, a prediction region PA having an area equal to or smaller than a predetermined area, or a prediction region PA having an area equal to or smaller than a predetermined ratio with respect to the area of ​​the non-predictive region.

[0087] Specifically, when a minute non-predictive region is indicated in the prediction region PA indicated by the prediction region information, the noise removal unit 451 converts the minute non-predictive region into the prediction region PA. Similarly, when a minute prediction region PA is indicated in the non-predictive region indicated by the prediction region information, the noise removal unit 451 converts the minute prediction region PA into a non-predictive region.

[0088] The closing processing unit 452 executes a closing process for interpolating a prediction region in a binarized image indicating prediction region information. The closing processing unit 452 may execute the closing process on a binarized image indicating prediction region information inputted and accepted by the input unit 41. The closing processing unit 452 may also execute the closing process on a binarized image indicating prediction region information from which noise has been removed by the noise removal unit 451.

[0089] The closing process can be a process of performing expansion and contraction of morphological transformation. The closing process will be described with reference to Figs. 13A, 13B, and 13C. In the example shown in Fig. 13A, a first subject and a second subject are arranged within the imaging range of a camera in real space, and the second subject is arranged in front of the camera relative to the first subject. In such an example, as shown in Fig. 13A, the image IM2 of the second subject is shown in its entirety in the captured image acquired by the image acquisition device 1, while only a portion of the image IM1 of the first subject is shown in a divided manner.

[0090] The image analyzing device 3 detects a predicted area PA11, which is an area where a part of the image IM1 of the first subject exists, and a predicted area PA12, which is an area where another part exists, as shown in Fig. 13B, from the captured image shown in Fig. 13A. That is, the predicted area PA1 corresponding to the image IM1 of the first subject is detected as being divided into the predicted area PA11 and the predicted area PA12. As described above, since the first subject in the real space is not divided, it is not appropriate to divide the predicted area PA11 and the predicted area PA12.

[0091] Therefore, the closing processing unit 452 generates a closing prediction area CA1 corresponding to the first subject in the real space by interpolating between the divided areas. In the example shown in Fig. 13B, the closing processing unit 452 generates a closing prediction area CA1 including the prediction area PA11 and the prediction area PA12, as well as the interpolated area, as shown in Fig. 13C, by interpolating between the prediction area PA11 and the prediction area PA12.

[0092] The edge processing unit 453 detects the edge of the prediction area PA by performing edge processing on the contour of the closing prediction area CA1 generated by the closing processing unit 452. The edge processing unit 453 may detect the edge of the prediction area PA indicated by the prediction area information input by the input unit 41, or may detect the edge of the prediction area PA indicated by the prediction area information from which noise has been removed by the noise removal unit 451. This suppresses erroneous detection in the subsequent detection of line segment candidates LN by the line segment extraction unit 42. Therefore, lines that indicate the contour of the subject in real space with higher accuracy are extracted.

[0093] In the second embodiment, the line segment extraction unit 42 may extract lines based on the contour of the prediction area PA indicated by the prediction area information from which noise has been removed by the noise removal unit 451. The line segment extraction unit 42 may extract lines based on the contour of the closing prediction area CA from which the closing process has been performed by the closing processing unit 452. The line segment extraction unit 42 may also extract lines constituting the contour of the prediction area PA based on edges detected by the edge processing unit 453.

[0094] <Operation of area correction device> Here, the operation of the area correction device 4-1 according to the second embodiment will be described with reference to Fig. 14. Fig. 14 is a flowchart showing an example of the operation of the area correction device 4-1 according to the second embodiment. The operation of the area correction device 4-1 described with reference to Fig. 14 corresponds to an example of an area correction method of the area correction device 4-1 according to the second embodiment.

[0095] In step S21, the input unit 41 receives an input of the prediction region information output by the image analysis device 3.

[0096] In step S22, the prediction region information inputted and accepted by the input unit 41 is converted.

[0097] Now, with reference to FIG. 15, the conversion performed by the conversion unit 45 in step S22 will be described in detail.

[0098] In step S221, the noise removal unit 451 removes noise contained in the prediction region information.

[0099] In step S222, the closing processing unit 452 executes a closing process for interpolating the prediction region in the binarized image indicated by the prediction region information from which noise has been removed by the noise removing unit 451.

[0100] In step S 223 , the edge processing unit 453 executes edge processing on the contour of the corrected prediction area generated by the closing processing unit 452 .

[0101] Returning to FIG. 14, in step S23, the line segment extraction unit 42 extracts, based on the prediction region information converted by the conversion unit 45, line segments that form at least a part of the contour of the prediction region PA indicated by the prediction region information.

[0102] Subsequently, the area correction device 4-1 executes the processes of steps S24 and S25. The processes of steps S24 and S25 are the same as the processes of steps S13 and S14 in the first embodiment.

[0103] As described above, according to the second embodiment, the area correction device 4-1 further includes a noise removal unit 451 that removes noise contained in the prediction area information, and the correction unit 43 corrects the prediction area PA indicated by the prediction area information from which noise has been removed. This allows the area correction device 4-1 to suppress erroneous detection of line segments, and therefore suppresses erroneous conversion when converting surrounding pixels.

[0104] According to the second embodiment, the area correction device 4-1 further includes a closing processing unit 452 that executes a closing process to interpolate the predicted area in the binarized image indicating the predicted area information, and the correction unit 43 corrects the predicted area PA indicated by the predicted area information indicated by the binarized image on which the closing process has been executed. This allows the area correction device 4-1 to suppress the predicted area PA indicating the image of the predetermined subject from being divided, and this allows the area correction device 4-1 to suppress the extraction of multiple different line segments indicating the contour of the image of the predetermined subject due to the prediction area PA indicating the image of the predetermined subject being divided, and to extract undivided line segments indicating the contour of the image of the predetermined subject that correspond to the contour of the predetermined subject in real space. Therefore, the area correction device 4-1 can accurately detect the area of ​​the image of the object in the captured image.

[0105] In the second embodiment, the conversion unit 45 includes the noise removal unit 451, the closing processing unit 452, and the edge processing unit 453, but is not limited to this. For example, the conversion unit 45 may include at least one of the noise removal unit 451, the closing processing unit 452, and the edge processing unit 453.

[0106] <Program> The above-mentioned area correction devices 4, 4-1 can be realized by a computer 101. A program for functioning as the area correction devices 4, 4-1 may be provided. The program may be stored in a storage medium or provided through a network. FIG. 16 is a block diagram showing a schematic configuration of a computer 101 functioning as the area correction devices 4, 4-1. Here, the computer 101 may be a general-purpose computer, a dedicated computer, a workstation, a PC (Personal Computer), an electronic notepad, or the like. The program instructions may be program code, code segments, or the like for performing necessary tasks.

[0107] 16, the computer 101 includes a processor 110, a read only memory (ROM) 120, a random access memory (RAM) 130, a storage 140, an input unit 150, a display unit 160, and a communication interface (I / F) 170. Each component is connected to each other so as to be able to communicate with each other via a bus 180. The processor 110 is specifically a central processing unit (CPU), a micro processing unit (MPU), a graphics processing unit (GPU), a digital signal processor (DSP), a system on a chip (SoC), or the like, and may be configured by a plurality of processors of the same type or different types.

[0108] The processor 110 controls each component and executes various arithmetic processing. That is, the processor 110 reads a program from the ROM 120 or the storage 140, and executes the program using the RAM 130 as a working area. The processor 110 controls each component and executes various arithmetic processing according to the program stored in the ROM 120 or the storage 140. In the above-described embodiment, the program according to the present disclosure is stored in the ROM 120 or the storage 140.

[0109] The program may be stored in a storage medium readable by the computer 101. By using such a storage medium, the program can be installed in the computer 101. Here, the storage medium in which the program is stored may be a non-transitory storage medium. The non-transitory storage medium is not particularly limited, and may be, for example, a CD-ROM, a DVD-ROM, or a USB (Universal Serial Bus) memory. In addition, the program may be in a form that is downloaded from an external device via a network.

[0110] The ROM 120 stores various programs and various data. The RAM 130 temporarily stores programs or data as a working area. The storage 140 is configured with an HDD (Hard Disk Drive) or an SSD (Solid State Drive) and stores various programs including an operating system and various data.

[0111] The input unit 150 includes one or more input interfaces that receive an input operation from a user and acquire information based on the user's operation. For example, the input unit 150 is a pointing device, a keyboard, a mouse, etc., but is not limited to these.

[0112] The display unit 160 includes one or more output interfaces that output information. For example, the display unit 160 is a display that outputs information as a video or a speaker that outputs information as a sound, but is not limited to these. Note that, if the display unit 160 is a touch panel type display, it also functions as the input unit 150.

[0113] The communication interface (I / F) 170 is an interface for communicating with an external device.

[0114] The following supplementary notes are further disclosed regarding the above embodiment.

[0115] (Additional note 1) The image capturing apparatus includes an input interface for receiving an input of predicted area information indicating a predicted area showing an image of a predetermined object detected from a captured image of the predetermined object, a controller, and an output interface, The controller: extracting line segments based on a contour of the prediction region indicated by the prediction region information; correcting the prediction region based on the line segment; The output interface includes: Outputting corrected predicted region information indicating the corrected predicted region, which is the predicted region that has been corrected Area correction device. (Additional note 2) the prediction region information is a binarized image configured by pixels determined to be either prediction pixels included in the prediction region or non-prediction pixels included in a non-prediction region that is not the prediction region, 2. The area correction device according to claim 1, wherein the controller corrects the binarized image based on an arrangement of line segment pixels indicating the line segment, the prediction pixels, and the non-prediction pixels. (Additional note 3) The controller: moving a predetermined number of neighboring pixels located adjacent to the line segment pixels in a direction perpendicular to the predetermined direction so that the line segment pixels are aligned in a row in the predetermined direction; The area correction device according to claim 2, wherein the binarized image is corrected by re-determining whether the surrounding pixels are the predictive pixels or the non-predictive pixels based on the number of the predictive pixels and the number of the non-predictive pixels that constitute the surrounding pixels. (Additional note 4) The area correction device according to any one of appended claims 1 to 3, wherein the controller extracts a plurality of line segment candidates based on the contour, and extracts the line segments from the plurality of line segment candidates based on one or more of a distance between each of the plurality of line segment candidates and other line segment candidates, a length of each of the plurality of line segment candidates, an extension direction of each of the plurality of line segment candidates, and whether or not each of the plurality of line segment candidates intersects with other line segment candidates. (Additional note 5) The controller: removing noise contained in the prediction region information; 5. The area correction device according to claim 1, further comprising: extracting the line segment based on the predicted area indicated by the predicted area information from which the noise has been removed. (Additional note 6) The controller: A closing process is performed to interpolate the predicted region in the binarized image that is the predicted region information; 5. The area correction device according to claim 1, further comprising: extracting the line segment based on the predicted area indicated by the binarized image on which the closing process has been performed. (Additional note 7) receiving an input of predicted area information indicating a predicted area showing an image of a predetermined object detected from a captured image of the predetermined object; extracting line segments based on a contour of the prediction region indicated by the prediction region information; correcting the prediction region based on the line segment; outputting corrected predicted region information indicating a corrected predicted region obtained by correcting the predicted region; A region correction method including: (Additional note 8) A non-transitory storage medium storing a program executable by a computer, the non-transitory storage medium storing the program causing the computer to function as the area correction device according to any one of claims 1 to 6.

[0116] All publications, patent applications, and standards mentioned in this specification are herein incorporated by reference to the same extent as if each individual publication, patent application, and standard was specifically and individually indicated to be incorporated by reference.

[0117] Although the above-mentioned embodiment has been described as a representative example, it is obvious to those skilled in the art that many modifications and substitutions can be made within the spirit and scope of the present disclosure. Therefore, the present invention should not be interpreted as being limited by the above-mentioned embodiment, and various modifications or changes can be made without departing from the scope of the claims. For example, it is possible to combine multiple building blocks shown in the configuration diagram of the embodiment into one, or to divide one building block. [Explanation of symbols]

[0118] 1. Image acquisition device 2. Image storage device 3. Image analysis equipment 4, 4-1 Area correction device 5 Data storage device 41 Input section 42 Line segment extraction section 43 Correction section 44 Output section 45 Conversion unit 100, 100-1 Area Correction System 101 Computer 110 Processor 120 ROM 130 RAM 140 Storage 150 Input section 160 Output section 170 Communication Interface 180 Bus 421 Detection unit 422 Extraction part 431 Surrounding pixel determination unit 432 Surrounding pixel storage unit 433 Surrounding pixel conversion unit 451 Noise Removal Section 452 Closing Department 453 Edge processing section

Claims

1. an input unit that receives input of predicted area information indicating a predicted area showing an image of a predetermined subject, the predicted area information being detected from a captured image of the predetermined subject; a line segment extraction unit that extracts a line segment corresponding to a contour of the predetermined subject based on a contour of the predicted area indicated by the predicted area information; a correction unit that corrects the prediction area based on the line segment; an output unit that outputs corrected prediction region information indicating the corrected prediction region, the prediction region information is a binarized image configured by pixels determined to be either a prediction pixel included in the prediction region or a non-prediction pixel included in a non-prediction region that is not the prediction region, The correction unit, based on an arrangement of line segment pixels indicating the line segment and the prediction pixels and the non-prediction pixels, moving a predetermined number of neighboring pixels located adjacent to the line segment pixels in a direction perpendicular to the predetermined direction so that the line segment pixels are aligned in a row in the predetermined direction; re-determining whether the neighboring pixel is the prediction pixel or the non-prediction pixel based on the number of the prediction pixels and the number of the non-prediction pixels constituting the neighboring pixel; A region correction device for correcting the binarized image.

2. 2. The area correction device according to claim 1, wherein the line segment extraction unit extracts a plurality of line segment candidates based on the contour, and extracts the line segments from the plurality of line segment candidates based on one or more of a distance between each of the plurality of line segment candidates and other line segment candidates, a length of each of the plurality of line segment candidates, an extension direction of each of the plurality of line segment candidates, and whether or not each of the plurality of line segment candidates intersects with other line segment candidates.

3. a noise removal unit that removes noise contained in the prediction region information, The area correction device according to claim 1 , wherein the line segment extraction section extracts the line segment based on the predicted area indicated by the predicted area information from which the noise has been removed.

4. a closing processing unit that executes a closing process to interpolate the prediction region in the binarized image that is the prediction region information; The area correction device according to claim 1 , wherein the line segment extraction unit extracts the line segment based on the predicted area indicated by the binarized image on which the closing process has been performed.

5. receiving an input of predicted area information indicating a predicted area showing an image of a predetermined object detected from a captured image of the predetermined object; extracting a line segment corresponding to a contour of the predetermined subject based on a contour of the predicted area indicated by the predicted area information; correcting the prediction region based on the line segment; outputting corrected predicted region information indicating a corrected predicted region obtained by correcting the predicted region; Including, the prediction region information is a binarized image configured by pixels determined to be either a prediction pixel included in the prediction region or a non-prediction pixel included in a non-prediction region that is not the prediction region, The correcting step includes: based on an arrangement of line segment pixels indicating the line segment, the prediction pixels, and the non-prediction pixels, moving a predetermined number of neighboring pixels located adjacent to the line segment pixels in a direction perpendicular to the predetermined direction so that the line segment pixels are aligned in a row in the predetermined direction; re-determining whether the neighboring pixel is the prediction pixel or the non-prediction pixel based on the number of the prediction pixels and the number of the non-prediction pixels constituting the neighboring pixel; A region correction method for correcting the binarized image.

6. A program for causing a computer to function as the area correction device according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • IRU2005

  • Area extraction device, area extraction method and recording medium stored with program realizable by computer

    JP1999238138A

  • Map generation device, map distribution method, and map generation program

    JP2004341422A