Image processing device, and image processing method
By generating positive and negative template images through a hierarchical neural network, the method enhances object tracking accuracy in dynamic environments by distinguishing between tracking and non-tracking targets, addressing shape changes in objects.
Patent Information
- Application Number
- JP2023059090
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing tracking technologies fail to accurately track objects when the object's shape changes, leading to redetection failures and inaccurate tracking, especially in dynamic environments like handheld cameras where the background is not fixed.
The method involves creating positive and negative template images using a hierarchical neural network to identify and differentiate tracking targets from non-tracking targets, enhancing the accuracy of object tracking by using feature maps to distinguish between them.
This approach enables precise tracking of objects even when their appearance changes, reducing erroneous tracking and improving overall tracking precision.
Smart Images

Figure 2024146287000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to tracking technology. [Background technology]
[0002] When tracking a specific subject in an image, image information that represents the subject's features is created before tracking, and tracking is performed by matching with the image information. Such techniques include those that use image brightness and color information, those that use template matching, and those that use Convolutional Neural Network (CNN). When template matching is used, a template image that represents the subject becomes the image information for tracking, and when CNN is used, the intermediate layer output of the subject region (hereinafter referred to as CNN features) becomes the image information for tracking.
[0003] In this way, image information for tracking needs to hold the necessary information appropriately, and obtaining appropriate image information is essential to improve the accuracy of tracking technology. Here, the information necessary for tracking is information required to acquire the area of the subject to be tracked, and is acquired as a template image based on information of the initial frame in which the subject to be tracked is captured. During tracking, the information acquired as the template image is used to estimate the area of the subject to be tracked.
[0004] In the invention disclosed in Patent Document 1, when an object image other than the tracking target is included in the range for searching for the tracking target image in the video frame captured by the surveillance camera, the area of the object image other than the tracking target is masked. This makes it possible to suppress erroneous tracking even if an object similar to the tracking target is present in the area of the object image other than the tracking target. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Patent Publication No. 2021-16134 Summary of the Invention [Problem to be solved by the invention]
[0006] When the shape of the tracking target changes during tracking of a specific object, causing the tracking target object to disappear, redetection of the tracking candidate area may fail, making it impossible to track the specific object. In the invention disclosed in Patent Document 1, when object detection is performed on an initial frame image, a mask is applied to an area that is not a tracking target to which the inference map responds. The masked area is not subjected to feature extraction as being outside the tracking candidate area. Therefore, in the case of a fixed scene such as a surveillance camera, this is effective because the non-tracking target object in the background does not change, but is not effective in the case of a handheld camera where the background changes. In the present invention, a technology is provided that enables tracking of a tracking target with higher accuracy. [Means for solving the problem]
[0007] One aspect of the present invention is characterized in that it includes a first acquisition means for acquiring image information corresponding to a first candidate among multiple candidates for a tracking target in an image as a positive template image based on a feature map obtained by inputting the first candidate into a hierarchical neural network, a second acquisition means for acquiring image information corresponding to a second candidate among the multiple candidates as a negative template image based on a feature map obtained by inputting the second candidate into the hierarchical neural network, and an identification means for identifying a tracking target in the image based on the map obtained by inputting the image into the hierarchical neural network, the positive template image, and the acquired negative template image. Effect of the Invention
[0008] According to the present invention, it is possible to track a tracking target with higher accuracy. [Brief description of the drawings]
[0009] [Figure 1] FIG. 2 is a block diagram showing an example of the functional configuration of an image processing apparatus. [Diagram 2] 1A is a flowchart of processing performed by an image processing device for a first frame image; FIG. 1B is a flowchart of processing performed by an image processing device for images of the second frame and subsequent frames (subsequent images); FIG. 1C is a flowchart showing details of processing in step S210; FIG. 1D is a flowchart showing an example of processing applicable to step S213; and FIG. 1E is a flowchart showing details of processing in step S240. [Diagram 3] 10A and 10B are diagrams showing an example of a method for acquiring a positive template image and a negative template image. [Figure 4] 10 is a flowchart showing details of the process of step S210. [Diagram 5] 10 is a flowchart showing details of the process of step S210. [Figure 6] 10 is a flowchart showing details of the process of step S250. [Figure 7] FIG. 2 is a block diagram showing an example of the hardware configuration of a computer apparatus. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, the embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.
[0011] [First embodiment] An example of the functional configuration of an image processing device according to this embodiment is shown in the block diagram of Fig. 1. The image processing device according to this embodiment acquires a positive template image and a negative template image from an image of a first frame, and identifies a tracking target for each frame from the second frame onward using the positive template image and the acquired negative template image.
[0012] In the following description, the term "first frame" is not limited to "the first frame to be captured." For example, in the case of a moving image, in this embodiment, the "first frame" may be the first frame in the moving image, or may be a frame in the middle of the moving image. That is, in this embodiment, when a group of frames in a moving image or a group of still images is taken as a unit, the first frame in the unit is taken as the "first frame." In this embodiment, the "second frame and onward" refers to the frame next to the first frame in the unit and onward. In this embodiment, the tracking target is not limited to a specific subject, and may be an object such as a person, an animal, or an insect.
[0013] First, the process performed by the image processing device for the image of the first frame will be described with reference to the flowchart of FIG. 2(a). In step S200, the image acquisition unit 100 acquires the image of the first frame (initial image). The method of acquiring the image is not limited to a specific acquisition method. For example, the image acquisition unit 100 may acquire an initial image captured by an imaging device from the imaging device. The imaging device may be a device built into the image processing device, or may be an external device connected to the image processing device. The image acquisition unit 100 may also acquire an initial image stored in a memory accessible by the image processing device (for example, a hard disk, a flash memory, or various optical media). The image acquisition unit 100 may also acquire an initial image held in an external device such as a server connected to the image processing device via a network such as a LAN or the Internet from the external device. The image acquisition unit 100 then stores the acquired initial image in the image storage unit 101.
[0014] In step S205, the acquisition unit 103 acquires parameters (parameters acquired in advance by a technique such as machine learning) of a "detector for detecting a tracking target" stored in the storage unit 102. For example, a detector capable of detecting a specific object, such as a human detector or an animal detector, or an objectness detector capable of detecting object-likeness can be applied to the "detector for detecting a tracking target".
[0015] Then, the detection unit 104 uses the "detector for detecting the tracking target" in which the parameters are set to detect multiple candidates of the tracking target from the initial image stored in the image storage unit 101 in step S200. Note that a method for detecting multiple candidates of the tracking target from an image is well known, and any method may be used in this embodiment.
[0016] Then, the determination unit 106 determines, as the tracking target, a subject corresponding to one of the multiple tracking target candidates detected by the detection unit 104. The method of determining the tracking target by the determination unit 106 is not limited to a specific method.
[0017] For example, the determination unit 106 may display a frame superimposed on the position of each candidate on the initial image, and identify one candidate selected by the user in response to a user operation via a user interface such as a keyboard, mouse, or touch panel screen as the tracking target.
[0018] The determining unit 106 may also determine, as the tracking target, a candidate that is closest to the center position of the initial image among multiple candidates for the tracking target. The determining unit 106 may also specify, as the tracking target, a subject that corresponds to an area having the maximum score (likelihood) in the likelihood map output by the detector.
[0019] In step S210, the acquisition unit 108 acquires a positive template image and a negative template image corresponding to the tracking target from the initial image as initial templates. Then, the acquisition unit 108 stores the acquired positive template image and negative template image in the storage unit 109. Details of the process in step S210 will be described with reference to the flowchart in FIG. 2(c).
[0020] In step S211, the acquisition unit 108 inputs the tracking target determined by the determination unit 106 (image information within an image area corresponding to the tracking target in the initial image) to a hierarchical neural network and acquires a feature map by performing arithmetic processing of the hierarchical neural network. The acquisition unit 108 then acquires image information within an area in the feature map that is composed of a corresponding area corresponding to the tracking target and its surrounding area as a positive template image, and stores (registers) the acquired positive template image in the storage unit 109.
[0021] In step S213, the acquisition unit 108 sets some or all of the candidates that are not determined as the tracking target by the determination unit 106 among the multiple candidates of the tracking target detected by the detection unit 104 as non-tracking targets. For example, when the acquisition unit 108 sets the region with a score of 100 in the likelihood map output by the above detector as the tracking target region, it sets the region with a score of 50 to 80 as the non-tracking target region. Then, the acquisition unit 108 inputs the non-tracking target (image information in an image region corresponding to the non-tracking target in the initial image) to a hierarchical neural network and acquires a feature map by performing arithmetic processing of the hierarchical neural network. Then, the acquisition unit 108 acquires image information in a region consisting of a corresponding region corresponding to the non-tracking target and its surrounding region in the feature map as a negative template image, and stores (registers) the acquired negative template image in the storage unit 109.
[0022] An example of processing that can be applied to step S213 will be described with reference to the flowchart in Fig. 2(d). In step S295, the acquisition unit 108 specifies, as a target region, a region in the likelihood map output by the detector whose score is equal to or greater than a threshold.
[0023] In step S296, acquisition unit 108 selects an unselected target region from among the target regions identified in step S295 as a selection target region, and determines whether the score of the selection target region is within a specified range (50 to 80 in the above example). If the result of this determination is that the score of the selection target region is within the specified range, the process proceeds to step S297, and if the score of the selection target region is not within the specified range, the process proceeds to step S298.
[0024] In step S297, the acquisition unit 108 sets the selected target region as a region of a non-tracking target. The acquisition unit 108 then inputs the non-tracking target (image information in an image region corresponding to the non-tracking target in the initial image) to a hierarchical neural network and acquires a feature map by performing arithmetic processing of the hierarchical neural network. The acquisition unit 108 then acquires image information in a region in the feature map that is composed of a corresponding region corresponding to the non-tracking target and its surrounding region as a negative template image, and stores (registers) the acquired negative template image in the storage unit 109.
[0025] In step S298, the acquisition unit 108 judges whether or not all of the target regions identified in step S295 have been selected as selection target regions. If the result of this judgment is that all of the target regions identified in step S295 have been selected as selection target regions, the process according to the flowchart in Fig. 2(d) ends. On the other hand, if any of the target regions identified in step S295 remain to be selected as selection target regions, the process proceeds to step S296.
[0026] An example of a method for acquiring a positive template image and a negative template image will be described with reference to FIG. 3. Assume that an initial image 300 including a person 301 and a cloud 302 as shown in FIG. 3(a) is input to the detector, and a likelihood map 310 as shown in FIG. 3(b) is obtained. Here, the likelihood map 310 is a two-dimensional map, and an element at each position in the likelihood map 310 has information on the probability that a detection target object exists at that position (probability of existence, which is one-dimensional information) and size. The likelihood map 310 is a likelihood map obtained from the detector when the detection target object is a person 301, and includes three regions with scores equal to or greater than a threshold value (50): a region 311 with a score of 100, a region 312 with a score of 70, and a region 313 with a score of 60. The region 311 corresponds to the person 301, and the region 312 corresponds to the cloud 302.
[0027] In this case, as shown in Fig. 3(c), the image region 321 on the initial image 300 corresponding to the region 311 with the maximum score becomes the image region of the tracking target. Then, image information within the image region of the tracking target is input to a hierarchical neural network and arithmetic processing of the hierarchical neural network is performed to obtain a feature map. Then, image information within a region in the feature map consisting of the corresponding region corresponding to the tracking target and its surrounding regions is obtained as a positive template image.
[0028] On the other hand, if the area with the score within the specified range is area 312, 313, the area is determined to be the area of the non-tracking target. Then, image information in the image area of the non-tracking target is input to a hierarchical neural network, and a feature map is obtained by performing arithmetic processing of the hierarchical neural network. Then, image information in an area in the feature map consisting of the corresponding area corresponding to the non-tracking target and its surrounding area is obtained as a negative template image.
[0029] Next, the process performed by the image processing device for the images of the second and subsequent frames (subsequent images) will be described with reference to the flowchart in Fig. 2(b). In step S230, the image acquisition unit 100 acquires the subsequent images and stores the acquired subsequent images in the image storage unit 101. The method of acquiring the subsequent images may be the same as the method of acquiring the initial image described above, or may be a method different from the method of acquiring the initial image described above.
[0030] In step S240, a process is performed to identify the tracking target from the subsequent image stored in the image storage unit 101 in step S230. Details of the process in step S240 will be described with reference to the flowchart in FIG.
[0031] In step S221, the tracking calculation unit 110 acquires the subsequent image stored in the image storage unit 101, inputs the subsequent image to a hierarchical neural network (e.g., CNN) trained for tracking, and acquires a correlation calculation map by performing calculation processing of the hierarchical neural network. The tracking calculation unit 110 also acquires a positive template image stored in the storage unit 109. Then, the tracking calculation unit 110 performs correlation calculation with the positive template image for each position on the correlation calculation map, thereby determining the degree of match (degree of match) with the positive template image for each position on the correlation calculation map.
[0032] In step S222, the tracking calculation unit 110 determines whether the number of candidate areas is more than one, by determining whether the area on the correlation calculation map where the degree of matching with the positive template image is equal to or greater than a threshold value is a candidate area. The definition of the candidate area is not limited to a specific definition, and for example, the top N areas (N is an integer of 2 or more) in descending order of the degree of matching may be determined as the candidate areas.
[0033] If the result of this determination is that there are multiple candidate regions, the process proceeds to step S223, and if the number of candidate regions is zero or one, the process proceeds to step S224. In step S223, the tracking calculation unit 110 performs a correlation calculation for each candidate region between the candidate region and each negative template image stored in the storage unit 109, and determines the degree of match (matching degree) between the candidate region and the negative template image.
[0034] When the process proceeds from step S223 to step S224, in step S224, the tracking calculation unit 110 selects the candidate area that has the smallest degree of matching with the negative template image as the selected candidate area, and sets the subject in the image area corresponding to the selected candidate area in the subsequent image as the tracking target.
[0035] When the process proceeds from step S222 to step S224, the tracking calculation unit 110 outputs information indicating that the number of candidate areas is 0. When the number of candidate areas is one, the tracking calculation unit 110 selects the single candidate area as a selected candidate area, and sets the subject within the image area in the subsequent image corresponding to the selected candidate area as the tracking target.
[0036] Then, the output unit 111 outputs information related to the tracking target identified by the tracking calculation unit 110. Note that the output destination of the information related to the tracking target and the content of the information are not limited to a specific output destination and specific content.
[0037] For example, the output unit 111 may output information (the positions of the upper left corner and the lower right corner of the image area) that defines the image area on the subsequent image of the tracking target identified by the tracking calculation unit 110. Furthermore, the output unit 111 may add a frame to the image area of the tracking target in the subsequent image and output the frame to a display unit (not shown).
[0038] In step S250, the tracking calculation unit 110 stores (registers) in the storage unit 109, as negative template images, the candidate areas that have not been selected as selected candidate areas from among the above candidate areas.
[0039] The tracking calculation unit 110 may control the number of negative template images stored in the storage unit 109. For example, when the number of negative template images stored in the storage unit 109 exceeds a specified number, the tracking calculation unit 110 may delete the negative template images in ascending order of storage date and time.
[0040] In this way, according to the present embodiment, an image of a similar subject similar to the tracking target is generated and registered as a negative template image. Then, when multiple candidates for the tracking target are detected from the image, the positive template image can be used to eliminate the similar subject from the multiple candidates, so that the tracking target can be identified with high accuracy. This makes it possible to avoid erroneous tracking of a similar subject when the appearance of the tracking target changes.
[0041] [Second embodiment] In each of the following embodiments, the differences from the first embodiment will be described, and unless otherwise specified below, it is assumed that the embodiments are the same as the first embodiment. In this embodiment, the positive template image is enhanced and then registered.
[0042] Details of the process of step S210 according to this embodiment will be described with reference to the flowchart of Fig. 4. In Fig. 4, the same process steps as those shown in Fig. 2(c) are given the same step numbers, and descriptions of those process steps will be omitted.
[0043] In step S214, the acquisition unit 108 enhances the positive template image registered in step S211, and then stores (registers) it again in the storage unit 109. The method for enhancing the positive template image is not limited to a specific method.
[0044] For example, the positive template image may be enhanced by increasing the value of a region in the positive template image designated by a user operation by a specified amount.
[0045] Also, for example, if the features of the positive template image P are P(α) and the features of the negative template image N are N(β), the positive template image may be enhanced by adding (P(α)-N(β)) to P(α).
[0046] Furthermore, the region to be emphasized in the positive template image may be determined by the following process. Let φ(z) be the feature map, φ(p) be the feature of the positive template image, and φ(n) be the feature of the negative template image. Then, among the regions where the correlation value is equal to or greater than a threshold in the calculation result of φ(p)*φ(z) (* is the correlation calculation operator), the region where the correlation value is equal to or greater than a threshold in the calculation result of (φ(p)-φ(n))*φ(z) is determined to be the region to be emphasized.
[0047] This embodiment differs from the first embodiment in that the "positive template image enhanced in step S214" is used in the subsequent processes instead of the positive template image.
[0048] As described above, according to this embodiment, the positive template image acquired by the processing according to the first embodiment is used with emphasis, so that it is possible to reduce erroneous detection of a subject similar to the negative template image, thereby obtaining highly accurate tracking results.
[0049] [Third embodiment] In this embodiment, an image conversion method that increases the characteristic difference between the positive template image and the negative template image is specified, and the positive template image is converted according to the specified image conversion method before being registered. The negative template image is also converted according to the specified image conversion method before being registered.
[0050] Details of the process of step S210 according to this embodiment will be described with reference to the flowchart of Fig. 5. In Fig. 5, the same process steps as those shown in Fig. 2(c) are given the same step numbers, and descriptions of those process steps will be omitted.
[0051] In step S215, the acquisition unit 108 generates a converted image by performing a plurality of image conversions on the initial image, such as a first converted image by performing a first image conversion on the initial image, a second converted image by performing a second image conversion on the initial image, etc. Image conversions include conversions that change luminance, conversions that change color temperature, conversions that impart blur or shake, and the like.
[0052] The acquisition unit 108 then acquires a positive template image (the i-th positive template image) and a negative template image (the i-th negative template image) from the i-th converted image (i=1, 2, ...) in the same manner as in the first embodiment. The acquisition unit 108 then specifies, from among the multiple image conversions, an image conversion that maximizes the difference between the positive template image and the negative template image.
[0053] For example, the acquisition unit 108 acquires a feature map by inputting the initial image to a hierarchical neural network (for example, CNN) and performing arithmetic processing of the hierarchical neural network.
[0054] The acquiring unit 108 then performs a correlation calculation between the feature map and the ith positive template image to generate a map P that represents a correlation value between each position of the feature map and the ith positive template image. Similarly, the acquiring unit 108 performs a correlation calculation between the feature map and the ith negative template image to generate a map N that represents a correlation value between each position of the feature map and the ith negative template image.
[0055] Then, the acquisition unit 108 identifies an image transformation corresponding to a pair of maps P and N that satisfies the condition that "the sum of the absolute value of the difference in correlation value between an area with a high correlation value (e.g., the top 10% of correlation values) in map P and a corresponding area in map N corresponding to the area, and the absolute value of the difference in correlation value between an area with a high correlation value (e.g., the top 10% of correlation values) in map N and a corresponding area in map P corresponding to the area, is maximum."
[0056] In step S216, the acquisition unit 108 converts the positive template image and the negative template image stored in the storage unit 109 according to the image conversion specified in step S215, and then stores (registers) them in the storage unit 109 again.
[0057] In the subsequent processes, when a negative template image is stored in the storage unit 109, the negative template image is also converted according to the image conversion specified in step S215 before being stored in the storage unit 109.
[0058] As described above, according to this embodiment, the accuracy of separating the positive template image and the negative template image is improved, making it possible to prevent failures such as erroneous tracking.
[0059] [Fourth embodiment] In this embodiment, negative template images similar to the positive template image are discarded and not registered. Details of the process of step S250 according to this embodiment will be described with reference to the flowchart in Fig. 6. Since the process according to the flowchart in Fig. 6 is for one negative template image, the process according to the flowchart in Fig. 6 is actually performed for each negative template image.
[0060] In step S281, the tracking calculation unit 110 obtains a correlation score between the negative template image and the positive template image, and judges whether the correlation score is equal to or less than a threshold value. If the result of this judgment is that the correlation score is equal to or less than the threshold value, the process proceeds to step S282. If the correlation score is greater than the threshold value, the tracking calculation unit 110 discards the negative template image, and the process according to the flowchart in FIG. 6 ends. In step S282, the tracking calculation unit 110 registers the negative template image in the storage unit 109.
[0061] A negative template image having a correlation score with the positive template image equal to or greater than a threshold value is not registered in this embodiment because it may be a template image of a subject classified in the same category as the positive template image. In this embodiment, a subject classified in the same category is, for example, a dog of the same breed and coat color when the subject is a dog.
[0062] Note that the feature value of the negative template image having a correlation score equal to or greater than a threshold may be reduced before being registered in the storage unit 109. For example, the tracking calculation unit 110 identifies an area in the negative template image that is similar to the positive template image. For example, the tracking calculation unit 110 identifies an area in the negative template image in which the correlation score with a portion of the area in the positive template image is equal to or greater than a threshold. Then, the tracking calculation unit 110 may subtract a prescribed value from the feature value in the identified area, may multiply the feature value by a real value between 0 and 1, or may set the feature value to 0.
[0063] In this way, according to this embodiment, among subjects (such as insects, fish, and animals) that exist in groups, it is possible to exclude subjects that are similar but not the tracked object from the negative template image. This makes it possible to track the tracked object without being detected as a negative template image even if the tracked object changes in appearance.
[0064] [Fifth embodiment] Each functional unit shown in Fig. 1 may be implemented by hardware, or each functional unit except for the image storage unit 101 and the storage units 102 and 109 may be implemented by software (computer program). In the latter case, a computer device capable of executing the computer program is applicable to the image processing device according to each of the above embodiments. An example of the hardware configuration of such a computer device will be described with reference to the block diagram of Fig. 7.
[0065] The CPU 701 executes various processes using computer programs and data stored in the RAM 702. As a result, the CPU 701 controls the operation of the entire computer device, and executes or controls the various processes described as the processes performed by the image processing device.
[0066] The RAM 702 has an area for storing computer programs and data loaded from the ROM 703 or storage device 706, and an area for storing computer programs and data received from an external device via the I / F 707. The RAM 702 also has a work area used when the CPU 701 executes various processes. In this way, the RAM 702 can provide various areas as needed.
[0067] The ROM 703 stores setting data for the computer device, computer programs and data related to the startup of the computer device, computer programs and data related to the basic operation of the computer device, and the like.
[0068] The operation unit 704 is a user interface such as a keyboard, a mouse, or a touch panel, and the user can operate it to input various instructions to the CPU 701. For example, the above user operations may be performed by the user operating the operation unit 704.
[0069] The display unit 705 has a liquid crystal screen or a touch panel screen, and can display the results of processing by the CPU 701 as images, characters, etc. For example, the display unit 705 may display the various types of information described above as being displayed.
[0070] The storage device 706 is a non-volatile memory device such as a hard disk, etc. The storage device 706 stores an OS (operating system), computer programs and data for causing the CPU 701 to execute or control the various processes described as the processes performed by the image processing device, and the like.
[0071] The computer programs and data stored in the storage device 706 are loaded into the RAM 702 as appropriate under the control of the CPU 701, and are processed by the CPU 701. Note that the image storage unit 101, storage unit 102, and storage unit 109 may be implemented by the RAM 702 and storage device 706.
[0072] The I / F 707 is a communication interface for performing data communication with an external device via a wired and / or wireless network such as a LAN or the Internet. The CPU 701, RAM 702, ROM 703, operation unit 704, display unit 705, storage device 706, and I / F 707 are all connected to a system bus 708. Note that the hardware configuration of a computer device applicable to the image processing device is not limited to the configuration shown in FIG. 7, and can be modified / changed as appropriate.
[0073] In addition, the numerical values, processing timing, processing order, processing subject, data (information) acquisition method / destination / source / storage location, etc. used in each of the above embodiments are given as examples to provide a concrete explanation, and are not intended to be limited to such examples.
[0074] In addition, a part or all of the embodiments described above may be used in appropriate combination. In addition, a part or all of the embodiments described above may be used selectively.
[0075] (Other embodiments) The present disclosure can also be realized by a process in which a program for implementing one or more functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. It can also be realized by a circuit (e.g., ASIC) for implementing one or more functions.
[0076] The invention of this specification includes the following image processing device, image processing method, and computer program. (Item 1) a first acquisition means for acquiring image information corresponding to a first candidate as a positive template image based on a feature map obtained by inputting a first candidate among a plurality of candidates of a tracking target in an image into a hierarchical neural network; a second acquisition means for acquiring image information corresponding to the second candidate as a negative template image based on a feature map obtained by inputting a second candidate among the plurality of candidates into a hierarchical neural network; a map obtained by inputting an image into a hierarchical neural network, a means for identifying a target to be tracked in the image based on the positive template image and the previously acquired negative template image; An image processing device comprising: (Item 2) 2. The image processing device according to item 1, wherein the first candidate is a candidate selected from the plurality of candidates in response to a user operation. (Item 3) 2. The image processing device according to item 1, wherein the first candidate is a candidate that is closest to a center position of the image among the plurality of candidates. (Item 4) 2. The image processing device according to item 1, wherein the first candidate is a candidate with the highest likelihood obtained by a detector that detects the plurality of candidates from the image. (Item 5) The identification means is The image processing device according to any one of items 1 to 4, characterized in that one of a plurality of candidates for a tracking target obtained from the map based on the positive template image is identified based on the acquired negative template image. (Item 6) moreover, The image processing device according to any one of items 1 to 5, further comprising a means for acquiring, as a negative template image, a candidate that is not identified by the identification means among a plurality of candidates of a tracking target obtained from the map based on the positive template image. (Item 7) 7. The image processing device according to any one of items 1 to 6, wherein the first acquisition means enhances the positive template image based on the negative template image. (Item 8) moreover, a determination means for generating, for each of a plurality of image transformations, a first map obtained by performing a correlation calculation between a positive template image of a transformed image obtained by transforming an image according to the image transformation and a feature map obtained by inputting the image into a hierarchical neural network, and a second map obtained by performing a correlation calculation between a negative template image of the transformed image and the feature map, and determining one of the plurality of image transformations based on the first map and the second map; The identification means identifies a tracking target in the image based on the map, a positive template image obtained by converting the positive template image obtained by the first acquisition means according to the image conversion determined by the determination means, and a negative template image obtained by converting an already acquired negative template image according to the image conversion determined by the determination means. 8. The image processing device according to any one of items 1 to 7, (Item 9) moreover, 9. The image processing device according to any one of items 1 to 8, further comprising a means for discarding a negative template image having a correlation score with the positive template image equal to or greater than a threshold value. (Item 10) moreover, 9. The image processing device according to any one of items 1 to 8, characterized in that a feature value in an area in the negative template image where a correlation score with a portion of an area in the positive template image is equal to or greater than a threshold value is reduced. (Item 11) An image processing method performed by an image processing device, comprising: a first acquisition step in which a first acquisition means of the image processing device acquires image information corresponding to a first candidate as a positive template image based on a feature map obtained by inputting a first candidate among a plurality of candidates of a tracking target in an image to a hierarchical neural network; a second acquisition step in which a second acquisition means of the image processing device acquires image information corresponding to the second candidate as a negative template image based on a feature map obtained by inputting a second candidate among the plurality of candidates into a hierarchical neural network; a specifying step in which a specifying means of the image processing device specifies a tracking target in the image based on a map obtained by inputting the image into a hierarchical neural network, the positive template image, and the acquired negative template image; An image processing method comprising: (Item 12) A computer program for causing a computer to function as each of the means of the image processing device according to any one of items 1 to 10.
[0077] The invention is not limited to the above-described embodiments, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, the following claims are appended to apprise the public of the scope of the invention. [Explanation of symbols]
[0078] 100: Image acquisition unit 101: Image storage unit 102: Storage unit 103: Acquisition unit 104: Detection unit 106: Determination unit 108: Acquisition unit 109: Storage unit 110: Tracking calculation unit 111: Output unit
Claims
1. a first acquisition means for acquiring image information corresponding to a first candidate as a positive template image based on a feature map obtained by inputting a first candidate among a plurality of candidates of a tracking target in an image into a hierarchical neural network; a second acquisition means for acquiring image information corresponding to the second candidate as a negative template image based on a feature map obtained by inputting a second candidate among the plurality of candidates into a hierarchical neural network; a map obtained by inputting an image into a hierarchical neural network, a means for identifying a target to be tracked in the image based on the positive template image and the previously acquired negative template image; An image processing device comprising:
2. The image processing apparatus according to claim 1 , wherein the first candidate is a candidate selected from the plurality of candidates in response to a user operation.
3. The image processing apparatus according to claim 1 , wherein the first candidate is a candidate that is closest to a center position of the image among the plurality of candidates.
4. The image processing apparatus according to claim 1 , wherein the first candidate is a candidate having the highest likelihood obtained by a detector that detects the plurality of candidates from the image.
5. The identification means is The image processing device according to claim 1 , wherein one of a plurality of candidates for the tracking target obtained from the map based on the positive template image is specified based on the acquired negative template image.
6. moreover, 2. The image processing device according to claim 1, further comprising: a means for acquiring, as a negative template image, a candidate that has not been identified by the identification means, among a plurality of candidates for the tracking target obtained from the map based on the positive template image.
7. The image processing apparatus according to claim 1 , wherein the first acquisition means enhances the positive template image based on the negative template image.
8. moreover, a determining means for generating, for each of a plurality of image transformations, a first map obtained by performing a correlation calculation between a positive template image of a transformed image obtained by transforming an image according to the image transformation and a feature map obtained by inputting the image into a hierarchical neural network, and a second map obtained by performing a correlation calculation between a negative template image of the transformed image and the feature map, and determining one of the plurality of image transformations based on the first map and the second map; The identification means identifies a tracking target in the image based on the map, a positive template image obtained by converting the positive template image obtained by the first acquisition means according to the image conversion determined by the determination means, and a negative template image obtained by converting an already acquired negative template image according to the image conversion determined by the determination means.
2. The image processing device according to claim 1,
9. moreover, 2. The image processing apparatus according to claim 1, further comprising a means for discarding a negative template image having a correlation score with the positive template image equal to or greater than a threshold value.
10. moreover, The image processing apparatus according to claim 1 , further comprising: a step of reducing a value of a feature in an area of the negative template image where a correlation score with a portion of the positive template image is equal to or greater than a threshold value;
11. An image processing method performed by an image processing device, comprising: a first acquisition step in which a first acquisition means of the image processing device acquires image information corresponding to a first candidate as a positive template image based on a feature map obtained by inputting a first candidate among a plurality of candidates of a tracking target in an image to a hierarchical neural network; a second acquisition step in which a second acquisition means of the image processing device acquires image information corresponding to the second candidate as a negative template image based on a feature map obtained by inputting a second candidate among the plurality of candidates into a hierarchical neural network; a specifying step in which a specifying means of the image processing device specifies a tracking target in the image based on a map obtained by inputting the image into a hierarchical neural network, the positive template image, and the acquired negative template image; An image processing method comprising:
12. A computer program for causing a computer to function as each of the means of the image processing apparatus according to any one of claims 1 to 10.
Citation Information
Patent Citations
Monitor camera, and information processor
JP2021016134A
