Image processing device, electronic apparatus, learning device, image processing method, learning method, and program

The image processing device uses feature extraction and category weights to detect objects in target categories without new learning models, addressing the inefficiencies of existing methods by enabling cost-effective and flexible object detection.

JP2024148011AInactive Publication Date: 2024-10-17CANON KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023060868
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-04
Publication Date
2024-10-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing object detection methods require large amounts of training data and time to create learning models for specific categories, making it difficult to detect objects outside commonly used categories.

Method used

An image processing device that estimates object detection areas and category likelihoods using feature extraction, allowing for object detection without creating a new learning model by applying category weights to existing models.

Benefits of technology

Enables object detection in target categories without the need for new learning models, reducing costs and time, and allowing for flexible detection of various subjects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024148011000001_ABST
    Figure 2024148011000001_ABST
Patent Text Reader

Abstract

To provide an image processing device capable of detecting an object of a target category without newly generating a learning model of the target category.SOLUTION: An image processing device includes: extraction means for extracting a feature amount from a captured image; first estimation means for estimating a detection region of an object in the image on the basis of the feature amount extracted by the extraction means; second estimation means for estimating a category likelihood of an object in a detection region with respect to a plurality of first categories on the basis of the feature amount extracted by the extraction means for each estimated detection region; and selection means for selecting the detection region related to an object of a second category from the estimated detection region on the basis of the estimated category likelihood and the category weight related to the second category.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image processing device, an electronic device, a learning device, an image processing method, a learning method, and a program. [Background technology]

[0002] Digital cameras are equipped with various functions for obtaining suitable images of subjects that are automatically detected by the camera or selected by the user. For example, there is an autofocus (AF) function that automatically adjusts the focus, an autoexposure (AE) function that automatically adjusts the brightness, and an auto white balance (AWB) function that automatically adjusts the color to an appropriate level. Some cameras also have a tracking function that continues to track the target subject in subsequent frames, thereby keeping the subject in focus and continuously adjusting the brightness and color. These functions are performed using information about the area of ​​interest in which the subject is located in the input image, so it is necessary to set the area of ​​interest appropriately.

[0003] In order to extract information about an area of ​​interest where a subject exists from an input image, a technology is required to detect objects (hereinafter also referred to as "objects") from the image. Many conventional object detection techniques detect objects of a specific category from an image, such as a person's face and facial organs (eyes, nose, mouth), or the entire body of a person. Patent Document 1 discloses a method for a digital camera that allows a user to arbitrarily select a position to focus on a person's face and facial organs.

[0004] In recent years, with the development of deep learning, a technique has been proposed for detecting any subject, such as an animal or a vehicle, from an image by learning object-likeness using information on objects of various categories. Non-Patent Documents 1 to 3 disclose techniques related to multi-object detection that simultaneously detects objects of various categories from an image using deep learning. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2019-120748 A [Non-patent literature]

[0006] [Non-Patent Document 1] Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation. Ross Girshick et al.,2014 IEEE Conference on Computer Vision and Pattern Recognition [Non-Patent Document 2] SSD:Single Shot MultiBox Detector, Wei Liu et al., Computer Vision-ECCV 2016 [Non-Patent Document 3] You Only Look Once: Unified,Real-Time Object Detection, Joseph Redmon et al., 2016 IEEE Conference on Computer Vision and Pattern Recognition Summary of the Invention [Problem to be solved by the invention]

[0007] Currently, the mainstream method for detecting objects of a specific category from an image is to first learn the features of the category and then use a detection function specialized for the target category to detect the object. However, learning requires a large amount of learning data for the target category, and the more learning data there is, the more time it takes to learn, so the learning process is costly. For this reason, learning models tend to be created only for categories that are frequently used and for which data is easy to collect, and learning models for other categories are difficult to create.

[0008] The present invention has been made in consideration of the above circumstances, and has an object to provide an image processing device that can detect objects in a target category without having to create a new learning model for the target category. [Means for solving the problem]

[0009] The image processing device of the present invention has an extraction means for extracting features from a captured image, a first estimation means for estimating a detection area of ​​an object in the image based on the features extracted by the extraction means, a second estimation means for estimating, for each estimated detection area, a category likelihood of the object in the detection area for a plurality of first categories based on the features extracted by the extraction means, and a selection means for selecting the detection area relating to an object of the second category from among the estimated detection areas based on the estimated category likelihood and a category weight relating to the second category. Effect of the Invention

[0010] According to the present invention, it is possible to detect objects in a target category without creating a new learning model for the target category. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a diagram illustrating an example of the configuration of a system including an image processing device according to a first embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of the hardware configuration of a camera according to the first embodiment. [Diagram 3] FIG. 2 is a diagram illustrating an example of the functional configuration of a camera according to the first embodiment. [Figure 4] 4 is a flowchart illustrating an example of processing by the camera according to the first embodiment. [Diagram 5] FIG. 2 is a diagram illustrating an example of the configuration of a neural network. [Figure 6] 2 is a diagram illustrating an example of a functional configuration of a learning device according to the first embodiment. FIG. [Figure 7] 4 is a flowchart illustrating an example of processing by the learning device according to the first embodiment. [Figure 8] 2 is a diagram illustrating an example of a functional configuration of a learning device according to the first embodiment. FIG. [Figure 9] FIG. 11 is a diagram illustrating an example of a functional configuration of an image processing device according to a second embodiment. [Figure 10] 10 is a flowchart illustrating a method for correcting category weights according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Note that the configurations shown in the embodiments described below are merely examples, and the present invention is not limited to the configurations shown below. Also, components with the same reference numerals in different drawings have the same operation, and therefore will not be described repeatedly.

[0013] <Embodiment 1> A camera having an image processing device according to the present embodiment will be described as an example. In the following, a camera having an autofocus function (AF function) is shown as an example, but it is also possible to use a camera having one or more auto exposure functions (AE functions) and auto white balance functions (AWB functions) other than the AF function. The image processing device according to the present embodiment can be applied to a camera having a function of detecting a desired object from an obtained image and performing some control based on the detected object, not limited to the AF function, AE function, and AWB function shown as examples.

[0014] In this embodiment, an example will be described in which a region of a target object is detected as a frame from a video or continuously captured still image frames, and the AF process is performed using the detection frame. Note that the detection target shown in the following description is an example, and the category of the object to be detected is not limited to the example, and can be applied to any detection target.

[0015] Fig. 1 is a diagram for explaining an example of the configuration of a system including an image processing device according to this embodiment. The camera 100 is a camera capable of capturing moving images and still images, and includes an image capturing unit 101, a control unit 102, and an image processing device 110. The camera 100 is an example of an electronic device. Note that, although Fig. 1 shows the image capturing unit 101, the control unit 102, and the image processing device 110 as components included in the camera 100, the camera 100 may further include other components.

[0016] The imaging unit 101 captures an image of a subject, etc., and outputs image data of the captured moving image or still image. The control unit 102 controls each unit of the camera 100. The image processing device 110 acquires image data to be processed, processes the acquired image data, and outputs the processing result. The learning device 150 learns parameters, etc. for the image processing device 110 to perform processing.

[0017] In the camera 100, for example, the control unit 102 controls the lens, aperture, shutter, and the like in the imaging unit 101 in accordance with the processing results in the image processing device 110, thereby realizing an AF function and an AE function. In addition, in the camera 100, for example, the image processing device 110 performs image processing to adjust the brightness and color of image data, thereby realizing an AWB function.

[0018] 2 is a block diagram showing an example of the hardware configuration of the camera 100. The camera 100 has a processing unit 201, a storage device 202, an input device 203, and an output device 204. The processing unit 201, the storage device 202, the input device 203, and the output device 204 are connected to each other so as to be able to communicate with each other.

[0019] The arithmetic processing device 201 controls the operations of the camera 100 and the image processing device 110, and executes programs stored in the storage device 202. The arithmetic processing device 201 is configured, for example, by a CPU (Central Processing Unit). Note that the arithmetic processing device 201 may be configured by a GPU (Graphics Processing Unit), or may be configured by both a CPU and a GPU.

[0020] The storage device 202 is, for example, a storage device such as a magnetic storage device or a semiconductor memory. The storage device 202 stores programs, data, and the like that are loaded based on the operation of the arithmetic processing device 201. In this embodiment, the arithmetic processing device 201 executes processing in accordance with the procedures of the programs stored in the storage device 202, thereby realizing the functions of the camera according to this embodiment and processing related to flowcharts described later. The storage device 202 also stores images to be processed by the camera according to this embodiment, processing results, and the like.

[0021] The input device 203 is a mouse, keyboard, touch panel device, button, etc., and inputs various instructions, etc. The input device 203 includes an imaging unit. The output device 204 is a liquid crystal panel, external monitor, etc., and outputs various information. Note that the hardware configuration is not limited to the above-mentioned configuration, and may include, for example, an I / O device for communicating between various devices. For example, the I / O device is an input / output unit such as a memory card or a USB cable, or a transmission / reception unit via wired or wireless connection.

[0022] In the above description, each function of the camera 100 including the image processing device 110 is realized by the hardware configuration exemplified in FIG. 2, but this is not limited thereto. In addition to the hardware configuration for realizing each function of the camera 100, a hardware configuration as exemplified in FIG. 2 may be provided for realizing each function of the image processing device 110. Also, the arithmetic processing device 201 for performing processing related to the camera 100 and the arithmetic processing device 201 for performing processing related to the image processing device 110 may be provided separately, and the other components may be shared, so that only some components are provided separately. The hardware configuration of the learning device 150 is also similar to the hardware configuration exemplified in FIG. 2.

[0023] Fig. 3 is a block diagram showing an example of a functional configuration of the camera 100. Fig. 3 shows an example of a functional configuration for detecting an area of ​​a target object from an image as a frame and performing AF processing using the detection frame. Note that the camera 100 may further include functional units other than the functional units shown in Fig. 3.

[0024] The camera 100 includes an image processing device 110 and an AF processing unit 307. The image processing device 110 also includes an image acquisition unit 301, a feature extraction unit 302, a detection area estimation unit 303, a likelihood estimation unit 304, a weight holding unit 305, and a region of interest selection unit 306.

[0025] The image acquisition unit 301 acquires images captured by the imaging unit 101. For example, the image acquisition unit 301 acquires images from a time-series video captured by the imaging unit 101, and acquires full HD (1920×1280 pixels) image data in real time (60 frames per second). The feature extraction unit 302 extracts features by processing the images acquired by the image acquisition unit 301. Based on the extracted features, the feature extraction unit 302 creates and outputs a center map, a size map, and a category likelihood map, which are feature maps. The category likelihood map is created for each specific category defined in advance.

[0026] The detection area estimation unit 303 estimates a detection area including an object based on the feature amount extracted by the feature extraction unit 302. The detection area estimation unit 303 is an example of a first estimation means. In this embodiment, the detection area is estimated as the coordinate value of the center of a frame indicating the area of ​​the object or part of the object in the image, the width of the frame, and the height of the frame. The detection area estimation unit 303 acquires the peak position of the feature amount on the center map created by the feature extraction unit 302, and sets this position as the center position of the object. In addition, the detection area estimation unit 303 acquires the value of the size map at the same position as the position of this object, and sets this as the size of the object. Through the above processing, the detection area estimation unit 303 acquires the position and size of the object in the image, and outputs it as the result of estimating the detection area.

[0027] The likelihood estimation unit 304 estimates a category likelihood for a predefined specific category (plurality of first categories) for each detection area estimated by the detection area estimation unit 303, based on the feature amount extracted by the feature extraction unit 302. The likelihood estimation unit 304 is an example of a second estimation means. The likelihood estimation unit 304 acquires values ​​of each category likelihood map at the same position as the position information of the object estimated by the detection area estimation unit 303, and sets a collection of these values ​​as the category likelihood of the target object. Through the above process, the likelihood estimation unit 304 acquires a category likelihood for each detection area of ​​the object, and outputs the category likelihood as an estimation result.

[0028] In this embodiment, a new category likelihood is defined. The category likelihood represents the likelihood that the target coordinate belongs to each of one or more categories that have been learned in advance. In this embodiment, as an example, the likelihood takes a value between 0 and 1. The state in which the target coordinate area does not belong to the target category is defined as 0, and the state in which it belongs to the target category is defined as 1. In the learning GT (Ground Truth, correct answer, true value), the likelihood of the area is expressed by two values, 0 and 1, for each category, and during inference, the likelihood that the area belongs to the target category is inferred as a value between 0 and 1. In this example, three categories are used as specific categories, and category 1 is defined as person, category 2 is defined as dog, and category 3 is defined as car, and the category likelihood is expressed as a combination of the likelihood of the target area for these categories.

[0029] The weight holding unit 305 holds category weights for the detection target category (second category) used when calculating the likelihood score in the attention area selection unit 306. The category weights are a set of weights for a category group corresponding to each category in the category likelihood. In other words, the category weights are a set of weights set for each category for weighting the likelihood for each category included in the category likelihood.

[0030] The attention area selection unit 306 calculates a likelihood score for each frame of an object or a part of an object estimated by the detection area estimation unit 303, and selects a frame to be an attention area based on the calculated likelihood score. The attention area selection unit 306 is an example of a selection means. The attention area selection unit 306 calculates a likelihood score for each frame using the category likelihood corresponding to each frame estimated by the likelihood estimation unit 304 and the category weight held by the weight holding unit 305, and then performs threshold processing to select a frame to be an attention area. Here, the likelihood score is the sum of the value (likelihood) for each category in the category likelihood multiplied by the category weight.

[0031] The AF processing unit 307 performs AF processing based on the frame selected as the region of interest by the region of interest selection unit 306. The AF processing unit 307 performs AF processing so as to focus on an object within the frame selected by the region of interest selection unit 306.

[0032] An example of selecting a noteworthy frame from a captured video image and performing AF processing with the camera according to this embodiment will be described below. FIG. 4 is a flowchart for explaining an example of processing with the camera according to this embodiment. However, the camera does not necessarily have to perform all of the steps described in this flowchart. In the following description, each step will be written with an S at the beginning, and the notation of the step will be omitted.

[0033] In S401, the image acquisition unit 301 acquires an image from a time-series video image captured by the imaging unit 101. The image acquired in S401 is, for example, bitmap data expressed in RGB 8 bits.

[0034] In S402, the feature extraction unit 302 processes the image acquired by the image acquisition unit 301 in S401 to extract features. In this embodiment, features are extracted from the image using a neural network. FIG. 5 shows an example of a network structure using a neural network. Feature extraction by the feature extraction unit 302 can be realized by a neural network that performs a recognition task by repeating a convolution process and a pooling process, as shown in FIG. 5. For example, those described in Non-Patent Documents 1 to 3 can be used. Here, an example of feature extraction using a neural network will be described, but feature extraction from an image is not limited to using a neural network. For example, known feature extraction methods such as SIFT (Scaled Invariance Feature Transform) and HOG (Histograms of Oriented Gradients) may be used.

[0035] As shown in Fig. 5, the feature extraction unit 302 extracts features from an input image 530 by multiple convolution processes 511, 513, 515 and multiple pooling processes 512, 514. In the convolution processes, a filter of, for example, 3x3 size is set for multiple channels for the input image 530 or feature maps 552, 554, a convolution operation is performed around a pixel of interest, and multiple feature maps corresponding to the multiple channels are output. In the example shown in Fig. 5, the convolution processes <1> 511 performs convolution calculations with a filter size of 3 × 3 and 4 channels, and generates a feature map <1> Output 551. Also, convolution processing <2> 513 performs convolution calculations with a filter size of 3 × 3 and 12 channels, and generates a feature map <3> Output 553. Convolution process <3> 515 performs convolution calculations with a filter size of 3 × 3 and 24 channels, and generates a feature map <5> Outputs 555.

[0036] In the pooling process, the feature maps 551 and 553 output in the convolution processes 511 and 513 are reduced. For example, when pooling is performed in a 2×2 range, the feature maps are reduced by a factor of (1 / 4). The pooling process can use a method such as maximum value pooling or average value pooling. In the example shown in FIG. 5, the pooling process <1> 512 performs pooling in a 2x2 range and creates a feature map <2> Output 552. Also, pooling process <2> 514 performs pooling in a 2x2 range and creates a feature map <4> In this way, since there are two pooling processes each having a 2×2 range, the resolution of the input image 530 is reduced to 1 / 16 at the output layer stage. In this embodiment, a center map 521, a size map 522, and a category likelihood map 523 are output from the output layer 520 as feature amount maps.

[0037] The network structure of the neural network is not limited to that shown in Fig. 5. The neural network may have more layers than that shown in Fig. 5, and the number of channels may be changed. The learning method of the feature extraction unit 302 will be described later.

[0038] In S403, the detection area estimation unit 303 estimates a detection area of ​​the object based on the feature amount extracted by the feature extraction unit 302 in S402. The detection area estimation unit 303 estimates the position, width, and height of the frame of the object or part of the object based on the feature amount extracted in S402. In S404, the likelihood estimation unit 304 estimates a category likelihood for each detection region estimated by the detection region estimation unit 303 in S403, based on the feature amount extracted by the feature extraction unit 302 in S402.

[0039] In S405, the control unit 102 of the camera 100 determines whether or not to perform AF processing. The control unit 102 determines whether or not to perform AF processing based on the setting state and the like related to the AF function of the camera 100. If the control unit 102 determines that AF processing is to be performed (YES in S405), the process of S406 is executed, and if the control unit 102 determines that AF processing is not to be performed (NO in S405), the process of S408 is executed.

[0040] In S406, the attention area selection unit 306 executes an attention area selection process. In this attention area selection process, the attention area selection unit 306 selects a frame to be an attention area from among the frames (detection area frames) of the object or part of the object estimated by the detection area estimation unit 303 in S403. Whether or not the detection area frame is selected as the attention area frame is determined by calculating a likelihood score, which is the sum of producting the category likelihood and the category weight, and whether or not the likelihood score is equal to or greater than a threshold, and if the likelihood score is equal to or greater than the threshold, the detection area frame is selected as the attention area. When there are multiple detection area frames that satisfy the conditions, the attention area selection unit 306 selects the frame with the highest likelihood score as the attention area.

[0041] For example, if a user wants to detect a horse, it can be assumed that the likelihood of a dog (category 2), which is also a quadruped animal, will be the highest among the learning categories. Therefore, by creating a category weight model in which the weight of the dog category is larger than the weights of the other categories and using it to select the attention area, the likelihood score of the horse will be high, resulting in a detection model that can detect a horse. As another example, if a user wants to detect a robot pet that imitates an animal, it can be assumed that the likelihood of the dog category and the car category will be high because the robot pet has animal characteristics and inorganic characteristics. Therefore, by creating a category weight model in which the weights of the dog category and the car category are large and using it to select the attention area, a detection model that does not react to general animals but only reacts to robot pets that also have inorganic characteristics will be obtained. In this way, in this embodiment, it is possible to detect objects of a desired category by applying a category weight according to the category to be detected to the object detection result obtained using the same learning model.

[0042] In S407, the AF processing unit 307 executes tracking processing based on the frame selected as the attention area by the attention area selection unit 306 in S406. In S408, the control unit 102 of the camera 100 determines whether or not the camera operation continues. If the control unit 102 determines that the camera operation will continue (YES in S408), the process returns to S401, and the above-mentioned processing is repeated. On the other hand, if the control unit 102 determines that the camera operation will not continue (NO in S408), the processing of the flowchart shown in FIG. 4 ends.

[0043] Next, a description will be given of the learning device 150 according to this embodiment. As described above, the hardware configuration of the learning device 150 is similar to the hardware configuration shown in FIG.

[0044] Learning of the neural network used in the image processing device 110 will be described. Fig. 6 is a block diagram showing an example of the functional configuration of the learning device 150. Fig. 6 shows an example of the functional configuration for learning the neural network used in the image processing device 110. The learning device 150 has a learning data storage unit 601, a learning data acquisition unit 602, an image acquisition unit 603, a feature extraction unit 604, a detection region estimation unit 605, a likelihood estimation unit 606, a region error calculation unit 607, a likelihood error calculation unit 608, and a parameter learning unit 609.

[0045] The learning data storage unit 601 stores and holds learning data for the learning device 150 to perform learning. The learning data held by the learning data storage unit 601 is data for learning features of a specific category (in this example, people, dogs, and cars), and includes learning images and correct answer information for each learning image to be analyzed. The correct answer information includes area information of an object or a part of an object in the learning image and a category likelihood. The learning data storage unit 601 stores a sufficient number of learning data for the learning device 150 to learn the neural network used in the image processing device 110. The learning data acquisition unit 602 acquires the learning data stored in the learning data storage unit 601. The image acquisition unit 603 acquires the learning images from the learning data acquisition unit 602.

[0046] The feature extraction unit 604, the detection area estimation unit 605, and the likelihood estimation unit 606 are similar to the feature extraction unit 302, the detection area estimation unit 303, and the likelihood estimation unit 304 in the image processing device 150 shown in Fig. 3, respectively. That is, the feature extraction unit 604 extracts features from the learning image acquired by the image acquisition unit 603, and creates and outputs feature maps (center map, size map, and category likelihood map) based on the extracted features. The detection area estimation unit 605 estimates the detection area of ​​the object based on the features (center map and size map) extracted by the feature extraction unit 604. The likelihood estimation unit 606 estimates category likelihood based on the features (category likelihood map) extracted by the feature extraction unit 604. The detection area estimation unit 605 is an example of a first estimation means, and the likelihood estimation unit 606 is an example of a second estimation means.

[0047] The area error calculation unit 607 calculates an error (area error) related to the detection area based on the estimated value of the detection area obtained by the detection area estimation unit 605 and the area information of the training data. The area information is information on a frame representing an object present in the training image, and is composed of the coordinate value of the center of the frame and the size (width and height). The likelihood error calculation unit 608 calculates an error related to the category likelihood (category likelihood error) based on the estimated value of the category likelihood obtained by the likelihood estimation unit 606 and the category likelihood of the training data. The parameter learning unit 609 updates the parameters of the feature extraction unit 604, the detection area estimation unit 605, and the likelihood estimation unit 606 so as to reduce the error based on the area error and category likelihood error calculated by the area error calculation unit 607 and the likelihood error calculation unit 608, respectively.

[0048] FIG. 7( a ) is a flowchart showing an example of the learning process performed by the learning device 150 . In S701, the learning data acquisition unit 602 acquires learning data stored in the learning data storage unit 601. Furthermore, the image acquisition unit 603 acquires learning images from the learning data acquired by the learning data acquisition unit 602. As described above, the learning data includes learning images and correct answer information for each learning image. The correct answer information is composed of a set of area information indicating the area of ​​an object or part of an object photographed in the learning image, and a category likelihood for each category assigned to each area information. It is assumed that the learning data is prepared in advance.

[0049] In S702, the feature extraction unit 604 extracts a feature amount from the learning image acquired by the image acquisition unit 603 in S701. In S703, the detection area estimation unit 605 estimates a detection area candidate of the object or a part of the object based on the feature amount extracted by the feature extraction unit 604 in S702. In S704, the likelihood estimation unit 606 estimates the category likelihood of the object for each category prepared in advance, based on the feature amount extracted by the feature extraction unit 604 in S702. The processes in S702 to S704 are similar to the processes in S402 to S404 in the flowchart shown in FIG.

[0050] In S705, the area error calculation unit 607 calculates an error (area error) related to the detection area based on the detection area estimation value obtained by the detection area estimation unit 605 in S703 and the area information of the learning data. The area error calculation method conforms to, for example, the method described in Non-Patent Document 2. The area error calculation unit 607 calculates the area error by adding up the deviation amounts for the center coordinate values ​​and size (width and height) of the frame of the detection area estimated by the detection area estimation unit 605 and the correct answer frame having center coordinates closest to the frame of the detection area.

[0051] In S706, the likelihood error calculation unit 608 calculates an error regarding the category likelihood (category likelihood error) based on the estimated value of the category likelihood obtained by the likelihood estimation unit 606 in S704 and the category likelihood of the training data. The likelihood error calculation unit 608 calculates the category likelihood error using, for example, a squared error as an error calculation method.

[0052] In S707, the parameter learning unit 609 updates parameters so as to reduce the domain error calculated by the domain error calculation unit 607 in S705 and the category likelihood error calculated by the likelihood error calculation unit 608 in S706. The parameters to be updated are, for example, weight coefficients of the convolution layer of the neural network. For example, the parameter learning unit 609 calculates a loss value by taking the sum of the domain error calculated in S705 and the category likelihood error calculated in S706, and updates the parameters using the backpropagation method.

[0053] In S708, the parameter learning unit 609 judges whether the learning has been completed according to a preset termination condition. As the termination condition, for example, a method is used in which learning data for accuracy verification is prepared separately from learning data for parameter update, and the above-mentioned processes of S701 to S707 are performed to judge whether the sum of the loss values ​​becomes equal to or less than a predetermined value. Alternatively, whether the learning has been completed may be judged based on the number of times the series of processes of S701 to S707 are repeated. If the parameter learning unit 609 judges that the learning has not been completed (NO in S708), the process returns to S701, and the above-mentioned processes are repeated. On the other hand, if the parameter learning unit 609 judges that the learning has been completed (YES in S708), the learning process shown in FIG. 7(a) is terminated. In this manner, the learning for the learning data is completed.

[0054] Next, learning of the category weight model will be described. FIG. 8 is a block diagram showing an example of a functional configuration of the learning device 150. FIG. 8 shows an example of a functional configuration for learning the category weight model. In FIG. 8, components having the same functions as those shown in FIG. 6 are given the same reference numerals, and duplicated explanations will be omitted. The learning device 150 has a learning data storage unit 801, a learning data acquisition unit 602, an image acquisition unit 603, a feature extraction unit 604, a detection region estimation unit 605, a likelihood estimation unit 606, and a weight calculation unit 807.

[0055] The learning data storage unit 801 holds multiple images of learning data for each category used for learning the category weight model. By performing learning using the learning data held in the learning data storage unit 801, it is possible to obtain a category weight model specialized for the category of an object included in the image of the learning data.

[0056] The weight calculation unit 807 calculates category weights suitable for the images of the learning data stored in the learning data storage unit 801, based on the estimated values ​​of the category likelihoods obtained by the likelihood estimation unit 606. In this example, the category weights are set to the average value of the category likelihoods of all detection region frames detected by the detection region estimation unit 605 for all images stored in the learning data storage unit 801.

[0057] FIG. 7B is a flowchart showing an example of a category weight model learning process performed by the learning device 150. In S711, the learning data acquisition unit 602 acquires learning data stored in the learning data storage unit 801. In addition, the image acquisition unit 603 acquires learning images from the learning data acquired by the learning data acquisition unit 602.

[0058] In S712, the feature extraction unit 604 extracts a feature amount from the learning image acquired by the image acquisition unit 603 in S711. In S713, the detection area estimation unit 605 estimates a detection area candidate of the object or a part of the object based on the feature amount extracted by the feature extraction unit 604 in S712. In S714, the likelihood estimation unit 606 estimates the category likelihood of the object for each category prepared in advance, based on the feature amount extracted by the feature extraction unit 604 in S712. The processes in S712 to S714 are similar to the processes in S402 to S404 in the flowchart shown in FIG.

[0059] In S715, the weight calculation unit 807 adds the category likelihood of each detection area obtained by the likelihood estimation unit 606 in S714 for each category to the detection area estimated by the detection area estimation unit 605 in S713, to calculate a category likelihood sum for each category.

[0060] In S716, the weight calculation unit 807 judges whether or not to end the learning. The weight calculation unit 807 judges to end the learning when the above-mentioned processes of S711 to S715 have been performed on all the learning data (images) in the learning data storage unit 801, that is, when there is no unprocessed learning data (images). When the weight calculation unit 807 judges not to end the learning, that is, when there is unprocessed learning data (images) (NO in S716), the process returns to S711, and the above-mentioned processes of S711 to S715 are performed on the remaining learning data (unprocessed learning data). On the other hand, when the weight calculation unit 807 judges to end the learning, that is, when the above-mentioned processes have been completed on all the learning data (images) (YES in S716), the process of S717 is performed.

[0061] In S717, the weight calculation unit 807 calculates an average value of the category likelihood for each category based on the category likelihood sum for each category obtained in the processes up to this point, and sets the calculated average value as the category weight. The obtained category weight is stored, for example, in the weight storage unit 305 of the image processing device 110. Then, the learning process of the category weight model shown in Fig. 7(b) is terminated. In this manner, the learning of the category weight is completed.

[0062] In this embodiment, in addition to a detection method based on object likelihood learned for a specific category, a category likelihood and a category weight model are defined as new parameters and used for object detection. The image processing device 110 calculates a likelihood score using the category likelihood and category weight for a detection result obtained by performing detection based on the object likelihood, and detects an object of a target category based on the calculated likelihood score. This makes it possible to detect an object of a target category by simply switching a category weight model, which has a lower creation cost than a learning model, without creating a new learning model for the target category, which requires a huge cost to create. When applying various functions of a camera, it becomes possible to appropriately set an attention area for any subject, not just a subject of a specific category for which a learning model is generated.

[0063] (Modification) In the above example, the likelihood score is the sum of the values ​​for each category in the category likelihood multiplied by the category weight, but it may be the sum of the similarity between the value for each category in the category likelihood and the category weight. The method of calculating the similarity uses, for example, the inverse of square error. In the likelihood score calculation method of the first embodiment, it is impossible to define a condition that the likelihood of a specific category is low, so if there is a detection frame in which the likelihood of all categories is maximum, the likelihood score will also be maximum regardless of the category weight. However, by setting the likelihood score to the sum of the similarity between the value for each category and the category weight, it becomes possible to set a condition that the likelihood of a specific category is low, so that the feature of the detection target can be defined more flexibly.

[0064] <Embodiment 2> In the second embodiment, a method will be described in which a user uses a GUI to interactively correct category weights based on the category weights created as described in the first embodiment to a form that matches the user's intention. In the following, the same points as in the first embodiment will be omitted, and only the correction of category weights will be described. The category weights are created in advance by the learning device 150 learning using learning data, and are held in the weight holding unit of the image processing device 110. The hardware configuration of each device in the second embodiment is the same as the hardware configuration shown in FIG.

[0065] Fig. 9 is a block diagram showing an example of the functional configuration of an image processing device 110 according to embodiment 2. In Fig. 9, components having the same functions as those shown in Fig. 3 are given the same reference numerals, and duplicated explanations will be omitted. The image processing device 110 according to this embodiment has an image acquisition unit 301, a feature extraction unit 302, a detection region estimation unit 303, a likelihood estimation unit 304, a weight holding unit 905, a region of interest selection unit 306, and a weight correction unit 907.

[0066] The weight holding unit 905, like the weight holding unit 305 in the first embodiment, holds category weights used when the attention area selecting unit 306 calculates the likelihood score. The weight holding unit 905 also has a function of holding category weights created (corrected) by the weight correcting unit 907. The category weights are a set of weights of a category group corresponding to each category in the category likelihood.

[0067] The weight correction unit 907 performs processing related to correction of category weights in accordance with input information based on instructions from a user, etc. For example, the weight correction unit 907 displays the values ​​of the category weights selected by the user for each category using the output device 204, and performs processing to correct the category weights upon receiving an instruction from the input device 203 to change the values ​​of the category weights for each category from the user.

[0068] An example in which a user corrects category weights using a GUI in the camera (image processing device) according to this embodiment will be described below. Fig. 10 is a flowchart for explaining a processing example related to correction of category weights according to this embodiment. However, the camera (image processing device) does not necessarily have to perform all the steps described in this flowchart.

[0069] In S1001, the weight corrector 907 obtains the category weights from the weight holder 905. In S1002, the weight correction unit 907 displays the configuration of the category weights acquired in S1001 to the user using the output device.

[0070] In S1003, the weight correction unit 907 receives an input from an input device and makes a judgment on the received input. The input received in S1003 is roughly divided into three categories: model correction, detection test, and end of correction. If the weight correction unit 907 judges that an input related to model correction has been received, the process of S1004 is executed. If the weight correction unit 907 judges that an input related to a detection test has been received, the process of S1005 is executed, and if the weight correction unit 907 judges that an input related to end of correction has been received, the process of S1012 is executed.

[0071] In S1004, which is reached when it is determined that an input related to model correction has been made, the weight correction unit 907 performs a correction process for the category weight model based on the input information that has been input. When the correction process for the category weight model ends, the process returns to S1002.

[0072] If it is determined that a detection test has been input, the image processing device 110 executes the following processes of S1005 to S1009, and performs object detection processing on the specified image using the current category weight model. The processes of S1005 to S1009 are similar to the processes of S401 to S406 (excluding S405) in the flowchart shown in FIG. 4 described in the first embodiment.

[0073] That is, in S1005, the image acquisition unit 301 acquires the captured image. In S1006, the feature extraction unit 302 processes the image acquired by the image acquisition unit 301 in S1005 to extract a feature amount. In S1007, the detection area estimation unit 303 estimates a detection area of ​​the object based on the feature amount extracted by the feature extraction unit 302 in S1002. In S1008, the likelihood estimation unit 304 estimates a category likelihood based on the feature amount extracted by the feature extraction unit 302 in S1002.

[0074] In S1009, the attention area selection unit 306 executes an attention area selection process, and selects a frame to be the attention area from the frames of the detection areas of the object estimated in S1007 by the detection area estimation unit 303. The attention area selection unit 306 calculates a likelihood score using the category likelihood estimated by the likelihood estimation unit 304 in S1008 and the current category weight, and selects a frame to be the attention area based on the calculated likelihood score.

[0075] In S1010, the weight correction unit 907 displays the frame (detection frame) of the detection region selected as the region of interest by the region of interest selection unit 306 in S1009 to the user via the output device.

[0076] In S1011, the weight correction unit 907 receives an input from the input device and makes a decision on the received input. The input received in S1011 is either one of two options: continue correction or end correction. If the weight correction unit 907 determines that the input to continue correction has been received, the process returns to S1002, and the above-described processing from S1002 onwards is executed. If the weight correction unit 907 determines that the input to end correction has been received, the process of S1012 is executed.

[0077] In S1012, which is reached when it is determined that the input indicating the end of correction has been made, the weight corrector 907 stores the current category weight model in the weight holder 905, and the correction process shown in FIG. 10 ends.

[0078] In the second embodiment, the category weights held by the weight holding unit 905 can be corrected based on the input information that has been input. This makes it possible to make fine corrections to the category weights that have been automatically created as described in the first embodiment, and to create a category weight model that better matches the user's intention.

[0079] In the above description, the detection test actually performs a detection process on an image and outputs the results, allowing the user to check whether the current category weight model is a model that can obtain the results he or she desires. In addition to this process, the likelihood score of an object that exists at coordinates specified by the user in the image during the detection test may be displayed. By displaying the likelihood score of an object that exists at coordinates specified by the user, the user can grasp the category likelihood of the object that he or she wishes to detect, making it possible to perform a more specific correction process.

[0080] It should be noted that the camera 100 according to each of the above-described embodiments may be a video camera, still camera, network camera, or other camera whose main function is a so-called shooting function, or it may be a smartphone, mobile phone, tablet terminal, or other device that has a shooting function.

[0081] <Other embodiments of the present invention> 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 embodiment 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) for implementing one or more of the functions.

[0082] It should be noted that the above-mentioned embodiments are merely examples of the implementation of the present invention, and the technical scope of the present invention should not be interpreted as being limited by these. In other words, the present invention can be implemented in various forms without departing from its technical concept or main features.

[0083] The disclosure of the present embodiment includes the following configurations, methods, etc. (Configuration 1) An extraction means for extracting features from a captured image; a first estimation means for estimating a detection area of ​​an object in the image based on the feature amount extracted by the extraction means; a second estimation means for estimating, for each of the estimated detection regions, a category likelihood of the object in the detection region for a plurality of first categories based on the feature amount extracted by the extraction means; and a selection means for selecting the detection area relating to the object of the second category from among the estimated detection areas based on the estimated category likelihood and a category weight relating to the second category. (Configuration 2) The image processing device described in configuration 1, characterized in that the selection means calculates a likelihood score of the detection area using the category likelihood and the category weight, and selects the detection area related to the object of the second category based on the calculated likelihood score. (Configuration 3) 3. The image processing device according to claim 1, wherein the selection means selects one of the detection areas from among the estimated detection areas based on the category likelihood and the category weight. (Configuration 4) The image processing device according to configuration 2, characterized in that the selection means selects one of the estimated detection areas for which the calculated likelihood score is equal to or greater than a threshold and the likelihood score is the highest. (Configuration 5) A storage means for storing the category weights; 4. The image processing device according to any one of configurations 1 to 3, further comprising: a correction means for correcting the category weights held by the holding means on the basis of input information. (Configuration 6) The image processing device according to configuration 5, wherein the correction means displays the category weights stored in the storage means by an output device, and corrects the category weights based on the input information received via an input device. (Configuration 7) 7. The image processing device according to configuration 6, wherein the correction means causes the output device to display a result of the processing performed by the selection means using the current category weights. (Configuration 8) The image processing device according to any one of configurations 1 to 7, wherein the category weights are category weights acquired by learning using a plurality of learning data each including a learning image and correct answer information related to the learning image. (Configuration 9) 9. The image processing device according to any one of configurations 1 to 8, wherein the extraction means, the first estimation means, and the second estimation means are configured using a neural network. (Configuration 10) An imaging means for capturing an image; 10. An electronic device comprising the image processing device according to any one of configurations 1 to 9, to which an image captured by the imaging means is input. (Configuration 11) The electronic device includes: The camera has at least one of an autofocus function, an autoexposure function, and an auto white balance function; 11. The electronic device according to configuration 10, wherein the control related to the function is performed based on the detection area selected by the selection means. (Configuration 12) An extraction means for extracting features from a training image of the training data; a first estimation means for estimating a detection area of ​​an object in the learning image based on the feature amount extracted by the extraction means; a second estimation means for estimating, for each of the estimated detection regions, a category likelihood of the object in the detection region for a plurality of first categories based on the feature amount extracted by the extraction means; a parameter learning means for learning parameters of the extraction means, the first estimation means and the second estimation means based on the estimated detection area and the category likelihood, and correct answer information regarding a training image of the training data. (Method 1) An extraction step of extracting feature amounts from the captured image; a first estimation step of estimating a detection area of ​​an object in the image based on the feature amount extracted in the extraction step; a second estimation step of estimating, for each of the estimated detection regions, category likelihoods of the object in the detection region for a plurality of first categories based on the feature amount extracted in the extraction step; and a selection step of selecting the detection area relating to the object of the second category from among the estimated detection areas based on the estimated category likelihood and a category weight relating to the second category. (Method 2) An extraction step of extracting features from training images of the training data; a first estimation step of estimating a detection area of ​​the object in the learning image based on the feature amount extracted in the extraction step; a second estimation step of estimating, for each of the estimated detection regions, category likelihoods of the object in the detection region for a plurality of first categories based on the feature amount extracted in the extraction step; a parameter learning step of learning model parameters to be used in the extraction step, the first estimation step, and the second estimation step, based on the estimated detection area and the category likelihood, and on correct answer information regarding a training image of the training data. (Program 1) The computer of the image processing device An extraction step of extracting features from the captured image; a first estimation step of estimating a detection area of ​​an object in the image based on the feature amount extracted in the extraction step; a second estimation step of estimating, for each of the estimated detection regions, a category likelihood of the object in the detection region for a plurality of first categories based on the feature amount extracted in the extraction step; and a selection step of selecting the detection area relating to an object of the second category from among the estimated detection areas based on the estimated category likelihood and a category weight relating to the second category. (Program 2) The learning device computer An extraction step of extracting features from training images of the training data; a first estimation step of estimating a detection area of ​​the object in the learning image based on the feature amount extracted in the extraction step; a second estimation step of estimating, for each of the estimated detection regions, a category likelihood of the object in the detection region for a plurality of first categories based on the feature amount extracted in the extraction step; A program for executing a parameter learning step of learning model parameters to be used in the extraction step, the first estimation step, and the second estimation step, based on the estimated detection area and category likelihood, and correct answer information regarding a training image of the training data. [Explanation of symbols]

[0084] 100: Camera 101: Imaging unit 102: Control unit 110: Image processing device 150: Learning device 301, 603: Image acquisition unit 302, 604: Feature extraction unit 303, 605: Detection area estimation unit 304, 606: Likelihood estimation unit 305: Weight holding unit 306: Attention area selection unit 601, 801: Learning data storage unit 602: Learning data acquisition unit 607: Area error calculation unit 608: Likelihood error calculation unit 609: Parameter learning unit 807: Weight calculation unit

Claims

1. An extraction means for extracting features from a captured image; a first estimation means for estimating a detection area of ​​an object in the image based on the feature amount extracted by the extraction means; a second estimation means for estimating, for each of the estimated detection regions, a category likelihood of the object in the detection region for a plurality of first categories based on the feature amount extracted by the extraction means; and a selection means for selecting the detection area relating to the object of the second category from among the estimated detection areas based on the estimated category likelihood and a category weight relating to the second category.

2. 2. The image processing device according to claim 1 , wherein the selection means calculates a likelihood score of the detection area using the category likelihood and the category weight, and selects the detection area relating to the object of the second category based on the calculated likelihood score.

3. 2 . The image processing apparatus according to claim 1 , wherein the selection means selects one of the estimated detection areas based on the category likelihood and the category weight.

4. 3 . The image processing apparatus according to claim 2 , wherein the selection means selects, from the estimated detection areas, one detection area for which the calculated likelihood score is equal to or greater than a threshold and which has the highest likelihood score.

5. A storage means for storing the category weights; 2. The image processing apparatus according to claim 1, further comprising a correction unit for correcting the category weights held by the holding unit on the basis of input information.

6. 6. The image processing device according to claim 5, wherein the correction means displays the category weights stored in the storage means by an output device, and corrects the category weights based on the input information received via an input device.

7. 7. The image processing apparatus according to claim 6, wherein said correction means causes said output device to display a result of the processing performed by said selection means using the current category weights.

8. 2 . The image processing apparatus according to claim 1 , wherein the category weights are category weights acquired by learning using a plurality of learning data each including a learning image and correct answer information related to the learning image.

9. 2. The image processing apparatus according to claim 1, wherein the extraction means, the first estimation means, and the second estimation means are configured using a neural network.

10. An imaging means for capturing an image; 2. An electronic device comprising: the image processing device according to claim 1, to which an image captured by said imaging means is input.

11. The electronic device includes: The camera has at least one of an autofocus function, an autoexposure function, and an auto white balance function; 11. The electronic device according to claim 10, wherein the control relating to the function is performed based on the detection area selected by the selection means.

12. An extraction means for extracting features from a training image of the training data; a first estimation means for estimating a detection area of ​​an object in the learning image based on the feature amount extracted by the extraction means; a second estimation means for estimating, for each of the estimated detection regions, a category likelihood of the object in the detection region for a plurality of first categories based on the feature amount extracted by the extraction means; a parameter learning means for learning parameters of the extraction means, the first estimation means and the second estimation means based on the estimated detection area and the category likelihood, and correct answer information regarding a training image of the training data.

13. An extraction step of extracting feature amounts from the captured image; a first estimation step of estimating a detection area of ​​an object in the image based on the feature amount extracted in the extraction step; a second estimation step of estimating, for each of the estimated detection regions, category likelihoods of the object in the detection region for a plurality of first categories based on the feature amount extracted in the extraction step; and a selection step of selecting the detection area relating to the object of the second category from among the estimated detection areas based on the estimated category likelihood and a category weight relating to the second category.

14. An extraction step of extracting features from training images of the training data; a first estimation step of estimating a detection area of ​​an object in the learning image based on the feature amount extracted in the extraction step; a second estimation step of estimating, for each of the estimated detection regions, category likelihoods of the object in the detection region for a plurality of first categories based on the feature amount extracted in the extraction step; a parameter learning step of learning model parameters to be used in the extraction step, the first estimation step, and the second estimation step based on the estimated detection area and the category likelihood, and on correct answer information regarding a training image of the training data.

15. The computer of the image processing device An extraction step of extracting features from the captured image; a first estimation step of estimating a detection area of ​​an object in the image based on the feature amount extracted in the extraction step; a second estimation step of estimating, for each of the estimated detection regions, category likelihoods of the object in the detection region for a plurality of first categories based on the feature amount extracted in the extraction step; A program for executing a selection step of selecting the detection area relating to an object of the second category from among the estimated detection areas based on the estimated category likelihood and a category weight relating to the second category.

16. The learning device computer An extraction step of extracting features from training images of the training data; a first estimation step of estimating a detection area of ​​an object in the learning image based on the feature amount extracted in the extraction step; a second estimation step of estimating, for each of the estimated detection regions, category likelihoods of the object in the detection region for a plurality of first categories based on the feature amount extracted in the extraction step; A program for executing a parameter learning step of learning model parameters to be used in the extraction step, the first estimation step, and the second estimation step based on the estimated detection area and category likelihood, and correct answer information regarding a training image of the training data.

Citation Information

Patent Citations

  • Electronic equipment and method of controlling the same

    JP2019120748A