IMAGE PROCESSING APPARATUS, IMAGING APPARATUS, IMAGE PROCESSING METHOD, AND PROGRAM
The image processing apparatus uses CNN to detect and match subject parts based on posture distance, addressing erroneous tracking by accurately identifying the intended subject despite subject intersections.
Patent Information
- Application Number
- JP2020019964
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-02-07
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-02-07
AI Technical Summary
Existing image tracking technologies struggle to accurately identify the intended subject when multiple subjects intersect, leading to erroneous tracking of a subject other than the intended target.
An image processing apparatus that detects multiple parts of subjects using a convolutional neural network (CNN) and calculates posture distance based on vector differences between detected parts to match and confirm the intended subject.
Effectively suppresses erroneous tracking by accurately identifying the intended subject even when subjects intersect, ensuring precise tracking.
Smart Images

Figure 0007566471000008 
Figure 0007566471000009 
Figure 0007566471000010
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing device, an imaging device, an image processing method, and a program. [Background technology]
[0002] An imaging device such as a digital camera detects a subject from each frame constituting a moving image, tracks the detected subject, and performs imaging control such as autofocus (hereinafter, AF). This imaging control can support users in taking pictures. As a related technique, Patent Document 1 proposes a visual tracking technique that is not easily affected by the movement characteristics of the tracked object or changes in the imaging environment. In the technique of Patent Document 1, in visual tracking using a particle filter, depth image information that represents the distance from the imaging device on the image plane is used to generate an edge image used in observing the likelihood. In addition, Non-Patent Document 1 discloses a technique related to neural networks. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2016-81251 A [Non-patent literature]
[0004] [Non-Patent Document 1] S. Haykin, “Neural Networks A Comprehensive Foundation 2nd Edition”, Prentice Hall, pp.156-255, July 1998 Summary of the Invention [Problem to be solved by the invention]
[0005] For example, when a moving image is being captured, the subject being tracked may cross another subject. In this case, the subject originally being tracked may mistakenly be tracked on another subject. In the technology of Patent Document 1, the subject to be tracked is identified using depth image information, but depending on optical conditions and the distance relationship between the two subjects, it may be difficult to identify the subject to be tracked. In this case, as described above, the subject originally being tracked may mistakenly be tracked on another subject.
[0006] An object of the present invention is to prevent a subject that is not a tracking target from being erroneously tracked. [Means for solving the problem]
[0007] In order to achieve the above object, an image processing device of the present invention includes a detection means for detecting a plurality of parts of a first subject from a first image and a plurality of parts of a second subject from a second image; based on a vector difference as posture information between the posture based on the multiple parts of the first subject detected by the detection means and the posture based on the multiple parts of the second subject, and a matching means for matching the first subject with the second subject. Effect of the Invention
[0008] According to the present invention, it is possible to prevent a subject that is not a tracking target from being erroneously tracked. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a block diagram showing a configuration of an imaging apparatus. [Diagram 2] FIG. 2 illustrates video frames and processing; [Diagram 3] FIG. 1 is a diagram for explaining modeling of a person's posture. [Figure 4] 3 is a flowchart showing a process flow of the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, each embodiment of the present invention will be described in detail with reference to the drawings. However, the configurations described in each of the following embodiments are merely examples, and the scope of the present invention is not limited to the configurations described in each of the embodiments.
[0011] Hereinafter, the present embodiment will be described with reference to the drawings. Fig. 1 is a block diagram showing the configuration of an imaging device 100. The imaging device 100 captures an image of a subject, generates moving images and still images, and can record the generated data on various media such as tape, solid-state memory, optical disk, magnetic disk, and semiconductor memory. The imaging device 100 is, for example, a digital still camera or a digital video camera. Each unit in the imaging device 100 is connected via a bus 160. Each unit is controlled by a CPU 151.
[0012] The lens unit 101 has a fixed first group lens 102, a zoom lens 111, an aperture 103, a fixed third group lens 121, and a focus lens 131. The lens unit 101 may have other lenses. The aperture control unit 105 drives the aperture 103 via an aperture motor 104 (AM) in accordance with a command from the CPU 151, thereby adjusting the aperture diameter of the aperture 103 and adjusting the amount of light during shooting. The zoom control unit 113 changes the focal length by driving the zoom lens 111 via a zoom motor 112 (ZM).
[0013] The focus control unit 133 determines the drive amount for driving the focus motor 132 (FM) based on the shift amount (defocus amount) of the lens unit 101 in the focus direction. The focus control unit 133 also controls the focus adjustment state by driving the focus lens 131 via the focus motor 132 (FM). AF control is realized by the movement control of the focus lens 131 by the focus control unit 133 and the focus motor 132. The focus lens 131 is a lens for focus adjustment, and is shown simply as a single lens in FIG. 1, but is usually composed of multiple lenses.
[0014] The subject image formed on the imaging element 141 via the lens unit 101 is converted into an electrical signal by the imaging element 141. The imaging element 141 is a photoelectric conversion element that performs photoelectric conversion of the subject image (optical image) into an electrical signal. The imaging element 141 has a plurality of light receiving elements (pixels) arranged in both the horizontal and vertical directions. The imaging signal processing unit 142 performs signal processing on the image formed on the imaging element 141 and photoelectrically converted to generate an image signal (image data). This makes it possible to acquire an image on the imaging surface.
[0015] The image data output by the imaging signal processing unit 142 is sent to the imaging control unit 143 and temporarily stored in the RAM 154. The image compression / decompression unit 153 compresses the image data stored in the RAM 154. The image compression / decompression unit 153 can also decompress the compressed image data. The compressed image data is recorded in an image recording medium 157. In parallel with this, the image data stored in the RAM 154 is sent to the image processing unit 152. The image processing unit 152 performs image processing such as reduction or enlargement to an optimal size on the image data. The image processing unit 152 also calculates the similarity between image data.
[0016] The image data processed to an optimal size by the image processing unit 152 is appropriately output to the monitor display 150. This allows the monitor display 150 to display a preview image or a through image. Furthermore, the image processing unit 152 superimposes an object detection result by the object detection unit 162 (described later) on the image data, allowing the monitor display 150 to display the image data on which the object detection result is superimposed.
[0017] The RAM 154 can also be used as a ring buffer. In this case, a plurality of image data captured within a predetermined period, detection results of the object detection unit 162 corresponding to each image data, changes in position and orientation of the imaging device acquired by a position and orientation change acquisition unit 161 (described later), and the like can be buffered in the RAM 154. The operation switch 156 is an input interface including a touch panel, buttons, and the like, and various operations can be performed by selecting and operating various function icons displayed on the monitor display 150, and the like.
[0018] The CPU 151 determines the set values of the accumulation time and gain of the image sensor 141 based on an instruction from an operator inputted to the operation switch 156 or the magnitude of a pixel signal of image data temporarily stored in the RAM 154. The imaging control unit 143 receives an instruction of the set values of the accumulation time and gain from the CPU 151 and controls the image sensor 141. The CPU 151 mainly executes each process of this embodiment. The CPU 151 corresponds to a generating means and a matching means.
[0019] The object detection unit 162 detects an area where an object exists from the image data. The object detection unit 162 corresponds to a detection means. In this embodiment, the object detection process performed by the object detection unit 162 is realized by a feature extraction process using a CNN (convolutional neural network). The CNN is a CNN trained by machine learning, and corresponds to a trained model. The object detection unit 162 may perform the object detection process using a trained model trained by machine learning algorithms other than CNN (such as a decision tree or a support vector machine). In addition, the object detection unit 162 may perform the object detection process using a trained model trained by machine learning using R-CNN (Regions with CNN features) or the like.
[0020] The object detection unit 162 detects a plurality of body parts of a person as a subject from an image. The body parts are also called local regions, and may be, for example, characteristic regions of a person without being limited to biological parts (such as the head and shoulders).
[0021] The object detection unit 162 may detect a plurality of parts using an animal, a car, or the like as a subject. For example, the object detection unit 162 detects a person by estimating representative points such as the head including the face, both shoulders, the torso, and both knees, and outputs the detection result. The object detection unit 162 may detect parts other than the above-mentioned parts. The object detection unit 162 may detect the parts of the human body of a person by a rectangular area or a point, or may detect them by information such as a line segment connecting joints. The object detection unit 162 may also detect each part from a predetermined area (region of interest) of the image. The object detection unit 162 may detect the parts by a predetermined detection method for detecting parts from a subject, instead of a trained model that has been machine-learned.
[0022] The focus control unit 133 performs AF control for a specific subject region. The aperture control unit 105 performs exposure control using the luminance value of the specific subject region. The image processing unit 152 performs gamma correction, white balance processing, and the like based on the subject region. As described above, the monitor display 150 displays image data. Furthermore, the object detection unit 162 can detect a person as a subject. The image processing unit 152 may superimpose a frame (for example, a rectangular frame) surrounding the detected person on the image data. As a result, the rectangular frame surrounding the person as a subject in the image data is displayed on the monitor display 150 together with the image data.
[0023] Battery 159 is appropriately managed by power management unit 158, and provides a stable power supply to the entire imaging device 100. Flash memory 155 records control programs necessary for the operation of imaging device 100, parameters used for the operation of each unit, and the like. When imaging device 100 is started up by a user's operation (when the power is switched from OFF to ON), the control programs and parameters stored in flash memory 155 are loaded into a part of RAM 154. CPU 151 can realize the processing of this embodiment by executing the control programs loaded into RAM 154.
[0024] The position and orientation change acquisition unit 161 is composed of a position and orientation sensor such as a gyro, an acceleration sensor, or an electronic compass. The position and orientation change acquisition unit 161 measures a change in position and orientation of the imaging device relative to a shooting scene. The position and orientation change acquired by the position and orientation change acquisition unit 161 is stored in the RAM 154. The distance calculation unit 163 calculates the distance (depth) from the imaging device 100 to an arbitrary subject in the image data. The calculated distance information is stored in the RAM 154. The image processing unit 152 performs various processes by referring to the distance information stored in the RAM 154. The configuration of the imaging device 100 is not limited to the example of FIG. 1.
[0025] 1, an image processing device may be configured with the CPU 151, image processing unit 152, and object detection unit 162. This image processing device may be realized by a standalone device, may be built into the imaging device 100, or may be built into a smartphone, a tablet terminal, or the like. Furthermore, the image processing device may have components other than the CPU 151, the image processing unit 152, and the object detection unit 162 (for example, a monitor display 150, an image compression / decompression unit 153, etc.).
[0026] Next, the processing of this embodiment will be described. The imaging device 100 of this embodiment will be described as capturing moving images. However, the imaging device 100 can also capture still images. FIG. 2 is a diagram showing frames of a moving image and processing. In the example of FIG. 2, three consecutive frames (images) are shown, but the number of frames may be four or more. In the example of FIG. 2, the n-1th frame n-1, the nth frame n, and the n+1th frame n+1 are shown. Each frame is a consecutive frame (image).
[0027] In the example of FIG. 2, the subject to be tracked is person A. In frames n-1 and n+1, the periphery of the subject to be tracked is surrounded by a region (tracking target region T) for identifying the subject to be tracked. In the example of FIG. 2, the tracking target region T is superimposed on the frame as a rectangular frame indicated by a dashed line, but the shape and display mode of the tracking target region T are not limited to the example of FIG. 2. In frame n-1, the tracking target is person A. The CPU 151 registers posture information about the tracking target person A as, for example, a template. The posture information is information that represents a person based on the positional relationship between a plurality of parts of person A. The registered posture information is stored in, for example, the RAM 154. In the above case, frame n-1 corresponds to the first image, and person A corresponds to the first subject.
[0028] In the example of FIG. 2, person A is running, and in frame n, which is the next frame after frame n-1, person A and person B cross each other. The orientation of person B is different between frame n-1 and frame n. Here, person B is located in front of person A. That is, person B is located closer to the imaging device 100 than person A. Therefore, person A is hidden by person B in frame n. In this case, the subject is person B. The posture of person B is not similar to the posture of person A that has been registered. CPU 151 performs matching by comparing posture information of person B in frame n with posture information of person A that has been registered. The posture of person B in frame n is not similar to the posture of person A that has been registered. Therefore, CPU 151 determines that the subject (person B) in frame n is a different person from person A as a result of matching. Therefore, person A, who is the tracking target, is not detected in frame n.
[0029] In the example of FIG. 2, in frame n+1, which is the next frame after frame n, person A, who is the tracking target, moves away from person B. CPU 151 matches posture information for each of person A and person B included in frame n+1 with posture information for registered person A. The posture for person A in frame n+1 is similar to the posture of registered person A. Therefore, as a result of matching, CPU 151 determines that person A in frame n+1 is the same person as registered person A. Then, CPU 151 performs control to resume tracking of person A.
[0030] Next, modeling of a person's posture will be described. FIG. 3(a) is a diagram showing frame n-1 and frame n in FIG. 2. FIG. 3(b) shows a model (template posture) of posture information of person A registered as a template. The subject registered as a template may be person B. CPU 151 sequentially inputs frames input from imaging control unit 143 to object detection unit 162. Object detection unit 162 inputs frames (images) to CNN, detects multiple parts of the person in the frames by estimation, and outputs coordinates of the detected person and multiple parts. In this embodiment, object detection unit 162 inputs images to CNN and detects each part of the person's neck, head, left and right shoulders, left and right elbows, left and right wrists, left and right knees, and left and right ankles. Object detection unit 162 may detect multiple parts of the lower body of the person. Object detection unit 162 outputs the coordinates (joint coordinates) of each detected part to CPU 151 as object detection results. The coordinates of each part may be a single point within a circle (for example, the center of the circle) or may be points distributed unevenly within the circle.
[0031] The CPU 151 generates posture information using a vector that connects the coordinates of adjacent parts in the joint structure. By using a vector, the posture information also takes into account the orientation of the person. In FIG. 3(b), for person A, which is the tracking target in frame n-1, the CPU 151 defines the following equation, where v0 is the vector from the neck to the head, v1 is the vector from the left shoulder to the left elbow, and so on.
[0032]
number
[0033] 3(c) shows a model of posture information of person B, a matching candidate, in frame n. In this case, frame n corresponds to the second image, and person B, a matching candidate, corresponds to the second subject. CPU 151 defines a corresponding vector of person B in frame n in accordance with the posture information model of person A to be registered, by the following formula:
[0034]
number
[0035] Here, depending on the posture of the person included in the frame and the presence or absence of an obstacle, there may be a part that is not detected. In this case, the CPU 151 does not define a vector that requires the coordinates of the undetected part. For example, in the example of FIG. 3(b), a part on the right side of person A is not detected, so a vector from the neck to the right shoulder of person A in frame n is not defined. On the other hand, in the example of FIG. 3(c), the neck and right shoulder are detected as posture information of person B, so a vector v'4 from the neck to the right shoulder is defined.
[0036] CPU151 is the vector v i and vector v' i The distance (difference) between v i , v' i ), the distance between the postures of people is dist(v i , v' i ) is calculated as a weighted sum of the vector v i , v' i may not be defined. The CPU 151 uses the vector v i , v' i Depending on how dist(v i , v' i) is calculated using the following formula, where C0 and C1 are known constants.
[0037]
number
[0038] The CPU 151 assigns weighting to each vector. The weighting for each vector is expressed by the following formula.
[0039]
number
[0040] The CPU 151 calculates the distance between the postures of people using the following formula.
[0041]
number
[0042] Vector v i , v' i If both are defined, dist(v i , v' i ) represents the difference between corresponding vectors (vectors connecting the coordinates of connected parts). For example, dist(v i , v' i ) indicates the difference between the vectors connecting the neck and the left shoulder of the two people. Then, the CPU 151 assigns different weights W i The weights are W i It is not necessary that all of them are different, and some of them may be the same.
[0043] Dist is dist(v i , v' i) is the weighted sum and represents a value indicating the pose distance between two persons. That is, the pose distance Dist indicates the difference in poses for the two persons for whom matching is performed. If the pose difference is small, it means that the poses of the two persons are similar. For example, as the pose distance Dist (pose difference) between the registered person and the matching candidate person decreases, the likelihood that the two are the same person increases. On the other hand, as the value of Dist increases, the likelihood that the two are the same person decreases. Therefore, the CPU 151 performs the matching between the registered person and the matching candidate person based on the value of Dist.
[0044] Here, as in the above-described equation (3), C0 and C1 are defined. C0 corresponds to the first constant, and C1 corresponds to the second constant. The CPU 151 sets the value of C1 to be smaller than the value of C0. This is because when the two persons are the same person, it is highly likely that the state where the joint parts (joint regions) are hidden is maintained, and this part reduces the influence on Dist. Hereinafter, it will be described assuming that "C0 = 0.8" and "C1 = 0.2" are set. However, as long as "C1 < C0", C0 and C1 may be set to any values.
[0045] Also, v i , v' i are both defined, and there may be a case where "dist(v i , v' i ) = 0". In this case, if "C1 = 0" is set, the constant C1 when neither v i , v' i is defined and the vector distance dist(v i , v' i ) when neither v i , v' i ) are defined will have the same value. The vector difference when both v i , v' i are defined is the value when the vectors between the actual target parts are known, and its reliability is high. On the other hand, when both v i , v' iWhen the constant C1 when both are not defined has low reliability because the vector between the actual target parts is unknown. In this case, there is a possibility of misidentifying the tracking target. Therefore, in order to suppress mis-tracking, the CPU 151 sets the constant C1 when both v i and v' i are not defined to a value greater than "0".
[0046] Also, from the above perspective, the constant C0 when either one of v i or v' i is defined has higher reliability than C1 when both v i and v' i are not defined. Therefore, the CPU 151 sets the constant C0 to a value greater than the constant C1. Note that if a certain degree of mis-tracking is acceptable and dist(v i and v' i ) is calculated based only on the vector between the parts where both are defined, it may be set to "C0 = C1 = 0".
[0047] The CPU 151 may pre-set the weight W i according to the ease of variation of the corresponding part. For example, in FIG. 3, the vector v0 from the neck to the head is more likely to vary than the vector v3 from the left elbow to the left wrist. That is, the ease of variation of the vectors in the example of FIG. 3 is "v0 < v1 < v2 < v3". Therefore, the CPU 151 sets the weights corresponding to the respective vectors to "W0 > W1 > W2 > W3". The CPU 151 performs similar weighting for other vectors. That is, the CPU 151 determines the weight of the corresponding vector according to the ease of variation of the vector between the parts. Specifically, the CPU 151 reduces the weight of the corresponding vector as the vector between the parts becomes more likely to vary. In other words, the CPU 151 increases the weight of the corresponding vector as the vector between the parts becomes less likely to vary.
[0048] The CPU 151 takes into account the acquisition interval ΔT between the two images of the object to be matched and weights Wi Even for the same subject, there are some parts that are likely to change over time. Therefore, the CPU 151 determines the weight W i In this embodiment, the value m indicating the ease of fluctuation for each vector may be set to a small value. i Set as follows. However, in the following equation 6, "0 ≦ m i ≦1".
[0049]
number
[0050] At this time, the CPU 151 determines the weight W i is determined by the following formula:
[0051]
number
[0052] As a result, as the acquisition interval ΔT becomes shorter, the weights W i On the other hand, when the acquisition interval ΔT becomes longer, the influence of parts that are prone to fluctuation can be reduced.
[0053] FIG. 4 is a flowchart showing the flow of processing in this embodiment. In S200, the CPU 151 acquires an image supplied from the imaging control unit 143. The image supplied from the imaging control unit 143 may be supplied to a device other than the CPU 151. It is assumed that the acquired image is frame n. In S201, the CPU 151 determines whether a person is being tracked. For example, if an automatic tracking function can be set in the imaging device 100, the CPU 151 can make the determination in S201 based on whether the setting of the automatic tracking function is enabled or disabled. It is assumed that the person being tracked in frame n-1 is person A, and the posture information of person A is registered as a template.
[0054] When CPU 151 determines No in S201, tracking of a person as a subject is not performed, and therefore ends the process as not being a processing target. When CPU 151 determines Yes in S201, the process proceeds to S202. In S202, CPU 151 causes object detection unit 162 to detect body parts of a person. Object detection unit 162 inputs a frame (image) to CNN and outputs coordinates of one or more body parts of a person in the frame. Object detection unit 162 may use CNN to output the coordinates of the body parts in a state where they are clustered for each person. In this case, the number of clusters output from CNN can be regarded as the number of people present in the frame. Object detection unit 162 may estimate a person as a subject and a plurality of body parts of the person, and output the estimation result.
[0055] In S203, the CPU 151 calculates the distance Dist between the postures of person A being tracked and person B, a matching candidate. As described above, Dist represents the difference in posture between two people. Therefore, the smaller Dist is, the more similar the posture of the person registered in frame n-1 is to the posture of the person detected in frame n. In this case, the likelihood that the registered person and the person detected in frame n are the same person is high.
[0056] Here, there may be a case where a plurality of people are detected in frame n. The detected plurality of people are matching candidate people. In this case, CPU 151 calculates Dist for each of the registered person and the detected plurality of people. Then, CPU 151 selects Dist with the smallest value among the calculated plurality of Dist. In S204, CPU 151 determines whether a person whose selected Dist is less than a predetermined threshold value is present in frame n. Dist represents the difference in posture, so the smaller the Dist calculated for two people, the more likely it is that the two people are the same person.
[0057] When CPU 151 judges YES in S204, it advances the process to S205. In this case, a person who is judged to be the same person as the person registered as a template is present in frame n. In S205, CPU 151 tracks the person corresponding to the selected Dist. On the other hand, when CPU 151 judges NO in S204, it advances the process to S206. In this case, CPU 151 judges that the person being tracked has been lost (lost state). At this time, CPU 151 may perform control so that the tracking target area T is not displayed. For example, as shown in FIG. 2, the tracking target area T displayed in frame n-1 is no longer displayed in frame n. This makes it possible to present to the operator that the tracking target has been lost.
[0058] As shown in FIG. 4, in S207, the CPU 151 judges whether to end each process in FIG. 4. For example, the CPU 151 may make the judgment in S207 based on whether the image acquired in S200 is the last image among a plurality of images constituting a moving image. When the CPU 151 judges YES in S207, it ends the process. On the other hand, when the CPU 151 judges NO in S207, it returns the process to S200. Then, frame n+1 is acquired as the next image. When frame n+1 is acquired, each process in FIG. 3 is performed. In the case of the example in FIG. 2, frame n+1 corresponds to the second image, and person A and person B correspond to the second subject. For example, the CPU 151 may judge NO in S204 in frame n and YES in S204 in frame n+1. For example, in the case of the example in FIG. 2, person A is detected in frame n+1. In this case, tracking of person A, who was the tracking target, is resumed.
[0059] Here, the object detection unit 162 may detect only one person in frame n-1 and may detect only one person in frame n. In such a case, the CPU 151 may match only one detected person without generating a posture distance (posture difference) and end the process. In this case, the tracking target person is not mistaken. Also, there is a case where the distance between the coordinates of the person B detected in frame n-1 and the coordinates of the person B detected in frame n is less than a predetermined distance, and the distance between the coordinates of the person A detected in frame n-1 and the coordinates of the person B detected in frame n is equal to or greater than a predetermined distance. In such a case, since the person B can be correctly matched based on the positional relationship, the CPU 151 may match the person B and end the process without performing the process of S203. That is, when the distance between the person A and the person B is equal to or greater than a predetermined distance in the frame to be processed (for example, frame n), the person A and the person B are far enough apart to be matched. In such a case, the person A and the person B do not intersect. Therefore, the CPU 151 may perform matching according to the posture distance (posture difference) only when the distance between person A and person B is less than a predetermined distance.
[0060] As described above, the object detection unit 162 detects a subject and a plurality of body parts using a CNN. The CNN may be, for example, a network in which a fully connected layer and an output layer are connected to a layer structure in which convolution layers and pooling layers are alternately stacked. In this case, for example, an error backpropagation method or the like may be applied as the learning of the CNN. In addition, the CNN may be a neocognitron CNN in which a feature detection layer (S layer) and a feature integration layer (C layer) are set. In this case, a learning method called "Add-if Silent" may be applied as the learning of the CNN.
[0061] The machine learning of CNN may be performed by a predetermined computer such as a server. The image processing device or the imaging device 100 may acquire the trained CNN from a predetermined computer. In this case, the image processing device or the imaging device 100 has a communication means (for example, a communication interface) for communicating with an external device. For example, the CNN may be trained by a predetermined computer performing supervised learning using image data for learning as input and a subject and a plurality of parts of the subject corresponding to the image data for learning as teacher data. In this way, a trained CNN is generated. The image processing device or the imaging device 100 may acquire the trained CNN from a predetermined computer via a communication means. The CNN may be trained by the imaging device 100. The same applies to the case where a trained CNN generated by a machine learning algorithm other than CNN is used.
[0062] Furthermore, the above-described image processing device or imaging device 100 may not have the object detection unit 162 as an estimation means. The image processing device or imaging device 100 transmits an image to an estimation device (for example, an edge computer) having the function of the object detection unit 162 via a communication means. The estimation device performs the same process as the above-described object detection unit 162, and transmits the estimation result to the image processing device or imaging device 100. This allows the CPU 151 to perform the process of this embodiment.
[0063] As described above, in this embodiment, a plurality of parts of a subject included in a plurality of images constituting a moving image are detected, and weighting is performed according to each of the plurality of parts. Then, based on the weighted plurality of parts, the distance (difference) in posture between the two subjects is acquired, and it is possible to estimate whether the two subjects are the same person. This makes it possible to prevent the tracking target person from being mistaken even if a different person is near the tracking target person and the people cross each other when shooting a moving image. Note that, although the above embodiment has been described as an example of a moving image, this embodiment can also be applied to a plurality of images (for example, through images, etc.) acquired continuously.
[0064] Although the preferred embodiments of the present invention have been described above, the present invention is not limited to the above-mentioned embodiments, and various modifications and changes are possible within the scope of the gist of the present invention. The present invention can also be realized by supplying a program that realizes one or more functions of the above-mentioned embodiments to a system or device via a network or storage medium, and having one or more processors of a computer in the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that realizes one or more functions. [Explanation of symbols]
[0065] 100 Imaging device 150 monitor display 151 CPU 152 Image processing section 162 Object detection unit
Claims
1. a detection means for detecting a plurality of regions of a first subject from a first image and a plurality of regions of a second subject from a second image; a matching means for matching the first subject with the second subject based on a vector difference as posture information between a posture based on a plurality of parts of the first subject detected by the detection means and a posture based on a plurality of parts of the second subject; An image processing device comprising:
2. 2 . The image processing apparatus according to claim 1 , wherein the matching means weights a plurality of vectors defined by connecting two parts of the plurality of parts with corresponding weights.
3. 3. The image processing apparatus according to claim 2, wherein said matching means does not define a vector for a portion that is not detected, but sets a predetermined constant.
4. the matching means sets a first constant when one of two corresponding parts between the first subject and the second subject is not detected, and sets a second constant when neither of the two parts is detected; 4. The image processing apparatus according to claim 3, wherein the value of the second constant is smaller than the value of the first constant.
5. 5. The image processing apparatus according to claim 2, wherein the matching means changes weights of the plurality of parts according to an acquisition interval between the first image and the second image.
6. 6. The image processing apparatus according to claim 5, wherein the matching means changes the weight for each of the plurality of parts in accordance with how easily the part changes.
7. 7. The image processing device according to claim 2, wherein the matching means performs the matching according to the difference in posture only when a distance between the first subject and the second subject is less than a predetermined distance.
8. 8. The image processing device according to claim 1, wherein the first object in the moving image is a target object to be tracked, and the second object is a non-target object to be tracked.
9. The image processing device according to claim 8 , further comprising a control for determining whether or not to identify and display the first subject to be tracked, depending on a result of the matching.
10. 10. The image processing apparatus according to claim 1, wherein the part is a joint part of a human body.
11. The image processing device according to any one of claims 1 to 10, characterized in that the detection means estimates and detects a plurality of parts of the first subject and a plurality of parts of the second subject using a trained model trained by machine learning.
12. An imaging element; An image processing device according to any one of claims 1 to 11; An imaging device comprising:
13. detecting a plurality of regions of a first subject from the first image and a plurality of regions of a second subject from the second image; a step of matching the first subject with the second subject based on a vector difference as posture information between a posture based on a plurality of parts of the first subject detected in the detecting step and a posture based on a plurality of parts of the second subject; An image processing method comprising:
14. 12. A program for causing a computer to execute each of the means of the image processing apparatus according to claim 1.
Citation Information
Patent Citations
Imaging device with chasing function
JP2008109552A
Person identification device and person identification method
JP2011034133A
Face detection device, method, and program
JP2015075916A
Image processor and image processing method
JP2016081251A
