CN112519652A - Method, device, equipment and medium for controlling telescopic cup bracket in vehicle - Google Patents

Method, device, equipment and medium for controlling telescopic cup bracket in vehicle Download PDF

Info

Publication number
CN112519652A
CN112519652A CN202011276220.9A CN202011276220A CN112519652A CN 112519652 A CN112519652 A CN 112519652A CN 202011276220 A CN202011276220 A CN 202011276220A CN 112519652 A CN112519652 A CN 112519652A
Authority
CN
China
Prior art keywords
cup
image
shaped object
real
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011276220.9A
Other languages
Chinese (zh)
Inventor
曾晓君
赖锋
杨金菊
吴义
喻宏光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Motor Corp
Original Assignee
Dongfeng Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfeng Motor Corp filed Critical Dongfeng Motor Corp
Priority to CN202011276220.9A priority Critical patent/CN112519652A/en
Publication of CN112519652A publication Critical patent/CN112519652A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60NSEATS SPECIALLY ADAPTED FOR VEHICLES; VEHICLE PASSENGER ACCOMMODATION NOT OTHERWISE PROVIDED FOR
    • B60N3/00Arrangements or adaptations of other passenger fittings, not otherwise provided for
    • B60N3/10Arrangements or adaptations of other passenger fittings, not otherwise provided for of receptacles for food or beverages, e.g. refrigerated
    • B60N3/102Arrangements or adaptations of other passenger fittings, not otherwise provided for of receptacles for food or beverages, e.g. refrigerated storable or foldable in a non-use position

Abstract

The invention discloses a method, a device, equipment and a medium for controlling a telescopic cup bracket in a vehicle, wherein the method comprises the following steps: acquiring a first real-time image acquired by image acquisition equipment; comparing the first real-time image with the original image to obtain a distinguishing image characteristic; judging whether the distinguishing image characteristics are matched with the cup-shaped object image characteristics or not; if so, judging whether the cup-shaped object is in the preset imaging area and keeping the second preset time; if so, controlling the driving mechanism to eject the cup holder body from the mounting position, so that the cup holder body bears the cup-shaped object. The cup holder body which is not used can be stored in the vehicle door, so that the space in the vehicle is saved; whether personnel have the intention of placing the cup in can also the automatic identification car, when consciously, pop out the cup bracket body from the door in voluntarily, and then can make things convenient for the car personnel to place the cup, also can avoid the driver to drive the in-process because of can't opening the cup bracket body of accomodating and be distracted, improve and drive the security.

Description

Method, device, equipment and medium for controlling telescopic cup bracket in vehicle
Technical Field
The invention relates to the technical field of automobiles, in particular to a method, a device, equipment and a medium for controlling a telescopic cup bracket in an automobile.
Background
With the development of science and technology and the progress of society, automobiles as transportation tools begin to go into thousands of households and are increasingly popularized, cup holders are generally configured in the existing automobiles for placing cups in order to improve riding comfort, but when the cup holders are not used, the cup holders occupy larger space, and the space in the automobiles is crowded. Therefore, an intelligent cup stand which can be used for conveniently placing a cup and does not occupy the space in an automobile and a control technology thereof are needed.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a medium for controlling the retractable cup bracket in the vehicle, solves the technical problem that in the prior art, a cup stand cannot be automatically retracted according to the cup placing requirement, and achieves the technical effect that the cup stand can be automatically retracted according to the cup placing requirement of a driver or a passenger.
In a first aspect, the application provides a method for controlling a telescopic cup holder in a vehicle, wherein the cup holder comprises an image acquisition device, a controller, a driving mechanism and a cup holder body which are sequentially connected; the method is applied to a controller; the cup holder body is movably arranged in the mounting position of the vehicle door; the method comprises the following steps:
acquiring a first real-time image acquired by image acquisition equipment; wherein the first real-time image is an image of the cup holder body which is not popped up from the installation position;
comparing the first real-time image with the original image to obtain a distinguishing image characteristic; wherein, the original image is: under the condition that the cup holder body is not popped out from the installation position and the image change does not occur within the first preset time, acquiring an image by image acquisition equipment;
judging whether the distinguishing image characteristics are matched with the cup-shaped object image characteristics or not;
if so, judging whether the cup-shaped object is in the preset imaging area and keeping the second preset time; the installation position is located in a preset imaging area in the corresponding imaging area in the first real-time image;
if so, controlling the driving mechanism to eject the cup holder body from the mounting position, so that the cup holder body bears the cup-shaped object.
Further, after controlling the drive mechanism to eject the cup holder body from the mounting position such that the cup holder body carries the cup-shaped object, the method further comprises:
acquiring a second real-time image acquired by image acquisition equipment; wherein, the second real-time image is: an image of the cup holder body after being ejected from the mounting position;
judging whether the cup-shaped object in the second real-time image is in a preset imaging area or not;
if not, judging whether the time length of the cup-shaped object which is not in the preset imaging area reaches a third preset time length or not;
when the time length of the cup-shaped object which is not in the preset imaging area reaches a third preset time length, the driving mechanism is controlled to recover the cup holder body to the mounting position.
Further, judging whether the distinguishing image features are matched with the cup-shaped object image features specifically comprises:
determining the similarity proportion of the distinguishing image characteristics and the cup-shaped object image characteristics;
when the similarity proportion does not exceed a preset proportion threshold value, judging whether the human body gesture in the first real-time image is a preset human body gesture or not;
if yes, distinguishing that the image features are matched with the cup-shaped object image features;
and when the similarity proportion exceeds a preset proportion threshold value, the distinguishing image characteristics are matched with the cup-shaped object image characteristics.
Further, before controlling the drive mechanism to eject the cup holder body from the mounting position, the method further comprises:
determining the pixel proportion of the cup-shaped object in the first real-time image;
and when the pixel ratio exceeds the first ratio threshold and does not exceed the second ratio threshold, executing a step of controlling the driving mechanism to pop the cup holder body out of the mounting position.
Further, before acquiring the first real-time image acquired by the image acquisition device, the method further comprises:
acquiring a third real-time image acquired by image acquisition equipment;
judging whether a face image appears in the third real-time image;
and if so, executing the step of acquiring the first real-time image acquired by the image acquisition equipment.
In a second aspect, the present application provides an in-vehicle telescopic cup holder control device, the device comprising:
the first real-time image acquisition module is used for acquiring a first real-time image acquired by the image acquisition equipment; wherein the first real-time image is an image of the cup holder body which is not popped up from the installation position;
the distinguishing image feature obtaining module is used for comparing the first real-time image with the original image to obtain distinguishing image features; wherein, the original image is: under the condition that the cup holder body is not popped out from the installation position and the image change does not occur within the first preset time, acquiring an image by image acquisition equipment;
the first judgment module is used for judging whether the distinguishing image characteristics are matched with the cup-shaped object image characteristics or not;
the second judgment module is used for judging whether the cup-shaped object is in the preset imaging area and keeping the cup-shaped object for a second preset time if the cup-shaped object is matched with the cup-shaped object; the installation position is located in a preset imaging area in the corresponding imaging area in the first real-time image;
and the first control module is used for controlling the driving mechanism to pop the cup holder body out of the mounting position if the cup holder body is in the mounting position, so that the cup holder body bears the cup-shaped object.
Further, the apparatus further comprises:
the second real-time image acquisition module is used for acquiring a second real-time image acquired by the image acquisition equipment; wherein, the second real-time image is: an image of the cup holder body after being ejected from the mounting position;
the third judging module is used for judging whether the cup-shaped object in the second real-time image is in the preset imaging area or not;
the fourth judging module is used for judging whether the duration that the cup-shaped object is not in the preset imaging area reaches a third preset duration or not if the cup-shaped object is not in the preset imaging area;
and the second control module is used for controlling the driving mechanism to recover the cup bracket body to the mounting position when the duration that the cup-shaped object is not positioned in the preset imaging area reaches a third preset duration.
Further, the first determining module specifically includes:
the similar proportion determining module is used for determining the similar proportion of the distinguishing image characteristics and the cup-shaped object image characteristics;
the fifth judging module is used for judging whether the human body gesture in the first real-time image is the preset human body gesture or not when the similarity proportion does not exceed the preset proportion threshold; if yes, distinguishing that the image features are matched with the cup-shaped object image features;
and when the similarity proportion exceeds a preset proportion threshold value, the distinguishing image characteristics are matched with the cup-shaped object image characteristics.
In a third aspect, the present application provides an electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute to implement an in-vehicle telescoping cup holder control method.
In a fourth aspect, the present application provides a non-transitory computer readable storage medium having instructions that, when executed by a processor of an electronic device, enable the electronic device to perform a method of implementing an in-vehicle telescoping cup holder control.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
this application sets up cup bracket body in the door, acquires near the first real-time image of mounted position through image acquisition equipment to whether cup object appears in the picture in the certain picture of dependence on first real-time image, when cup object appears, whether the cup object in the first real-time image of analysis has the demand of placing, when having the demand of placing, control actuating mechanism pops out cup bracket body from the door in, in order to accept cup object. The cup holder body which is not used can be stored in the vehicle door, so that the space in the vehicle is saved; whether can also automatic identification have the intention of placing the cup, when having the demand of placing the cup, pop out the cup bracket body from the door in the automation, and then can make things convenient for personnel in the car to place the cup, also can avoid the driver to drive the in-process because of can't opening the cup bracket body of accomodating and be distracted, improve and drive the security.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a schematic structural view of a cup holder provided herein;
FIG. 2 is a schematic structural view of a cup holder body provided herein;
FIG. 3 is a schematic flow chart illustrating a method for controlling a retractable cup holder in a vehicle according to the present disclosure;
FIG. 4 is a schematic structural diagram of an in-vehicle telescopic cup holder control device provided by the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in the present application.
Reference numerals:
1-base, 2-collar, 3-first cavity, 4-second cavity, 5-motor, 6-first component, 7-second component.
Detailed Description
The embodiment of the application provides a control method for the cup holder capable of stretching and retracting in the vehicle, and solves the technical problem that the cup holder cannot be automatically retracted and extended according to cup placing requirements in the prior art.
In order to solve the technical problems, the general idea of the embodiment of the application is as follows:
a control method of a telescopic cup bracket in a vehicle comprises the steps that a cup bracket comprises an image acquisition device, a controller, a driving mechanism and a cup bracket body which are sequentially connected; the method is applied to a controller; the cup holder body is movably arranged in the mounting position of the vehicle door; the method comprises the following steps: acquiring a first real-time image acquired by image acquisition equipment; wherein the first real-time image is an image of the cup holder body which is not popped up from the installation position; comparing the first real-time image with the original image to obtain a distinguishing image characteristic; wherein, the original image is: under the condition that the cup holder body is not popped out from the installation position and the image change does not occur within the first preset time, acquiring an image by image acquisition equipment; judging whether the distinguishing image characteristics are matched with the cup-shaped object image characteristics or not; if so, judging whether the cup-shaped object is in the preset imaging area and keeping the second preset time; the installation position is located in a preset imaging area in the corresponding imaging area in the first real-time image; if so, controlling the driving mechanism to eject the cup holder body from the mounting position, so that the cup holder body bears the cup-shaped object.
The cup holder body which is not used can be stored in the vehicle door, so that the space in the vehicle is saved; whether personnel have the intention of placing the cup in can also the automatic identification car, when having the intention of placing the cup, pop out the cup bracket body from the door in the automation, and then can make things convenient for personnel in the car to place the cup, also can avoid the driver to drive the in-process because of can't opening the cup bracket body of accomodating and be distracted, improve and drive the security.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
First, it is stated that the term "and/or" appearing herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The application provides a flexible cup bracket as shown in figure 1, and the cup bracket comprises image acquisition equipment, a controller, a driving mechanism and a cup bracket body which are connected in sequence. The cup holder provided by the application can be arranged near the car door beside the seat of the car, is suitable for all car doors, and takes the car door beside a driver seat as an example to explain the cup holder and a control mode of the cup holder.
The image capturing device may be a camera, arranged near the top of the front windscreen of the car, facing the driver's seat. The driving mechanism and the cup holder body are embedded in the vehicle door of the driver seat, and the driving mechanism can enable the cup holder body to pop out from the vehicle door or recycle the cup holder body into the vehicle door. When the cup stand body is popped out from the vehicle door, a cup can be placed, and when the cup stand body is recovered into the vehicle door, the space can be saved. The controller can be a microcomputer, a microprocessor and the like, and can be arranged at any position in the automobile. The controller processes the image collected by the image collecting device, and controls the driving mechanism to pop the cup holder body out of the vehicle door according to the processing result, or controls the driving mechanism to recover the cup holder body into the vehicle door. The processing procedure of the image acquired by the image acquisition device by the controller is explained in the following, and is not described herein again.
Wherein, saucer body and actuating mechanism are as shown in fig. 2, and the saucer body includes base 1 and lantern ring 2, and base 1 matches with lantern ring 2, and base 1 is used for bearing the cup, and lantern ring 2 is used for avoiding the cup to turn on one's side. The door is provided with a first cavity 3 that matches the base 1, and a second cavity 4 that matches the collar 2 (hereinafter, the region where the first cavity 3 and the second cavity 4 of the door are located is referred to as an attachment position). A drive mechanism is embedded in the vehicle door, the drive mechanism comprising a motor 5, a first component 6 and a second component 7.
The first member 6 includes a first spring (not indicated in fig. 2) and a first rope (not indicated in fig. 2), and the first member 6 corresponds to the base 1. The first spring sets up in first cavity 3, and the one end of first rope and the one end of first spring are all fixed in the inboard of base 1 (record as the inboard with base 1 towards one side of first cavity 3), and the other end of first rope is connected with the drive shaft of motor 5, and the other end of first spring and the inner wall contact of first cavity 3. The first spring has a tendency to push the base 1 out of the first cavity 3, while the first cord has a tendency to pull the base 1 into the first cavity 3 under the action of the motor 5, the base 1 being balanced under the combined action of the first spring and the first cord. When the base 1 is positioned in the first cavity 3, the motor 5 reduces the tension on the first rope, and the first spring pushes the base 1 out of the first cavity 3, so that the base 1 is ejected out of the first cavity 3; when the base 1 is outside the first cavity 3, the motor 5 increases the tension on the first rope, which pulls the base 1 into the first cavity 3.
Likewise, the second assembly 7 comprises a second spring and a second cord, the second assembly 7 corresponding to the collar 2. The second spring sets up in second cavity 4, and the one end of second rope and the one end of second spring are all fixed in the inboard of lantern ring 2 (the one side of lantern ring 2 towards second cavity 4 is said inboard), and the other end of second rope is connected with the actuating shaft of motor 5, and the other end of second spring and the inner wall contact of second cavity 4. The second spring has a tendency to push the collar 2 out of the second cavity 4, while the second rope has a tendency to pull the collar 2 into the second cavity 4 under the action of the motor 5, the collar 2 being balanced under the combined action of the second spring and the second rope. When the lantern ring 2 is in the second cavity 4, the motor 5 reduces the tension on the second rope, and the second spring pushes the lantern ring 2 out of the second cavity 4, so that the lantern ring 2 is ejected out of the second cavity 4; when the collar 2 is outside the second cavity 4, the motor 5 increases the tension on the second rope, which then pulls the collar 2 into the second cavity 4.
After the description of the cup holder body and the driving mechanism, the description of the control method of the controller will be continued by taking the door of the driver's seat as an example, that is, the description of the method for controlling the retractable cup holder in the vehicle shown in fig. 3 provided by the present application is provided, and the method is applied to the controller; the cup holder body is movably arranged in the mounting position of the vehicle door (the mounting position refers to the area where the first cavity 3 and the second cavity 4 of the cup holder body and the driving mechanism are arranged); the method comprises the following steps:
step S31, acquiring a first real-time image acquired by image acquisition equipment; wherein the first real-time image is an image of the cup holder body not being ejected from the mounting position.
The image acquisition equipment is arranged near the top of a front windshield in front of the driver seat, faces the driver seat, and is always arranged in a picture of the image acquisition equipment. And monitoring the vicinity of the mounting position by using an image acquisition device, and acquiring a first real-time image (the first real-time image is an image of the cup bracket body which is stored in the mounting position and is not popped up). The controller acquires the first real-time image from the image pickup device (or the image pickup device transmits the first real-time image to the controller) to perform step S32.
Step S32, comparing the first real-time image with the original image to obtain the distinguishing image characteristics; wherein, the original image is: under the condition that the cup stand body is not popped out from the mounting position and the image change does not occur within a first preset time, the image is acquired by the image acquisition equipment.
The controller acquires an original image in advance, wherein the original image refers to an image of the cup holder body which is stored in the mounting position and has no change in picture within a first preset time (for example, 10S). The controller receives the first real-time image, compares the first real-time image with the original image, and when the first real-time image and the original image have no difference, namely no image characteristic difference exists between the first real-time image and the original image, the controller considers that the picture has no change, and the user does not intend to place a cup, so that no action is needed, and the user only needs to continue to monitor the position close to the installation position by the image acquisition equipment.
When there is a difference between the first real-time image and the original image, that is, there is a difference image feature between the first real-time image and the original image, it is considered that there is a change in the picture of the image capturing apparatus, and a cup may appear, and in order to further determine whether there is a cup in the picture captured by the image capturing apparatus, step S33 is continuously performed.
In step S33, it is determined whether the difference image feature matches the cup-like object image feature.
The cup-shaped object image characteristics are obtained in advance according to the shape characteristics of various types of water cups. The distinguishing image characteristics are matched with the cup-shaped object image characteristics, whether a cup exists in a picture acquired by the image acquisition equipment or not can be determined according to a matching result, and when the cup exists in the picture, the cup can be placed.
The cup-shaped object image recognition method and the cup-shaped object image recognition device have the advantages that the first real-time image and the original image are compared, so that the distinguishing image characteristics can be rapidly acquired when the image changes, the distinguishing image characteristics are compared with the cup-shaped object image characteristics, and then whether the cup exists in the image of the image acquisition device or not is determined. Because the background of the picture scene shot by the image acquisition equipment is unchanged after the installation position and the angle of the image acquisition equipment are fixed, the first real-time image is compared with the original image to obtain the distinguishing image characteristics, and then the distinguishing image characteristics are compared with the cup-shaped object image characteristics, so that all the image characteristics in the first real-time image can be prevented from being compared with the cup-shaped object image characteristics one by one, the matching time is further shortened, and the computing resources are saved.
When the scene of the cup-shaped object appears in the picture of the image acquisition equipment, the cup is held by hands, the hands can shield the cup, the matching degree of the distinguishing image characteristics obtained by the controller and the image characteristics of the cup-shaped object is not high, the controller possibly considers that the distinguishing image characteristics are not matched with the image characteristics of the cup-shaped object, and then the driving mechanism is not controlled to pop out the cup holder body from the installation position. In order to avoid this, step S33 may specifically include (i.e., step S331 to step S334):
in step S331, the similarity ratio of the distinguishing image feature and the cup-shaped object image feature is determined.
The similarity between the distinguishing image features and the cup-shaped object image features is determined first, and when the similarity is low, it cannot be accurately analyzed whether the first real-time image has the intention of placing the cup, so step S332 is executed for further analysis and judgment. When the degree of similarity is high, it can be determined that there is an intention to place a cup in the first real-time image, i.e., step S334 is performed.
Step S332, when the similarity proportion does not exceed a preset proportion threshold value, judging whether the human body gesture in the first real-time image is a preset human body gesture;
and comparing the similar proportion with a preset proportion threshold value to determine the similarity degree. When the similarity ratio does not exceed the preset ratio threshold, the similarity degree is considered to be low, and whether the human body gesture is the preset human body gesture of holding the cup by hand needs to be further judged. When the human body gesture is not the preset human body gesture, it means that the cup does not exist in the first real-time image, and therefore, the distinguishing image feature may be considered to be not matched with the cup-shaped object image feature.
In step S333, if yes, the distinguishing image feature is matched with the cup-shaped object image feature.
When the human body gesture is the preset human body gesture, the cup-shaped object does exist in the first real-time image, and only the cup is shielded by the human hand, so that the distinguishing image feature can be considered to be matched with the cup-shaped object image feature.
In step S334, when the similarity ratio exceeds the preset ratio threshold, the distinguishing image feature is matched with the cup-shaped object image feature.
When the similarity ratio exceeds a preset ratio threshold, the similarity degree is high, and the matching of the distinguishing image features and the cup-shaped object image features can be directly determined.
Step S34, if matching, judging whether the cup-shaped object is in the preset imaging area and keeping a second preset time; and the corresponding imaging area of the installation position in the first real-time image is in a preset imaging area.
In case the distinguishing image features match with the cup-shaped object image features, meaning that the cup is indeed present in the first real-time image, but needs to be placed, further analysis is needed. In order to determine whether a cup-shaped object appearing in the first real-time image needs to be placed, the method and the device set a preset imaging area, and the preset imaging area surrounds the corresponding imaging area of the installation position in the first real-time image. For example, if the imaging area corresponding to the installation position in the first live image is a circle (denoted as a first circle), the preset imaging area is a circle (denoted as a second circle) larger than the installation position, and the first circle is included in the second circle.
When the cup-shaped object is in the preset imaging area and is kept for a second preset time (for example, 3 seconds), the cup-shaped object in the first real-time image is considered to have a placement requirement, and step S35 is executed. When the cup-shaped object is not in the preset imaging area, or when the cup-shaped object is in the preset imaging area but is not kept for the second preset duration, the cup-shaped object in the first real-time image is not required to be placed, no action is performed, and only the new first real-time image needs to be continuously acquired through the image acquisition equipment.
Before performing step S35, in order to determine whether the size of the cup-shaped object matches the size of the cup holder body, the following steps (including step 1 and step 2) may be performed:
step 1, determining the pixel proportion of the cup-shaped object in the first real-time image.
Whether the size of the cup-shaped object is matched with the size of the cup holder body or not can be estimated through the pixels occupied by the cup-shaped object in the first real-time image and the pixels occupied by the cup holder body in the first real-time image. And the background in the picture acquired by the image acquisition equipment after the position is fixed is determined, so that the number of pixels occupied by each object in the background is determined, namely the number of pixels occupied by the installation position is determined. Therefore, it is possible to determine whether the size of the cup-shaped object matches the size of the cup holder body by determining the pixel proportion of the cup-shaped object in the first real-time image.
And 2, when the pixel ratio exceeds the first ratio threshold and does not exceed the second ratio threshold, executing a step of controlling the driving mechanism to pop the cup holder body out of the mounting position. Wherein the first duty ratio threshold is less than the second duty ratio threshold.
When the pixel ratio is between the first ratio threshold and the second ratio threshold, it means that the size of the cup-shaped object matches the size of the cup holder body, the cup-shaped object can be placed on the cup holder body, and the step S35 can be continued. When the pixel proportion is lower than the first proportion threshold, it means that the cup-shaped object is too small, and if the cup-shaped object is placed on the cup holder body, the cup-shaped object may roll over when shaking occurs during the driving of the automobile, and there is a safety hazard, and therefore, the cup holder body cannot be ejected, and step S35 cannot be executed. When the pixel proportion exceeds the second proportion threshold, it means that the size of the cup-shaped object is too large to be placed on the cup holder body, and it is not necessary to perform step S35.
And step S35, if yes, controlling the driving mechanism to eject the cup holder body from the mounting position, so that the cup holder body bears the cup-shaped object.
When the cup-shaped object is in the preset imaging area and keeps the second preset duration, which means that the cup-shaped object in the first real-time image has a placing requirement, the driving mechanism can be controlled to pop the cup bracket body out of the mounting position, so that the cup bracket body can place the cup-shaped object.
This application sets up cup bracket body in the door, acquires near the first real-time image of mounted position through image acquisition equipment to whether cup object appears in the picture in the certain picture of dependence on first real-time image, when cup object appears, whether the cup object in the first real-time image of analysis has the demand of placing, when having the demand of placing, control actuating mechanism pops out cup bracket body from the door in, in order to accept cup object. The cup holder body which is not used can be stored in the vehicle door, so that the space in the vehicle is saved; whether personnel have the intention of placing the cup in can also the automatic identification car, when having the intention of placing the cup, pop out the cup bracket body from the door in the automation, and then can make things convenient for personnel in the car to place the cup, also can avoid the driver to drive the in-process because of can't opening the cup bracket body of accomodating and be distracted, improve and drive the security.
After the cup is placed on the popped up cup holder body, a driver can directly take off the cup from the cup holder body for drinking, and in order to identify whether the cup is temporarily separated from the cup holder body, the application provides a further optimization scheme on the basis of the technical scheme, and the scheme is as follows:
after controlling the drive mechanism to eject the cup holder body from the mounting position such that the cup holder body carries the cup-shaped object, the method further comprises:
step S41, acquiring a second real-time image acquired by the image acquisition equipment; wherein, the second real-time image is: the image after the cup holder body is ejected from the mounting position.
And recording the image after the cup holder body is popped out from the mounting position as a second real-time image. The controller obtains a second real-time image acquired by the image acquisition equipment to determine the time for recovering the cup bracket body into the installation position.
In step S42, it is determined whether the cup-shaped object is within the preset imaging area.
According to the method and the device, whether the cup-shaped object is in the preset imaging area is judged by judging whether the cup-shaped object has the image characteristics of the cup-shaped object in the preset imaging area in the second real-time image. When the cup-shaped object leaves the preset imaging area, it means that the cup holder body may no longer be required and needs to be retrieved into the vehicle door. To further determine whether to retract the cup holder body into the door, the process proceeds to step S43. When the cup-shaped object stays in the preset imaging area, the cup bracket body needs to be used continuously and cannot be recovered into the vehicle door, and the cup bracket body is kept in the popped state.
And step S43, if not, judging whether the duration that the cup-shaped object is not in the preset imaging area reaches a third preset duration.
When the cup-shaped object is not in the preset imaging area, the cup-shaped object may not be required to be placed in the cup holder body any more, and then the cup-shaped object needs to be recycled into the vehicle door. The present application performs step S44 by monitoring the time period during which the cup-shaped object leaves the preset imaging area, and when the time period exceeds a third preset time period (for example, 10S), this means that the cup-shaped object does not need to be placed on the cup holder body. When the time length of the cup-shaped object leaving the preset imaging area does not exceed the third preset time length, the cup-shaped object returns to the preset imaging area, which means that the cup-shaped object still needs to be placed on the cup stand body, and the cup stand body does not need to be recovered into the vehicle door.
And step S44, controlling the driving mechanism to recover the cup holder body into the mounting position when the time length that the cup-shaped object is not in the preset imaging area reaches a third preset time length.
When the time length that the cup-shaped object is not in the preset imaging area reaches the third preset time length, the controller controls the driving mechanism to recover the cup holder body into the mounting position, and executes the step S31 again to obtain the first real-time image and monitor whether the cup-shaped object appears in the first real-time image.
Whether a cup to be placed exists near the mounting position is monitored through the image acquisition equipment, the cup holder body is popped out of the mounting position when the cup is required to be placed, and the cup holder body is recovered to the mounting position when the cup is not required to be placed, so that the cup holder body is recovered to the mounting position when the cup holder body is not required, and the internal space of an automobile is saved; on the other hand, the controller automatically controls the cup bracket body to be retracted or popped up through image analysis, so that the distraction of a driver due to the fact that the cup bracket body which is stored cannot be opened in the driving process can be avoided, and the driving safety is improved.
On the basis of the above technical solution, before acquiring the first real-time image acquired by the image acquisition device, the method further includes:
and step S51, acquiring a third real-time image acquired by the image acquisition device.
And step S52, judging whether the third real-time image has a face image.
And step S53, if yes, executing the step of acquiring the first real-time image acquired by the image acquisition device.
When there is no person in the automobile or no person in the driver seat of the automobile, there is no need to compare the first real-time image with the original image, and at this time, the controller may be set to the sleep mode. In the sleep mode, in order to save the calculation resources of the controller, the controller only needs to judge whether the acquired third real-time image has a face. When the third real-time image does not have a human face, which means that no person is currently in the driver seat, the controller may continue to be in the sleep mode. When the controller recognizes that the third real-time image contains the face image, the controller is awakened, the sleep mode is switched to the working mode, and the steps S31-S35 are executed to determine whether the cup holder body needs to be ejected from the installation position.
By monitoring whether a human face exists in the picture of the image acquisition equipment or not, the controller is controlled to switch between the sleep mode and the working mode, the calculation load of the controller can be reduced, and calculation resources and automobile energy (such as electric energy) can be saved.
Based on the same inventive concept, the present application provides an in-vehicle telescopic cup holder control device as shown in fig. 4, the device comprising:
a first real-time image obtaining module 41, configured to obtain a first real-time image collected by an image collecting device; wherein the first real-time image is an image of the cup holder body which is not popped up from the installation position;
a difference image feature obtaining module 42, configured to compare the first real-time image with the original image to obtain a difference image feature; wherein, the original image is: under the condition that the cup holder body is not popped out from the installation position and the image change does not occur within the first preset time, acquiring an image by image acquisition equipment;
a first judging module 43, configured to judge whether the distinguishing image feature matches with the cup-shaped object image feature;
a second determining module 44, configured to determine whether the cup-shaped object is located in the preset imaging area and keep for a second preset duration if the cup-shaped object is matched with the cup-shaped object; the installation position is located in a preset imaging area in the corresponding imaging area in the first real-time image;
and the first control module 45 is used for controlling the driving mechanism to pop the cup holder body out of the mounting position if the cup holder body is in the mounting position, so that the cup holder body bears the cup-shaped object.
More preferably, the apparatus further comprises:
the second real-time image acquisition module is used for acquiring a second real-time image acquired by the image acquisition equipment; wherein, the second real-time image is: an image of the cup holder body after being ejected from the mounting position;
the third judging module is used for judging whether the cup-shaped object in the second real-time image is in the preset imaging area or not;
the fourth judging module is used for judging whether the duration that the cup-shaped object is not in the preset imaging area reaches a third preset duration or not if the cup-shaped object is not in the preset imaging area;
and the second control module is used for controlling the driving mechanism to recover the cup holder body to the mounting position when the duration reaches a third preset duration.
Preferably, the first determining module 43 specifically includes:
the similar proportion determining module is used for determining the similar proportion of the distinguishing image characteristics and the cup-shaped object image characteristics;
the fifth judging module is used for judging whether the human body gesture in the first real-time image is the preset human body gesture or not when the similarity proportion does not exceed the preset proportion threshold; if yes, distinguishing that the image features are matched with the cup-shaped object image features;
and when the similarity proportion exceeds a preset proportion threshold value, the distinguishing image characteristics are matched with the cup-shaped object image characteristics.
More preferably, the apparatus further comprises:
the pixel ratio determining module is used for determining the pixel ratio of the cup-shaped object in the first real-time image;
and the first execution module is used for executing the step of controlling the driving mechanism to pop the cup holder body out of the mounting position when the pixel ratio exceeds the first ratio threshold value and does not exceed the second ratio threshold value.
More preferably, the apparatus further comprises:
the third real-time image acquisition module is used for acquiring a third real-time image acquired by the image acquisition equipment;
the sixth judging module is used for judging whether the third real-time image has a face image or not;
and the second execution module is used for executing the step of acquiring the first real-time image acquired by the image acquisition equipment if the first real-time image is acquired by the image acquisition equipment.
Based on the same inventive concept, the present application provides an electronic device as shown in fig. 5, including:
a processor 51;
a memory 52 for storing instructions executable by the processor 51;
wherein the processor 51 is configured to execute to implement an in-vehicle telescoping cup holder control method.
Based on the same inventive concept, the present application provides a non-transitory computer-readable storage medium, which when instructions in the storage medium are executed by a processor 51 of an electronic device, enables the electronic device to perform a method of implementing an in-vehicle retractable cup holder control.
Since the electronic device described in this embodiment is an electronic device used for implementing the method for processing information in this embodiment, a person skilled in the art can understand the specific implementation manner of the electronic device of this embodiment and various variations thereof based on the method for processing information described in this embodiment, and therefore, how to implement the method in this embodiment by the electronic device is not described in detail here. Electronic devices used by those skilled in the art to implement the method for processing information in the embodiments of the present application are all within the scope of the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A control method of a telescopic cup bracket in a vehicle is characterized in that the cup bracket comprises an image acquisition device, a controller, a driving mechanism and a cup bracket body which are sequentially connected; the method is applied to the controller; the cup holder body is movably arranged in the mounting position of the vehicle door; the method comprises the following steps:
acquiring a first real-time image acquired by the image acquisition equipment; wherein the first real-time image is an image of the cup holder body not popped up from the mounting position;
comparing the first real-time image with an original image to obtain a distinguishing image characteristic; wherein the original image is: under the condition that the cup holder body is not popped out from the mounting position and the image change does not occur within a first preset time, acquiring an image by the image acquisition equipment;
judging whether the distinguishing image features are matched with the cup-shaped object image features or not;
if so, judging whether the cup-shaped object is in a preset imaging area and keeping a second preset time; the corresponding imaging area of the installation position in the first real-time image is located in the preset imaging area;
and if so, controlling the driving mechanism to eject the cup bracket body from the mounting position, so that the cup bracket body bears the cup-shaped object.
2. The method of claim 1, wherein after controlling the drive mechanism to eject the cup holder body from the mounting position such that the cup holder body carries the cup-shaped object, the method further comprises:
acquiring a second real-time image acquired by the image acquisition equipment; wherein the second real-time image is: an image of the cup holder body after ejection from the mounting position;
judging whether the cup-shaped object in the second real-time image is in the preset imaging area or not;
if not, judging whether the duration that the cup-shaped object is not in the preset imaging area reaches a third preset duration or not;
and when the time length that the cup-shaped object is not positioned in the preset imaging area reaches the third preset time length, controlling the driving mechanism to recover the cup holder body to the mounting position.
3. The method of claim 1, wherein said determining whether the distinguishing image features match the cup-shaped object image features comprises:
determining a similarity ratio of the distinguishing image features to the cup-shaped object image features;
when the similarity proportion does not exceed a preset proportion threshold value, judging whether the human body gesture in the first real-time image is a preset human body gesture or not; if yes, matching the distinguishing image features with the cup-shaped object image features;
when the similarity ratio exceeds the preset ratio threshold, the distinguishing image features are matched with the cup-shaped object image features.
4. The method of claim 1 or 3, wherein prior to controlling the drive mechanism to eject the cup holder body from the installed position, the method further comprises:
determining a pixel proportion of the cup-shaped object in the first real-time image;
and when the pixel proportion exceeds a first proportion threshold value and does not exceed a second proportion threshold value, executing the step of controlling the driving mechanism to eject the cup bracket body from the mounting position.
5. The method of claim 1, wherein prior to acquiring the first real-time image acquired by the image acquisition device, the method further comprises:
acquiring a third real-time image acquired by the image acquisition equipment;
judging whether a face image appears in the third real-time image;
and if so, executing the step of acquiring the first real-time image acquired by the image acquisition equipment.
6. An in-vehicle retractable cup holder control apparatus, the apparatus comprising:
the first real-time image acquisition module is used for acquiring a first real-time image acquired by the image acquisition equipment; wherein the first real-time image is an image of the cup holder body not popped up from the mounting position;
the distinguishing image feature obtaining module is used for comparing the first real-time image with an original image to obtain distinguishing image features; wherein the original image is: under the condition that the cup holder body is not popped out from the mounting position and the image change does not occur within a first preset time, acquiring an image by the image acquisition equipment;
the first judgment module is used for judging whether the distinguishing image characteristics are matched with the cup-shaped object image characteristics or not;
the second judgment module is used for judging whether the cup-shaped object is in the preset imaging area and keeping the cup-shaped object for a second preset time if the cup-shaped object is matched with the cup-shaped object; the corresponding imaging area of the installation position in the first real-time image is located in the preset imaging area;
and the first control module is used for controlling the driving mechanism to eject the cup bracket body from the mounting position if the cup bracket body is in the mounting position, so that the cup bracket body bears the cup-shaped object.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the second real-time image acquisition module is used for acquiring a second real-time image acquired by the image acquisition equipment; wherein the second real-time image is: an image of the cup holder body after ejection from the mounting position;
the third judging module is used for judging whether the cup-shaped object in the second real-time image is in the preset imaging area or not;
the fourth judging module is used for judging whether the duration that the cup-shaped object is not in the preset imaging area reaches a third preset duration or not if the cup-shaped object is not in the preset imaging area;
and the second control module is used for controlling the driving mechanism to recover the cup holder body to the mounting position when the time length of the cup-shaped object which is not positioned in the preset imaging area reaches the third preset time length.
8. The apparatus of claim 6, wherein the first determining module specifically comprises:
a similarity ratio determination module for determining a similarity ratio of the difference image feature and the cup-shaped object image feature;
the fifth judging module is used for judging whether the human body gesture in the first real-time image is a preset human body gesture or not when the similarity proportion does not exceed a preset proportion threshold; if yes, matching the distinguishing image features with the cup-shaped object image features;
when the similarity ratio exceeds the preset ratio threshold, the distinguishing image features are matched with the cup-shaped object image features.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute to implement an in-vehicle telescoping cup holder control method as claimed in any one of claims 1 to 5.
10. A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of an electronic device, enable the electronic device to perform a method of implementing an in-vehicle telescoping cup holder control method as claimed in any one of claims 1 to 5.
CN202011276220.9A 2020-11-16 2020-11-16 Method, device, equipment and medium for controlling telescopic cup bracket in vehicle Pending CN112519652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011276220.9A CN112519652A (en) 2020-11-16 2020-11-16 Method, device, equipment and medium for controlling telescopic cup bracket in vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011276220.9A CN112519652A (en) 2020-11-16 2020-11-16 Method, device, equipment and medium for controlling telescopic cup bracket in vehicle

Publications (1)

Publication Number Publication Date
CN112519652A true CN112519652A (en) 2021-03-19

Family

ID=74981331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011276220.9A Pending CN112519652A (en) 2020-11-16 2020-11-16 Method, device, equipment and medium for controlling telescopic cup bracket in vehicle

Country Status (1)

Country Link
CN (1) CN112519652A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113911004A (en) * 2021-10-14 2022-01-11 岚图汽车科技有限公司 Control method of cup holder assembly and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202820762U (en) * 2011-09-22 2013-03-27 福特环球技术公司 Cup holder
CN106427722A (en) * 2015-06-15 2017-02-22 博斯股份有限两合公司 Device for holding at least one container in a vehicle interior and armrest unit
CN109501681A (en) * 2017-09-14 2019-03-22 福特环球技术公司 Steerable system for the article of article storage apparatus in move vehicle
US10576918B2 (en) * 2016-12-12 2020-03-03 Ford Global Technologies, Llc Vehicle console with coupled motion and enhanced storage capabilities
CN110869243A (en) * 2017-06-23 2020-03-06 奥迪股份公司 Storage device for a motor vehicle, method for operating a storage device, control device and motor vehicle

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202820762U (en) * 2011-09-22 2013-03-27 福特环球技术公司 Cup holder
CN106427722A (en) * 2015-06-15 2017-02-22 博斯股份有限两合公司 Device for holding at least one container in a vehicle interior and armrest unit
US10576918B2 (en) * 2016-12-12 2020-03-03 Ford Global Technologies, Llc Vehicle console with coupled motion and enhanced storage capabilities
CN110869243A (en) * 2017-06-23 2020-03-06 奥迪股份公司 Storage device for a motor vehicle, method for operating a storage device, control device and motor vehicle
US20200180490A1 (en) * 2017-06-23 2020-06-11 Audi Ag Holding device for use in a motor vehicle, method for operating a holding device, control unit and motor vehicle
CN109501681A (en) * 2017-09-14 2019-03-22 福特环球技术公司 Steerable system for the article of article storage apparatus in move vehicle
US10787129B2 (en) * 2017-09-14 2020-09-29 Ford Global Technologies Llc Operating systems for a vehicle storage device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113911004A (en) * 2021-10-14 2022-01-11 岚图汽车科技有限公司 Control method of cup holder assembly and related equipment

Similar Documents

Publication Publication Date Title
JP4162503B2 (en) Eye state determination device, eye state determination method, and computer program
CN110395260B (en) Vehicle, safe driving method and device
US20160314357A1 (en) Method and Device for Monitoring an External Dimension of a Vehicle
US20160262682A1 (en) Driver monitoring apparatus
CN109229062B (en) Automatic wiper control system and method
JP2017511766A (en) Autonomous driving system and autonomous driving method
WO2019114313A1 (en) Method and device for determining parking space in parking lot
CN103871200A (en) Safety warning system and method used for automobile driving
US20150085118A1 (en) Method and camera assembly for detecting raindrops on a windscreen of a vehicle
WO2013157466A1 (en) Smoking detection device, method and program
CN106740596A (en) Steering position method of adjustment, device and vehicle
CN112519652A (en) Method, device, equipment and medium for controlling telescopic cup bracket in vehicle
CN104933773A (en) Real-time road condition information monitoring vehicle data recorder and recording method for same
CN111637337A (en) Intelligent height positioning traffic signal device with image recognition function
KR101703238B1 (en) System and method for controlling a vehicle lamp
KR101513540B1 (en) Apparatus and method for controlling vehicle by gesture recognition with hand
CN108732969A (en) A kind of SCM Based automobile gesture control device and its control method
CN111114424A (en) Fog lamp starting method and device, control equipment and storage medium
CN206282368U (en) A kind of multifunctional running recorder
JPH10148681A (en) Method for detecting raindrops
US20210286973A1 (en) Facial recognition system for a vehicle technical field
CN106864368B (en) Warning method and system applied to vehicle
CN114312810A (en) Method and system for judging whether vehicle can be loaded on bank or not
JP7074037B2 (en) Image acquisition system
JP2010108167A (en) Face recognition device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210319

RJ01 Rejection of invention patent application after publication