This application is based on and claims priority under 35 U.S.C. § 119 to Japanese Patent Application 2017-232046, filed on Dec. 1, 2017, the entire contents of which are incorporated herein by reference.
This disclosure relates to a control device and a program.
In the related art, a technique for detecting pinch of foreign matter by an opening and closing member of a vehicle such as a power window and the like is known. For example, JP 2007-186915A (Reference 1) discloses a technique for detecting whether pinch of a foreign matter occurs by a window based on a feature value obtained from brightness reflected in image data captured by imaging means.
In the related art technique described above, an outline of an object (such as a window) is extracted based on the brightness of the image data, and occurrence of pinch of a foreign matter is detected by using a change quantity and an area of the extracted outline as a feature value, but when there is a large error in the extracted outline, since the occurrence of the pinch of the foreign matter in the opening and closing member of the vehicle can not be detected with high accuracy, there is a problem that it is difficult to completely prevent the pinch.
A control device according to an aspect of this disclosure includes a detection unit that detects a reference position indicating a position serving as a reference among passenger's predetermined portions based on a captured image captured by an imaging device that images an interior of a vehicle, and a control unit that is provided in the vehicle and performs control such that, during a closing operation of an openable and closable opening and closing member, the closing operation of the opening and closing member is interrupted, when a coordinate value of a reference position detected by the detection unit exceeds a threshold value.
The foregoing and additional features and characteristics of this disclosure will become more apparent from the following detailed description considered with the reference to the accompanying drawings, wherein:
Hereinafter, a control device and a program disclosed here will be described in detail with reference to the accompanying drawings.
As shown in
The imaging device 10 is a device that images an interior of the vehicle. For example, the imaging device 10 includes a camera. In this example, the imaging device 10 continuously images at a predetermined frame rate. An image captured by the imaging device 10 (may be hereinafter referred to as “captured image”) is input to the image processing device 20.
Based on the captured image input from the imaging device 10, the image processing device 20 determines whether an action corresponding to any command is performed, and when the determination result is affirmative, outputs information (command information) indicating a command permitting output to the vehicle control device 30. In addition, the image processing device 20 detects whether pinch of a predetermined portion of the passenger occurs during a closing operation of a sunroof and controls such that the closing operation of the sunroof is interrupted, when detecting that the pinch of the predetermined portion of the passenger occurs. In this example, the image processing device 20 is an example of the “control device”. A specific configuration of the image processing device 20 will be described below.
The vehicle control device 30 controls respective components of the vehicle according to the command indicated by command information input from the image processing device 20.
Hereinafter, a specific configuration of the image processing device 20 of the present embodiment will be described.
By executing the program, the CPU 201 comprehensively controls the operation of the image processing device 20 and realizes various functions included in the image processing device 20. Various functions included in the image processing device 20 will be described below.
The ROM 202 is a nonvolatile memory and stores various data including a program for starting up the image processing device 20. The RAM 203 is a volatile memory including a work area of the CPU 201.
The external I/F 204 is an interface for connecting to an external device. For example, as the external I/F 204, an interface for connecting to the imaging device 10 and an interface for connecting to the vehicle control device 30 are provided.
As shown in
The acquisition unit 211 acquires a captured image from the imaging device 10. Every time the imaging device 10 images, the acquisition unit 211 acquires a captured image obtained by the image capturing.
The recognition unit 212 recognizes an action of the passenger based on the captured image (captured image captured by the imaging device 10) acquired by the acquisition unit 211. In this example, the action of the passenger is an action mode using hands, but not limited thereto.
Various known techniques can be used as a method for recognizing the action of the passenger based on the captured image. For example, an embodiment may utilize the technique disclosed in Japanese Patent Application No. 2017-182748. In the present embodiment, the recognition unit 212 extracts joints (feature points) of each of portions of passenger's body (upper body) reflected in the captured image and generates skeleton information (skeleton data). Then, the recognition unit 212 recognizes the action of the passenger based on the generated skeleton information.
Returning to
In
As shown in
In this way, the determination unit 213 determines whether an action corresponding to any command is performed and inputs the determination result to the command output unit 214.
The command output unit 214 shown in
In this example, when the command output unit 214 outputs the command information indicating the command “CLOSE” to the vehicle control device 30, the vehicle control device 30 closes the sunroof. At this time, as shown in
Accordingly, the image processing device 20 of the present embodiment detects a reference position indicating a position serving as a reference among the passenger's predetermined portions (in this example, “passenger's hand”) based on a captured image captured by the imaging device 10 that images an interior of the vehicle and controls such that the closing operation of the sunroof is interrupted, when a coordinate value of the reference position detected based on the captured image during the closing operation of the sunroof exceeds a threshold value. This corresponds to the functions of the detection unit 215 and the control unit 216 shown in
The detection unit 215 detects a reference position indicating a position serving as a reference among the predetermined portions of the passenger based on a captured image captured by the imaging device 10 (captured image acquired by the acquisition unit 211). In this example, the predetermined portion is the passenger's hand, but not limited thereto, and accordingly, it may be a head of the passenger, for example. In addition, in the above example, the reference position is a center point of the hand, but not limited thereto, and accordingly, it may be a middle finger, and the like of the hand of the passenger, for example. Further, in this example, since all passengers in the vehicle (driver, passenger in the passenger seat, passengers in the backseat) are included as the passenger, it is assumed that the imaging device 10 is positioned (viewing angle and posture adjusted) such that all passengers in the car are imaged.
In this example, the detection unit 215 detects the reference position according to an instruction from the control unit 216 which will be described below, and notifies the control unit 216 of the detection result. While the method of detecting the reference position is optional, by way of example, the detection unit 215 generates the skeleton information described above for each passenger included in the captured image from the captured image acquired by the acquisition unit 211, and detects the position of the center point of the passenger's hand as the reference position based on the generated skeleton information for each passenger. In this example, while the recognition unit 212 and the detection unit 215 are separately provided, by way of example, the recognition unit 212 and the detection unit 215 may be configured as a common module (for example, in a mode in which the recognition unit 212 also serves the function of the detection unit 215).
The control unit 216 performs control such that the closing operation of the sunroof is interrupted, when the coordinate value of the reference position detected by the detection unit 215 exceeds the threshold value during the closing operation of the sunroof. More specifically, as shown in
As an example of the control to interrupt the closing operation of the sunroof described above, the control unit 216 may transmit, to the vehicle control device 30, command information indicating a command instructing to interrupt the closing operation of the sunroof. The vehicle control device 30 may interrupt the closing operation of the sunroof by executing the command indicated by the command information received from the control unit 216.
In addition, in this example, when command information indicating the “CLOSE” command is output to the vehicle control device 30, the command output unit 214 notifies the control unit 216 of that. Upon receiving the notification, the control unit 216 recognizes that the sunroof is in closing operation and requests the detection unit 215 to detect the reference position. Upon receiving this request, the detection unit 215 detects the reference position based on the captured image acquired by the acquisition unit 211 and transmits the detection result to the control unit 216. Then, the control unit 216 determines whether or not to control such that the closing operation of the sunroof is interrupted, from the relationship between the coordinate value y0 of the detected reference position in the vertical direction and the predetermined first threshold value yth based on the captured image. In this example, the command output unit 214 and the control unit 216 are separately provided, but not limited thereto, and for example, the command output unit 214 and the control unit 216 may be configured as a common module (for example, in a mode in which the command output unit 214 also serves the function of the control unit 216).
According to the present embodiment, only by extracting the reference position from the captured image, it is possible to determine whether pinch of the passenger's hand in the sunroof occurs, from the large/small relationship between the coordinate value y0 of the extracted reference position in the vertical direction and the predetermined first threshold value yth, so that it is unnecessary to perform a process of extracting the outline of the entire object such as a window frame or the like included in the captured image as in the related art. In addition, as compared with the case of extracting the outline of the entire object from the captured image as in the related art, the error occurring in the process of image recognition processing is smaller in the case of extracting one reference position point from the captured image as in this embodiment, and as a result, it is possible to improve the accuracy of determining whether pinch of the passenger's hand occurs in the opening and closing members provided in the vertical direction of the vehicle such as sunroof and the like.
In addition, the control unit 216 performs control such that the closing operation of the sunroof is resumed when a state in which the coordinate value y0 of the reference position in the vertical direction is equal to or less than the first threshold value yth continues for a certain period of time after the sunroof closing operation is interrupted. For example, the control unit 216 may transmit command information indicating a command instructing to resume the closing operation of the sunroof to the vehicle control device 30. The vehicle control device 30 may resume the closing operation of the sunroof by executing the command indicated by the command information received from the control unit 216. In this example, when the possibility of pinch of a passenger's hand by the sunroof is eliminated, the closing operation of the sunroof is resumed, thus it is possible to complete the closing operation of the sunroof without requiring an action input (instruction input) by the passenger again.
As shown in
When the result of step S2 is affirmative (step S2: Yes), the control unit 216 determines whether a state in which the coordinate value y0 of the reference position in the vertical direction is greater than the first threshold value yth has continued for a certain period of time (step S3). When the result of step S3 is negative (step S3: No), the processes from step S1 onward are repeated. On the other hand, when the result of step S3 is affirmative (step S3: Yes), the control unit 216 performs control such that the closing operation of the sunroof (step S4) is interrupted.
As described above, in the present embodiment, it is controlled such that the closing operation of the sunroof is interrupted, when the coordinate value y0 of the reference position of the passenger's predetermined portion (in this example, the center point of the passenger's hand) detected in the vertical direction exceeds the first threshold value yth for a certain period of time, based on the captured image captured by the imaging device 10 that images an interior of a vehicle during the closing operation of the sunroof. As a result, it is possible to detect with high accuracy whether the pinch of the passenger's hand in the sunroof occurs, and it is possible to completely prevent the pinch of the passenger's hand in the sunroof.
Next, a second embodiment will be described. Descriptions of the portions common to the first embodiment described above will not be appropriately repeated. In the first embodiment described above, a member (for example, a sunroof) provided in the vehicle in the vertical direction is assumed as the opening and closing member. In the present embodiment, there is a difference in that a member provided in the horizontal direction in the vehicle is assumed as the opening and closing member, such as, a slide door or a power window or the like, for example. In the following description, the slide door will be described as an opening and closing member as an example, but this disclosure is not limited thereto. In this example, since the configuration other than the function included in the control unit 216 is the same as that of the first embodiment described above, a detailed description thereof will not be repeated.
Likewise the first embodiment described above, the basic function of the control unit 216 is that it performs control such that, during the closing operation of an openable and closable opening and closing member, the closing operation of the opening and closing member is interrupted, when a coordinate value of a reference position detected by the detection unit 215 exceeds a threshold value. In this example, the opening and closing member is the slide door, the predetermined portion is the hand of the passenger, and the reference position is the center point of the hand of the passenger, but not limited thereto.
As shown in
As an example of the control to interrupt the closing operation of the slide door, the control unit 216 may transmit, to the vehicle control device 30, command information indicating a command instructing to interrupt the closing operation of the slide door. The vehicle control device 30 may interrupt the closing operation of the slide door by executing the command indicated by the command information received from the control unit 216.
Likewise the first embodiment described above, when command information indicating a command instructing the closing operation of the slide door is output to the vehicle control device 30, the command output unit 214 notifies the control unit 216 of that. The action corresponding to the command instructing the closing operation or the command instructing the opening operation of the slide door (action defined in advance for each command) may be optionally set. Upon receiving the notification, the control unit 216 recognizes that the slide door is in closing operation and requests the detection unit 215 to detect the reference position. Upon receiving this request, the detection unit 215 detects the reference position based on the captured image acquired by the acquisition unit 211 and transmits the detection result to the control unit 216. Then, the control unit 216 determines whether or not to control such that the closing operation of the slide door is interrupted, from the relationship between the coordinate value x0 of the detected reference position in the horizontal direction and the predetermined second threshold value xth based on the captured image.
According to the present embodiment, only by extracting the reference position from the captured image, it is possible to determine whether pinch of the passenger's hand in the slide door occurs, from the large/small relationship between the coordinate value x0 of the extracted reference position in the horizontal direction and the predetermined second threshold value xth, so that it is unnecessary to perform a process of extracting the outline of the entire object such as a window frame or the like included in the captured image as in the related art. In addition, as compared with the case of extracting the outline of the entire object from the captured image as in the related art, the error occurring in the process of image recognition processing is smaller in the case of extracting one reference position point from the captured image as in this embodiment, and as a result, it is possible to improve the accuracy of determining whether pinch of the passenger's hand occurs in the opening and closing member provided in the horizontal direction of the vehicle such as slide door and the like.
In addition, the control unit 216 performs control such that the closing operation of the slide door is resumed when, after the closing operation of the slide door is interrupted, a state in which the coordinate value x0 of the reference position in the horizontal direction is equal to or smaller than the second threshold value xth continues for a certain period of time. For example, the control unit 216 may transmit command information indicating a command instructing to resume the closing operation of the slide door to the vehicle control device 30. The vehicle control device 30 may resume the closing operation of the slide door by executing the command indicated by the command information received from the control unit 216. In this example, when the possibility of pinch a passenger's hand by the slide door is eliminated, the closing operation of the slide door is resumed, thus it is possible to complete the closing operation of the slide door without requiring an action input (instruction input) by the passenger again.
As shown in
When the result of step S11 is affirmative (step S11: Yes), the control unit 216 determines whether a state in which the coordinate value x0 of the reference position in the horizontal direction is greater than the second threshold value xth has continued for a certain period of time (step S12). When the result of step S12 is negative (step S12: No), the processes from step S10 onward are repeated. On the other hand, when the result of step S12 is affirmative (step S12: Yes), the control unit 216 performs control such that the closing operation of the slide door (step S13) is interrupted.
As described above, in the present embodiment, it is controlled such that the closing operation of the slide door is interrupted, when the coordinate value x0 of the reference position of the passenger's predetermined portion (in this example, center point of the passenger's hand) detected in the horizontal direction exceeds the second threshold value xth (as one aspect of the threshold value) for a certain period of time based on the captured image captured by the imaging device 10 that images an interior of the vehicle during the closing operation of the slide door. As a result, it is possible to detect with high accuracy whether pinch of the passenger's hand occurs in the slide door and it is possible to completely prevent the pinch of the passenger's hand in the slide door.
Although the embodiment according to this disclosure has been described above, this disclosure is not limited to the above-described embodiment as it is, and in the implementation stage, it can be embodied by modifying constituent elements without departing from the gist thereof. In addition, various disclosures may be formed by appropriately combining a plurality of constituent elements disclosed in the above embodiment. For example, some constituent elements may be deleted from all the constituent elements shown in the embodiment. In addition, each embodiment and modification example described above can be optionally combined.
The type of the openable and closable opening and closing member which is provided in the vehicle is not limited to those described above and may be provided in a back door or the like, for example.
In addition, the control unit 216 described above may be mounted on the vehicle control device 30 side, for example. In this case, the combination of the image processing device 20 and the vehicle control device 30 corresponds to the “control device”. In short, the control device may be in a form including at least the detection unit 215 and control unit 216 described above, and may be constituted by a single device or a plurality of devices (detection unit 215 and control unit 216 are distributed in a plurality of apparatuses).
A control device according to an aspect of this disclosure includes a detection unit that detects a reference position indicating a position serving as a reference among passenger's predetermined portions based on a captured image captured by an imaging device that images an interior of a vehicle, and a control unit that is provided in the vehicle and performs control such that, during a closing operation of an openable and closable opening and closing member, the closing operation of the opening and closing member is interrupted, when a coordinate value of a reference position detected by the detection unit exceeds a threshold value. According to this configuration, it is possible to detect with high accuracy the occurrence of the pinch of the predetermined portion in the opening and closing member, and it is possible to completely prevent the pinch of the predetermined portion by the opening and closing member.
In the control device according to the aspect, for example, the threshold value may include a first threshold value and the control unit performs control such that the closing operation of the opening and closing member is interrupted when the coordinate value of the reference position in a vertical direction exceeds the first threshold value for a certain period of time. According to this configuration, it is possible to detect with high accuracy the occurrence of the pinch of foreign matter in opening and closing member, and it is possible to completely prevent the pinch of the predetermined portion in the opening and closing member.
In the control device according to the aspect, for example, the control unit may perform control such that the closing operation of the opening and closing member is resumed when the closing operation of the opening and closing member is interrupted, a state in which the coordinate value of the reference position in the vertical direction is equal to or smaller than the first threshold value continues for a certain period of time. According to this configuration, the closing operation of the opening and closing member is resumed when the possibility of pinch of the predetermined portion in the opening and closing member is eliminated, such that it is possible to complete the closing operation of the opening and closing member without requiring an action input (instruction input) by the passenger again.
In the control device according to the aspect, for example, the predetermined portion may be a passenger's hand, and the opening and closing member may be a sunroof. According to this configuration, it is possible to detect with high accuracy whether pinch of the passenger's hand in the sunroof occurs, and it is possible to completely prevent the pinch of the passenger's hand in the sunroof.
In the control device according to the aspect, for example, the threshold value may include a second threshold value and the control unit may perform control such that the closing operation of the opening and closing member is interrupted when a coordinate value of the reference position in a horizontal direction exceeds the second threshold value for a certain period of time. According to this configuration, it is possible to detect with high accuracy the occurrence of the pinch of the foreign matter in the opening and closing member, and it is possible to completely prevent the pinch of the predetermined portion in the opening and closing member.
In the control device according to the aspect, for example, the control unit may perform control such that the closing operation of the opening and closing member is resumed when, after the closing operation of the opening and closing member is interrupted, a state in which the coordinate value of the reference position in the horizontal direction is equal to or smaller than the second threshold value continues for a certain period of time. According to this configuration, the closing operation of the opening and closing member is resumed when the possibility of pinch of the predetermined portion in the opening and closing member is eliminated, such that it is possible to complete the closing operation of the opening and closing member without requiring an action input (instruction input) by the passenger again.
In the control device according to the aspect, for example, the predetermined portion may be a passenger's hand and the opening and closing member may be a slide door or a power window. According to this configuration, it is possible to detect with high accuracy whether the pinch of the passenger's hand occurs in the slide door or the power window and it is possible to completely prevent the pinch of the passenger's hand in the slide door or the power window.
A program according to another aspect of this disclosure causes a computer to execute a detection step of detecting a reference position indicating a position serving as a reference among passenger's predetermined portions based on a captured image captured by an imaging device that images an interior of a vehicle; and a control step of controlling such that, during a closing operation of an openable and closable opening and closing member, the closing operation of the opening and closing member is interrupted, when a coordinate value of the reference position detected in the detection step exceeds a threshold value.
The principles, preferred embodiment and mode of operation of the present invention have been described in the foregoing specification. However, the invention which is intended to be protected is not to be construed as limited to the particular embodiments disclosed. Further, the embodiments described herein are to be regarded as illustrative rather than restrictive. Variations and changes may be made by others, and equivalents employed, without departing from the spirit of the present invention. Accordingly, it is expressly intended that all such variations, changes and equivalents which fall within the spirit and scope of the present invention as defined in the claims, be embraced thereby.
Number | Date | Country | Kind |
---|---|---|---|
JP2017-232046 | Dec 2017 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
9448641 | Hamada et al. | Sep 2016 | B2 |
20120312676 | Salter et al. | Dec 2012 | A1 |
20150336521 | Tofilescu | Nov 2015 | A1 |
20190136964 | Tapia | May 2019 | A1 |
Number | Date | Country |
---|---|---|
2007-186915 | Jul 2007 | JP |
2007186915 | Jul 2007 | JP |
2015-219885 | Dec 2015 | JP |
2017-033144 | Feb 2017 | JP |
WO-2016155960 | Oct 2016 | WO |
Number | Date | Country | |
---|---|---|---|
20190169917 A1 | Jun 2019 | US |