Camera offset detection method and device

By detecting the angle difference between the camera's stationary and moving states, it solves the problem of monitoring blind spots caused by camera offset, achieves timely correction and accuracy of the camera direction, and improves user experience.

CN118694913APending Publication Date: 2024-09-24KUNSHAN YANDA COMP TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310277347.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-21
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

While the vehicle is driving, the camera's shooting direction may shift due to bumps or collisions, causing the image collection equipment to have a monitoring blind spot, which is difficult for users to detect and correct in time, affecting the function of the collection equipment.

Method used

By obtaining the angle difference between the camera's stationary and moving states, it is judged whether it exceeds the preset angle. If it exceeds, a prompt message is sent to ensure timely correction of the camera's shooting direction.

Benefits of technology

It improves the timeliness and accuracy of the camera's shooting direction, reduces the need for manual inspection by users, and improves correction efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694913A
    Figure CN118694913A
Patent Text Reader

Abstract

The invention relates to the technical field of cameras, and particularly discloses a camera offset detection method, which comprises the following steps of: S1, acquiring a standard included angle between a camera in a static state and a standard direction; s2, acquiring an actual included angle between the camera in a moving state and the standard direction; s3, whether the difference value between the actual included angle and the standard included angle is larger than a preset included angle or not is judged; and S4, if the difference value is greater than the preset included angle, determining that the shooting direction of the camera deviates, and sending prompt information. In this way, when the shooting direction deviates, a user can be informed in time to carry out adjustment so as to ensure accuracy, convenience is brought to use by the user, and the user experience feeling is extremely good.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the field of camera technology, and in particular to a camera offset detection method and device. [Background technology]

[0002] There are many driving recorders on the market, most of which are mounted on the vehicle windshield with a bracket through a rear suction cup or 3M adhesive, and adjusted to a suitable angle for use.

[0003] However, in actual use, the vehicle may experience uncontrollable situations such as bumps or collisions while driving, and the shooting direction of the camera in the DVR may shift, resulting in blind spots in the images captured by the camera, thereby affecting the function of the image acquisition device. Some users may not always pay attention to the shooting direction of the camera in the dash cam, and may not be able to detect the deviation of the shooting direction in time. In addition, the accuracy of the user's manual inspection of whether the shooting direction of the dash cam is offset is also relatively low.

[0004] Therefore, a solution is urgently needed. [Summary of the invention]

[0005] The present invention aims to provide a camera offset detection method and device, which improves the timeliness and accuracy of detecting the offset of the shooting direction of an image acquisition device.

[0006] In order to achieve the above object, the technical solutions of the present invention are:

[0007] A camera offset detection method comprises the following steps: S1. obtaining a standard angle between the camera in a stationary state and a standard direction; S2. obtaining an actual angle between the camera in a moving state and the standard direction; S3. judging whether the difference between the actual angle and the standard angle is greater than a preset angle; and S4. if the difference is greater than the preset angle, determining that the shooting direction of the camera is offset and sending a prompt message.

[0008] Preferably, in step S1, the step of obtaining a standard angle between the camera in a stationary state and a standard direction is: S101. Establishing a reference coordinate system, and setting the vertical downward direction of the camera in the reference coordinate system as the standard direction; S102. Obtaining the orientation of the camera in the reference coordinate system; and S103. Calculating a first angle between the orientation and the standard direction, and setting the standard angle as the first angle.

[0009] Preferably, in step S102, the orientation of the camera in the reference coordinate system is acquired by a speed sensor.

[0010] Preferably, in step S102, the method for obtaining the orientation of the camera in the reference coordinate system is: obtaining the orientations of the camera on the X-axis, the Y-axis and the Z-axis in the reference coordinate system, and setting the orientation of the camera on the X-axis as the X orientation, setting the orientation of the camera on the Y-axis as the Y orientation, and setting the orientation of the camera on the Z-axis as the Z orientation, and any one of the X orientation, the Y orientation and the Z orientation can be set as the orientation.

[0011] Preferably, in step S3, the step of judging whether the difference between the actual angle and the standard angle is greater than the preset angle is as follows: S301. setting the direction to the X direction, calculating a second angle between the X direction and the standard direction, and setting the standard angle to the second angle; S302. acquiring the actual angle between the camera in the moving state and the X direction; S303. calculating an actual value between the actual angle and the standard angle, and then setting the difference to the actual value after taking the absolute value; S304. comparing the difference with the preset angle;

[0012] S305. If the difference is larger than the preset angle, it is determined that the difference between the actual angle and the standard angle is larger than the preset angle; and S306. If the difference is smaller than the preset angle, it is determined that the difference between the actual angle and the standard angle is smaller than the preset angle.

[0013] Preferably, in step S3, the step of judging whether the difference between the actual angle and the standard angle is greater than the preset angle is: S307. Determine the direction as the Y direction, calculate a third angle between the Y direction and the standard direction, and set the standard angle to the third angle; S308. Obtain the actual angle between the camera and the Y direction in the moving state; S309. Calculate an actual value between the actual angle and the standard angle, and then set the difference to the actual value after taking the absolute value; S310. Compare the difference with the preset angle; S311. If the difference is larger than the preset angle, judge that the difference between the actual angle and the standard angle is greater than the preset angle; and S312. If the difference is smaller than the preset angle, judge that the difference between the actual angle and the standard angle is smaller than the preset angle.

[0014] In order to further achieve the above object, the present invention also provides:

[0015] A camera offset detection device comprises: a first acquisition module, used to acquire a standard angle between the camera in a stationary state and a standard direction; a second acquisition module, used to acquire an actual angle between the camera in a moving state and the standard direction; a judgment module, used to judge whether the difference between the actual angle and the standard angle is greater than a preset angle; and an execution module, used to determine that the shooting direction of the camera is offset if the difference is greater than the preset angle, and send a prompt message.

[0016] Preferably, the first acquisition module includes: a first setting unit, used to establish a reference coordinate system, and set the vertical downward direction of the camera in the reference coordinate system as the standard direction; a second setting unit, used to obtain the orientation of the camera in the reference coordinate system; and a first calculation unit, used to calculate an angle between the orientation and the standard direction, wherein the angle is the standard angle.

[0017] Preferably, the second setting unit is further used to obtain the orientation of the camera on the X-axis, the Y-axis and the Z-axis in the reference coordinate system, and set the orientation of the camera on the X-axis as the X orientation, the orientation of the camera on the Y-axis as the Y orientation, and the orientation of the camera on the Z-axis as the Z orientation, and any one of the X orientation, the Y orientation and the Z orientation can be set as the orientation.

[0018] Preferably, the judgment module includes: a third setting unit, used to set the standard direction as the X direction, calculate an angle between the X direction and the standard direction, and determine the angle as the standard angle; a fourth setting unit, used to obtain the actual angle between the camera and the X direction in the moving state; a second calculation unit, used to calculate an actual value between the actual angle and the standard angle, and then take the absolute value of the actual value to form the difference; a first judgment unit, used to compare the difference with the preset angle; a second judgment unit, used to judge that the difference between the actual angle and the standard angle is greater than the preset angle if the difference is greater than the preset angle; and a third judgment unit, used to judge that the difference between the actual angle and the standard angle is less than the preset angle if the difference is smaller than the preset angle.

[0019] A camera offset detection method and device of the present invention have the following beneficial effects: when an image acquisition device with a camera is moving according to a carrier such as a vehicle, it only needs to calculate a difference based on the standard angle and the actual angle of the camera, and judge whether the difference is greater than a preset angle based on the difference to obtain whether the actual shooting direction of the image acquisition device equipped with the camera has offset. If the above-mentioned offset occurs, a prompt message is sent in time, and the user does not need to manually check whether the camera on the image acquisition device has offset, which greatly improves the correction efficiency of the camera and improves the accuracy of camera shooting. When the shooting direction is offset, the user can be informed in time to make adjustments to ensure accuracy, which is convenient for users to use and has an excellent user experience.

Brief Description of the Drawings

[0020] Figure 1 is a flow chart of a camera offset detection method;

[0021] Figure 2 A flowchart of the steps of obtaining a standard angle between the camera in a static state and a standard direction in step S1;

[0022] Figure 3 This is a flowchart of the step of determining whether the difference between the actual angle and the standard angle is greater than the preset angle in step S3;

[0023] Figure 4 is a schematic diagram of a camera offset detection device;

[0024] Figure 5 This is the schematic diagram of the judgment module;

[0025] Figure 6 A schematic diagram is provided to further illustrate the principle of step S3. [Specific implementation method]

[0026] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0027] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.

[0028] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0029] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0030] The camera offset detection method and device shown in the solution of the present invention can be applied to an image acquisition device with a camera, such as a driving recorder, and the image acquisition device can be fixedly installed in a vehicle during use. Specifically, the image acquisition device with a camera can be installed on a motor vehicle, such as a driving recorder; or the camera offset detection method and device can also be applied to smart wearable products such as smart helmets or smart glasses with cameras. Of course, the above descriptions are only some embodiments of the present invention and are not limited thereto. Next, a driving recorder equipped with a camera will be used as an example for explanation.

[0031] Embodiment 1:

[0032] In the present invention, refer to Figure 1 , provides a camera offset detection method, comprising the following steps:

[0033] Step S1. Obtain a standard angle between the camera in a stationary state and a standard direction. In step S1, the stationary state refers to the state of the camera when it is first installed on the vehicle. For example, when the dash cam equipped with the camera is first installed on the vehicle, the vehicle is in a parked state. More specifically, it can refer to the following state: the state of the vehicle when the dash cam is first installed on the vehicle. In this state, the error of setting the above standard angle is small, which is closest to the optimal angle of the dash cam set on the vehicle, thereby satisfying the initial setting of the camera. This time is when the dash cam can correctly capture the front information with the widest viewing angle, so this is the best time to obtain the standard angle.

[0034] Further, see Figure 2In step S1, the steps of obtaining a standard angle between the camera in a stationary state and a standard direction are: S101. Establishing a reference coordinate system, and setting the vertical downward direction of the camera in the reference coordinate system as the standard direction; S102. Obtaining the orientation of the camera in the reference coordinate system; and S103. Calculating a first angle between the orientation and the standard direction, and setting the standard angle as the first angle.

[0035] In detail, the reference coordinate system can be a three-dimensional rectangular coordinate system but is not limited thereto. In the reference coordinate system, the vertical downward direction of the camera is set as the standard direction, and then the orientation of the camera in the three-dimensional rectangular coordinate system is obtained, and finally the first angle between them is calculated. Among them, in step S102, as an optional implementation, a velocity sensor (G-Sensor, acceleration sensor) can be used to obtain the orientation of the camera in the reference coordinate system. The principle of the acceleration sensor obtaining the standard direction is as follows: G-Sensor can sense the change of acceleration force, which is the force acting on the object during the acceleration process. For example, various movement changes such as shaking, falling, rising, falling, moving forward, and moving backward can be converted into electrical signals by G-sensor, and then after calculation and analysis by the microprocessor, the movement direction of the object equipped with G-sensor at this time can be identified. Therefore, the orientation of the camera in the three-dimensional rectangular coordinate system can be obtained by a velocity sensor. In addition, the following steps will also involve acquisition of various directions. For the convenience of description, in the subsequent acquisition steps involving any direction, unless otherwise specified, it can be assumed that it is acquired through the above-mentioned acceleration sensor, and will not be repeated later.

[0036] Furthermore, in step S102, the method for obtaining the orientation of the camera in the reference coordinate system is: obtaining the orientations of the camera on the X-axis, the Y-axis and the Z-axis in the reference coordinate system, and setting the orientation of the camera on the X-axis as the X orientation, setting the orientation of the camera on the Y-axis as the Y orientation, and setting the orientation of the camera on the Z-axis as the Z orientation, and any one of the X orientation, the Y orientation and the Z orientation can be set as the orientation. That is to say, there are multiple options for setting the orientation, and multiple orientations can be set to determine the offset in different directions to ensure that the camera can work in the correct position. The selection can be made according to the actual usage. For example, in some usage scenarios where the accuracy requirement is not high, the X orientation can be set as the orientation; if in some scenarios where the accuracy requirement is high, the X orientation, Y orientation and Z orientation can be set to different orientations for separate determination to ensure accuracy. Moreover, when actually determining whether an offset occurs, it is only necessary to detect that the actual angle between the orientation of any direction and the standard direction changes, and the difference between the actual angle and the standard angle is greater than a preset angle, which indicates that the offset as described in step S4 is occurring at this time, and a prompt message is sent.

[0037] After completing step S1, proceed to step S2. Obtain an actual angle between the camera in a moving state and the standard direction. The moving state refers to the process in which the camera is displacing, such as the process in which a driving recorder equipped with a camera moves with a vehicle. At this time, the position of the camera will change. Since uncertain position offsets may occur in these changes, step S2 will obtain the actual angle between the camera and the standard direction in this moving state to determine whether it has offset. In detail, the steps for obtaining the actual angle in step S2 are as follows: S201. Establish a reference coordinate system, and set the vertical downward direction of the camera in the reference coordinate system as the standard direction; S202. Obtain the orientation of the camera in the reference coordinate system; S203. Calculate a first angle between the orientation and the standard direction, and set the standard angle to the first angle. In fact, it is the same as the method for obtaining the standard angle mentioned above, and the specific orientation setting is also the same as above. Moreover, the reference coordinate systems of both are the same, so it will not be repeated here. After completing the collection of the standard angle and the actual angle in step S2, execute step S3.

[0038] In step S3, refer to Figure 3 and Figure 6, determine whether the difference between the actual angle and the standard angle is greater than a preset angle. In order to explain the step of S3 in more detail, an example will be given below: the orientation of the camera along the X-axis direction can be set to the above-mentioned X orientation, and the orientation is set to the X orientation, and then step S3 is executed. Determine whether the difference between the actual angle and the standard angle is greater than the preset angle, which includes the following steps: S301. Set the orientation to the X orientation, and calculate a second angle between the X orientation and the standard orientation, and set the standard angle to the second angle; S302. Obtain the camera in the moving state and the actual angle between the X direction; S303. Calculate an actual value between the actual angle and the standard angle, and then set the difference to the actual value after taking the absolute value; S304. Compare the difference with the preset angle; S305. If the difference is larger than the preset angle, determine that the difference between the actual angle and the standard angle is greater than the preset angle; and S306. If the difference is smaller than the preset angle, determine that the difference between the actual angle and the standard angle is smaller than the preset angle.

[0039] For another example, the orientation of the camera along the Y-axis direction can be set to the above-mentioned Y orientation, and the orientation is set to the Y orientation, and then step S3 is executed. It is determined whether the difference between the actual angle and the standard angle is greater than the preset angle, which includes the following steps: S307. The orientation is determined to be the Y orientation, and a third angle between the Y orientation and the standard orientation is calculated, and the standard angle is set to the third angle; S308. The actual angle between the camera and the Y orientation in the moving state is obtained; S309. An actual value between the actual angle and the standard angle is calculated, and then the difference is set to the actual value after taking the absolute value; S310. The difference is compared with the preset angle; S311. If the difference is larger than the preset angle, it is determined that the difference between the actual angle and the standard angle is greater than the preset angle; and S312. If the difference is smaller than the preset angle, it is determined that the difference between the actual angle and the standard angle is smaller than the preset angle. In addition, the orientation of the camera along the Z-axis direction may be set to the above-mentioned Z orientation, and the orientation may be set to the Z orientation, and then step S3 is executed. The specific execution process is the same as above and will not be repeated here.

[0040] Furthermore, in this embodiment, multiple judgment conditions can be added at the same time when judging, and only one of the judgment conditions needs to be met to determine that the shooting direction of the camera is offset, thereby further optimizing the judgment method in step S3, making it more three-dimensional and comprehensive to judge the actual direction of the camera. For example: when setting the direction in step S102, any two or three directions of the X direction, the Y direction and the Z direction can be set as the direction, and then step S3 is executed separately, and judgment is performed separately in each case. When any case is judged as the camera is offset, it can be determined that the camera is offset, and a prompt message is sent to the user.

[0041] From the above steps, it can be seen that the most critical thing is to calculate the difference between the actual angle and the standard angle. Since negative numbers may appear in the actual calculation, it is necessary to first take the absolute value of the value between the actual angle and the standard angle to obtain the difference, and finally compare the difference with the preset angle. When a difference greater than the preset angle is obtained here, it proves that the direction of the camera has deviated a lot and is not within the setting range of the preset angle, that is, the camera has deviated.

[0042] In this embodiment, as an optional implementation, the setting of the preset angle can be adjusted according to the needs of the user. For example, when some users need more accurate dash cam shooting, they will not allow the dash cam to have too much deviation. Therefore, the preset angle can be set to 3°, 4°, 5° or less than 3°; or when some users do not need more accurate dash cam shooting, the preset angle can be set to 10° or even more than 10 degrees. The specific value can be determined according to the actual situation of the user, which will not be repeated here.

[0043] After completing step S3, execute step S4. If the difference is greater than the preset angle, it is determined that the shooting direction of the camera is offset, and a prompt message is sent. There are many ways to send prompt messages. For example, when it is determined that the camera is offset, a voice broadcast of "the device direction is offset, please correct it in time" will be issued through a speaker, so as to achieve the purpose of reminding the user. Of course, the content of the above voice broadcast is not limited to this, and other voices similar to the above content can also be used. Furthermore, the way to send prompt information to the user can also be to send some specific ringtones such as "beep, beep, beep", so that the user can be informed in time that the camera is offset at this time. Of course, there are other ways to send prompt information, which are not limited to the above.

[0044] Furthermore, the following steps are included: when in step S3, the difference between the actual angle and the standard angle is less than the preset angle, then return to step S2. The difference between the actual angle and the standard angle is less than the preset angle, which means that the camera offset is within a suitable range, and the camera does not need to be adjusted at this time, so it should return to step S2 to continue to obtain the new actual angle, and calculate the new actual angle, and then re-enter step S3 to re-execute the judgment.

[0045] Example 2

[0046] Also, see Figure 4 In order to achieve the above-mentioned purpose, the present invention also provides a camera offset detection device, including a first acquisition module 1, a second acquisition module 2, a judgment module 3 and an execution module 4. The functions of each module are described in detail below. First, the first acquisition module 1 is used to obtain a standard angle between the camera in a static state and a standard direction; the second acquisition module is used to obtain an actual angle between the camera in a moving state and the standard direction. Among them, the first acquisition module 1 can be a sensor for various users to obtain direction information, such as an acceleration sensor (g-sensor), which is specifically used to capture direction information. Further, the first acquisition module 1 includes a first setting unit 11, a second setting unit 12 and a first calculation unit. The first setting unit 11 is used to establish a reference coordinate system and set the vertical downward direction of the camera in the reference coordinate system as the standard direction; the second setting unit 12 is used to obtain the orientation of the camera in the reference coordinate system; the first calculation unit is used to calculate an angle between the orientation and the standard direction, and the angle is the standard angle. Therefore, the standard angle can be obtained through the cooperation between the first setting unit 11, the second setting unit 12 and the first calculation unit. As an optional embodiment, the second setting unit is also used to obtain the orientation of the camera on the X-axis, the Y-axis and the Z-axis in the reference coordinate system, and set the orientation of the camera on the X-axis as the X orientation, the orientation of the camera on the Y-axis as the Y orientation, and the orientation of the camera on the Z-axis as the Z orientation. Any one of the X orientation, the Y orientation and the Z orientation can be set as the orientation.

[0047] The principle of the second acquisition module is the same as that of the first acquisition module, and the method for setting the orientation has been fully described in Example 1, which will not be repeated here.

[0048] Then, see Figure 5, the judgment module 3 is used to judge whether the difference between the actual angle and the standard angle is greater than a preset angle. The judgment module 3 includes: a third setting unit, used to set the standard direction as the X direction, and calculate an angle between the X direction and the standard direction, and determine the angle as the standard angle; a fourth setting unit, used to obtain the actual angle between the camera and the X direction in the moving state; a second calculation unit, used to calculate an actual value between the actual angle and the standard angle, and then take the absolute value of the actual value to form the difference; a first judgment unit, used to compare the difference with the preset angle; a second judgment unit, used to judge that the difference between the actual angle and the standard angle is greater than the preset angle if the difference is greater than the preset angle; a third judgment unit, used to judge that the difference between the actual angle and the standard angle is less than the preset angle if the difference is smaller than the preset angle. Therefore, through the mutual cooperation between the above-mentioned setting unit and the judgment unit, it is possible to determine whether the difference between the actual angle and the standard angle is greater than the preset angle. The relevant principles have been fully described in Example 1 and will not be repeated here.

[0049] Furthermore, finally, the execution module is used to determine that the shooting direction of the camera is offset if the difference is greater than the preset angle, and send a prompt message.

[0050] To summarize, a shooting direction offset detection method and device of the present invention, when an image acquisition device with a camera is moving according to a carrier such as a vehicle, only needs to calculate a difference based on the standard angle and the actual angle of the camera, and judge whether it is greater than a preset angle based on the difference to obtain whether the actual shooting direction of the image acquisition device equipped with the camera has offset. If the above offset occurs, a prompt message is sent in time, and the user does not need to manually check whether the camera on the image acquisition device has offset. The correction efficiency of the camera is greatly improved, and the accuracy of camera shooting is improved. When the shooting direction is offset, the user can be informed in time to make adjustments to ensure accuracy, which is convenient for users to use and has an excellent user experience.

[0051] According to the disclosure and teaching of the above description, those skilled in the art to which the present invention belongs may also make changes and modifications to the above embodiments. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and some modifications and changes to the present invention should also fall within the scope of protection of the claims of the present invention. In addition, although some specific terms are used in this specification, these terms are only for the convenience of description and do not constitute any limitation to the present invention.

Claims

1. A camera offset detection method, It is characterized in that The following steps are involved: S1. Obtaining a standard angle between the camera in a stationary state and a standard direction; S2. Obtaining an actual angle between the camera and the standard direction in a moving state; S3. Determine whether the difference between the actual angle and the standard angle is greater than a preset angle; and S4. If the difference is greater than the preset angle, it is determined that the shooting direction of the camera is offset, and a prompt message is sent.

2. The camera offset detection method according to claim 1, It is characterized in that In step S1, the step of obtaining a standard angle between the camera in a stationary state and a standard direction is: S101. Establish a reference coordinate system, and set the vertical downward direction of the camera in the reference coordinate system to the standard direction; S102. Obtaining the orientation of the camera in the reference coordinate system; and S103. Calculate a first angle between the orientation and the standard direction, and set the standard angle as the first angle.

3. The camera offset detection method according to claim 2, It is characterized in that In step S102 , the orientation of the camera in the reference coordinate system is acquired by a speed sensor.

4. The camera offset detection method according to claim 2, It is characterized in that In step S102, the method for obtaining the orientation of the camera in the reference coordinate system is: obtaining the orientations of the camera on the X-axis, the Y-axis, and the Z-axis in the reference coordinate system, and setting the orientation of the camera on the X-axis as the X orientation, setting the orientation of the camera on the Y-axis as the Y orientation, and setting the orientation of the camera on the Z-axis as the Z orientation, and any one of the X orientation, the Y orientation, and the Z orientation can be set as the orientation.

5. The camera offset detection method according to claim 3, It is characterized in that In step S3, the step of judging whether the difference between the actual angle and the standard angle is greater than the preset angle is: S301. Setting the orientation as the X orientation, calculating a second angle between the X orientation and the standard orientation, and setting the standard angle as the second angle; S302. Obtaining the actual angle between the camera in the moving state and the X direction; S303. Calculate an actual value between the actual angle and the standard angle, and then set the difference as the actual value after taking the absolute value; S304. Compare the difference with the preset angle; S305. If the difference is greater than the preset angle, determine that the difference between the actual angle and the standard angle is greater than the preset angle; and S306. If the difference is smaller than the preset angle, determine that the difference between the actual angle and the standard angle is smaller than the preset angle.

6. The camera offset detection method according to claim 3, It is characterized in that In step S3, the step of judging whether the difference between the actual angle and the standard angle is greater than the preset angle is: S307. Determine the orientation as the Y orientation, calculate a third angle between the Y orientation and the standard direction, and set the standard angle as the third angle; S308. Obtaining the actual angle between the camera in the moving state and the Y direction; S309. Calculate an actual value between the actual angle and the standard angle, and then set the difference as the actual value after taking the absolute value; S310. Compare the difference with the preset angle; S311. If the difference is greater than the preset angle, determine that the difference between the actual angle and the standard angle is greater than the preset angle; and S312. If the difference is smaller than the preset angle, determine that the difference between the actual angle and the standard angle is smaller than the preset angle.

7. A camera offset detection device, It is characterized in that include: A first acquisition module, used for acquiring a standard angle between the camera in a static state and a standard direction; A second acquisition module, used for acquiring an actual angle between the camera in a moving state and the standard direction; A judging module, used for judging whether the difference between the actual angle and the standard angle is greater than a preset angle; and The execution module is used to determine that the shooting direction of the camera is offset if the difference is greater than the preset angle, and send a prompt message.

8. The camera offset detection device according to claim 7, It is characterized in that The first acquisition module includes: A first setting unit, used for establishing a reference coordinate system, and setting the vertical downward direction of the camera in the reference coordinate system as the standard direction; A second setting unit, configured to obtain the orientation of the camera in the reference coordinate system; and The first calculation unit is used to calculate an angle between the orientation and the standard direction, where the angle is the standard angle.

9. The camera offset detection device according to claim 8, It is characterized in that The second setting unit is further used to obtain the orientation of the camera on the X-axis, Y-axis and Z-axis in the reference coordinate system, and set the orientation of the camera on the X-axis as the X orientation, the orientation of the camera on the Y-axis as the Y orientation, and the orientation of the camera on the Z-axis as the Z orientation. Any one of the X orientation, the Y orientation and the Z orientation can be set as the orientation.

10. The camera offset detection device according to claim 9, It is characterized in that The judging module comprises: A third setting unit, configured to set the standard direction as the X direction, calculate an angle between the X direction and the standard direction, and determine the angle as the standard angle; A fourth setting unit, configured to obtain the actual angle between the camera and the X direction in the moving state; A second calculation unit is used to calculate an actual value between the actual angle and the standard angle, and then take the absolute value of the actual value to form the difference; A first judgment unit, used for comparing the difference with the preset angle; a second judging unit, configured to judge that the difference between the actual angle and the standard angle is greater than the preset angle if the difference is greater than the preset angle; and The third judgment unit is used to judge that the difference between the actual angle and the standard angle is smaller than the preset angle if the difference is smaller than the preset angle.