DEVICE AND METHOD FOR MEASURING VEHICLE OCCUPANT MOVED DISTANCE, AND NON-TRANSITORY COMPUTER-READABLE STORAGE MEDIUM
20230162377 · 2023-05-25
Assignee
Inventors
Cpc classification
G06V10/267
PHYSICS
G06V20/59
PHYSICS
B60Q9/00
PERFORMING OPERATIONS; TRANSPORTING
International classification
G06T7/246
PHYSICS
B60Q9/00
PERFORMING OPERATIONS; TRANSPORTING
G06V10/26
PHYSICS
Abstract
A vehicle occupant moved-distance measuring device includes a center estimator, a stable area setter, a start-point setter, and a moved-distance calculator. The center estimator estimates a center of an occupant represented by a target human image from frame images captured by an image capturing device. The stable area setter sets a stable area in which the estimated center obtained from a temporary reference image is placed at the center. The start-point setter sets, as a start point, a predefined point within the stable area when the start-point setter determines that the estimated center has remained within the stable area longer than a threshold based on estimated center obtained from subsequent images. The moved-distance calculator calculates a moved distance of the occupant based on a distance between the start point and an estimated center obtained from a measurement-target image.
Claims
1. A vehicle occupant moved-distance measuring device comprising: a center estimator configured to locate a target human image corresponding to an occupant whose moved distance is to be measured from each of time-sequential frame images obtained by an image capturing device which captures interior of a vehicle in a fixed image capturing area, and obtain an estimated center of the occupant based on the target human image; a stable area setter configured to set a stable area in which an estimated center obtained from a temporary reference image is placed at a center, the temporary reference image being one of the time-sequential frame images; a start-point setter configured to set, as a start point, a predefined point within the stable area when the start-point setter determines that the estimated center obtained from a plurality of subsequent images have remained within the stable area for a time period matching or exceeding a threshold time period, the plurality of subsequent images being a plurality of time-sequential frame images following the temporary reference image; and a moved-distance calculator configured to calculate a moved distance of the occupant represented by the target human image based on a distance between the start point and an estimated center obtained from a measurement-target image which is the time-sequential frame image following the plurality of subsequent images.
2. The vehicle occupant moved-distance measuring device according to claim 1, wherein when the estimated center obtained from the plurality of subsequent images moves out from the stable area within the threshold time period, the stable area setter resets the stable area using the subsequent image with the estimated center moved out from the stable area as the temporary reference image.
3. The vehicle occupant moved-distance measuring device according to claim 1, wherein the center estimator deems a center of a circumscribed rectangle around the target human image as the estimated center.
4. The vehicle occupant moved-distance measuring device according to claim 1, wherein the vehicle is an autonomously driven vehicle, and the vehicle occupant moved-distance measuring device further comprises a signal output unit configured to output a drive start disable signal preventing the vehicle from starting through an autonomous driving when the moved distance calculated by the moved-distance calculator is equal to or longer than a threshold distance.
5. The vehicle occupant moved-distance measuring device according to claim 1, further comprising: a notification controller configured to control an output of a notification to occupants of the vehicle when the moved distance calculated by the moved-distance calculator is equal to or longer than a threshold distance.
6. A non-transitory computer-readable storage medium in which commands executable by a computer are stored, wherein the commands cause the computer to execute: setting a stable area by locating, from a temporary reference image, a target human image corresponding to an occupant whose moved distance is to be measured, the temporary reference image being one of time-sequential frame images obtained by an image capturing device which captures interior of a vehicle in a fixed image capturing area, obtaining an estimated center of the occupant based on the target human image of the temporary reference image, setting the stable area in which the estimated center obtained from the temporary reference image is placed at a center; estimating a center in a plurality of subsequent images which are time-sequential frame images following the temporary reference image by locating the target human images from the plurality of subsequent images, obtaining an estimated center of the occupant from the plurality of subsequent images based on the target human images, determining whether or not the estimated center has remained within the stable area for a time period matching or exceeding a threshold time period based on the estimated center obtained from the plurality of subsequent images; setting, as a start point, a predefined point within the stable area when the estimated center obtained from the plurality of subsequent images is determined to have remained within the stable area for the time period matching or exceeding the threshold time period; and calculating the moved distance of the occupant represented by the target human image by locating the target human image from a measurement-target image which is the time-sequential frame image following the plurality of subsequent images, obtaining an estimated center of the occupant based on the target human image of the measurement-target image, and calculating the moved distance of the occupant represented by the target human image based on a distance between the start point and the estimated center obtained from the measurement-target image.
7. A vehicle occupant moved-distance measuring method comprising: setting a stable area by locating, from a temporary reference image, a target human image corresponding to an occupant whose moved distance is to be measured, the temporary reference image being one of time-sequential frame images obtained by an image capturing device which captures interior of a vehicle in a fixed image capturing area, obtaining an estimated center of the occupant based on the target human image of the temporary reference image, setting the stable area in which the estimated center obtained from the temporary reference image is placed at a center; estimating a center in a plurality of subsequent images which are time-sequential frame images following the temporary reference image by locating the target human images from the plurality of subsequent images, obtaining an estimated center of the occupant from the plurality of subsequent images based on the target human images, and determining whether or not the estimated center has remained within the stable area for a time period matching or exceeding a threshold time period based on the estimated center obtained from the plurality of subsequent images; setting, as a start point, a predefined point within the stable area when the estimated center obtained from the plurality of subsequent images is determined to have remained within the stable area for the time period matching or exceeding the threshold time period; and calculating the moved distance of the occupant represented by the target human image by locating the target human image from a measurement-target image which is the time-sequential frame image following the plurality of subsequent images, obtaining an estimated center of the occupant based on the target human image of the measurement-target image, and calculating the moved distance of the occupant represented by the target human image based on a distance between the start point and the estimated center obtained from the measurement-target image.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0022] Embodiments of the present disclosure will be described based on the following figures, wherein:
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
DESCRIPTION OF EMBODIMENTS
[0030]
[0031] The moved-distance measurement system 10 includes an image capturing device 12, a display 14, a voice output device 16, and a moved-distance measuring device 18.
[0032] The image capturing device 12 may be a digital camera. That is, the image capturing device 12 may include a lens and a CCD image sensor or the like to convert the light received by the lens from an object to electric signals. The CCD image sensor may be configured with CCD elements arranged in a two-dimensional array. Each CCD element may correspond to each pixel of time-sequential frame images captured by the image capturing device 12.
[0033] The image capturing device 12 is mounted inside the vehicle A and captures the interior of the vehicle A in a fixed image capturing area to obtain time-sequential frame images. In the present embodiment, the image capturing device 12 is mounted at the ceiling of the vehicle A and the image capturing area encompasses substantially the entirety of the interior of the vehicle.
[0034] In the present embodiment, the image capturing device 12 is a video camera that captures video. When the video frame rate is, for example, 30 FPS (frame per second), the captured video consists of 30 frames per second. The image capturing device 12 is not limited to a video camera as long as the device can capture time-sequential frame images of the interior of the vehicle A. For example, the image capturing device 12 may be a still camera which intermittently captures still images as the frame images. The frame images captured by the image capturing device 12 are sequentially sent to the moved-distance measuring device 18 in the captured order (in time-sequence).
[0035] The display 14 may include, for example, digital signage or an indicator. The display 14 is provided inside the vehicle A. As described in detail below, the display 14 is used to notify the occupants of the vehicle A in response to commands from the moved-distance measuring device 18.
[0036] The voice output device 16 may be, for example, a speaker. The voice output device 16 is also provided inside the vehicle A. Similarly as the display 14, the voice output device 16 is used to notify the occupants of the vehicle Ain response to commands from the moved-distance measuring device 18.
[0037]
[0038] A data input-output interface 30 may include, for example, various connectors. The moved-distance measuring device 18 may be data-communicatively connected to the image capturing device 12, the display 14, the voice output device 16, and other devices via the data input-output interface 30. For example, the data input-output interface 30 may sequentially receive frame images from the image capturing device 12. The data input-output interface 30 may send command signals to the display 14 or the voice output device 16.
[0039] A memory 32 may include, for example, an embedded multimedia card (eMMC), a read only memory (ROM), or a random access memory (RAM). The memory 32 stores a moved-distance measurement program used to operate respective units of the moved-distance measuring device 18. The moved-distance measurement program may be stored in a non-transitory computer-readable storage medium, such as a universal serial bus (USB) memory or a CD-ROM. The moved-distance measuring device 18 performs the moved-distance measurement program by reading the storage medium which stores the moved-distance measurement program.
[0040] As shown in
[0041] A processor 36 may be configured with, for example, an electronic control unit (ECU), a central processing unit (CPU), and other devices. The processor 36 is not limited to a single processing device. Multiple processing devices at physically remote locations may serve together as the processor 36. The processor 36 operates in accordance with the moved-distance measurement program stored in the memory 32 or other storage medium to provide functions as a center estimator 38, a stable area setter 40, a start-point setter 42, a moved-distance calculator 44, a signal output unit 46, and a notification controller 48. The center estimator 38 locates a target human image corresponding to the occupant whose moved distance is to be calculated from each of the frame images 34 including the temporary reference image 34a, the multiple subsequent images 34b, and the measurement-target image 34c. This locating process of the target human image from the frame images may be performed using a well-known method. For example, a background image with no occupants may be captured in advance by the image capturing device 12. The center estimator 38 may create difference images by comparing the respective frame images with the background image. The center estimator 38 may determine whether the difference images contain human images based on the sizes and shapes of objects in the difference images. The center estimator 38 may then determine whether or not the human image located in each frame image is the target occupant based on the features obtained from the human images. This process can locate the target human images corresponding to a single target occupant from the respective frame images.
[0042] Next, the center estimator 38 estimates the center of the occupant represented by the target human image based on the located target human image in each frame image. This estimation process of the center of the target human image is described below using the processes applied to the temporary reference image 34a as an example.
[0043] Although the center estimator 38 may obtain the estimated center 62 of the occupant represented by the target human image P using another method, for example, based on the shape of the target human image P, the amount of calculation to obtain the estimated center 62 can be reduced by obtaining the estimated center 62 of the occupant in the above described simple manner. In particular, as described in detail below, in the present embodiment, because the movement of the occupant is sensed in real time by sequentially obtaining the estimated center 62 of the occupant represented by the target human image P from the frame images sequentially sent from the image capturing device 12, the estimated center 62 can be obtained in a simple manner.
[0044] In response to receipt of sequential frame images from the image capturing device 12, the center estimator 38 locates the target human image P from the received frame images and obtains the estimated center 62 of the occupant represented by the target human image P.
[0045] The stable area setter 40 sets a stable area 64 in which the estimated center 62a obtained from the temporary reference image 34a is placed at the center. In the present embodiment, as shown in
[0046] As described below, the stable area 64 is used to determine whether or not the occupant represented by the target human image P has significantly changed their posture. Specifically, it is determined that the occupant has significantly changed their posture when the estimated center 62 of the occupant represented by the target human image P in the subsequent images 34b following the temporary reference image 34a moves out from the stable area 64. The size of the stable area 64 (that is the radius r) should be determined as required by a manager or other personnel of the moved-distance measurement system 10 to allow a reasonable posture change of the occupant represented by the target human image P while enabling sensing of a significant posture change of the occupant that would result in an inaccurate calculation of the moved distance of the occupant. The stable area setter 40 may vary the radius r in accordance with the size of the target human image P in the temporary reference image 34a (for example, setting a longer distance r for a larger target human image P), because the size of the target human image P becomes larger in the temporary reference image 34a when the occupant represented by the target human image P is closer to the image capturing device 12.
[0047] The start-point setter 42 determines whether or not the estimated center 62 of the target human image P has remained within the stable area 64 for a time period matching or exceeding a threshold time period predetermined by the manager or other personnel of the moved-distance measurement system 10 based on the estimated center 62 obtained from the multiple subsequent images 34b by the center estimator 38. The multiple subsequent images 34b are multiple time-sequential frame images following the temporary reference image 34a.
[0048] In the present embodiment, the start-point setter 42 checks the multiple subsequent images 34b in a time sequential order and determines whether or not the estimated center 62b represented by the coordinates is located within the stable area 64 defined by coordinates. The start-point setter 42 determines that the estimated center 62 of the occupant represented by the target human image P have remained within the stable area 64 for a time period matching or exceeding the threshold time period when all the subsequent images 34b captured in the threshold time period have the estimated centers 62b within the stable area 64 as shown in
[0049] When the start-point setter 42 determines that the estimated center 62 of the occupant represented by the target human image P have remained within the stable area 64 for a time period matching or exceeding the threshold time period, the start-point setter 42 sets a predefined position within the stable area 64 as a start point 66 from which the moved distance of the occupant is originated. The predefined position (that is, the start point 66) may be any arbitrary point within the stable area 64. For example, in the present embodiment, among the subsequent images 34b captured within the threshold time period, the estimated center 62 obtained from the last subsequent image 34b is used as the start point 66. The start point 66 may also be the center of the estimated centers 62 obtained from the multiple subsequent images 34b, or the center of the stable area 64 (that is, the estimated center 62a obtained from the temporary reference image 34a).
[0050]
[0051] In this case, the stable area setter 40 resets the stable area 64 to one based on a new temporary reference image 34a using the subsequent image 34b with the estimated center 62b outside the stable area 64 as the new temporary reference image 34a. The start-point setter 42 then repeats the above described processes to the subsequent images 34b following the new temporary reference image 34a.
[0052] The moved-distance calculator 44 calculates the moved distance of the occupant represented by the target human image P based on the distance between the start point 66 set by the start-point setter 42 and the estimated center 62 of the measurement-target image 34c which is the time-sequential frame image following the multiple subsequent images 34b.
[0053] Naturally, the distance between the start point 66 and the estimated center 62c in the coordinate system of the images differs from the moved distance of the occupant represented by the target human image P in the actual space. The moved-distance calculator 44 may calculate the moved distance of the occupant represented by the target human image P in the actual space by applying correction factors to the distance between the start point 66 and the estimated center 62c in the coordinate system of the images based on the distance between the image capturing device 12 and the start point 66, the distance between the image capturing device 12 and the estimated center 62c, the angle between the direction of incident light to a CCD element of the image capturing device 12 (in other words, light corresponding to each pixel of the frame images) and the optical axis of the camera lens of the image capturing device 12, and other values. The moved-distance calculator 44 may calculate the moved distance of the occupant represented by the target human image P in the actual space by initially defining multiple specific spots on fixed objects (for example, seats and handrails) within the image capturing area of the image capturing device 12, storing in advance distances between these specific spots in the actual space in the memory 32, and referring to the distances between the specific spots in the actual space.
[0054] The distance from the image capturing device 12 to the start point 66 or to the estimated center 62c can be obtained by the processes described below. For example, as described on the webpage published on the Internet at <https://www.global.toshiba/jp/technology/corporate/rdc/rd/topics/19/1910-03.html>, an image showing distances between the image capturing device 12 and points of the image-captured objects represented by respective pixels (defined by coordinates) of the frame images can be obtained by inputting respective frame images to a distance measurement learning unit which has been already trained. The moved-distance calculator 44 can thus obtain the distance from the image capturing device 12 to the start point 66 by inputting the subsequent images 34b (or the temporary reference image 34a) to the distance measurement learning unit, or the distance from the image capturing device 12 to the estimated center 62c by inputting the measurement-target image 34c to the distance measurement learning unit.
[0055] The moved-distance calculator 44 calculates the moved distance of the occupant represented by the target human image Pin the actual space based on the measurement-target image 34c in response to receipt of the measurement-target image 34c from the image capturing device 12. The moved-distance calculator 44 determines that the occupant has moved around when the calculated moved-distance of the occupant represented by the target human image P is equal to or longer than the threshold distance which has been set by the manager or other personnel of the moved-distance measurement system 10. The threshold distance may be set to a value greater than the moved-distance of the estimated center 62 which would be caused when the occupant merely changed their posture.
[0056] When the moved-distance calculator 44 determines that the occupant represented by the target human image P has moved around, the signal output unit 46 outputs a drive start disable signal to the autonomous drive computer to prevent the vehicle A from starting through autonomous driving. Because the autonomous drive computer is prevented from starting autonomous driving of the vehicle A, starting of the vehicle A c through autonomous driving while the occupant is moving around in the vehicle can be prevented. The autonomous drive computer is able to later restart autonomous driving after the drive start disabled state is released, for example, by an operator on board the vehicle A.
[0057] When the moved-distance calculator 44 determines that the occupant represented by the target human image P has moved around, the notification controller 48 may output a notification to the occupants of the vehicle A.
[0058] Specifically, the notification controller 48 may send a notification command signal to control the display 14 to display a notification. For example, when the display 14 is a digital signage, the notification controller 48 commands to display, as a notification to the passengers, a text message “please do not move around” or the like on the digital signage, possibly with an illustration. When the display 14 is an indicator, the notification controller 48 notifies the operator that an occupant is moving around by lighting up or flashing the indicator.
[0059] The notification controller 48 may send a notification command signal to the voice output device 16 to perform a voice notification. For example, the notification controller 48 commands the voice output device 16 to output a voice message “please do not move around” as a notification to passengers. The notification controller 48 may command the voice output device 16 to output an voice message “a passenger is moving around” as a notification to the operator.
[0060] The moved-distance measurement system 10 according to embodiments of the present disclosure is outlined below. The flow of processes performed by the moved-distance measuring device 18 are described below based on the flowchart shown in
[0061] In step S10, the moved-distance measuring device 18 receives the temporary reference image 34a from the image capturing device 12. The center estimator 38 locates, from the temporary reference image 34a, the target human image P corresponding to the occupant whose moved distance is to be calculated, and obtains the estimated center 62a of the occupant based on the located target human image P.
[0062] In step S12, the stable area setter 40 sets the stable area 64 in which the estimated center 62a obtained in step S10 is placed at the center. Steps S10 and S12 are referred to as the step of “setting a stable area”.
[0063] In step S14, the moved-distance measuring device 18 receives the subsequent images 34b from the image capturing device 12. The center estimator 38 locates the target human image P from the subsequent images 34b and obtains the estimated center 62b of the occupant represented by the target human image P.
[0064] In step S16, the start-point setter 42 determines whether or not the estimated center 62b represented by the coordinates obtained in step S14 is within the stable area 64 which has been set in step S12. When the estimated center 62b is outside the stable area 64, the process proceeds to step S18.
[0065] In step S18, the stable area setter 40 replaces the temporary reference image 34a with the subsequent image 34b with the estimated center 62 outside the stable area 64. Then, again in step S12, the stable area setter 40 sets the stable area 64 in the new temporary reference image 34a.
[0066] When the estimated center 62b is within the stable area 64 in step S16, the process proceeds to step S20, in which the start-point setter 42 determines whether or not the process to determine whether or not the estimated center 62b is within the stable area 64 has been performed for all the subsequent images 34b captured within the threshold time period after the temporary reference image 34a was captured. When this process has not been completed for all the subsequent images 34b captured within the threshold time period, the process returns to step S14. Again in step S14, the moved-distance measuring device 18 receives the next subsequent image 34b from the image capturing device 12, and the center estimator 38 locates the target human image P from the subsequent image 34b and obtains the estimated center 62b of the occupant represented by the target human image P. When the process has been completed for all the subsequent images 34b captured within the threshold time period, the process proceeds to step S22. Steps S14, S16, and S20 are collectively referred to as the step of “estimating the center”.
[0067] In step S22, the start-point setter 42 sets, as the start point 66, a predefined position within the stable area 64 which has been set in step S12. Step S22 is referred to as the step of “setting the start point”.
[0068] In step S24, the moved-distance measuring device 18 receives the measurement-target image 34c from the image capturing device 12. The center estimator 38 locates the target human image P from the measurement-target image 34c, and obtains the estimated center 62c of the occupant represented by the target human image P.
[0069] In step S26, the moved-distance calculator 44 calculates the moved distance of the occupant represented by the target human image P in the actual space based on the distance between the start point 66 and the estimated center 62c. Step S26 is referred to as the step of “calculating the moved distance”. When the moved distance of the occupant calculated by the moved-distance calculator 44 is equal to or longer than the threshold distance, the signal output unit 46 outputs, to the autonomous drive computer, the drive start disable signal to prevent the vehicle A from starting through autonomous driving. Further, when the moved distance of the occupant calculated by the moved-distance calculator 44 is equal to or longer than the threshold distance, the notification controller 48 controls the display 14 and/or the voice output device 16 to output a notification to the occupants of the vehicle A.
[0070] Although the vehicle occupant moved-distance measuring device according to embodiments of the present disclosure are described above, the device is not limited to the above embodiments. Various changes are applicable without deviating from the scope of the present disclosure.
[0071] For example, although in the embodiments described above the moved-distance measuring device 18 is mounted inside the vehicle A, the moved-distance measuring device 18 may be a computer external to the vehicle A (for example, a server computer). In such a case, the frame images captured by the image capturing device 12 are sequentially sent to the moved-distance measuring device 18 via communication lines, and the moved-distance measuring device 18 calculates the moved distance of the occupant of the vehicle A using the above described processes based on the image frames received via the communication lines.