Information processing device, detection method, and detection program
The information processing device uses relative position vectors to accurately match and align contours in images, addressing erroneous determinations in feature-based relationship identification.
Patent Information
- Application Number
- JP2024543065
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-12-14
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-12-14
AI Technical Summary
Existing methods for determining the relationship between two pieces of information using feature quantities often result in erroneous determinations, particularly when similar shapes are incorrectly identified as having a relationship.
An information processing device that calculates and matches relative position vectors between contours of objects in input and reference images using methods like Sauvola, Canny, and Suzuki85 algorithms to accurately determine correspondence.
Prevents erroneous determinations by precisely matching and aligning contours based on relative position vectors, ensuring accurate correspondence identification.
Smart Images

Figure 0007551047000014 
Figure 0007551047000008 
Figure 0007551047000011
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an information processing device, a detection method, and a detection program. [Background technology]
[0002] There is a known technology for comparing two pieces of information and identifying the relationship between the two pieces of information. For example, in this technology, the relationship between the two pieces of information is identified using a feature amount. Here, a local image feature amount is introduced as the feature amount (see Non-Patent Document 1). [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] Itsu Shono, "Local Image Features - Using SIFT and HOG", 2013 [Non-Patent Document 2] J. Sauvola et al. “Adaptive document image binarization”, Pattern Recognition 33, pp.225-236, 2000 [Non-Patent Document 3] JOHN CANNY et al. "A Computational Approach to Edge Detection", IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. PAMI-8, No. 6, NOVEMBER 1986 [Non-Patent Document 4] SATOSHI SUZUKI et al. "Topological Structural Analysis of Digitized Binary Images by Border Following", COMPUTER VISION, GRAPHICS, AND IMAGE PROCESSING N, 32-46, 1985 [Non-Patent Document 5] Ronald L. Graham et al. “Finding the Convex hull of a Simple Polygon”, November 1981 Summary of the Invention [Problem to be solved by the invention]
[0004] When features are used, the relationship between two pieces of information may be erroneously determined. For example, two pieces of information with similar shapes may be erroneously determined to be related to each other. Such erroneous determinations are problematic.
[0005] An object of the present disclosure is to prevent erroneous determinations. [Means for solving the problem]
[0006] An information processing device according to one aspect of the present disclosure is provided. The information processing device includes an acquisition unit that acquires information indicating a plurality of relative position vectors calculated based on reference contour extraction information indicating contours of a plurality of first objects included in reference information, and an input image including a plurality of second objects including the plurality of first objects, a generation unit that generates an input contour extraction image indicating contours of the plurality of second objects based on the input image, a calculation unit that calculates a plurality of relative position vectors based on the input contour extraction image, and a detection unit that detects a plurality of contours having a corresponding relationship with the contours of the plurality of first objects from among the contours of the plurality of second objects based on the plurality of relative position vectors based on the reference contour extraction information and the plurality of relative position vectors based on the input contour extraction image. The relative position vector is a vector that indicates a relative position relationship between a target contour, which is one contour of the plurality of contours, and a contour other than the target contour. Effect of the Invention
[0007] According to the present disclosure, erroneous determination can be prevented. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram showing an overview of an embodiment. [Diagram 2] FIG. 11 is a diagram illustrating an example of an input image acquisition process. [Diagram 3] FIG. 2 is a diagram illustrating hardware included in an information processing device. [Figure 4] FIG. 2 is a block diagram showing functions of the information processing device. [Diagram 5] FIG. 13 is a diagram showing an example of a contour extraction image. [Figure 6] FIG. 11 is a diagram illustrating an example of a process for calculating a correlation position vector. [Figure 7] FIG. 13 is a diagram illustrating an example of a projection process. [Figure 8] 13A to 13D are diagrams illustrating an example of a comparison process. [Figure 9] 13A and 13B are diagrams (part 1) showing a specific example of comparison processing. [Figure 10] 13A and 13B are diagrams (part 2) showing a specific example of comparison processing. [Figure 11] 13A and 13B are diagrams (part 3) showing a specific example of comparison processing. [Figure 12] 11 is a flowchart illustrating an example of a process executed by an information processing device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment will be described with reference to the drawings. The following embodiment is merely an example, and various modifications are possible within the scope of the present disclosure.
[0010] Embodiment FIG. 1 is a diagram showing an outline of an embodiment. An example of a case where the embodiment is used will be described. A user takes an image of a panel including lamps with a camera. As a result, an input image 10 is generated. The input image 10 includes lamps 11 to 14. Here, a reference image 20 is prepared in advance. The reference image 20 includes lamps 21 to 24. The lamps 21 and 22 are lamps whose status is to be confirmed. Since it is not known which lamp among the lamps 21 to 24 the lamps 11 to 14 correspond to, a correspondence is determined. For example, the lamp 11 and the lamps 21 to 24 have the same shape, so a lamp having a correspondence with the lamp 11 is determined. By the determination, it is determined that the lamps 11 to 14 and the lamps 21 to 24 have a correspondence. For example, it is determined that the lamps 11 and 21 have a correspondence. It is determined that the lamps 12 and 22 have a correspondence. As described above, the lamps 21 and 22 are lamps whose status is to be confirmed. Therefore, status information of the lamps 11 and 12 is acquired. Based on the status information of the lamps 11 and 12, the status of the lamps 11 and 12 is determined. For example, it is determined that the lamp 11 is turned on. For example, it is determined that the lamp 12 is turned off.
[0011] The above is an example of a case where the embodiment is used. The embodiment is the content related to the determination of the correspondence relationship in the above description. The determination of the correspondence relationship will be described below.
[0012] FIG. 2 is a diagram showing an example of an input image acquisition process. FIG. 2 shows a board 200. For example, the board 200 is a switchboard, a distribution board, a power board, a control board, etc. The board 200 includes lamps 201 to 205. The lamps 201 to 205 are also referred to as a plurality of second objects. FIG. 2 also shows lamps as an example of the second object. However, the second object may be a switch, a meter, etc. Each of the plurality of second objects may be a different type of object.
[0013] The user photographs the board 200 with the camera 300. This generates an input image. The input image is input to the information processing device 100. The information processing device 100 is a device that executes the detection method. For example, the information processing device 100 is a personal computer (PC). The information processing device 100 may also be a smartphone, a tablet device, or a server.
[0014] Next, the hardware of the information processing device 100 will be described. 3 is a diagram showing hardware included in an information processing device 100. The information processing device 100 includes a processor 101, a volatile storage device 102, and a non-volatile storage device 103.
[0015] The processor 101 controls the entire information processing device 100. For example, the processor 101 is a central processing unit (CPU) or a field programmable gate array (FPGA). The processor 101 may be a multiprocessor. The information processing device 100 may also include a processing circuit.
[0016] The volatile storage device 102 is a main storage device of the information processing device 100. For example, the volatile storage device 102 is a random access memory (RAM). The non-volatile storage device 103 is an auxiliary storage device of the information processing device 100. For example, the non-volatile storage device 103 is a hard disk drive (HDD) or a solid state drive (SSD).
[0017] Next, functions of the information processing device 100 will be described. 4 is a block diagram showing the functions of the information processing device 100. The information processing device 100 includes a storage unit 110, an acquisition unit 120, a generation unit 130, a calculation unit 140, a conversion unit 150, a detection unit 160, and a matching processing unit 170.
[0018] The storage unit 110 may be realized as a storage area secured in the volatile storage device 102 or the non-volatile storage device 103 . A part or all of the acquiring unit 120, the generating unit 130, the calculating unit 140, the converting unit 150, the detecting unit 160, and the matching processing unit 170 may be realized by a processing circuit. Also, a part or all of the acquiring unit 120, the generating unit 130, the calculating unit 140, the converting unit 150, the detecting unit 160, and the matching processing unit 170 may be realized as a module of a program executed by the processor 101. For example, the program executed by the processor 101 is also called a detection program. For example, the detection program is recorded on a recording medium.
[0019] The storage unit 110 stores various information. The acquisition unit 120 acquires a reference image. For example, the acquisition unit 120 acquires the reference image from the storage unit 110. Also, for example, the acquisition unit 120 acquires the reference image from an external device. Note that, for example, the external device is a cloud server. Also, a diagram of the external device is omitted. The reference image is also referred to as reference information. The reference image includes a plurality of first objects. For example, the first objects are lamps, meters, switches, etc.
[0020] Moreover, the acquisition unit 120 acquires an input image. For example, the acquisition unit 120 acquires the input image from the camera 300. For example, when the information processing device 100 is a tablet device, the acquisition unit 120 acquires the input image from a camera included in the tablet device. The input image includes a plurality of second objects. Furthermore, the plurality of second objects includes a plurality of first objects. That is, the number of the plurality of second objects may be greater than the number of the plurality of first objects. Furthermore, the number of the plurality of first objects may be the same as the number of the plurality of second objects.
[0021] The generating unit 130 generates a contour extraction image based on the input image. An example of generating a contour extraction image will be described. The generating unit 130 uses the Sauvola method to remove shadows in the input image. The Sauvola method is described in Non-Patent Document 2. The generating unit 130 performs blur processing on the input image. The generating unit 130 generates an edge image using the processed input image and the Canny method. The Canny method is described in Non-Patent Document 3. The generating unit 130 performs morphology processing on the edge image. The generating unit 130 generates a contour image using the processed edge image and the Suzuki 85 algorithm. The Suzuki 85 algorithm is described in Non-Patent Document 4. The generating unit 130 may also perform morphology processing on an image in which the inside of the contour is filled, and generate a contour image again. In the contour image, contours within the contour, noise within the contour, and the like are removed. Then, in the contour image, only the outermost contour of each object is extracted. The generating unit 130 generates a convex hull image by using the contour image and convex hull calculation. Note that the convex hull calculation is described in Non-Patent Document 5. The generating unit 130 deletes each convex hull whose size is too large or too small for the convex hull image. The generating unit 130 deletes each convex hull whose object has an aspect ratio that is too large. In this manner, a contour extraction image is generated by deletion. The contour extraction image may be generated using another method. An example of a contour extraction image is shown below.
[0022] 5 is a diagram showing an example of a contour extraction image. Image 30 is a contour extraction image based on an input image. Image 30 includes contours 31 to 35. In this manner, image 30 shows the contours of a plurality of second objects. Image 30 is also called an input contour extraction image.
[0023] The generating unit 130 generates a contour extraction image based on the reference image. The generating method is the same as above. The image 40 is a contour extraction image based on the reference image. The image 40 includes contours 41 to 44. The acquiring unit 120 acquires the contour extraction image based on the reference image. In this manner, the image 40 shows the contours of a plurality of first objects. The image 40 is also referred to as a reference contour extraction image or reference contour extraction information.
[0024] Here, the acquisition unit 120 may acquire the contour extraction image based on the reference image from the storage unit 110 or an external device. When the acquisition unit 120 acquires the contour extraction image based on the reference image from the storage unit 110 or an external device, the generation unit 130 does not generate the contour extraction image based on the reference image.
[0025] Image 30 includes five contours. Image 40 includes four contours. Thus, the number of contours is different. The reason for the difference in the number of contours is that the user photographed board 200 with camera 300 from a distance. In the following explanation, it will be explained that the correspondence can be accurately determined even when the number of contours is different.
[0026] The calculation unit 140 calculates a plurality of relative position vectors based on the image 30. The calculation process will be described with reference to the drawings.
[0027] FIG. 6 is a diagram illustrating an example of a process for calculating a correlation position vector. The calculation unit 140 calculates the center of gravity of each of the multiple contours in the image 30. The set of centers of gravity in the image 30 is denoted by M i The calculation unit 140 calculates the center of gravity of each of the multiple contours in the image 40. The set of centers of gravity in the image 40 is defined as M r Let us assume that.
[0028] One contour is selected from among the contours in the image 30. The selected contour is contour m ti Let the contour m ti is also called the target contour. ti The contours other than m ki Let us assume that.
[0029] Here, the relative position vector is the contour m ti and contour m ki The calculation unit 140 calculates the set of relative position vectors RP ti Specifically, the calculation unit 140 calculates a set of relative position vectors RPti It should be noted that the Size in formula (1) may be the total length, length, width, etc. of the contour.
[0030]
number
[0031] The arrow in the left diagram of Fig. 6 indicates a relative position vector. The four arrows in the left diagram of Fig. 6 indicate a set of relative position vectors RP ti This shows that.
[0032] Similarly, the calculation unit 140 calculates that each of the multiple contours is a contour m ti As a result, a set of five relative position vectors is calculated for image 30. In this manner, calculation unit 140 calculates a plurality of relative position vectors based on image 30.
[0033] One contour is selected from among the contours in the image 40. The selected contour is contour m tr Let the contour m tr is also called the target contour. tr The contours other than m kr Let us assume that.
[0034] Here, the relative position vector is the contour m tr and contour m kr The calculation unit 140 calculates the set of relative position vectors RP tr Specifically, the calculation unit 140 calculates a set of relative position vectors RP tr The size in formula (2) uses the same type of size as the size in formula (1). For example, if the total length of the outline is used in the size in formula (1), the total length of the outline is used in the size in formula (2).
[0035]
number
[0036] The arrow in the right diagram of Fig. 6 indicates a relative position vector. The three arrows in the right diagram of Fig. 6 indicate a set of relative position vectors RP tr This shows that.
[0037] Similarly, the calculation unit 140 calculates that each of the multiple contours is a contour m tr As a result, a set of four relative position vectors is calculated for image 40. In this manner, calculation unit 140 calculates a plurality of relative position vectors based on image 40. Acquisition unit 120 acquires the calculated plurality of relative position vectors based on image 40.
[0038] Here, the acquisition unit 120 may acquire information indicating the calculated relative position vectors from the storage unit 110 or an external device based on the image 40. When the information is acquired, the calculation unit 140 does not calculate the relative position vectors based on the image 40.
[0039] The next process will be described with reference to the drawings. 7 is a diagram showing an example of projection processing. There are cases where the size of the contour in the image 30 differs from the size of the contour in the image 40. In this case, the information processing device 100 performs processing to match the sizes.
[0040] The conversion unit 150 projects the contours of the multiple first objects onto the contours of the multiple second objects, matches the size of the contours, and converts the size of the multiple relative position vectors based on the image 40. The process will be described in detail below.
[0041] The conversion unit 150 selects one contour from among the multiple contours in the image 40. The selected contour is a contour m xr The conversion unit 150 selects one contour from among the multiple contours in the image 30. The selected contour is the contour m yi The conversion unit 150 converts the contour m xr The contour m yiThe conversion unit 150 projects the contour m xr and contour m yi The size of the outline m xr The size of the set of relative position vectors is transformed. The set of relative position vectors whose size has been transformed is expressed by equation (3).
[0042]
number
[0043] The lower diagram of FIG. 7 shows a set of relative position vectors whose sizes have been converted. Specifically, the set of relative position vectors becomes smaller. Similarly, the conversion unit 150 converts the size of the set of three relative position vectors. This converts the size of the set of four relative position vectors. In this way, the conversion unit 150 projects the contours of the multiple first objects onto the contours of the multiple second objects, matches the size of the contours, and converts the size of the multiple relative position vectors based on the image 40.
[0044] In addition, the transformation unit 150 transforms the orientations of the multiple relative position vectors based on the image 40 using projective transformation so that the orientations of the multiple relative position vectors based on the image 40 match the orientations of the multiple relative position vectors based on the image 30. For example, xr When the set of relative position vectors of the contour m is inclined as a whole, the conversion unit 150 converts the contour m xr The set of relative position vectors of the contour m yi To match the orientation of the set of relative position vectors of the contour m xr Transform the orientation of a set of relative position vectors.
[0045] Note that, when the size of the contour in image 30 and the size of the contour in image 40 are the same, information processing device 100 does not perform the process of Fig. 7. When the process of Fig. 7 is not performed, detection unit 160 detects a plurality of contours having a correspondence relationship with the contours of a plurality of first objects from among the contours of a plurality of second objects, based on a plurality of relative position vectors based on image 30 and a plurality of relative position vectors based on image 40.
[0046] 7 is performed, the detection unit 160 detects a plurality of contours that correspond to the contours of the plurality of first objects from among the contours of the plurality of second objects, based on the plurality of converted relative position vectors and the plurality of relative position vectors based on the image 30. In the following description, it is assumed that the size has been changed.
[0047] In the detection process, a comparison process is performed. The comparison process will be explained with reference to the drawings. 8A to 8D are diagrams illustrating an example of the comparison process. xr RPP is a set of relative position vectors xy and the contour m yi Set of relative position vectors RP y The difference between the relative position vectors is calculated. The calculation process of the difference is explained in detail below. yi Set of relative position vectors RP y is expressed by equation (4).
[0048]
number
[0049] FIG. 8(A) shows a set of relative position vectors RPP xy This example focuses on a downward vector of the relative position vector kr. The vector is represented by an arrow kr. The detection unit 160 detects the relative position vector kr and a set of relative position vectors RP y The difference between the downward relative position vector of xykmin That is, the detection unit 160 calculates the relative position vector kr and the set RP yThe difference between the relative position vector kr and the closest relative position vector D xykmin At this time, the closest contour m ki The contour m kimin In addition, the difference D xykmin is expressed by equation (5).
[0050]
number
[0051] The detection unit 160 detects the difference D xykmin Since is less than the predetermined threshold, count N xy Add 1 to the count N xy The initial value of is 0.
[0052] FIG. 8(B) shows a set of relative position vectors RPP xy This is an example in which the vector in the lower right direction of the arrow kr is focused on. The vector is represented by an arrow kr. The detection unit 160 detects the relative position vector kr and a set of relative position vectors RP y The difference between the relative position vector kr and the closest relative position vector D xykmin At this time, the closest contour m ki The contour m kimin The detection unit 160 detects the difference D xykmin Since is less than the predetermined threshold, count N xy Add 1 to.
[0053] Figure 8(C) shows the set of relative position vectors RPP xy This example focuses on a vector in the right direction of the relative position vector kr. The vector is represented by an arrow kr. The detection unit 160 detects the relative position vector kr and a set of relative position vectors RP y The difference between the relative position vector kr and the closest relative position vector D xykmin At this time, the closest contour m ki The contour m kimin The detection unit 160 detects the difference D xykmin Since is less than the predetermined threshold, count N xyAdd 1 to.
[0054] So far, we have used the set of relative position vectors RPP xy Focusing on the relative position vectors of , the set of relative position vectors RP y Among them, the relative position vector closest to the target relative position vector is assigned. If the number of elements of the reference image vector is less than the number of elements of the input image vector, the set of relative position vectors RP y There exists a relative position vector that has never been judged to be the closest among the set of relative position vectors RP. y In this example, a vector that has never been determined to be the closest among the vectors is focused on. The vector is represented by an arrow ki. The detection unit 160 detects the relative position vector ki and the set RPP xy The difference between the relative position vector ki and the closest relative position vector D xykmin At this time, the closest contour m ki The contour m krmin The detection unit 160 detects the difference D xykmin Since is greater than the predefined threshold, count N xy Do not add 1 to . This will count N xy becomes 3.
[0055] Also, the detection unit 160 detects the difference D xykmin The average value of D xy Specifically, the detection unit 160 calculates the difference D xykmin The average value of D xy Calculate.
[0056] The detection unit 160 similarly calculates the difference between the relative position vector of the input image and the relative position vector of the reference image for all combinations, and counts N xy Detect.
[0057] 9(A) and (B) are diagrams (part 1) showing a specific example of the comparison process. FIG. 9(A) shows the comparison process of FIG. 8. In FIG. 8, a case has been described in which the upper left contour m1 of the image 40 is projected onto the upper left contour m1 of the image 30. Because of this projection, the count N xy count N 11 As explained in Figure 8, count N 11 is 3.
[0058] In FIG. 9B, the contour m1 of the image 40 is projected onto the contour m2 of the image 30. Then, a set of relative position vectors of the contour m1 of the image 40 is compared with a set of relative position vectors of the contour m2 of the image 30. When the contour m1 of the image 40 is projected onto the contour m2 of the image 30, the count N 12 is 2.
[0059] 10(A) and (B) are diagrams (part 2) showing a specific example of the comparison process. In FIG. 10(A), the contour m1 of the image 40 is projected onto the contour m3 of the image 30. Then, a set of relative position vectors of the contour m1 of the image 40 is compared with a set of relative position vectors of the contour m3 of the image 30. When the contour m1 of the image 40 is projected onto the contour m3 of the image 30, the count N 13 is 1.
[0060] In FIG. 10B, the contour m1 of the image 40 is projected onto the contour m4 of the image 30. Then, a set of relative position vectors of the contour m1 of the image 40 is compared with a set of relative position vectors of the contour m4 of the image 30. When the contour m1 of the image 40 is projected onto the contour m4 of the image 30, the count N 14 is 0.
[0061] 11(A) and (B) are diagrams (part 3) showing a specific example of the comparison process. In FIG. 11(A), the contour m1 of the image 40 is projected onto the contour m5 of the image 30. Then, a set of relative position vectors of the contour m1 of the image 40 is compared with a set of relative position vectors of the contour m5 of the image 30. When the contour m1 of the image 40 is projected onto the contour m5 of the image 30, the count N 15 is 1.
[0062] In FIG. 11B, the contour m2 of the image 40 is projected onto the contour m1 of the image 30. Then, a set of relative position vectors of the contour m2 of the image 40 is compared with a set of relative position vectors of the contour m1 of the image 30. When the contour m2 of the image 40 is projected onto the contour m2 of the image 30, the count N 21 is 1. Count N 45 The same process is executed up to
[0063] In this way, the detection unit 160 calculates the difference between the relative position vector of the input image and the relative position vector of the reference image for all combinations, and counts N xy Detect.
[0064] The detection unit 160 counts N xy Find the combination that is the largest. The largest combination is N 11 , N 22 , N 33 , N 45 The detection unit 160 detects the correspondence relationship based on the maximum combination. 11 Based on the above, the detection unit 160 detects that the contour m1 of the image 40 and the contour m1 of the image 30 have a correspondence relationship. 22 Based on the above, the detection unit 160 detects that the contour m2 of the image 40 and the contour m2 of the image 30 have a correspondence relationship. 33 Based on this, the detection unit 160 detects that the contour m3 of the image 40 and the contour m3 of the image 30 have a correspondence relationship. 45 Based on this, it is detected that the contour m4 of the image 40 and the contour m5 of the image 30 have a correspondence relationship.
[0065] Furthermore, when one contour in the reference image and multiple contours in the input image have a corresponding relationship, the detection unit 160 calculates an average value D xy For example, when the contour m2 of the image 40 corresponds to the contours m1 and m2 of the image 30, the detection unit 160 determines that the combination with the smallest average value D 21 and the average value D22 The detection unit 160 determines that a correspondence exists between a contour of the input image and a plurality of contours of the reference image.
[0066] Furthermore, when one contour in the reference image and multiple contours in the input image have a corresponding relationship, the detection unit 160 may use formula (6) to determine that a combination with a contour size ratio close to 1 has a corresponding relationship. xr ) indicates the size of the contour in the reference image before conversion. The detection unit 160 also performs a similar process when one contour in the input image and multiple contours in the reference image have a corresponding relationship.
[0067]
number
[0068] In this manner, the detection unit 160 detects the contours 31-34 that have a corresponding relationship with the contours 41-44 from among the contours 31-35.
[0069] Next, the process executed by the information processing device 100 will be described with reference to a flowchart. FIG. 12 is a flowchart illustrating an example of processing executed by the information processing device. (Step S11) The acquisition unit 120 acquires an input image. (Step S12) The acquisition unit 120 acquires a reference image. (Step S13) The generation unit 130 generates the image 30 based on the input image. (Step S14) The generation unit 130 generates the image 40 based on the reference image. (Step S15 ) The calculation unit 140 calculates a plurality of relative position vectors based on the image 30 . (Step S16) The calculation unit 140 calculates a plurality of relative position vectors based on the image 40. (Step S17) The conversion unit 150 converts the sizes of the multiple relative position vectors based on the image 40. (Step S18) The detection unit 160 detects a plurality of contours that correspond to the contours 41-44 from among the contours 31-35.
[0070] After the correspondence is detected, the information processing device 100 may execute the following process. By detecting the correspondence, for example, it is specified that the contour 31 of the image 30 corresponds to the contour 41 of the image 40. When the object in the reference image corresponding to the contour 41 is the object for status confirmation, the information processing device 100 acquires status information of the object in the input image corresponding to the contour 31. The information processing device 100 judges the status of the object based on the status information.
[0071] Here, when the relationship between two contours is determined using the feature amount, the relationship between the two contours may be erroneously determined. For example, the contour 31 of the image 30 and the contours 41 to 44 of the image 40 have a similar shape. Therefore, for example, the contour 31 and the contour 42 are erroneously determined to have a corresponding relationship. In this way, when the feature amount is used, there is a possibility that an erroneous determination may occur.
[0072] According to the embodiment, the information processing device 100 detects the correspondence relationship by using the relative position vector, and therefore the information processing device 100 can prevent erroneous determination.
[0073] As described above, the information processing device 100 detects the correspondence between the contour of the reference image and the contour of the input image. The information processing device 100 may match the reference image to the input image based on the correspondence. For example, the matching processing unit 170 matches the contour of the input image with the contour of the reference image based on the correspondence, thereby matching the reference image to the input image. Also, for example, the matching processing unit 170 matches the reference image to the input image by matching the center of gravity of the contour of the input image with the center of gravity of the contour of the reference image based on the correspondence. The matching processing unit 170 may further match the reference image to the input image using feature points other than the contour. For example, the matching processing unit 170 may match the reference image to the input image based on four vertices when the contour is surrounded by a rectangle. The matching processing unit 170 may match the reference image to the input image using the correspondence and homography transformation. Also, the information processing device 100 may match the reference image to the input image and obtain information within the contour of the input image when two contours overlap when matching the reference image and the input image.
[0074] In the above, a case where a correspondence relationship between an object in an input image and an object in a reference image is detected has been described. The embodiment may be applied to a correspondence relationship detection process performed in AR (Augmented Reality). For example, the embodiment may be used when detecting a correspondence relationship between an object in an input image and an object represented by a GUI (Graphical User Interface), CG (Computer Graphics), or the like included in reference information. [Explanation of symbols]
[0075] 10 input image, 11-14 lamps, 20 reference image, 21-24 lamps, 22 lamps, 30 image, 31-35 contours, 40 image, 41-44 contours, 100 information processing device, 101 processor, 102 volatile storage device, 103 non-volatile storage device, 110 memory unit, 120 acquisition unit, 130 generation unit, 140 calculation unit, 150 conversion unit, 160 detection unit, 170 alignment processing unit, 200 board, 201-205 lamps, 300 camera.
Claims
1. an acquisition unit that acquires information indicating a plurality of relative position vectors calculated based on reference contour extraction information indicating contours of a plurality of first objects included in reference information, and an input image including a plurality of second objects including the plurality of first objects; a generation unit that generates an input contour extraction image indicating contours of the plurality of second objects based on the input image; a calculation unit that calculates a plurality of relative position vectors based on the input contour extraction image; a detection unit that detects a plurality of contours having a correspondence relationship with the plurality of contours of the first object from among the contours of the plurality of second objects, based on a plurality of relative position vectors based on the reference contour extraction information and a plurality of relative position vectors based on the input contour extraction image; having The relative position vector is a vector indicating a relative positional relationship between a target contour, which is one contour among a plurality of contours, and a contour other than the target contour. Information processing device.
2. Further comprising a conversion unit, The acquisition unit acquires the reference contour extraction information, the conversion unit projects contours of the first objects onto contours of the second objects to match sizes of the contours and converts sizes of a plurality of relative position vectors based on the reference contour extraction information; the detection unit detects, from among the contours of the second objects, a plurality of contours having a correspondence relationship with the contours of the first objects, based on the converted relative position vectors and a plurality of relative position vectors based on the input contour extraction image; The information processing device according to claim 1 .
3. the conversion unit converts directions of the plurality of relative position vectors based on the reference contour extraction information using projective transformation so that the directions of the plurality of relative position vectors based on the reference contour extraction information match the directions of the plurality of relative position vectors based on the input contour extraction image. The information processing device according to claim 2 .
4. a matching processing unit that matches a contour of the input image with a contour of the reference information based on the correspondence relationship to match the reference information to the input image.
3. The information processing device according to claim 1 or 2.
5. An information processing device, acquiring information indicating the calculated relative position vectors based on reference contour extraction information indicating contours of the plurality of first objects included in reference information, and an input image including a plurality of second objects including the plurality of first objects, generating an input contour extraction image indicating contours of the plurality of second objects based on the input image, and calculating the plurality of relative position vectors based on the input contour extraction image; detecting a plurality of contours having a correspondence relationship with the plurality of contours of the first object from among the contours of the plurality of second objects based on a plurality of relative position vectors based on the reference contour extraction information and a plurality of relative position vectors based on the input contour extraction image; The relative position vector is a vector indicating a relative positional relationship between a target contour, which is one contour among a plurality of contours, and a contour other than the target contour. Detection methods.
6. In the information processing device, acquiring information indicating the calculated relative position vectors based on reference contour extraction information indicating contours of the plurality of first objects included in reference information, and an input image including a plurality of second objects including the plurality of first objects, generating an input contour extraction image indicating contours of the plurality of second objects based on the input image, and calculating the plurality of relative position vectors based on the input contour extraction image; detecting a plurality of contours having a correspondence relationship with the plurality of contours of the first object from among the contours of the plurality of second objects based on a plurality of relative position vectors based on the reference contour extraction information and a plurality of relative position vectors based on the input contour extraction image; a detection program that executes a process, The relative position vector is a vector indicating a relative positional relationship between a target contour, which is one contour among a plurality of contours, and a contour other than the target contour. Detection program.
Citation Information
Patent Citations
Object tracking apparatus, object tracking program, and method
JP2010113466A
Image processing system, image processing program, robot device and image processing method
JP2013058036A
