Object detection method and object detection device
The object detection method and device address the challenge of long processing times and high-performance requirements in ToF cameras by employing flying pixel detection and removal, enabling real-time object detection with reduced computational effort.
Patent Information
- Application Number
- JP2025081863
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2026-11-27
AI Technical Summary
Existing motion detection methods using motion vectors in ToF cameras require multiple frames, leading to longer processing times and the need for high-performance processors, which results in larger devices and increased processing load.
An object detection method and device that utilizes a flying pixel detection and removal process to extract objects from IR images generated by a ToF camera, allowing for real-time processing without increasing processing load.
Enables real-time object detection without increasing processing load by separating overlapping objects using a simplified computational approach, reducing device size and processing complexity.
Smart Images

Figure 2026185048000001_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an object detection method and an object detection apparatus.
Background Art
[0002] A time-of-flight (hereinafter, referred to as "ToF") distance image capturing apparatus (camera) has been realized that measures a distance between a measuring instrument and an object based on a flight time of light in a space (measurement space) by utilizing the fact that the speed of light is known. In such a ToF camera, a delay time from when an optical pulse, which is pulsed near-infrared light, is emitted until the optical pulse reflected by a subject returns is obtained by causing a photoelectric conversion element to accumulate generated electric charges in a plurality of charge accumulation units, and the distance to the subject is calculated using the delay time and the speed of light (for example, see Patent Document 1).
[0003] As described above, the distance calculation can be easily performed by using the ToF camera, and the size of the camera can be reduced by optimizing circuit design or the like. Therefore, it is expected that the ToF camera is mounted on various devices and modules. For example, by mounting the ToF camera on an industrial robot, it is possible to detect whether there is an object in a traveling direction. For example, Patent Document 2 discloses a technique for detecting a moving body using a motion vector.
Prior Art Documents
Patent Documents
[0004]
Patent Document 1
Patent Document 2
Summary of Invention
Problem to be Solved by the Invention
[0005] However, motion detection using motion vectors, as described in Patent Document 2, requires information from two or more frames to detect motion. This leads to problems such as longer processing times making real-time processing difficult, or the need for a high-performance processor to achieve faster processing speeds, resulting in larger devices.
[0006] The present invention was made to solve the above problems, and its objective is to provide an object detection method and an object detection device that can detect objects without increasing the processing load. [Means for solving the problem]
[0007] The object detection method of the present invention comprises: a flying pixel detection means for detecting flying pixels from a distance image output from a ToF camera that distributes and accumulates charge in each of a plurality of charge storage units provided in a pixel in synchronization with the irradiation of a light pulse; a flying pixel removal means for removing the flying pixels detected by the flying pixel detection means from an IR image output from the ToF camera; and an object extraction means for extracting objects from the IR image from which the flying pixels have been removed by the flying pixel removal means.
[0008] The object detection device of the present invention includes a light source unit that irradiates a space to be measured with light pulses, a pixel having a photoelectric conversion element that generates an electric charge corresponding to the incident light and a plurality of charge storage units that store the electric charge, a pixel driving circuit that distributes and stores the electric charge in each of the charge storage units in the pixel at a timing synchronized with the irradiation of the light pulses according to the frame period, a light receiving unit, an IR calculation unit that calculates an IR value based on the amount of electric charge stored in each of the charge storage units and generates an IR image, and a unit that calculates the distance to an object in the space based on the amount of electric charge stored in each of the charge storage units and An object detection device comprising: a distance calculation unit that generates a distance image; an object detection unit that extracts objects from the IR image generated by the IR calculation unit and the distance image generated by the distance calculation unit, wherein the object detection unit includes a flying pixel detection unit that detects flying pixels from the distance image generated by the distance calculation unit; a flying pixel removal unit that removes flying pixels detected by the flying pixel detection unit from the IR image generated by the IR calculation unit; and an object extraction unit that extracts objects from the IR image from which flying pixels have been removed by the flying pixel removal unit. [Effects of the Invention]
[0009] According to the present invention, object detection can be performed without increasing the processing load. [Brief explanation of the drawing]
[0010] [Figure 1] This is a block diagram showing an example configuration of the object detection system 1 of the embodiment. [Figure 2] This is a block diagram showing an example configuration of the object detection processing unit 13 of the embodiment. [Figure 3] This is a diagram illustrating the process performed by the object detection device 100 of the embodiment. [Figure 4] This is a diagram illustrating the process performed by the object detection device 100 of the embodiment. [Figure 5] This is a diagram illustrating the process performed by the object detection device 100 of the embodiment. [Figure 6] FIG. 1 is a block diagram illustrating a configuration example of an object detection device 500 of the embodiment. [Figure 7] FIG. 3 is a block diagram illustrating a configuration example of a range image sensor 32 of the embodiment. [Figure 8] FIG. 4 is a circuit diagram illustrating a configuration example of a pixel 321 of the embodiment. [Figure 9] FIG. 5 is a timing chart illustrating an example of pixel driving performed by the object detection device 500 of the embodiment. [Figure 10] FIG. 6 is a diagram for explaining processing performed by the object detection device 500 of the embodiment. [Figure 11] FIG. 7 is a diagram for explaining processing performed by the object detection device 500 of the embodiment. [Figure 12] FIG. 8 is a diagram for explaining processing performed by the object detection device 500 of the embodiment. [Figure 13] FIG. 9 is a diagram for explaining processing performed by the object detection device 500 of the embodiment. [Figure 14] FIG. 10 is a diagram for explaining processing performed by the object detection device 500 of the embodiment. [Figure 15] FIG. 11 is a diagram for explaining processing performed by the object detection device 500 of the embodiment. [Figure 16] FIG. 12 is a diagram for explaining a modification of the embodiment. [[Embodiments]]
[0011] Hereinafter, the object detection device of the embodiment will be described with reference to the drawings.
[0012] (Regarding the object detection system 1) FIG. 1 is a block diagram illustrating a configuration example of an object detection system 1 of the embodiment. The object detection system 1 includes, for example, an object detection device 100 and a ToF camera 200. In the object detection system 1, the object detection device 100 and the ToF camera 200 are communicably connected.
[0013] The ToF camera 200 is a ToF (Time-of-Flight) distance image acquisition device (camera). The ToF camera 200 outputs ToF camera data to the object detection device 100. The ToF camera data includes distance image data and IR image data.
[0014] Distance image data is image data of a distance image. A distance image is an image in which the distance to the subject is indicated for each pixel. In other words, distance image data of a distance image is information in which the distance to the subject is associated for each pixel.
[0015] The ToF camera 200 generates a distance image. The ToF camera 200 comprises a light source, a light receiving unit, and a distance image processing unit. The light source unit includes a light source that emits pulsed near-infrared light. The light receiving unit includes pixels that receive light pulses (reflected light) that are reflected off a subject from the light pulses emitted from the light source unit. These pixels are provided with multiple charge storage units, and the charge generated by the photoelectric conversion element in response to the reception of reflected light is stored in the multiple charge storage units. Here, the ToF camera 200 controls the timing of charge storage in each of the multiple charge storage units to ensure that the charge corresponding to the reflected light is stored across the multiple charge storage units.
[0016] In this way, based on the ratio of the charge amounts accumulated across multiple charge storage units, the delay time from the irradiation of a light pulse to the reception of reflected light can be determined, and the distance to the subject can be calculated based on the relationship between the delay time and the speed of light. The ToF camera 200 outputs the information indicating the distance for each pixel, obtained in this way, as distance image data to the object detection device 100.
[0017] IR image data is image data of an IR image. An IR image is an image in which an IR value is associated with each pixel, corresponding to the amount of reflected light received by that pixel, i.e., the amount of IR (infrared) light. In other words, IR image data of an IR image is information that associates the amount of IR (infrared) light corresponding to the reflected light of each pixel.
[0018] The ToF camera 200 generates an IR image. The ToF camera 200 calculates an IR value based on the sum of the charge amounts accumulated in each of the multiple charge storage units of a pixel. Alternatively, the ToF camera 200 may calculate an IR value based on the sum of the charge amounts obtained by excluding the ambient light component (a light component different from the light pulse, such as sunlight or indoor fluorescent lighting) from each of the multiple charge storage units of a pixel. The ToF camera 200 outputs information indicating the IR value for each pixel obtained in this way as IR image data to the object detection device 100.
[0019] The object detection device 100 performs object detection in an IR image using ToF camera data. The object detection device 100 comprises a flying pixel detection unit 11, a flying pixel removal unit 12, and an object detection processing unit 13.
[0020] The flying pixel detection unit 11 detects flying pixels. A flying pixel is a pixel that indicates the distance to a target that does not actually exist. For example, flying pixels can occur when multiple targets, such as a front target and a rear target, exist in the measurement space such that they partially overlap when viewed from the imaging direction. Flying pixels occur when reflected light arriving from the front target and the rear target respectively enters a single pixel at the edge of multiple targets (measurement targets) that are located at different distances. The flying pixel detection unit 11 detects flying pixels from the depth image data. First, the flying pixel detection unit 11 determines whether each pixel in the depth image is a flying pixel. For example, the flying pixel detection unit 11 uses a first-order differential filter to calculate the difference in distance between two adjacent pixels that are adjacent to the target pixel in different directions in the depth image. The flying pixel detection unit 11 compares the calculated difference value with a threshold. If the difference value exceeds the threshold, the flying pixel detection unit 11 determines that the target pixel is a flying pixel. Alternatively, the flying pixel detection unit 11 may use the ratio value of the distances shown by each of the two adjacent pixels instead of the difference value, and determine that the target pixel is a flying pixel if the ratio value exceeds a threshold. The flying pixel detection unit 11 outputs the pixel coordinates of the flying pixels detected from the depth image to the flying pixel removal unit 12.
[0021] The flying pixel removal unit 12 removes flying pixels from the IR image. The flying pixel removal unit 12 obtains the pixel coordinates of the flying pixels detected in the depth image from the flying pixel detection unit 11 and removes the pixels in the IR image corresponding to the obtained pixel coordinates. Here, removing a pixel means adding information to the pixel value of the pixel to indicate that it is a target for removal. For example, the flying pixel removal unit 12 removes pixels by replacing the pixel value of the IR image pixel located at the pixel coordinates of the flying pixels detected in the depth image with a predetermined constant value (for example, 0 (zero)) or by embedding information in the pixel indicating that it is a flying pixel.
[0022] The object detection processing unit 13 detects objects from the IR image from which flying pixels have been removed.
[0023] (Regarding object detection processing unit 13) Figure 2 is a block diagram showing an example configuration of the object detection processing unit 13 of an embodiment. The object detection processing unit 13 includes, for example, a background removal unit 131, a binarization processing unit 132, and a labeling unit 133.
[0024] The background removal unit 131 removes the background IR image from the IR image. The background IR image is an IR image in which only the background in the measurement space is captured. The background IR image is captured in advance, for example, and its image data (image data of the background IR image) is stored in the storage unit (not shown) of the object detection device 100. Furthermore, the background removal unit 131 may use a region that remains unchanged for a long period of time as the background IR image from a group of images continuously captured over time from the measurement space. In this case, the background removal unit 131 continuously captures images of the measurement space over time. The background removal unit 131 calculates the variability (e.g., variance or standard deviation) of each pixel value (IR value) of the continuously captured IR images, and uses pixels with a variability below a threshold, that is, pixels with little variability and hardly changing, as background pixels. The background removal unit uses the IR image consisting of background pixels as the background IR image and stores the image data in the storage unit (not shown) of the object detection device 100. For example, the background removal unit 131 acquires image data of the IR image from which flying pixels have been removed from the flying pixel removal unit 12. The background removal unit 131 also acquires image data of the background IR image from the storage unit (not shown) of the object detection device 100. The background removal unit 131 removes the background IR image from the IR image (IR image from which flying pixels have been removed) by subtracting the pixel value of each pixel in the background IR image from the pixel value of each pixel in the IR image from which flying pixels have been removed. As a result, objects and the floor surface that constitute the background in the measurement space are removed, and object detection processing can be performed only on the objects in the foreground, i.e., the objects to be detected. The background removal unit 131 outputs the image data of the removed IR image (an IR image from which flying pixels have been removed and the background image has been further removed) to the binarization processing unit 132.
[0025] The binarization processing unit 132 generates a binarized image from the removed IR image (an IR image from which flying pixels and background images have been removed). The binarized image is an image represented in binary, depending on whether the pixel value of each pixel in the removed IR image exceeds a certain threshold. By performing binarization, each pixel in the IR image can be classified according to whether or not an object is present. Furthermore, by performing binarization, noise present between image frames and shifts in IR values within the same IR image can be removed, simplifying the subsequent processing by the labeling unit 133. The binarization processing unit 132 outputs the image data of the binarized image to the labeling unit 133.
[0026] The labeling unit 133 assigns a label to each connected component in the binarized image. A connected component is a region in the binarized image that is formed by a set of pixels that have the same pixel value. The labeling unit 133 assigns a label to each connected component in the binarized image. This makes it possible to associate a set of pixels assigned the same label with a single object. The labeling unit 133 outputs a detection result in which a set of pixels assigned the same label is detected as a single object.
[0027] Here, the process related to object detection will be explained using Figures 3 to 5. Figure 3 is a diagram illustrating the processing flow performed by the object detection device 100. In this diagram, when two people who partially overlap when viewed from the imaging direction are captured in the measurement space, the processing flow for detecting these two people as objects is explained using image Gr.
[0028] This figure shows multiple images Gr (images Gr41 to G49). Image Gr41 is an IR image captured by the object detection device 500. Image Gr42 is a background IR image previously captured by the object detection device 500.
[0029] Image Gr43 is the result of removing the background by taking the difference between Image Gr41 (without removing flying pixels) and Image Gr42. Image Gr44 is a binarized image generated using image Gr43. Image Gr45 shows the detection results obtained by assigning labels to image Gr44. Image Gr45 shows that a single object (subject OB1) formed by the merging of two people was detected. Thus, if pixels corresponding to flying pixels are not removed from the IR image, the two people cannot be separated and are detected as a single object. After binarizing image Gr43 to obtain the binarized image Grr44, labeling is performed, resulting in the two figures being combined and extracted as a single object, as shown in image Gr45.
[0030] Image Gr46 is the same as Image Gr41 but with flying pixels removed. In Image Gr46, region E shows the pixels corresponding to the flying pixels. Image Gr47 is the result of taking the difference between image Gr46 and image Gr42 and removing the background. Image Gr48 is a binarized image generated using image Gr47. Image Gr49 shows the detection results obtained by assigning labels to image Gr48 for object detection. Image Gr49 shows that the two individuals were detected as separate objects (subjects OB2 and OB3). Thus, by removing the pixels corresponding to flying pixels from the IR image, the two individuals can be separated.
[0031] Figures 4 and 5 illustrate the processing performed by the object detection device 100 of the embodiment. Figures 4 and 5 show two people whose parts overlap when viewed from the imaging direction. Flying pixels can occur when the measurement space is in such a situation.
[0032] Figure 4 schematically shows the detection results of object detection based on the IR image Gr1 without removing flying pixels. In this case, since the edges of the people are not removed, it is not possible to separate the region where the two people overlap when viewed from the imaging direction, and the two people are mistakenly detected as a single object (subject OB1).
[0033] Figure 5 schematically shows the detection results obtained by object detection based on the IR image Gr2 from which flying pixels have been removed. In this case, flying pixels occur in the edge portion (region E) of the area where the two people overlap when viewed from the imaging direction. By removing these flying pixels, the area where the two people overlap can be separated, and the two people can be correctly detected as two objects (subjects OB2 and OB3).
[0034] In this embodiment, the characteristic of distance images that flying pixels occur when parts of two objects overlap when viewed from the imaging direction is utilized to separate the objects by removing the flying pixels from the IR image. As a comparative example, one could consider performing object detection by clustering distance images from which flying pixels have been removed. However, generally, using clustering methods that are effective for object detection from images, such as Density-Based Spatial Clustering of Applications with Noise (DBSCAN), results in a high processing load. More specifically, the computation time for each of the processes involved in object detection by the object detection device 100, namely the flying pixel detection unit 11, the flying pixel removal unit 12, and the object detection processing unit 13, is all O(n). On the other hand, the computation time for DBSCAN is O(n 2 ) Note that the computational complexity shown here is the computational complexity using O notation (order notation), and O(n) indicates that the computation time is proportional to the amount of data n. 2 This indicates that the computation time required is proportional to the square of the data size n. Thus, the object detection method by the object detection device 100 involves detecting flying pixels by comparing pixel values (difference values or ratio values) with a threshold, binarizing the IR image from which the pixels corresponding to flying pixels have been removed, and labeling the connected elements. This simple and computationally intensive process allows for the separation and detection of each object even when parts of multiple objects overlap when viewed from the imaging direction.
[0035] Here, the object detection device 100 may set conditions for detecting an object. For example, the object detection device 100 performs binarization and label assignment, and detects as an object any set of pixels with the same label that occupies a larger area than a threshold value. Alternatively, the object detection device 100 may perform binarization and label assignment, extract a specific number (for example, two) of the top sets of pixels with the same label that have a large number of pixels, and target objects corresponding to the extracted sets for object detection. In this case, objects consisting of fewer pixels than these top-ranking objects are not targeted for object detection.
[0036] In other words, even if there is a set of pixels assigned the same label, the object detection device 100 will not detect them if their area is small. This prevents the detection of a large number of objects, which would increase the processing load by requiring imaging using frames consisting of many subframes to properly image each object. Furthermore, when flying pixels are removed, parts of an object, such as the fingertips of a human hand, may appear separated from the rest of the body, making it seem as if it is a separate object existing independently. In addition, small objects that are too far away to be targeted for motion detection may be captured in images. Such small objects can be excluded from object detection to reduce false positives.
[0037] (Regarding object detection device 500) Now, let's explain the object detection device 500. The object detection device 500 is a device in which the functions of the object detection device 100 are provided to the ToF camera 200.
[0038] Figure 6 is a block diagram showing an example configuration of an object detection device 500 according to an embodiment. The object detection device 500 includes, for example, a light source unit 2, a light receiving unit 3, and a distance image processing unit 4. In this figure, the subject OB, which is the object whose distance is to be measured, is also shown.
[0039] The light source unit 2 irradiates the subject OB with an optical pulse PO in accordance with control from the distance image processing unit 4. The light source unit 2 is, for example, a surface-emitting semiconductor laser module such as a vertical cavity surface-emitting laser (VCSEL). The light source unit 2 comprises a light source device 21 and a diffuser plate 22.
[0040] The light source device 21 is a light source that emits laser light in the near-infrared wavelength band (for example, a wavelength band of 850 nm to 940 nm) which becomes a light pulse PO irradiated onto the subject OB. The light source device 21 is, for example, a semiconductor laser light-emitting element. The light source device 21 emits pulsed laser light in response to control from the timing control unit 41.
[0041] The diffuser plate 22 is an optical component that diffuses the near-infrared wavelength laser light emitted by the light source device 21 over a surface area that illuminates the subject OB. The pulsed laser light diffused by the diffuser plate 22 is emitted as an optical pulse PO and irradiates the subject OB present in the measurement space.
[0042] The light-receiving unit 3 receives the reflected light RL of the light pulse PO reflected from the subject OB, and outputs a pixel signal corresponding to the received reflected light RL. The light-receiving unit 3 includes a lens 31 and a distance image sensor 32.
[0043] Lens 31 is an optical lens that guides the incident reflected light RL to the distance image sensor 32. Lens 31 emits the incident reflected light RL towards the distance image sensor 32, causing it to be received (incident) by the pixels provided in the light-receiving area of the distance image sensor 32.
[0044] The distance image sensor 32 is an image sensor. The distance image sensor 32 has multiple pixels arranged in a two-dimensional matrix. Within each pixel of the distance image sensor 32, there is one photoelectric conversion element, multiple charge storage units corresponding to this one photoelectric conversion element, and a component that distributes the charge to each charge storage unit. In other words, the pixel is an image sensor with a distribution configuration that distributes and stores the charge in multiple charge storage units.
[0045] The distance image sensor 32 distributes the charge generated by the photoelectric conversion element to its respective charge storage units in accordance with the control from the timing control unit 41. The distance image sensor 32 also outputs a pixel signal corresponding to the amount of charge distributed to the charge storage units. The distance image sensor 32 has multiple pixels arranged in a two-dimensional matrix, and outputs a pixel signal for one frame corresponding to each pixel.
[0046] Figure 7 is a block diagram showing an example configuration of a distance image sensor 32 of an embodiment. As shown in this figure, the distance image sensor 32 includes, for example, a light-receiving area 320 in which a plurality of pixels 321 are arranged in a two-dimensional matrix, and a pixel driving circuit 322. The pixel driving circuit 322 includes, for example, a vertical scanning circuit 323 having a distribution operation, a horizontal scanning circuit 324, a pixel signal processing circuit 325, and a control circuit 326. A pixel 321 is an example of a pixel circuit.
[0047] The light-receiving region 320 is a region in which multiple pixels 321 are arranged in a two-dimensional matrix. In this figure, an example is shown where they are arranged in a two-dimensional matrix with 8 rows and 8 columns. Each pixel 321 accumulates a charge corresponding to the amount of light it receives and outputs a storage signal corresponding to the amount of charge it has accumulated.
[0048] The control circuit 326 comprehensively controls the distance image sensor 32. For example, the control circuit 326 controls the operation of the components of the distance image sensor 32 in response to instructions from the timing control unit 41 of the distance image processing unit 4. In addition, the control of the components of the distance image sensor 32 may be directly performed by the timing control unit 41, in which case the control circuit 326 can be omitted.
[0049] The vertical scanning circuit 323 controls the pixels 321 arranged in the light-receiving area 320 row by row in response to control from the control circuit 326. The vertical scanning circuit 323 causes the pixel signal processing circuit 325 to output a voltage signal corresponding to the amount of charge accumulated in each of the charge storage units CS of the pixels 321. For example, the vertical scanning circuit 323 distributes and stores the charge converted by the photoelectric conversion element to each of the charge storage units of the pixels 321 at an accumulation timing synchronized with the irradiation of the light pulse PO. In addition, the vertical scanning circuit 323 discharges the charge converted by the photoelectric conversion element from a charge discharge unit (drain gate transistor GD described later) during a period different from the accumulation period in which charge is accumulated in the charge storage unit CS (for example, the readout period).
[0050] The pixel signal processing circuit 325 performs predetermined signal processing (for example, noise suppression processing or A / D conversion processing) on the voltage signals output from the corresponding vertical signal lines of the pixels 321 in each column, in response to control from the control circuit 326.
[0051] The horizontal scanning circuit 324, in response to control from the control circuit 326, sequentially outputs the signals from the pixel signal processing circuit 325 in a time series. As a result, the accumulated signal for one frame is sequentially output to the distance image processing unit 4. In the following explanation, it is assumed that the pixel signal processing circuit 325 performs A / D conversion and the accumulated signal is a digital signal.
[0052] Figure 8 is a circuit diagram showing an example configuration of a pixel 321 in an embodiment. This figure shows an example configuration of one pixel 321 among a plurality of pixels 321 arranged within the light-receiving area 320. This figure shows an example in which the pixel 321 is equipped with four signal readout units RU (signal readout units RU1 to RU4).
[0053] Pixel 321 comprises one photoelectric conversion element PD, a drain gate transistor GD, and four signal readout units RU that output a voltage signal from the corresponding output terminal O. Each signal readout unit RU comprises a read gate transistor G, a floating diffusion FD, a charge storage capacitor C, a reset transistor RT, a source follower transistor SF, and a selection transistor SL. The charge storage unit CS is composed of a floating diffusion FD and a charge storage capacitor C.
[0054] In this diagram, the four signal readout units RU are distinguished by adding a number from "1" to "4" after the code "RU" of each unit. Similarly, each component of the four signal readout units RU is represented by indicating a number after its code that represents the signal readout unit RU it corresponds to, thus distinguishing the signal readout unit RU each component is associated with.
[0055] In pixel 321, the signal readout unit RU1 outputs a voltage signal from output terminal O1. The signal readout unit RU1 comprises a readout gate transistor G1, a floating diffusion transistor FD1, a charge storage capacitor C1, a reset transistor RT1, a source follower transistor SF1, and a selection transistor SL1. The charge storage unit CS1 is composed of the floating diffusion transistor FD1 and the charge storage capacitor C1. The signal readout units RU2 to RU4 have a similar configuration.
[0056] The photoelectric conversion element PD is an embedded photodiode that converts incident light into electricity, generates an electric charge corresponding to the intensity of the incident light, and stores the generated charge. The structure of the photoelectric conversion element PD can be arbitrary. For example, the photoelectric conversion element PD may be a PN photodiode with a structure in which a P-type semiconductor and an N-type semiconductor are joined, or a PIN photodiode with a structure in which an I-type semiconductor is sandwiched between a P-type semiconductor and an N-type semiconductor. Furthermore, the photoelectric conversion element PD is not limited to a photodiode, but may be, for example, a photogate type photoelectric conversion element.
[0057] The drain gate transistor GD is a transistor used to discard the charge generated in the photoelectric conversion element PD. When the drain gate transistor GD is controlled to the ON state by the pixel driving circuit 322, it discards the charge generated in the photoelectric conversion element PD (i.e., resets the photoelectric conversion element PD).
[0058] The pixel driving circuit 322 drives the pixel 321, and distributes the charge generated by the photoelectric conversion element PD's photoelectric conversion of incident light to each of the four charge storage units CS. It then outputs a voltage signal corresponding to the amount of charge distributed to each unit to the pixel signal processing circuit 325.
[0059] For example, the pixel driving circuit 322 controls the storage drive signals TX1 to TX4, corresponding to each of the charge storage units CS1 to CS4, in sequence to turn on when driving the pixel 321, in synchronization with the irradiation timing of the light pulse PO. This causes the readout gate transistors G1 to G4, corresponding to each of the charge storage units CS, to conduct in sequence, distributing and storing charge in the corresponding charge storage units CS. As a result, charge is stored in the charge storage units CS1, CS2, CS3, and CS4 in that order.
[0060] Furthermore, the pixel 321 is not limited to the configuration with four signal readout units RU as shown in this figure; any pixel with multiple signal readout units RU is acceptable. In other words, the number of signal readout units RU (charge storage units CS) provided in the pixels arranged in the distance image sensor 32 may be two, three, or five or more.
[0061] Furthermore, this figure shows an example in which the charge storage unit CS is composed of a floating diffusion FD and a charge storage capacitance C. However, the charge storage unit CS only needs to be composed of a floating diffusion FD, and the pixel 321 may not have a charge storage capacitance C.
[0062] Returning to the explanation of Figure 6, the distance image processing unit 4 controls the object detection device 500 and calculates the distance to the subject OB. The distance image processing unit 4 comprises a timing control unit 41, a distance calculation unit 42, a measurement control unit 43, an IR calculation unit 44, and an object detection unit 45.
[0063] The timing control unit 41 controls the timing of outputting various control signals required for measurement, in accordance with the control of the measurement control unit 43. These various control signals include, for example, a signal to control the irradiation of the optical pulse PO, a signal to distribute and store the reflected light RL in multiple charge storage units, and a signal to control the number of integrations per frame. The number of accumulation cycles is the number of times the process of distributing and accumulating charge in the charge storage units CS per frame is repeated. The product of this accumulation cycle and the time it takes to accumulate charge in each charge storage unit in one charge distribution cycle (accumulation time) is the exposure time per frame.
[0064] The distance calculation unit 42 outputs distance information calculated based on the pixel signals output from the distance image sensor 32, determining the distance to the subject OB. The distance calculation unit 42 calculates the delay time from the irradiation of the light pulse PO to the reception of the reflected light RL, based on the pixel signals corresponding to the amount of charge accumulated in the multiple charge storage units. The distance calculation unit 42 calculates the distance to the subject OB according to the calculated delay time.
[0065] The distance calculation unit 42 calculates the delay time Td using, for example, the following equation (1). Equation (1) assumes that the charge corresponding to the reflected light RL is accumulated across the charge storage units CS1 and CS2. It also assumes that the amount of charge corresponding to the ambient light component included in the amount of charge accumulated in charge storage units CS1 and CS2 is the same as the amount of charge accumulated in charge storage unit CS3.
[0066] Td=To×(Q2-Q3) / (Q1+Q2-2×Q3) …(1) formula However, To is the period during which the optical pulse PO was irradiated. Q1 is a pixel signal corresponding to the amount of charge stored in the charge storage unit CS1. Q2 is a pixel signal corresponding to the amount of charge stored in the charge storage unit CS2. Q3 is a pixel signal corresponding to the amount of charge stored in the charge storage unit CS3.
[0067] The distance calculation unit 42 calculates the round-trip distance to the subject OB by multiplying the delay time Td obtained by equation (1) by the speed of light (velocity) for the near-range light-receiving pixel. Then, the distance calculation unit 42 measures the distance to the subject OB by dividing the round-trip distance calculated above by half.
[0068] The measurement control unit 43 controls the timing control unit 41. For example, the measurement control unit 43 sets the number of integrations and the accumulation time in one frame, and controls the timing control unit 41 so that imaging is performed according to the set settings.
[0069] The IR calculation unit 44 outputs an IR value corresponding to the amount of reflected light received from the subject OB, based on the pixel signal output from the distance image sensor 32. The IR calculation unit 44 calculates the IR value based on the pixel signal corresponding to the amount of charge accumulated in a plurality of charge storage units provided in the pixel 321. The IR calculation unit 44 calculates the IR value, for example, using the following equation (2). Note that equation (2) assumes that the charge corresponding to the reflected light RL is accumulated across the charge storage units CS1 and CS2. It also assumes that the amount of charge corresponding to the ambient light component included in the amount of charge accumulated in the charge storage units CS1 and CS2 is the same as the amount of charge accumulated in the charge storage unit CS3.
[0070] IR = (Q1 - Q3) + (Q2 - Q3) ... (2) However, IR is the IR value corresponding to the amount of reflected light RL received. Q1 is a pixel signal corresponding to the amount of charge stored in the charge storage unit CS1. Q2 is a pixel signal corresponding to the amount of charge stored in the charge storage unit CS2. Q3 is a pixel signal corresponding to the amount of charge stored in the charge storage unit CS3.
[0071] Furthermore, if four charge storage units CS are provided for one pixel 321, the pixel signal Q4 may be used instead of the signal value corresponding to the ambient light component (pixel signal Q3) in equations (1) and (2) above, or the average value of pixel signals Q3 and Q4 may be used.
[0072] The object detection unit 45 is a functional unit that has the functions of the object detection device 100. The object detection unit 45 includes functional units corresponding to the flying pixel detection unit 11, the flying pixel removal unit 12, and the object detection processing unit 13. In addition, the object detection unit 45 includes functional units corresponding to the background removal unit 131, the binarization processing unit 132, and the labeling unit 133, which are functional units that realize the functions of the object detection processing unit 13.
[0073] With this configuration, the object detection device 500 receives reflected light RL from the object OB when the light pulse PO in the near-infrared wavelength band is irradiated by the object OB by the light source unit 2, and the distance image processing unit 4 calculates the distance to the object OB and outputs distance information, as well as an IR value corresponding to the amount of reflected light RL received from the object OB.
[0074] In Figure 6, an object detection device 500 is shown in which the distance image processing unit 4 is located inside the object detection device 500. However, the distance image processing unit 4 may be a component located outside the object detection device 500.
[0075] Figure 9 is a timing chart showing an example of pixel driving performed by the object detection device 500 of the embodiment. This figure shows an example of a timing chart when pixel 321 is driven using a normal driving method. In this diagram, timing charts for the elements corresponding to each item, "LI," "G1" to "G4," and "GD," are shown. "LI" indicates the irradiation timing of the light pulse PO; when it is in the ON state, light is irradiated, and when it is in the OFF state, light is not irradiated. "G1" to "G4" indicate the accumulation timing of the read gate transistors G1 to G4; when they are in the ON state, charge is accumulated, and when they are in the OFF state, no charge is accumulated. "GD" indicates the drive timing of the drain gate transistor GD; when it is in the ON state, charge is discharged, and when it is in the OFF state, no charge is discharged.
[0076] Each frame consists of a storage period and a readout period. The storage period is the time during which charge is stored in the charge storage unit CS. The readout period is the time during which the pixel signal corresponding to the amount of charge stored in the charge storage unit CS is read out. During the accumulation period, the drive corresponding to the unit accumulation is repeated for the number of accumulations. For unit accumulation, a drive is performed to sequentially accumulate charge in each of the four charge accumulation units CS of a single pixel 321 at an accumulation timing synchronized with the irradiation timing. For example, at the same timing as the irradiation timing when the light pulse PO is irradiated, the drain gate transistor GD is turned off, and the readout gate transistors G1 to G4 are turned on sequentially.
[0077] Specifically, in unit storage, the timing control unit 41, via the pixel driving circuit 322, turns off the drain gate transistor GD and turns on the read gate transistor G1 at the irradiation timing. After a specific storage time Ta (for example, the same time as the irradiation time To when the light pulse PO was irradiated) has elapsed since the read gate transistor G1 was turned on, the read gate transistor G1 is turned off. At the timing when the read gate transistor G1 is turned off, the read gate transistor G2 is turned on. After the storage time Ta has elapsed since the read gate transistor G2 was turned on, the read gate transistor G2 is turned off. At the timing when the read gate transistor G2 is turned off, the read gate transistor G3 is turned on. After the storage time Ta has elapsed since the read gate transistor G3 was turned on, the read gate transistor G3 is turned off. At the timing when the read gate transistor G3 is turned off, the read gate transistor G4 is turned on. After the storage time Ta has elapsed since the read gate transistor G4 was turned on, the read gate transistor G4 is turned off and the drain gate transistor GD is turned on.
[0078] Figure 10 is a diagram illustrating the processing performed by the object detection device 500 of the embodiment. This figure shows an example configuration of the object detection device 500 as a computer or integrated circuit. The object detection device 500 consists of a light source unit 2 that irradiates the space to be measured with light pulses, a light receiving unit 3 that generates and stores electric charge in response to the incident light, an IR calculation unit 44 that calculates an IR value based on the amount of charge stored in the light receiving unit 3, a distance calculation unit 42 that calculates the distance to the object based on the amount of charge stored in the light receiving unit 3, and an object detection unit 45 that detects the object from the IR image and the distance image. The object detection unit 45 consists of a flying pixel detection unit 451 that detects flying pixels from a distance image, a flying pixel removal unit 452 that removes flying pixels from an IR image, and an object detection processing unit 453 that extracts objects from the IR image from which the flying pixels have been removed. With this configuration, the object detection device 500 of this embodiment can separate and detect each object with minimal computational effort, even in situations where parts of multiple objects overlap when viewed from the imaging direction.
[0079] Figure 11 is a diagram illustrating the processing performed by the object detection device 500 of the embodiment. This figure shows an example configuration in which the object detection device 500 improves imaging accuracy by performing a drive according to the object detection result. In this figure, in the object detection device 500, the detection result from the object detection unit 45 is input to the measurement control unit 43. Based on the detection result from the object detection unit 45, the object detection unit 45 determines a drive parameter for driving the pixel 321, for example, the number of integrations per frame, and outputs information indicating the determined number of integrations as a control signal to the light source unit 2 and the light receiving unit 3.
[0080] It is known that the magnitude of light intensity is inversely proportional to the square of the distance. Due to this property of light, the amount of reflected light RL reflected from a nearby forward target is large, while the amount of reflected light RL reflected from a far-away rear target is small. When the charge storage unit CS receives reflected light RL with a large amount of light intensity, it is prone to saturation. When the charge storage unit CS is saturated, it becomes impossible to accurately determine the amount of reflected light RL received, thus reducing the accuracy of distance and IR values. On the other hand, when the charge storage unit CS receives reflected light RL with a small amount of light intensity, the signal-to-noise ratio decreases, making it more susceptible to noise, and thus reducing the accuracy of distance and IR values. From this perspective, the measurement control unit 43 controls the number of integrations to prevent saturation of the charge storage unit CS when a forward target is located at close range in the measurement space, based on the detection result by the object detection unit 45. On the other hand, when a rear target is located at a distance in the measurement space, the measurement control unit 43 controls the number of integrations to prevent a decrease in the signal-to-noise ratio in the charge storage unit CS. The measurement control unit 43 performs subframe driving when both a front target and a rear target are present in the measurement space. Subframe driving involves providing multiple subframes in one frame and driving the pixels 321 with different integration counts in each subframe. The measurement control unit 43 assigns one subframe to each target and performs imaging with an appropriate integration count for the target in the assigned subframe. As a result, even when parts of multiple targets (objects) at different distances overlap in the measurement space when viewed from the imaging direction, each target can be accurately imaged, and object detection can be performed with correct separation of each target.
[0081] Here, we will explain an example of subframe driving performed by the object detection device 500 using Figures 12 to 15. Figures 12 to 15 are diagrams illustrating the processing performed by the object detection device 500 of this embodiment. Figures 12 to 15 show examples of subframe driving when, in the measurement space, at least two targets are present at short, medium, and long distances, along the direction away from the imaging position.
[0082] Figure 12 shows examples of subframe driving when targets are located at short and medium range positions.
[0083] First, the object detection device 500 performs a first imaging drive. The first imaging drive is a drive that can measure the entire measurement space (whole view). The first imaging drive is a drive method used when it is unknown where the target is located in the measurement space. In the first imaging drive, the number of integrations is set such that saturation is less likely to occur when receiving reflected light RL reflected from a target at close range, and the signal-to-noise ratio (SNR) is less likely to decrease when receiving reflected light RL reflected from a target at far range. In the first imaging drive, it is sufficient to know whether the target is at close, medium, or far range in the measurement space, and it is not necessary to be able to measure the exact distance. In this figure, the number of integration cycles set in the first imaging drive is 50,000, indicated by "Integ1". In the first imaging drive, the entire scene is captured under the same conditions in one frame, and no subframes are provided. In this figure, the first imaging drive includes an accumulation period in which the drive corresponding to the number of integration cycles (50,000) indicated by "Integ1" is repeated, followed by a readout period indicated by "Read1", in which the pixel signal corresponding to the amount of charge accumulated in the first imaging drive is read out, followed by a waiting time indicated by "Wait".
[0084] In the first imaging drive, let's assume that the object detection result indicates that a target is located at a nearby position. In this case, the object detection device 500 performs a second imaging drive as a subframe drive, which includes a first subframe capable of measuring the entire scene and a second subframe suitable for the target located at a nearby position. In this diagram, in the first subframe of the second imaging drive, the number of integration cycles, indicated by "Integ1," is set to 50,000, similar to the first imaging drive. Furthermore, in the second subframe of the second imaging drive, the number of integration cycles, indicated by "Integ2," is set to 30,000, in order to avoid saturation of the charge storage unit CS by receiving reflected light RL arriving from a nearby target. In this diagram, the first subframe of the second imaging drive includes an accumulation period in which the drive corresponding to the number of integrations (50,000 times) indicated by "Integ1" is repeated, followed by a readout period (indicated by "Read1") in which the pixel signal corresponding to the amount of charge accumulated in the first subframe is read out, followed by a waiting time (indicated by "Wait"). In the second subframe of the second imaging drive, an accumulation period is included in which the drive corresponding to the number of integrations (30,000 times) indicated by "Integ2" is repeated, followed by a readout period (indicated by "Read2") in which the pixel signal corresponding to the amount of charge accumulated in the second subframe is read out, followed by a waiting time (indicated by "Wait").
[0085] Furthermore, suppose that in the first imaging drive, object detection results are obtained indicating that targets exist at both short-range and medium-range positions. In this case, the object detection device 500 performs a third imaging drive as a subframe drive, which includes a first subframe capable of measuring the entire scene, a second subframe suitable for targets at short range, and a third subframe suitable for targets at medium range. In this diagram, the first subframe of the third imaging drive is set to 50,000 integration cycles, indicated by "Integ1," similar to the first imaging drive. The second subframe of the third imaging drive is set to 30,000 integration cycles, indicated by "Integ2," to avoid saturation of the charge storage unit CS by receiving reflected light RL from a nearby target. The third subframe of the third imaging drive is set to 80,000 integration cycles, indicated by "Integ3," to allow for the reception of more reflected light RL from a medium-range target. In this diagram, the first subframe of the third imaging drive includes an accumulation period in which the drive corresponding to the number of integrations (50,000 times) indicated by "Integ1" is repeated, followed by a readout period, indicated by "Read1," in which the pixel signal corresponding to the amount of charge accumulated in the first subframe is read out. The second subframe of the third imaging drive includes an accumulation period in which the drive corresponding to the number of integrations (30,000 times) indicated by "Integ2" is repeated, followed by a readout period, indicated by "Read2," in which the pixel signal corresponding to the amount of charge accumulated in the second subframe is read out. The third subframe of the third imaging drive includes an accumulation period in which the drive corresponding to the number of integrations (80,000 times) indicated by "Integ3" is repeated, followed by a readout period, indicated by "Read3," in which the pixel signal corresponding to the amount of charge accumulated in the third subframe is read out.
[0086] Figure 13 shows examples of subframe driving when targets are located at both near and far distances.
[0087] First, the object detection device 500 performs a first imaging drive. The first imaging drive is the same as the first drive described in Figure 12, so its explanation will be omitted.
[0088] In the first imaging drive, suppose the object detection result indicates that a target exists at a distant location. In this case, the object detection device 500 performs a second imaging drive as a subframe drive, which includes a first subframe capable of measuring the entire scene and a second subframe suitable for the target located at a distance. In this diagram, the first subframe of the second imaging drive is set to 50,000 integration cycles, indicated by "Integ1," similar to the first imaging drive. Furthermore, the second subframe of the second imaging drive is set to 100,000 integration cycles, indicated by "Integ2," to allow for the reception of more reflected light RL arriving from a distant target. In this diagram, the first subframe of the second imaging drive includes an accumulation period in which the drive corresponding to the number of integrations (50,000 times) indicated by "Integ1" is repeated, followed by a readout period (indicated by "Read1") in which the pixel signal corresponding to the amount of charge accumulated in the first subframe is read out, followed by a waiting time (indicated by "Wait"). In the second subframe of the second imaging drive, an accumulation period is included in which the drive corresponding to the number of integrations (100,000 times) indicated by "Integ2" is repeated, followed by a readout period (indicated by "Read2") in which the pixel signal corresponding to the amount of charge accumulated in the second subframe is read out, followed by a waiting time (indicated by "Wait").
[0089] Furthermore, suppose that in the first imaging drive, object detection results are obtained indicating that targets exist at both near and far distances. In this case, the object detection device 500 performs a third imaging drive as a subframe drive, which includes a first subframe capable of measuring the entire scene, a second subframe suitable for targets at far distances, and a third subframe suitable for targets at near distances. In this diagram, the first subframe of the third imaging drive is set to 50,000 integration cycles, indicated by "Integ1," similar to the first imaging drive. The second subframe of the third imaging drive is set to 100,000 integration cycles, indicated by "Integ2," to allow for the reception of more reflected light RL from distant targets. The third subframe of the third imaging drive is set to 20,000 integration cycles, indicated by "Integ3," to prevent saturation of the charge storage unit CS due to the reception of reflected light RL from nearby targets. In this diagram, the first subframe of the third imaging drive includes an accumulation period in which the drive corresponding to the number of integrations (50,000 times) indicated by "Integ1" is repeated, followed by a readout period, indicated by "Read1," in which the pixel signal corresponding to the amount of charge accumulated in the first subframe is read out. The second subframe of the third imaging drive includes an accumulation period in which the drive corresponding to the number of integrations (100,000 times) indicated by "Integ2" is repeated, followed by a readout period, indicated by "Read2," in which the pixel signal corresponding to the amount of charge accumulated in the second subframe is read out. The third subframe of the third imaging drive includes an accumulation period in which the drive corresponding to the number of integrations (20,000 times) indicated by "Integ3" is repeated, followed by a readout period, indicated by "Read3," in which the pixel signal corresponding to the amount of charge accumulated in the third subframe is read out.
[0090] Note that in Figures 12 and 13, the order in which subframes are driven in one frame can be set arbitrarily. Figures 12 and 13 show examples where the subframes are driven in the order of the first subframe, second subframe, and third subframe, but are not limited to this. For example, they may be driven in the order of the second subframe, third subframe, and first subframe, or in the order of the third subframe, first subframe, and second subframe, or in the order of the first subframe, third subframe, and second subframe.
[0091] Figure 14 illustrates the relationship between the measurement space and the object detection process using subframe drive, using image Gr. Here, it is assumed that the same background IR image as image Gr42 in Figure 3 has been acquired beforehand. This figure shows multiple images Gr (images Gr51 to G62).
[0092] Image Gr51 is an image representing the measurement space (a), which is a measurement space consisting only of the background (a measurement space where no people or other objects exist). Image Gr52 is an IR image (whole-view image) captured in the measurement space (a) by the first imaging drive, showing the entire scene. Image Gr53 is a composite image obtained by removing flying pixels and the background IR image from image Gr52, and is used for object detection by the object detection processing unit 453 of the object detection unit 45 (object detection image). If image Gr52 is obtained by the first imaging drive, the object detection unit 45 outputs a detection result indicating that no object exists in the measurement space. In this case, the measurement control unit 43 does not perform subframe driving (first imaging drive). The object detection unit 45 removes flying pixels and background IR images from image Gr52 to generate image Gr53. The object detection unit 45 performs object detection by binarizing and assigning labels to the generated image Gr53. As a result, the object detection unit 45 outputs a detection result indicating that no object was detected.
[0093] Image Gr54 is an illustrative image representing the measurement space (b), which contains one person. Image Gr55 is an IR image (whole-view image) captured in the measurement space (b) by the first imaging drive. Image Gr56 is an IR image (object 1 optimized image) acquired in measurement space (b) by a second imaging drive with a number of integrations suitable for one person present in the measurement space. Image Gr57 is a composite image obtained by removing flying pixels and the background IR image from Image Gr55, and then replacing the area where a person was captured with the pixel values of Image Gr56. Image Gr57 is an image used for object detection by the object detection processing unit 453 of the object detection unit 45 (object detection image). If image Gr55 is obtained by the first imaging drive, the object detection unit 45 outputs a detection result indicating that one object exists in the measurement space. In this case, the measurement control unit 43 performs a subframe drive (second imaging drive) which includes a subframe that is imaged with an integration count suitable for the detected object. The object detection unit 45 removes flying pixels from image Gr56 and the background IR image, and in the resulting image, replaces the region where the person was imaged with the pixel values of image Gr56 to generate image Gr57. The object detection unit 45 performs object detection by binarizing and assigning labels to the generated image Gr57. As a result, the object detection unit 45 outputs a detection result indicating that one object has been detected.
[0094] Image Gr58 is an illustrative image showing the measurement space (c), where two people are located one in front of the other as viewed from the direction of imaging. Image Gr59 is an IR image (whole-view image) captured in the measurement space (c) by the first imaging drive, showing the entire scene. Image Gr60 is an IR image (object 1 optimized image) acquired in the measurement space (c) by a third imaging drive with an integration count suitable for one of the two people present in the measurement space. Image Gr61 is an IR image (object 2 optimized image) acquired in the measurement space (c) by a third imaging drive with an integration count suitable for the other of the two people present in the measurement space. Image Gr62 is a composite image obtained by removing flying pixels and the background IR image from Image Gr59, replacing the area where one of the two people present in the measurement space is imaged with the pixel values of Image Gr60, and replacing the area where the other person is imaged with the pixel values of Image Gr61. Image Gr62 is an image used for object detection by the object detection processing unit 453 of the object detection unit 45 (object detection image). If image Gr59 is obtained by the first imaging drive, the object detection unit 45 outputs a detection result indicating that two objects exist in the measurement space. In this case, the measurement control unit 43 performs a subframe drive (third imaging drive) which includes two subframes that are imaged with an appropriate number of integration counts for each of the two detected objects. The object detection unit 45 removes flying pixels and the background IR image from image Gr59, replaces the area where one person was imaged with the pixel values of image Gr60, and replaces the area where the other person was imaged with the pixel values of image Gr61 to generate image Gr57. The object detection unit 45 performs object detection by binarizing and assigning labels to the generated image Gr57. As a result, the object detection unit 45 outputs a detection result indicating that two objects have been detected.
[0095] Figure 15 shows a flowchart illustrating the processing flow performed by the object detection device 500 of the embodiment.
[0096] First, the object detection device 500 acquires a background IR image as a pre-imaging step (step S1). Next, the object detection device 500 sets the imaging drive to the first imaging drive (whole-view imaging) step (step S2). The object detection device 500 performs imaging (step S3). The object detection device 500 performs subframe synthesis and removes the background IR image from the whole-view image (step S4).
[0097] Here, the subframe synthesis shown in step S4 is performed, for example, using the IR value of each pixel in the IR image. When the number of subframes N is 1, that is, when there is only one type of integration count in one frame, the IR image obtained from driving that one frame is output as is (without combining it with other IR images).
[0098] If the number of subframes N is 2 or greater, the pixel values (distance values and / or IR values) of the image output as a result of subframe synthesis are determined, for example, as shown in equations (3) to (5) below. Let D_n(k) be the k-th pixel value in the distance image captured in the nth subframe, and let I_n(k) be the k-th pixel value in the IR image captured in the nth subframe. In this case, the k-th pixel value D'(k) in the distance image output as a result of subframe synthesis is determined as shown in equation (3). The k-th pixel value I'(k) in the IR image output as a result of subframe synthesis is determined as shown in equation (4). In equation (5), argmax represents the maximum point set.
[0099]
number
[0100] Next, the object detection device 500 performs object detection (step S5). For example, the object detection device 500 performs object detection by treating a set of pixels assigned the same label as a single object. Alternatively, the object detection device 500 may perform object detection by treating any set of pixels with the same label assigned to it that has a threshold value or more as a single object. Furthermore, the object detection device 500 may perform object detection by treating a specific number (for example, two) of pixel groups as objects, in descending order of the number of pixels assigned the same label. The object detection device 500 determines the number of objects detected in step S5 (step S6). If the number of detected objects is 0 (zero), the object detection device 500 sets the imaging drive to the first imaging drive (whole-view imaging) (step S7). The object detection device 500 returns to the process shown in step S3. If the number of detected objects is 1, the object detection device 500 sets the imaging drive to the second imaging drive (imaging of the overall view and object 1) (step S8). The object detection device 500 determines the number of times the second subframe is accumulated in the second imaging drive to a number that allows object 1 to be properly imaged, and sets the determined number of accumulations as the drive parameter (step S9). The object detection device 500 returns to the process shown in step S3. If the number of detected objects is 2, the object detection device 500 sets the imaging drive to the third imaging drive (imaging of the overall view, object 1, and object 2) (step S10). The object detection device 500 determines the number of integration counts for the second subframe and the third subframe in the third imaging drive to a number that allows for proper imaging of object 1 or object 2, and sets the determined number of integration counts as the drive parameter (step S11). The object detection device 500 returns to the process shown in step S3. In step S6, the above describes the cases where the number of objects to be determined is 0, 1, and 2, but it is not limited to these cases. Even if three or more objects are detected, the same processing as in the flowchart above can be performed by setting one subframe for each object with a set number of integration counts that allows for proper imaging of that object.
[0101] As described above, the object detection method performed by the object detection device 100 of the embodiment includes a flying pixel detection means performed by a flying pixel detection unit 11, a flying pixel removal means performed by a flying pixel removal unit 12, and an object extraction means performed by an object detection processing unit 13. The flying pixel detection means detects flying pixels from a distance image output from the ToF camera 200. The ToF camera 200 distributes and accumulates charge in each of the multiple charge storage units CS provided in the pixel 321 in synchronization with the irradiation of an optical pulse PO, and generates a distance image using a pixel signal corresponding to the amount of charge accumulated in each of the multiple charge storage units CS. The flying pixel removal means removes the flying pixels detected by the flying pixel detection means from the IR image output from the ToF camera 200. The object detection processing means extracts objects from the IR image from which the flying pixels have been removed by the flying pixel removal means. As a result, the object detection method performed by the object detection device 100 of the embodiment can detect objects without increasing the processing load.
[0102] (Modified examples of the embodiment) Here, a modified embodiment will be described. This modified embodiment differs from the embodiment described above in that it outputs point cloud data. Point cloud data is information that represents the set of pixels corresponding to objects extracted from an IR image. By outputting data of only the extracted objects as point cloud data, the amount of data to be handled can be reduced.
[0103] Figure 16 is a diagram illustrating a modified embodiment. This figure shows a configuration similar to that of Figure 10. The object detection unit 45 of the object detection device 500 outputs pixel information of pixels corresponding to the detected object as point cloud data, based on the detection results obtained by the object detection processing unit 453.
[0104] As described above, in the object detection device 500 according to the modified embodiment, the object detection unit 45 outputs point cloud data showing pixel information of pixels corresponding to one or more detected objects. As a result, the object detection device 500 according to the modified embodiment can reduce the amount of data to be handled by outputting data of only the extracted objects as point cloud data.
[0105] The object detection devices 100 and 500 and the object detection system 1 in the above-described embodiments may be implemented in whole or in part by a computer. In that case, the program for implementing this function may be recorded on a computer-readable recording medium, and the program recorded on this recording medium may be loaded into the computer system and executed. The term "computer system" here includes hardware such as the OS and peripheral devices. The term "computer-readable recording medium" refers to portable media such as flexible disks, magneto-optical disks, ROMs, CD-ROMs, and storage devices such as hard disks built into the computer system. Furthermore, the term "computer-readable recording medium" may also include those that dynamically hold programs for a short period of time, such as communication lines used when transmitting programs via networks such as the Internet or communication lines such as telephone lines, and those that hold programs for a certain period of time, such as volatile memory inside the computer system that acts as a server or client in such cases. The program may be for implementing a part of the functions described above, or it may be a program that can implement the functions described above in combination with a program already recorded in the computer system, or it may be implemented using a programmable logic device such as an FPGA.
[0106] Although embodiments of this invention have been described in detail above with reference to the drawings, the specific configuration is not limited to these embodiments, and includes designs, device configurations, correction processes, filtering processes, etc., that do not depart from the spirit of this invention. [Explanation of Symbols]
[0107] 1. Object detection system 100, 500... Object detection devices 200...ToF camera 2...Light source section 3...Light receiving section 32... Distance image sensor 321... Pixel (pixel circuit) 323…Vertical scanning circuit 4… Distance image processing unit 41... Timing control unit 42...Distance calculation section 43...Measurement Control Unit 44...IR calculation unit 45...Object detection unit
Claims
1. A flying pixel detection means for detecting flying pixels from a distance image output from a ToF camera that distributes and accumulates charge in each of multiple charge storage units provided on a pixel in synchronization with the irradiation of light pulses, A flying pixel removal means for removing flying pixels detected by the flying pixel detection means from the IR image output from the ToF camera, An object extraction means for extracting objects from an IR image from which flying pixels have been removed by the aforementioned flying pixel removal means, A method for detecting an object having the following characteristics.
2. The flying pixel detection means detects flying pixels using the difference or ratio of the distances between pixels adjacent to the target pixel in the distance image. The object detection method according to claim 1.
3. The object extraction means is A background removal means that removes the background of the IR image output from the ToF camera using a background IR image captured in advance, A binarization means that performs binarization using a threshold for each pixel in the IR image from which the background has been removed by the background removal means, A labeling means for extracting objects by assigning labels to connected components consisting of pixels with the same pixel value in the IR image binarized by the binarization means, The object detection method according to claim 1, having the following characteristics.
4. The object extraction means is In an IR image, the labeling means determines whether or not to include connected components consisting of pixels with the same label as objects for object detection, based on the number of pixels to which the same label has been assigned. The object detection method according to claim 3.
5. A light source unit that irradiates the space to be measured with light pulses, A light receiving unit having a pixel comprising a photoelectric conversion element that generates an electric charge corresponding to incident light and a plurality of charge storage units that store the electric charge, and a pixel driving circuit that distributes and stores the electric charge in each of the charge storage units in the pixel at a timing synchronized with the irradiation of the light pulse according to the frame period, An IR calculation unit calculates an IR value based on the amount of charge accumulated in each of the charge storage units and generates an IR image, A distance calculation unit calculates the distance to an object in the space and generates a distance image based on the amount of charge accumulated in each of the charge storage units, An object detection unit extracts an object from the IR image generated by the IR calculation unit and the distance image generated by the distance calculation unit. Equipped with, The object detection unit, A flying pixel detection unit detects flying pixels from the distance image generated by the distance calculation unit, A flying pixel removal unit that removes flying pixels detected by the flying pixel detection unit from the IR image generated by the IR calculation unit, An object extraction unit performs object extraction from an IR image from which flying pixels have been removed by the aforementioned flying pixel removal unit. Having, Object detection device.
6. The flying pixel detection unit detects flying pixels using the difference or ratio of the distances between pixels adjacent to the target pixel in the distance image. The object detection device according to claim 5.
7. The measurement control unit further comprises a control unit that controls the pixel driving circuit to drive the pixels by subframe driving, in which multiple subframes are provided in one frame, sets the number of subframes provided in one frame according to the number of objects detected by the object detection unit, and assigns a subframe to each object detected by the object detection unit, with a measurement range corresponding to the distance to the object, and performs driving. The object detection device according to claim 5.
8. The measurement control unit uses one of the subframes provided in a single frame for acquiring a panoramic view, where the measurement range is the entire range measurable by the distance calculation unit. The object detection device according to claim 7.
9. The measurement control unit determines the number of integration cycles for each object from the set of pixels corresponding to one or more objects detected by the object detection unit, such that each of the charge storage units provided in the pixels does not become saturated and can store the maximum amount of charge, and assigns a subframe to drive the determined number of integration cycles. The object detection device according to claim 8.
10. The object detection unit outputs point cloud data showing pixel information of pixels corresponding to one or more detected objects. The object detection device according to claim 5.
Citation Information
Patent Citations
distance image sensor
JP4235729B2
Surrounding environment recognition device for moving body
WO2017138286A1
