An in-cabin camera, a control method thereof, an electronic device, and a vehicle

CN123020945APending Publication Date: 2026-10-30BEIJING CHEHEJIA AUTOMOBILE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510572840.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

然而,这些摄像头的布置必须根据乘员的位置和视线范围进行精确调整,导致座舱内的摄像头布局变得复杂

Benefits of technology

[0058]借由上述技术方案,本申请提供的舱内摄像头包括:第一旋转机构、第二旋转机构、摄像头组件、摄像头固定板、驱动机构和控制器;第一旋转机构活动连接于摄像头固定板的一端,第二旋转机构固定连接于靠近摄像头固定板的另一端的上表面,摄像头固定板的上表面相对于水平面设置;第二旋转机构远离第一旋转机构的一侧与摄像头组件连接;摄像头固定板的下表面设置有驱动机构,驱动机构与控制器连接。驱动机构通过驱动第一旋转机构和第二旋转机构,实现摄像头的左右旋转和上下旋转,从而提供多方位的拍摄角度,并有效降低了整体成本。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123020945A_ABST
    Figure CN123020945A_ABST
Patent Text Reader

Abstract

The application discloses an in-cabin camera and a control method thereof, an electronic device and a vehicle, and relates to the field of vehicles.The in-cabin camera comprises a first rotating mechanism, a second rotating mechanism, a camera assembly, a camera fixing plate, a driving mechanism and a controller.The first rotating mechanism is movably connected to one end of the camera fixing plate, the second rotating mechanism is fixedly connected to the upper surface of the other end close to the camera fixing plate, and the upper surface of the camera fixing plate is arranged relative to a horizontal plane.The side, away from the first rotating mechanism, of the second rotating mechanism is connected to the camera assembly.The lower surface of the camera fixing plate is provided with the driving mechanism, and the driving mechanism is connected to the controller.The driving mechanism drives the first rotating mechanism and the second rotating mechanism, realizes the left-right rotation and the up-down rotation of the camera, thereby providing a multi-directional shooting angle, and effectively reducing the overall cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle technology, and in particular to an in-cabin camera and its control method, electronic equipment, and a vehicle. Background Technology

[0002] With the continuous development of intelligent cockpits in automobiles, the demand for cameras inside the cockpit is also increasing.

[0003] Currently, due to space constraints within the vehicle, variations in passenger positioning, and differences in camera field of view, multiple cameras are often required within the vehicle. However, the placement of these cameras must be precisely adjusted according to the passenger's position and field of view, resulting in a complex camera layout within the cabin. To meet various functional requirements, a large number of cameras are needed.

[0004] Therefore, how to reduce the number of cameras while still meeting various functional requirements has become an urgent problem to be solved in this field. Summary of the Invention

[0005] In view of the above problems, this application provides an in-cabin camera and its control method, electronic equipment, and vehicle to reduce overall costs. The specific solution is as follows:

[0006] The first aspect of this application provides an in-cabin camera, which includes a first rotating mechanism, a second rotating mechanism, a camera assembly, a camera mounting plate, a drive mechanism, and a controller.

[0007] The first rotating mechanism 11 is movably connected to one end of the camera mounting plate 14, and the second rotating mechanism 12 is fixedly connected to the upper surface of the other end near the camera mounting plate 14. The upper surface of the camera mounting plate 14 is parallel to the horizontal plane.

[0008] The side of the second rotating mechanism 12 away from the first rotating mechanism 11 is connected to the camera assembly 13;

[0009] The lower surface of the camera mounting plate 14 is provided with the driving mechanism 15, which is connected to the controller 16. The lower surface of the camera mounting plate 14 is opposite to the horizontal plane.

[0010] The side of the second rotating mechanism away from the first rotating mechanism is connected to the first end of the camera bracket;

[0011] The second end of the camera bracket is connected to the camera body.

[0012] Optionally, the first rotating mechanism includes: a first driven gear and a driving gear;

[0013] The first driven gear is fixedly connected to one end of the camera mounting plate, and the first driven gear meshes with the driving gear.

[0014] Optionally, the second rotating mechanism includes: a second driven gear, a central gear, a bevel gear, a coaxial gear, a bevel gear, and a timing belt;

[0015] The bevel gear is connected through the middle of the camera bracket. The gear below the bevel gear meshes with one side of the synchronous belt, and the other side of the synchronous belt meshes with the drive mechanism.

[0016] The gear above the bevel gear meshes with the coaxial gear of the bevel gear, the coaxial gear of the bevel gear meshes with the intermediate gear, the intermediate gear meshes with the second driven gear, and the intermediate gear and the second driven gear are fixedly connected to the upper surface of the other end near the camera mounting plate by a bracket.

[0017] Optionally, the driving mechanism includes: a first rotation control mechanism, a second rotation control mechanism, and a rotation direction control mechanism;

[0018] One end of the first rotation control mechanism engages with the other side of the synchronous belt, and one end of the second rotation control mechanism is fixedly connected to the first rotation mechanism.

[0019] When the rotation direction control mechanism is energized, the rotation direction control mechanism engages with the other end of the first rotation control mechanism;

[0020] When the rotation direction control mechanism is not powered, the rotation direction control mechanism engages with the other end of the second rotation control mechanism.

[0021] Optionally, the first rotation control mechanism includes: a first rotation shaft and a third driven gear;

[0022] One end of the first rotating shaft meshes with the other side of the synchronous belt, and the third driven gear is fixedly provided on the other end of the first rotating shaft;

[0023] When the rotation direction control mechanism is energized, the third driven gear meshes with the rotation direction control mechanism.

[0024] Optionally, the second rotation control mechanism includes: a second rotation shaft and a fourth driven gear;

[0025] One end of the second rotating shaft is fixedly connected to the first rotating mechanism, and the other end of the second rotating shaft is fixedly connected to the fourth driven gear.

[0026] When the rotation direction control mechanism is not powered, the fourth driven gear meshes with the rotation direction control mechanism.

[0027] Optionally, the rotation direction control mechanism includes: a relay, an upper limit plate, a spring, a moving gear, a third rotating shaft, a lower limit plate, and a drive motor;

[0028] One end of the third rotating shaft passes through the upper limit plate, and the other end of the third rotating shaft passes through the lower limit plate;

[0029] The spring and the moving gear installed between the upper limit plate and the lower limit plate are sleeved on the third rotating shaft. The moving gear is located at the bottom of the spring, and the bottom of the elastic element 133 is located at the top of the moving gear 134.

[0030] The upper limit plate is equipped with the relay, and the other end of the third rotating shaft is connected to the drive motor;

[0031] When the relay is energized, the moving gear meshes with the other end of the first rotation control mechanism;

[0032] When the relay is not energized, the moving gear meshes with the other end of the second rotation control mechanism.

[0033] A second aspect of this application provides an in-cabin camera control method, applied to the aforementioned in-cabin camera, comprising:

[0034] The controller sends rotation direction commands to the drive mechanism;

[0035] When the rotation direction command is received, and the rotation direction command is a left or right rotation command, the first rotation mechanism is driven by the drive mechanism to make the camera rotate left or right;

[0036] When the rotation direction command is received, and the rotation direction command is an up-and-down rotation command, the second rotation mechanism is driven by the drive mechanism to make the camera rotate up and down.

[0037] Optionally, driving the first rotating mechanism via the driving mechanism to rotate the camera left and right includes:

[0038] De-energize the relay in the drive mechanism;

[0039] When the relay is de-energized, it controls the drive motor in the drive mechanism to rotate, thereby driving the first rotation mechanism to rotate the camera left and right.

[0040] Optionally, driving the second rotating mechanism via the driving mechanism to rotate the camera vertically includes:

[0041] Controls the energization of the relays in the drive mechanism;

[0042] When the relay is energized, it controls the drive motor in the drive mechanism to rotate, thereby driving the second rotation mechanism to rotate the camera up and down.

[0043] Optional, also includes:

[0044] The controller sends a stop rotation command to the drive mechanism;

[0045] When the stop rotation command is received, the drive motor in the drive mechanism is controlled to stop rotating.

[0046] Optional, also includes:

[0047] The camera captures user images;

[0048] The controller identifies the target object by recognizing the user image.

[0049] The controller determines the deviation direction of the target object based on the center of the user image and the position of the target object, and generates a target rotation control command based on the deviation direction.

[0050] When the target rotation control command is received, and the target rotation control command is a left-right rotation command, the first rotation mechanism is driven by the drive mechanism to make the camera rotate left and right;

[0051] When the target rotation control command is received, and the target rotation control command is an up-and-down rotation command, the second rotation mechanism is driven by the drive mechanism to make the camera rotate up and down.

[0052] Optional, also includes:

[0053] The camera captures user images;

[0054] Detect whether the user image contains a focus target;

[0055] If the user image does not contain the focus target, the shooting range of the camera is adjusted.

[0056] A third aspect of this application provides an electronic device, comprising: a processor and a memory, the processor and the memory being connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; the memory is used to store the program, the program being used to implement the cabin camera control method described in the second aspect of this application.

[0057] A fourth aspect of this application provides a vehicle that includes the electronic equipment described in the third aspect of this application.

[0058] The in-cabin camera provided by this application, utilizing the above technical solution, includes: a first rotating mechanism, a second rotating mechanism, a camera assembly, a camera mounting plate, a drive mechanism, and a controller. The first rotating mechanism is movably connected to one end of the camera mounting plate, and the second rotating mechanism is fixedly connected to the upper surface of the other end of the camera mounting plate, with the upper surface of the camera mounting plate positioned relative to a horizontal plane. The side of the second rotating mechanism away from the first rotating mechanism is connected to the camera assembly. A drive mechanism is provided on the lower surface of the camera mounting plate, and the drive mechanism is connected to the controller. By driving the first and second rotating mechanisms, the drive mechanism enables the camera to rotate left and right and up and down, thereby providing multi-directional shooting angles and effectively reducing overall costs. Attached Figure Description

[0059] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent when taken in conjunction with the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0060] Figure 1 This application provides a first architecture schematic diagram of an in-cabin camera;

[0061] Figure 2 This application provides a schematic diagram of the architecture of an in-cabin camera.

[0062] Figure 3 A first top view of an in-cabin camera provided in this application;

[0063] Figure 4 A second top view of an in-cabin camera provided in this application;

[0064] Figure 5 A schematic diagram of a third architecture for an in-cabin camera provided in this application;

[0065] Figure 6 A third top view of an in-cabin camera provided for this application;

[0066] Figure 7A schematic diagram of a bevel gear and a bevel gear meshing with a coaxial gear, provided for this application;

[0067] Figure 8 A schematic diagram illustrating the left-right rotation of an in-cabin camera provided in this application;

[0068] Figure 9 A schematic diagram illustrating the vertical rotation of an in-cabin camera provided in this application;

[0069] Figure 10 A schematic diagram of a fourth architecture for an in-cabin camera provided in this application;

[0070] Figure 11 A fifth architecture diagram of an in-cabin camera provided in this application;

[0071] Figure 12 A sixth architecture diagram of an in-cabin camera provided in this application;

[0072] Figure 13 A schematic diagram of the seventh architecture of an in-cabin camera provided in this application;

[0073] Figure 14 A schematic diagram of the eighth architecture of an in-cabin camera provided in this application;

[0074] Figure 15 A schematic diagram illustrating the left-right rotation of another in-cabin camera provided in this application;

[0075] Figure 16 This application provides a schematic diagram of a bevel gear before it moves.

[0076] Figure 17 This application provides a schematic diagram of a bevel gear after it has moved.

[0077] Figure 18 A flowchart of an in-cabin camera control method provided in this application;

[0078] Figure 19 A flowchart of a camera angle adjustment method provided in this application;

[0079] Figure 20 This is a schematic diagram of an adjusted user image provided in this application. Detailed Implementation

[0080] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is for explaining specific embodiments only and is not intended to limit the scope of this application.

[0081] The embodiments of this application will now be described with reference to the accompanying drawings. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.

[0082] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.

[0083] With the continuous advancement of automotive intelligent cockpit technology, the demand for in-vehicle cameras is also gradually increasing.

[0084] Currently, due to limitations in vehicle interior space layout, occupant positioning, and camera field of view, multiple cameras are typically installed in various locations within the vehicle. The field of view of a single camera is limited, while the range of motion and posture changes of occupants inside the vehicle are extensive and complex. This makes accurate occupant posture identification through data fusion from multiple cameras a necessary technological means. However, the data fusion process from multiple cameras faces challenges such as asynchronous data transmission, coordinate calibration, and overlapping lines of view, which further complicate the process.

[0085] To address the aforementioned problems, this application provides an in-cabin camera. The in-cabin camera of this application embodiment will be described in detail below with reference to the accompanying drawings.

[0086] Reference Figure 1 , Figure 1 This application provides a schematic diagram of a first architecture for an in-cabin camera, as shown in the embodiment of the present application. Figure 1 As shown, the in-cabin camera includes: a first rotating mechanism 11, a second rotating mechanism 12, a camera assembly 13, a camera mounting plate 14, a drive mechanism 15, and a controller 16.

[0087] Specifically, Figure 1 This is the front view of the in-cabin camera; optional, see [link / reference]. Figure 2 The image shows a first top view of an in-cabin camera.

[0088] The first rotating mechanism 11 is movably connected to one end of the camera mounting plate 14, and the second rotating mechanism 12 is fixedly connected to the upper surface of the other end near the camera mounting plate 14. The upper surface of the camera mounting plate 14 is parallel to the horizontal plane.

[0089] Furthermore, combined with Figure 2 See the content shown. Figure 3 The camera assembly 13 includes: a camera body 21 and a camera bracket 22.

[0090] The side of the second rotating mechanism 12 away from the first rotating mechanism 11 is connected to the first end of the camera bracket 22.

[0091] The second end of the camera bracket 22 is connected to the camera body 21.

[0092] It should be noted that when the camera body 21 malfunctions, the camera body 21 can be replaced or repaired independently without disassembling the entire camera assembly 13, which improves the convenience of repair and reduces maintenance costs.

[0093] Furthermore, in combination Figure 3 See the content shown. Figure 4 The first rotating mechanism 11 includes a first driven gear 31 and a driving gear 32.

[0094] The first driven gear 31 is fixedly connected to one end of the camera mounting plate 14, and the first driven gear 31 meshes with the driving gear 32.

[0095] Understandably, when the drive gear 32 rotates, the first driven gear 31, which meshes with the drive gear 32, drives the camera mounting plate 14 to rotate left and right, so that the camera can rotate left and right and observe the situation of the occupants from all directions.

[0096] It should be noted that the cabin camera, which rotates left and right via the first rotating mechanism 11, can be fixed to the rearview mirror inside the car (i.e., the area in the ceiling between the driver and passenger seats). By rotating left and right, the same camera can observe the driver's occupant when rotated to the left and the passenger's occupant when rotated to the right. If placed on the ceiling diagonally above the second and third rows, the camera can observe the occupant in the middle position when positioned in the middle, observe the occupant on the left when rotated to the left, and observe the occupant on the right when rotated to the right.

[0097] Furthermore, combined with Figure 1 and Figure 3 See the content shown. Figure 5 The second rotating mechanism 12 includes: a second driven gear 51, a central gear 52, a bevel gear, a coaxial gear 53, a bevel gear 54, and a synchronous belt 55.

[0098] Specifically, Figure 5For a different front view from an in-cabin camera, optional, see [link / reference]. Figure 6 The image shows a top view of an in-cabin camera.

[0099] A bevel gear 54 is connected through the middle of the camera bracket 22. The gear below the bevel gear 54 meshes with one side of the synchronous belt 55, and the other side of the synchronous belt 55 meshes with the drive mechanism 15.

[0100] The gear above the bevel gear 54 meshes with the coaxial bevel gear 53, the coaxial bevel gear 53 meshes with the intermediate gear 52, the intermediate gear 52 meshes with the second driven gear 51, and the intermediate gear 52 and the second driven gear 51 are fixedly connected to the upper surface of the other end near the camera mounting plate 14 by a bracket.

[0101] Understandably, the main function of bevel gear 54 is to achieve a 90° switch in gear rotation direction. In other words, bevel gear 54 can convert the left-right rotation direction transmitted from synchronous belt 55 into an up-down rotation direction, causing the camera to rotate up and down. This design allows the camera to operate not only in the horizontal direction but also to precisely control its rotation in the vertical direction, thus providing more comprehensive viewpoint control.

[0102] For details on the specific meshing behavior of bevel gear 54 and coaxial bevel gear 53, please refer to [link / reference]. Figure 7 .

[0103] The second rotating mechanism 12 is connected to the camera assembly 13 on the side away from the first rotating mechanism 11.

[0104] A drive mechanism 15 is provided on the lower surface of the camera mounting plate 14. The drive mechanism 15 is connected to the controller 16, and the lower surface of the camera mounting plate 14 is opposite to the horizontal plane. The controller 16 sends a rotation direction command to the drive mechanism 15. When a rotation direction command is received, and the rotation direction command is a left-right rotation command, the drive mechanism 15 drives the first rotation mechanism 11 to make the camera rotate left-right. When a rotation direction command is received, and the rotation direction command is an up-down rotation command, the drive mechanism 15 drives the second rotation mechanism 12 to make the camera rotate up-down.

[0105] For details, see Figure 8 When the camera mounting plate 14 rotates to the left or right, the camera bracket 22 can drive the camera body 21 to rotate to the left or right, thereby realizing the left and right rotation of the camera.

[0106] For details, see Figure 9 When the second rotating mechanism 12 rotates, the camera bracket 22 can drive the camera body 21 to rotate up or down, thereby realizing the up and down rotation of the camera.

[0107] Furthermore, combined with Figure 5 See the content shown. Figure 10 The drive mechanism 15 includes: a first rotation control mechanism 101, a second rotation control mechanism 102, and a rotation direction control mechanism 103.

[0108] One end of the first rotation control mechanism 101 engages with the other side of the synchronous belt 55, and one end of the second rotation control mechanism 102 is fixedly connected to the first rotation mechanism 11.

[0109] When the rotation direction control mechanism 103 is energized, the rotation direction control mechanism 103 engages with the other end of the first rotation control mechanism 101.

[0110] When the rotation direction control mechanism 103 is not energized, the rotation direction control mechanism 103 engages with the other end of the second rotation control mechanism 102.

[0111] It's worth noting that by independently controlling the up / down and left / right rotation, users can more precisely adjust the camera's viewing angle. Up / down rotation controls the vertical field of view, while left / right rotation controls the horizontal field of view, resulting in more comprehensive angular coverage.

[0112] Furthermore, combined with Figure 10 See the content shown. Figure 11 The first rotation control mechanism 101 includes a first rotation shaft 111 and a third driven gear 112.

[0113] One end of the first rotating shaft 111 meshes with the other side of the synchronous belt 55, and a third driven gear 112 is fixedly installed on the other end of the first rotating shaft 111.

[0114] When the rotation direction control mechanism 103 is energized, the third driven gear 112 meshes with the rotation direction control mechanism 103.

[0115] Understandably, when the relay in the rotation direction control mechanism 103 is energized, the rotation direction control mechanism 103 starts to rotate, driving the third driven gear 112 to rotate. The left and right rotational motion is transmitted to the bevel gear 54 through the synchronous belt 55. The bevel gear 54 converts the left and right rotational motion into up and down motion. The gear above the bevel gear 54 meshes with the coaxial gear 53 of the bevel gear. The coaxial gear 53 of the bevel gear meshes with the intermediate gear 52. The intermediate gear 52 meshes with the second driven gear 51, thereby driving the camera bracket to rotate up and down.

[0116] It should be noted that converting left-right rotation to up-down rotation can reduce the number of parts required for the equipment, thereby reducing the complexity of the control system.

[0117] Furthermore, combined with Figure 11See the content shown. Figure 12 The second rotation control mechanism 102 includes a second rotation shaft 121 and a fourth driven gear 122.

[0118] One end of the second rotating shaft 121 is fixedly connected to the first rotating mechanism 11, and the other end of the second rotating shaft 121 is fixedly connected to the fourth driven gear 122.

[0119] When the rotation direction control mechanism 113 is not energized, the fourth driven gear 122 meshes with the rotation direction control mechanism 103.

[0120] It is understandable that when the relay in the rotation direction control mechanism 103 is not energized, the rotation direction control mechanism 103 starts to rotate, driving the fourth driven gear 122 and the second rotation shaft 121 to rotate, thereby driving the drive gear 22 in the first rotation shaft 11 to rotate, thus realizing the left and right rotation of the camera.

[0121] It should be noted that using gear transmission to achieve rotation can reduce the load on the motor, reduce motor wear, and thus improve the overall reliability and service life of the system.

[0122] Furthermore, combined with Figure 12 See the content shown. Figure 13 and Figure 14 The rotation direction control mechanism 103 includes: a relay 131, an upper limit plate 132, an elastic element 133, a moving gear 134, a third rotation shaft 135, a lower limit plate 136, and a drive motor 137.

[0123] One end of the third rotating shaft 135 passes through the upper limit plate 132, and the other end of the third rotating shaft 135 passes through the lower limit plate 136.

[0124] The elastic element 133 and the moving gear 134, which are installed between the upper limit plate 135 and the lower limit plate 136, are sleeved on the third rotating shaft 135. The moving gear 134 is located at the bottom of the elastic element 133, close to the lower limit plate 136.

[0125] The upper limit plate 132 is equipped with a relay 131, and the other end of the third rotating shaft 135 is connected to the drive motor 137.

[0126] When the relay 131 is energized, the moving gear 134 meshes with the other end of the first rotation control mechanism 101;

[0127] When the relay 131 is not energized, the moving gear 134 engages with the other end of the second rotation control mechanism 102.

[0128] Optionally, the elastic element 133 includes, but is not limited to, springs and other elastic components.

[0129] Understandably, when the drive motor 137 starts, the third rotating shaft 135 also rotates, and the moving gear 134 of the third rotating shaft 135 rotates together. The moving gear 134 moves between the upper limit plate 135 and the lower limit plate 136, thereby realizing the up-down and left-right rotation of the camera.

[0130] It should be noted that when relay 131 is not energized, the upper limit plate 132 has no magnetic force, and the moving gear 134 is in its lowest position under the action of the elastic element 133, engaging with the lower limit plate 136. At this time, the moving gear 134 meshes with the fourth driven gear 122 in the second rotation mechanism 12, driving the second rotation shaft 121 to rotate, and finally driving the camera to complete the left and right rotation. When relay 131 is energized, the upper limit plate 132 generates magnetic force. After the moving gear 134 overcomes the force of the elastic element 133, it moves upward. When the magnetic force and the force of the elastic element are equal, the moving gear 134 engages with the third driven gear 112 in the first rotation control mechanism 101, driving the gear on the first rotation shaft 111 and the synchronous belt 55 to rotate, and finally driving the camera to complete the up and down rotation.

[0131] Furthermore, the embodiments of this application require rotational motion in two directions (i.e., up-down rotation and left-right rotation), which can be achieved using two drive motors. However, in order to reduce costs, only one drive motor is used in the embodiments of this application. In order to coordinate the rotational motion in two directions, the gears cannot mesh.

[0132] For details, see Figure 15 When the first rotating mechanism 11 rotates the camera bracket 22 to the left or right, the bevel gear 54 fixed to the camera mounting plate 14 will move accordingly, but the first rotating shaft 111 will remain in its original position. Figure 13 (The position of the dashed circle in the image). After the bevel gear 54 moves, the gear below the bevel gear 54 also moves and cannot mesh with the gear on the first rotating shaft 111.

[0133] To address the aforementioned issues, this embodiment employs a timing belt 55 to resolve the meshing problem between the gear on the first rotating shaft 111 and the bevel gear 54. The timing belt 55 is capable of small-range movement and adjustment; even when the gear below the bevel gear 54 moves slightly, the timing belt 55 ensures that the bevel gear 54 remains meshed with the gear on the first rotating shaft 111. Specifically, see [link to relevant documentation]. Figure 16 The diagram shown in the image depicts the bevel gear 54 before it moves, and... Figure 17 The schematic diagram shown illustrates that the meshing relationship is maintained by the timing belt 45 after the bevel gear 54 has moved.

[0134] In summary, the drive mechanism, by driving the first and second rotating mechanisms, enables the camera to rotate horizontally and vertically. This allows a single in-cabin camera to capture images from multiple viewing angles and adaptively adjust the local or overall field of view to achieve optimal image quality. This approach helps obtain the best shooting angle and pixel data while reducing the difficulty of data fusion.

[0135] like Figure 18 The diagram shown is a flowchart of an in-cabin camera control method provided in an embodiment of this application, including the following steps:

[0136] S1801: Sends rotation direction commands to the drive mechanism via the controller.

[0137] The rotation direction commands include stop rotation, rotate up and down, and rotate left and right.

[0138] It should be noted that before sending a rotation direction command to the drive mechanism through the controller, a motor stop command must first be sent to the drive mechanism through the controller to stop the drive motor in the drive mechanism.

[0139] S1802: When a rotation direction command is received, and the rotation direction command is a left or right rotation command, the first rotation mechanism is driven by the drive mechanism to make the camera rotate left or right.

[0140] Specifically, when the left-right rotation command is a left rotation command, the drive motor in the drive mechanism runs in the forward direction to drive the first rotation control mechanism, causing the camera to rotate to the left; when the left-right rotation command is a right rotation command, the drive motor in the drive mechanism runs in the reverse direction to drive the first rotation mechanism, causing the camera to rotate to the right.

[0141] Optionally, in another embodiment of this application, the specific implementation of step S1802, in which the first rotating mechanism is driven by a driving mechanism to cause the camera to rotate left and right, includes:

[0142] The relay in the control drive mechanism is de-energized.

[0143] When the relay is de-energized, the upper limit plate in the drive mechanism has no magnetic force, and at this time the drive mechanism engages with the second rotating mechanism.

[0144] When the relay is de-energized, the drive motor in the control drive mechanism rotates to drive the first rotation mechanism to rotate the camera left and right.

[0145] It should be noted that, in order to avoid the moving gear in the drive mechanism from executing incorrect commands, the drive motor should only start running after the moving gear has stopped moving.

[0146] S1803: When a rotation direction command is received, and the rotation direction command is an up-and-down rotation command, the second rotation mechanism is driven by the drive mechanism to make the camera rotate up and down.

[0147] Specifically, when the vertical rotation command is an upward rotation command, the drive motor in the drive mechanism runs in the forward direction to drive the second rotation mechanism, causing the camera to rotate upward; when the vertical rotation command is a downward rotation command, the drive motor in the drive mechanism runs in the reverse direction to drive the second rotation mechanism, causing the camera to rotate downward.

[0148] Optionally, in another embodiment of this application, the specific implementation of step S1803, in which the second rotating mechanism is driven by a driving mechanism to cause the camera to rotate up and down, includes:

[0149] The relay in the control drive mechanism is energized.

[0150] When the relay is de-energized, the upper limit plate in the drive mechanism generates magnetic force, at which point the drive mechanism engages with the first rotation control mechanism.

[0151] When the relay is energized, it controls the drive motor in the drive mechanism to rotate, thereby driving the second rotation mechanism to rotate the camera up and down.

[0152] Optionally, after step S1803, the method further includes:

[0153] The controller sends a stop rotation command to the drive mechanism.

[0154] When a stop rotation command is received, the drive motor in the control drive mechanism stops rotating.

[0155] It should be noted that after the drive motor in the drive mechanism stops rotating, it is necessary to wait for the moving gear to stop rotating before the next rotation command can be executed.

[0156] Optionally, after step S1803, the camera angle can be adjusted according to the user's sitting posture to obtain the optimal shooting angle. Therefore, another embodiment of this application provides a camera angle adjustment method, such as... Figure 19 As shown, it includes the following steps:

[0157] S1901: Captures user images via camera.

[0158] S1902: The target object is obtained by recognizing the user's image through the controller.

[0159] The targets include, but are not limited to: facial features, human torso, and arms.

[0160] S1903: The controller determines the deviation direction of the target object based on the center of the user image and the position of the target object, and generates a target rotation control command based on the deviation direction.

[0161] Specifically, the deviation direction of the target object is determined by comparing the center of the user image with the location of the target object; in other words, the location of the target object is detected relative to the center of the user image.

[0162] For example, if the deviation direction between the target objects is to the left, then the generated target rotation control command is to rotate to the left until the person's face is moved to the center of the image. The left and right sides are distinguished by the driver's position in the seat.

[0163] S1904: When a target rotation direction command is received, and the target rotation direction command is a left or right rotation command, the first rotation mechanism is driven by the drive mechanism to make the camera rotate left or right.

[0164] For example, if the target rotation control command is to rotate to the left, the first rotation mechanism is driven by a drive mechanism to rotate the camera to the left until the target is centered in the user's image. Specifically, the adjusted user image can be found in [reference needed]. Figure 20 .

[0165] S1905: When a target rotation direction command is received, and the target rotation direction command is an up-and-down rotation command, the second rotation mechanism is driven by the drive mechanism to make the camera rotate up and down.

[0166] For example, if the target rotation control command is to rotate upwards, the second rotation mechanism is driven by the drive mechanism to rotate the camera upwards until the target is centered in the user's image.

[0167] Optionally, after step S1803, the shooting range of the camera can be adjusted according to the focusing target to obtain the best shooting effect. Therefore, in another embodiment of this application, a camera adjustment method is provided, including processes A1 to A3.

[0168] A1: Capture user images via camera.

[0169] A2: Detect whether the user image contains a focus target.

[0170] If the user image does not contain the focus target, then process A3 is executed.

[0171] The focus targets include, but are not limited to: the face, the torso, and the arms.

[0172] A3: Adjust the camera's shooting range.

[0173] For example, recognizing the posture of an occupant's upper body requires focusing not only on the eyes and mouth but also on the torso and arms. If a user's image only shows their face, the camera needs to be moved downwards to expand the field of view to include the torso and arms. Further adjustments to the camera size and depth of field are also necessary to broaden the shooting range and achieve optimal image quality, allowing the visual recognition algorithm to obtain the best shooting angle and pixel data.

[0174] Furthermore, the cameras can rotate periodically. Taking the front-seat camera in the cabin as an example, it scans the driver and front passenger separately, allowing one camera to identify targets for multiple users. This isn't just a static increase in the field of view; it involves real-time, periodic rotation and scanning. This prevents the camera from reverting to old data after a user adjusts their seating position. During periodic scanning, the camera can quickly lock onto the image, referencing the original adjustment method, making camera adjustments more convenient and efficient.

[0175] In summary, the drive mechanism, by driving the first and second rotating mechanisms, enables the camera to rotate horizontally and vertically. This allows a single in-cabin camera to capture images from multiple viewing angles and adaptively adjust the local or overall field of view to achieve optimal image quality. This approach helps obtain the best shooting angle and pixel data while reducing the difficulty of data fusion.

[0176] This application also provides an electronic device, including: a processor and a memory, which are connected via a communication bus; wherein, the processor is used to call and execute a program stored in the memory; the memory is used to store the program, which is used to implement the cabin camera control method provided in the embodiments of this invention.

[0177] It should be noted that the electronic devices mentioned in this article can be servers, PCs, PADs, mobile phones, ECUs (Electronic Control Units), VCUs (Vehicle Control Units), MCUs (Micro Controller Units), HCUs (Hybrid Control Units), etc.

[0178] This invention also provides a vehicle that includes the aforementioned electronic equipment.

[0179] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.

[0180] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0181] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.

[0182] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).

Claims

1. An in-cabin camera, characterized in that, The in-cabin camera includes: a first rotating mechanism 11, a second rotating mechanism 12, a camera assembly 13, a camera mounting plate 14, a drive mechanism 15, and a controller 16; The first rotating mechanism 11 is movably connected to one end of the camera mounting plate 14, and the second rotating mechanism 12 is fixedly connected to the upper surface of the other end near the camera mounting plate 14. The upper surface of the camera mounting plate 14 is parallel to the horizontal plane. The side of the second rotating mechanism 12 away from the first rotating mechanism 11 is connected to the camera assembly 13; The lower surface of the camera mounting plate 14 is provided with the driving mechanism 15, which is connected to the controller 16. The lower surface of the camera mounting plate 14 is opposite to the horizontal plane.

2. The in-cabin camera according to claim 1, characterized in that, The camera assembly 13 includes: a camera body 21 and a camera bracket 22; The side of the second rotating mechanism 12 away from the first rotating mechanism 11 is connected to the first end of the camera bracket 22; The second end of the camera bracket 22 is connected to the camera body 21.

3. The in-cabin camera according to claim 1, characterized in that, The first rotating mechanism 11 includes: a first driven gear 31 and a driving gear 32; The first driven gear 31 is fixedly connected to one end of the camera mounting plate 14, and the first driven gear 31 meshes with the driving gear 32.

4. The in-cabin camera according to claim 1, characterized in that, The second rotating mechanism 12 includes: a second driven gear 51, a central gear 52, a bevel gear and a coaxial gear 53, a bevel gear 54, and a timing belt 55; The bevel gear 54 is connected through the middle of the camera bracket 14. The gear below the bevel gear 54 meshes with one side of the synchronous belt 55, and the other side of the synchronous belt 55 meshes with the drive mechanism 15. The gear above the bevel gear 54 meshes with the coaxial gear 53 of the bevel gear. The coaxial gear 53 of the bevel gear meshes with the intermediate gear 52. The intermediate gear 52 meshes with the second driven gear 51. The intermediate gear 52 and the second driven gear 51 are fixedly connected to the upper surface of the other end near the camera mounting plate 14 by a bracket.

5. The in-cabin camera according to claim 4, characterized in that, The drive mechanism 15 includes: a first rotation control mechanism 101, a second rotation control mechanism 102, and a rotation direction control mechanism 103; One end of the first rotation control mechanism 101 engages with the other side of the synchronous belt 55, and one end of the second rotation control mechanism 102 is fixedly connected to the first rotation mechanism 11. When the rotation direction control mechanism 103 is energized, the rotation direction control mechanism 103 engages with the other end of the first rotation control mechanism 101; When the rotation direction control mechanism 103 is not powered, the rotation direction control mechanism 103 engages with the other end of the second rotation control machine 102.

6. The in-cabin camera according to claim 5, characterized in that, The first rotation control mechanism 101 includes: a first rotation shaft 111 and a third driven gear 112; One end of the first rotating shaft 111 meshes with the other side of the synchronous belt 55, and the third driven gear 112 is fixedly provided on the other end of the first rotating shaft 111; When the rotation direction control mechanism 103 is energized, the third driven gear 112 meshes with the rotation direction control mechanism 103.

7. The in-cabin camera according to claim 5, characterized in that, The second rotation control mechanism 102 includes: a second rotation shaft 121 and a fourth driven gear 122; One end of the second rotating shaft 121 is fixedly connected to the first rotating mechanism 11, and the other end of the second rotating shaft 121 is fixedly connected to the fourth driven gear 122. When the rotation direction control mechanism 103 is not powered, the fourth driven gear 122 meshes with the rotation direction control mechanism 103.

8. The in-cabin camera according to claim 5, characterized in that, The rotation direction control mechanism 103 includes: a relay 131, an upper limit plate 132, an elastic element 133, a moving gear 134, a third rotation shaft 135, a lower limit plate 136, and a drive motor 137. One end of the third rotating shaft 135 passes through the upper limit plate 132, and the other end of the third rotating shaft 135 passes through the lower limit plate 136; The elastic element 133 and the moving gear 134, which are installed between the upper limit plate 132 and the lower limit plate 136, are sleeved on the third rotating shaft 135. The moving gear 134 is located at the bottom of the elastic element 133, and the bottom of the elastic element 133 is located at the top of the moving gear 134. The upper limit plate 132 is equipped with the relay 131, and the other end of the third rotating shaft 135 is connected to the drive motor 137. When the relay 131 is energized, the moving gear 134 meshes with the other end of the first rotation control mechanism 101; When the relay 131 is not energized, the moving gear 134 meshes with the other end of the second rotary controller 102.

9. A method for controlling an in-cabin camera, characterized in that, The in-cabin camera used in any one of claims 1-8 comprises: The controller 16 sends rotation direction commands to the drive mechanism 15. When the rotation direction command is received, and the rotation direction command is a left or right rotation command, the first rotation mechanism 11 is driven by the drive mechanism 15 to make the camera rotate left or right; When the rotation direction command is received, and the rotation direction command is an up-and-down rotation command, the second rotation mechanism 12 is driven by the drive mechanism 15 to make the camera rotate up and down.

10. The method according to claim 9, characterized in that, The step of driving the first rotating mechanism 11 through the driving mechanism 15 to rotate the camera left and right includes: The relay 131 in the drive mechanism 15 is de-energized. When the relay 131 is de-energized, the drive motor 137 in the drive mechanism 15 is controlled to rotate, thereby driving the first rotation mechanism 11 to rotate the camera left and right.

11. The method according to claim 9, characterized in that, The step of driving the second rotating mechanism 12 through the driving mechanism 15 to make the camera rotate up and down includes: This controls the relay 131 in the drive mechanism 15 to be energized; When the relay 131 is energized, it controls the drive motor 137 in the drive mechanism 15 to rotate, thereby driving the second rotation mechanism 12 to rotate the camera up and down.

12. The method according to claim 9, characterized in that, Also includes: The controller 16 sends a stop rotation command to the drive mechanism 15. When the stop rotation command is received, the drive motor 137 in the drive mechanism 15 is controlled to stop rotating.

13. The method according to claim 9, characterized in that, Also includes: The camera captures user images; The controller 16 identifies the target object by recognizing the user image. The controller 16 determines the deviation direction of the target object based on the center of the user image and the position of the target object, and generates a target rotation control command based on the deviation direction. When the target rotation control command is received, and the target rotation control command is a left-right rotation command, the first rotation mechanism 11 is driven by the drive mechanism 15 to make the camera rotate left and right; When the target rotation control command is received, and the target rotation control command is an up-and-down rotation command, the second rotation mechanism 12 is driven by the drive mechanism 15 to make the camera rotate up and down.

14. The method according to claim 9, characterized in that, Also includes: The camera captures user images; Detect whether the user image contains a focus target; If the user image does not contain the focus target, the shooting range of the camera is adjusted.

15. An electronic device, characterized in that, include: A processor and a memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; The memory is used to store a program for implementing the cabin camera control method as described in any one of claims 9 to 14.

16. A vehicle, characterized in that, The vehicle includes the electronic equipment as described in claim 15.