IMAGE RECOGNITION DEVICE, PROGRAM, AND IMAGE RECOGNITION METHOD
The image recognition device enhances FSS by adaptively selecting support images similar to the query, addressing inconsistent detection and reducing processing load, thereby improving object detection accuracy.
Patent Information
- Application Number
- JP2024023167
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2024-02-19
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2042-11-10
AI Technical Summary
Conventional few-shot segmentation (FSS) methods are prone to inconsistent object detection due to varying image characteristics between query and support images, leading to unreliable results, and increasing the number of support images exacerbates memory and processing load.
An adaptive image recognition device that selectively chooses support images based on similarity to the query image, using statistical image conversions and similarity calculations to enhance matching and inference processing efficiency.
Improves the accuracy of object detection in query images by reducing processing load and ensuring effective matching with a reduced number of strategically chosen support images.
Smart Images

Figure 0007564392000001 
Figure 0007564392000002 
Figure 0007564392000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an image recognition device, a program, and an image recognition method. [Background technology]
[0002] Patent Document 1 describes few-shot segmentation (FSS) that uses few-shot learning to segment an image. [Prior art document] [Non-patent literature] [Non-patent document 1] Lihe Yang, Wei Zhuo, Lei Qi, Yinghuan Shi, Yang Gao: Mining Latent Classes for Few-shot Segmentation (2021), The IEEE International Conference on ComputerVision(ICCV) Summary of the Invention [Means for solving the problem]
[0003] According to an embodiment of the present invention, there is provided an image recognition device. The image recognition device may include a query image acquisition unit that acquires a query image. The image recognition device may include a support image selection unit that selects a part of a plurality of candidate images as a support image by comparing each of the plurality of candidate images in which a recognition target is photographed with the query image. The image recognition device may include a matching inference processing unit that estimates a position of a recognition target included in the query image by using support data including the support image selected by the support image selection unit and annotation data indicating a position of a subject in the support image.
[0004] In the image recognition device, the matching inference processing unit may include a prototype calculation processing unit that calculates a prototype representing a feature of the subject based on the support image and the annotation data included in the support data. The matching inference processing unit may include a prototype matching processing unit that estimates a position of a recognition target included in the query image by determining whether or not each of the multiple regions of the query image is a recognition target based on a similarity between the region and the prototype calculated by the prototype calculation processing unit. The support image selection unit may select multiple support images from the multiple candidate images, and the matching inference processing unit may estimate a position of a recognition target included in the query image using the support data including the multiple support images selected by the support image selection unit and the annotation data of each of the multiple support images. The support image selection unit may determine a similarity between each of the multiple candidate images and the query image, and select the multiple support images based on the determined similarity. The support image selection unit may include an image conversion processing unit that converts each of the plurality of candidate images and the query image into statistical information, and a comparison calculation unit that determines a similarity between each of the plurality of candidate images and the query image by performing a comparison operation between the statistical information of each of the plurality of candidate images and the statistical information of the query image. The image conversion processing unit may convert each of the plurality of candidate images and the query image into the statistical information by performing at least one of HSV conversion, histogram calculation, filter processing, and feature point extraction. The comparison calculation unit may determine a similarity between each of the plurality of candidate images and the query image by performing at least one of SSIM (Structual SIMilarity), PSNR (Peak Signal to Noise Ratio), and data distance calculation on the statistical information of each of the plurality of candidate images and the statistical information of the query image.
[0005] In any of the image recognition devices, the supporting image selection unit may identify a predetermined number of candidate images from the plurality of candidate images in order of decreasing similarity, and select the identified plurality of candidate images as the plurality of supporting images.
[0006] Any of the image recognition devices may further include a candidate extraction unit that extracts the plurality of candidate images from a dataset including a plurality of images of a recognition target, and the supporting image selection unit may compare each of the plurality of images extracted by the candidate extraction unit with the query image. The candidate extraction unit may randomly extract a predetermined number of the candidate images from the dataset. When the number of the plurality of candidate images having the similarity higher than a predetermined similarity threshold among the plurality of candidate images is greater than a predetermined number, the supporting image selection unit may identify the predetermined number of the candidate images from the plurality of candidate images and select the identified plurality of the candidate images as the plurality of supporting images. If the number of candidate images among the multiple candidate images whose similarity is higher than the similarity threshold is smaller than the predetermined number, the supporting image selection unit selects the candidate images whose similarity is higher than the similarity threshold as part of the multiple supporting images, the candidate extraction unit re-extracts from the dataset a plurality of candidate images other than the multiple candidate images extracted from the dataset, the supporting image selection unit determines the similarity between each of the multiple candidate images re-extracted by the candidate extraction unit and the query image, and selects the candidate images whose similarity is higher than the similarity threshold as part of the other of the multiple supporting images.
[0007] According to one embodiment of the present invention, there is provided a program for causing a computer to function as the image recognition device.
[0008] According to one embodiment of the present invention, there is provided an image recognition method executed by a computer. The image recognition method may include a query image acquisition step of acquiring a query image. The image recognition method may include a support image selection step of selecting a part of a plurality of candidate images in which a recognition target is captured as a support image by comparing the query image with each of the plurality of candidate images. The image recognition method may include a matching inference processing step of estimating a position of a recognition target included in the query image using support data including the support image selected in the support image selection step and annotation data indicating a position of a subject in the support image.
[0009] The above summary of the invention does not list all of the necessary features of the present invention. Also, subcombinations of these features may also be inventions. [Brief description of the drawings]
[0010] [Figure 1] 1 illustrates an example of a functional configuration of an image recognition device 100. [Diagram 2] 1 illustrates an example of a processing flow by the image recognition device 100. [Diagram 3] FIG. 2 is an explanatory diagram for explaining an example of processing contents by the image recognition device 100. [Figure 4] FIG. 2 is an explanatory diagram for explaining an example of processing contents by the image recognition device 100. [Diagram 5] FIG. 2 is an explanatory diagram for explaining an example of processing contents by the image recognition device 100. [Figure 6] An example of a hardware configuration of a computer 1200 that functions as the image recognition device 100 is shown in schematic form. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] In conventional FSS, depending on the selected support images, a subject may or may not be detected from a query image. This is thought to depend on the degree of image change (color, angle of view, etc.) between the query image and the support images. This problem can be alleviated by increasing the number of support images used, but this increases the memory / processing load. In the image recognition device 100 of this embodiment, such problems are alleviated by adaptively selecting support images close to the query image that are effective for matching inference processing of the query image.
[0012] The present invention will be described below through embodiments of the invention, but the following embodiments do not limit the scope of the invention according to the claims. Furthermore, not all of the combinations of features described in the embodiments are necessarily essential to the solution of the invention.
[0013] 1 illustrates an example of a functional configuration of an image recognition device 100. The image recognition device 100 includes a data storage unit 110, a query image acquisition unit 112, a candidate extraction unit 114, a supporting image selection unit 120, and a matching inference processing unit 130. Note that it is not essential that the image recognition device 100 includes all of these units.
[0014] The data storage unit 110 stores a data set including a plurality of images of a subject. The data set may include the plurality of images and annotation data for each of the plurality of images.
[0015] The annotation data may be data indicating the position of a subject in an image. For example, annotation data corresponding to an image in which an airplane is captured as a subject indicates the position of the airplane in the image. The annotation data may include data that is associated with the position of the subject and can identify the subject. For example, the annotation data includes data indicating "airplane" associated with the position of the airplane in the image.
[0016] The data storage unit 110 stores a data set for at least one type of object, and may store data sets for each of a plurality of types of objects.
[0017] The data storage unit 110 may be located outside the image recognition device 100. For example, the data storage unit 110 is located in another device, and the image recognition device 100 accesses the data storage unit 110 via a network.
[0018] The query image acquisition unit 112 acquires a query image. The query image is an image for which the position of a recognition target is to be estimated. The query image acquisition unit 112 may acquire a query image input to the image recognition device 100.
[0019] The candidate extraction unit 114 extracts candidate images to be used as support images from the data set stored in the data storage unit 110. For example, when the recognition target is an airplane, the candidate extraction unit 114 extracts multiple candidate images from the airplane data set stored in the data storage unit 110.
[0020] The candidate extraction unit 114, for example, randomly extracts a plurality of candidate images from the dataset. The candidate extraction unit 114 may randomly extract a predetermined number of candidate images from the dataset. The candidate extraction unit 114 may randomly extract a number of candidate images obtained by multiplying the number of support images to be used by a predetermined value from the dataset.
[0021] The support image selection unit 120 selects some of the multiple candidate images as support images. For example, the support image selection unit 120 sets all images included in the dataset of the recognition target stored in the data storage unit 110 as multiple candidate images, and selects some of the multiple candidate images as support images. The support image selection unit 120 selects some of the multiple candidate images as support images by comparing each of the multiple candidate images with the query image acquired by the query image acquisition unit 112. The support image selection unit 120 may determine the similarity between each of the multiple candidate images and the query image, and select multiple support images based on the determined similarity. For example, the support image selection unit 120 identifies a predetermined number of candidate images from the multiple candidate images in descending order of similarity, and selects the identified multiple candidate images as multiple support images. By setting all images included in the dataset of the recognition target as candidate images, it is possible to set the image that is most suitable for estimating the position of the recognition target in the query image as a support image, and the estimation accuracy can be improved. When the similarity between all of the multiple candidate images and the query image is lower than a predetermined similarity threshold, the supporting image selection unit 120 may determine that the similarity is low, and output the determination result.
[0022] The supporting image selection unit 120 may select some of the multiple candidate images extracted by the candidate extraction unit 114 as supporting images. When a dataset contains many images, the processing load for determining the similarity between each of the many images in the dataset and the query image may become very high. In response to this, the processing load can be reduced by selecting some images extracted from the dataset as candidate images.
[0023] The supporting image selection unit 120 may determine the similarity between each of the multiple images extracted by the candidate extraction unit 114 and the query image, and select multiple supporting images based on the determined similarity. For example, when the number of candidate images having a similarity to the query image higher than a predetermined similarity threshold among the multiple candidate images is greater than a predetermined number, the supporting image selection unit 120 identifies the predetermined number of candidate images from the multiple candidate images, and selects the identified multiple candidate images as multiple supporting images. The supporting image selection unit 120 may identify a predetermined number of candidate images from the multiple candidate images in descending order of similarity to the query image.
[0024] When the number of candidate images having a similarity to the query image higher than a predetermined similarity threshold among the multiple candidate images is less than a predetermined number, the supporting image selection unit 120 first selects the candidate images having a similarity to the query image higher than the similarity threshold as a part of the multiple supporting images. Then, the candidate extraction unit 114 newly extracts multiple candidate images other than the multiple candidate images extracted from the dataset from the dataset, and the supporting image selection unit 120 determines the similarity between each of the multiple candidate images newly extracted by the candidate extraction unit 114 and the query image, and selects the candidate images having a similarity to the query image higher than the similarity threshold as a part of the multiple supporting images. The candidate extraction unit 114 and the supporting image selection unit 120 repeat these processes until the number of candidate images having a similarity to the query image higher than the similarity threshold reaches a predetermined number.
[0025] The supporting image selection unit 120 may include an image conversion processing unit 122 and a comparison calculation unit 124. The image conversion processing unit 122 converts each of the multiple candidate images and the query image into statistical information.
[0026] The image conversion processing unit 122 converts each of the candidate images and the query image into statistical information, for example, by performing HSV (Hue, Saturation, Value) conversion on each of the candidate images and the query image. The image conversion processing unit 122 converts each of the candidate images and the query image into statistical information, for example, by performing histogram calculation on each of the candidate images and the query image. The image conversion processing unit 122 converts each of the candidate images and the query image into statistical information, for example, by performing filter processing on each of the candidate images and the query image. An example of the filter processing is an edge detection filter, but is not limited to this, and any filter may be used as long as it can make the features of the image easy to understand. The image conversion processing unit 122 converts each of the candidate images and the query image into statistical information, for example, by performing feature point extraction on each of the candidate images and the query image. The image conversion processing unit 122 may convert each of the candidate images and the query image into statistical information using a method other than these.
[0027] The comparison calculation unit 124 determines the similarity between each of the multiple candidate images and the query image by performing a comparison operation between the statistical information of each of the multiple candidate images converted by the image conversion processing unit 122 and the statistical information of the query image. For example, the comparison calculation unit 124 determines the similarity between each of the multiple candidate images and the query image by performing SSIM (Structual SIMilarity) on the statistical information of each of the multiple candidate images and the statistical information of the query image. For example, the comparison calculation unit 124 determines the similarity between each of the multiple candidate images and the query image by performing PSNR (Peak Signal to Noise Ratio) on the statistical information of each of the multiple candidate images and the statistical information of the query image. For example, the comparison calculation unit 124 determines the similarity between each of the multiple candidate images and the query image by performing data distance calculation on the statistical information of each of the multiple candidate images and the statistical information of the query image. Examples of data distance include, but are not limited to, cosine similarity and Euclidean distance. The comparison calculation unit 124 may use a method other than these to determine the similarity between each of the multiple candidate images and the query image.
[0028] The supporting image selection unit 120 transmits the selected supporting image and supporting data including the annotation data of the supporting image to the matching inference processing unit 130.
[0029] The matching inference processing unit 130 uses the support data received from the supporting image selection unit 120 to estimate the position of a recognition target included in the query image acquired by the query image acquisition unit 112. The matching inference processing unit 130 may include a feature extraction processing unit 132, a prototype calculation processing unit 134, and a prototype matching processing unit 136.
[0030] The feature extraction processing unit 132 extracts feature amounts of each of a plurality of support images included in the support data. The feature extraction processing unit 132 may generate support features indicating feature amounts for each of a plurality of regions of the support image.
[0031] The feature extraction processing unit 132 extracts a feature amount of the query image acquired by the query image acquisition unit 112. The feature extraction processing unit 132 may generate a query feature indicating a feature amount for each of a plurality of regions of the query image.
[0032] The prototype calculation processing unit 134 calculates a prototype representing the features of the subject of the support image based on the support image and annotation data included in the support data. The prototype calculation processing unit 134 may calculate the prototype based on the support features generated by the feature extraction processing unit 132 and the annotation data.
[0033] The prototype calculation processing unit 134 calculates a prototype of the subject to be recognized. For example, the prototype calculation processing unit 134 uses annotation data to extract feature amounts of a plurality of regions corresponding to the position of the subject to be recognized from the support features. The prototype calculation processing unit 134 may extract feature amounts of a plurality of regions corresponding to the position of the subject to be recognized from each of the plurality of support features. The prototype calculation processing unit 134 may arrange the extracted feature amounts in a feature space and calculate the center of gravity of the feature amounts as a prototype of the subject to be recognized. In this manner, the prototype may be a feature vector in the feature space.
[0034] The prototype matching processor 136 estimates the position of the recognition target included in the query image by determining whether each of the multiple regions of the query image is a recognition target based on the similarity between the region and the prototype calculated by the prototype calculation processor 134. The prototype matching processor 136 calculates the similarity between the feature amount of the region and the prototype of the recognition target for each of the multiple regions of the query image, for example, using a query feature. The prototype matching processor 136 calculates, for example, the cosine similarity between the feature amount of the region and the prototype of the recognition target. Then, the prototype matching processor 136 estimates, among the multiple regions of the query image, a region in which the calculated similarity is higher than a threshold value as a region in which the recognition target is located. This makes it possible to estimate the position of the recognition target included in the query image.
[0035] The annotation data according to this embodiment may further indicate the position of a subject other than the subject to be recognized in the support image. For example, when the support image includes a runway and a control tower in addition to an airplane, the annotation data may indicate the positions of the runway and the control tower. In this case, the annotation data may include data that can identify the subject in association with the position of the subject other than the subject to be recognized. For example, the annotation data includes data indicating "airplane" in association with the position of the airplane in the support image, data indicating "runway" in association with the position of the runway in the support image, and data indicating "control tower" in association with the position of the control tower.
[0036] The prototype calculation processing unit 134 according to the present embodiment may further calculate a prototype of a subject other than the subject to be recognized. The prototype calculation processing unit 134 uses annotation data to extract feature amounts of a plurality of regions corresponding to the position of the subject from the support features for each of one or more subjects other than the subject to be recognized. The prototype calculation processing unit 134 may extract feature amounts of a plurality of regions corresponding to the position of the subject from each of the support features for each of one or more subjects other than the subject to be recognized. The prototype calculation processing unit 134 may arrange the extracted feature amounts in a feature space for each of one or more subjects other than the subject to be recognized, and calculate the center of gravity of the feature amounts as a prototype of the subject.
[0037] The prototype calculation processing unit 134 may calculate the distance between multiple prototypes. For example, the prototype calculation processing unit 134 may calculate the Euclidean distance between multiple prototypes. The prototype calculation processing unit 134 may calculate the Euclidean distance between multiple prototypes in a brute-force manner. For example, the prototype calculation processing unit 134 may calculate the cosine similarity between multiple prototypes. The prototype calculation processing unit 134 may calculate the cosine similarity between multiple prototypes in a brute-force manner.
[0038] The prototype calculation processing unit 134 may convert the prototype based on the distances between multiple prototypes. The prototype calculation processing unit 134 may convert the prototype of the recognition target.
[0039] The prototype calculation processing unit 134 may normalize the prototypes by performing statistical calculations on the distances between the multiple prototypes. For example, the prototype calculation processing unit 134 calculates the standard deviation and average of the distances between the multiple prototypes, and normalizes the multiple prototypes based on the calculation results. The prototype calculation processing unit 134 may convert the multiple prototypes to have a normal distribution with an average of 0 and a standard deviation of 1. This allows the conversion to increase the distances between the multiple prototypes.
[0040] For example, the prototype calculation processing unit 134 calculates the maximum and minimum values of the distances between multiple prototypes, and normalizes the multiple prototypes based on the calculation results. The prototype calculation processing unit 134 may convert the multiple prototypes to be in the range of 0.0-1.0. This allows the conversion to increase the distances between the multiple prototypes.
[0041] For example, the prototype calculation processing unit 134 normalizes the multiple prototypes using parameters determined in advance by machine learning. For example, the prototype calculation processing unit 134 converts the multiple prototypes using a conversion formula aX+b using a and b determined by machine learning. Any machine learning method may be used as long as it is possible to convert the multiple prototypes so that the distance between them is increased.
[0042] The prototype computation unit 134 may also transform the query features.
[0043] The prototype matching processor 136 may estimate the position of the target included in the query image using the distances between the multiple prototypes. The prototype matching processor 136 may estimate the position of the target included in the query image using the transformed prototype. The prototype matching processor 136 may estimate the position of the target included in the query image using the transformed prototype and the transformed query feature.
[0044] 2 shows an example of a processing flow by the image recognition device 100. Here, it is assumed that the recognition target is an airplane, and the number of support images used in the matching inference process is four, and the processing flow is shown up to the point where the image recognition device 100 selects four support images to estimate the position of the airplane included in the query image.
[0045] In step (sometimes abbreviated to S) 102, the query image acquisition unit 112 acquires a query image. In S104, the candidate extraction unit 114 randomly extracts 12 candidate images from the airplane dataset stored in the data storage unit 110, which is calculated by multiplying the number of required support images (4) by a pre-registered numerical value (3). Note that in this example, a case will be described in which the pre-registered numerical value is 3, but the numerical value is not limited to 3 and may be registered arbitrarily and may be changeable.
[0046] In S106, the image conversion processing unit 122 converts the query image acquired by the query image acquisition unit 112 in S102 and each of the 12 candidate images extracted by the candidate extraction unit 114 in S104 into statistical information. In S108, the comparison calculation unit 124 executes a comparison calculation between each of the statistical information of the 12 candidate images and the statistical information of the query image, thereby determining the similarity between each of the 12 candidate images and the query image.
[0047] If the number of candidate images whose similarity to the query image is equal to or greater than a predetermined similarity threshold is less than the required number of four (YES in S110), proceed to S112; if it is equal to or greater than four (NO in S110), proceed to S122.
[0048] In S112, the supporting image selection unit 120 holds candidate images that are equal to or greater than the similarity threshold. For example, if there are two candidate images that are equal to or greater than the similarity threshold, the supporting image selection unit 120 holds the two candidate images. In S114, the candidate extraction unit 114 extracts 12 candidate images again from the airplane dataset. The candidate extraction unit 114 extracts 12 candidate images from the dataset other than the 12 candidate images extracted in S104.
[0049] In S116, the image conversion processing unit 122 converts each of the 12 candidate images newly extracted by the candidate extraction unit 114 in S114 into statistical information. In S118, the comparison calculation unit 124 executes a comparison operation between each of the statistical information of the 12 candidate images converted in S116 and the statistical information of the query image converted in S106, thereby determining the similarity between each of the 12 candidate images and the query image.
[0050] If the sum of the number of candidate images whose similarity to the query image is equal to or greater than the similarity threshold and the candidate images held by supporting image selection unit 120 is less than the required number of four (YES in S120), the process returns to S112, and if it is equal to or greater than four (NO in S120), the process proceeds to S122. S112 to S120 are repeated until the number of candidate images whose similarity to the query image is equal to or greater than the similarity threshold becomes four or more.
[0051] In S122, the supporting image selection unit 120 selects four supporting images from the four or more candidate images. When the number of candidate images is four, the supporting image selection unit 120 selects the four candidate images as supporting images. When the number of candidate images is five or more, the supporting image selection unit 120 sets the four candidate images selected from the five or more candidate images as the four supporting images. For example, the supporting image selection unit 120 identifies four candidate images from the five or more candidate images in order of similarity with the query image, and sets the identified four candidate images as the four supporting images.
[0052] 3, 4, and 5 are explanatory diagrams for explaining an example of the processing contents by the image recognition device 100. Here, a 4-Shot case is illustrated, that is, a case in which the support data 20 includes four sets of support images 22 and annotation data 24, and the recognition target is an airplane.
[0053] Each of the four supporting images 22 includes an airplane. Each of the four annotation data 24 indicates the position of the airplane in the corresponding supporting image 22.
[0054] The feature extraction processing unit 132 generates, for each of the four supporting images 22, a supporting feature 200 indicating a feature amount for each of a plurality of regions 201 of the supporting image 22. The size of the region 201 may be any size and may be changeable by settings.
[0055] The prototype calculation processor 134 generates a prototype of an airplane using the annotation data 24 and the supporting features 200. In this example, the prototype calculation processor 134 extracts feature amounts of a plurality of airplane regions 202 of the first supporting feature 200. Similarly, the prototype calculation processor 134 extracts feature amounts of a plurality of airplane regions 202 of the other three supporting features 200. The prototype calculation processor 134 arranges the extracted feature amounts in the feature space 212 and calculates the center of gravity of the feature amounts as the airplane prototype 222.
[0056] 5, the feature extraction processor 132 generates query features 300 indicating feature amounts for each of a plurality of regions 301 of the query image 30. The prototype matching processor 136 generates a similarity map 310 by calculating the similarity between each of the plurality of regions 301 and the airplane prototype 222. The prototype matching processor 136 then estimates that a region among the plurality of regions of the query image 30 in which the calculated similarity is higher than a threshold value is the region in which the airplane is located.
[0057] 6 is a schematic diagram showing an example of a hardware configuration of a computer 1200 functioning as the image recognition device 100. A program installed in the computer 1200 can cause the computer 1200 to function as one or more "parts" of the device according to the present embodiment, or cause the computer 1200 to execute operations associated with the device according to the present embodiment or one or more "parts" thereof, and / or cause the computer 1200 to execute a process according to the present embodiment or steps of the process. Such a program can be executed by the CPU 1212 to cause the computer 1200 to execute specific operations associated with some or all of the blocks of the flowcharts and block diagrams described herein.
[0058] The computer 1200 according to this embodiment includes a CPU 1212, a RAM 1214, and a graphics controller 1216, which are connected to each other by a host controller 1210. The computer 1200 also includes input / output units such as a communication interface 1222, a storage device 1224, a DVD drive 1226, and an IC card drive, which are connected to the host controller 1210 via an input / output controller 1220. The DVD drive 1226 may be a DVD-ROM drive, a DVD-RAM drive, or the like. The storage device 1224 may be a hard disk drive, a solid state drive, or the like. The computer 1200 also includes a legacy input / output unit such as a ROM 1230 and a keyboard, which are connected to the input / output controller 1220 via an input / output chip 1240.
[0059] The CPU 1212 operates according to a program stored in the ROM 1230 and the RAM 1214, thereby controlling each unit. The graphic controller 1216 acquires image data generated by the CPU 1212 into a frame buffer or the like provided in the RAM 1214 or into itself, and causes the image data to be displayed on the display device 1218.
[0060] The communication interface 1222 communicates with other electronic devices via a network. The storage device 1224 stores programs and data used by the CPU 1212 in the computer 1200. The DVD drive 1226 reads programs or data from a DVD-ROM 1227 or the like and provides the programs or data to the storage device 1224. The IC card drive reads programs and data from an IC card and / or writes programs and data to an IC card.
[0061] The ROM 1230 stores therein a boot program or the like that is executed by the computer 1200 upon activation, and / or a program that depends on the hardware of the computer 1200. The input / output chip 1240 may also connect various input / output units to the input / output controller 1220 via a USB port, a parallel port, a serial port, a keyboard port, a mouse port, and the like.
[0062] The programs are provided by a computer-readable storage medium such as a DVD-ROM 1227 or an IC card. The programs are read from the computer-readable storage medium, installed in the storage device 1224, the RAM 1214, or the ROM 1230, which are also examples of computer-readable storage media, and executed by the CPU 1212. Information processing described in these programs is read by the computer 1200, and brings about cooperation between the programs and the various types of hardware resources described above. An apparatus or method may be constructed by implementing operations or processing of information according to the use of the computer 1200.
[0063] For example, when communication is performed between the computer 1200 and an external device, the CPU 1212 may execute a communication program loaded in the RAM 1214 and instruct the communication interface 1222 to perform communication processing based on the processing described in the communication program. Under the control of the CPU 1212, the communication interface 1222 reads transmission data stored in a transmission buffer area provided in the RAM 1214, the storage device 1224, the DVD-ROM 1227, or a recording medium such as an IC card, and transmits the read transmission data to a network, or writes reception data received from the network to a reception buffer area or the like provided on the recording medium.
[0064] Furthermore, the CPU 1212 may cause all or a necessary portion of a file or database stored in an external recording medium such as the storage device 1224, the DVD drive 1226 (DVD-ROM 1227), an IC card, etc. to be read into the RAM 1214, and perform various types of processing on the data on the RAM 1214. The CPU 1212 may then write back the processed data to the external recording medium.
[0065] Various types of information, such as various types of programs, data, tables, and databases, may be stored in the recording medium and undergo information processing. The CPU 1212 may perform various types of processing on the data read from the RAM 1214, including various types of operations, information processing, conditional judgment, conditional branching, unconditional branching, information search / replacement, etc., as described throughout this disclosure and specified by the instruction sequence of the program, and write back the results to the RAM 1214. The CPU 1212 may also search for information in a file, database, etc. in the recording medium. For example, when a plurality of entries each having an attribute value of a first attribute associated with an attribute value of a second attribute are stored in the recording medium, the CPU 1212 may search for an entry whose attribute value of the first attribute matches a specified condition from among the plurality of entries, read the attribute value of the second attribute stored in the entry, and thereby obtain the attribute value of the second attribute associated with the first attribute that satisfies a predetermined condition.
[0066] The above-described programs or software modules may be stored in a computer-readable storage medium on the computer 1200 or in the vicinity of the computer 1200. In addition, a recording medium such as a hard disk or a RAM provided in a server system connected to a dedicated communication network or the Internet can be used as a computer-readable storage medium, thereby providing the programs to the computer 1200 via the network.
[0067] The blocks in the flowcharts and block diagrams in the present embodiment may represent stages of a process in which an operation is performed or "parts" of an apparatus responsible for performing the operation. Particular stages and "parts" may be implemented by dedicated circuitry, programmable circuitry provided with computer-readable instructions stored on a computer-readable storage medium, and / or a processor provided with computer-readable instructions stored on a computer-readable storage medium. The dedicated circuitry may include digital and / or analog hardware circuits, and may include integrated circuits (ICs) and / or discrete circuits. The programmable circuitry may include reconfigurable hardware circuits, such as, for example, field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), and the like, including AND, OR, XOR, NAND, NOR, and other logical operations, flip-flops, registers, and memory elements.
[0068] A computer-readable storage medium may include any tangible device capable of storing instructions that are executed by a suitable device, such that a computer-readable storage medium having instructions stored thereon comprises an article of manufacture that includes instructions that can be executed to create means for performing the operations specified in the flowcharts or block diagrams. Examples of computer-readable storage media may include electronic storage media, magnetic storage media, optical storage media, electromagnetic storage media, semiconductor storage media, and the like. More specific examples of computer-readable storage media may include floppy disks, diskettes, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs or flash memories), electrically erasable programmable read-only memories (EEPROMs), static random access memories (SRAMs), compact disk read-only memories (CD-ROMs), digital versatile disks (DVDs), Blu-ray disks, memory sticks, integrated circuit cards, and the like.
[0069] The computer readable instructions may include either assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk®, JAVA®, C++, etc., and conventional procedural programming languages such as the “C” programming language or similar programming languages.
[0070] Computer readable instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, or to a programmable circuit, either locally or over a local area network (LAN), a wide area network (WAN), such as the Internet, etc., to cause the processor of the general purpose computer, special purpose computer, or other programmable data processing apparatus, or to a programmable circuit, to execute the computer readable instructions to generate means for performing the operations specified in the flowcharts or block diagrams. Examples of processors include computer processors, processing units, microprocessors, digital signal processors, controllers, microcontrollers, etc.
[0071] Although the present invention has been described above using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments. It is clear to those skilled in the art that various modifications and improvements can be made to the above embodiments. It is clear from the description of the claims that such modifications and improvements can also be included in the technical scope of the present invention.
[0072] It should be noted that the order of execution of each process, such as operations, procedures, steps, and stages, in the devices, systems, programs, and methods shown in the claims, specifications, and drawings is not specifically stated as "before" or "prior to," and that the process may be performed in any order unless the output of a previous process is used in a later process. Even if the operational flow in the claims, specifications, and drawings is described using "first," "next," etc. for convenience, it does not mean that the process must be performed in this order. [Explanation of symbols]
[0073] 20 support data, 22 support image, 24 annotation data, 30 query image, 100 image recognition device, 110 data storage unit, 112 query image acquisition unit, 114 candidate extraction unit, 120 support image selection unit, 122 image conversion processing unit, 124 comparison calculation unit, 130 matching inference processing unit, 132 feature extraction processing unit, 134 prototype calculation processing unit, 136 prototype matching processing unit, 200 support feature, 201 region, 202 airplane region, 212 feature space, 222 airplane prototype, 300 query feature, 301 region, 310 similarity map, 1200 computer, 1210 host controller, 1212 CPU, 1214 RAM, 1216 graphics controller, 1218 display device, 1220 input / output controller, 1222 communication interface, 1224 storage device, 1226 DVD drive, 1227 DVD-ROM, 1230 ROM, 1240 I / O chip
Claims
1. a query image acquisition unit that acquires a query image; a support image selection unit that selects some of the candidate images as support images by comparing each of the candidate images in which a recognition target is captured with the query image; a matching and inference processing unit that estimates a position of a recognition target included in the query image by using support data including the support image selected by the support image selection unit and annotation data indicating a position of a subject in the support image; Equipped with The supporting image selection unit determines a similarity between each of the plurality of candidate images and the query image, and selects a plurality of the supporting images from the plurality of candidate images based on the determined similarity.
2. a query image acquisition unit that acquires a query image; A candidate extraction unit that extracts a plurality of candidate images from a data set including a plurality of images of a recognition target; a support image selection unit that selects some of the plurality of candidate images as support images by comparing each of the plurality of candidate images extracted by the candidate extraction unit with the query image; a matching and inference processing unit that estimates a position of a recognition target included in the query image by using support data including the support image selected by the support image selection unit and annotation data indicating a position of a subject in the support image; Equipped with the supporting image selection unit determines a similarity between each of the plurality of candidate images and the query image, and selects a plurality of the supporting images based on the determined similarity. Image recognition device.
3. The supporting image selection unit an image conversion processing unit that converts each of the plurality of candidate images and the query image into statistical information; a comparison calculation unit that determines the degree of similarity between each of the plurality of candidate images and the query image by performing a comparison operation between the statistical information of each of the plurality of candidate images and the statistical information of the query image; The image recognition device according to claim 1 or 2, further comprising:
4. 4. The image recognition device according to claim 3, wherein the image conversion processing unit converts each of the plurality of candidate images and the query image into the statistical information by performing at least one of HSV conversion, histogram calculation, filtering, and feature point extraction on each of the plurality of candidate images and the query image.
5. 5. The image recognition device according to claim 4, wherein the comparison calculation unit determines a similarity between each of the plurality of candidate images and the query image by performing at least one of SSIM (Structural SIMilarity), PSNR (Peak Signal to Noise Ratio), and data distance calculation on the statistical information of each of the plurality of candidate images and the statistical information of the query image.
6. The image recognition device according to claim 1 , wherein the supporting image selection unit identifies a predetermined number of candidate images from the plurality of candidate images in order of increasing similarity, and selects the identified plurality of candidate images as the plurality of supporting images.
7. The image recognition device according to claim 2 , wherein the candidate extraction unit randomly extracts a predetermined number of the candidate images from the data set.
8. 3. The image recognition device according to claim 2, wherein when a number of the plurality of candidate images whose similarity is higher than a predetermined similarity threshold is greater than a predetermined number, the support image selection unit identifies the predetermined number of the candidate images from the plurality of candidate images and selects the identified plurality of candidate images as the plurality of support images.
9. 9. The image recognition device of claim 8, wherein when the number of the candidate images among the plurality of candidate images whose similarity is higher than the similarity threshold is smaller than the predetermined number, the supporting image selection unit selects the candidate images whose similarity is higher than the similarity threshold as part of the plurality of supporting images, the candidate extraction unit newly extracts from the dataset a plurality of candidate images other than the plurality of candidate images extracted from the dataset, the supporting image selection unit determines a similarity between each of the plurality of candidate images newly extracted by the candidate extraction unit and the query image, and selects the candidate images whose similarity is higher than the similarity threshold as part of the other of the plurality of supporting images.
10. A program for causing a computer to function as the image recognition device according to claim 1 or 2.
11. 1. A computer-implemented method for image recognition, comprising: A query image acquisition stage for acquiring a query image; a supporting image selection step of selecting a part of a plurality of candidate images as supporting images by comparing each of the plurality of candidate images in which a recognition target is captured with the query image; a matching and inference processing step of estimating a position of a recognition target included in the query image by using support data including the support image selected in the support image selection step and annotation data indicating a position of a subject in the support image; Equipped with The image recognition method, wherein the supporting image selection step determines a similarity between each of the plurality of candidate images and the query image, and selects a plurality of the supporting images from the plurality of candidate images based on the determined similarity.
12. 1. A computer-implemented method for image recognition, comprising: A query image acquisition stage for acquiring a query image; A candidate extraction stage in which a plurality of candidate images are extracted from a dataset including a plurality of images of a recognition target; a supporting image selection step of selecting a part of the plurality of candidate images as supporting images by comparing each of the plurality of candidate images extracted in the candidate extraction step with the query image; a matching and inference processing step of estimating a position of a recognition target included in the query image by using support data including the support image selected in the support image selection step and annotation data indicating a position of a subject in the support image; Equipped with The supporting image selection step includes determining a similarity between each of the plurality of candidate images and the query image, and selecting a plurality of the supporting images based on the determined similarity. Image recognition methods.
Citation Information
Patent Citations
JPP7447221B
