Image processing apparatus, and image processing method
The method leverages connected hierarchical features and attribute score maps to reduce computational costs in CNN-based object recognition, facilitating efficient and robust size and posture recognition.
Patent Information
- Application Number
- JP2024113628
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2037-08-09
AI Technical Summary
Conventional methods for object recognition using Convolutional Neural Networks (CNN) incur high calculation costs when dealing with multiple candidate areas or simultaneous recognition tasks.
A method involving a hierarchical neural network to generate connected hierarchical features, attribute score maps, and integrate these maps to output recognition results, reducing computational burden while maintaining robustness.
Enables fast and robust recognition of object size and posture without excessive calculation, supporting multiple recognition tasks efficiently.
Smart Images

Figure 2024128138000001
Abstract
Description
[Technical field]
[0001] The present invention relates to recognition technology. [Background technology]
[0002] There are known technologies that extract features from video data and use a classifier to identify the subject in the video data. One such technology is the Convolutional Neural Network (CNN), a type of neural network. CNN has the property of sequentially performing local convolution calculations in multiple stages.
[0003] In the technology described in Non-Patent Document 1, CNN is applied to image data to detect objects. Specifically, (1) the image is processed by CNN. Furthermore, (2) the features of the final layer of CNN are collected for each Region of Interest, and it is determined whether or not it is an object. This process is performed for all Regions of Interest. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent application 2015-115171 [Non-patent literature]
[0005] [Non-Patent Document 1] Shaoqing Ren, Kaiming He, Ross Girshick, Jian Sun, Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks, NIPS 2015 [Non-Patent Document 2] MD Zeiler, R. Fergus, Visualizing and Understanding Convolutional Networks, ECCV 2014 [Non-Patent Document 3] Hyeonwoo Noh, Seunghoon Hong, Bohyung Han, Learning Deconvolution Network for Semantic Segmentation, ICCV 2015 [Non-Patent Document 4] A. Krizhevsky et al., ImageNet Classification with Deep Convolutional Neural Networks, NIPS 2012 [Non-Patent Document 5] Emmanouil Z. Psarakis and Georgios D. Evangelidis, An Enhanced Correlation-Based Method for Stereo Correspondence with Sub-Pixel Accuracy, ICCV 2005 [Non-Patent Document 6] Wei Luo, XiaogangWang, Xiaoou Tang, Content-Based Photo Quality Assessment, ICCV 2011 [Non-Patent Document 7] Lazebnik, Schmid, Ponce, Beyond Bags of Features: Spatial Pyramid Matching for Recognizing Natural Scene Categories, CVPR 2006 Summary of the Invention [Problem to be solved by the invention]
[0006] In conventional methods such as that described in Non-Patent Document 1, features are aggregated for each region of interest. This poses the problem of high computational costs when there are many candidate object regions or when multiple recognition tasks are performed simultaneously.
[0007] The present invention has been made in consideration of such problems, and provides a technique for performing recognition processing at high speed and robustly with respect to factors such as size and orientation, without performing conventional processing that requires high computational costs. [Means for solving the problem]
[0008] One aspect of the present invention is characterized in that it comprises a feature generation means for generating concatenated hierarchical features by concatenating outputs of multiple layers of a hierarchical neural network obtained by processing an input image using the hierarchical neural network, a map generation means for generating, for each attribute, an attribute score map representing attributes of a region of the input image using the concatenated hierarchical features, and an output means for integrating the attribute score maps for each attribute generated by the map generation means to generate and output a recognition result for a recognition target. Effect of the Invention
[0009] According to the configuration of the present invention, it is possible to perform recognition processing robustly with respect to size, orientation, and the like at high speed without requiring processing that requires high computational costs as in the conventional art. [Brief description of the drawings]
[0010] [Figure 1] FIG. 2 is a block diagram showing an example of the functional configuration of an image processing apparatus. [Diagram 2] FIG. 2 is a block diagram showing an example of the functional configuration of an image processing apparatus. [Diagram 3] 4 is a flowchart of a recognition process performed by the image processing device. [Figure 4] 4 is a flowchart of the processes in steps S1 to S4. [Diagram 5] FIG. [Figure 6] FIG. [Figure 7] A diagram showing an example of training data [Figure 8] 13 is a flowchart of a procedure for integrating attributes related to area determination. [Figure 9] 1 is a flowchart of an attribute integration procedure for object detection. [Figure 10] FIG. 11 is a diagram for explaining a modification of the first embodiment. [Figure 11] FIG. 2 is a block diagram showing an example of the functional configuration of an image processing apparatus. [Figure 12] 1 is a flow chart of an integration procedure for people detection. [Figure 13] 11A and 11B are diagrams showing an example of attribute determination and an example of result output. [Figure 14] FIG. 2 is a block diagram showing an example of the functional configuration of an image processing apparatus. [Figure 15] 4 is a flowchart of the operation of the image processing device. [Figure 16] 4 is a diagram showing horizon information values, focus information values, and photometry information values; [Figure 17] FIG. 2 is a diagram showing an example of the functional configuration of an image processing apparatus. [Figure 18] FIG. 2 is a block diagram showing an example of the functional configuration of an image processing apparatus. [Figure 19] 4 is a flowchart of the operation of the image processing device. [Figure 20] FIG. 13 is a diagram for explaining a variation of the fourth embodiment. [Figure 21] FIG. 2 is a block diagram showing an example of the hardware configuration of a computer apparatus. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings. Note that the embodiment described below shows an example of a specific implementation of the present invention, and is one of the specific examples of the configuration described in the claims.
[0012] [First embodiment] First, an example of the functional configuration of an image processing device that performs image recognition on an input image will be described with reference to the block diagram of FIG. 1. An image input unit 101 inputs an input image including one or more objects as a recognition target (detection target). A neural network 102 is a hierarchical neural network having a first layer to an n-th layer (n is a natural number of 2 or more), and processes the input image input by the image input unit 101. A linked feature generating unit 104 performs feature generation to generate a linked hierarchical feature 103 by linking outputs (feature maps) of a specified layer in the neural network 102. An attribute determining unit 105 has a first attribute determining unit 105a to an n-th attribute determining unit 105c, and each of the first attribute determining unit 105a to the n-th attribute determining unit 105c uses the linked hierarchical feature 103 to generate and output a likelihood map (attribute score map 108) of a corresponding attribute. The attribute integration unit 106 integrates the attribute score map 108 to generate a predetermined recognition result such as object detection or scene recognition for the input image. The result output unit 107 outputs the recognition result by the attribute integration unit 106.
[0013] An example of a specific image recognition process using such an image processing device will be described below. In the following, seven types of attributes, pedestrian, small face, large face, sky, ground, building, and main subject, are used as attributes for determining the attribute score map 108. In this case, as shown in Fig. 2, the attribute determination unit 105 in Fig. 1 is configured as an attribute determination unit 205 that generates the attribute score map 108 for each of these seven types of attributes. That is, in the following, an image processing device having an example of the functional configuration shown in Fig. 2 is used.
[0014] In FIG. 2, n=7 in FIG. 1, and the first attribute determining unit 105a to the seventh attribute determining unit 105c are respectively likelihood determining units 205a to 205g. The likelihood determining unit 205a generates an attribute score map 208 for the attribute "pedestrian". The likelihood determining unit 205b generates an attribute score map 208 for the attribute "small face". The likelihood determining unit 205c generates an attribute score map 208 for the attribute "large face". The likelihood determining unit 205d generates an attribute score map 208 for the attribute "sky". The likelihood determining unit 205e generates an attribute score map 208 for the attribute "ground". The likelihood determining unit 205f generates an attribute score map 208 for the attribute "building". The likelihood determining unit 205g generates an attribute score map 208 for the attribute "main subject".
[0015] Next, the recognition process performed by the image processing device of FIG. 2 on one input image will be described with reference to the flowchart of FIG.
[0016] In step S1, image input unit 101 inputs an input image. In step S2, neural network 102 processes the input image input by image input unit 101 in step S1, and linked feature generation unit 104 extracts an output (feature map) of a prescribed layer in neural network 102. In step S3, linked feature generation unit 104 generates linked hierarchical feature 103 by linking the outputs (feature maps) of the prescribed layer extracted in step S3. In step S4, each of attribute determination units 205a to 205g in attribute determination unit 205 generates attribute score maps 208 of pedestrians, small faces, large faces, sky, ground, buildings, and main subjects using linked hierarchical feature 103.
[0017] In step S5, the attribute integration unit 106 integrates the attribute score maps 208 generated by the attribute determination units 205a to 205g, respectively, to determine the areas of the sky, ground, and buildings in the input image. In step S6, the attribute integration unit 106 integrates the attribute score maps 208 generated by the attribute determination units 205a to 205g, respectively, to determine the area of the main subject in the input image. In step S7, the attribute integration unit 106 integrates the attribute score maps 208 generated by the attribute determination units 205a to 205g, respectively, to detect pedestrians and faces in the input image. In step S8, the result output unit 107 outputs the determination results and detection results in steps S5 to S7 by the attribute integration unit 106. The output destination of the result output unit 107 is not limited to a specific output destination.
[0018] Next, the details of the above-mentioned processes in steps S1 to S3, that is, the processes from inputting the input image to generating the linked hierarchical feature 103, will be described with reference to the flowchart in FIG. 4(A).
[0019] In step S101, the image input unit 101 inputs an input image. In step S102, the connected feature generation unit 104 initializes an array (array of connected hierarchical features) for registering the output (feature map) of a specified layer in the neural network 102 (an empty array is prepared by setting a value such as NULL to each element of the array). Then, the processes of steps S103 to S108 are performed for each of the first to n-th layers of the neural network 102. In the following, a CNN is used as the neural network 102. The CNN here may use only a type of layer called a convolutional layer, without using a layer called a fully connected layer.
[0020] In step S104, the neural network 102 performs arithmetic processing on the layer of interest. In the first step S104, arithmetic processing is performed on the first layer, in the second step S104, arithmetic processing is performed on the second layer, and in the nth step S104, arithmetic processing is performed on the nth layer. The neural network 102 performs the arithmetic processing in step S104 for each layer, thereby realizing the arithmetic processing of each layer as shown in FIG.
[0021] The neural network 102 according to this embodiment performs arithmetic processing for each layer as shown in Fig. 5. Although a three-layer neural network 102 is illustrated in Fig. 5 as an example, the number of layers is not limited to three.
[0022] The neural network 102 performs convolution filter processing 402a, 402b, and 402c at each layer in order to perform convolution filter processing multiple times on the input image 401. Furthermore, the neural network 102 performs activation function processing after the convolution filter processing at each layer (omitted in FIG. 5). Furthermore, the neural network 102 performs pooling processing 404a and 404b after the activation function processing at each layer except the first layer. The convolution filter processing and activation function processing performed at the Lth layer (L=1, 2, 3 in FIG. 5) are performed according to the following equations.
[0023]
number
[0024] where f L (x, y, z) is the feature map output by the Lth layer, and consists of z maps. The numbers in the unit ch in Fig. 5 indicate the number of feature maps. For example, in Fig. 5, feature map 403a consists of 64 maps, feature map 403b consists of 128 maps, and feature map 403c consists of 256 maps.
[0025] θ(·) is the activation function consisting of half-wave rectification. w L(Δx,Δy,CHIN,CHOUT) (where Δx,Δy∈{-K,...,0,...,K}) are the convolution weight parameters of the Lth layer, B L CHOUT is the bias term for the Lth layer. CHIN is the number of the feature map output by the (L-1)th layer, and CHOUT is the number of the feature map output by the Lth layer. In the above formula, the input image I(x,y) consisting of RGB3 channels is 0 It shall be treated as (x,y,z).
[0026] In this case, the feature map f is decomposed before the convolution process so that the size of the feature map in the x and y directions does not change before and after the convolution process. L-1 The surrounding pixels are filled with zero values before the convolution (this is called padding).
[0027] Pooling processes 404a and 404b are processes that reduce the size of the map by representing the feature map with a representative value for each specified local region. Pooling has the effect of making the recognition performance of CNN more robust, but has the disadvantage of reducing the resolution of the results. In the example shown in Figure 5, pooling processes 404a and 404b are processes that integrate feature maps every 2 x 2 pixels to reduce them to feature maps with half the resolution.
[0028] Through the computational processing up to this point, feature maps 403a, 403b, and 403c are generated at the stage of each layer of CNN. Since all of the above is a general technique related to CNN and is widely known in the art from Non-Patent Documents 1 to 3, etc., further detailed description will be omitted.
[0029] It is assumed that the CNN learns weight parameters in advance through a classification task using a large-scale database as described in Non-Patent Document 4. As a result, a map that responds well to simple patterns such as the inclination of line segments in an image is generated as a low-level feature map 403a close to the input image of the CNN. Then, as a higher-level feature map 403c in the latter stage, a map that aggregates a wider range of image patterns and responds to complex pattern shapes is generated. The above-mentioned properties of CNN are widely known in Non-Patent Document 2 and other publications.
[0030] Returning to Fig. 4(A), in step S105, the connection feature generating unit 104 judges whether the layer of interest is a predetermined specified layer (a layer that outputs a feature map) among the layers in the neural network 102. That is, the connection feature generating unit 104 judges whether the feature map resulting from the arithmetic processing by the neural network 102 is the result of the specified layer. If the result of this judgment is that the layer of interest is the specified layer, the process proceeds to step S106, and if the layer of interest is not the specified layer, the process returns to step S103 with the next layer as the layer of interest.
[0031] In step S107, the linked feature generating unit 104 adds and registers the feature map, which is the output of the layer of interest, to the above array. By repeating this process, a high-dimensional linked hierarchical feature (array) in which multiple feature maps are linked together is finally obtained. In the example of FIG. 5, the feature map f 1 (x,y),f 2 (x,y),f 3 A 448-channel connected hierarchical feature 406 (F(x,y)) is obtained by connecting (x,y). The connected hierarchical feature is generally expressed by the following formula.
[0032]
number
[0033] where F is the connected hierarchical feature. 1 ,f 2 ,f nis a feature map extracted from the neural network 102, and the linked hierarchical feature F is obtained by linking the above feature maps in the Z-dimensional direction. x, y are the coordinates of a pixel in the feature map.
[0034] Generally, since CNN performs pooling processing, the resolution of the feature map differs depending on the layer. Therefore, in step S106 before step S107, the linked feature generation unit 104 aligns the resolution of the feature map to be registered in the above array to a specified resolution. In the example of FIG. 5, the vertical and horizontal resolution of feature map 403b is half that of feature map 403a (input image 401), and the vertical and horizontal resolution of feature map 403c is half that of feature map 403b. In this case, the linked feature generation unit 104 does not perform resolution conversion on feature map 403a, but performs resolution conversion on feature map f. 1 Let (x, y). The linked feature generating unit 104 also performs upsampling process 405a on the feature map 403b to double its vertical and horizontal size (resolution), thereby aligning the vertical and horizontal size (resolution) of the feature map 403b to that of the feature map 403a (input image 401). This "vertical and horizontal size (resolution) of the feature map 403b aligned to that of the feature map 403a (input image 401)" is the feature map f. 2 (x, y). Size conversion (resolution conversion) by upsampling can be realized by adopting a common method such as copying pixel values or linear interpolation. Furthermore, the linked feature generating unit 104 performs upsampling 405b on the feature map 403c, which increases the vertical and horizontal size (resolution) by a factor of four, thereby aligning the vertical and horizontal size (resolution) of the feature map 403c to that of the feature map 403a (input image 401). This "vertical and horizontal size (resolution) of the feature map 403c aligned to that of the feature map 403a (input image 401)" is the feature map f. 3 (x, y).
[0035] Depending on the size to be aligned, downsampling may be performed instead of upsampling. 1(x,y),f 2 (x,y),f 3 (x,y) has the same resolution as the input image I(x,y). And such a feature map f 1 (x,y),f 2 (x,y),f 3 The concatenation of (x,y) is the concatenated hierarchical feature 406 (F(x,y)).
[0036] In this embodiment, the input image I(x,y) and the linked hierarchical feature F(x,y) have the same resolution. However, if the magnification of the upsampling (downsampling) process is changed, it is possible to generate a linked hierarchical feature F'(x',y') with a coarser or finer resolution than the input image I(x,y). Therefore, in the following description, the pixels of the linked hierarchical feature F(x,y) will be referred to as "area blocks" as a generalized name.
[0037] The connected hierarchical features obtained in this manner are features that integrate multiple feature maps from the lower to higher layers of the neural network 102. Therefore, information on various scales and variations of various subjects is included in the features. Also, each region block (x, y) corresponds to a high-dimensional feature vector. Due to the above two properties, the connected hierarchical features can be effectively used for various recognition tasks (several variations of the types of recognition tasks that are possible are shown in each embodiment).
[0038] Next, the details of the process in step S4 above will be described with reference to the flowchart in Fig. 4(B). The processes in steps S109 to S113 are performed for each region block in the linked hierarchical feature. The processes in steps S110 to S112 are performed for each attribute (each of the seven types of attributes in this embodiment). The attributes to be determined in this embodiment are the presence or absence of three types of objects, namely, a pedestrian, a small-sized face, and a large-sized face, and the likelihood of four types of regions, namely, a sky region, a ground region, a building region, and a main subject region (the method of learning the classifier will be described later).
[0039] The attribute determination unit 205 has likelihood determination units 205a to 205g as discriminators that have been trained in advance to determine the likelihood of each of the above attributes. For example, a linear support vector machine (SVM) can be used as the discriminator. In step S111, the attribute determination unit 205 generates an attribute score map 208 for the j (1≦j≦7)-th attribute for the i (1≦i≦I: I is the number of domain blocks)-th domain block in the linked hierarchical feature. For example, when j=1, the likelihood determination unit 205a generates an attribute score map 208 for the attribute "pedestrian" for the i-th domain block. When j=2, the likelihood determination unit 205b generates an attribute score map 208 for the attribute "small face" for the i-th domain block. When j=3, the likelihood determination unit 205c generates an attribute score map 208 for the attribute "large face" for the i-th domain block. When j=4, likelihood determining unit 205d generates attribute score map 208 for attribute "sky" for the i-th region block. When j=5, likelihood determining unit 205e generates attribute score map 208 for attribute "ground" for the i-th region block. When j=6, likelihood determining unit 205f generates attribute score map 208 for attribute "building" for the i-th region block. When j=7, likelihood determining unit 205g generates attribute score map 208 for attribute "main subject" for the i-th region block. The attribute score map 208 is generated according to the following formula:
[0040]
number
[0041] However, L j (x,y) is the likelihood score of the jth attribute for the region block with coordinates (x,y), v jk is the k-th support vector of the j-th attribute classifier, and α jk is the weight coefficient of the support vector, b jare bias terms, which are acquired in advance by learning. In addition, F(x, y) is the feature vector of the region block with coordinates (x, y), and R(·) is the normalization function for converting the SVM output into a likelihood. However, in order to reduce the processing load, the normalization function R(·) is approximated by the following function to normalize the SVM score to 0 to 1.
[0042]
number
[0043] Here, τ is an appropriate constant. Since the attribute determination unit 205 performs determination processing for all area blocks and all attributes, it is preferable that the attribute determination unit 205 is a classifier with light processing such as the linear SVM in this embodiment. In other words, any classifier such as a decision tree or a multilayer perceptron may be used as long as the processing is light.
[0044] In this embodiment, the attribute determination is performed using the feature amount F(x, y) of each region block (x, y) as the input feature of the attribute determination unit 205. As another example, the feature amounts F(x+Δx, y+Δy) (where Δx, Δy∈{-w,...-1,0,1,...,w}) in the surrounding range w are all concatenated and determined as the feature amount. In this way, the discriminator of the attribute determination unit 205 and the feature amount used for the determination can be in various forms, and are not limited to any one of them.
[0045] The result of the above processing is shown in FIG. 6. As shown in FIG. 6, the likelihood determining unit 205a to the likelihood determining unit 205g of the attribute determining unit 205 perform attribute determination using the linked hierarchical feature 602 of the input image 601, so that an attribute score map 604 for each attribute can be generated. The attribute score map 604 includes an attribute score map in which the likelihood score (pedestrian likelihood score) of the attribute "pedestrian" obtained by the likelihood determining unit 205a for each area block is mapped. The attribute score map 604 also includes an attribute score map in which the likelihood score (face (small) likelihood score) of the attribute "small face" obtained by the likelihood determining unit 205b for each area block is mapped. The attribute score map 604 also includes an attribute score map in which the likelihood score (face (large) likelihood score) of the attribute "large face" obtained by the likelihood determining unit 205c for each area block is mapped. The attribute score map 604 also includes an attribute score map in which the likelihood score (sky likelihood score) of the attribute "sky" obtained by the likelihood determination unit 205d for each region block is mapped. The attribute score map 604 also includes an attribute score map in which the likelihood score (ground likelihood score) of the attribute "ground" obtained by the likelihood determination unit 205e for each region block is mapped. The attribute score map 604 also includes an attribute score map in which the likelihood score (building likelihood score) of the attribute "building" obtained by the likelihood determination unit 205f for each region block is mapped. The attribute score map 604 also includes an attribute score map in which the likelihood score (main subject likelihood score) of the attribute "main subject" obtained by the likelihood determination unit 205g for each region block is mapped. In FIG. 6, the region blocks with high likelihood scores of each attribute are represented in gray gradations, black, and the region blocks with low likelihood scores are represented in white.
[0046] Here, in order to obtain a determination result such as the attribute score map 604 shown in Fig. 6, the attribute determination unit 205 is trained in the following manner. An example of training data used for training the attribute determination unit 205 is shown in Fig. 7.
[0047] Each learning data set consists of an image as shown in Fig. 7(A) and (B) and a set of training values as shown in Fig. 7(C) to (F). The training values are of two types: training values for object attributes (Fig. 7(C) and (D)) and training values for region attributes (Fig. 7(E) and (F)).
[0048] The teacher value of the object attribute is a value indicating whether each area block contains any of the following objects: a pedestrian, a small-sized face, or a large-sized face. Specifically, area blocks containing the reference point of an object are positive cases (1), and other area blocks are negative cases (0), and a value of 0 or 1 is manually assigned to each object category (in this embodiment, the center of gravity of the object area is the reference point of the object).
[0049] The teacher values of the region attributes are obtained by assigning values of 0 or 1 to each region category, with region blocks whose areas are equal to or larger than a predetermined value being in the category being positive examples (1) and other region blocks being negative examples (0). Specific examples are shown in Fig. 7 (E) and (F). The region blocks of the positive examples of the sky region, ground region, building region, and main subject region are assigned the symbols S, G, B, and M, respectively. For convenience, only one region category symbol is shown for one region block here, but one region block may be associated with multiple attributes, such as a building being the main subject.
[0050] The teacher values of each attribute given above (0, 1) are used as the goal variables, and the connected hierarchical feature value F(x, y) of the corresponding region block is used as the explanatory variable. The SVM is trained based on a large number of training examples so that it can distinguish between positive and negative examples. Training is performed for each attribute j, and the SVM parameters ([v jk ,α jk ,b j The above is the learning procedure of the attribute determination unit 205.
[0051] Next, a detailed procedure for integrating attribute score maps and outputting the results of the target recognition task (details of the processing in steps S5 to S8 above) will be described. Here, the integration of attribute score maps refers to a process of determining the target recognition task using multiple attributes as direct and indirect clues. There are rule-based integration, machine learning methods using classifiers and regression devices, and combinations of these. Here, the rule-based method will be described.
[0052] In the case of a human body detection task, attributes of the human body, face attributes, building attributes (which are easily misdetected as human bodies), etc. are attributes that provide clues for determining whether a human body exists. In addition, since faces and human bodies have a co-occurrence relationship, and human bodies and buildings have an exclusive relationship in that they do not exist in the same location, it is possible to perform integration that takes into account the relationship between these attributes. Specifically, this is done using the procedure described below.
[0053] The detailed procedure for integrating attribute score maps to output the results of a target recognition task will be described with reference to Figures 8 and 9. Figure 8 is a flowchart of the procedure for integrating attributes related to region determination, and Figure 9 is a flowchart of the procedure for integrating attributes related to object detection.
[0054] 8A is a flowchart of the integration procedure for sky, ground, and building regions. The processes of steps S201 to S207 are performed for each region block in the linked hierarchical feature. The processes of steps S202 to S206 are performed for each attribute (in this embodiment, each of "sky," "ground," and "building").
[0055] In step S203, the attribute integration unit 106 judges whether the likelihood score of the jth attribute of the i-th (1≦i≦I: I is the number of area blocks) area block is equal to or greater than a predetermined value. Here, the first attribute (j=1) is assumed to be "sky", the second attribute (j=2) is assumed to be "ground", and the third attribute (j=3) is assumed to be "building". If the likelihood score of the jth attribute of the i-th area block is equal to or greater than a predetermined value, the process proceeds to step S204. On the other hand, if the likelihood score of the jth attribute of the i-th area block is less than a predetermined value, the process proceeds to step S206. If the processes of steps S202 to S206 have been performed for j=1 to 3, steps S203 and onwards are performed for the (i+1)-th area block. If the processes of steps S201 to S207 have been performed for i=1 to I, the process of FIG. 8(A) is completed.
[0056] In step S204, the attribute integration unit 106 determines whether the likelihood score of the other attributes (excluding the main subject) of the i-th region block is less than a predetermined value. If the result of this determination is that the likelihood score of the other attributes (excluding the main subject) of the i-th region block is less than the predetermined value, the process proceeds to step S205. On the other hand, if the likelihood score of the other attributes (excluding the main subject) of the i-th region block is equal to or greater than the predetermined value, the process proceeds to step S206.
[0057] In step S205, the attribute integration unit 106 determines that the attribute of the i-th area block is the j-th attribute.
[0058] FIG. 8(B) is a flowchart of the integration procedure for the main subject region. The processing is almost the same as the processing according to the flowchart in FIG. 8(A). However, unlike the procedure in FIG. 8(A), since any of the faces, pedestrians, sky, ground, and buildings can be the main subject, the likelihood scores of other attributes are not taken into consideration. The processing of steps S210 to S213 is performed for each region block in the linked hierarchical feature.
[0059] In step S211, attribute integration unit 106 determines whether the likelihood score of the attribute "main subject" of the i-th area block (1≦i≦I: I is the number of area blocks) is equal to or greater than a predetermined value. If the result of this determination is that the likelihood score of the attribute "main subject" of the i-th area block is equal to or greater than the predetermined value, processing proceeds to step S212. On the other hand, if the likelihood score of the attribute "main subject" of the i-th area block is less than the predetermined value, processing proceeds to step S213, and subsequent processing is performed on the next area block. In step S212, attribute integration unit 106 determines that the attribute of the i-th area block is "main subject".
[0060] 9 is a flowchart of the integration procedure for detecting pedestrians and faces. In step S301, the attribute integration unit 106 initializes the value of a variable n, which indicates the number of detected objects, to 0. The processes of steps S302 to S310 are performed for each area block in the linked hierarchical feature. The processes of steps S303 to S309 are performed for each attribute (in this embodiment, "pedestrian", "small face", and "large face").
[0061] In step S304, the attribute integration unit 106 judges whether the likelihood score of the jth attribute of the i-th (1≦i≦I: I is the number of area blocks) area block is equal to or greater than a predetermined value. Here, the first attribute (j=1) is assumed to be "pedestrian", the second attribute (j=2) is assumed to be "small face", and the third attribute (j=3) is assumed to be "large face". If the result of this judgment is that the likelihood score of the jth attribute of the i-th area block is equal to or greater than a predetermined value, the process proceeds to step S305. On the other hand, if the likelihood score of the jth attribute of the i-th area block is less than a predetermined value, the process proceeds to step S309. If the processes of steps S303 to S309 have been performed for j=1 to 3, steps S304 and thereafter are performed for the (i+1)-th area block. If the processes of steps S302 to S310 have been performed for i=1 to I, the process of FIG. 9(A) is completed.
[0062] In step S305, the attribute integration unit 106 judges whether the likelihood score of the jth attribute of the i-th region block is the maximum among the likelihood scores of all attributes (excluding the main subject) of the nine region blocks, including the region block and the eight region blocks adjacent to the region block. If the result of this judgment is that the likelihood score of the jth attribute of the i-th region block is the maximum among the likelihood scores of all attributes (excluding the main subject) of these nine region blocks, the process proceeds to step S306. On the other hand, if the likelihood score of the jth attribute of the i-th region block is not the maximum among the likelihood scores of all attributes (excluding the main subject) of these nine region blocks, the process proceeds to step S309.
[0063] In step S306, the attribute integration unit 106 determines that the reference point of the object of the j-th attribute (here, the center of gravity of the object) has been detected, and increments the value of the variable n by 1. In step S307, the attribute integration unit 106 associates the position of the reference point of the object with the likelihood score of the j-th attribute of the i-th region block, and stores them in a memory (not shown) in the image processing device.
[0064] In step S308, the attribute integration unit 106 performs position correction using sub-pixel estimation to estimate the object position in more detail. Here, the sub-pixel estimation uses a method such as that described in Non-Patent Document 5. In Non-Patent Document 5, position correction is performed based on the score values around the object position.
[0065] The process then proceeds to step S311 in Fig. 9(B). The processes in steps S311 to S315 are performed for each object detected by the process according to the flowchart in Fig. 9(A).
[0066] In step S312, the attribute integration unit 106 selects an unselected object (the kth object (k=1 to n)) from among the objects detected in the process according to the flowchart in FIG. 9(A) as a selected object. The attribute integration unit 106 then determines whether the attribute of the selected object is "small face" or "large face". If the result of this determination is that the attribute of the selected object is "small face" or "large face", the process proceeds to step S313, and if the attribute of the selected object is neither "small face" nor "large face", the process proceeds to step S314.
[0067] In step S313, the attribute integration unit 106 estimates the face size by a weighted sum according to the following formula using the likelihood scores of two types of faces with different sizes.
[0068]
number
[0069] However, L 小 , L 大 are the likelihood scores for small and large faces, respectively, and the reference size 小 , Reference size 大 is a predetermined reference value for face size.
[0070] By the above processing up to step S315, attribute information that existed separately in each area block, such as the likelihood of a face by size, the likelihood of a pedestrian, and the likelihood of each category of the background area, is organized and integrated as an object detection result with identified position and size. In this embodiment, pedestrians and faces are integrated independently. However, it is also possible to use a co-occurrence relationship, such as a high possibility that a small-sized face exists around an area block with a high likelihood of a pedestrian. As such a derived form, for example, the following method is conceivable. (1) First, the score map of the pedestrian is blurred and added to the score map of the small-sized face. (2) The obtained map is made into a new score map of the small-sized face. (3) The attribute integration processing (steps S301 to S315) is performed in the same procedure as before.
[0071] As an example of an attribute integration form that can prevent buildings from being mistakenly detected as pedestrians, the following method can be considered: (1) Subtract the score map of building areas from the score map of pedestrians. (2) The obtained map is used as a new score map of pedestrians. (3) Attribute integration processing (steps S301 to S315) is performed in the same manner as before.
[0072] An example of the results obtained by the above processing by the attribute integration unit 106 is shown in Fig. 6 as integration result 606. The detection results of pedestrians and faces are indicated by dashed frames, and the area blocks determined to be the sky area, ground area, building area, and main subject area are indicated by the symbols S, G, B, and M, respectively.
[0073] In step S314, result output unit 107 outputs a "rectangular frame of estimated size" for the position of the detected face. If a pedestrian is detected, a "rectangular frame of a predetermined size" for the position of the pedestrian is output. Similarly, in step S316, result output unit 107 outputs labels for each of the region blocks of the sky region, ground region, and building region. In step S317, result output unit 107 outputs a label for the region block of the main subject region. These are the final output results. An example of the final output result by result output unit 107 is shown in FIG. 6 as final output result 607.
[0074] It should be noted that by adopting the attribute information integration method shown in this embodiment, such as correcting the object position and estimating the face size, the final output result 607 is obtained with a higher resolution than the original attribute score map. Generating detailed link hierarchical features and detailed attribute score maps requires a large computational cost. On the other hand, the attribute integration method shown in this embodiment makes it possible to obtain detailed results from a low-resolution attribute score map with a relatively low computational cost. This point is particularly emphasized here because it is one of the features of this embodiment, which determines multiple attributes and integrates them to recognize the target.
[0075] <Modification of the first embodiment> In the first embodiment, CNN is used as the neural network, but the usable neural network is not limited to CNN. Any neural network or similar method that is composed of multiple layers and generates intermediate results as a map can be applied. As such a method, for example, a non-CNN type neural network that does not share weights between convolution filters in each layer can be considered.
[0076] As yet another example, it is possible to use a configuration that employs the same convolution processing as CNN, rather than SVM, as the attribute determination unit 205. In this derived configuration, it is also possible to simultaneously learn the parameters of the convolution processing of the attribute determination unit 205 and the parameters of the preceding neural network 102 using the backpropagation method. In this case, it is expected that the accuracy of the recognition task will be improved compared to when each is learned independently (this is called end-to-end learning, and is widely known in non-patent document 1, etc., so details will be omitted).
[0077] In the first embodiment, the feature map is subjected to upsampling processing when generating the linked hierarchical feature, but here, as a further derived form, a method called deconvolution as disclosed in Non-Patent Document 3 can be used. An example of the form is shown in FIG. 10. Feature maps with 2x and 4x resolution are generated from the feature maps 403b and 403c by processing the deconvolution filters 407a and 407b, respectively. In addition, the deconvolution filters 407a and 407b can also be trained by the backpropagation method in conjunction with the attribute determination unit 205 and the neural network 102. With this derived form, it is expected that the accuracy of the recognition task will be improved compared to the case where a simple upsampling is used. As yet another form, it is also possible to use a form in which the attribute integration unit 106 employs the same convolution processing as CNN, rather than being rule-based. In this way, various derived forms are possible for each module, and are not limited to a specific form.
[0078] [Second embodiment] In the following embodiments and modifications including this embodiment, the differences from the first embodiment will be mainly described, and unless otherwise specified below, they are assumed to be the same as the first embodiment. In this embodiment, a form will be described in which robust recognition is performed against pose changes of an object such as a person.
[0079] In conventional methods such as Non-Patent Document 1, object candidate regions (hereinafter referred to as regions of interest) may be set to improve detection accuracy for objects of various sizes and orientations. However, in conventional methods, multiple regions of interest are set on an image and neural network features are collected for each region of interest, which results in high computational costs. In addition, it is common to set multiple regions of interest with various sizes and aspect ratios in order to accommodate changes in the orientation of an object. In this embodiment, a method different from the above is used to show one form of robust object detection against changes in size and orientation without performing computationally expensive processing.
[0080] An example of the functional configuration of an image processing device according to this embodiment will be described with reference to the block diagram of FIG. 11. In FIG. 11, the same functional units as those shown in FIG. 1 are assigned the same reference numerals, and descriptions of these functional units will be omitted. The image processing device of FIG. 11 is specialized for detecting people. As shown by 908a to 908h in FIG. 11, people are classified into eight groups of appearance patterns according to the size, inclination, and aspect ratio of the frame of the person area. Specifically, in FIG. 11, eight groups are defined by a combination of parameters such as the following:
[0081] Group 1: Small size, tilt 0°, aspect ratio 2 Group 2: Size small, tilt +45°, aspect ratio 2 Group 3: Small size, tilt 0°, aspect ratio 1 Group 4: Size small, tilt -45°, aspect ratio 2 Group 5: Large size, tilt 0°, aspect ratio 2 Group 6: Large size, tilt +45°, aspect ratio 2 Group 7: Large size, tilt 0°, aspect ratio 1 Group 8: Large size, tilt -45°, aspect ratio 2 In this embodiment, the above eight groups are regarded as eight attributes of a person (person attribute). The person attribute determination unit 905 determines which of the eight types of person is present in each area block, or whether no person is present. Each of the person attribute determination units 905a to 905h learns in advance so that it can determine the person of the group it is responsible for when it is input. The learning procedure is as follows.
[0082] (1) Training images are prepared, and detection area frames are attached to people in the images in advance. The frames have three parameters: position, size, and inclination. (2) Person examples are divided into eight groups based on the size and inclination of the detection area frames (non-supervised clustering can be used, or the groups can be divided manually). (3) The eight attribute classifiers are given the person data of their respective groups as positive examples, and the data of areas other than people as negative examples, and the classifiers are trained using the connected hierarchical features as explanatory variables.
[0083] Fig. 12 is a flowchart of an integration procedure for detecting a person. In the flowchart of Fig. 12, the thing to be detected in the flowchart of Fig. 9 is a person, and the jth person attribute is used instead of the jth attribute, and the processing is the same as that of the flowchart of Fig. 9. That is, the processing in each of steps S400 to S409 is the same as that of steps S301 to S310 in Fig. 9, except for the above points. Moreover, the processing in each of steps S410 to S412 is the same as that of steps S311, S314, and S315 in Fig. 9. Therefore, a description of each step in the flowchart of Fig. 12 will be omitted.
[0084] An example of attribute determination and an example of result output in this embodiment are shown in Fig. 13. Here, for an input image 1201, attribute determination results 1202 of detection area frames of a plurality of sizes, inclinations, and aspect ratios are obtained (the magnitude of the likelihood score is indicated by the color intensity of the frame). These results are integrated by the attribute integration unit 906, and the maximum likelihood candidate frame (frames 1203a, 1203b) for each area block is superimposed on the input image 1201 and output as output result 1203. As a result, a detection area frame with an inclination and size suitable for the posture of a person is output as shown in Fig. 12.
[0085] Please note that unlike Non-Patent Document 1, features are not collected for each object detection area frame (each time). Also, the examples are divided into eight groups according to the appearance of the pattern. Please note that this simplifies the attribute determination problem, making it possible to determine the pattern even with a lightweight linear discriminator.
[0086] In this embodiment, only the maximum likelihood frame is left when integrating the detection frames, but as a derivative form, a weighted sum may be used to estimate the detailed size of the person, as was done in the first embodiment. Furthermore, detailed values of the aspect ratio and tilt may be estimated. This can be expressed by the following formula.
[0087]
number
[0088] Here, Li is the likelihood score of the i-th attribute, and the aspect ratio is the vertical size of the frame divided by the horizontal size. As a further derived form, instead of eight attributes, the attributes of a person can be grouped into three types each: size = {large, medium, small}, tilt = {right, medium, left}, and aspect ratio = {vertical, square, horizontal}, and a form in which nine types of attribute judgments are performed can be considered.
[0089] As yet another derivative form, a two-stage attribute determination may be performed to reduce the amount of calculation. For example, the following procedure may be considered for recognition. (1) As the first attribute judgment, three types of human sizes = {large, medium, small} are judged. (2) For only those area blocks with a high likelihood score in any of the three types in (1), a second attribute judgment is performed, classifying the area blocks into eight types based on size, tilt, and aspect ratio.
[0090] As a further derived form, there may be a form in which the size, tilt, and aspect ratio are estimated individually using a regression calculator without grouping. In addition to the forms listed here, various attributes to be judged, the order of attribute judgment, and the order of integration may be considered, and are not limited to a specific form.
[0091] [Third embodiment] This embodiment is centered on the use of camera information, and the recognition task of this embodiment aims to determine the sky area. An example of the functional configuration of an image processing device according to this embodiment will be described with reference to the block diagram of FIG.
[0092] One feature of the image processing device according to this embodiment is that it has a camera information input unit 1308. Another feature is that the attribute determination unit 1305 includes likelihood determination units 1305a and 1305b for areas of detailed subcategories of the sky, such as blue sky and cloud areas. Yet another feature is that the attribute determination unit 1305 includes likelihood determination units 1305c and 1305d for categories that are easily mistaken for the sky, such as a water surface and a white wall.
[0093] In this way, not only the attributes of the direct recognition target (blue sky, clouds), but also the attributes of indirect targets (water surface, white wall) that serve as clues to the recognition task can be included in the attribute determination unit 1305. This allows comprehensive pattern discrimination, which is expected to improve the accuracy of the recognition task.
[0094] The operation of the image processing device according to this embodiment will be described with reference to the flowchart in Fig. 15. The processes in steps S501 to S504 are similar to steps S1 to S4 in Fig. 3, respectively, and therefore descriptions of these steps will be omitted. Also, the processes in steps S505 to S508 are all processes for determining the likelihood of each attribute for each region block, and are the same as those described in the first embodiment, and therefore descriptions of these steps will be omitted.
[0095] In step S509, the camera information input unit 1308 inputs a horizon information value at the time of capturing an image as camera information. Specifically, the horizon information value here is as shown in Fig. 16(A). The camera information input unit 1308 is equipped with a gravity sensor, and in step S509a, estimates the position 1501 of the horizon on the image. Furthermore, in step S509b, the camera information input unit 1308 generates a horizon information value 1502 indicating how many blocks above or below the horizon each area block is located from the estimated horizontal line position 1501.
[0096] In step S510, the SVM 1306 makes a final determination as to whether each region block is sky or not based on the four attribute scores of blue sky, clouds, water surface, and white wall, and the horizon information value 1502. Here, the SVM 1306 calculates the sky likelihood for each region block using the above five types of maps (attribute score map 1318 of attributes by each of likelihood determination units 1305a to 1305d, and the map of horizon information value 1502) as five-dimensional input features. By using camera information related to the horizon in this way, it is possible to suppress misclassification of, for example, a water surface reflecting the sky at the bottom of the image as sky.
[0097] In addition, in order to be able to determine the likelihood of sky, the SVM parameters are learned in advance by providing multiple training image data 1309, camera information 1310 corresponding to the training image data, and training values 1311 for each area block category which are training values for whether or not the image is sky.
[0098] Another possible derivative form using camera information is a form using camera focus information value 1504, as shown in Fig. 16(B). This is a map that quantifies how far the subject of each area block is behind or in front of the focal plane (indicated by the symbol x in Fig. 16(B)) in focus in the image, with the focal plane (indicated by the symbol x in Fig. 16(B)) set to 0. The camera focus information is generated from an optical mechanism called image plane phase difference AF, which is separately provided in the camera information input unit 1308. By using the focus information value 1504 in combination, it is possible to suppress, for example, erroneous determination of a white man-made object that is out of focus behind the focal plane as the sky.
[0099] As another derivative form using camera information, a method using a camera photometric information value 1505 can be considered as shown in Fig. 16(C). This is a numerical value that indicates the physical amount of light in an image, and can be obtained from the results of a camera photometric sensor that is separately provided in the camera information input unit 1308. One form of this photometric information value is called a Bv value, and since it is publicly known from Patent Document 1 and the like, details will be omitted. By also using the photometric information value, it is possible to suppress misidentification of a white wall and a cloudy sky, etc., compared to using only an RGB image.
[0100] As another derivation form, it is also conceivable to use a map of camera information by concatenating it when generating the linked hierarchical feature 103. An example of the functional configuration of an image processing device in this case is shown in FIG. 17. As shown in FIG. 17, three types of camera information (three-dimensional), namely, a "map of horizon information values", a "map of focus information values", and a "map of photometry information values", are concatenated when generating the linked hierarchical feature and sent to likelihood determination units 1305a to 1305d. Each of the classifiers of the likelihood determination units 1305a to 1305d uses the feature amount of the linked hierarchical feature and the three-dimensional camera information as feature amounts to determine the respective attributes. It is assumed that the likelihood determination units 1305a to 1305d have previously learned the parameters of the classifier so that the likelihood of each attribute can be determined using a plurality of learning image data 1309, camera information 1310 corresponding to the learning image data, and teacher values 1311 of the categories of each area block. Note that which of the two is more suitable, using camera information for attribute integration as in FIG. 14 or using it for attribute determination as in FIG. 17, depends on the quantity and quality of the learning data, etc.
[0101] In the above, in this embodiment, the additional use of camera information has been described. In this embodiment, the effect of using detailed subcategories and indirect attributes as targets for attribute determination has also been described. The use of subcategories and indirect attributes can be applied to other recognition tasks. For example, when detecting a person, attributes of the target may be determined by dividing the target into subcategories of gender, or by subcategories of differences in appearance (such as the presence or absence of a hat or glasses). In addition, in a person detection task, an attribute determination for dogs may be provided to prevent misidentification.
[0102] In addition, the subcategories are distinguished with respect to at least one of the depth rotation of the object, the in-plane rotation of the object, the orientation of the object, the shape of the object, the material of the object, the shape of the region of interest of the object, the size of the region of interest of the object, and the aspect ratio of the region of interest of the object.
[0103] [Fourth embodiment] In this embodiment, a form in which various types of recognition tasks are processed in an integrated manner will be described. The recognition tasks performed by the image processing device according to this embodiment are three types: area determination, image scene classification, and aesthetics determination.
[0104] FIG. 18 shows an example of the functional configuration of the image processing device according to this embodiment. The operation of the image processing device according to this embodiment will be described with reference to the flowchart of FIG. 19. Steps S601 to S603 are processes for generating linked hierarchical features by performing the same processes as in the previous embodiments. Step S604 is a process in which the attribute determination unit 1708 determines the scene attribute for each region block (x, y). Here, N scene classifications such as indoor scene, human portrait scene, and sports scene are assumed as scene attributes. The attribute determination unit 1708 uses the linked hierarchical feature F(x, y) as an input feature, and determines for each region block (x, y) which of the N scenes the image belongs to. A general decision tree is used as a classifier for the determination. The hierarchical feature F(x, y) is a feature for the region block x, y, but includes high-level features of a neural network. It should be noted that such image scene classification determination is also possible because the high-level features include information that aggregates a wide range of image patterns.
[0105] Next, in step S605, the attribute integration unit 1709 integrates the scene attribute results of each region block to perform scene determination for the entire image. Here, a linear SVM is used as a classifier. The likelihood scores of the scene attributes of each region block are linked to form features, and the linear SVM learns and determines which scene the input image should be classified into.
[0106] It is not necessary that the scene category at the time of scene attribute determination and the category at the time of attribute integration are the same. For example, a detailed classification such as "soccer", "baseball", "mountain", and "seaside" may be determined at the time of scene attribute determination, and a higher classification such as "sports scene" or "natural landscape scene" may be determined at the time of scene attribute integration. As with the previous embodiments, the attribute category may take various forms as long as it provides a clue to the target recognition task.
[0107] Next, in step S606, the attribute determination unit 1705 obtains an attribute score map. This is the same method as that used for sky regions in the first embodiment and so on, so a description thereof will be omitted. Next, in step S607, the attribute integration unit 1706 determines the type of each region block, taking into account the likelihood of the image scene obtained in the previous stage. Specifically, the following formula is used here.
[0108]
number
[0109] Here, P(c|f) is the posterior probability that a region block has a region attribute of c, f is the input feature, P(c|s) is the prior distribution that region attribute c appears in scene s, and P(s) is the probabilistic value of the scene likelihood calculated in step S605. This makes it possible to determine the type of region taking into account the prior distribution of examples, for example, that ocean regions rarely appear in indoor scenes.
[0110] Next, in step S608, the attribute determination unit 1710 determines the aesthetic attribute for each region block (x, y). As is known in non-patent document 6 and other documents, learning data in which images and aesthetic evaluation values of the images are associated with each other is prepared in advance, and the linked hierarchical feature F(x, y) is used as an input feature to learn and estimate the aesthetic score value using a regression device such as logistic regression. At this time, the attribute determination unit 1710 may receive the likelihood of the scene from the attribute integration unit 1709 and change the weight dictionary of the regression device depending on the scene. This is a known method as described in non-patent document 6.
[0111] Next, in step S609, the integration unit 1711 integrates the aesthetic attributes to obtain a scalar value of the aesthetic judgment result. Here, a CNN consisting of multiple layers is used as the integration unit 1711. The CNN is assumed to be a network that uses the aesthetic score map of each region block (x, y) as input and has weight parameters that have been regressively trained so that the output layer can correctly output the aesthetic evaluation value of the entire image. Such a method of regressive training using a CNN is well known in non-patent document 1 and the like, so details will be omitted here. As other forms of the integration unit 1711 other than those described above, a form that uses an ensemble average of each region block or a form that uses a linear discriminator can be considered. These can be selected according to the balance between the amount of calculation and accuracy. Finally, in step S610, the result output unit 1712 outputs the region judgment result, the scene judgment result, and the aesthetic judgment result, and the operation ends.
[0112] As described above, a method for executing multiple recognition tasks in an integrated manner has been described. In this image processing device, the most computationally expensive process is the CNN calculation process. In this embodiment, this CNN calculation is performed only once. Instead, multiple pieces of attribute information are estimated using lightweight attribute determination processing in the subsequent stage, and this information is then interacted and integrated in the attribute integration unit to obtain highly accurate recognition results. This method is one of the features of the image processing device according to this embodiment.
[0113] As a derived form, a form in which a part or all of the attribute integration unit is replaced by a module called a fully connected layer of a neural network can be considered. In that case, as described in the first embodiment, the parameters of each module can be optimally trained in a unified manner using a method such as error backpropagation.
[0114] A further derived form as shown in Fig. 20 is also possible. This derived form further includes a dictionary holding unit 1707 in addition to the configuration in Fig. 18. After determining the scene type, the attribute integration unit 1709 in this derived form sends the likelihood of the scene to the attribute determination unit 1705. The attribute determination unit 1705 receives scene likelihood information, and subjects only area categories that appear particularly frequently in scenes with high likelihood to attribute determination. The attribute determination unit 1705 reads out a dictionary of attribute determination targets from the dictionary holding unit 1707 and performs attribute determination. By using the results of scene recognition in this way, it is expected that the amount of calculations can be reduced and robustness against noise can be improved.
[0115] As yet another derived form, a method is also conceivable in which scene classification is performed without performing attribute determination processing, but instead using the Bag of Words method (Non-Patent Document 7), which is a representative image scene classification method, based on linked hierarchical features.
[0116] As yet another derived form, the attribute determination unit 1705 determines the region attributes such as "person" and "grass" and generates a region attribute score map 1714. The attribute integration unit 1709 receives this and uses it to determine whether the scene is a "sports scene". In this way, the result of the attribute determination can be commonly used between recognition tasks, which may reduce the overall processing load of the image processing device. As yet another derived form, a form further including a user instruction unit 1713 as shown in FIG. 20 is also conceivable. The user instruction unit 1713 receives an instruction from the user to select which of the results of multiple recognition tasks, region determination, scene recognition, and aesthetics determination, to output. When performing multitasking recognition, if all results are always output, the results become difficult to see. Therefore, this method allows the output results to be changed according to the user's wishes and the shooting mode.
[0117] In addition, some or all of the above-described embodiments and modified examples may be used in appropriate combination, and some or all of the above-described embodiments and modified examples may be used selectively.
[0118] In this way, according to each of the above embodiments and modifications, a plurality of attributes are determined using hierarchical features of a neural network and a lightweight classifier, and the attributes are integrated to perform recognition processing. This allows robust object detection for size and orientation to be performed at high speed without performing processing with high computational costs as in the past. In still another embodiment, object detection, area category determination, image scene category classification, and aesthetic evaluation of image information can be performed simultaneously. In still another embodiment, objects with various different appearances, such as size, aspect ratio, or tilt, can be detected at high speed.
[0119] [Fifth embodiment] Each of the functional units shown in Figures 1, 2, 11, 14, 17, 18, and 20 may be implemented by hardware, or by software (computer program). In the latter case, a computer device capable of executing this computer program is applicable to the image processing device described in each of the above embodiments and modifications. An example of the hardware configuration of a computer device applicable to the image processing device described in each of the above embodiments and modifications will be described with reference to the block diagram of Figure 21.
[0120] The CPU 2101 executes various processes using computer programs and data stored in the RAM 2102 and the ROM 2103. As a result, the CPU 2101 controls the operation of the entire computer device, and executes or controls each of the processes described above as being performed by the image processing device.
[0121] The RAM 2102 has areas for storing computer programs and data loaded from the ROM 2103 or the external storage device 2106, and data received from the outside via the I / F 2107. The RAM 2102 further has a work area used when the CPU 2101 executes various processes. In this way, the RAM 2102 can provide various areas as needed. The ROM 2103 stores computer programs and data that do not need to be rewritten.
[0122] The operation unit 2104 is configured with a user interface such as a keyboard and a mouse, and the user can input various instructions to the CPU 2101 by operating it.
[0123] The display unit 2105 is configured with a CRT or a liquid crystal screen, and can display the results of processing by the CPU 2101 as images, characters, etc. The display unit 2105 may be a projection device, such as a projector device, that projects images and characters onto a projection surface.
[0124] The external storage device 2106 is a large-capacity information storage device, typified by a hard disk drive device. The external storage device 2106 stores an OS (operating system) and computer programs and data for causing the CPU 2101 to execute or control each process described above as being performed by the image processing device. The computer programs stored in the external storage device 2106 include computer programs for causing the CPU 2101 to realize the functions of each functional unit shown in Figs. 1, 2, 11, 14, 17, 18, and 20. The data stored in the external storage device 2106 also includes what has been described above as known information. The computer programs and data stored in the external storage device 2106 are loaded into the RAM 2102 as appropriate under the control of the CPU 2101, and are processed by the CPU 2101.
[0125] The I / F 2107 is for performing data communication with external devices. For example, an image capturing device may be connected to the I / F 2107, and a captured image to be recognized may be input from the image capturing device.
[0126] The CPU 2101 , RAM 2102 , ROM 2103 , operation unit 2104 , display unit 2105 , external storage device 2106 , and I / F 2107 are all connected to a bus 2108 .
[0127] (Other Examples) The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions. [Explanation of symbols]
[0128] 101: Image input unit 102: Neural network 104: Linked feature generation unit 205: Attribute determination unit 106: Attribute integration unit 107: Result output unit
Claims
1. a feature generating means for generating concatenated hierarchical features by concatenating outputs of a plurality of layers of the hierarchical neural network obtained by processing an input image using the hierarchical neural network; a map generating means for generating, for each attribute, an attribute score map representing an attribute of a region of the input image using the connection hierarchical feature; an output means for integrating the attribute score maps for each attribute generated by the map generating means to generate and output a recognition result for the recognition target; An image processing device comprising:
2. 2 . The image processing apparatus according to claim 1 , wherein the output means generates a result regarding the presence or absence of an object in the input image by integrating the attribute score maps for each attribute generated by the map generating means.
3. 2. The image processing device according to claim 1, wherein the output means generates a result regarding the presence or absence of an object in the input image by integrating the attribute score maps for each attribute generated by the map generation means, and generates a result regarding a category label of each region in the input image.
4. 4. The image processing apparatus according to claim 1, wherein the map generating means determines a likelihood of whether or not a reference point of an object exists in the region.
5. 5. The image processing apparatus according to claim 1, wherein the map generating means calculates a score map of likelihood for each subcategory of objects.
6. 6. The image processing device according to claim 5, wherein the subcategories are distinguished with respect to at least one of the depth rotation of the object, the in-plane rotation of the object, the orientation of the object, the shape of the object, the material of the object, the shape of the region of interest of the object, the size of the region of interest of the object, and the aspect ratio of the region of interest of the object.
7. 7. The image processing apparatus according to claim 1, wherein the output means generates the recognition result at a resolution higher than a resolution of the attribute score map.
8. 8. The image processing apparatus according to claim 2, wherein the output means estimates a size of the object.
9. 9. An image processing apparatus according to any one of claims 1 to 8, wherein said output means generates a result relating to the aesthetics of the input image.
10. 10. The image processing apparatus according to claim 1, wherein the output means generates a result of the classification of the input image.
11. 11. The image processing apparatus according to claim 10, wherein said map generating means selects which attribute to judge based on the result of said classification.
12. 12. The image processing apparatus according to claim 10, wherein the output means calculates a score based on the result of the classification and a prior distribution of subjects for each of the classifications.
13. Further, a means for inputting camera information is provided, 13. An image processing apparatus according to claim 1, wherein said map generating means uses said camera information in addition to said link hierarchical features.
14. Furthermore, 14. The image processing apparatus according to claim 1, further comprising: a unit for selecting, when the recognition result includes a plurality of results, which result is to be output as a final result.
15. Furthermore, 15. The image processing device according to claim 1, further comprising: means for integrated learning of processing parameters for two or more of the hierarchical neural network, the feature generating means, the map generating means, and the output means.
16. 16. The image processing device according to claim 1, wherein the feature generating means performs either upsampling or deconvolution when concatenating outputs from a plurality of layers of the hierarchical neural network.
17. An image processing method performed by an image processing device, comprising: a feature generation step in which a feature generation means of the image processing device processes an input image using a hierarchical neural network and generates a concatenated hierarchical feature by concatenating outputs of a plurality of layers of the hierarchical neural network; a map generating step in which a map generating means of the image processing device generates, for each attribute, an attribute score map representing an attribute of a region of the input image using the connection hierarchical feature; an output step in which an output means of the image processing device integrates the attribute score maps for each attribute generated in the map generation step to generate and output a recognition result for the recognition target; An image processing method comprising:
18. A computer program for causing a computer to function as each of the means of the image processing device according to any one of claims 1 to 16.
Citation Information
Patent Citations
Method and device for recognizing clothing and personal item
CN106250874A
Object recognition device, object recognition method, and program
JP2016110232A
Image recognition device, image recognition method, and program
JP2017005389A
