Vehicle cup holder control method and device, electronic equipment and storage medium
Through the pressure detection and rotation unit of the vehicle cup holder, the problem that the driver cannot open the bottle cap with one hand is solved, and the function of opening the bottle cap with one hand is realized, which improves driving safety and convenience.
Patent Information
- Application Number
- CN202410977119.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-07-19
AI Technical Summary
The driver cannot open the bottle cap by one-handed operation while driving the car, causing both hands to leave the steering wheel, affecting safety and convenience.
A control method and device for a vehicle cup holder is designed to detect the pressing operation through a pressure detection unit, clamp the bottle, and drive the bottle to rotate in a preset direction until the bottle cap is separated from the bottle body, thereby allowing the driver to open it with one hand. Bottle cap.
The driver realizes the function of opening the bottle cap by one-handed operation, ensuring that the steering wheel is always controlled by both hands, improving driving safety and convenience.
Smart Images

Figure CN118894032A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile technology, and more specifically, to a control method, device, electronic device and storage medium for a vehicle cup holder. Background Art
[0002] With the rapid development of science and technology, cars are used more and more frequently in people's daily travel. People have higher requirements for cars, requiring them not only to provide a comfortable riding environment, but also to provide some convenient conditions needed for life. In order to facilitate the use of drivers and passengers, vehicle cup holders are usually provided between the seats of the vehicle.
[0003] At present, most of the cup holders in cars are used to place water cups or bottles. When the driver wants to drink water while driving the car, he cannot open the bottle cap with one hand. Therefore, how to assist the driver to open the bottle cap through the vehicle cup holder has become an urgent problem to be solved. Summary of the invention
[0004] In view of this, the embodiments of the present application propose a control method, device, electronic device and storage medium for a vehicle cup holder to improve the above-mentioned problems.
[0005] According to a first aspect of an embodiment of the present application, a method for controlling a vehicle cup holder is provided, the method comprising: in a case where it is determined that a bottle is placed in the vehicle cup holder, detecting a pressing operation acting on the bottle through the vehicle cup holder; if a first pressing operation acting on the bottle is detected, controlling the vehicle cup holder to clamp the bottle; in a case where the vehicle cup holder clamps the bottle, controlling the vehicle cup holder to drive the bottle to rotate in a first preset direction; if it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, controlling the vehicle cup holder to stop rotating.
[0006] According to a second aspect of an embodiment of the present application, a control device for a vehicle cup holder is provided, comprising a vehicle cup holder, wherein the vehicle cup holder comprises a pressure detection unit, a clamping unit and a rotating unit, and the device further comprises: a first detection module, for detecting a pressing operation on the bottle through the pressure detection unit when it is determined that a bottle is placed in the vehicle cup holder; a clamping module, for controlling the clamping unit to clamp the bottle if a first pressing operation on the bottle is detected; a first rotating module, for controlling the rotating unit to drive the bottle to rotate in a first preset direction when the clamping unit clamps the bottle; and a first control module, for controlling the rotating unit to stop rotating if it is determined that the rotation angle of the rotating unit in the first preset direction reaches a preset angle.
[0007] According to a third aspect of an embodiment of the present application, an electronic device is provided, including: a processor; a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the control method of the vehicle cup holder as described above is implemented.
[0008] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the control method of the vehicle cup holder as described above is implemented.
[0009] In the scheme of the present application, when it is determined that a bottle is placed in the vehicle cup holder, a pressing operation on the bottle is detected based on the vehicle cup holder, so that when the first pressing operation on the bottle is detected, the vehicle cup holder is controlled to clamp the bottle, so that the vehicle cup holder can be controlled to drive the bottle to rotate in a first preset direction when the cup is clamped, so that after it is determined that the rotation angle of the bottle driven by the vehicle cup holder in the first preset direction reaches a preset angle, it can be determined that the bottle body of the current bottle is separated from the bottle cap, and then the vehicle cup holder can be controlled to stop rotating, so as to ensure that the driver can open the bottle cap by single-handed operation.
[0010] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0012] Figure 1 It is a schematic diagram of a scene according to an embodiment of the present application.
[0013] Figure 2 It is a flowchart of a method for controlling a vehicle cup holder according to an embodiment of the present application.
[0014] Figure 3 is a flow chart of a method for controlling a vehicle cup holder according to another embodiment of the present application.
[0015] Figure 4 is a flow chart of a method for controlling a vehicle cup holder according to yet another embodiment of the present application.
[0016] Figure 5 It is a flowchart of specific steps of step 330 according to an embodiment of the present application.
[0017] Figure 6 is a flow chart of a method for controlling a vehicle cup holder according to another embodiment of the present application.
[0018] Figure 7 is a flow chart of a method for controlling a vehicle cup holder according to yet another embodiment of the present application.
[0019] Figure 8 is a block diagram of a control device for a vehicle cup holder according to an embodiment of the present application.
[0020] Fig. 9 It is a hardware structure diagram of an electronic device according to an embodiment of the present application.
[0021] The above-mentioned drawings have shown clear embodiments of the present invention, which will be described in more detail hereinafter. These drawings and textual descriptions are not intended to limit the scope of the present invention in any way, but to illustrate the concept of the present invention to computer technicians in this field through specific embodiments. DETAILED DESCRIPTION
[0022] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0025] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices. The flowcharts shown in the accompanying drawings are merely exemplary and do not necessarily include all the contents and operations / steps, nor do they necessarily have to be executed in the order described. For example, some operations / steps may be further decomposed, while some operations / steps may be combined or partially combined, so the actual execution order may change according to the actual situation.
[0026] Figure 1 is a schematic diagram of a scene according to an embodiment of the present application, such as Figure 1 As shown, in the schematic diagram of this scenario, a vehicle cup holder is included, wherein the vehicle cup holder includes a pressure detection unit 10, a clamping unit 20 and a rotating unit 30. When it is determined that a bottle is placed in the vehicle cup holder, the pressure detection unit 10 detects a pressing operation on the bottle, so that when the pressure detection unit 10 detects a first pressing operation on the bottle, the clamping unit 20 is controlled to clamp the bottle, and then when the clamping unit S20 clamps the bottle, the rotating unit 30 is controlled to drive the bottle to rotate in a first preset direction, so that when it is determined that the rotation angle of the bottle driven by the rotating unit 30 in the first preset direction reaches a preset angle, the rotating unit 30 is controlled to stop rotating, so as to ensure that the driver can smoothly unscrew the bottle cap with the help of the vehicle cup holder.
[0027] See also Figure 2 , Figure 2 The control method of the vehicle cup holder provided by an embodiment of the present application is shown. In a specific embodiment, the control method of the vehicle cup holder can be applied to Figure 8 The control device 600 of the vehicle cup holder and the electronic device 700 equipped with the control device 600 of the vehicle cup holder are shown. Fig. 9 ). The specific process of this embodiment will be described below. Of course, it can be understood that the method can be executed by a cloud server with computing processing capabilities. Figure 2 The process shown in the figure is described in detail, and the control method of the vehicle cup holder may specifically include the following steps:
[0028] Step 110 : When it is determined that a bottle is placed in the vehicle cup holder, a pressing operation on the bottle is detected through the vehicle cup holder.
[0029] As a way, when the driver wants to drink water while driving the vehicle alone, the driver can only open the bottle cap with both hands, but this will cause both hands to leave the steering wheel. In order to enable the user to open the bottle cap with one hand, this can be achieved through the vehicle cup holder on the vehicle. Optionally, when it is determined that a bottle is placed in the vehicle cup holder of the vehicle, if the driver presses down on the bottle, it is determined that the driver currently wants to use the vehicle cup holder to assist the driver in opening the bottle cap, so the pressing operation on the bottle can be detected through the vehicle cup holder.
[0030] Optionally, a press detection unit may be provided at the bottom of the vehicle cup holder, so that a press operation on the bottle can be detected by the press detection unit, so that when a press operation on the bottle is detected, the vehicle cup holder can assist the driver in opening the bottle cap.
[0031] Step 120 : If a first pressing operation on the bottle is detected, control the vehicle cup holder to clamp the bottle.
[0032] As a method, in order to avoid erroneous judgment of the pressing operation on the bottle due to the weight of the bottle itself, a pressing detection unit disposed at the bottom of the vehicle cup holder can be used to detect whether the pressure value of the pressing operation on the bottle is greater than or equal to a pressure threshold to determine whether the first pressing operation on the bottle is detected, so that when it is determined that the pressure value of the pressing operation on the bottle is greater than or equal to the pressure threshold, it is determined that the first pressing operation on the bottle is detected. The pressure threshold can be set according to actual needs and is not specifically limited here.
[0033] Optionally, after detecting the first pressing operation on the bottle, in order to facilitate the driver to open the bottle cap with one hand, the bottle can be clamped by controlling the clamping unit in the vehicle cup holder, so that the driver can operate by pinching the bottle cap with one hand. The clamping unit in the vehicle cup holder can be an air bag, which clamps the bottle by inflation to increase the area of the bottle to prevent the bottle from shaking in the cup holder. Optionally, the clamping unit can also be a fixed clamp at different positions in the vehicle cup holder, and the fixed clamp can be arc-shaped, so that it can fit the bottle more closely, thereby ensuring that the bottle can be clamped.
[0034] Step 130 : When the vehicle cup holder clamps the bottle, control the vehicle cup holder to drive the bottle to rotate in a first preset direction.
[0035] As a way, after determining that the vehicle cup holder has clamped the bottle, in order to assist the driver in smoothly opening the bottle cap, the rotating unit in the vehicle cup holder can be controlled to drive the bottle to rotate together, so that the driver can fix the bottle cap by pinching it, and the bottle body and the bottle cap can be separated as the vehicle cup holder rotates.
[0036] Optionally, since most beverages currently separate the bottle cap from the bottle body by rotating the bottle cap clockwise, the first preset direction may be a clockwise direction. Optionally, the first preset direction may also be a user-defined direction, which may be set by an electronic device (such as a smart phone, a smart wearable device, and a tablet computer) connected to the vehicle for communication, or by a direction setting button on the vehicle cup holder.
[0037] Step 140: If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, the vehicle cup holder is controlled to stop rotating.
[0038] As a method, when the vehicle cup holder drives the bottle to rotate to a certain angle in the first preset direction, it can be determined that the bottle cap and the bottle body of the bottle are separated. At this time, the rotating unit in the vehicle cup holder is controlled to stop rotating, and the clamping unit of the vehicle cup holder is controlled to release the bottle, so that the driver can take the bottle out of the vehicle cup holder. Among them, the preset angle can be 720°, that is, the angle at which the rotating unit drives the bottle body to rotate two circles, or other angles, which can be set according to actual needs and are not specifically limited here.
[0039] In an embodiment of the present application, when it is determined that a bottle is placed in the vehicle cup holder, a pressing operation on the bottle is detected based on the vehicle cup holder, so that when a first pressing operation on the bottle is detected, the vehicle cup holder is controlled to clamp the bottle, so that the vehicle cup holder can be controlled to drive the bottle to rotate in a first preset direction when the cup is clamped, so that after it is determined that the rotation angle of the bottle driven by the vehicle cup holder in the first preset direction reaches a preset angle, it can be determined that the bottle body of the current bottle is separated from the bottle cap, and then the vehicle cup holder can be controlled to stop rotating, so as to ensure that the driver can open the bottle cap by single-handed operation.
[0040] See also Figure 3 , Figure 3 The control method of the vehicle cup holder provided by an embodiment of the present application is shown. Figure 3 The process shown in the figure is described in detail, and the control method of the vehicle cup holder may specifically include the following steps:
[0041] Step 210 : When it is determined that a bottle is placed in the vehicle cup holder, a pressing operation on the bottle is detected through the vehicle cup holder.
[0042] Step 220 : If a first pressing operation on the bottle is detected, control the vehicle cup holder to clamp the bottle.
[0043] Step 230 : When the vehicle cup holder clamps the bottle, control the vehicle cup holder to drive the bottle to rotate in a first preset direction.
[0044] Step 240: If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, the vehicle cup holder is controlled to stop rotating.
[0045] The specific step descriptions of step 210 to step 240 can refer to step 110 and step 130 to step 140, which will not be repeated here.
[0046] Step 250 , when the bottle is taken out of the vehicle cup holder and then put back again, the vehicle cup holder detects a pressing operation on the bottle.
[0047] As one way, a pressure sensor at the bottom of the vehicle cup holder can be used to detect whether the bottle is taken out of the vehicle cup holder and whether the bottle is put back again after being taken out. Optionally, when the pressure sensor at the bottom of the vehicle cup holder detects no pressure, it can be determined that the bottle is taken out of the vehicle cup holder, and when the pressure sensor at the bottom of the vehicle cup holder detects pressure again, it can be determined that the current situation is that the bottle is taken out of the vehicle cup holder and then put back again.
[0048] Optionally, a press detection unit may be provided at the bottom of the vehicle cup holder, so that a press operation on the bottle can be detected by the press detection unit, so that when a press operation on the bottle is detected, the vehicle cup holder can assist the driver in tightening the bottle cap.
[0049] Step 260: If a second pressing operation on the bottle is detected, control the vehicle cup holder to drive the bottle to rotate in a second preset direction, wherein the first preset direction and the second preset direction are opposite directions.
[0050] As a way, in order to prevent the liquid in the bottle from spilling out due to the driving of the vehicle when the beverage in the bottle is put back into the vehicle cup holder, the vehicle cup holder can assist the driver in tightening the bottle cap. Therefore, when a pressure detection unit at the bottom of the vehicle cup holder detects whether the pressure acting on the vehicle cup holder is greater than a pressure threshold, when it is determined that the pressure value of the pressing operation acting on the bottle is greater than or equal to the pressure threshold, it is determined that a second pressing operation acting on the bottle is detected.
[0051] Optionally, when it is determined that a second pressing operation is detected on the bottle, it is determined that the driver currently wants to tighten the bottle cap with the assistance of the vehicle cup holder. Therefore, the rotating unit of the vehicle cup holder can be controlled to drive the bottle to rotate in a second preset direction. Since the driver pinches the bottle cap to fix it, the bottle body rotates with the rotating unit, and the bottle cap can be tightened with the help of the vehicle cup holder.
[0052] Optionally, before controlling the vehicle cup holder to drive the bottle to rotate, the bottle may be clamped by controlling a clamping unit of the vehicle cup holder, thereby preventing the bottle from shaking in the vehicle cup holder and causing the bottle cap to be unable to be tightened.
[0053] Step 270: If it is determined that the rotation angle of the vehicle cup holder in the second preset direction reaches the preset angle, the vehicle cup holder is controlled to stop rotating.
[0054] As a method, when the vehicle cup holder drives the bottle to rotate to a certain angle in the second preset direction, it can be determined that the bottle cap and the bottle body are tightened, and at this time, the rotating unit in the vehicle cup holder is controlled to stop rotating, so that the bottle can be restored to the position before it is unscrewed in the vehicle cup holder. Among them, the preset angle can be 720°, that is, the angle at which the rotating unit drives the bottle body to rotate two circles in the opposite direction, or other angles, which can be set according to actual needs and are not specifically limited here.
[0055] In this embodiment, after determining that the bottle placed in the vehicle cup holder is taken out and then put back, the vehicle cup holder detects a pressing operation on the bottle, and after detecting a second pressing operation on the bottle, the vehicle cup holder is controlled to drive the bottle to rotate in a second preset direction that is opposite to the first preset direction, and when it is determined that the rotation angle in the second preset direction reaches a preset angle, the vehicle cup holder is controlled to stop rotating, so that the driver can tighten the bottle cap with the assistance of the vehicle cup holder.
[0056] See also Figure 4 , Figure 4 The control method of the vehicle cup holder provided by an embodiment of the present application is shown. Figure 4 The process shown in the figure is described in detail, and the control method of the vehicle cup holder may specifically include the following steps:
[0057] Step 310 : When it is determined that a bottle is placed in the vehicle cup holder, a pressing operation on the bottle is detected through the vehicle cup holder.
[0058] Step 320 : If a first pressing operation on the bottle is detected, control the vehicle cup holder to clamp the bottle.
[0059] Step 330 : When the vehicle cup holder clamps the bottle, control the vehicle cup holder to drive the bottle to rotate in a first preset direction.
[0060] Step 340 : If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches the preset angle, the pressing operation on the bottle is detected by the vehicle cup holder.
[0061] As a method, when the rotating unit of the vehicle cup holder drives the bottle to rotate in the first preset direction to a preset angle, it can be determined that the bottle cap and the bottle body of the bottle have been separated at this time. In order to ensure that the opened bottle does not spill liquid, the clamping unit of the vehicle cup holder will not immediately release the force of clamping the bottle. The driver needs to press the bottle body to release the force of clamping the bottle, and then the pressure detection unit at the bottom of the vehicle cup holder is used to detect the pressing operation on the bottle.
[0062] Step 350 : If a third pressing operation on the bottle is detected, the vehicle cup holder is controlled to stop rotating, and the vehicle cup holder is controlled to release the force of clamping the bottle.
[0063] As a method, if the pressure detection unit at the bottom of the vehicle cup holder detects that the pressure value acting on the bottle is greater than the pressure threshold, it can be determined that the third pressing operation acting on the bottle is detected. At this time, it can be determined that the driver currently needs to take the bottle out of the vehicle cup holder. Therefore, the rotation control unit of the vehicle cup holder can be controlled to stop rotating first, and after stopping the rotation, the clamping unit of the vehicle cup holder is controlled to release the clamping force on the bottle, thereby ensuring that the driver can smoothly take out the bottle from the vehicle cup holder.
[0064] Step 360: If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, the vehicle cup holder is controlled to stop rotating.
[0065] Among them, the specific step descriptions of step 310 - step 330 - step 360 can refer to step 110 - step 140, which will not be repeated here.
[0066] In some embodiments, Figure 5 As shown, step 330 includes:
[0067] Step 331, detecting the structure of the bottle.
[0068] As a method, an image of the vehicle cup holder can be obtained by an indoor camera installed in the vehicle, and the image of the vehicle cup holder can be recognized to detect the structure of the bottle in the vehicle cup holder. The structure of the bottle can include a bottle body and a bottle cap, or only include a bottle body.
[0069] Step 332 : if the structure includes a bottle body and a bottle cap, then in a case where the vehicle cup holder clamps the bottle, controlling the vehicle cup holder to drive the bottle to rotate in the first preset direction.
[0070] As a way, when it is determined that the structure of the bottle includes a bottle body and a bottle cap, it can be determined that the driver needs to open the bottle cap with the assistance of the vehicle cup holder, so that the driver can smoothly drink the liquid (water or beverage, etc.) in the bottle, thereby solving the problem that it is inconvenient for the driver to drink water during driving. Therefore, when it is determined that the structure of the bottle includes a bottle body and a bottle cap, the bottle is clamped by controlling the clamping unit of the vehicle cup holder, and when the bottle is clamped, the rotating unit of the vehicle cup holder is controlled to drive the bottle to rotate.
[0071] Step 333 : If the structure only includes the bottle body, control the vehicle cup holder to clamp the bottle.
[0072] As a way, when it is determined that the structure of the bottle includes a bottle body, it can be determined that the driver does not need the assistance of the vehicle cup holder to open the bottle cap, and further, only the vehicle cup holder is required to ensure that the bottle does not shake in the vehicle cup holder, and therefore, the bottle can be clamped by controlling the clamping unit of the vehicle cup holder.
[0073] In this embodiment, when the vehicle cup holder drives the bottle to rotate in the first preset direction to reach a preset angle, the vehicle cup holder detects the pressing operation on the bottle, so that when the third pressing operation on the bottle is detected, the vehicle cup holder is controlled to stop rotating, and the vehicle cup holder is controlled to release the clamping force of the bottle, so that the driver can smoothly take the bottle out of the vehicle cup holder.
[0074] See also Figure 6 , Figure 6 The control method of the vehicle cup holder provided by an embodiment of the present application is shown. Figure 6 The process shown in the figure is described in detail, and the control method of the vehicle cup holder may specifically include the following steps:
[0075] Step 410 : When it is determined that a bottle is placed in the vehicle cup holder, a pressing operation on the bottle is detected through the vehicle cup holder.
[0076] Step 420 : If a first pressing operation on the bottle is detected, control the vehicle cup holder to clamp the bottle.
[0077] Step 430 , obtaining a driver image when the vehicle cup holder clamps the bottle.
[0078] As a method, when the rotating unit in the vehicle cup holder drives the bottle to rotate, different drivers have different experiences with the rotation speed of the rotating unit. Therefore, the rotating unit can be controlled to rotate at different rotation speeds according to different drivers, and then the driver's image can be obtained through the vehicle's indoor camera.
[0079] Step 440: Identify the driver based on the driver image to determine the driver's identity.
[0080] As a method, the driver's identity can be obtained by identifying the driver, and the driver's identity can be determined by the identity, so as to determine the rotation speed set for the driver. Optionally, the driver's image can be identified by a trained face recognition neural network.
[0081] Step 450 , determining a target rotation speed corresponding to the identity identifier, and controlling the vehicle cup holder to drive the bottle to rotate at the target rotation speed in the first preset direction.
[0082] As a method, corresponding rotation speeds can be pre-set for different drivers. Different drivers have different corresponding identity tags. After the identity tag corresponding to the driver image is determined, the identified identity tag can be compared with the pre-stored driver identity tag to determine the driver corresponding to the identity tag, and then the target rotation speed corresponding to the driver can be determined. Finally, the rotating unit of the vehicle cup holder can be controlled to drive the bottle to rotate at the target rotation speed in the first preset direction.
[0083] In some embodiments, step 450 includes: if the identity identifier indicates that the driver is a certified driver, determining a first rotational speed as the target rotational speed; or if the identity identifier indicates that the driver is an uncertified driver, determining a second rotational speed as the target rotational speed, wherein the second rotational speed is a default rotational speed and the first rotational speed is different from the second rotational speed.
[0084] As a method, the car owner and his family can be authenticated in advance, and the rotation speeds corresponding to their respective preferences can be set, so that the authenticated users and the corresponding rotation speeds can be associated and stored. When it is determined that the current driver is not an authenticated driver based on the identity identifier, the first rotation speed corresponding to the authenticated driver can be directly obtained, so that the first rotation speed can be determined as the target rotation speed, so that the bottle can be driven to rotate in the first preset direction by the first rotation speed.
[0085] Optionally, if the current driver is determined to be an uncertified driver based on the identity identification, in order to ensure that the uncertified driver can also open the bottle cap with the assistance of the vehicle cup holder, the default rotation speed (set second rotation speed) set for the vehicle before leaving the factory can be determined as the target rotation speed, so that the bottle can be driven to rotate in the first preset direction by the default rotation speed.
[0086] Step 460: If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, the vehicle cup holder is controlled to stop rotating.
[0087] The specific step descriptions of step 410 to step 420 and step 460 can refer to step 110 to step 120 and step 140, which will not be repeated here.
[0088] In this embodiment, the driver's identity is determined by identifying the acquired driver image, and the target rotation speed of the vehicle cup holder is determined according to the identity, so that the vehicle cup holder is controlled to rotate according to the target rotation speed, thereby improving the user experience.
[0089] See also Figure 7 , Figure 7 The control method of the vehicle cup holder provided by an embodiment of the present application is shown. Figure 7 The process shown in the figure is described in detail, and the control method of the vehicle cup holder may specifically include the following steps:
[0090] Step 510 : When it is determined that a bottle is placed in the vehicle cup holder, a pressing operation on the bottle is detected through the vehicle cup holder.
[0091] Step 520: If a first pressing operation on the bottle is detected, obtain label information corresponding to the bottle.
[0092] As a method, since bottles of different materials require different clamping forces, for example, the clamping force between glass bottles and plastic bottles, if the clamping force is too large, the bottle will be damaged, and if the clamping force is too small, the bottle will shake in the vehicle cup holder and the bottle cap cannot be opened smoothly. Therefore, before clamping the bottle, the label information corresponding to the bottle can be obtained to determine the material of the bottle according to the label information, so as to determine the clamping force of the bottle. Optionally, the image of the bottle can be collected by the indoor camera of the vehicle, so as to obtain the label information of the bottle from the collected image of the bottle.
[0093] Step 530: determine the target material of the bottle according to the label information, and determine the target clamping force of the bottle according to the target material.
[0094] As a method, the material of the container used to hold the liquid is usually indicated in the bottle label information, so that the target material of the bottle can be read from the obtained bottle label information, where the target material can be plastic, glass, aluminum, stainless steel, etc.
[0095] Optionally, the clamping force test may be performed in advance for different materials to determine the clamping force corresponding to bottles of different materials. After the target material is determined, the target clamping force of the corresponding bottle may be directly determined according to the target material.
[0096] Step 540 , controlling the vehicle cup holder to clamp the bottle according to the target clamping force.
[0097] As a method, after determining the target clamping force of the bottle, the bottle can be clamped by controlling the clamping unit of the vehicle cup holder with the target clamping force, thereby avoiding over-clamping or failure to clamp the bottle, and ensuring that the driver can smoothly unscrew the bottle cap with the assistance of the vehicle cup holder.
[0098] Step 550 : When the vehicle cup holder clamps the bottle, control the vehicle cup holder to drive the bottle to rotate in a first preset direction.
[0099] Step 560: If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, the vehicle cup holder is controlled to stop rotating.
[0100] The specific step descriptions of step 510 and step 550 - step 560 can refer to step 110 and step 130 - step 140, which will not be repeated here.
[0101] In this embodiment, the target material of the bottle is determined according to the obtained label information of the bottle, so that the clamping force of the bottle can be determined according to the target material, and then the vehicle cup holder can be controlled to clamp the bottle according to the clamping force, thereby avoiding over-clamping or failure to clamp the bottle, and ensuring that the driver can smoothly unscrew the bottle cap with the help of the vehicle cup holder.
[0102] Figure 8 is a block diagram of a control device for a vehicle cup holder according to an embodiment of the present application, including a vehicle cup holder, wherein the vehicle cup holder includes a pressure detection unit, a clamping unit, and a rotating unit, such as Figure 8 As shown, the control device 600 of the vehicle cup holder includes: a first detection module 610 , a clamping module 620 , a first rotation module 630 and a first control module 640 .
[0103] The first detection module 610 is used to detect the pressing operation on the bottle through the pressure detection unit when it is determined that a bottle is placed in the cup holder of the vehicle; the clamping module 620 is used to control the clamping unit to clamp the bottle if a first pressing operation on the bottle is detected; the first rotation module 630 is used to control the rotation unit to drive the bottle to rotate in a first preset direction when the clamping unit clamps the bottle; the first control module 640 is used to control the rotation unit to stop rotating if it is determined that the rotation angle of the rotation unit in the first preset direction reaches a preset angle.
[0104] In some embodiments, the control device 600 of the vehicle cup holder further includes: a second detection module, used to detect a pressing operation on the bottle through the pressure detection unit when the bottle is taken out of the vehicle cup holder and then put back; a second rotation module, used to control the rotation unit to drive the bottle to rotate in a second preset direction if a second pressing operation on the bottle is detected, wherein the first preset direction and the second preset direction are opposite directions; and a second control module, used to control the rotation unit to stop rotating if it is determined that the rotation angle of the rotation unit in the second preset direction reaches the preset angle.
[0105] In some embodiments, the first control module 640 includes: a first detection submodule, which is used to detect the pressing operation applied to the bottle through the pressure detection unit if it is determined that the rotation angle of the rotating unit in the first preset direction reaches the preset angle; and a first control submodule, which is used to control the rotating unit to stop rotating and control the clamping unit to release the force of clamping the bottle if a third pressing operation applied to the bottle is detected.
[0106] In some embodiments, the first rotation module 630 includes: a second detection submodule for detecting the structure of the bottle; a second control submodule for controlling the rotation unit to drive the bottle to rotate in the first preset direction when the clamping unit clamps the bottle if the structure includes a bottle body and a bottle cap; or a third control submodule for controlling the clamping unit to clamp the bottle if the structure only includes a bottle body.
[0107] In some embodiments, the first rotation module 630 also includes: an image acquisition submodule for acquiring a driver image; an identity identification submodule for identifying the driver based on the driver image and determining the driver's identity; a rotation submodule for determining a target rotation speed corresponding to the identity, and controlling the rotation unit to drive the bottle to rotate at the target rotation speed in the first preset direction.
[0108] In some embodiments, the rotation submodule includes: a first target rotation speed determination unit, used to determine a first rotation speed as the target rotation speed if the identity identification indicates that the driver is a certified driver; or a second target rotation speed determination unit, used to determine a second rotation speed as the target rotation speed if the identity identification indicates that the driver is an uncertified driver, wherein the second rotation speed is a default rotation speed and the first rotation speed is different from the second rotation speed.
[0109] In some embodiments, the clamping module 620 includes: a label information acquisition submodule, used to acquire label information corresponding to the bottle; a target clamping force determination submodule, used to determine the target material of the bottle according to the label information, and determine the target clamping force of the bottle according to the target material; a clamping submodule, used to control the clamping unit to clamp the bottle according to the target clamping force.
[0110] According to one aspect of the embodiments of the present application, an electronic device is also provided, such as Fig. 9 As shown, the vehicle 700 includes a processor 710 and one or more memories 720. The one or more memories 720 are used to store program instructions executed by the processor 710. When the processor 710 executes the program instructions, the above-mentioned vehicle cup holder control method is implemented.
[0111] Furthermore, the processor 710 may include one or more processing cores. The processor 710 runs or executes instructions, programs, code sets or instruction sets stored in the memory 720, and calls data stored in the memory 720. Optionally, the processor 710 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 710 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor, but may be implemented separately through a communication chip.
[0112] According to one aspect of the present application, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may exist independently without being assembled into the electronic device. The above computer-readable storage medium carries computer-readable instructions, and when the computer-readable storage instructions are executed by a processor, the method in any of the above embodiments is implemented.
[0113] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0114] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not constitute limitations on the units themselves in some cases.
[0115] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0116] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0117] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for controlling a vehicle cup holder, characterized in that: The method comprises: When it is determined that a bottle is placed in the vehicle cup holder, detecting a pressing operation on the bottle through the vehicle cup holder; If a first pressing operation on the bottle is detected, controlling the vehicle cup holder to clamp the bottle; When the vehicle cup holder clamps the bottle, controlling the vehicle cup holder to drive the bottle to rotate in a first preset direction; If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, the vehicle cup holder is controlled to stop rotating.
2. The method according to claim 1, characterized in that After controlling the vehicle cup holder to stop rotating if it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, the method includes: When the bottle is taken out of the vehicle cup holder and then put back into the vehicle cup holder, detecting a pressing operation on the bottle through the vehicle cup holder; If a second pressing operation on the bottle is detected, controlling the vehicle cup holder to drive the bottle to rotate in a second preset direction, wherein the first preset direction and the second preset direction are two opposite directions; If it is determined that the rotation angle of the vehicle cup holder in the second preset direction reaches the preset angle, the vehicle cup holder is controlled to stop rotating.
3. The method according to claim 1, characterized in that If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, controlling the vehicle cup holder to stop rotating includes: If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches the preset angle, detecting a pressing operation on the bottle through the vehicle cup holder; If a third pressing operation on the bottle is detected, the vehicle cup holder is controlled to stop rotating, and the vehicle cup holder is controlled to release the force of clamping the bottle.
4. The method according to claim 1, wherein When the vehicle cup holder clamps the bottle, controlling the vehicle cup holder to drive the bottle to rotate in a first preset direction includes: detecting the structure of the bottle; If the structure includes a bottle body and a bottle cap, when the vehicle cup holder clamps the bottle, controlling the vehicle cup holder to drive the bottle to rotate in the first preset direction; or If the structure only includes the bottle body, the vehicle cup holder is controlled to clamp the bottle.
5. The method according to claim 1, wherein The controlling the vehicle cup holder to drive the bottle to rotate in a first preset direction includes: Acquire driver image; Identify the driver based on the driver image to determine the driver's identity; A target rotation speed corresponding to the identity identifier is determined, and the vehicle cup holder is controlled to drive the bottle to rotate at the target rotation speed in the first preset direction.
6. The method according to claim 5, characterized in that The determining of the target rotation speed corresponding to the identity identifier includes: If the identity identifier indicates that the driver is an authenticated driver, determining a first rotational speed as the target rotational speed; or If the identity identifier indicates that the driver is an uncertified driver, a second rotational speed is determined as the target rotational speed, wherein the second rotational speed is a default rotational speed and the first rotational speed is different from the second rotational speed.
7. The method according to any one of claims 1 to 6, characterized in that The controlling the vehicle cup holder to clamp the bottle comprises: Obtain label information corresponding to the bottle; determining a target material of the bottle according to the label information, and determining a target clamping force of the bottle according to the target material; The vehicle cup holder is controlled to clamp the bottle according to the target clamping force.
8. A control device for a vehicle cup holder, characterized in that: A vehicle cup holder is provided, wherein the vehicle cup holder includes a pressure detection unit, a clamping unit, and a rotating unit. The device further includes: a first detection module, configured to detect a pressing operation on the bottle through the pressure detection unit when determining that a bottle is placed in the cup holder of the vehicle; a clamping module, configured to control the clamping unit to clamp the bottle if a first pressing operation acting on the bottle is detected; a first rotating module, configured to control the rotating unit to drive the bottle to rotate in a first preset direction when the clamping unit clamps the bottle; The first control module is configured to control the rotating unit to stop rotating if it is determined that the rotation angle of the rotating unit in the first preset direction reaches a preset angle.
9. An electronic device, characterized in that: The electronic device comprises: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, which can be called by a processor to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Bottle opening and closing device used in motor vehicle
CN107720659A
Passenger car front cab
CN109383348A
Automobile -used intelligent glass stand and car
CN206186858U
Automatic clamping device of automobile cup stand
CN210191277U
Motor vehicle with a device for opening and closing a rotary lock
DE102019006899A1
Cited By
Vehicle cup holder control method and apparatus, electronic device, and storage medium
WO2026016540A1
