Head discrimination device, computer program, and storage medium

The head discrimination device enhances head detection accuracy in vehicle interiors by compressing image data and using a support vector machine to identify high-likelihood regions, addressing processing load and classification inaccuracies.

JP7564611B2Active Publication Date: 2024-10-09KK TOKAI RIKA DENKI SEISAKUSHO +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2019023625
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2019-02-13
Publication Date
2024-10-09
Estimated Expiration
2039-02-13

AI Technical Summary

Technical Problem

Existing image acquisition conditions during learning may differ from actual conditions, leading to inaccurate classification of occupant heads in vehicle interiors, and this can increase processing load.

Method used

A head discrimination device that compresses original image data to generate smaller compressed data, sets detection areas based on head size, and uses a classifier to identify high-likelihood regions based on image brightness features, employing a support vector machine for accurate head detection while reducing processing load.

Benefits of technology

Improves the accuracy of identifying occupant heads in vehicle interiors by emphasizing general features and reducing data processing load, allowing for efficient and precise head detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007564611000003
    Figure 0007564611000003
  • Figure 0007564611000004
    Figure 0007564611000004
  • Figure 0007564611000005
    Figure 0007564611000005
Patent Text Reader

Abstract

To increase the accuracy in determining a head of an occupant in a photographed cabin using a discriminator while suppressing an increase in a processing load.SOLUTION: A processor receives original image data corresponding to an original image including a photographed cabin and including a plurality of pieces of original pixel data, generates compression image data including a plurality of pieces of compression pixel data fewer than the plurality of pieces of original pixel data by compressing the original image data, sets a detection window defined based on the size of a head within the compression image data, and inputs a feature amount regarding the luminance of each of pixel data included in the detection window to a discriminator. The discriminator has learned an image including at least a photographed head as teacher data to determine the photographed head of an occupant based on the feature amount regarding the luminance of the image. The processor identifies at least one of the detection window in which the discrimination result by the discriminator indicates that the photographed head of the occupant is highly likely to be included, as a highly probable area.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an apparatus for identifying the head of an occupant in an image of a vehicle interior, and also to a computer program executed by a processor included in the apparatus, and a storage medium on which the computer program is stored. [Background technology]

[0002] As disclosed in Patent Document 1, a device is known that uses a support vector machine to determine whether an object included in an image is a detection target. The support vector machine is a classifier generated by learning the feature amounts of objects that are detection targets and the feature amounts of objects that are not detection targets. Such a classifier can be used, for example, to determine the head of an occupant in an image of a vehicle interior. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2010-243451 A Summary of the Invention [Problem to be solved by the invention]

[0004] The image acquisition conditions assumed during learning may differ from the actual image acquisition conditions. In such cases, the classifier may make an erroneous judgment.

[0005] An object of the present invention is to improve the accuracy of discrimination of the head of an occupant in an image captured inside a vehicle cabin by a classifier while suppressing an increase in the processing load. [Means for solving the problem]

[0006] One aspect of the present invention to achieve the above object is a head discrimination device, comprising: an input interface for receiving original image data including a plurality of original pixel data corresponding to an original image including an image of the vehicle interior; a processor that uses a classifier that has been trained using images including at least the captured head as training data to identify the captured head of an occupant based on a feature amount related to the brightness of the image, and that identifies the captured head of the occupant included in the original image based on the original image data; Equipped with The processor, generating compressed image data including a plurality of compressed pixel data that is smaller than the plurality of original pixel data by compressing the original image data; A detection area is set in the compressed image data, the detection area being determined based on the size of the head; A feature amount relating to luminance of each pixel data included in the detection area is input to the classifier; At least one of the detection regions, which is indicated by a classification result by the classifier to be highly likely to include the head of the captured image of the occupant, is identified as a high likelihood region.

[0007] One aspect for achieving the above object is a computer program that uses a classifier that has been trained using an image including at least the captured head as training data in order to discriminate the captured head of an occupant based on a feature amount related to the brightness of the image, and causes a processor to discriminate the captured head of an occupant included in the original image based on original image data that corresponds to the captured original image including the vehicle interior and includes a plurality of original pixel data, When the computer program is executed, the processor: compressing the original image data to generate compressed image data including a plurality of compressed pixel data that are smaller than the original pixel data; A detection area is set in the compressed image data based on a size of a head; A feature amount relating to luminance of each pixel data included in the detection area is input to the classifier; At least one of the detection regions, which is indicated by a classification result by the classifier to be highly likely to include the head of the imaged occupant, is identified as a high likelihood region.

[0008] According to this configuration, the compressed image data generated by compressing the original image data corresponding to the original image is subjected to detection of a feature amount related to the brightness of the image and input of the feature amount to a classifier. By compressing the image, the relatively rough features of the object included in the image are emphasized, so that not only is it easier to detect the feature amount but also the amount of data to be processed is reduced. Therefore, it is possible to improve the accuracy of the classifier in distinguishing the head of the imaged occupant while suppressing an increase in the processing load related to the detection of the feature amount, input to the classifier, and judgment of the high likelihood region.

[0009] The above-mentioned head recognition device can be configured as follows. If a plurality of high likelihood regions are identified, the processor obtaining a likelihood corresponding to a possibility that the captured image of the occupant's head is present for each of the plurality of high likelihood regions; One of the plurality of high likelihood regions having the highest likelihood is selected as a candidate region including the imaged head of the occupant.

[0010] The above computer program can be configured as follows. If a plurality of high likelihood regions are identified, the processor obtaining a likelihood corresponding to a possibility that the captured image of the head of an occupant is present for each of the plurality of high likelihood regions; One of the plurality of high likelihood regions having the highest likelihood is selected as a candidate region including the imaged head of the occupant.

[0011] According to this configuration, even if a plurality of high likelihood regions are identified as the classification results by the classifier, a candidate region including the imaged head of the occupant can be identified through simple processing, and as a result, an increase in the processing load for identifying the imaged head of the occupant can be suppressed.

[0012] The above-mentioned head recognition device can be configured as follows. If multiple high likelihood regions having overlapping portions are identified, the processor aggregates the multiple high likelihood regions to generate at least one aggregated high likelihood region.

[0013] The above computer program can be configured as follows. If multiple overlapping high likelihood regions are identified, the processor is caused to aggregate the multiple high likelihood regions to generate at least one aggregated high likelihood region.

[0014] According to this configuration, even if a large number of high-likelihood regions are identified as the classification results by the classifier, the process of identifying a candidate region including the imaged head of the occupant can be simplified, and as a result, an increase in the processing load for identifying the imaged head of the occupant can be suppressed.

[0015] The above-mentioned head recognition device can be configured as follows. The integrated high likelihood region has a rectangular shape that includes the multiple high likelihood regions.

[0016] The above computer program can be configured as follows. The integrated high likelihood region has a rectangular shape that includes the multiple high likelihood regions.

[0017] According to this configuration, the process for generating the integrated high-likelihood region can be simplified, and as a result, an increase in the processing load for identifying the head of an occupant in an image can be suppressed.

[0018] The above-mentioned head recognition device can be configured as follows. When the integrated high likelihood region is generated, the processor obtaining a likelihood corresponding to a possibility that the captured image of the head of the occupant is present for each of the plurality of high likelihood regions included in the integrated high likelihood region; Based on the likelihood, a region that is included in the integrated high likelihood region and has the same size as the detection region is identified as a candidate region that includes the imaged head of the occupant.

[0019] The above computer program can be configured as follows. When the integrated high likelihood region is generated, the processor obtaining a likelihood corresponding to a possibility that the captured image of the head of an occupant is present for each of the plurality of high likelihood regions included in the integrated high likelihood region; Based on the likelihood, a region that is included in the integrated high likelihood region and has the same size as the detection region is specified as a candidate region that includes the imaged head of the occupant.

[0020] According to this configuration, the candidate region including the captured head of the occupant can be limited to a narrower range than the combined high likelihood region, thereby improving the accuracy of identifying the captured head of the occupant.

[0021] The above-mentioned head recognition device can be configured as follows. The processor identifies the high likelihood region without changing the size of the detection region.

[0022] The above computer program can be configured as follows. The processor is caused to identify the high likelihood region without changing the size of the detection region.

[0023] With this configuration, the time required for processing can be reduced compared to when a high-likelihood region is identified using a plurality of detection windows of different sizes.

[0024] The above-mentioned head recognition device can be configured as follows. The feature amount is HOG (Histograms of Oriented Gradients).

[0025] The above computer program can be configured as follows. The feature amount is HOG (Histograms of Oriented Gradients).

[0026] According to this configuration, the edges of the head can be detected with a relatively high degree of accuracy, and therefore the accuracy of identifying the head of the captured image of the occupant can be improved.

[0027] The above-mentioned head recognition device can be configured as follows. The classifier is a support vector machine.

[0028] The above computer program can be configured as follows. The classifier is a support vector machine.

[0029] According to such a configuration, a classifier with high generalization performance can be obtained, so that the accuracy of identifying the image of the occupant's head can be improved.

[0030] The above-mentioned head recognition device can be configured as follows. The input interface receives the original image data from a Time of Flight (TOF) camera.

[0031] The above computer program can be configured as follows. The raw image data is acquired from a Time of Flight (TOF) camera.

[0032] According to this configuration, position information in three-dimensional space can be added to the raw image data acquired by the processor. By referring to the position information as necessary, it becomes possible to perform processing such as verifying the accuracy of the identification result of the captured image of the occupant's head. Therefore, it is possible to improve the accuracy of identification of the captured image of the occupant's head.

[0033] One aspect for achieving the above object is a storage medium storing the above computer program. Effect of the Invention

[0034] According to the present invention, it is possible to improve the accuracy of discrimination of the head of an occupant in an image captured inside a vehicle compartment by a classifier while suppressing an increase in the processing load. [Brief description of the drawings]

[0035] [Figure 1] 1 illustrates an example of a configuration of a head recognition system according to an embodiment. [Diagram 2] 2 illustrates an example of a part of a vehicle in which the head recognition system of FIG. 1 is installed. [Diagram 3] 2 is a diagram for explaining a process executed by the head discrimination device of FIG. 1. FIG. [Figure 4] 2 illustrates an example of a process flow executed by the head recognition device of FIG. 1. [Diagram 5] 2 is a diagram for explaining a process executed by the head discrimination device of FIG. 1. FIG. [Figure 6] 2 is a diagram for explaining a process executed by the head discrimination device of FIG. 1. FIG. [Figure 7] 2 illustrates an example of a process flow executed by the head recognition device of FIG. 1. [Figure 8] 2 is a diagram for explaining a process executed by the head discrimination device of FIG. 1. FIG. [Figure 9] 2 is a diagram for explaining a process executed by the head discrimination device of FIG. 1. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0036] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The following embodiments will be described in detail with reference to the accompanying drawings. In the drawings used in the following description, the scale of each component is appropriately changed so that it can be recognized.

[0037] Fig. 1 shows a schematic configuration of a head discrimination system 1 according to one embodiment. The head discrimination system 1 includes an imaging device 2 and a head discrimination device 3. Fig. 2 shows a part of a vehicle 4 on which the head discrimination system 1 is mounted. Arrow L indicates the direction along the front-rear direction of the vehicle 4. Arrow H indicates the direction along the height direction of the vehicle 4.

[0038] The imaging device 2 is disposed at an appropriate position in the cabin 41 of the vehicle 4 shown in Fig. 2, and obtains an original image OI including an image of the cabin 41. Fig. 3(A) shows an example of the original image OI. The original image OI includes an image of the driver 5. The driver 5 is an example of a passenger. An arrow W indicates a direction along the left-right direction of the vehicle 4.

[0039] 1, the imaging device 2 outputs original image data ID1 corresponding to an acquired original image OI. The original image data ID1 includes a plurality of original pixel data. Each of the plurality of original pixel data is associated with a corresponding one of a plurality of pixels constituting the acquired original image OI.

[0040] The head discrimination device 3 is mounted at an appropriate position in the vehicle 4. The head discrimination device 3 is a device for discriminating the head 51 of the driver 5 in the vehicle compartment 41 that has been imaged, based on the original image data ID1 provided from the imaging device 2.

[0041] The head discrimination device 3 includes an input interface 31. The input interface 31 receives the original image data ID1 output from the imaging device 2.

[0042] The head discrimination device 3 includes a processor 32. The processor 32 uses a discriminator to execute processing for discriminating the captured head 51 of the driver 5 based on the raw image data ID1 input to the input interface 31. The discriminator is configured by learning images including at least the captured head as training data in order to discriminate the captured head of an occupant based on a feature amount related to the brightness of the image. The discriminator is the name of a processing algorithm executed by the processor 32.

[0043] The flow of the process performed by the processor 32 will be described with reference to Fig. 4. As described above, the processor 32 first acquires the original image data ID1 through the input interface 31 (STEP 1).

[0044] Next, the processor 32 compresses the original image data ID1 to generate compressed image data ID2 (STEP 2). Fig. 3(B) shows compressed image data ID2 generated from the original image data ID1 shown in Fig. 3(A). The compressed image data ID2 includes a plurality of compressed pixel data. The compressed pixel data is smaller than the original pixel data. For example, the original image data ID1 includes 320 x 240 pieces of original pixel data. The compressed image data ID2 includes 160 x 120 pieces of compressed pixel data. The image compression technology used appropriately is itself well known, so a detailed description will be omitted.

[0045] Next, the processor 32 sets a detection window DW in the compressed image data ID2 as shown in Fig. 5(A) (STEP 3 in Fig. 4). The detection window DW defines a basic unit of an area that is the target of processing for detecting a feature amount related to luminance of the image corresponding to the compressed image data ID2. The detection window DW is an example of a detection area.

[0046] In this embodiment, a histogram of oriented gradients (HOG) is detected as a feature amount. HOG is a feature amount that indicates a distribution of gradient directions of local brightness in an image.

[0047] 5B shows a specific configuration of the detection window DW. The size of the detection window DW is determined based on the size of the head 51 of the driver 5 that may be included in the original image OI acquired by the imaging device 2. For example, if the maximum size that the head 51 may have in the original image OI is 96×112 pixels, the size of the detection window DW set in the compressed image data ID2 may be 48×56 pixels based on the compression ratio.

[0048] A detection cell DC and a detection block DB are defined within the detection window DW. The detection cell DC is the smallest unit of an area set for detecting HOG. In this embodiment, the size of the detection cell DC is 8×8 pixels. The detection block DB is an area having a size of 3×3 cells.

[0049] HOG detection is performed for each of the nine detection cells DC included in the detection block DB. That is, nine cells of HOG are detected for the detection block DB located in the upper left corner of the detection window DW shown in FIG. 5B. When HOG is detected for all detection cells DC included in the detection block DB, the position of the detection block DB in the detection window DW is changed. Specifically, the detection block DB is moved rightward by eight pixels (i.e., one cell). Nine cells of HOG are detected in the same manner for all detection cells DC included in the detection block DB at the position after the movement.

[0050] In this manner, HOG detection is repeated while the detection block DB moves to the right. When the detection block DB reaches the right end of the detection window DW, it is moved downward by eight pixels (i.e., one cell), and HOG detection is repeated while moving leftward within the detection window DW. When the detection block DB reaches the left end of the detection window DW, it is moved downward by a further eight pixels, and HOG detection is repeated while moving rightward again within the detection window DW. The above process is repeated until the detection block DB reaches the lower right corner of the detection window DW.

[0051] In (A) of Fig. 5, the detection window DW is located in the upper left corner of the compressed image data ID2. When HOG detection is completed while moving the detection block DB for the detection window DW at this position, classification is performed by the classifier (STEP 4 in Fig. 4). The classifier is configured to determine the likelihood corresponding to the possibility that the image contains a head through machine learning using images including the head and images not including the head as training data. In this embodiment, the classifier is a soft margin SVM (Support Vector Machine) using an RBF kernel function. The likelihood is calculated as an SVM score.

[0052] Specifically, the processor 32 inputs the HOG distribution obtained for the detection window DW to a classifier. The classifier calculates an SVM score for the detection window DW. If the calculated SVM score is equal to or greater than a predetermined value, the processor 32 determines that there is a high probability that the image within the detection window DW contains the head 51 of the driver 5, and identifies the region in which the detection window DW is located as a high likelihood region (STEP 5 in FIG. 4).

[0053] When a high likelihood region is determined based on matching with the classifier, the position of the detection window DW in the compressed image data ID2 is changed. Specifically, the detection window DW is moved to the right by 8 pixels (i.e., 1 cell). HOG is detected in the same manner for all detection cells DC included in the detection window DW at the position after the movement, and classification is performed by the classifier.

[0054] In this manner, HOG detection and classification by the classifier are repeated as the detection window DW moves to the right. When the detection window DW reaches the right end of the compressed image data ID2, it is moved downward by eight pixels (i.e., one cell), and HOG detection and classification by the classifier are repeated as it moves leftward within the compressed image data ID2. When the detection window DW reaches the left end of the compressed image data ID2, it is moved downward by another eight pixels, and HOG detection and classification by the classifier are repeated as it moves rightward again within the compressed image data ID2. The above process is repeated until the detection window DW reaches the lower right corner of the compressed image data ID2 (NO in STEP 6 in FIG. 4).

[0055] Note that when constructing a classifier, machine learning is performed by detecting HOGs in images serving as training data using a method similar to that described above.

[0056] 6A shows an example of a high likelihood region HA identified in compressed image data ID2. This high likelihood region HA is obtained as a result of an SVM score equal to or greater than a predetermined value being calculated by classification using a classifier when the detection window DW is located at the position shown in the figure.

[0057] As a result of the classifier identifying all positions of the detection window DW (YES in STEP 6 of Figure 4), if only one high-likelihood region HA is identified, the processor 32 identifies the position of the high-likelihood region HA in the compressed image data ID2 as a candidate position of the head 51 of the imaged driver 5 (STEP 7 of Figure 4).

[0058] As shown in Fig. 1, the head discrimination device 3 includes an output interface 33. The output interface 33 can output data HD indicating candidate positions of the head 51 of the identified driver 5. The output data HD is used in a subsequent recognition process. In the recognition process, for example, the direction, inclination, movement, and the like of the head 51 of the driver 5 can be recognized by monitoring the change over time in the position of the head 51 indicated by the data. This can detect abnormal behavior of the driver 5 while driving, such as looking away from the driver, falling asleep, or having a seizure.

[0059] The subsequent recognition process may be performed by the processor 32, or may be performed by a processor other than the processor 32. In other words, the output interface 33 may be a physical interface or a logical interface.

[0060] According to the above-mentioned configuration, for compressed image data ID2 generated by compressing original image data ID1 corresponding to an original image OI acquired by the imaging device 2, feature amounts related to the brightness of the image are detected and the feature amounts are input to a classifier. By compressing the image, relatively rough features of objects included in the image are emphasized, so that not only is it easier to detect the feature amounts, but the amount of data to be processed is reduced. Therefore, it is possible to improve the accuracy of the classifier in distinguishing the head 51 of the imaged driver 5 while suppressing an increase in the processing load related to the detection of the feature amounts, input to the classifier, and determination of the high likelihood region.

[0061] The high likelihood region HA may be identified without changing the size of the detection window DW. In other words, the processor 32 may identify the high likelihood region HA using only a detection window DW having a single size.

[0062] According to such a configuration, the time required for processing can be reduced compared to a case where the high likelihood region HA is identified using a plurality of types of detection windows with different sizes.

[0063] Fig. 7 illustrates a specific process that may be executed by the processor 32 to identify (STEP 7 in Fig. 4) a candidate region including the imaged head 51 of the driver 5. The flow of the process described with reference to (A) in Fig. 6 corresponds to the case where YES is determined in STEP 71 and STEP 72 is executed.

[0064] As a result of the classification by the classifier at all positions of the detection window DW, a plurality of distant high likelihood regions HA may be identified (NO in STEP 71 and NO in STEP 73). In the example shown in (B) of Fig. 6, a first high likelihood region HA1 is identified near the head 51 of the imaged driver 5, and a second high likelihood region HA2 is identified near the imaged steering wheel.

[0065] In such a case, the processor 32 acquires an SVM score for each high likelihood region HA in order to identify a candidate position of the head 51 of the imaged driver 5. The processor 32 compares the acquired multiple SVM scores and selects the high likelihood region HA associated with the highest SVM score as a candidate region including the head 51 of the imaged driver 5 (STEP 74 in FIG. 7).

[0066] In the example shown in (B) of Fig. 6, the SVM score associated with the first high likelihood region HA1 and the SVM score associated with the second high likelihood region HA2 are compared. In this example, it is assumed that the SVM score associated with the first high likelihood region HA1 is higher than the SVM score associated with the second high likelihood region HA2. In this case, the processor 32 specifies the first high likelihood region HA1 as a candidate region including the captured head 51 of the driver 5 (STEP 72 in Fig. 7). The second high likelihood region HA2 is released from being recognized as a high likelihood region.

[0067] According to such a configuration, even if a plurality of high likelihood regions HA are identified as the classification results by the classifier, a candidate region including the head 51 of the imaged driver 5 can be identified through simple processing. As a result, an increase in the processing load for identifying the head 51 of the imaged driver 5 can be suppressed.

[0068] As a result of the classification by the classifier at the positions of all detection windows DW, multiple high likelihood regions having overlapping portions may be identified (YES in STEP 73). In the example shown in (A) of Fig. 8, multiple high likelihood regions HA having overlapping portions are identified near the head 51 of the imaged driver 5. Similarly, multiple high likelihood regions having overlapping portions are identified near the imaged steering wheel.

[0069] In such a case, as shown in (B) of Fig. 8, the processor 32 integrates the multiple high likelihood regions HA to generate a single integrated high likelihood region IHA (STEP 75 of Fig. 7). In this example, a first integrated high likelihood region IHA1 is generated near the captured head 51 of the driver 5, and a second integrated high likelihood region IHA2 is generated near the captured steering wheel.

[0070] Since multiple integrated high-likelihood regions IHA exist in the compressed image data ID2 (NO in STEP 76), the processor 32 acquires an integrated SVM score for each integrated high-likelihood region IHA in order to identify candidate positions of the head 51 of the captured driver 5. The integrated SVM score is acquired as the sum of the SVM scores of the multiple high-likelihood regions HA forming the integrated high-likelihood region IHA. The sum may be replaced with any of the average value, the median value, and the mode value.

[0071] The processor 32 compares the multiple obtained integrated SVM scores and selects the integrated high-likelihood region IHA corresponding to the highest integrated SVM score as a candidate region containing the head 51 of the imaged driver 5 (STEP 77).

[0072] In the example shown in FIG. 8B, the integrated SVM score associated with the first integrated high likelihood region IHA1 and the integrated SVM score associated with the second integrated high likelihood region IHA2 are compared. In this example, it is assumed that the integrated SVM score associated with the first integrated high likelihood region IHA1 is higher than the integrated SVM score associated with the second integrated high likelihood region IHA2. In this case, the processor 32 selects the first integrated high likelihood region IHA1. The second integrated high likelihood region IHA2 is released from recognition as a high likelihood region.

[0073] According to such a configuration, even when a large number of high likelihood regions HA are identified as the classification results by the classifier, it is possible to simplify the process of identifying a candidate region including the head 51 of the imaged driver 5. As a result, it is possible to suppress an increase in the processing load for identifying the head 51 of the imaged driver 5.

[0074] In this embodiment, the integrated high likelihood region IHA has a rectangular shape that includes all the high likelihood regions HA. As shown in (A) of Fig. 9, all the high likelihood regions HA are located inside the four sides that form the integrated high likelihood region IHA.

[0075] According to this configuration, the process for generating the integrated high likelihood area IHA can be simplified, and as a result, an increase in the processing load for identifying the head 51 of the driver 5 captured in an image can be suppressed.

[0076] However, the integrated high likelihood region IHA may be generated so as to have a contour shape formed by the outer edges of the parts of each high likelihood region HA that do not overlap with other high likelihood regions HA. In the case of the arrangement example of multiple high likelihood regions HA shown in (A) of FIG. 9, the integrated high likelihood region IHA has a contour shape formed by the outer edges of the upper end and the left end of the high likelihood region HA located at the upper left, the outer edges of the lower end and the right end of the high likelihood region HA located at the lower right, and the outer edges of the upper right corner and the lower left corner of the high likelihood region HA located between them. That is, the contour of the integrated high likelihood region IHA in this case has step-shaped portions at the upper right corner and the lower left corner.

[0077] 9A shows a state in which one integrated high-likelihood region IHA has been identified as a candidate region including the captured head 51 of the driver 5 (YES in STEP 76 of FIG. 7, or after completion of STEP 77). The processor 32 may perform processing to further narrow the range of the candidate region (STEP 78).

[0078] Specifically, a weighted average calculation is performed for the integrated high likelihood regions HA, taking into account the SVM score as a weight. When the integrated high likelihood region IHA is formed by n high likelihood regions HA1, HA2, ..., HAn, the following equation is obtained.

[0079]

number

[0080] In the above formula, x and y respectively represent the horizontal and vertical coordinates in the compressed image data ID2. (x1, y1), (x2, y2), ..., (x n ,y n ) represent the coordinates of the upper left corner of each high likelihood region HA. n represents the SVM score associated with each high likelihood region HA. a ,y a) represents the coordinates of the average upper left corner position, but since it is weighted by the SVM score, it receives a large contribution from the high-likelihood region HA, which has a higher SVM score than the simple average.

[0081] As a result, as shown in FIG. 9B, a pixel with the same area as the detection window DW and the coordinates of the upper left corner are (x a ,y a The processor 32 identifies the average high likelihood region AHA as a candidate region including the head 51 of the imaged driver 5 (STEP 72 in FIG. 7).

[0082] According to this configuration, the candidate region including the captured head 51 of the driver 5 can be limited to a range narrower than the integrated high-likelihood region IHA. This can improve the accuracy of identifying the captured head 51 of the driver 5.

[0083] The above-mentioned functions of the processor 32 may be realized by a general-purpose microprocessor that operates in cooperation with a general-purpose memory. Examples of the general-purpose microprocessor include a CPU, an MPU, and a GPU. Examples of the general-purpose memory include a ROM and a RAM. In this case, the ROM may store a computer program that executes the above-mentioned processing. The ROM is an example of a storage medium that stores a computer program. The processor 32 specifies at least a part of the program stored in the ROM, deploys it on the RAM, and executes the above-mentioned processing in cooperation with the RAM. The processor 32 may be realized by a dedicated integrated circuit such as a microcontroller, an ASIC, or an FPGA that can execute a computer program that realizes the above-mentioned processing. The processor 32 may be realized by a combination of a general-purpose microprocessor and a dedicated integrated circuit.

[0084] 1, the head discrimination device 3 can be configured to be able to communicate with an external server 7 via a network 6. In this case, a computer program for executing the above-mentioned processes can be downloaded from the external server 7 via the network 6. The external server 7 is an example of a storage medium that stores a computer program.

[0085] A TOF (Time of Flight) camera may be used as the imaging device 2. The TOF camera includes a light-emitting element and a light-receiving element. The light-emitting element emits, for example, infrared light as detection light. The emitted detection light is reflected by an object and enters the light-receiving element as return light. The distance to the object that generated the return light is calculated by measuring the time from when the detection light is emitted from the light-emitting element to when the return light enters the light-receiving element. By calculating the distance for each of a plurality of pixels that constitute an image acquired by the TOF camera, each pixel includes distance information d(U,V) indicating the distance (depth) to a part of the object corresponding to the pixel in addition to the two-dimensional position coordinates (U,V) in the image.

[0086] Therefore, each of the multiple original pixel data included in the raw image data ID1 output from the TOF camera includes position coordinates (U, V) and distance information d(U, V). That is, each of the multiple original pixel data has position information in three-dimensional space.

[0087] The position coordinates (U, V) and distance information d(U, V) contained in each original pixel data are expressed as the image center coordinates (c X ,c Y ), it can be converted to a point (X, Y, Z) in three-dimensional space in the camera coordinate system using the following equation, where f represents the focal length of the lens of the TOF camera.

[0088]

number

[0089] The processor 32 converts the position coordinates (U, V) and distance information d(U, V) into a point (X, Y, Z) in a three-dimensional space in the camera coordinate system based on the above formula. Note that the conversion from the position coordinates (U, V) and distance information d(U, V) into a point (X, Y, Z) in a three-dimensional space in the camera coordinate system may be performed by a processor built into the TOF camera. In this case, each of the multiple original pixel data included in the original image data ID1 output from the TOF camera includes position coordinates (X, Y, Z).

[0090] Position coordinates (X, Y, Z) in the camera coordinate system can be converted into position coordinates (L, W, H) in a vehicle coordinate system with a specific position in the vehicle 4 as the origin. For example, if a specific position in the driver's seat is taken as the origin, the coordinate value of the W axis takes a positive value to the right of the origin as seen by the driver 5, and a negative value to the left of the origin. For example, the coordinate value of the L axis takes a positive value in front of the origin, and a negative value behind the origin. For example, the coordinate value of the H axis takes a positive value above the origin, and a negative value below the origin.

[0091] The processor 32 converts each original pixel data from its position coordinates (X,Y,Z) in the camera coordinate system to its position coordinates (L,W,H) in the vehicle coordinate system. The origin is selected as a position corresponding to the hipbone of the driver 5, for example. The coordinate conversion to the vehicle coordinate system can be performed using known coordinate rotation conversion, translation conversion, scale conversion, etc.

[0092] According to such a configuration, position information in three-dimensional space can be added to the original image data ID1 acquired by the processor 32. By referring to the position information as necessary, it becomes possible to perform processing such as verifying the accuracy of the candidate region including the head 51 of the driver 5 identified as described above. Therefore, it is possible to improve the accuracy of identifying the head 51 of the driver 5.

[0093] The above-described embodiment is merely an example for facilitating understanding of the present invention. The configurations according to the above-described embodiment may be appropriately modified or improved without departing from the spirit and scope of the present invention.

[0094] In the above embodiment, the head outer shape is captured using HOG, which can express the rough shape of an object based on the edge brightness gradient, as a feature related to the brightness of the image. However, Haar-Like, which corresponds to the local brightness difference of the image, or LBP (Local Binary Pattern), which corresponds to the local brightness distribution of the image, may also be used as the above feature.

[0095] In the above embodiment, an SVM having a relatively high generalization performance is used as the classifier. However, a random forest or a perceptron may be used as the classifier.

[0096] In the above embodiment, the image of the head 51 of the driver 5 in the vehicle compartment 41 is used for discrimination. However, by appropriately arranging the imaging device 2, the image of the head of another passenger may be used for discrimination. [Explanation of symbols]

[0097] 2: Imaging device, 3: Head recognition device, 31: Input interface, 32: Processor, 41: Vehicle interior, 5: Driver, 51: Head, 7: External server, OI: Original image, ID1: Original image data, ID2: Compressed image data, DW: Detection window, HA: High likelihood region, IHA: Integrated high likelihood region, AHA: Average high likelihood region

Claims

1. an input interface for receiving original image data including a plurality of original pixel data corresponding to an original image including an image of the vehicle interior; a processor that uses a classifier that has been trained using images including at least the captured head as training data to identify the captured head of an occupant based on a feature amount related to the brightness of the image, and that identifies the captured head of the occupant included in the original image based on the original image data; Equipped with The processor, generating compressed image data corresponding to a single compressed image having a smaller number of pixels than the original image and including a plurality of compressed pixel data fewer than the plurality of original pixel data by compressing the original image data; A detection area is set in the compressed image data, the detection area being determined based on the size of the head; A feature amount relating to luminance of each pixel data included in the detection area is input to the classifier; identifying at least one of the detection regions, which indicates that the classification result by the classifier indicates a high possibility of including the head of the captured image of the occupant, as a high likelihood region in the compressed image; The size of the identified high likelihood region does not change from the size of the detection region, When a plurality of the high likelihood regions having overlapping portions are identified, the processor integrates the plurality of high likelihood regions to generate at least one integrated high likelihood region; the integrated high likelihood region has a contour shape formed by an outer edge of a portion of each of the plurality of high likelihood regions that does not overlap with other high likelihood regions; Head discrimination device.

2. The feature amount is HOG (Histograms of Oriented Gradients), The head discrimination device according to claim 1 .

3. The classifier is a support vector machine. The head discrimination device according to claim 1 or 2.

4. The input interface receives the original image data from a Time of Flight (TOF) camera. The head discrimination device according to claim 1 .

5. A computer program for causing a processor to discriminate the head of an occupant captured in an original image based on original image data including a plurality of original pixel data corresponding to the original image including the captured vehicle interior, using a classifier that has been trained using an image including at least the captured head as training data in order to discriminate the head of an occupant captured in an original image based on a feature amount related to the brightness of the image, the computer program comprising: When the computer program is executed, the processor: compressing the original image data to generate compressed image data corresponding to a single compressed image having fewer pixels than the original image and including a plurality of compressed pixel data fewer than the original pixel data; A detection area is set in the compressed image data based on a size of a head; A feature amount relating to luminance of each pixel data included in the detection area is input to the classifier; identifying at least one of the detection regions, which indicates that the classification result by the classifier indicates a high possibility of including the head of the captured image of the occupant, as a high likelihood region in the compressed image; The size of the identified high likelihood region does not change from the size of the detection region, if a plurality of the high likelihood regions having overlapping portions are identified, causing the processor to integrate the plurality of high likelihood regions to generate at least one integrated high likelihood region; the integrated high likelihood region has a contour shape formed by an outer edge of a portion of each of the plurality of high likelihood regions that does not overlap with other high likelihood regions; Computer program.

6. The feature amount is HOG (Histograms of Oriented Gradients), 6. A computer program according to claim 5.

7. The classifier is a support vector machine.

7. A computer program according to claim 5 or 6.

8. The raw image data is acquired from a Time of Flight (TOF) camera. A computer program according to any one of claims 5 to 7.

9. A storage medium storing a computer program according to any one of claims 5 to 8.

Citation Information

Patent Citations

  • Image processing method, image processing device, program, recording medium, automatic trimming device and picture-taking arrangement

    JP2004005384A

  • Object detection device, object detection method and program

    JP2008191760A

  • Apparatus and method for visual inspection

    JP2010243451A

  • Face masking device and method

    JP2011193115A

  • Person counting device, person counting method, and person counting program

    JP2012108785A