Hand area detection device, hand area detection method, and computer program for detecting hand area
The hand region detection device enhances accuracy by calculating pixel confidence levels and adjusting thresholds based on hand protrusion likelihood, effectively detecting hand regions despite edge protrusion issues.
Patent Information
- Application Number
- JP2021198850
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-12-07
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-12-07
AI Technical Summary
Existing hand detection systems struggle to accurately identify hand regions in images when hands are positioned close to the camera, causing parts of the hand to protrude out of the image frame and making detection challenging.
A hand region detection device that calculates confidence levels for each pixel using a trained discriminator, adjusts detection thresholds based on the likelihood of hand protrusion at image edges, and applies weighted averaging to enhance accuracy.
The system effectively detects hand regions even when they protrude from the image edges, ensuring precise hand area identification.
Smart Images

Figure 0007544019000005 
Figure 0007544019000006 
Figure 0007544019000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a hand region detection device, a hand region detection method, and a computer program for detecting a hand region in an image. [Background technology]
[0002] There has been research into a technology for monitoring a person by detecting the face of the person from a series of time-series images obtained by continuously capturing the face of the person to be photographed using a driver monitor camera or a camera such as a Web camera. However, depending on the position of the person's hands, not only the face of the person but also the hands may be captured within the camera's shooting range. Therefore, it has been proposed to detect the hands captured in the images generated by the camera (see Patent Document 1).
[0003] The inattentiveness determination device disclosed in Patent Document 1 continuously captures the face of the driver to obtain captured images, then detects the direction of the driver's face using the captured images, and determines whether the driver is looking away based on the detection result. Furthermore, if the driver's hands are captured in the captured images, this inattentiveness determination device detects the shape of the driver's hands using the captured images. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2013-164663 A Summary of the Invention [Problem to be solved by the invention]
[0005] When the hand of a person to be photographed is photographed together with the face of the person, the hand may appear large in the image because the hand is located closer to the camera than the face. Therefore, in some cases, the hand may extend beyond one edge of the image and the entire hand may not be captured in the image. In such cases, it may be difficult to accurately detect the hand area.
[0006] Therefore, an object of the present invention is to provide a hand region detection device capable of accurately detecting a hand region in which a hand is represented on an image. [Means for solving the problem]
[0007] According to one embodiment, a hand region detection device is provided, which includes a confidence factor calculation unit that calculates a confidence factor for each pixel of the image by inputting the image to a classifier that has been trained in advance to calculate a confidence factor representing the likelihood that a hand is represented for each pixel, an overhang determination unit that determines the likelihood that a hand is overhanging the image at each of a plurality of predetermined points at an edge of the image, a threshold setting unit that sets a lower hand region detection threshold for a predetermined point that is more likely to be overhanging the image among the plurality of predetermined points and sets the hand region detection threshold for each pixel of the image to a value calculated by weighting the hand region detection thresholds for the plurality of predetermined points according to the distance from the pixel to each of the plurality of predetermined points, and a detection unit that detects, among the pixels of the image, a set of pixels whose confidence factor for that pixel is higher than the hand region detection threshold set for that pixel as a hand region representing a hand.
[0008] In this hand area detection device, it is preferable that the protrusion determination unit calculates the likelihood that the hand protrudes from the image at each of the multiple specified points by inputting the image to a protrusion classifier that has been trained in advance to calculate the likelihood that the hand protrudes from the image at each of the multiple specified points.
[0009] Alternatively, in this hand area detection device, it is preferable that the protrusion determination unit predicts the position of the hand area in the image from the hand area in each of a series of past images in a time series obtained during an immediately preceding specified period, and sets a higher likelihood that the hand protrudes from the image at a specified point among multiple specified points that is included in the predicted hand area than a certain point that is not included in the predicted hand area.
[0010] According to another embodiment, a hand region detection method is provided, which includes: inputting an image into a classifier that has been trained in advance to calculate a confidence level representing the likelihood that a hand is represented for each pixel of the image, calculating a confidence level for each pixel of the image, determining the likelihood that a hand is protruding from the image at each of a plurality of predetermined points at an edge of the image, setting a lower hand region detection threshold for a predetermined point having a higher likelihood that a hand is protruding from the image among the plurality of predetermined points, and setting the hand region detection threshold for each pixel of the image to a value calculated by weighting the hand region detection thresholds for the plurality of predetermined points according to the distance from the pixel to each of the plurality of predetermined points, and detecting, as a hand region in which a hand is represented, a set of pixels among the pixels of the image having a confidence level for the pixel higher than the hand region detection threshold set for the pixel.
[0011] According to yet another embodiment, there is provided a computer program for detecting a hand region, the computer program for detecting a hand region including instructions for causing a computer to execute the following: inputting an image into a classifier previously trained to calculate a certainty factor representing a certainty factor that a hand is represented for each pixel of the image, calculating a certainty factor for each pixel of the image, determining a certainty factor that a hand is protruding from the image at each of a plurality of predetermined points at an edge of the image, setting a lower hand region detection threshold for a predetermined point having a higher certainty factor that a hand is protruding from the image among the plurality of predetermined points, setting the hand region detection threshold for each pixel of the image to a value calculated by weighting the hand region detection thresholds for each of the plurality of predetermined points according to the distance from the pixel to each of the plurality of predetermined points, and detecting, among the pixels of the image, a set of pixels having a certainty factor for the pixel higher than the hand region detection threshold set for the pixel as a hand region in which a hand is represented. Effect of the Invention
[0012] The hand region detection device according to the present disclosure provides an effect of being able to accurately detect a hand region in which a hand is depicted on an image. [Brief description of the drawings]
[0013] [Figure 1] 1 is a schematic configuration diagram of a vehicle control system in which a hand area detection device is implemented. [Diagram 2] 1 is a hardware configuration diagram of an electronic control device that is an embodiment of a hand area detection device. [Diagram 3] FIG. 2 is a functional block diagram of a processor of an electronic control device relating to driver monitor processing including hand area detection processing. [Figure 4] 11A and 11B are diagrams illustrating an example of each predetermined point set in a face image. [Diagram 5] FIG. 1A is a diagram showing an example of an image depicting a hand, and FIG. 1B is a diagram showing an example of a hand region detection threshold set for each pixel of the image shown in FIG. [Figure 6]11 is an operation flowchart of a driver monitoring process including a hand area detection process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, a hand region detection device, a hand region detection method executed on the hand region detection device, and a computer program for detecting a hand region will be described with reference to the drawings. The hand region detection device calculates a certainty indicating the likelihood that a hand is represented at each pixel in an image showing the hand of a person to be photographed, and detects a set of pixels with a certainty higher than a hand region detection threshold as a hand region showing a hand. However, if a part of the hand protrudes from the image, a feature indicating the likelihood of a hand, such as the outline of the hand, is lost in pixels near the edge of the image where the hand protrudes. This makes it difficult to detect a hand region with high accuracy. Therefore, the hand region detection device calculates the likelihood that a hand protrudes from the image at each of a plurality of predetermined points set at the edge of the image, and sets a lower hand region detection threshold for a predetermined point with a higher certainty. Furthermore, the hand region detection device sets the hand region detection threshold for each pixel of the image to a value calculated by weighting the hand region detection threshold for each predetermined point according to the distance from the pixel to each predetermined point.
[0015] In the following, an example will be described in which the hand region detection device is applied to a driver monitor device that monitors a driver based on a series of time-series images obtained by continuously photographing the face of a vehicle driver. This driver monitor device detects a face region showing the driver's face from an image generated by a driver monitor camera provided to photograph the driver's head, and judges the driver's state based on the detection result. However, this driver monitor device does not judge the driver's state when a hand region is detected from an image by the above-mentioned hand region detection process and at least a part of the driver's face is hidden by the hand region.
[0016] FIG. 1 is a schematic diagram of a vehicle control system in which a hand region detection device is implemented. FIG. 2 is a hardware diagram of an electronic control device that is an embodiment of the hand region detection device. In this embodiment, a vehicle control system 1 that is mounted on a vehicle 10 and controls the vehicle 10 includes a driver monitor camera 2, a user interface 3, and an electronic control unit (ECU) 4 that is an example of a hand region detection device. The driver monitor camera 2, the user interface 3, and the ECU 4 are communicatively connected via an in-vehicle network that complies with a standard such as a controller area network. The vehicle control system 1 may further include a GPS receiver (not shown) for measuring the self-position of the vehicle 10. The vehicle control system 1 may further include at least one of a camera (not shown) for photographing the surroundings of the vehicle 10, or a distance sensor (not shown) such as a LiDAR or a radar for measuring the distance from the vehicle 10 to an object present around the vehicle 10. The vehicle control system 1 may further include a wireless communication terminal (not shown) for wireless communication with other devices. Furthermore, the vehicle control system 1 may include a navigation device (not shown) for searching for a travel route for the vehicle 10.
[0017] The driver monitor camera 2 is an example of a camera or an in-vehicle imaging unit, and has a two-dimensional detector composed of an array of photoelectric conversion elements, such as a CCD or C-MOS, that are sensitive to visible light or infrared light, and an imaging optical system that forms an image of an area to be photographed on the two-dimensional detector. The driver monitor camera 2 may further have a light source, such as an infrared LED, for illuminating the driver. The driver monitor camera 2 is attached, for example, on the instrument panel or in its vicinity, facing the driver so that the head of the driver seated in the driver's seat of the vehicle 10 is included in the area to be photographed, that is, so that the driver's head can be photographed. The driver monitor camera 2 photographs the driver's head at a predetermined photographing period (for example, 1 / 30 to 1 / 10 seconds) and generates an image showing the driver's face (hereinafter, for convenience of explanation, referred to as a face image). The face image obtained by the driver monitor camera 2 may be a color image or may be a gray image. Every time the driver monitor camera 2 generates a face image, it outputs the generated face image to the ECU 4 via the in-vehicle network.
[0018] The user interface 3 is an example of a notification unit, and has a display device such as a liquid crystal display or an organic EL display. The user interface 3 is installed in the vehicle interior of the vehicle 10, for example, on an instrument panel, facing the driver. The user interface 3 notifies the driver of various information received from the ECU 4 via the in-vehicle network by displaying the information. The user interface 3 may further have a speaker installed in the vehicle interior. In this case, the user interface 3 notifies the driver of various information received from the ECU 4 via the in-vehicle network by outputting the information as an audio signal. Furthermore, the user interface 3 may have a light source installed in or near the instrument panel, or a vibration device installed on the steering wheel or the driver's seat. In this case, the user interface 3 notifies the driver of the information by turning on or blinking the light source or vibrating the vibration device according to the information received from the ECU 4 via the in-vehicle network.
[0019] The ECU 4 detects the direction of the driver's face based on the facial image, and judges the state of the driver based on the direction of the face. If the driver's state is not suitable for driving, such as the driver looking away, the ECU 4 warns the driver via the user interface 3.
[0020] 2, the ECU 4 has a communication interface 21, a memory 22, and a processor 23. The communication interface 21, the memory 22, and the processor 23 may each be configured as a separate circuit, or may be integrated into a single integrated circuit.
[0021] The communication interface 21 has an interface circuit for connecting the ECU 4 to an in-vehicle network. Every time the communication interface 21 receives a facial image from the driver monitor camera 2, the communication interface 21 passes the received facial image to the processor 23. When the communication interface 21 receives information to be displayed on the user interface 3 from the processor 23, the communication interface 21 outputs the information to the user interface 3.
[0022] The memory 22 is an example of a storage unit, and includes, for example, a volatile semiconductor memory and a non-volatile semiconductor memory. The memory 22 stores various algorithms and various data used in the driver monitoring process including the hand region detection process executed by the processor 23 of the ECU 4. For example, the memory 22 stores a parameter set for defining a classifier used to calculate a confidence level indicating the likelihood that a hand is displayed. Similarly, the memory 22 stores a parameter set for defining a classifier used to calculate a protrusion degree indicating the likelihood that a hand protrudes from a face image. Furthermore, the memory 22 stores a reference table indicating the relationship between the protrusion degree and a hand region detection threshold. Furthermore, the memory 22 temporarily stores the face image received from the driver monitor camera 2 and various data generated during the driver monitoring process.
[0023] The processor 23 has one or more central processing units (CPUs) and their peripheral circuits. The processor 23 may further have other arithmetic circuits such as a logical operation unit, a numerical operation unit, or a graphic processing unit. The processor 23 executes a driver monitor process including a hand area detection process on the latest face image received by the ECU 4 from the driver monitor camera 2 at predetermined intervals.
[0024] 3 is a functional block diagram of the processor 23 related to the driver monitor process including the hand region detection process. The processor 23 has a confidence factor calculation unit 31, a protrusion determination unit 32, a threshold setting unit 33, a hand region detection unit 34, a face detection unit 35, and a state determination unit 36. Each of these units of the processor 23 is, for example, a functional module realized by a computer program running on the processor 23. Alternatively, each of these units of the processor 23 may be a dedicated arithmetic circuit provided in the processor 23. Among these units of the processor 23, the confidence factor calculation unit 31, the protrusion determination unit 32, the threshold setting unit 33, and the hand region detection unit 34 are related to the hand region detection process.
[0025] The certainty factor calculation unit 31 calculates a certainty factor that indicates the likelihood that a hand is represented for each pixel of the face image. In this embodiment, the certainty factor calculation unit 31 calculates the certainty factor for each pixel by inputting the face image to a classifier that has been trained in advance to calculate the certainty factor for each pixel of the face image.
[0026] The certainty calculation unit 31 may use a deep neural network (DNN) for semantic segmentation, such as a Fully Convolutional Network, U-Net, or SegNet, as such a classifier. Alternatively, the certainty calculation unit 31 may use a classifier according to another segmentation method, such as a random forest, as such a classifier. The classifier is trained in advance using a large number of teacher images showing hands, by a learning method corresponding to the classifier, such as the backpropagation method.
[0027] The certainty factor calculation unit 31 notifies the hand area detection unit 34 of the certainty factor for each pixel of the face image.
[0028] The protrusion determination unit 32 determines the likelihood that a hand protrudes from the face image at each of a plurality of predetermined points on the image edge of the face image. In this embodiment, the protrusion determination unit 32 calculates the protrusion degree for each predetermined point by inputting the face image to a protrusion classifier that has been trained in advance to calculate a protrusion degree that indicates the likelihood that a hand protrudes from the face image at each predetermined point.
[0029] The predetermined points are set, for example, at the midpoints of each of the top, bottom, left and right sides of the face image. Alternatively, the predetermined points may be set at positions that divide each of the top, bottom, left and right sides of the face image into 3 to 5 equal parts. Alternatively, the predetermined points may be set at each of the four corners of the face image.
[0030] Fig. 4 is a diagram showing an example of each predetermined point set in a face image. In this embodiment, as shown in Fig. 4, predetermined points 401 are set at each corner and the midpoint of each side of a face image 400. That is, in this embodiment, eight predetermined points 401 are set for the face image 400.
[0031] The protrusion classifier that calculates the degree of protrusion at each predetermined point is configured to output the degree of protrusion for each predetermined point as any value between 0 and 1. Alternatively, the protrusion classifier may be configured to output, as the degree of protrusion for each predetermined point, any value representing no protrusion (e.g., 0) or a value representing protrusion (e.g., 1).
[0032] The protrusion determination unit 32 may use, for example, a DNN having a convolutional neural network (CNN) architecture as a protrusion classifier. In this case, an output layer for calculating the degree of protrusion at each predetermined point is provided downstream of one or more convolution layers. The output layer calculates the degree of protrusion at each predetermined point by performing a sigmoid operation on the feature map calculated by each convolution layer for each predetermined point. Alternatively, the protrusion determination unit 32 may use, as the protrusion classifier, a classifier according to another machine learning method such as support vector regression. The protrusion classifier is trained in advance using a large number of teacher images in which a hand is represented and part of the hand protrudes, by a learning method corresponding to the protrusion classifier, for example, the backpropagation method.
[0033] The protrusion determination unit 32 notifies the threshold setting unit 33 of the protrusion degree calculated for each predetermined point.
[0034] The threshold setting unit 33 sets a hand region detection threshold for each pixel of the face image. In this embodiment, the threshold setting unit 33 first lowers the hand region detection threshold for each predetermined point of the face image as the degree of protrusion at that predetermined point increases. As a result, the hand region detection threshold is set lower as the possibility of the driver's hand protruding increases, so that even if the driver's hand protrudes from the face image, the hand region can be detected with high accuracy.
[0035] The threshold setting unit 33 sets the hand region detection threshold for each predetermined point according to the degree of protrusion at that predetermined point in accordance with a relational expression expressing the relationship between the degree of protrusion and the hand region detection threshold. Alternatively, the threshold setting unit 33 may set the hand region detection threshold for each predetermined point according to the degree of protrusion at that predetermined point by referring to a reference table expressing the relationship between the degree of protrusion and the hand region detection threshold.
[0036] Furthermore, for each pixel other than each predetermined point in the face image, the threshold setting unit 33 sets the hand region detection threshold for that pixel by taking a weighted average of the hand region detection thresholds for each predetermined point according to the distance from that pixel to each predetermined point. In this case, the threshold setting unit 33 may increase the weight of the hand region detection threshold for a predetermined point that is closer to the pixel of interest. Furthermore, the threshold setting unit 33 may set the weighting coefficient for a predetermined point that is farther away than the predetermined distance to 0. Therefore, the closer a pixel is to the position where the hand protrudes from the face image, the lower the hand region detection threshold that is set.
[0037] FIG. 5(a) is a diagram showing an example of an image showing a hand, and FIG. 5(b) is a diagram showing an example of a hand region detection threshold set for each pixel of the image shown in FIG. 5(a). For each pixel of the threshold image 510 shown in FIG. 5(b), the darker it is, the lower the hand region detection threshold set for the pixel at the corresponding position of the image 500 shown in FIG. 5(a). In the example shown in FIG. 5(a), the hand 501 shown in the image 500 protrudes from the image 500 at most of the left and top ends of the image 500 and at a part of the right end. Therefore, as shown in the threshold image 510 in FIG. 5(b), the closer the pixel is to the top or left end of the image 500, the lower the hand region detection threshold is set. Conversely, the closer the pixel is to the lower right corner of the image 500, the higher the hand region detection threshold is set.
[0038] The threshold setting unit 33 notifies the hand area detection unit 34 of the hand area detection threshold for each pixel of the face image.
[0039] The hand region detection unit 34 is an example of a detection unit, and for each pixel of the face image, the confidence level calculated for that pixel is compared with a hand region detection threshold set for that pixel. The hand region detection unit 34 then selects pixels with confidence levels higher than the hand region detection threshold, and detects the set of selected pixels as a hand region in which the driver's hands are represented.
[0040] The hand area detection unit 34 notifies the face detection unit 35 and the state determination unit 36 of information representing the detected hand area (e.g., a binary image having the same size as the face image and in which pixels within the hand area and pixels outside the hand area have different values).
[0041] The face detection unit 35 detects a face area showing the driver's face from the face image. For example, the face detection unit 35 detects the face area by inputting the face image to a classifier that has been trained in advance to detect the driver's face from the image. The face detection unit 35 may use a DNN having a CNN-type architecture, such as a Single Shot MultiBox Detector (SSD) or Faster R-CNN, as such a classifier. Alternatively, the face detection unit 35 may use an AdaBoost classifier as such a classifier. In this case, the face detection unit 35 sets a window in the face image and calculates a feature amount, such as a Haar-like feature amount, that is useful for determining whether or not a face is present from the window. Then, the face detection unit 35 inputs the calculated feature amount to the classifier to determine whether or not the driver's face is present in the window. The face detection unit 35 performs the above process while changing the position, size, aspect ratio, orientation, etc. of the window on the face image in various ways, and sets the window in which the driver's face is detected as the face area. The face detection unit 35 may set a window in a region other than the hand region. The classifier is trained in advance according to a predetermined learning method corresponding to the machine learning method applied to the classifier using training data including images showing faces and images not showing faces. The face detection unit 35 may also detect a face region from a face image according to another method for detecting a face region from an image.
[0042] Furthermore, the face detection unit 35 detects a plurality of feature points for each of the facial organs from the detected face region.
[0043] The face detection unit 35 can detect feature points of each organ of the face by applying a detector designed to detect the feature points to the face region in order to detect the feature points of each organ of the face. As such a detector, the face detection unit 35 can use a detector that uses information of the entire face, such as an Active Shape Model (ASM) or an Active Appearance Model (AAM). Alternatively, the face detection unit 35 can use a DNN that has been trained in advance to detect feature points of each organ of the face as a detector.
[0044] The face detection unit 35 notifies the state determination unit 36 of information indicating the face area detected from the face image (e.g., the top left coordinate, horizontal width and vertical height of the face area on the face image) and the positions of feature points of each facial organ.
[0045] The state determination unit 36 determines the state of the driver based on the feature points of the face region and each organ of the face. However, the state determination unit 36 does not determine the state of the driver when the driver's hand hides at least a part of the driver's face. For example, when the ratio of the hand region to the face image is equal to or greater than a predetermined ratio (for example, 30 to 40%), the state determination unit 36 determines that at least a part of the driver's face is hidden by the driver's hand and does not determine the state of the driver. Also, when the feature points of any organ of the face are not detected and the face region and the hand region are in contact with each other, the state determination unit 36 may determine that at least a part of the driver's face is hidden by the driver's hand. Alternatively, when the ratio of the area of the hand region to the area of the face region is equal to or greater than a predetermined ratio, the state determination unit 36 may determine that at least a part of the driver's face is hidden by the driver's hand. Therefore, even in these cases, the state determination unit 36 does not need to determine the state of the driver. Then, the state determination unit 36 sets the last determined state of the driver as the state of the driver at the current time.
[0046] In this embodiment, the state determination unit 36 compares the direction of the driver's face shown in the face area with the reference direction of the driver's face to determine whether or not the driver's state is suitable for driving the vehicle 10. The reference direction of the face is stored in advance in the memory 22.
[0047] The state determination unit 36 fits the detected facial feature points to a three-dimensional face model that represents the three-dimensional shape of the face. The state determination unit 36 then detects the facial orientation of the three-dimensional face model when each feature point best fits the three-dimensional face model as the facial orientation of the driver. Alternatively, the state determination unit 36 may detect the facial orientation of the driver based on the facial image according to another method for determining the facial orientation shown in the image. The facial orientation of the driver is represented, for example, by a combination of a pitch angle, a yaw angle, and a roll angle based on the direction directly facing the driver monitor camera 2.
[0048] The state determination unit 36 calculates the absolute value of the difference between the direction of the driver's face shown in the face area and the reference direction of the driver's face, and compares the absolute value of the difference with a predetermined face direction tolerance range. If the absolute value of the difference is outside the face direction tolerance range, the state determination unit 36 determines that the driver is looking away, that is, that the driver's state is not suitable for driving the vehicle 10.
[0049] The driver may face in a direction other than the front of the vehicle 10 in order to check the situation around the vehicle 10. However, even in such a case, if the driver is concentrating on driving the vehicle 10, the driver will not continue to face in a direction other than the front of the vehicle 10. Therefore, according to a modified example, the state determination unit 36 may determine that the driver's state is not suitable for driving the vehicle 10 if the absolute value of the difference between the direction of the driver's face and the reference direction of the driver's face is outside the permissible range of face direction for a predetermined time (e.g., several seconds) or more.
[0050] When the state determination unit 36 determines that the driver's state is not suitable for driving the vehicle 10, the state determination unit 36 generates warning information including a warning message warning the driver to face the front of the vehicle 10. The state determination unit 36 then outputs the generated warning information to the user interface 3 via the communication interface 21, thereby causing the user interface 3 to display the warning message or a warning icon. Alternatively, the state determination unit 36 causes a speaker in the user interface 3 to output a sound warning the driver to face the front of the vehicle 10. Alternatively, the state determination unit 36 turns on or blinks a light source in the user interface 3, or vibrates a vibration device in the user interface 3.
[0051] 6 is an operational flowchart of a driver monitoring process including a hand area detection process, which is executed by the processor 23. The processor 23 may execute the driver monitoring process at predetermined intervals in accordance with the following operational flowchart. Note that, among the operational flowchart shown below, the processes of steps S101 to S105 correspond to the hand area detection process.
[0052] The certainty factor calculation unit 31 of the processor 23 calculates a certainty factor representing the certainty that a hand is displayed for each pixel of the latest face image received by the ECU 4 from the driver monitor camera 2 (step S101). In addition, the protrusion determination unit 32 of the processor 23 calculates a protrusion degree representing the certainty that a hand protrudes from the face image at each of a plurality of predetermined points on the image edge of the face image (step S102).
[0053] The threshold setting unit 33 of the processor 23 sets the hand region detection threshold for each predetermined point of the face image to a lower value as the degree of protrusion at the predetermined point increases (step S103). Furthermore, for each pixel other than the predetermined point of the face image, the threshold setting unit 33 sets the hand region detection threshold for that pixel by calculating a weighted average of the hand region detection thresholds for each predetermined point according to the distance from the pixel to the predetermined point (step S104).
[0054] The hand area detection unit 34 of the processor 23 selects pixels from the face image whose confidence level is higher than a hand area detection threshold, and detects the set of selected pixels as a hand area representing the driver's hands (step S105).
[0055] The face detection unit 35 of the processor 23 detects a face area showing the driver's face from the face image, and detects feature points of each organ of the face (step S106).
[0056] The state determination unit 36 of the processor 23 determines whether or not at least a part of the driver's face is hidden by the driver's hand based on the hand region (step S107). If at least a part of the driver's face is hidden by the driver's hand (step S107-Yes), the state determination unit 36 sets the last determined state of the driver as the current state of the driver (step S108).
[0057] On the other hand, if the driver's face is not hidden by the driver's hands (step S107-No), the state determination unit 36 detects the direction of the driver's face based on the facial area and the feature points of each facial organ, and determines the state of the driver (step S109). Then, the state determination unit 36 executes a warning process or the like according to the determination result (step S110). After step S110, the processor 23 ends the driver monitor process.
[0058] As described above, the hand region detection device obtains the degree of protrusion of the hand at each of the predetermined points set at the end of the image where the hand is represented, and lowers the hand region detection threshold for each of the predetermined points with a higher degree of protrusion. The hand region detection device sets the hand region detection threshold for each pixel by taking a weighted average of the hand region detection thresholds for each of the predetermined points according to the distance from the pixel. The hand region detection device detects, as a hand region, a set of pixels in which the confidence level representing the likelihood that a hand is represented, calculated for each pixel, is higher than the hand region detection threshold. In this way, the hand region detection device sets the hand region detection threshold low near the end of the image where the hand is likely to protrude. Therefore, the hand region detection device can accurately detect pixels representing a hand even near the end of the image where the hand protrudes and where the features representing the likelihood of a hand being represented on the image are lost. As a result, the hand region detection device can accurately detect a hand region from an image.
[0059] When a series of time-series images showing hands are obtained by continuously shooting images as in the above-mentioned driver monitor camera, it is assumed that the position where the hand protrudes does not change much between consecutive images. Therefore, according to a modified example, the execution period of the processing by the protrusion determination unit 32 and the threshold setting unit 33 may be longer than the execution period of the hand region detection processing. In other words, the processing by the protrusion determination unit 32 and the threshold setting unit 33 may be performed only on one of a predetermined number of consecutively obtained face images. Then, the hand region detection unit 34 may use the hand region detection threshold of each pixel set by the processing by the protrusion determination unit 32 and the threshold setting unit 33 last executed for detecting the hand region. According to this modified example, the hand region detection device can reduce the frequency of execution of the processing by the protrusion determination unit 32 and the threshold setting unit 33, so that the amount of calculation required for the hand region detection processing in a certain period of time can be suppressed.
[0060] According to another modification, when the execution period of the protrusion determination process using the protrusion classifier is longer than the execution period of the hand region detection process, the protrusion determination unit 32 may perform protrusion determination by prediction processing on face images on which the protrusion determination process using the classifier is not performed. For example, the protrusion determination unit 32 calculates an optical flow from the hand region for each of a series of past face images obtained in a recent predetermined period, or predicts the position of the hand region in the latest face image by applying a prediction filter such as a Kalman filter. Then, the protrusion determination unit 32 estimates that the hand protrudes from the face image at a predetermined point included in the predicted hand region among the respective predetermined points. Furthermore, the protrusion determination unit 32 estimates that the hand does not protrude from the face image at a predetermined point not overlapping with the predicted hand region among the respective predetermined points. The protrusion determination unit 32 sets the protrusion degree at a predetermined point where it is estimated that the hand protrudes from the face image higher than the protrusion degree at a predetermined point where it is estimated that the hand does not protrude.
[0061] The hand region detection device according to the present embodiment may be used for other purposes, not limited to a driver monitor device. For example, the hand region detection device according to the present embodiment is preferably used for various purposes that require detection of a person's face or hands from an image obtained by a camera that captures the face of a person to be photographed, such as a Web camera or other surveillance camera. Alternatively, the hand region detection device may be used to detect a gesture made by a hand based on the detected hand region. In this case, the hand region detection device may detect a gesture according to any of various methods for detecting a gesture from a hand region.
[0062] In addition, a computer program for realizing the functions of the processor 23 of the ECU 4 according to the above embodiment or modified example may be provided in a form recorded on a computer-readable portable recording medium, such as a semiconductor memory, a magnetic recording medium, or an optical recording medium.
[0063] As described above, those skilled in the art can make various modifications to the embodiments within the scope of the present invention. [Explanation of symbols]
[0064] 1 Vehicle Control System 10 Vehicles 2 Driver monitor camera 3. User Interface 4. Electronic Control Unit (ECU) 21 Communication Interface 22 Memory 23 Processors 31 Confidence calculation part 32 Protrusion judgment section 33 Threshold setting unit 34 Hand area detection unit 35 Face detection section 36 Status determination unit
Claims
1. a certainty calculation unit that calculates a certainty for each pixel of an image by inputting the image to a classifier that has been trained in advance to calculate a certainty that each pixel represents a hand; a protrusion determination unit that determines a likelihood that a hand protrudes from the image at each of a plurality of predetermined points on an edge of the image; a threshold setting unit that sets a lower hand region detection threshold for a given point among the plurality of given points that is more likely to be a hand protruding from the image, and sets the hand region detection threshold for each pixel of the image to a value calculated by taking a weighted average of the hand region detection thresholds for the plurality of given points in accordance with a distance from the pixel to each of the plurality of given points; a detection unit that detects, among the pixels of the image, a set of pixels in which the certainty factor for the pixel is higher than the hand region detection threshold set for the pixel as a hand region in which a hand is represented; A hand region detection device having a
2. 2. The hand area detection device according to claim 1, wherein the protrusion determination unit calculates the likelihood at each of the plurality of predetermined points by inputting the image to a protrusion classifier that is trained in advance to calculate the likelihood at each of the plurality of predetermined points.
3. 2. The hand region detection device according to claim 1, wherein the protrusion determination unit predicts a position of the hand region in the image from the hand region in each of a series of time-series past images obtained in a most recent predetermined period, and sets the likelihood of a predetermined point included in the predicted hand region, among the plurality of predetermined points, to be higher than the likelihood of a predetermined point not included in the predicted hand region.
4. A hand region detection device, comprising: an image input to a classifier that is pre-trained to calculate a degree of certainty representing the likelihood that a hand is represented for each pixel of the image; and the hand region detection device determines, for each of a plurality of predetermined points at an edge of the image, a likelihood that a hand is protruding from the image at the predetermined point; the hand region detection device sets a lower hand region detection threshold for a specific point among the plurality of specific points that is more likely to include a hand protruding from the image, and sets the hand region detection threshold for each pixel of the image to a value calculated by taking a weighted average of the hand region detection thresholds for the plurality of specific points in accordance with a distance from the pixel to each of the plurality of specific points; the hand region detection device detects, among the pixels of the image, a set of pixels in which the degree of certainty for the pixel is higher than the hand region detection threshold set for the pixel as a hand region in which a hand is represented; The hand region detection method includes:
5. Calculating a confidence level for each pixel of the image by inputting the image to a classifier that has been trained to calculate a confidence level representing the likelihood that each pixel represents a hand; determining, for each of a plurality of predetermined points at an edge of the image, a likelihood that the hand is protruding from the image at the predetermined point; a hand region detection threshold is set lower for a particular point among the plurality of predetermined points that is more likely to include a hand protruding from the image, and the hand region detection threshold for each pixel of the image is set to a value calculated by taking a weighted average of the hand region detection thresholds for the plurality of predetermined points in accordance with a distance from the pixel to each of the plurality of predetermined points; Detecting a set of pixels, among the pixels of the image, in which the confidence level for the pixel is higher than the hand region detection threshold set for the pixel, as a hand region in which a hand is represented; A computer program for detecting a hand region, the computer program causing a computer to execute the above.
Citation Information
Patent Citations
Depth image-based method for carrying out hand region segmentation by utilizing MeanShift algorithm
CN107341811A
Operation input device
JP2009104297A
Transaction monitoring device
JP2010170275A
Biological authentication apparatus and method for adjusting position of hand of user in biological authentication apparatus
JP2013030099A
Inattentive driving determination device and inattentive driving determination method
JP2013164663A
