CN115235406A - A method and device for monitoring the angle deviation of a camera - Google Patents
A method and device for monitoring the angle deviation of a camera Download PDFInfo
- Publication number
- CN115235406A CN115235406A CN202210815118.4A CN202210815118A CN115235406A CN 115235406 A CN115235406 A CN 115235406A CN 202210815118 A CN202210815118 A CN 202210815118A CN 115235406 A CN115235406 A CN 115235406A
- Authority
- CN
- China
- Prior art keywords
- angle
- information
- acceleration
- acceleration sensor
- camera
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B21/00—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
- G01B21/22—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring angles or tapers; for testing the alignment of axes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Studio Devices (AREA)
Abstract
本申请适用于计算机技术领域,提供了一种摄像头角度偏移的监测方法及装置,所述方法包括:获取第一加速度传感器对应的第一角度信息;获取第二加速度传感器对应的第二角度信息;获取第一角度信息和第二角度信息之间的第一差值;当第一差值大于预设差值阈值,且第一差值对应的持续时间大于预设时间阈值时,判定摄像头角度发生偏移。上述方法中,设备直接获取角度信息,可以避免因为对三轴加速度数据的直接缩放而导致的精度缺失,提高了判断结果的准确性,并且,用户对于角度的感知要明显比对加速度的感知更清晰,便于手动矫正摄像机位置。
The present application is applicable to the field of computer technology, and provides a method and device for monitoring the angle offset of a camera. The method includes: acquiring first angle information corresponding to a first acceleration sensor; acquiring second angle information corresponding to a second acceleration sensor ; obtain the first difference between the first angle information and the second angle information; when the first difference is greater than the preset difference threshold, and the duration corresponding to the first difference is greater than the preset time threshold, determine the camera angle offset occurs. In the above method, the device directly obtains the angle information, which can avoid the lack of precision caused by the direct scaling of the three-axis acceleration data, and improve the accuracy of the judgment result. Moreover, the user's perception of the angle is obviously better than the perception of the acceleration. Clear, easy to manually correct the camera position.
Description
技术领域technical field
本申请属于计算机技术领域,尤其涉及一种摄像头角度偏移的监测方法及装置。The present application belongs to the field of computer technology, and in particular, relates to a method and device for monitoring the angle shift of a camera.
背景技术Background technique
在车辆行驶时,车辆安装的车载摄像头会由于车辆颠簸或者其他原因产生角度偏移,这样就会导致车载摄像头的监测区域发生变化,丢失关键区域的录像。现有技术中对于摄像头角度偏移的监测,都是直接通过获取摄像头主板上加速度传感器的三轴数据来判断的。但是,只通过加速度传感器的三轴数据直接判断当前摄像头所处的实际角度,判断结果会出现误差,并且矫正摄像机角度时效率很低。When the vehicle is running, the on-board camera installed on the vehicle will have an angle offset due to vehicle bumps or other reasons, which will cause the monitoring area of the on-board camera to change and lose the video of key areas. In the prior art, the monitoring of the angle shift of the camera is directly determined by acquiring the three-axis data of the acceleration sensor on the main board of the camera. However, if the actual angle of the current camera is directly judged only by the three-axis data of the acceleration sensor, there will be errors in the judgment result, and the efficiency of correcting the camera angle is very low.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种摄像头角度偏移的监测方法及装置,可以解决上述问题。The embodiments of the present application provide a method and device for monitoring the angle shift of a camera, which can solve the above problems.
第一方面,本申请实施例提供了一种摄像头角度偏移的监测方法,包括:In a first aspect, an embodiment of the present application provides a method for monitoring the angle offset of a camera, including:
获取第一加速度传感器对应的第一角度信息;所述第一加速度传感器为摄像头的加速度传感器;所述第一角度信息为所述第一加速度传感器对应的第一加速度信息的方向与水平面之间的夹角;所述第一加速度信息为三轴加速度信息;Obtain the first angle information corresponding to the first acceleration sensor; the first acceleration sensor is the acceleration sensor of the camera; the first angle information is the direction between the direction of the first acceleration information corresponding to the first acceleration sensor and the horizontal plane. an included angle; the first acceleration information is triaxial acceleration information;
获取第二加速度传感器对应的第二角度信息;所述第二加速度传感器为网络录像机的加速度传感器;所述第二角度信息为所述第二加速度传感器对应的第二加速度信息的方向与水平面之间的夹角;所述第二加速度信息为三轴加速度信息;Obtain second angle information corresponding to the second acceleration sensor; the second acceleration sensor is an acceleration sensor of a network video recorder; the second angle information is the distance between the direction of the second acceleration information corresponding to the second acceleration sensor and the horizontal plane The included angle of ; the second acceleration information is triaxial acceleration information;
获取所述第一角度信息和所述第二角度信息之间的第一差值;obtaining a first difference between the first angle information and the second angle information;
当所述第一差值大于预设差值阈值,且所述第一差值对应的持续时间大于预设时间阈值时,判定所述摄像头角度发生偏移。When the first difference value is greater than a preset difference value threshold, and the duration corresponding to the first difference value is greater than a preset time threshold value, it is determined that the camera angle is shifted.
进一步地,所述获取第一加速度传感器对应的第一角度信息,包括:Further, the obtaining the first angle information corresponding to the first acceleration sensor includes:
获取第一加速度传感器对应的第一加速度信息;acquiring first acceleration information corresponding to the first acceleration sensor;
根据预设转换策略将所述第一加速度信息转换为第一角度信息。The first acceleration information is converted into first angle information according to a preset conversion strategy.
进一步地,所述根据预设转换策略将所述第一加速度信息转换为第一角度信息,包括:Further, converting the first acceleration information into first angle information according to a preset conversion strategy includes:
根据所述第一加速度信息和预设计算策略进行计算,得到第一角度相关参数;Calculate according to the first acceleration information and a preset calculation strategy to obtain a first angle-related parameter;
将所述第一角度相关参数转换为第三角度信息;所述第三角度信息为所述第一加速度信息对应的方向和合力加速度对应的方向之间的夹角;Converting the first angle-related parameter into third angle information; the third angle information is the angle between the direction corresponding to the first acceleration information and the direction corresponding to the resultant acceleration;
根据所述第三角度信息确定第一角度信息。The first angle information is determined according to the third angle information.
进一步地,所述获取第一加速度传感器对应的第一角度信息,包括:Further, the obtaining the first angle information corresponding to the first acceleration sensor includes:
接收由所述摄像头发送的所述第一加速度传感器对应的第一角度信息。First angle information corresponding to the first acceleration sensor sent by the camera is received.
进一步地,所述获取第二加速度传感器对应的第二角度信息,包括:Further, the acquiring the second angle information corresponding to the second acceleration sensor includes:
获取第二加速度传感器对应的第二加速度信息;acquiring second acceleration information corresponding to the second acceleration sensor;
根据预设转换策略将所述第二加速度信息转换为第二角度信息。The second acceleration information is converted into second angle information according to a preset conversion strategy.
进一步地,所述根据预设转换策略将所述第二加速度信息转换为第二角度信息,包括:Further, converting the second acceleration information into second angle information according to a preset conversion strategy includes:
根据所述第二加速度信息和预设计算策略进行计算,得到第二角度相关参数;Calculate according to the second acceleration information and a preset calculation strategy to obtain second angle-related parameters;
将所述第二角度相关参数转换为第四角度信息;所述第四角度信息为所述第二加速度信息对应的方向和合力加速度对应的方向之间的夹角;Converting the second angle-related parameter into fourth angle information; the fourth angle information is the angle between the direction corresponding to the second acceleration information and the direction corresponding to the resultant acceleration;
根据所述第四角度信息确定第二角度信息。The second angle information is determined according to the fourth angle information.
进一步地,在所述当所述第一差值大于预设差值阈值,且所述第一差值对应的持续时间大于预设时间阈值时,判定所述摄像头角度发生偏移之前,还包括:Further, before determining that the camera angle is shifted when the first difference is greater than a preset difference threshold and the duration corresponding to the first difference is greater than a preset time threshold, the method further includes: :
获取静止状态下的所述第一加速度传感器对应的第一静止角度信息和所述第二加速度传感器对应的第二静止角度信息;acquiring first static angle information corresponding to the first acceleration sensor and second static angle information corresponding to the second acceleration sensor in a static state;
将所述第一静止角度信息和所述第二静止角度信息之间的差值作为预设差值阈值。A difference between the first static angle information and the second static angle information is used as a preset difference threshold.
进一步地,在所述当所述第一差值大于预设差值阈值,且所述第一差值对应的持续时间大于预设时间阈值时,判定所述摄像头角度发生偏移之后,还包括:Further, after determining that the camera angle is shifted when the first difference value is greater than a preset difference value threshold and the duration corresponding to the first difference value is greater than a preset time threshold value, further comprising: :
生成摄像头角度偏移提醒信息;所述摄像头角度偏移提醒信息包括摄像头角度偏移状态信息、摄像头角度偏移原因、摄像头角度偏移矫正提示信息。The camera angle offset reminder information is generated; the camera angle offset reminder information includes the camera angle offset status information, the camera angle offset reason, and the camera angle offset correction prompt information.
第二方面,本申请实施例提供了一种摄像头角度偏移的监测装置,包括:In a second aspect, an embodiment of the present application provides a monitoring device for camera angle shift, including:
第一获取单元,用于获取第一加速度传感器对应的第一角度信息;所述第一加速度传感器为摄像头的加速度传感器;所述第一角度信息为所述第一加速度传感器对应的第一加速度信息的方向与水平面之间的夹角;所述第一加速度信息为三轴加速度信息;a first acquisition unit, configured to acquire first angle information corresponding to a first acceleration sensor; the first acceleration sensor is an acceleration sensor of a camera; the first angle information is first acceleration information corresponding to the first acceleration sensor The angle between the direction and the horizontal plane; the first acceleration information is triaxial acceleration information;
第二获取单元,用于获取第二加速度传感器对应的第二角度信息;所述第二加速度传感器为网络录像机的加速度传感器;所述第二角度信息为所述第二加速度传感器对应的第二加速度信息的方向与水平面之间的夹角;所述第二加速度信息为三轴加速度信息;The second acquiring unit is configured to acquire the second angle information corresponding to the second acceleration sensor; the second acceleration sensor is the acceleration sensor of the network video recorder; the second angle information is the second acceleration corresponding to the second acceleration sensor The angle between the direction of the information and the horizontal plane; the second acceleration information is triaxial acceleration information;
第三获取单元,用于获取所述第一角度信息和所述第二角度信息之间的第一差值;a third acquiring unit, configured to acquire the first difference between the first angle information and the second angle information;
第一处理单元,用于当所述第一差值大于预设差值阈值,且所述第一差值对应的持续时间大于预设时间阈值时,判定所述摄像头角度发生偏移。A first processing unit, configured to determine that the camera angle is shifted when the first difference is greater than a preset difference threshold and the duration corresponding to the first difference is greater than a preset time threshold.
进一步地,所述第一获取单元,具体用于:Further, the first obtaining unit is specifically used for:
获取第一加速度传感器对应的第一加速度信息;acquiring first acceleration information corresponding to the first acceleration sensor;
根据预设转换策略将所述第一加速度信息转换为第一角度信息。The first acceleration information is converted into first angle information according to a preset conversion strategy.
进一步地,所述第一获取单元,具体用于:Further, the first obtaining unit is specifically used for:
根据所述第一加速度信息和预设计算策略进行计算,得到第一角度相关参数;Calculate according to the first acceleration information and a preset calculation strategy to obtain a first angle-related parameter;
将所述第一角度相关参数转换为第三角度信息;所述第三角度信息为所述第一加速度信息对应的方向和合力加速度对应的方向之间的夹角;Converting the first angle-related parameter into third angle information; the third angle information is the angle between the direction corresponding to the first acceleration information and the direction corresponding to the resultant acceleration;
根据所述第三角度信息确定第一角度信息。The first angle information is determined according to the third angle information.
进一步地,所述第一获取单元,具体用于:Further, the first obtaining unit is specifically used for:
接收由所述摄像头发送的所述第一加速度传感器对应的第一角度信息。First angle information corresponding to the first acceleration sensor sent by the camera is received.
进一步地,所述第二获取单元,具体用于:Further, the second obtaining unit is specifically used for:
获取第二加速度传感器对应的第二加速度信息;acquiring second acceleration information corresponding to the second acceleration sensor;
根据预设转换策略将所述第二加速度信息转换为第二角度信息。The second acceleration information is converted into second angle information according to a preset conversion strategy.
进一步地,所述第二获取单元,具体用于:Further, the second obtaining unit is specifically used for:
根据所述第二加速度信息和预设计算策略进行计算,得到第二角度相关参数;Calculate according to the second acceleration information and a preset calculation strategy to obtain second angle-related parameters;
将所述第二角度相关参数转换为第四角度信息;所述第四角度信息为所述第二加速度信息对应的方向和合力加速度对应的方向之间的夹角;Converting the second angle-related parameter into fourth angle information; the fourth angle information is the angle between the direction corresponding to the second acceleration information and the direction corresponding to the resultant acceleration;
根据所述第四角度信息确定第二角度信息。The second angle information is determined according to the fourth angle information.
进一步地,所述摄像头角度偏移的监测装置,还包括:Further, the monitoring device for the angle shift of the camera also includes:
第四获取单元,用于获取静止状态下的所述第一加速度传感器对应的第一静止角度信息和所述第二加速度传感器对应的第二静止角度信息;a fourth acquisition unit, configured to acquire first static angle information corresponding to the first acceleration sensor and second static angle information corresponding to the second acceleration sensor in a static state;
第二处理单元,用于将所述第一静止角度信息和所述第二静止角度信息之间的差值作为预设差值阈值。The second processing unit is configured to use the difference between the first static angle information and the second static angle information as a preset difference threshold.
进一步地,所述摄像头角度偏移的监测装置,还包括:Further, the monitoring device for the angle shift of the camera also includes:
第三处理单元,用于生成摄像头角度偏移提醒信息;所述摄像头角度偏移提醒信息包括摄像头角度偏移状态信息、摄像头角度偏移原因、摄像头角度偏移矫正提示信息。The third processing unit is configured to generate camera angle offset reminder information; the camera angle offset reminder information includes camera angle offset status information, camera angle offset reasons, and camera angle offset correction prompt information.
第三方面,本申请实施例提供了一种摄像头角度偏移的监测设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面所述的方法。In a third aspect, an embodiment of the present application provides a camera angle shift monitoring device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing The computer program implements the method according to the first aspect above.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the method described in the first aspect.
本申请实施例中,获取第一加速度传感器对应的第一角度信息;第一加速度传感器为摄像头的加速度传感器;第一角度信息为所述第一加速度传感器对应的第一加速度信息的方向与水平面之间的夹角;获取第二加速度传感器对应的第二角度信息;第二加速度传感器为网络录像机的加速度传感器;第二角度信息为第二加速度传感器对应的第二加速度信息的方向与水平面之间的夹角;获取第一角度信息和第二角度信息之间的第一差值;当第一差值大于预设差值阈值,且第一差值对应的持续时间大于预设时间阈值时,判定摄像头角度发生偏移。上述方法中,设备直接获取角度信息,可以避免因为对三轴加速度数据的直接缩放而导致的精度缺失,提高了判断结果的准确性,并且,用户对于角度的感知要明显比对加速度的感知更清晰,便于手动矫正摄像机位置。In the embodiment of the present application, the first angle information corresponding to the first acceleration sensor is obtained; the first acceleration sensor is the acceleration sensor of the camera; the first angle information is the difference between the direction of the first acceleration information corresponding to the first acceleration sensor and the horizontal plane obtain the second angle information corresponding to the second acceleration sensor; the second acceleration sensor is the acceleration sensor of the network video recorder; the second angle information is the direction between the direction of the second acceleration information corresponding to the second acceleration sensor and the horizontal plane Included angle; obtain the first difference between the first angle information and the second angle information; when the first difference is greater than the preset difference threshold, and the duration corresponding to the first difference is greater than the preset time threshold, determine The camera angle is offset. In the above method, the device directly obtains the angle information, which can avoid the lack of precision caused by the direct scaling of the three-axis acceleration data, and improve the accuracy of the judgment result. Moreover, the user's perception of the angle is obviously better than the perception of the acceleration. Clear, easy to manually correct the camera position.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本申请第一实施例提供的一种摄像头角度偏移的监测方法的示意流程图;FIG. 1 is a schematic flowchart of a method for monitoring the angle shift of a camera provided by the first embodiment of the present application;
图2是本申请第二实施例提供的摄像头角度偏移的监测装置的示意图;2 is a schematic diagram of a monitoring device for camera angle shift provided by a second embodiment of the present application;
图3是本申请第三实施例提供的摄像头角度偏移的监测设备的示意图。FIG. 3 is a schematic diagram of a monitoring device for camera angle shift provided by a third embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other The presence or addition of features, integers, steps, operations, elements, components and/or sets thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the specification of this application and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting ". Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification of the present application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and should not be construed as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References in this specification to "one embodiment" or "some embodiments" and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically emphasized otherwise. The terms "including", "including", "having" and their variants mean "including but not limited to" unless specifically emphasized otherwise.
请参见图1,图1是本申请第一实施例提供的一种摄像头角度偏移的监测方法的示意流程图。本实施例中一种摄像头角度偏移的监测方法的执行主体为具有摄像头角度偏移的监测功能的设备,例如,台式电脑、服务器等等。如图1所示的摄像头角度偏移的监测方法可以包括:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a method for monitoring the angle shift of a camera provided by the first embodiment of the present application. In this embodiment, the execution subject of the method for monitoring camera angle offset is a device with a camera angle offset monitoring function, such as a desktop computer, a server, and the like. The monitoring method for camera angle shift as shown in Figure 1 may include:
S101:获取第一加速度传感器对应的第一角度信息;所述第一加速度传感器为摄像头的加速度传感器;所述第一角度信息为所述第一加速度传感器对应的第一加速度信息的方向与水平面之间的夹角。S101: Acquire first angle information corresponding to a first acceleration sensor; the first acceleration sensor is an acceleration sensor of a camera; the first angle information is the difference between the direction of the first acceleration information corresponding to the first acceleration sensor and the horizontal plane angle between.
在车辆行驶时,车辆安装的车载摄像头会对关键区域进行图像采集。摄像头内置第一加速度传感器,加速度传感器能够感知到加速力的变化,加速力就是当物体在加速过程中作用在物体上的力,比如晃动、跌落、上升、下降等各种移动变化都能被加速度传感器转化为电信号。设备获取第一加速度传感器对应的第一角度信息。其中,第一角度信息为第一加速度传感器对应的第一加速度信息的方向与水平面之间的夹角。第一加速度信息为三轴加速度信息。When the vehicle is running, the on-board camera installed on the vehicle will capture images of key areas. The camera has a built-in first acceleration sensor. The acceleration sensor can sense the change of the acceleration force. The acceleration force is the force acting on the object during the acceleration process. For example, various movement changes such as shaking, falling, rising, and falling can be accelerated. The sensor converts into an electrical signal. The device acquires first angle information corresponding to the first acceleration sensor. The first angle information is an angle between the direction of the first acceleration information corresponding to the first acceleration sensor and the horizontal plane. The first acceleration information is triaxial acceleration information.
在本实施例中,设备获取第一加速度传感器对应的第一角度信息,设备可以获取第一加速度传感器对应的第一加速度信息的方向,然后获取第一加速度信息的方向与水平面之间的夹角,即得到第一角度信息。In this embodiment, the device obtains the first angle information corresponding to the first acceleration sensor, the device can obtain the direction of the first acceleration information corresponding to the first acceleration sensor, and then obtains the angle between the direction of the first acceleration information and the horizontal plane , that is, the first angle information is obtained.
一种实施方式中,设备获取第一加速度传感器对应的第一加速度信息,根据预设转换策略将所述第一加速度信息转换为第一角度信息。其中,第一加速度信息为第一加速度传感器直接获取的原始三轴加速度信息。设备中存储预设转换策略,预设转换策略用于将原始的三轴加速度信息转换为角度信息。设备根据预设转换策略中的计算方法将原始的三轴加速度信息转换为角度信息。In one embodiment, the device acquires first acceleration information corresponding to the first acceleration sensor, and converts the first acceleration information into first angle information according to a preset conversion strategy. The first acceleration information is the original three-axis acceleration information directly obtained by the first acceleration sensor. A preset conversion strategy is stored in the device, and the preset conversion strategy is used to convert the original three-axis acceleration information into angle information. The device converts the original three-axis acceleration information into angle information according to the calculation method in the preset conversion strategy.
一种实施方式中,设备直接接收由摄像头发送的第一加速度传感器对应的第一角度信息。本实施例中,计算第一角度信息的过程不在本端设备中进行,由摄像头进行计算并且发送至设备。In an implementation manner, the device directly receives the first angle information corresponding to the first acceleration sensor sent by the camera. In this embodiment, the process of calculating the first angle information is not performed in the local device, but is calculated by the camera and sent to the device.
一种实施方式中,设备可以根据以下方式将原始的第一加速度信息转换为第一角度信息:设备根据第一加速度信息和预设计算策略进行计算,得到第一角度相关参数;将第一角度相关参数转换为第三角度信息;第三角度信息为第一加速度信息对应的方向和合力加速度对应的方向之间的夹角;根据第三角度信息确定第一角度信息。其中,合力加速度为重力加速度和运动产生的加速度作用之后生成的最终加速度。可以理解的是,静止状态下,合力加速度等同于重力加速度。In one embodiment, the device can convert the original first acceleration information into the first angle information according to the following methods: the device performs calculation according to the first acceleration information and a preset calculation strategy to obtain the first angle related parameters; The relevant parameters are converted into third angle information; the third angle information is the angle between the direction corresponding to the first acceleration information and the direction corresponding to the resultant acceleration; the first angle information is determined according to the third angle information. The resultant acceleration is the final acceleration generated after the acceleration of gravity and the acceleration generated by the motion. It can be understood that, in the static state, the resultant acceleration is equal to the gravitational acceleration.
具体来说,预设计算策略可以为:Specifically, the preset calculation strategy can be:
其中,X、Y、Z为第一加速度信息,a、b、c为第一角度相关参数。Wherein, X, Y, and Z are the first acceleration information, and a, b, and c are the first angle-related parameters.
预设计算策略的原理为:The principle of the preset calculation strategy is as follows:
利用勾股定理,确认第一加速度信息和合力加速度之间的算法关系:Using the Pythagorean theorem, confirm the algorithmic relationship between the first acceleration information and the resultant acceleration:
(ng)2=X2+Y2+Z2;(ng) 2 =X 2 +Y 2 +Z 2 ;
利用三角函数,确认第一加速度信息和合力加速度之间的算法关系:Using trigonometric functions, confirm the algorithmic relationship between the first acceleration information and the resultant acceleration:
ng cos a=X;ng cos a = X;
ng cos b=Y;ng cos b = y;
ng cos c=Z;ng cos c = Z;
通过上述公式进行计算推导:The calculation is derived by the above formula:
(ng)2=X2+Y2+Z2=(ng)2(cosa)2+Y2+Z2;(ng) 2 =X 2 +Y 2 +Z 2 =(ng) 2 (cosa) 2 +Y 2 +Z 2 ;
(ng)2-(ng)2(cosa)2=Y2+Z2;(ng) 2 -(ng) 2 (cosa) 2 =Y 2 +Z 2 ;
(ng)2(sina)2=Y2+Z2;(ng) 2 (sina) 2 =Y 2 +Z 2 ;
得到:get:
同理得到:Similarly get:
设备将第一角度相关参数转换为第三角度信息时,可以直接利用角度与弧度之间的换算关系进行计算:When the device converts the first angle-related parameters into the third angle information, it can directly use the conversion relationship between the angle and the radian to calculate:
2π/a=360/θx2π/a=360/θx
同理得到:Similarly get:
其中,θx、θy、θz为第三角度信息。Among them, θx, θy, and θz are third angle information.
由于第三角度信息为第一加速度信息对应的方向和合力加速度对应的方向之间的夹角,而第一角度信息为第一加速度信息的方向与水平面之间的夹角,所以,根据第三角度信息确定第一角度信息时,可以采用以下方式:Since the third angle information is the angle between the direction corresponding to the first acceleration information and the direction corresponding to the resultant acceleration, and the first angle information is the angle between the direction of the first acceleration information and the horizontal plane, according to the third When the angle information determines the first angle information, the following methods may be used:
θ’x=90-θx-θdiffx;θ'x=90-θx-θdiffx;
θ’y=90-θy-θdiffy;θ'y=90-θy-θdiffy;
θ’z=90-θz-θdiffz;θ'z=90-θz-θdiffz;
其中,θ’x、θ’y、θ’z为第一角度信息。θdiffx、θdiffy、θdiffz为角度误差,静止状态下,因为只受重力加速度作用,所有合力加速度和水平面垂直,此时θdiffx、θdiffy、θdiffz为0;运动状态下,合力加速度还受外部加速度影响,此时θdiffx、θdiffy、θdiffz不为0;由于默认网络录像机和摄像机受力相同,计算角度差值时,角度误差可抵消。Wherein, θ'x, θ'y, and θ'z are the first angle information. θdiffx, θdiffy, and θdiffz are the angle errors. In the static state, because only the acceleration of gravity is applied, all the resultant accelerations are perpendicular to the horizontal plane. At this time, θdiffx, θdiffy, and θdiffz are 0. In the motion state, the resultant acceleration is also affected by the external acceleration. When θdiffx, θdiffy, and θdiffz are not 0; since the default network video recorder and camera are under the same force, when calculating the angle difference, the angle error can be cancelled.
S102:获取第二加速度传感器对应的第二角度信息;所述第二加速度传感器为网络录像机的加速度传感器;所述第二角度信息为所述第二加速度传感器对应的第二加速度信息的方向与水平面之间的夹角。S102: Acquire second angle information corresponding to the second acceleration sensor; the second acceleration sensor is an acceleration sensor of a network video recorder; the second angle information is the direction and the horizontal plane of the second acceleration information corresponding to the second acceleration sensor the angle between.
在本实施例的方法中,设置了两个加速度传感器,第二加速度传感器为网络录像机的加速度传感器,采用双加速度传感器来对摄像头角度偏移进行监测,进一步提升了监测的准确性。In the method of this embodiment, two acceleration sensors are provided, the second acceleration sensor is the acceleration sensor of the network video recorder, and the double acceleration sensor is used to monitor the angle offset of the camera, which further improves the monitoring accuracy.
其中,设备可以内置网络录像机,网络录像机实时监听自身主板加速度传感器,即第二加速度传感器。设备获取第二加速度传感器对应的第二角度信息,其中,第二角度信息为第二加速度传感器对应的第二加速度信息的方向与水平面之间的夹角。第二加速度信息为三轴加速度信息。Among them, the device can have a built-in network video recorder, and the network video recorder monitors its own motherboard acceleration sensor in real time, that is, the second acceleration sensor. The device acquires second angle information corresponding to the second acceleration sensor, where the second angle information is an angle between a direction of the second acceleration information corresponding to the second acceleration sensor and a horizontal plane. The second acceleration information is triaxial acceleration information.
在本实施例中,设备获取第二加速度传感器对应的第二角度信息,设备可以获取第二加速度传感器对应的第二加速度信息的方向,然后获取第二加速度信息的方向与水平面之间的夹角,即得到第二角度信息。In this embodiment, the device acquires the second angle information corresponding to the second acceleration sensor, the device may acquire the direction of the second acceleration information corresponding to the second acceleration sensor, and then acquires the angle between the direction of the second acceleration information and the horizontal plane , that is, the second angle information is obtained.
一种实施方式中,设备获取第二加速度传感器对应的第二加速度信息,根据预设转换策略将所述第二加速度信息转换为第二角度信息。其中,第二加速度信息为第二加速度传感器直接获取的原始三轴加速度信息。设备中存储预设转换策略,预设转换策略用于将原始的三轴加速度信息转换为角度信息。设备根据预设转换策略中的计算方法将原始的三轴加速度信息转换为角度信息。In one embodiment, the device acquires second acceleration information corresponding to the second acceleration sensor, and converts the second acceleration information into second angle information according to a preset conversion strategy. The second acceleration information is the original triaxial acceleration information directly obtained by the second acceleration sensor. A preset conversion strategy is stored in the device, and the preset conversion strategy is used to convert the original three-axis acceleration information into angle information. The device converts the original three-axis acceleration information into angle information according to the calculation method in the preset conversion strategy.
一种实施方式中,设备可以根据以下方式将原始的第二加速度信息转换为第二角度信息:根据所述第二加速度信息和预设计算策略进行计算,得到第二角度相关参数;将所述第二角度相关参数转换为第四角度信息;所述第四角度信息为所述第二加速度信息对应的方向和合力加速度对应的方向之间的夹角;根据所述第四角度信息确定第二角度信息。此处具体的转换方法可以参照上文中将第一加速度信息转换为第一角度信息的具体描述,此处不再赘述。In one embodiment, the device may convert the original second acceleration information into the second angle information according to the following methods: perform calculation according to the second acceleration information and a preset calculation strategy to obtain second angle-related parameters; The second angle-related parameter is converted into fourth angle information; the fourth angle information is the angle between the direction corresponding to the second acceleration information and the direction corresponding to the resultant acceleration; the second angle information is determined according to the fourth angle information. angle information. For the specific conversion method here, reference may be made to the specific description of converting the first acceleration information into the first angle information above, which will not be repeated here.
S103:获取所述第一角度信息和所述第二角度信息之间的第一差值。S103: Acquire a first difference between the first angle information and the second angle information.
设备在获取到第一角度信息和第二角度信息后,计算第一角度信息和第二角度信息之间的第一差值。第一差值用于判断摄像头角度是否发生偏移。After acquiring the first angle information and the second angle information, the device calculates a first difference between the first angle information and the second angle information. The first difference is used to determine whether the camera angle is shifted.
S104:当所述第一差值大于预设差值阈值,且所述第一差值对应的持续时间大于预设时间阈值时,判定所述摄像头角度发生偏移。S104: When the first difference value is greater than a preset difference value threshold, and the duration corresponding to the first difference value is greater than a preset time threshold value, determine that the camera angle is shifted.
设备中存储预设差值阈值,其中,预设差值阈值用于判断摄像头角度是否发生偏移。设备需要获取到第一差值对应的持续时间,当第一差值大于预设差值阈值,且第一差值对应的持续时间大于预设时间阈值时,判定摄像头角度发生偏移。A preset difference threshold is stored in the device, wherein the preset difference threshold is used to determine whether the camera angle is shifted. The device needs to obtain the duration corresponding to the first difference, and when the first difference is greater than the preset difference threshold and the duration corresponding to the first difference is greater than the preset time threshold, it is determined that the camera angle is shifted.
也就是说,当第一差值小于或者等于预设差值阈值时,判定摄像头角度未偏移;当第一差值大于预设差值阈值,且第一差值对应的持续时间小于或者预设时间阈值时,判定摄像头角度未偏移。That is to say, when the first difference is less than or equal to the preset difference threshold, it is determined that the camera angle is not shifted; when the first difference is greater than the preset difference threshold, and the duration corresponding to the first difference is less than or predetermined When the time threshold is set, it is determined that the camera angle is not shifted.
其中,预设差值阈值是根据车辆静止状态下的参数确定的,具体来说,设置预设差值阈值的方法可以为:The preset difference threshold is determined according to parameters in a stationary state of the vehicle. Specifically, the method for setting the preset difference threshold may be:
设备获取静止状态下的第一加速度传感器对应的第一静止角度信息和第二加速度传感器对应的第二静止角度信息;将第一静止角度信息和第二静止角度信息之间的差值作为预设差值阈值。其中,获取第一静止角度信息和第二静止角度信息的方法可以参照S101和S102中的相关描述,此处不再赘述。The device obtains the first static angle information corresponding to the first acceleration sensor and the second static angle information corresponding to the second acceleration sensor in a static state; the difference between the first static angle information and the second static angle information is used as a preset Difference threshold. The method for acquiring the first static angle information and the second static angle information may refer to the relevant descriptions in S101 and S102, which will not be repeated here.
在判定摄像头角度偏移后,设备还可以生成摄像头角度偏移提醒信息,用于对用户进行提醒,便于用户了解当前偏移情况,从而进行调整,为用户提供有效的帮助。其中,摄像头角度偏移提醒信息可以包括摄像头角度偏移状态信息、摄像头角度偏移原因、摄像头角度偏移矫正提示信息等等。摄像头角度偏移状态信息可以告知用户摄像头角度已经发生偏移,摄像头角度偏移原因可以包括车辆颠簸或者摄像头发生故障等等,摄像头角度偏移矫正提示信息可以告知用户调整摄像头的方法。After determining the camera angle offset, the device can also generate camera angle offset reminder information, which is used to remind the user, so that the user can understand the current offset situation, so as to make adjustments and provide effective help to the user. The camera angle offset reminder information may include camera angle offset status information, camera angle offset reasons, camera angle offset correction prompt information, and the like. The camera angle offset status information can inform the user that the camera angle has been offset, and the reasons for the camera angle offset can include vehicle bumps or camera failure, etc., and the camera angle offset correction prompt information can inform the user how to adjust the camera.
本申请实施例中,获取第一加速度传感器对应的第一角度信息;第一加速度传感器为摄像头的加速度传感器;第一角度信息为所述第一加速度传感器对应的第一加速度信息的方向与水平面之间的夹角;获取第二加速度传感器对应的第二角度信息;第二加速度传感器为网络录像机的加速度传感器;第二角度信息为第二加速度传感器对应的第二加速度信息的方向与水平面之间的夹角;获取第一角度信息和第二角度信息之间的第一差值;当第一差值大于预设差值阈值,且第一差值对应的持续时间大于预设时间阈值时,判定摄像头角度发生偏移。上述方法中,设备直接获取角度信息,可以避免因为对三轴加速度数据的直接缩放而导致的精度缺失,提高了判断结果的准确性,并且,用户对于角度的感知要明显比对加速度的感知更清晰,便于手动矫正摄像机位置。In the embodiment of the present application, the first angle information corresponding to the first acceleration sensor is obtained; the first acceleration sensor is the acceleration sensor of the camera; the first angle information is the difference between the direction of the first acceleration information corresponding to the first acceleration sensor and the horizontal plane obtain the second angle information corresponding to the second acceleration sensor; the second acceleration sensor is the acceleration sensor of the network video recorder; the second angle information is the direction between the direction of the second acceleration information corresponding to the second acceleration sensor and the horizontal plane Included angle; obtain the first difference between the first angle information and the second angle information; when the first difference is greater than the preset difference threshold, and the duration corresponding to the first difference is greater than the preset time threshold, determine The camera angle is offset. In the above method, the device directly obtains the angle information, which can avoid the lack of precision caused by the direct scaling of the three-axis acceleration data, and improve the accuracy of the judgment result. Moreover, the user's perception of the angle is obviously better than the perception of the acceleration. Clear, easy to manually correct the camera position.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
请参见图2,图2是本申请第二实施例提供的摄像头角度偏移的监测装置的示意图。包括的各单元用于执行图1对应的实施例中的各步骤。具体请参阅图1对应的实施例中的相关描述。为了便于说明,仅示出了与本实施例相关的部分。参见图2,摄像头角度偏移的监测装置2包括:Please refer to FIG. 2. FIG. 2 is a schematic diagram of a monitoring device for camera angle shift provided by a second embodiment of the present application. The included units are used to execute the steps in the embodiment corresponding to FIG. 1 . For details, please refer to the relevant description in the embodiment corresponding to FIG. 1 . For convenience of explanation, only the parts related to this embodiment are shown. Referring to FIG. 2 , the
第一获取单元210,用于获取第一加速度传感器对应的第一角度信息;所述第一加速度传感器为摄像头的加速度传感器;所述第一角度信息为所述第一加速度传感器对应的第一加速度信息的方向与水平面之间的夹角;所述第一加速度信息为三轴加速度信息;The first obtaining
第二获取单元220,用于获取第二加速度传感器对应的第二角度信息;所述第二加速度传感器为网络录像机的加速度传感器;所述第二角度信息为所述第二加速度传感器对应的第二加速度信息的方向与水平面之间的夹角;所述第二加速度信息为三轴加速度信息;The second acquiring
第三获取单元230,用于获取所述第一角度信息和所述第二角度信息之间的第一差值;a third obtaining
第一处理单元240,用于当所述第一差值大于预设差值阈值,且所述第一差值对应的持续时间大于预设时间阈值时,判定所述摄像头角度发生偏移。The
进一步地,所述第一获取单元210,具体用于:Further, the first obtaining
获取第一加速度传感器对应的第一加速度信息;acquiring first acceleration information corresponding to the first acceleration sensor;
根据预设转换策略将所述第一加速度信息转换为第一角度信息。The first acceleration information is converted into first angle information according to a preset conversion strategy.
进一步地,所述第一获取单元210,具体用于:Further, the first obtaining
根据所述第一加速度信息和预设计算策略进行计算,得到第一角度相关参数;Calculate according to the first acceleration information and a preset calculation strategy to obtain a first angle-related parameter;
将所述第一角度相关参数转换为第三角度信息;所述第三角度信息为所述第一加速度信息对应的方向和合力加速度对应的方向之间的夹角;Converting the first angle-related parameter into third angle information; the third angle information is the angle between the direction corresponding to the first acceleration information and the direction corresponding to the resultant acceleration;
根据所述第三角度信息确定第一角度信息。The first angle information is determined according to the third angle information.
进一步地,所述第一获取单元210,具体用于:Further, the first obtaining
接收由所述摄像头发送的所述第一加速度传感器对应的第一角度信息。First angle information corresponding to the first acceleration sensor sent by the camera is received.
进一步地,所述第二获取单元220,具体用于:Further, the second obtaining
获取第二加速度传感器对应的第二加速度信息;acquiring second acceleration information corresponding to the second acceleration sensor;
根据预设转换策略将所述第二加速度信息转换为第二角度信息。The second acceleration information is converted into second angle information according to a preset conversion strategy.
进一步地,所述第二获取单元220,具体用于:Further, the second obtaining
根据所述第二加速度信息和预设计算策略进行计算,得到第二角度相关参数;Calculate according to the second acceleration information and a preset calculation strategy to obtain second angle-related parameters;
将所述第二角度相关参数转换为第四角度信息;所述第四角度信息为所述第二加速度信息对应的方向和合力加速度对应的方向之间的夹角;Converting the second angle-related parameter into fourth angle information; the fourth angle information is the angle between the direction corresponding to the second acceleration information and the direction corresponding to the resultant acceleration;
根据所述第四角度信息确定第二角度信息。The second angle information is determined according to the fourth angle information.
进一步地,所述摄像头角度偏移的监测装置2,还包括:Further, the
第四获取单元,用于获取静止状态下的所述第一加速度传感器对应的第一静止角度信息和所述第二加速度传感器对应的第二静止角度信息;a fourth acquisition unit, configured to acquire first static angle information corresponding to the first acceleration sensor and second static angle information corresponding to the second acceleration sensor in a static state;
第二处理单元,用于将所述第一静止角度信息和所述第二静止角度信息之间的差值作为预设差值阈值。The second processing unit is configured to use the difference between the first static angle information and the second static angle information as a preset difference threshold.
进一步地,所述摄像头角度偏移的监测装置2,还包括:Further, the
第三处理单元,用于生成摄像头角度偏移提醒信息;所述摄像头角度偏移提醒信息包括摄像头角度偏移状态信息、摄像头角度偏移原因、摄像头角度偏移矫正提示信息。The third processing unit is configured to generate camera angle offset reminder information; the camera angle offset reminder information includes camera angle offset status information, camera angle offset reasons, and camera angle offset correction prompt information.
图3是本申请第三实施例提供的摄像头角度偏移的监测设备的示意图。如图3所示,该实施例的摄像头角度偏移的监测设备3包括:处理器30、存储器31以及存储在所述存储器31中并可在所述处理器30上运行的计算机程序32,例如摄像头角度偏移的监测程序。所述处理器30执行所述计算机程序32时实现上述各个摄像头角度偏移的监测方法实施例中的步骤,例如图2所示的步骤101至106。或者,所述处理器30执行所述计算机程序32时实现上述各装置实施例中各模块/单元的功能,例如图3所示模块310至360的功能。FIG. 3 is a schematic diagram of a monitoring device for camera angle shift provided by a third embodiment of the present application. As shown in FIG. 3 , the
示例性的,所述计算机程序32可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器31中,并由所述处理器30执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序32在所述摄像头角度偏移的监测设备3中的执行过程。例如,所述计算机程序32可以被分割成第一获取单元、第二获取单元、第三获取单元、第一处理单元,各单元具体功能如下:Exemplarily, the
第一获取单元,用于获取第一加速度传感器对应的第一角度信息;所述第一加速度传感器为摄像头的加速度传感器;所述第一角度信息为所述第一加速度传感器对应的第一加速度信息的方向与水平面之间的夹角;所述第一加速度信息为三轴加速度信息;a first acquisition unit, configured to acquire first angle information corresponding to a first acceleration sensor; the first acceleration sensor is an acceleration sensor of a camera; the first angle information is first acceleration information corresponding to the first acceleration sensor The angle between the direction and the horizontal plane; the first acceleration information is triaxial acceleration information;
第二获取单元,用于获取第二加速度传感器对应的第二角度信息;所述第二加速度传感器为网络录像机的加速度传感器;所述第二角度信息为所述第二加速度传感器对应的第二加速度信息的方向与水平面之间的夹角;所述第二加速度信息为三轴加速度信息;The second acquiring unit is configured to acquire the second angle information corresponding to the second acceleration sensor; the second acceleration sensor is the acceleration sensor of the network video recorder; the second angle information is the second acceleration corresponding to the second acceleration sensor The angle between the direction of the information and the horizontal plane; the second acceleration information is triaxial acceleration information;
第三获取单元,用于获取所述第一角度信息和所述第二角度信息之间的第一差值;a third acquiring unit, configured to acquire the first difference between the first angle information and the second angle information;
第一处理单元,用于当所述第一差值大于预设差值阈值,且所述第一差值对应的持续时间大于预设时间阈值时,判定所述摄像头角度发生偏移。A first processing unit, configured to determine that the camera angle is shifted when the first difference is greater than a preset difference threshold and the duration corresponding to the first difference is greater than a preset time threshold.
所述摄像头角度偏移的监测设备可包括,但不仅限于,处理器30、存储器31。本领域技术人员可以理解,图3仅仅是摄像头角度偏移的监测设备3的示例,并不构成对摄像头角度偏移的监测设备3的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述摄像头角度偏移的监测设备还可以包括输入输出设备、网络接入设备、总线等。The monitoring device for the angle shift of the camera may include, but is not limited to, the
所称处理器30可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called
所述存储器31可以是所述摄像头角度偏移的监测设备3的内部存储单元,例如摄像头角度偏移的监测设备3的硬盘或内存。所述存储器31也可以是所述摄像头角度偏移的监测设备3的外部存储设备,例如所述摄像头角度偏移的监测设备3上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(FlashCard)等。进一步地,所述摄像头角度偏移的监测设备3还可以既包括所述摄像头角度偏移的监测设备3的内部存储单元也包括外部存储设备。所述存储器31用于存储所述计算机程序以及所述摄像头角度偏移的监测设备所需的其他程序和数据。所述存储器31还可以用于暂时地存储已经输出或者将要输出的数据。The
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information exchange, execution process and other contents between the above-mentioned devices/units are based on the same concept as the method embodiments of the present application. For specific functions and technical effects, please refer to the method embodiments section. It is not repeated here.
本申请实施例还提供了一种网络设备,该网络设备包括:至少一个处理器、存储器以及存储在所述存储器中并可在所述至少一个处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任意各个方法实施例中的步骤。An embodiment of the present application also provides a network device, the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor executing The computer program implements the steps in any of the foregoing method embodiments.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.
本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。The embodiments of the present application provide a computer program product, when the computer program product runs on a mobile terminal, the steps in the foregoing method embodiments can be implemented when the mobile terminal executes the computer program product.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the present application realizes all or part of the processes in the methods of the above embodiments, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When executed by a processor, the steps of each of the above method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the photographing device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electrical carrier signal, telecommunication signal, and software distribution medium. For example, U disk, mobile hard disk, disk or CD, etc. In some jurisdictions, under legislation and patent practice, computer readable media may not be electrical carrier signals and telecommunications signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize 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. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units. Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that: it can still be used for the above-mentioned implementations. The technical solutions described in the examples are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the application, and should be included in the within the scope of protection of this application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210815118.4A CN115235406A (en) | 2022-07-12 | 2022-07-12 | A method and device for monitoring the angle deviation of a camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210815118.4A CN115235406A (en) | 2022-07-12 | 2022-07-12 | A method and device for monitoring the angle deviation of a camera |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115235406A true CN115235406A (en) | 2022-10-25 |
Family
ID=83672483
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210815118.4A Pending CN115235406A (en) | 2022-07-12 | 2022-07-12 | A method and device for monitoring the angle deviation of a camera |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115235406A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0396617U (en) * | 1990-01-19 | 1991-10-03 | ||
TW201123005A (en) * | 2009-12-31 | 2011-07-01 | Univ Minghsin Sci & Tech | Motion monitoring system |
US8860818B1 (en) * | 2013-07-31 | 2014-10-14 | Apple Inc. | Method for dynamically calibrating rotation offset in a camera system |
JP2015204062A (en) * | 2014-04-16 | 2015-11-16 | 株式会社デンソー | Drive recorder and acceleration correction program in drive recorder |
CN109059895A (en) * | 2018-03-28 | 2018-12-21 | 南京航空航天大学 | A kind of multi-modal indoor ranging and localization method based on mobile phone camera and sensor |
AU2020101941A4 (en) * | 2020-08-22 | 2020-10-01 | Dr. Ashutosh Dixit | I-automobile: intelligent automobile with combination of camera, radar and radio frequency communication work together with sensor fusion. |
CN114593712A (en) * | 2022-01-25 | 2022-06-07 | 深圳大方智能科技有限公司 | Indoor top construction shaking detection method based on vision and automatic control method |
-
2022
- 2022-07-12 CN CN202210815118.4A patent/CN115235406A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0396617U (en) * | 1990-01-19 | 1991-10-03 | ||
TW201123005A (en) * | 2009-12-31 | 2011-07-01 | Univ Minghsin Sci & Tech | Motion monitoring system |
US8860818B1 (en) * | 2013-07-31 | 2014-10-14 | Apple Inc. | Method for dynamically calibrating rotation offset in a camera system |
JP2015204062A (en) * | 2014-04-16 | 2015-11-16 | 株式会社デンソー | Drive recorder and acceleration correction program in drive recorder |
CN109059895A (en) * | 2018-03-28 | 2018-12-21 | 南京航空航天大学 | A kind of multi-modal indoor ranging and localization method based on mobile phone camera and sensor |
AU2020101941A4 (en) * | 2020-08-22 | 2020-10-01 | Dr. Ashutosh Dixit | I-automobile: intelligent automobile with combination of camera, radar and radio frequency communication work together with sensor fusion. |
CN114593712A (en) * | 2022-01-25 | 2022-06-07 | 深圳大方智能科技有限公司 | Indoor top construction shaking detection method based on vision and automatic control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101740510B1 (en) | Method for dynamically calibrating rotation offset in a camera system | |
US9116001B2 (en) | Adaptive estimation of frame time stamp latency | |
TWI766282B (en) | Calibration method, electronic equipment and storage medium | |
CN102520858B (en) | Mobile terminal application control method and device | |
JP6098874B2 (en) | Imaging apparatus and image processing apparatus | |
TWI590645B (en) | Camera calibration | |
US20080068336A1 (en) | Input device and method and medium for providing movement information of the input device | |
JP2012213192A (en) | Sensor interface, and methods and apparatus pertaining to sensor interface | |
CN105571614B (en) | magnetic sensor calibration method and device | |
US11165960B2 (en) | Electronic device and method for processing image thereof | |
CN112590929A (en) | Correction method, apparatus, electronic device, and medium for steering wheel of autonomous vehicle | |
CN114063964B (en) | Volume compensation optimization method, device, electronic device and readable storage medium | |
CN115235406A (en) | A method and device for monitoring the angle deviation of a camera | |
CN114520899B (en) | Projection compensation method and device, storage medium and projection equipment | |
US20220086350A1 (en) | Image Generation Method and Apparatus, Terminal and Corresponding Storage Medium | |
CN110035231B (en) | Shooting method, device, equipment and medium | |
CN111750850B (en) | Angle information acquisition method, device and system | |
WO2014164618A1 (en) | Device and method for processing video content | |
CN111784661B (en) | Adjustment method, device, equipment and medium of transmission line detection equipment | |
US20150103191A1 (en) | Imaging apparatus and detecting apparatus | |
KR102703479B1 (en) | Apparatus for correcting information of image based distance measuring system and method thereof | |
CN115371700A (en) | Gyroscope drift data compensation method and device, storage medium and projection equipment | |
US12120427B1 (en) | Image processing method, and photographing device | |
US12164705B2 (en) | Dynamic gravity vector estimation for memory constrained devices | |
KR20120050182A (en) | Method and apparatus for correcting position |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |