Object tracking program, object tracking device and method thereof
The object tracking system uses neural networks for detection and pattern matching for tracking to address the challenge of achieving both accuracy and speed in object detection, ensuring efficient and accurate tracking.
Patent Information
- Application Number
- JP2023046166
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-10-04
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing object detection techniques using neural networks face challenges in achieving both high detection accuracy and speed, particularly when tracking objects continuously.
An object tracking system that combines a first detection method using neural networks for high accuracy and a second detection method using pattern matching for tracking, allowing for efficient and accurate object tracking.
The system achieves both high detection accuracy and speed by leveraging the strengths of neural networks for detection and pattern matching for tracking, enabling effective object tracking in real-time applications.
Smart Images

Figure 2024135469000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an object tracking system that detects and tracks an object from an image. [Background technology]
[0002] Neural networks are used in technology to detect objects such as human faces from images. Detection technology using neural networks can perform object recognition processing with high accuracy by learning image data. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Application Publication No. 6-255388 Summary of the Invention [Problem to be solved by the invention]
[0004] As described above, object detection technology using a convolutional neural network (CNN) or a deep neural network (DNN), which are examples of neural networks, is capable of highly accurate detection. However, it requires a large amount of calculation and a long time until detection. For this reason, technology that can achieve both detection accuracy and detection speed is required. Achieving both is essential especially when it is required to track an object by continuously detecting it.
[0005] The present disclosure has been made in consideration of the above circumstances, and aims to provide an object tracking program, an object tracking device, and a method thereof that can suitably track an object. [Means for solving the problem]
[0006] In order to solve the above-mentioned problems, the object tracking program of the present disclosure causes a computer to execute an image acquisition means for acquiring a captured image, a detection means for detecting a detection object from the captured image using a first detection method capable of detecting the detection object contained in the captured image, and a tracking means for tracking the tracked object within the captured image by repeatedly detecting the detection object detected by the detection means as a tracked object from the captured image using a second detection method different from the first detection method capable of detecting the detection object contained in the captured image.
[0007] In addition, the object tracking device disclosed herein includes an image acquisition unit that acquires a captured image, a detection unit that detects the detection object from the captured image using a first detection method capable of detecting the detection object contained in the captured image, and a tracking unit that tracks the tracked object within the captured image by repeatedly detecting the detection object detected by the detection unit as a tracked object from the captured image using a second detection method different from the first detection method capable of detecting the detection object contained in the captured image.
[0008] In addition, the object tracking method disclosed herein includes an image acquisition step of acquiring a captured image, a detection step of detecting the detection object from the captured image using a first detection method capable of detecting the detection object contained in the captured image, and a tracking step of tracking the tracked object within the captured image by repeatedly detecting the detection object detected in the detection step as a tracked object from the captured image using a second detection method different from the first detection method capable of detecting the detection object contained in the captured image. Effect of the Invention
[0009] The object tracking program, object tracking device, and method disclosed herein can suitably track an object. [Brief description of the drawings]
[0010] [Figure 1]FIG. 4 is a diagram showing a HUD that executes a target tracking program in the embodiment. [Diagram 2] 6 is a flowchart illustrating an object tracking process executed by a control unit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] An embodiment of an object tracking program, an object tracking device, and a method thereof disclosed herein will be described with reference to the accompanying drawings. The object tracking program, the object tracking device, and a method thereof disclosed herein can be applied to a face detection (tracking) system mounted on a vehicle such as an automobile or a motorcycle, a ship, an agricultural machine, or a construction machine. In this embodiment, an example in which the object tracking program, the object tracking device, and the method thereof are mounted on a head-up display (HUD) and used to detect a face will be described.
[0012] FIG. 1 is a diagram showing a HUD 1 that executes a target tracking program in this embodiment.
[0013] In the following description, "front", "rear", "upper" and "lower" follow the definitions of "Fr.", "Re.", "To." and "Bo." in Fig. 1. "Left" and "right" (horizontal direction) are directions perpendicular to the front-to-back and up-down directions (vertical directions).
[0014] The HUD 1 is mounted in an instrument panel in front of a steering wheel 5 of a vehicle 2. The HUD 1 has a display 11, a plane mirror 12, a concave mirror 13, a photographing unit 15, a housing 16, and a control unit 30.
[0015] The display 11 displays an image on a rectangular display surface, and emits display light L showing the image toward the plane mirror 12. The display 11 is, for example, a TFT (Thin Film Transistor) type liquid crystal display or an organic EL (Electroluminescence) display 11. The display 11 may include a projector and a screen that forms the display surface.
[0016] The plane mirror 12 reflects the display light L emitted by the display 11 toward the concave mirror 13. The concave mirror 13 further reflects the display light L reflected by the plane mirror 12 and emits it toward the windshield 3. The concave mirror 13 functions as a magnifying mirror, and magnifies the image displayed on the display 11 and reflects it toward the windshield 3 (projection member). The virtual image V visually recognized by the driver 4 is a magnified image of the image displayed on the display 11.
[0017] The display light L is irradiated onto the windshield 3. The driver 4 (including viewers and passengers) of the vehicle 2 visually recognizes the reflected light of the display light L on the windshield 3 as a virtual image V at a predetermined position in front of the vehicle 2. That is, the image is displayed in a virtual area that overlaps with the actual scene visually recognized by the driver 4 through the windshield 3 (in front of the windshield 3). The actual scene can also be the background of the image.
[0018] The photographing unit 15 has a camera and a near-infrared light source. The camera has an infrared image sensor. The camera detects near-infrared rays IR reflected by the face of the driver 4 in the photographing area, and mainly photographs an image (video) of the face of the driver 4. The near-infrared light source emits near-infrared rays IR, which are reflected by the windshield 3 and mainly irradiate the face of the driver 4. The near-infrared light source emits light in synchronization with the photographing timing of the camera. Note that the wavelength detected by the camera is not limited to near-infrared rays, and may be shortwave infrared rays. The camera may also detect visible light to photograph an image. The photographing unit 15 stores the photographed image in the memory unit 33.
[0019] The plane mirror 12 and the concave mirror 13 are fixed to the inside of the housing 16 via mounting members. The display 11 and the control board on which the control unit 30 is mounted are also fixed to the housing 16 via mounting members.
[0020] The control unit 30 is a computer having a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), etc., and executes a predetermined process according to a program written in the ROM. The control unit 30 controls the display 11 and the photographing unit 15 based on information acquired from a vehicle ECU 41 of the vehicle 2 (described later) and the like, and performs arithmetic processing based on information acquired from the photographing unit 15 and the like.
[0021] The control unit 30 has an image generation unit 31, a display control unit 32, a storage unit 33, an image acquisition unit 34 (image acquisition means), a detection unit 35 (detection means), and a tracking unit 36 (tracking means).
[0022] The image generating unit 31 reads out necessary information from the storage unit 33, executes a drawing process for an image to be displayed on the display device 11, and generates the image.
[0023] The display control unit 32 performs control for displaying the image generated by the image generation unit 31 on the display 11. The display control unit 32 calculates the viewpoint position and the like from the face of the driver 4 detected by the detection unit 35 and the tracking unit 36, for example, and determines the display position of the virtual image V.
[0024] The storage unit 33 is a RAM (Random Access Memory), a ROM (Read Only Memory), a non-volatile memory, etc., and stores required programs and data. In this embodiment, the storage unit 33 particularly stores an object tracking program.
[0025] The image acquisition unit 34 extracts images (captured images) necessary for the detection unit 35 and tracking unit 36 to detect faces from images captured by the camera of the photographing unit 15 and stored in the memory unit 33, and supplies them to the detection unit 35 and tracking unit 36 as appropriate.
[0026] The detection unit 35 detects a human face as a detection target included in an image by a detection method (first detection method) using a neural network such as CNN or DNN. The detection unit 35 detects a human face included in a photographed image acquired from the image acquisition unit 34 as a detection target. At this time, the detection unit 35 does not detect a specific human face, but detects all faces belonging to human faces. The detection unit 35 detects a bounding box (hereinafter simply referred to as a bbox (bounding box)) as a detection target, which is an area in the photographed image that specifically includes a human face (pixels of the detection target). The bbox may be a shape other than a rectangle as long as it is an area (position) in the photographed image that includes a face, and may be set to a required size according to the size of the face included in the photographed image.
[0027] The tracking unit 36 detects the face of the driver 4 as a tracking target included in the captured image by a detection method (a second detection method different from the first detection method) using pattern matching (template matching). The tracking unit 36 detects the detection target detected by the detection unit 35, i.e., the tracking target which is the face of the driver 4, from the captured image acquired from the image acquisition unit 34. Specifically, the tracking unit 36 uses the image in the bbox acquired from the detection unit 35 as a template image for pattern matching, and detects an image matching this template image from a predetermined detection range. Here, as described above, the detection unit 35 detects all faces belonging to the human face category, whereas the tracking unit 36 detects a specific human face, i.e., the face of the driver 4 detected by the detection unit 35.
[0028] The above-mentioned detection range is within a bbox (hereinafter referred to as the "previous bbox") that contains the face detected immediately before (the face detected by the detection unit 35 in the first case), or within an extended area extended by a predetermined amount from the previous bbox. The detection range is preferably within this extended area, and taking into consideration that the face of the driver 4 does not only remain in the immediately previous position but also moves to some extent, the detection range is set to an extended area extended by, for example, 10 to 20% from the previous bbox, making it easier to detect the face.
[0029] The tracking unit 36 calculates a correlation value between the template image and the detected image, and calculates the accuracy (degree of match) of detection from this correlation value. The tracking unit 36 considers a face to be detected when the accuracy is greater than a predetermined threshold, and considers it not to be detected when the accuracy is equal to or less than the threshold. The threshold may be set appropriately according to the required detection accuracy. When a face is detected within the detection range, the tracking unit 36 detects (calculates) a new bbox, which is an area in the captured image that contains the face of the driver 4 (pixels of the tracked object) as the tracked object from the position where the correlation value is maximum and the correlation value, and has the same size as the previous bbox. When the tracking unit 36 detects a face next time, this new bbox is used as the previous bbox, and an extended area of this bbox becomes the new detection range.
[0030] The tracking unit 36 tracks the face by repeatedly detecting the face from the captured image at a predetermined cycle according to this procedure. Note that the pattern matching method executed by the tracking unit 36 is not particularly limited, and may be appropriately selected from known methods as long as the object of the present disclosure is achieved.
[0031] The detection unit 35 performs many calculations, resulting in high face detection accuracy, but the calculations are slow. In comparison, the tracking unit 36 performs calculations less than the detection unit 35, resulting in low face detection accuracy, but the calculations are fast. Therefore, the HUD 1 in this embodiment achieves both high calculation speed and detection accuracy by detecting the face of the driver 4 by combining the detection unit 35 and the tracking unit 36 as described below.
[0032] In addition to the HUD 1, the vehicle 2 has functions necessary for the running of the vehicle 2, such as a vehicle ECU (Electronic Control Unit) 41. The vehicle ECU 41 and the control unit 30 are connected to each other, for example, via a CAN (Controller Area Network) bus 42. The vehicle ECU 41 acquires vehicle information necessary for the running of the vehicle 2, such as vehicle speed and engine speed, from various sensors provided in the vehicle 2, and controls the operation of the vehicle 2.
[0033] Next, there will be described details of the processing of the object tracking program executed by the control unit 30. The HUD 1 (control unit 30) that executes the object tracking program functions as an object detection device that executes an object detection method.
[0034] 2 is a flowchart illustrating the object tracking process executed by the control unit 30. This object tracking process is repeatedly performed for a period during which tracking of the face of the driver 4 is required, and ends when tracking is no longer required.
[0035] In step S1, the image acquisition unit 34 acquires a captured image for detection from an image captured by the photographing unit 15 and stored in the storage unit 33. The image acquisition unit 34 supplies the captured image to the detection unit 35. In step S2, the detection unit 35 detects a detection target, i.e., the face of the driver 4, from the acquired captured image. Specifically, the detection unit 35 detects a bbox, which is an area in the captured image that includes the face of the driver 4.
[0036] In step S3, the image acquisition unit acquires a captured image for detection from the images captured by the photographing unit 15 and stored in the storage unit 33. The image acquisition unit supplies the captured image to the tracking unit .
[0037] In step S4, the tracking unit 36 uses the image in the bbox detected by the detection unit 35 as a template image to detect the face of the driver 4 from the captured image.
[0038] That is, the tracking unit 36 acquires information on the bbox containing the face of the driver 4 detected by the detection unit 35 in step S2, and the image in the bbox detected by the detection unit 35 in step S2. Thereafter, the tracking unit 36 detects the face of the driver 4 from the captured image by performing pattern matching using the image in the bbox acquired here, i.e., the image of the face of the driver 4 detected by the detection unit 35, as a template image. Also, the tracking unit 36 tracks the face by repeatedly detecting the face from the captured image at a predetermined cycle.
[0039] As described above, it is preferable that the tracking unit 36 sets the detection range to the bbox acquired from the detection unit 35, i.e., the range that is likely to include the previous bbox and its extended area, which is a face. This allows the tracking unit 36 to reduce the amount of calculations and speed up the detection process compared to when the entire area of the captured image is set to the detection range. The tracking unit 36, for example, performs a Fourier transform on the template image and an image of a required area of the detection range, and calculates the Hadamard product (the product of each element of a matrix) to find a correlation value. The tracking unit 36 calculates a new bbox of the same size as the previous bbox from the position where the correlation value is maximum and the correlation value. The tracking unit 36 also calculates the detection accuracy (the degree of match between the template image and the image in the new bbox) from the correlation value in this new bbox.
[0040] In step S5, the tracking unit 36 determines whether the calculated accuracy is equal to or less than a threshold. If the tracking unit 36 determines that the accuracy is greater than the threshold (NO in step S5), that is, if it determines that a face has been detected, it determines whether a predetermined time has elapsed in step S6. If the tracking unit 36 determines that the predetermined time has not elapsed (NO in step S6), the process returns to step S3, and the tracking unit 36 repeatedly performs face detection using the template image acquired by the detection unit 35 in step S2, thereby tracking the face.
[0041] If the tracking unit 36 determines in step S5 that the accuracy is equal to or lower than the threshold (YES in step S5) or determines in step S6 that a predetermined time has elapsed (YES in step S6), the process returns to step S1. The detection unit 35 acquires a new captured image acquired by the image acquisition unit 34 in step S1, redetects the face in step S2, and detects the face (bbox) of the driver 4 as a tracking target.
[0042] Here, if the driver 4 changes the direction of his / her face with respect to the camera, puts on glasses, or changes the distance from the camera, and the driver 4 is in a state significantly different from that in the acquired template image, there is a risk that the accuracy of the template image acquired by the tracking unit 36 will decrease and the face will not be detected. Therefore, even if it is determined in step S5 that an accuracy greater than the threshold has been obtained, if it is determined in step S6 that a predetermined time (e.g., one second) has elapsed, the detection unit 35 acquires a new template image with the face redetected as a new tracking target. The tracking unit 36 repeatedly detects the face of the driver 4 in this new template image.
[0043] The object tracking program and HUD 1 that executes this program in this embodiment can suitably track objects using the detection unit 35 and tracking unit 36 described above. That is, the object tracking program and HUD 1 that executes this program have a detection unit 35 that detects human faces as detection objects with high accuracy, and a tracking unit 36 that tracks the faces detected by the detection unit 35 by repeatedly detecting them as tracking objects, and these perform face detection using two different techniques. In this way, the object tracking program and HUD 1 can achieve both high detection accuracy and detection time by utilizing the respective advantages of the detection unit 35 and the tracking unit 36. For example, when the tracking unit 36 uses a two-dimensional fast Fourier transform, where N is the number of pixels in the search range, 2N 2 log 2 The face of driver 4 can be detected with calculations on the order of N.
[0044] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims.
[0045] Although an example in which the photographing unit 15 is provided inside the HUD 1 has been described, the photographing unit 15 may be independent of the HUD 1 as long as it can output a photographed image to the control unit 30. In this case, for example, the photographing unit 15 is appropriately disposed on an instrument panel, a display, a rear view mirror, or the like.
[0046] The object tracking program, object tracking device, and method disclosed herein may be applied to various objects, not limited to faces, and may be executed or installed in various devices, not limited to HUDs. [Explanation of symbols]
[0047] 1 HUD (Head Up Display) 2 Vehicles 3. Instrument Panel 3. Windshield 4. Driver 5 Steering wheel 11 Display 12 plane mirror 13 concave mirror 15 Photography Unit 16 Case 30 Control section 31 Image Generation Unit 32 Display control unit 33 Storage section 34 Image acquisition section 35 Detection unit 36 Tracking Department 41 Vehicle ECU (Electronic Control Unit) 42 CAN (Controller Area Network) bus IR Near Infrared L display light V Virtual Image
Claims
1. On the computer, An image acquisition means for acquiring a photographed image; a detection means for detecting a detection object from the captured image by using a first detection method capable of detecting the detection object included in the captured image; a tracking means for repeatedly detecting the detection object detected by the detection means as a tracking object from the captured image using a second detection method different from the first detection method capable of detecting the detection object included in the captured image, and tracking the tracking object within the captured image; An object tracking program to execute the following:
2. The detection means detects a bounding box that is an area in the captured image that includes the detection object, 2. The object tracking program according to claim 1, wherein said tracking means detects said tracked object within said bounding box or within an area expanded by a predetermined amount from said bounding box as a detection range.
3. 3. The object tracking program according to claim 2, wherein after the tracking object is detected within the detection range, the tracking means detects a new bounding box, which is an area within the captured image that includes the tracking object detected by the tracking means, and detects the tracking object within the new bounding box or within an area expanded a predetermined amount relative to the new bounding box as a new detection range.
4. the second detection method is pattern matching; The tracking means calculates a detection accuracy from an image of the detection object detected by the detection means and an image of the tracked object detected by the tracking means; When the accuracy becomes equal to or less than a threshold, the detection means redetects the detection object from the captured image; 2. The object tracking program according to claim 1, wherein said tracking means repeatedly detects the object redetected by said detection means as a new tracking object from said captured image.
5. the second detection method is pattern matching; When a predetermined time has elapsed since the detection of the detection object, the detection means redetects the detection object from the captured image, 2. The object tracking program according to claim 1, wherein said tracking means repeatedly detects the object redetected by said detection means as a new tracking object from said captured image.
6. an image acquisition unit that acquires a photographed image; a detection unit that detects a detection target object from the captured image by using a first detection method capable of detecting the detection target object included in the captured image; and a tracking unit that tracks the tracking object within the captured image by repeatedly detecting the detection object detected by the detection unit as a tracking object from the captured image using a second detection method different from the first detection method capable of detecting the detection object included in the captured image.
7. An image acquisition step of acquiring a photographed image; a detection step of detecting a detection target object from the captured image using a first detection method capable of detecting the detection target object included in the captured image; a tracking step of tracking the tracked object within the captured image by repeatedly detecting the detection object detected in the detection step as a tracked object from the captured image using a second detection method different from the first detection method capable of detecting the detection object included in the captured image.
Citation Information
Patent Citations
Drive state detecting device
JP1994255388A
