Displacement detection device and vehicle-mounted camera

By using an encoder in the on-board camera to obtain position and angle information, and by determining the module to judge the displacement value, the problem of low displacement detection efficiency of the on-board camera is solved, and more accurate displacement detection and longer service life are achieved.

CN222652148UActive Publication Date: 2025-03-21SHENZHEN STREAMING VIDEO TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420032751.0
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-01-05
Publication Date
2025-03-21
Estimated Expiration
2034-01-05

AI Technical Summary

Technical Problem

In the field of on-board video surveillance, it is difficult to effectively detect the displacement of the camera, resulting in low displacement detection efficiency.

Method used

A displacement detection device is designed to obtain position information and angle information of the vehicle-mounted camera through an encoder between the camera chassis and the camera main body, and to determine whether the displacement value is greater than or equal to the preset displacement threshold value through the determination module, and send a reset command to control the camera reset.

Benefits of technology

It improves the displacement detection efficiency of the on-board camera, ensuring that the camera can accurately maintain its original position and angle, thereby extending its service life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222652148U_ABST
    Figure CN222652148U_ABST
Patent Text Reader

Abstract

The utility model provides a displacement detection device and a vehicle-mounted camera, and the device comprises a first obtaining module which is connected with an encoder and is used for obtaining and transmitting first position information, first angle information and an equipment code; the first sending module is used for receiving and sending the first position information, the first angle information and the equipment code; the second acquisition module is connected with the encoder and is used for acquiring and sending second position information and second angle information according to the preset interval time; the second sending module is used for receiving and sending the second position information and the second angle information; the determining module is connected with the two sending modules and used for determining the displacement value of the vehicle-mounted camera and sending a reset instruction if the displacement value is larger than or equal to a preset displacement threshold value; and the receiving module is respectively connected with the determination module and the encoder and is used for receiving the reset instruction and sending the reset instruction to the encoder so as to control the vehicle-mounted camera to reset, and the displacement detection efficiency of the vehicle-mounted camera is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of vehicle monitoring technology, and in particular relates to a displacement detection device and a vehicle-mounted camera. Background Art

[0002] The current camera displacement detection device performs displacement detection by image comparison, that is, the displacement detection device collects the current picture and compares it with the picture / video collected by the camera just after installation to detect the displacement of the camera. However, in the field of vehicle-mounted video surveillance, since the vehicle is always moving, the picture collected by the vehicle-mounted camera is always changing and cannot be compared and identified. Therefore, this picture comparison method is difficult to detect the displacement of the camera.

[0003] The existing technology has the problem of low displacement detection efficiency of the vehicle-mounted camera. Utility Model Content

[0004] The embodiments of the present application provide a displacement detection device and a vehicle-mounted camera, which can solve the problem of low displacement detection efficiency of the vehicle-mounted camera.

[0005] In a first aspect, an embodiment of the present application provides a displacement detection device, which is applied to a vehicle-mounted camera. The vehicle-mounted camera includes a camera chassis, a camera body, a displacement detection device, and an encoder between the camera chassis and the camera body, wherein a first end of the encoder is fixedly connected to the camera chassis, a second end of the encoder is rotatably connected to the camera body, and a third end of the encoder is connected to the displacement detection device;

[0006] The displacement monitoring device comprises:

[0007] a first acquisition module, connected to the encoder, for acquiring first position information, first angle information and device code of the encoder of the installed vehicle-mounted camera, and sending the first position information, the first angle information and the device code to the first sending module;

[0008] The first sending module is connected to the first acquiring module, and is used to receive the first position information, the first angle information and the device code, and send the first position information, the first angle information and the device code;

[0009] A second acquisition module, connected to the encoder, for acquiring second position information and second angle information of the encoder according to a preset interval time, and sending the second position information and the second angle information;

[0010] a second sending module, connected to the second acquiring module, configured to receive the second position information and the second angle information, and send the second position information and the second angle information;

[0011] a determination module, connected to the first sending module and the second sending module, respectively, for determining a displacement value of the vehicle-mounted camera based on the first position information, the first angle information, the second position information and the second angle information, and for sending the reset instruction if the displacement value is greater than or equal to a preset displacement threshold;

[0012] A receiving module is connected to the determining module and the encoder respectively, and is used to receive the reset instruction and send the reset instruction to the encoder to control the vehicle-mounted camera to reset.

[0013] In one embodiment, the determination module includes a first determination module and / or a second determination module, the displacement value includes a position displacement value and an angle displacement value, and the preset displacement threshold includes a preset position displacement value and a preset angle displacement value;

[0014] The first determining module is connected to the first sending module and the second sending module, respectively, and is used to determine the position displacement value based on the first position information and the second position information, and is used to send the reset instruction if the position displacement value is greater than or equal to the preset position displacement threshold;

[0015] And / or, the second determination module is respectively connected to the first sending module and the second sending module, and is used to determine the angle displacement value based on the first angle information and the second angle information, and to send the reset instruction if the angle displacement value is greater than or equal to the preset angle displacement threshold.

[0016] In one of the embodiments, the determination module includes a determination submodule and an alarm submodule;

[0017] The determining submodule is connected to the first sending module and the second sending module respectively, and is used to determine the displacement value of the vehicle-mounted camera based on the first position information, the first angle information, the second position information and the second angle information;

[0018] The alarm submodule is connected to the determination submodule and is used to trigger a displacement alarm signal of the camera and send the reset instruction if the displacement value is greater than or equal to a preset displacement threshold.

[0019] In one embodiment, the displacement detection device further includes:

[0020] The first sending module is connected to the first acquiring module, and is used to receive the first position information, the first angle information and the device code, and send the first position information, the first angle information and the device code to the server and the determining module respectively;

[0021] The second sending module is connected to the second obtaining module, and is used to receive the second position information and the second angle information, and send the second position information and the second angle information to the server and the determining module respectively;

[0022] The determining module is connected to the first sending module and the second sending module respectively, and is used to determine the displacement value of the vehicle-mounted camera based on the first position information, the first angle information, the second position information and the second angle information, and send the displacement value to the receiving module;

[0023] The receiving module is respectively connected to the determining module and the server side, and is used to receive the displacement value, send the displacement value to the server side, receive the reset instruction sent by the server side, and then send the reset instruction to the encoder to control the vehicle camera to reset.

[0024] In one of the embodiments, the determination module includes a first determination module and a second determination module, and the displacement value includes a position displacement value and an angle displacement value;

[0025] The first determining module is connected to the first sending module and the second sending module respectively, and is used to determine the position displacement value based on the first position information and the second position information, and send the position displacement value to the receiving module;

[0026] The second determining module is connected to the first sending module and the second sending module respectively, and is used to determine the angle displacement value based on the first angle information and the second angle information, and send the angle displacement value to the receiving module.

[0027] In one of the embodiments, the receiving module includes a first receiving module and a second receiving module;

[0028] The first receiving module is connected to the first determining module and the server side respectively, and is used to receive the position displacement value, and send the position displacement value to the server side, and then receive a reset instruction sent by the server side if the position displacement value is greater than or equal to the preset position displacement threshold, and then send the reset instruction to the encoder to control the vehicle camera to reset;

[0029] The second receiving module is respectively connected to the second determining module and the server side, and is used to receive the angle displacement value and send the angle displacement value to the server side. If the angle displacement value is greater than or equal to the preset angle displacement threshold, it receives the reset instruction sent by the server side, and then sends the reset instruction to the encoder to control the reset of the vehicle-mounted camera.

[0030] In one embodiment, the receiving module also includes an alarm module, which is respectively connected to the first receiving module and the second receiving module, and is used to trigger a camera displacement alarm signal if the displacement value is greater than or equal to a preset displacement threshold, and send the displacement alarm signal to the server.

[0031] In one of the embodiments, the encoder is a rotary encoder, a shaft encoder, an encoder universal joint, an absolute encoder or an incremental sensor.

[0032] In one embodiment, the vehicle-mounted camera further comprises a rotating motor, a first end of the rotating motor is rotatably connected to the camera chassis, a second end of the rotating motor is connected to the encoder, and a third end of the rotating motor is connected to the receiving module;

[0033] Wherein, the receiving module is also connected to the rotating motor, and is used to send the reset instruction to the rotating motor;

[0034] The rotary motor controls the vehicle-mounted camera to reset to the position of the first position information and the angle of the first angle information.

[0035] In a second aspect, an embodiment of the present application provides a vehicle-mounted camera, comprising a camera chassis, a camera body, an encoder between the camera chassis and the camera body, and a displacement detection device as described in any one of the contents of the first aspect, wherein a first end of the encoder is fixedly connected to the camera chassis, a second end of the encoder is rotatably connected to the camera body, and a third end of the encoder is connected to the displacement detection device.

[0036] It can be understood that the beneficial effects of the second aspect mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0037] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0038] The displacement detection device of the present application is applied to a vehicle-mounted camera. The vehicle-mounted camera includes a camera chassis, a camera body, a displacement detection device and an encoder between the camera chassis and the camera body. The first end of the encoder is fixedly connected to the camera chassis, the second end of the encoder is rotatably connected to the camera body, and the third end of the encoder is connected to the displacement detection device; the displacement monitoring device is connected to the encoder through a first acquisition module, which is used to obtain the first position information, first angle information and device code of the encoder of the installed vehicle-mounted camera, and send the first position information, first angle information and device code to the first sending module; the first sending module is connected to the first acquisition module, which is used to receive the first position information, first angle information and device code, and send the first position information, first angle information and device code; the second acquisition module is connected to the encoder, which is used to obtain the second position information and second angle information of the encoder according to a preset interval time, and send the second position information and second angle information; the second sending module is connected to the second acquisition module, which is used to Receive the second position information and the second angle information, and send the second position information and the second angle information; a determination module, respectively connected to the first sending module and the second sending module, for determining the displacement value of the vehicle-mounted camera based on the first position information, the first angle information, the second position information and the second angle information, and for sending a reset instruction if the displacement value is greater than or equal to a preset displacement threshold; a receiving module, respectively connected to the determination module and the encoder, for receiving the reset instruction, and sending the reset instruction to the encoder to control the vehicle-mounted camera to reset. Since the displacement detection device can obtain the position information and angle information of the vehicle-mounted camera when it is installed and at a preset interval through the encoder between the camera chassis and the camera body, and identify the displacement of the vehicle-mounted camera caused by external force by judging whether the displacement value is greater than or equal to the preset displacement threshold, the displacement detection efficiency of the vehicle-mounted camera is improved, and then the reset instruction is sent to control the vehicle-mounted camera to reset to the position and angle when it is installed, which also improves the service life of the vehicle-mounted camera. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0040] Figure 1 This is a schematic diagram of the structural framework of a displacement detection device provided in one embodiment of the present application applied to a vehicle-mounted camera;

[0041] Figure 2 It is a schematic diagram of the structural framework of a determination module provided in an embodiment of the present application;

[0042] Figure 3 is a schematic diagram of a structural framework of a determination module provided in another embodiment of the present application;

[0043] Figure 4 This is a schematic diagram of a structural framework of a displacement detection device provided by another embodiment of the present application applied to a vehicle-mounted camera;

[0044] Figure 5 is a schematic diagram of the structural framework of a receiving module provided in another embodiment of the present application;

[0045] Figure 6 is a schematic diagram of the structural framework of a receiving module provided in yet another embodiment of the present application;

[0046] Figure 7 It is a schematic diagram of the structural framework of a vehicle-mounted camera provided in one embodiment of the present application.

[0047] Reference numerals:

[0048] 1. Camera chassis; 2. Camera body; 3. Displacement detection device; 31. First acquisition module; 32. First sending module; 33. Second acquisition module; 34. Second sending module; 35. Determination module; 351. First determination module; 352. Second determination module; 353. Determination submodule; 354. Alarm submodule; 36. Receiving module; 361. First receiving module; 362. Second receiving module; 363. Alarm module; 4. Encoder; 5. Server end. DETAILED DESCRIPTION

[0049] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0050] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0051] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0052] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0053] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0054] With the development of technology, video technology has been widely used in people's daily life. As the main video acquisition terminal, the camera is particularly important in the entire video acquisition, encoding and storage link. In actual use, the camera is often fixed at a position to collect videos at specific angles or scenes according to people's needs. The fixed angle of the camera is crucial to whether the collected video meets people's requirements. In some fixed scenes, such as cameras fixed on fixed objects such as corners, generally few people can move the camera after installation. However, in the field of vehicle-mounted video surveillance, the vehicle is always in motion, and the vibration of the vehicle is likely to cause the angle of the camera to move. Moreover, in the car, the camera is very close to people and may be moved manually. For example, in taxis, taxi companies will install cameras in the car to identify some non-compliant behaviors of drivers in order to better supervise drivers and provide good operation services. However, some drivers are more resistant to these cameras and may think that turning the camera to other angles will cause the camera to fail to capture the required angle and picture.

[0055] In this application, the vehicle-mounted camera is directly fixed on the inner wall of the vehicle, so it rarely moves directly from the chassis. In order to be compatible with more car models, the camera body and the camera chassis can be rotated to meet the angle requirements of different car models and different scenarios. The place where displacement often occurs is the rotatable connection between the camera body and the camera base.

[0056] The current camera displacement detection device performs displacement detection by image comparison, that is, the displacement detection device collects the current picture and compares it with the picture / video collected by the camera just after installation to detect the displacement of the camera. However, in the field of vehicle-mounted video surveillance, since the vehicle is always moving, the picture collected by the vehicle-mounted camera is always changing and cannot be compared and identified. Therefore, this picture comparison method is difficult to detect the displacement of the camera, which reduces the displacement detection efficiency of the vehicle-mounted camera.

[0057] In view of the above problems, the displacement detection device of the present application is applied to a vehicle-mounted camera, which includes a camera chassis, a camera body, a displacement detection device and an encoder between the camera chassis and the camera body, wherein the first end of the encoder is fixedly connected to the camera chassis, the second end of the encoder is rotatably connected to the camera body, and the third end of the encoder is connected to the displacement detection device; the displacement monitoring device is connected to the encoder through a first acquisition module, which is used to obtain the first position information, first angle information and device code of the encoder of the installed vehicle-mounted camera, and send the first position information, first angle information and device code to the first sending module; the first sending module is connected to the first acquisition module, which is used to receive the first position information, first angle information and device code, and send the first position information, first angle information and device code; the second acquisition module is connected to the encoder, which is used to obtain the second position information and second angle information of the encoder according to a preset interval time, and send the second position information and second angle information; the second sending module is connected to the second acquisition module , used to receive the second position information and the second angle information, and send the second position information and the second angle information; the determination module is respectively connected to the first sending module and the second sending module, and is used to determine the displacement value of the vehicle-mounted camera based on the first position information, the first angle information, the second position information and the second angle information, and is used to send a reset instruction if the displacement value is greater than or equal to a preset displacement threshold; the receiving module is respectively connected to the determination module and the encoder, and is used to receive the reset instruction, and send the reset instruction to the encoder to control the vehicle-mounted camera to reset. Since the displacement detection device can obtain the position information and angle information of the vehicle-mounted camera when it is installed and at a preset interval time through the encoder between the camera chassis and the camera body, and identify the displacement of the vehicle-mounted camera caused by external force by judging whether the displacement value is greater than or equal to the preset displacement threshold, the displacement detection efficiency of the vehicle-mounted camera is improved, and then the reset instruction is sent to control the vehicle-mounted camera to reset to the position and angle when it is installed, which also improves the service life of the vehicle-mounted camera.

[0058] The technical solution of the present application is described below through specific embodiments.

[0059] First, as Figure 1As shown, this embodiment provides a displacement detection device 3, which is applied to a vehicle-mounted camera. The vehicle-mounted camera includes a camera chassis 1, a camera body 2, a displacement detection device 3 and an encoder 4 between the camera chassis 1 and the camera body 2, wherein the first end of the encoder 4 is fixedly connected to the camera chassis 1, the second end of the encoder 4 is rotatably connected to the camera body 2, and the third end of the encoder 4 is connected to the displacement detection device 3; the displacement monitoring device includes: a first acquisition module 31, connected to the encoder 4, used to acquire the first position information, first angle information and device code of the encoder 4 of the installed vehicle-mounted camera, and send the first position information, first angle information and device code to the first sending module 32; the first sending module 32, connected to the first acquisition module 31, used to receive the first position information, first angle information and device code, and send the first position information, first angle information and device code; the second acquisition module 33, connected to the encoder 4, used to acquire the second position information and second angle information of the encoder 4 according to a preset interval time, and send the second position information and second angle information; the second sending module 34, connected to the second acquisition module 33, used to The first transmission module 32 is connected to the second transmission module 34, and is used to determine the displacement value of the vehicle-mounted camera based on the first position information, the first angle information, the second position information and the second angle information, and to send a reset instruction if the displacement value is greater than or equal to a preset displacement threshold value; the receiving module 36 is connected to the determination module 35 and the encoder 4, and is used to receive the reset instruction and send the reset instruction to the encoder 4 to control the vehicle-mounted camera to reset. Since the displacement detection device 3 can obtain the first position information and the first angle information of the vehicle-mounted camera when it is installed, and the second position information and the second angle information at a preset interval time through the encoder 4 between the camera chassis 1 and the camera body 2, and identify the displacement of the vehicle-mounted camera caused by the external force by judging whether the displacement value is greater than or equal to the preset displacement threshold value, the displacement detection efficiency of the vehicle-mounted camera is improved, and then the reset instruction is sent to control the vehicle-mounted camera to reset to the position and angle when it is installed, and the service life of the vehicle-mounted camera is also improved.

[0060] In one embodiment, the determination module 35 includes a first determination module 351, the displacement value includes a position displacement value, and the preset displacement threshold includes a preset position displacement value; the first determination module 351 is respectively connected to the first sending module 32 and the second sending module 34, and is used to determine the position displacement value based on the first position information and the second position information, and to send a reset instruction if the position displacement value is greater than or equal to the preset position displacement threshold, and only determines that the vehicle-mounted camera has been displaced based on the position displacement value being greater than or equal to the preset position displacement threshold, thereby improving the displacement detection efficiency of the vehicle-mounted camera.

[0061] In one embodiment, the determination module 35 includes a second determination module 352, the displacement value includes an angle displacement value, and the preset displacement threshold includes a preset angle displacement value; the first sending module 32 and the second sending module 34 are respectively connected, and are used to determine the angle displacement value based on the first angle information and the second angle information, and to send a reset instruction if the angle displacement value is greater than or equal to the preset angle displacement threshold. The vehicle-mounted camera is only determined to have been displaced based on the angle displacement value being greater than or equal to the preset angle displacement threshold, thereby improving the displacement detection efficiency of the vehicle-mounted camera.

[0062] In one embodiment, Figure 2 As shown, the determination module 35 includes a first determination module 351 and a second determination module 352, the displacement value includes a position displacement value and an angle displacement value, and the preset displacement threshold includes a preset position displacement value and a preset angle displacement value; wherein the first determination module 351 is connected to the first sending module 32 and the second sending module 34, respectively, for determining the position displacement value based on the first position information and the second position information, and for sending a reset instruction if the position displacement value is greater than or equal to the preset position displacement threshold; the second determination module 352 is connected to the first sending module 32 and the second sending module 34, respectively, for determining the angle displacement value based on the first angle information and the second angle information, and for sending a reset instruction if the angle displacement value is greater than or equal to the preset angle displacement threshold, since the vehicle-mounted camera is determined to have been displaced based on the position displacement value being greater than or equal to the preset position displacement threshold, and the vehicle-mounted camera is determined to have been displaced based on the angle displacement value being greater than or equal to the preset angle displacement threshold, the displacement detection accuracy of the vehicle-mounted camera is improved.

[0063] In another embodiment, Figure 3 As shown, the determination module 35 includes a determination submodule 353 and an alarm submodule 354; wherein the determination submodule 353 is respectively connected to the first sending module 32 and the second sending module 34, and is used to determine the displacement value of the vehicle-mounted camera based on the first position information, the first angle information, the second position information and the second angle information; the alarm submodule 354 is connected to the determination submodule 353, and is used to trigger the camera's displacement alarm signal and send a reset instruction if the displacement value is greater than or equal to a preset displacement threshold. Since the camera's displacement alarm signal will be triggered and a reset instruction will be sent when the displacement value is greater than or equal to the preset displacement threshold, the displacement of the vehicle-mounted camera can be detected in advance, thereby improving the management efficiency of the management personnel.

[0064] In yet another embodiment, Figure 4As shown, the displacement detection device 3 also includes: a first sending module 32, connected to the first acquisition module 31, used to receive the first position information, the first angle information and the device code, and send the first position information, the first angle information and the device code to the server end 5 and the determination module 35 respectively; a second sending module 34, connected to the second acquisition module 33, used to receive the second position information and the second angle information, and send the second position information and the second angle information to the server end 5 and the determination module 35 respectively; the determination module 35, respectively connected to the first sending module 32 and the second sending module 34, used to determine the position information based on the first position information, the first angle information, the second position information and the device code. The second angle information determines the displacement value of the vehicle-mounted camera and sends the displacement value to the receiving module 36; the receiving module 36 is respectively connected to the determination module 35 and the server end 5, for receiving the displacement value, and sending the displacement value to the server end 5, and then receiving the reset instruction sent by the server end 5, and then sending the reset instruction to the encoder 4 to control the reset of the vehicle-mounted camera, and send the displacement value to the server end 5. The server end 5 determines whether the displacement value is greater than or equal to the preset displacement threshold. Since the computing power of the server end 5 is greater than that of the vehicle-mounted camera, the displacement detection response speed of the vehicle-mounted camera is improved, and the displacement detection efficiency of the vehicle-mounted camera is further improved.

[0065] In another embodiment, the determination module 35 includes a first determination module 351 and a second determination module 352, and the displacement value includes a position displacement value and an angle displacement value; wherein the first determination module 351 is respectively connected to the first sending module 32 and the second sending module 34, and is used to determine the position displacement value based on the first position information and the second position information, and send the position displacement value to the receiving module 36; the second determination module 352 is respectively connected to the first sending module 32 and the second sending module 34, and is used to determine the angle displacement value based on the first angle information and the second angle information, and send the angle displacement value to the receiving module 36. Since the position displacement value and the angle displacement value are obtained at the same time and sent to the receiving module 36, the load of the vehicle camera is reduced and the displacement accuracy of the vehicle camera is improved.

[0066] In yet another embodiment, Figure 5As shown, the receiving module 36 includes a first receiving module 361 and a second receiving module 362; wherein the first receiving module 361 is respectively connected to the first determining module 351 and the server end 5, for receiving the position displacement value, and sending the position displacement value to the server end 5, and then receiving the reset instruction sent by the server end 5 if the position displacement value is greater than or equal to the preset position displacement threshold, and then sending the reset instruction to the encoder 4 to control the vehicle camera to reset; the second receiving module 362 is respectively connected to the second determining module and the server end 5, for receiving the angle displacement value, and sending the angle displacement value to the server end 5, and then receiving the reset instruction sent by the server end 5 if the angle displacement value is greater than or equal to the preset angle displacement threshold, and then sending the reset instruction to the encoder 4 to control the vehicle camera to reset. Since the displacement value is sent to the server end 5, the server end 5 determines whether the displacement value is greater than or equal to the preset displacement threshold, and the computing power of the server end 5 is greater than that of the vehicle camera, the displacement detection response speed of the vehicle camera is improved, and the displacement detection efficiency of the vehicle camera is further improved.

[0067] In yet another embodiment, Figure 6 As shown, the receiving module 36 also includes an alarm module 363, which is respectively connected to the first receiving module 361 and the second receiving module 362, and is used to trigger the camera's displacement alarm signal if the displacement value is greater than or equal to the preset displacement threshold, and send the displacement alarm signal to the server end 5. Since the camera's displacement alarm signal is triggered when the displacement value is greater than or equal to the preset displacement threshold, and the displacement alarm signal is sent to the server end 5, the displacement of the vehicle-mounted camera can be detected in advance, and the displacement alarm signal is saved at the same time, thereby improving the management efficiency of the management personnel.

[0068] It should be noted that, upon receiving the first position information, the first angle information, the device code, the second position information and the second angle information, the server will create a relationship table corresponding to the encoder data and the device code in order to detect multiple vehicle-mounted cameras.

[0069] In one embodiment, the encoder 4 is a rotary encoder, a shaft encoder, an encoder universal joint, an absolute encoder or an incremental sensor, and the corresponding encoder can be selected according to the specific vehicle demand scenario.

[0070] In one embodiment, the third end of the encoder 4 is connected to the displacement detection device 3, including: the third end of the encoder 4 is connected to the displacement detection device 3 through a synchronous serial interface (Synchronous Serial Interface, SSI) or an RS485 interface, so as to facilitate reading the real-time rotation angle information or position information of the encoder 4 through the physical connection interface, thereby improving the reliability of the displacement detection device 3.

[0071] In one embodiment, the vehicle-mounted camera also includes a rotating motor (not shown in the figure), the first end of the rotating motor is rotatably connected to the camera chassis 1, the second end of the rotating motor is connected to the encoder 4, and the third end of the rotating motor is connected to the receiving module 36; wherein the receiving module 36 is also connected to the third end of the rotating motor, for sending a reset instruction to the rotating motor; the rotating motor controls the vehicle-mounted camera to reset to the position of the first position information and the angle of the first angle information.

[0072] In one embodiment, the first position information and the second position information are both scale values ​​of the encoder distributed on a circle. For example, a circle has 360 scales, numbered 1 to 360, the scale value of the first position information is 2, and the scale value of the second position information is 5; the first angle information and the second angle information are both angle values ​​of the encoder distributed on a circle. For example, a circle has an angle of 360°, numbered 1° to 360°, the angle value of the first position information is 2°, and the angle value of the second position information is 5°. It should be noted that in this embodiment, there is no specific limit on the number of scales on a circle and the angle value of a circle, and they are set according to the requirements of the vehicle-mounted camera.

[0073] In one embodiment, the value range of the preset position displacement threshold is greater than or equal to 2, and the value range of the preset angle displacement threshold is greater than or equal to 2°.

[0074] It should be understood that the execution of each functional process in the above-mentioned embodiments should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0075] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0076] The displacement detection device of the present application is applied to a vehicle-mounted camera. The vehicle-mounted camera includes a camera chassis, a camera body, a displacement detection device and an encoder between the camera chassis and the camera body. The first end of the encoder is fixedly connected to the camera chassis, the second end of the encoder is rotatably connected to the camera body, and the third end of the encoder is connected to the displacement detection device; the displacement monitoring device is connected to the encoder through a first acquisition module, which is used to obtain the first position information, first angle information and device code of the encoder of the installed vehicle-mounted camera, and send the first position information, first angle information and device code to the first sending module; the first sending module is connected to the first acquisition module, which is used to receive the first position information, first angle information and device code, and send the first position information, first angle information and device code; the second acquisition module is connected to the encoder, which is used to obtain the second position information and second angle information of the encoder according to a preset interval time, and send the second position information and second angle information; the second sending module is connected to the second acquisition module, which is used to Receive the second position information and the second angle information, and send the second position information and the second angle information; a determination module, respectively connected to the first sending module and the second sending module, for determining the displacement value of the vehicle-mounted camera based on the first position information, the first angle information, the second position information and the second angle information, and for sending a reset instruction if the displacement value is greater than or equal to a preset displacement threshold; a receiving module, respectively connected to the determination module and the encoder, for receiving the reset instruction, and sending the reset instruction to the encoder to control the vehicle-mounted camera to reset. Since the displacement detection device can obtain the position information and angle information of the vehicle-mounted camera when it is installed and at a preset interval through the encoder between the camera chassis and the camera body, and identify the displacement of the vehicle-mounted camera caused by external force by judging whether the displacement value is greater than or equal to the preset displacement threshold, the displacement detection efficiency of the vehicle-mounted camera is improved, and then the reset instruction is sent to control the vehicle-mounted camera to reset to the position and angle when it is installed, which also improves the service life of the vehicle-mounted camera.

[0077] Second, as Figure 7 As shown, this embodiment provides a vehicle-mounted camera, including a camera chassis 1, a camera body 2, an encoder 4 between the camera chassis 1 and the camera body 2, and a displacement detection device 3 as described in any one of the contents of the first aspect, wherein the first end of the encoder 4 is fixedly connected to the camera chassis 1, the second end of the encoder 4 is rotatably connected to the camera body 2, and the third end of the encoder 4 is connected to the displacement detection device 3.

[0078] It can be understood that the beneficial effects of the second aspect mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0079] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0080] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0081] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0082] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0083] In the embodiments provided in the present application, it should be understood that the disclosed device / equipment can be implemented in other ways. For example, the device / equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0084] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0085] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A displacement detection device, characterized in that: Applied to a vehicle-mounted camera, the vehicle-mounted camera comprises a camera chassis, a camera body, a displacement detection device, and an encoder between the camera chassis and the camera body, wherein a first end of the encoder is fixedly connected to the camera chassis, a second end of the encoder is rotatably connected to the camera body, and a third end of the encoder is connected to the displacement detection device; The displacement detection device comprises: a first acquisition module, connected to the encoder, for acquiring first position information, first angle information and device code of the encoder of the installed vehicle-mounted camera, and sending the first position information, the first angle information and the device code to the first sending module; The first sending module is connected to the first acquiring module, and is used to receive the first position information, the first angle information and the device code, and send the first position information, the first angle information and the device code; A second acquisition module, connected to the encoder, for acquiring second position information and second angle information of the encoder according to a preset interval time, and sending the second position information and the second angle information; a second sending module, connected to the second acquiring module, configured to receive the second position information and the second angle information, and send the second position information and the second angle information; a determination module, connected to the first sending module and the second sending module respectively, for determining a displacement value of the vehicle-mounted camera based on the first position information, the first angle information, the second position information and the second angle information, and for sending a reset instruction if the displacement value is greater than or equal to a preset displacement threshold; A receiving module is connected to the determining module and the encoder respectively, and is used to receive the reset instruction and send the reset instruction to the encoder to control the vehicle-mounted camera to reset.

2. The displacement detection device according to claim 1, characterized in that: The determination module includes a first determination module and / or a second determination module, the displacement value includes a position displacement value and an angle displacement value, and the preset displacement threshold includes a preset position displacement value and a preset angle displacement value; The first determining module is connected to the first sending module and the second sending module respectively, and is used to determine the position displacement value based on the first position information and the second position information, and is used to send the reset instruction if the position displacement value is greater than or equal to the preset position displacement value; And / or, the second determination module is respectively connected to the first sending module and the second sending module, and is used to determine the angle displacement value based on the first angle information and the second angle information, and to send the reset instruction if the angle displacement value is greater than or equal to the preset angle displacement value.

3. The displacement detection device according to claim 1, characterized in that: The determination module includes a determination submodule and an alarm submodule; The determining submodule is connected to the first sending module and the second sending module respectively, and is used to determine the displacement value of the vehicle-mounted camera based on the first position information, the first angle information, the second position information and the second angle information; The alarm submodule is connected to the determination submodule and is used to trigger a displacement alarm signal of the camera and send the reset instruction if the displacement value is greater than or equal to a preset displacement threshold.

4. The displacement detection device according to claim 1, characterized in that: The displacement detection device also includes: The first sending module is connected to the first acquiring module, and is used to receive the first position information, the first angle information and the device code, and send the first position information, the first angle information and the device code to the server and the determining module respectively; The second sending module is connected to the second obtaining module, and is used to receive the second position information and the second angle information, and send the second position information and the second angle information to the server and the determining module respectively; The determining module is connected to the first sending module and the second sending module respectively, and is used to determine the displacement value of the vehicle-mounted camera based on the first position information, the first angle information, the second position information and the second angle information, and send the displacement value to the receiving module; The receiving module is respectively connected to the determining module and the server side, and is used to receive the displacement value, send the displacement value to the server side, receive the reset instruction sent by the server side, and then send the reset instruction to the encoder to control the vehicle camera to reset.

5. The displacement detection device according to claim 4, characterized in that: The determination module includes a first determination module and a second determination module, and the displacement value includes a position displacement value and an angle displacement value; The first determining module is connected to the first sending module and the second sending module respectively, and is used to determine the position displacement value based on the first position information and the second position information, and send the position displacement value to the receiving module; The second determining module is connected to the first sending module and the second sending module respectively, and is used to determine the angle displacement value based on the first angle information and the second angle information, and send the angle displacement value to the receiving module.

6. The displacement detection device according to claim 5, characterized in that: The receiving module includes a first receiving module and a second receiving module, and the preset displacement threshold includes a preset position displacement value and a preset angle displacement value; The first receiving module is connected to the first determining module and the server side respectively, and is used to receive the position displacement value, and send the position displacement value to the server side, and then receive a reset instruction sent by the server side if the position displacement value is greater than or equal to the preset position displacement value, and then send the reset instruction to the encoder to control the vehicle camera to reset; The second receiving module is respectively connected to the second determining module and the server side, and is used to receive the angle displacement value and send the angle displacement value to the server side. If the angle displacement value is greater than or equal to the preset angle displacement value, it receives the reset instruction sent by the server side, and then sends the reset instruction to the encoder to control the reset of the vehicle-mounted camera.

7. The displacement detection device according to claim 6, characterized in that: The receiving module also includes an alarm module, which is respectively connected to the first receiving module and the second receiving module, and is used to trigger a displacement alarm signal of the camera if the displacement value is greater than or equal to a preset displacement threshold, and send the displacement alarm signal to the server.

8. The displacement detection device according to claim 1, characterized in that: The encoder is a rotary encoder, a shaft encoder, an encoder universal joint, an absolute encoder or an incremental sensor.

9. The displacement detection device according to any one of claims 1 to 8, characterized in that: The vehicle-mounted camera further comprises a rotating motor, a first end of the rotating motor is rotatably connected to the camera chassis, a second end of the rotating motor is connected to the encoder, and a third end of the rotating motor is connected to the receiving module; Wherein, the receiving module is also connected to the rotating motor, and is used to send the reset instruction to the rotating motor; The rotary motor controls the vehicle-mounted camera to reset to the position of the first position information and the angle of the first angle information.

10. A vehicle-mounted camera, characterized in that: It comprises a camera chassis, a camera body, an encoder between the camera chassis and the camera body, and a displacement detection device as described in any one of claims 1 to 8, wherein a first end of the encoder is fixedly connected to the camera chassis, a second end of the encoder is rotatably connected to the camera body, and a third end of the encoder is connected to the displacement detection device.