CN105794198A - An image processing method, related device, processor and system - Google Patents
An image processing method, related device, processor and system Download PDFInfo
- Publication number
- CN105794198A CN105794198A CN201580002806.7A CN201580002806A CN105794198A CN 105794198 A CN105794198 A CN 105794198A CN 201580002806 A CN201580002806 A CN 201580002806A CN 105794198 A CN105794198 A CN 105794198A
- Authority
- CN
- China
- Prior art keywords
- imaging device
- rotation angle
- rotation
- position state
- angle information
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本发明涉及图像处理技术领域,尤其涉及一种图像处理方法、相关装置、处理器及系统。The present invention relates to the technical field of image processing, in particular to an image processing method, a related device, a processor and a system.
背景技术Background technique
在数码相机或摄像机等成像装置进行录像、拍照的过程中,成像装置如果被反向放置或者成一定角度放置时,其拍摄产生的图像同样会以反向或者一定角度倾斜的图像形式存储、以及显示,具体如图1至图3所示,用户需要经过后期的旋转处理才能够得到正常图像,操作繁琐。In the process of video recording and photographing by imaging devices such as digital cameras or video cameras, if the imaging device is placed upside down or placed at a certain angle, the images generated by the shooting will also be stored in the form of images that are reversed or tilted at a certain angle, and Display, specifically as shown in Figures 1 to 3, users need to go through post-rotation processing to obtain a normal image, and the operation is cumbersome.
发明内容Contents of the invention
本发明实施例提供了一种图像处理方法、相关装置、处理器及系统,可自动化、智能化地在图像采集过程中对图像进行旋转处理。Embodiments of the present invention provide an image processing method, a related device, a processor, and a system, which can automatically and intelligently perform image rotation processing during image acquisition.
一方面,本发明实施例提供了一种图像处理方法,包括:On the one hand, an embodiment of the present invention provides an image processing method, including:
当采集到图像时,确定出用于拍摄所述图像的成像装置的位置状态;When the image is captured, determine the position state of the imaging device used to capture the image;
若所述位置状态为表示所述成像装置处于旋转后的旋转位置状态,则按照预置的旋转规则对所述采集到的图像执行旋转操作;If the position state is a rotated position state indicating that the imaging device is in a rotated state, performing a rotation operation on the captured image according to a preset rotation rule;
输出执行了所述旋转操作后的图像。An image after performing the rotation operation is output.
另一方面,本发明实施例还提供了另一种图像处理方法,包括:On the other hand, the embodiment of the present invention also provides another image processing method, including:
当采集到图像时,发送询问请求,所述询问请求用于请求获取用于拍摄所述图像的成像装置的位置状态是否为旋转位置状态;When an image is captured, an inquiry request is sent, and the inquiry request is used to request whether the position state of the imaging device used to capture the image is a rotational position state;
若接收到响应所述询问请求的确认信息,则按照预置的旋转规则对所述采集到的图像执行旋转操作,所述确认信息用于确定所述图像的成像装置处于旋转位置状态;If confirmation information in response to the query request is received, perform a rotation operation on the captured image according to a preset rotation rule, and the confirmation information is used to determine that the imaging device of the image is in a state of rotating position;
输出执行了所述旋转操作后的图像。An image after performing the rotation operation is output.
第三方面,本发明实施例还提供了再一种图像处理方法,包括:In the third aspect, the embodiment of the present invention also provides another image processing method, including:
接收询问请求,所述询问请求用于请求在图像拍摄时所述图像的成像装置的位置状态是否为旋转位置状态;receiving an inquiry request, the inquiry request is used to request whether the position state of the imaging device of the image is a rotational position state when the image is captured;
获取所述成像装置的位置状态;Acquiring the position state of the imaging device;
在所述位置状态为表示所述成像装置处于旋转后的旋转位置状态,响应所述询问请求返回确认信息,以对所述成像装置拍摄的图像进行旋转操作。The position state is a rotated position state indicating that the imaging device is rotated, and confirmation information is returned in response to the inquiry request, so as to perform a rotation operation on the image captured by the imaging device.
第四方面,本发明实施例还提供了一种图像处理装置,包括:In a fourth aspect, an embodiment of the present invention further provides an image processing device, including:
确定模块,用于当采集到图像时,确定出用于拍摄所述图像的成像装置的位置状态;A determination module, configured to determine the position state of the imaging device used to capture the image when the image is captured;
处理模块,用于若所述位置状态为表示所述成像装置处于旋转后的旋转位置状态,则按照预置的旋转规则对所述采集到的图像执行旋转操作;A processing module, configured to perform a rotation operation on the captured image according to a preset rotation rule if the position state is a rotated position state indicating that the imaging device is rotated;
输出模块,用于输出执行了所述旋转操作后的图像。An output module, configured to output the image after the rotation operation is performed.
第五方面,本发明实施例还提供了一种成像装置,包括:摄像镜头、光学传感器、以及处理器,其中:In a fifth aspect, an embodiment of the present invention further provides an imaging device, including: a camera lens, an optical sensor, and a processor, wherein:
所述处理器,用于当通过所述摄像镜头和所述光学传感器采集到图像时,确定出本成像装置的位置状态;若所述位置状态为表示本成像装置处于旋转后的旋转位置状态,则按照预置的旋转规则对所述采集到的图像执行旋转操作;输出执行了所述旋转操作后的图像。The processor is configured to determine the position state of the imaging device when the image is collected by the camera lens and the optical sensor; if the position state is a rotation position state indicating that the imaging device is in a rotated state, Then perform a rotation operation on the captured image according to a preset rotation rule; and output the image after the rotation operation has been performed.
第六方面,本发明实施例还提供了一种图像处理装置,包括:In a sixth aspect, an embodiment of the present invention further provides an image processing device, including:
请求模块,用于当采集到图像时,发送询问请求,所述询问请求用于请求获取用于拍摄所述图像的成像装置的位置状态是否为旋转位置状态;The request module is configured to send an inquiry request when the image is captured, and the inquiry request is used to request whether the position state of the imaging device used to capture the image is a rotational position state;
旋转模块,用于若接收到响应所述询问请求的确认信息,则按照预置的旋转规则对所述采集到的图像执行旋转操作,所述确认信息用于确定所述图像的成像装置处于旋转位置状态;A rotation module, configured to perform a rotation operation on the captured image according to a preset rotation rule if confirmation information in response to the query request is received, the confirmation information is used to determine that the imaging device of the image is in rotation location status;
输出模块,用于输出执行了所述旋转操作后的图像。An output module, configured to output the image after the rotation operation is performed.
第七方面,本发明实施例还提供了一种处理器,所述处理器用于当采集到图像时,发送询问请求,所述询问请求用于请求获取用于拍摄所述图像的成像装置的位置状态是否为旋转位置状态;若接收到响应所述询问请求的确认信息,则按照预置的旋转规则对所述采集到的图像执行旋转操作,所述确认信息用于确定所述图像的成像装置处于旋转位置状态;输出执行了所述旋转操作后的图像。In the seventh aspect, the embodiment of the present invention further provides a processor, the processor is configured to send an inquiry request when an image is captured, and the inquiry request is used to request to obtain the location of the imaging device used to capture the image Whether the state is the state of rotating position; if the confirmation information in response to the query request is received, perform the rotation operation on the captured image according to the preset rotation rules, and the confirmation information is used to determine the imaging device of the image In the rotated position state; output the image after performing the rotated operation.
第八方面,本发明实施例还提供了一种图像处理装置,包括:In an eighth aspect, an embodiment of the present invention further provides an image processing device, including:
接收模块,用于接收询问请求,所述询问请求用于请求在图像拍摄时所述图像的成像装置的位置状态是否为旋转位置状态;The receiving module is used to receive an inquiry request, and the inquiry request is used to request whether the position state of the imaging device of the image is a rotational position state when the image is captured;
获取模块,用于获取所监控的所述成像装置的位置状态;an acquisition module, configured to acquire the monitored position status of the imaging device;
响应模块,用于在所述位置状态为表示所述成像装置处于旋转后的旋转位置状态时,响应所述询问请求返回确认信息,以对所述成像装置拍摄的图像进行旋转操作。A response module, configured to return confirmation information in response to the query request when the position state is a rotated position state indicating that the imaging device is rotated, so as to perform a rotation operation on the image captured by the imaging device.
第九方面,本发明实施例还提供了一种处理器,所述处理器用于接收询问请求,所述询问请求用于请求在图像拍摄时所述图像的成像装置的位置状态是否为旋转位置状态;获取所述成像装置的位置状态;在所述位置状态为表示所述成像装置处于旋转后的旋转位置状态,响应所述询问请求返回确认信息,以对所述成像装置拍摄的图像进行旋转操作。In the ninth aspect, the embodiment of the present invention further provides a processor, the processor is configured to receive an inquiry request, and the inquiry request is used to request whether the position state of the imaging device of the image is a rotational position state when the image is captured ; Obtain the position status of the imaging device; the position status indicates that the imaging device is in a rotated position status after rotation, and return confirmation information in response to the query request, so as to perform a rotation operation on the image captured by the imaging device .
第十方面,本发明实施例还提供了一种图像处理系统,包括:成像装置和用于支撑该成像装置的支撑设备,所述成像装置和所述支撑设备数据相连,所述成像装置包括处理器,所述支撑设备包括用于感测支撑设备旋转的传感器;其中,In a tenth aspect, an embodiment of the present invention further provides an image processing system, including: an imaging device and a support device for supporting the imaging device, the imaging device is connected to the support device in data, and the imaging device includes a processing device, the support device includes a sensor for sensing the rotation of the support device; wherein,
所述处理器,用于当采集到图像时,根据所述支撑设备的旋转角度信息确定出所述成像装置的位置状态;若所述位置状态为表示所述成像装置处于旋转后的旋转位置状态,则按照预置的旋转规则对所述采集到的图像执行旋转操作;输出执行了所述旋转操作后的图像。The processor is configured to determine the position state of the imaging device according to the rotation angle information of the support device when the image is collected; if the position state is a rotation position state indicating that the imaging device is in a rotated , perform a rotation operation on the acquired image according to a preset rotation rule; and output the image after the rotation operation is performed.
第十一方面,本发明实施例还提供了一种图像处理系统,包括:成像装置和用于支撑该成像装置的移动物体,所述成像装置和所述移动物体数据相连,所述成像装置包括处理器,所述移动物体包括用于感测移动物体旋转的传感器;其中,In the eleventh aspect, the embodiment of the present invention also provides an image processing system, including: an imaging device and a moving object for supporting the imaging device, the imaging device is connected to the moving object data, and the imaging device includes a processor, the moving object includes a sensor for sensing rotation of the moving object; wherein,
所述处理器,用于当采集到图像时,根据所述移动物体的旋转角度信息确定出所述成像装置的位置状态;若所述位置状态为表示所述成像装置处于旋转后的旋转位置状态,则按照预置的旋转规则对所述采集到的图像执行旋转操作;输出执行了所述旋转操作后的图像。The processor is configured to determine the position state of the imaging device according to the rotation angle information of the moving object when the image is collected; if the position state is a rotation position state indicating that the imaging device is in a rotated , perform a rotation operation on the acquired image according to a preset rotation rule; and output the image after the rotation operation is performed.
本发明实施例可以根据成像装置的旋转状态来对其拍摄到的图像进行旋转,满足用户对图像旋转的自动化智能化需求,并且实现成本较低。The embodiment of the present invention can rotate the image captured by the imaging device according to the rotation state of the imaging device, so as to meet the user's demand for automatic and intelligent image rotation, and the implementation cost is low.
附图说明Description of drawings
图1是成像装置正常位置状态是拍摄得到的图像;Fig. 1 is the image obtained when the normal position state of the imaging device is taken;
图2是成像装置旋转90度后拍摄得到的图像;Fig. 2 is the image obtained after the imaging device is rotated 90 degrees;
图3是成像装置旋转180度后拍摄得到的图像;Fig. 3 is the image obtained after the imaging device is rotated 180 degrees;
图4是本发明的图像处理方法的第一实施例流程示意图;Fig. 4 is a schematic flow chart of the first embodiment of the image processing method of the present invention;
图5是本发明的图像处理方法的第二实施例流程示意图;Fig. 5 is a schematic flow chart of the second embodiment of the image processing method of the present invention;
图6是本发明的图像处理方法的第三实施例流程示意图;Fig. 6 is a schematic flow chart of the third embodiment of the image processing method of the present invention;
图7是本发明实施例的一种检测位置状态是否为旋转位置状态的方法的流程示意图;Fig. 7 is a schematic flowchart of a method for detecting whether a position state is a rotational position state according to an embodiment of the present invention;
图8是本发明实施例的另一种检测位置状态是否为旋转位置状态的方法的流程示意图;Fig. 8 is a schematic flowchart of another method for detecting whether the position state is a rotation position state according to an embodiment of the present invention;
图9是本发明实施例的再一种检测位置状态是否为旋转位置状态的方法的流程示意图;Fig. 9 is a schematic flowchart of another method for detecting whether the position state is a rotation position state according to an embodiment of the present invention;
图10是本发明的图像处理方法的第四实施例流程示意图;FIG. 10 is a schematic flowchart of a fourth embodiment of the image processing method of the present invention;
图11是本发明的图像处理方法的第五实施例流程示意图;Fig. 11 is a schematic flow chart of the fifth embodiment of the image processing method of the present invention;
图12是本发明实施例的一种图像处理装置的结构示意图;FIG. 12 is a schematic structural diagram of an image processing device according to an embodiment of the present invention;
图13是本发明实施例的一种成像装置的结构示意图;FIG. 13 is a schematic structural diagram of an imaging device according to an embodiment of the present invention;
图14是本发明实施例的另一种图像处理装置的结构示意图;FIG. 14 is a schematic structural diagram of another image processing device according to an embodiment of the present invention;
图15是本发明实施例的再一种图像处理装置的结构示意图;FIG. 15 is a schematic structural diagram of another image processing device according to an embodiment of the present invention;
图16是本发明实施例的其中一种成像系统的结构示意图;Fig. 16 is a schematic structural diagram of one of the imaging systems of the embodiment of the present invention;
图17是本发明实施例的一种图像处理系统的结构示意图;Fig. 17 is a schematic structural diagram of an image processing system according to an embodiment of the present invention;
图18是本发明实施例的一种图像处理系统的结构示意图。Fig. 18 is a schematic structural diagram of an image processing system according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明实施例能够检测用于拍摄图像的成像装置是否发生旋转来对拍摄到的图像进行旋转,以便能够存储或显示正常的图像,在检测成像装置是否发生旋转时,可以对挂载所述成像装置的云台或支架等支撑设备进行检测,若支撑设备发生旋转,则可以对应地确定所述成像装置也发生了旋转;也可以对挂载所述成像装置的移动物体(如无人飞行器UAV)进行检测,通过判断移动物体是否发生翻转等操作来确定成像装置是否发生了旋转。The embodiment of the present invention can detect whether the imaging device used to capture the image rotates to rotate the captured image so that normal images can be stored or displayed. When detecting whether the imaging device rotates, the mounted imaging device can be mounted. The support equipment such as the cloud platform of device or bracket detects, and if support equipment rotates, then can determine that described imaging device has also rotated correspondingly; It is also possible to mount the mobile object of described imaging device (as unmanned aerial vehicle UAV) ) to detect whether the imaging device has rotated by judging whether the moving object has turned over or not.
具体的,请参见图4,是本发明的图像处理方法的第一实施例流程示意图,本发明实施例的所述方法可以由照相机、摄像机等成像装置中的处理器执行,图像处理具体包括对拍摄的图片或视频等图像进行旋转操作,以便于以正常的显示方式(拍摄对象的上部在显示终端的上部显示)来存储或显示拍摄到的图像,具体的,所述方法包括:Specifically, please refer to FIG. 4 , which is a schematic flow chart of the first embodiment of the image processing method of the present invention. The method in the embodiment of the present invention can be executed by a processor in an imaging device such as a camera or a video camera. The image processing specifically includes processing Images such as photographed pictures or videos are rotated so as to store or display the photographed images in a normal display mode (the upper part of the photographed object is displayed on the upper part of the display terminal). Specifically, the method includes:
S101:当采集到图像时,确定出用于拍摄所述图像的成像装置的位置状态。S101: When an image is captured, determine a position state of an imaging device used to capture the image.
在照相机、摄像机等成像装置拍取照片或视频等图像时,即执行本发明实施例的图像处理方法。When an imaging device such as a camera or a video camera captures images such as photos or videos, the image processing method of the embodiment of the present invention is executed.
所述位置状态具体可以是从支撑设备或者移动物体中的传感器(如加速度计或陀螺仪)中获取的相关的旋转角度信息,该旋转角度信息包括对应的支撑设备或移动物体已旋转的角度和方向。所述位置状态也可以是从其他处理器中获取的一条用于指示支撑设备或移动物体已发生旋转的指示消息,该其他处理器则是在对从支撑设备或者移动物体中的传感器中获取的相关的旋转角度信息进行分析处理后,确定出所述指示消息的。The position state may specifically be related rotation angle information obtained from a sensor (such as an accelerometer or a gyroscope) in the support device or the moving object, and the rotation angle information includes the angle and angle at which the corresponding support device or the moving object has rotated. direction. The position status may also be an indication message obtained from other processors to indicate that the supporting device or the moving object has rotated, and the other processor is obtained from a sensor in the supporting device or the moving object. After the relevant rotation angle information is analyzed and processed, the indication message is determined.
检测旋转的传感器具体可以包括加速度计、陀螺仪等。传感器可以根据支撑设备或移动物体的相关轴向与重力方向的夹角来确定对应的成像装置的位置状态,或者根据重力传感器检测到的重力加速度的数值来确定位置状态,例如,如果检测到支撑设备或移动物体的重力加速度值为-g(g指重力加速度),则可以确定支撑设备或移动物体发生了180度翻转。The sensor for detecting rotation may specifically include an accelerometer, a gyroscope, and the like. The sensor can determine the position state of the corresponding imaging device according to the angle between the relative axis of the supporting device or the moving object and the direction of gravity, or determine the position state according to the value of the acceleration of gravity detected by the gravity sensor, for example, if a support is detected If the gravitational acceleration value of the device or the moving object is -g (g refers to the gravitational acceleration), it can be determined that the supporting device or the moving object has turned 180 degrees.
对于用于确认所述位置状态的关联信息(如上述的旋转角度信息),可以是在采集到图像时,主动去如重力传感器等传感器中获取的;也可以是根据需要周期性或实时地从传感器中获取的,以便于在采集到的图像时能够及时地确定成像装置的位置状态。当然也可以是各个传感器在检测到旋转时(感测的数据发生变化)主动推送的。For the associated information (such as the above-mentioned rotation angle information) used to confirm the position state, it can be actively obtained from sensors such as gravity sensors when the image is collected; it can also be obtained periodically or in real time as needed. It is obtained from the sensor, so that the position and state of the imaging device can be determined in time when the image is collected. Of course, it can also be actively pushed by each sensor when rotation is detected (sensed data changes).
S102:若所述位置状态为表示所述成像装置处于旋转后的旋转位置状态,则按照预置的旋转规则对所述采集到的图像执行旋转操作。S102: If the position state is a rotated position state indicating that the imaging device is rotated, perform a rotation operation on the captured image according to a preset rotation rule.
只要检测到支撑设备或移动物体发生旋转,则可确定所述成像装置发生旋转,需要对拍摄到的图像执行旋转操作。特别是在检测到成像装置发生了90度、180度旋转时,需要按照旋转规则将拍摄到的图像朝向旋转的反方向对应旋转90度、180度,或者按照旋转规则朝旋转方向将图像旋转270度、180度,使图像的上半部分在显示设备的上半部分显示,显示设备的下半部分对应显示图像的下半部分。As long as it is detected that the support device or the moving object rotates, it can be determined that the imaging device is rotated, and a rotation operation needs to be performed on the captured image. Especially when it is detected that the imaging device has been rotated by 90 degrees or 180 degrees, it is necessary to rotate the captured image by 90 degrees or 180 degrees in the opposite direction of rotation according to the rotation rules, or rotate the image by 270 degrees in the direction of rotation according to the rotation rules degrees, 180 degrees, so that the upper half of the image is displayed on the upper half of the display device, and the lower half of the display device corresponds to the lower half of the displayed image.
在执行所述S101或者所述S102之前,还可以先判断用户是否选择了控制图像自动旋转的旋转操作功能,如果选择了,即执行所述S101或所述S102,否则并不执行所述S101或所述S102,以满足用户不同的需求。Before executing the above S101 or the above S102, it is also possible to first determine whether the user has selected the rotation operation function to control the automatic rotation of the image, and if so, execute the above S101 or the above S102; The S102 is to meet different needs of users.
具体的,检测所述位置状态是否为表示所述成像装置处于旋转后的旋转位置状态可参考图7至图9对应实施例中的描述。Specifically, for detecting whether the position state is a rotational position state indicating that the imaging device is in a rotated position, reference may be made to the descriptions in the embodiments corresponding to FIG. 7 to FIG. 9 .
S103:输出执行了所述旋转操作后的图像。S103: Output the image after the rotation operation is performed.
输出执行了旋转操作后的图像,以便于在存储器中存储旋转后的图像或在显示器中显示旋转后的图像。The rotated image is outputted so as to store the rotated image in a memory or display the rotated image on a display.
可以理解的是,当所述采集到的图像为一张或者多张图片时,执行的旋转操作将每一张图片进行旋转;当所述采集到的图像为视频时,执行的旋转操作将视频中每一帧进行旋转,以使整个视频发生旋转。It can be understood that, when the captured image is one or more pictures, the rotation operation performed rotates each picture; when the captured image is a video, the rotation operation performed rotates the video Rotate every frame in , so that the entire video rotates.
本发明实施例可以根据成像装置的旋转状态来对其拍摄到的图像进行旋转,满足用户对图像旋转的自动化智能化需求,并且实现成本较低。The embodiment of the present invention can rotate the image captured by the imaging device according to the rotation state of the imaging device, so as to meet the user's demand for automatic and intelligent image rotation, and the implementation cost is low.
再请参见图5,是本发明的图像处理方法的第二实施例流程示意图,本发明实施例的所述方法可以由照相机、摄像机等成像装置中的处理器执行,图像处理具体包括对拍摄的图片或视频等图像进行旋转操作,以便于以正常的显示方式(拍摄对象所对应图像的上部在显示终端的上部显示)来存储或显示拍摄到的图像,具体的,所述方法包括:Please refer to FIG. 5 again, which is a schematic flow chart of the second embodiment of the image processing method of the present invention. The method in the embodiment of the present invention can be executed by a processor in an imaging device such as a camera or a video camera. Images such as pictures or videos are rotated so as to store or display the captured images in a normal display mode (the upper part of the image corresponding to the shooting object is displayed on the upper part of the display terminal). Specifically, the method includes:
S201:判断自动旋转操作功能是否被开启。S201: Determine whether the automatic rotation operation function is turned on.
可以提供机械按键或者应用程序APP按钮给用户,当用户希望进行图像自动旋转时,点击触发机械按钮或APP按钮的方式开启该旋转操作功能。A mechanical button or an APP button can be provided to the user. When the user wants to automatically rotate the image, the user can click to trigger the mechanical button or the APP button to start the rotation operation function.
在执行图像自动旋转之前,检测相关功能是否开启,若开启则执行下述的S202,否则,结束。Before performing automatic image rotation, it is detected whether the relevant function is enabled, and if enabled, the following S202 is executed, otherwise, the process ends.
S202:当采集到图像时,确定出用于拍摄所述图像的成像装置的位置状态。S202: When an image is captured, determine a position state of an imaging device used to capture the image.
所述位置状态是否为旋转位置状态是根据挂载所述成像装置的支撑设备的旋转角度信息、或者挂载所述成像装置的移动物体的旋转角度信息、或者所述成像装置的旋转角度信息确定的。Whether the position state is a rotation position state is determined according to the rotation angle information of the supporting device on which the imaging device is mounted, or the rotation angle information of the moving object on which the imaging device is mounted, or the rotation angle information of the imaging device of.
S203:若所述位置状态为表示所述成像装置处于旋转后的旋转位置状态,则按照预置的旋转规则对所述采集到的图像执行旋转操作。S203: If the position state is a rotated position state indicating that the imaging device is rotated, perform a rotation operation on the captured image according to a preset rotation rule.
所述的旋转规则包括按照旋转位置状态中所指示的旋转角度和方向,反向旋转图像;或者按照旋转位置状态中所指示的旋转角度和方向,朝该指示的方向上旋转图像,保证图像的旋转角度和旋转位置状态中所指示的旋转角度之和为360度即可。The rotation rule includes rotating the image in the opposite direction according to the rotation angle and direction indicated in the rotation position state; or rotating the image in the indicated direction according to the rotation angle and direction indicated in the rotation position state to ensure that the image is It is sufficient that the sum of the rotation angle and the rotation angle indicated in the rotation position state is 360 degrees.
例如,当确定成像装置逆时针旋转了90度,则将图像顺时针旋转90度,或者将图像逆时针旋转270度。For example, when it is determined that the imaging device has rotated 90 degrees counterclockwise, the image is rotated 90 degrees clockwise, or the image is rotated 270 degrees counterclockwise.
S204:输出执行了所述旋转操作后的图像。S204: Output the image after the rotation operation is performed.
具体的,所述S202至S204的具体描述可参考图4对应实施例的描述。Specifically, for the specific description of S202 to S204, reference may be made to the description of the corresponding embodiment in FIG. 4 .
S205:存储执行所述旋转操作后的图像、或显示执行所述旋转操作后的图像。S205: Store the image after the rotation operation is performed, or display the image after the rotation operation is performed.
本发明实施例可以根据成像装置的旋转状态来对其拍摄到的图像进行旋转,满足用户对图像旋转的自动化智能化需求,实现成本较低,并且还能够根据用户的功能需求进行功能的开启和关闭,满足用户的不同需求。The embodiment of the present invention can rotate the image captured by the imaging device according to the rotation state of the imaging device, which meets the user's needs for automatic and intelligent image rotation, and the implementation cost is low. Closed to meet the different needs of users.
再请参见图6,是本发明的图像处理方法的第三实施例流程示意图,本发明实施例的所述方法可以由照相机、摄像机等成像装置中的处理器执行,图像处理具体包括对拍摄的图片或视频等图像进行旋转操作,以便于以正常的显示方式(拍摄对象的上部在显示终端的上部显示)来存储或显示拍摄到的图像,具体的,所述方法包括:Please refer to FIG. 6 again, which is a schematic flow chart of the third embodiment of the image processing method of the present invention. The method in the embodiment of the present invention can be executed by a processor in an imaging device such as a camera or a video camera. Images such as pictures or videos are rotated so as to store or display the captured images in a normal display mode (the upper part of the subject is displayed on the upper part of the display terminal). Specifically, the method includes:
S301:当采集到图像时,确定出用于拍摄所述图像的成像装置的位置状态。S301: When an image is captured, determine a position state of an imaging device used to capture the image.
所述位置状态是否为旋转位置状态是根据挂载所述成像装置的支撑设备的旋转角度信息、或者挂载所述成像装置的移动物体的旋转角度信息、或者所述成像装置的旋转角度信息确定的。Whether the position state is a rotation position state is determined according to the rotation angle information of the supporting device on which the imaging device is mounted, or the rotation angle information of the moving object on which the imaging device is mounted, or the rotation angle information of the imaging device of.
S302:若所述位置状态为表示所述成像装置处于旋转后的旋转位置状态,判断自动旋转操作功能是否被开启。S302: If the position status is a rotation position status indicating that the imaging device is rotated, determine whether the automatic rotation operation function is turned on.
可以提供机械按键或者应用程序APP按钮给用户,当用户希望进行图像自动旋转时,点击触发机械按钮或APP按钮的方式开启该旋转操作功能。A mechanical button or an APP button can be provided to the user. When the user wants to automatically rotate the image, the user can click to trigger the mechanical button or the APP button to start the rotation operation function.
在执行图像自动旋转之前,检测相关功能是否开启,若开启则执行下述的S303,否则,结束。Before performing automatic image rotation, it is detected whether the relevant function is enabled, and if enabled, the following S303 is executed, otherwise, the process ends.
S303:按照预置的旋转规则对所述采集到的图像执行旋转操作。S303: Perform a rotation operation on the acquired image according to a preset rotation rule.
所述的旋转规则包括按照旋转位置状态中所指示的旋转角度和方向,反向旋转图像;或者按照旋转位置状态中所指示的旋转角度和方向,朝该指示的方向上旋转图像,保证图像的旋转角度和旋转位置状态中所指示的旋转角度之和为360度即可。The rotation rule includes rotating the image in the opposite direction according to the rotation angle and direction indicated in the rotation position state; or rotating the image in the indicated direction according to the rotation angle and direction indicated in the rotation position state to ensure that the image is It is sufficient that the sum of the rotation angle and the rotation angle indicated in the rotation position state is 360 degrees.
例如,当确定成像装置逆时针旋转了90度,则将图像顺时针旋转90度,或者将图像逆时针旋转270度。For example, when it is determined that the imaging device has rotated 90 degrees counterclockwise, the image is rotated 90 degrees clockwise, or the image is rotated 270 degrees counterclockwise.
S304:输出执行了所述旋转操作后的图像。S304: Output the image after the rotation operation is performed.
具体的,所述S301至S304的具体描述可参考图4对应实施例的描述。Specifically, for the specific description of S301 to S304, reference may be made to the description of the corresponding embodiment in FIG. 4 .
S305:存储执行所述旋转操作后的图像、或显示执行所述旋转操作后的图像。S305: Store the image after the rotation operation is performed, or display the image after the rotation operation is performed.
本发明实施例可以根据成像装置的旋转状态来对其拍摄到的图像进行旋转,满足用户对图像旋转的自动化智能化需求,实现成本较低,并且还能够根据用户的功能需求进行功能的开启和关闭,满足用户的不同需求。The embodiment of the present invention can rotate the image captured by the imaging device according to the rotation state of the imaging device, which meets the user's needs for automatic and intelligent image rotation, and the implementation cost is low. Closed to meet the different needs of users.
本发明实施例检测位置状态是否为旋转位置状态的方法包括多种,具体可以通过检测成像装置的支撑设备、移动物体以及成像装置本身来确定成像装置是否处于旋转位置状态,可以分别基于支撑设备、移动物体以及成像装置来确定,也可以基于这三者中的任意两种或三种的组合,来综合确定成像装置的位置状态是否为旋转位置状态。具体请参考下述的图7至图9对应实施例中的相关描述。In the embodiment of the present invention, there are various methods for detecting whether the position state is a rotating position state. Specifically, whether the imaging device is in a rotating position state can be determined by detecting the supporting equipment of the imaging device, the moving object, and the imaging device itself. Whether the position state of the imaging device is a rotational position state can also be comprehensively determined based on any two or a combination of the three. For details, please refer to the relevant descriptions in the following embodiments corresponding to FIG. 7 to FIG. 9 .
再请参见图7,是本发明实施例的一种检测位置状态是否为旋转位置状态的方法的流程示意图,所述方法包括:Please refer to FIG. 7 again, which is a schematic flowchart of a method for detecting whether the position state is a rotational position state according to an embodiment of the present invention, the method comprising:
S401:获取用于挂载所述成像装置的支撑设备的旋转角度信息;S401: Obtain rotation angle information of a support device used to mount the imaging device;
S402:若获取到的支撑设备的旋转角度信息达到预设的第一角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。S402: If the acquired rotation angle information of the support device reaches a preset first angle threshold, determine the position state of the imaging device as a rotated position state indicating that the imaging device is in a rotated state.
其中,所述S401包括:从挂载所述成像装置的支撑设备中配置的旋转角度传感器中获取所述支撑设备的旋转角度信息;或者从外置于所述成像装置的支撑设备并用于检测所述支撑设备的旋转角度传感器中获取所述支撑设备的旋转角度信息。Wherein, the S401 includes: obtaining the rotation angle information of the support device from the rotation angle sensor configured in the support device on which the imaging device is mounted; Obtain the rotation angle information of the support device from the rotation angle sensor of the support device.
所述第一角度阈值可以配置为90度,当支撑设备正常竖直放置时所对应的竖直轴与重力传感器的重力方向的夹角达到90度时,即可确定所述成像装置处于旋转后的旋转位置状态。The first angle threshold can be configured as 90 degrees. When the angle between the vertical axis corresponding to the supporting device and the gravity direction of the gravity sensor reaches 90 degrees, it can be determined that the imaging device is rotated. The rotation position status of .
本发明实施例能够有效地对与成像装置相连的支撑设备进行监控,从而确定成像装置的旋转情况,满足了用户对实现图像旋转的自动化、智能化需求,软硬件成本较低。The embodiments of the present invention can effectively monitor the supporting equipment connected to the imaging device, thereby determining the rotation of the imaging device, satisfying the user's requirements for automatic and intelligent image rotation, and the cost of software and hardware is relatively low.
再请参见图8,是本发明实施例的另一种检测位置状态是否为旋转位置状态的方法的流程示意图,所述方法包括:Please refer to FIG. 8 again, which is a schematic flow chart of another method for detecting whether the position state is a rotation position state according to an embodiment of the present invention. The method includes:
S501:获取用于挂载所述成像装置的移动物体的旋转角度信息;S501: Obtain rotation angle information of a moving object used to mount the imaging device;
S502:若获取到的移动物体的旋转角度信息达到预设的第二角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。S502: If the acquired rotation angle information of the moving object reaches a preset second angle threshold, determine the position state of the imaging device as a rotated position state indicating that the imaging device is in a rotated position.
所述S501具体可以包括:从挂载所述成像装置的移动物体中配置的旋转角度传感器中获取所述移动物体的旋转角度信息;或者从外置于所述成像装置的移动物体并用于检测所述移动物体的旋转角度传感器中获取所述移动物体的旋转角度信息。The S501 may specifically include: acquiring the rotation angle information of the moving object from a rotation angle sensor configured in the moving object mounted with the imaging device; Obtain the rotation angle information of the moving object from the rotation angle sensor of the moving object.
所述第二角度阈值可以配置为90度,当移动物体正常竖直放置时所对应的竖直轴与重力传感器的重力方向的夹角达到90度时,即可确定所述成像装置处于旋转后的旋转位置状态。The second angle threshold can be configured as 90 degrees. When the angle between the vertical axis corresponding to the moving object and the gravity direction of the gravity sensor reaches 90 degrees when the moving object is normally placed vertically, it can be determined that the imaging device is rotated. The rotation position status of .
本发明实施例能够有效地对与成像装置相连的移动物体进行监控,从而确定成像装置的旋转情况,满足了用户对实现图像旋转的自动化、智能化需求,软硬件成本较低。The embodiments of the present invention can effectively monitor the moving object connected to the imaging device, thereby determining the rotation of the imaging device, satisfying the user's requirements for automatic and intelligent image rotation, and the cost of software and hardware is low.
再请参见图9,是本发明实施例的再一种检测位置状态是否为旋转位置状态的方法的流程示意图,所述方法包括:Please refer to FIG. 9 again, which is a schematic flow chart of another method for detecting whether the position state is a rotation position state according to an embodiment of the present invention. The method includes:
S601:获取所述成像装置的旋转角度信息;S601: Obtain rotation angle information of the imaging device;
S602:若获取到的所述成像装置的旋转角度信息达到预设的第三角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。S602: If the acquired rotation angle information of the imaging device reaches a preset third angle threshold, determine the position state of the imaging device as a rotation position state indicating that the imaging device is in a rotated state.
所述S601具体可以包括:从配置在所述成像装置中的旋转角度传感器中获取所述成像装置的旋转角度信息;或者从外置于所述成像装置并用于检测所述成像装置的旋转角度信息的旋转角度传感器中获取所述成像装置的旋转角度信息。The S601 may specifically include: obtaining the rotation angle information of the imaging device from a rotation angle sensor configured in the imaging device; Obtain the rotation angle information of the imaging device from the rotation angle sensor.
所述第三角度阈值可以配置为90度,当成像装置正常竖直放置时所对应的竖直轴与重力传感器的重力方向的夹角达到90度时,即可确定所述成像装置处于旋转后的旋转位置状态。The third angle threshold can be configured as 90 degrees. When the angle between the vertical axis corresponding to the imaging device and the gravity direction of the gravity sensor reaches 90 degrees when the imaging device is placed vertically, it can be determined that the imaging device is in the rotated state. The rotation position status of .
本发明实施例能够有效地对成像装置进行监控,确定出成像装置的旋转情况,满足了用户对实现图像旋转的自动化、智能化需求,软硬件成本较低。The embodiments of the present invention can effectively monitor the imaging device and determine the rotation of the imaging device, which meets the user's requirements for automation and intelligence of image rotation, and the cost of software and hardware is low.
再请参见图10,是本发明的图像处理方法的第四实施例流程示意图,本发明实施例的所述方法可以由一个处理器执行,该处理器通过与其他用于检测成像装置的支撑设备、移动物体的位置状态的处理器通信,来确定是否执行对拍摄图像的旋转操作,具体的,所述方法包括:Please refer to FIG. 10 again, which is a schematic flow chart of the fourth embodiment of the image processing method of the present invention. The method of the embodiment of the present invention can be executed by a processor, and the processor is combined with other supporting equipment for detecting the imaging device. 1. The processor communicates with the position state of the moving object to determine whether to perform a rotation operation on the captured image. Specifically, the method includes:
S701:当采集到图像时,发送询问请求,所述询问请求用于请求获取用于拍摄所述图像的成像装置的位置状态是否为旋转位置状态;S701: When an image is captured, send an inquiry request, where the inquiry request is used to request whether the position state of the imaging device used to capture the image is a rotational position state;
所述图像的成像装置的位置状态是否为旋转位置状态是由所述的其他处理器来判断的,所述其他处理器检测是否为旋转位置状态的具体方式可参考图7至图9对应实施例的描述。Whether the position state of the imaging device of the image is a rotational position state is judged by the other processors, and the specific way for the other processors to detect whether it is a rotational position state can refer to the corresponding embodiments in Fig. 7 to Fig. 9 description of.
S702:若接收到响应所述询问请求的确认信息,则按照预置的旋转规则对所述采集到的图像执行旋转操作,所述确认信息用于确定所述图像的成像装置处于旋转位置状态;S702: If confirmation information in response to the query request is received, perform a rotation operation on the captured image according to a preset rotation rule, the confirmation information is used to determine that the imaging device of the image is in a state of a rotated position;
S703:输出执行了所述旋转操作后的图像。S703: Output the image after the rotation operation is performed.
进一步地,本发明实施例的所述方法还可以包括:存储执行所述旋转操作后的图像、或显示执行所述旋转操作后的图像。Further, the method in the embodiment of the present invention may further include: storing the image after the rotation operation is performed, or displaying the image after the rotation operation is performed.
进一步地,本发明实施例的所述方法在所述S701之前还可以包括:判断自动旋转操作功能是否被开启,若是,则执行所述发送询问请求;或者在所述S702中执行旋转操作之前还包括:判断自动旋转操作功能是否被开启,若是,则执行所述按照预置的旋转规则对所述采集到的图像执行旋转操作。Further, the method in this embodiment of the present invention may also include before S701: judging whether the automatic rotation operation function is enabled, and if so, executing the sending inquiry request; or performing the rotation operation in S702 It includes: judging whether the automatic rotation operation function is enabled, and if so, performing the rotation operation on the acquired image according to the preset rotation rule.
本发明实施例能够快速地确定是否对图像进行旋转操作,满足用户对实现图像旋转的自动化、智能化需求,软硬件成本较低。The embodiments of the present invention can quickly determine whether to rotate an image, satisfy users' requirements for automation and intelligence of image rotation, and have low software and hardware costs.
再请参见图11,是本发明的图像处理方法的第五实施例流程示意图,本发明实施例的所述方法可以由一个处理器执行,用于检测成像装置的支撑设备、移动物体的位置状态,并与对应的执行图像旋转操作的处理器通信以触发对所述成像装置拍摄到的图像的旋转操作。所述方法具体包括:Please refer to FIG. 11 again, which is a schematic flow chart of the fifth embodiment of the image processing method of the present invention. The method of the embodiment of the present invention can be executed by a processor, and is used to detect the position status of the supporting equipment of the imaging device and the moving object. , and communicate with a corresponding processor for performing an image rotation operation to trigger a rotation operation on the image captured by the imaging device. Described method specifically comprises:
S801:接收询问请求,所述询问请求用于请求在图像拍摄时所述图像的成像装置的位置状态是否为旋转位置状态;S801: Receive an inquiry request, where the inquiry request is used to request whether the position state of the imaging device of the image is a rotational position state when the image is captured;
S802:获取所述成像装置的位置状态;S802: Obtain the position state of the imaging device;
其中,所述位置状态是否为旋转位置状态是根据挂载所述成像装置的支撑设备的旋转角度信息、或者挂载所述成像装置的移动物体的旋转角度信息、或者所述成像装置的旋转角度信息确定的。Wherein, whether the position status is a rotation position status is determined according to the rotation angle information of the support device on which the imaging device is mounted, or the rotation angle information of the moving object on which the imaging device is mounted, or the rotation angle information of the imaging device. Information is determined.
具体的,检测位置状态是否为旋转位置状态可以包括:获取用于挂载所述成像装置的支撑设备的旋转角度信息;若获取到的支撑设备的旋转角度信息达到预设的第一角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。其中,获取用于挂载所述成像装置的支撑设备的旋转角度信息,包括:从挂载所述成像装置的支撑设备中配置的旋转角度传感器中获取所述支撑设备的旋转角度信息;或者从外置于所述成像装置的支撑设备并用于检测所述支撑设备的旋转角度传感器中获取所述支撑设备的旋转角度信息。Specifically, detecting whether the position status is a rotation position status may include: obtaining rotation angle information of a support device used to mount the imaging device; if the obtained rotation angle information of the support device reaches a preset first angle threshold, Then, the position state of the imaging device is determined as a rotational position state indicating that the imaging device is in a rotated state. Wherein, obtaining the rotation angle information of the support device for mounting the imaging device includes: obtaining the rotation angle information of the support device from a rotation angle sensor configured in the support device for mounting the imaging device; or obtaining the rotation angle information of the support device from The rotation angle information of the support device is obtained from a rotation angle sensor that is externally installed in the support device of the imaging device and used to detect the support device.
或者,检测所述位置状态是否为旋转位置状态,包括:获取用于挂载所述成像装置的移动物体的旋转角度信息;若获取到的移动物体的旋转角度信息达到预设的第二角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。其中,所述获取用于挂载所述成像装置的移动物体的旋转角度信息,包括:从挂载所述成像装置的移动物体中配置的旋转角度传感器中获取所述移动物体的旋转角度信息;或者,从外置于所述成像装置的移动物体并用于检测所述移动物体的旋转角度传感器中获取所述移动物体的旋转角度信息。Alternatively, detecting whether the position state is a rotational position state includes: obtaining the rotation angle information of the mobile object used to mount the imaging device; if the obtained rotation angle information of the mobile object reaches a preset second angle threshold , then it is determined that the position state of the imaging device is a rotational position state indicating that the imaging device is in a rotated state. Wherein, the obtaining the rotation angle information of the mobile object for mounting the imaging device includes: obtaining the rotation angle information of the mobile object from a rotation angle sensor configured in the mobile object mounting the imaging device; Alternatively, the rotation angle information of the moving object is acquired from a rotation angle sensor that is external to the imaging device and used to detect the moving object.
或者,检测所述位置状态是否为旋转位置状态可以包括:获取所述成像装置的旋转角度信息;若获取到的所述成像装置的旋转角度信息达到预设的第三角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。其中,所述获取所述成像装置的旋转角度信息,包括:从配置在所述成像装置中的旋转角度传感器中获取所述成像装置的旋转角度信息;或者,从外置于所述成像装置并用于检测所述成像装置的旋转角度信息的旋转角度传感器中获取所述成像装置的旋转角度信息。Alternatively, detecting whether the position state is a rotational position state may include: obtaining rotation angle information of the imaging device; if the obtained rotation angle information of the imaging device reaches a preset third angle threshold, then determining the The position state of the imaging device is a rotational position state indicating that the imaging device is rotated. Wherein, said obtaining the rotation angle information of the imaging device includes: obtaining the rotation angle information of the imaging device from a rotation angle sensor configured in the imaging device; The rotation angle information of the imaging device is obtained from a rotation angle sensor that detects the rotation angle information of the imaging device.
对于上述的各个用于确认所述位置状态的关联信息(如上述的旋转角度信息),可以是主动去如重力传感器等传感器中获取的;也可以是根据需要周期性或实时地从传感器中获取的,以便于在采集到的图像时能够及时地确定成像装置的位置状态。当然也可以是各个传感器在检测到旋转时(感测的数据发生变化)主动推送的。For each of the above-mentioned associated information used to confirm the position state (such as the above-mentioned rotation angle information), it can be actively obtained from sensors such as gravity sensors; it can also be obtained from sensors periodically or in real time as needed so that the position and state of the imaging device can be determined in time when the image is collected. Of course, it can also be actively pushed by each sensor when rotation is detected (sensed data changes).
所述S802可以是在所述S801之前执行的,并且,在检测到所述位置状态为表示所述成像装置处于旋转后的旋转位置状态后,还需检测自动旋转功能是否开启,如果开启,则生成表示所述成像装置处于旋转后的旋转位置状态的位置状态,以便于在接收到询问请求时能够及时反馈确认信息,执行下述的S803。The S802 may be performed before the S801, and, after detecting that the position state indicates that the imaging device is in a rotated position state after rotation, it is also necessary to detect whether the auto-rotation function is turned on, and if it is turned on, then Generate a position state indicating that the imaging device is in a rotated position state after rotation, so that confirmation information can be fed back in time when an inquiry request is received, and the following S803 is executed.
S803:在所述位置状态为表示所述成像装置处于旋转后的旋转位置状态,响应所述询问请求返回确认信息,以对所述成像装置拍摄的图像进行旋转操作。S803: When the position state is a rotated position state indicating that the imaging device is rotated, return confirmation information in response to the inquiry request, so as to perform a rotation operation on the image captured by the imaging device.
本发明实施例的所述方法还包括:判断自动旋转操作功能是否被开启;若是,则执行所述获取所述成像装置的位置状态;或者还包括:判断自动旋转操作功能是否被开启;若是,则执行所述响应所述询问请求返回确认信息。The method in the embodiment of the present invention further includes: judging whether the auto-rotation operation function is turned on; if so, performing the acquiring the position status of the imaging device; or further including: judging whether the auto-rotation operation function is turned on; if so, Then execute the step of returning confirmation information in response to the inquiry request.
本发明实施例能够快速地通知图像旋转处理器是否对图像进行旋转操作,满足用户对实现图像旋转的自动化、智能化需求,软硬件成本较低。The embodiment of the present invention can quickly notify the image rotation processor whether to perform image rotation operation, satisfying the user's requirements for automatic and intelligent image rotation, and the cost of software and hardware is relatively low.
下面对本发明实施例的图像处理装置、成像装置以及系统进行详细描述。The image processing device, imaging device and system of the embodiments of the present invention are described in detail below.
请参见图12,是本发明的一种图像处理装置的第一实施例结构示意图,本发明实施例的所述装置可以配置在各种相机、或者带摄像功能的智能移动终端中,具体的,所述装置包括:Please refer to FIG. 12 , which is a schematic structural diagram of the first embodiment of an image processing device of the present invention. The device in the embodiment of the present invention can be configured in various cameras or smart mobile terminals with camera functions. Specifically, The devices include:
确定模块11,用于当采集到图像时,确定出用于拍摄所述图像的成像装置的位置状态;A determining module 11, configured to determine the position state of the imaging device used to capture the image when the image is captured;
处理模块12,用于若所述位置状态为表示所述成像装置处于旋转后的旋转位置状态,则按照预置的旋转规则对所述采集到的图像执行旋转操作;The processing module 12 is configured to perform a rotation operation on the captured image according to a preset rotation rule if the position state is a rotation position state indicating that the imaging device is rotated;
输出模块13,用于输出执行了所述旋转操作后的图像。An output module 13, configured to output the image after the rotation operation has been performed.
进一步可选地,所述位置状态是否为旋转位置状态是根据挂载所述成像装置的支撑设备的旋转角度信息、或者挂载所述成像装置的移动物体的旋转角度信息、或者所述成像装置的旋转角度信息确定的。Further optionally, whether the position status is a rotation position status is based on the rotation angle information of the supporting device on which the imaging device is mounted, or the rotation angle information of the moving object on which the imaging device is mounted, or the imaging device The rotation angle information is determined.
进一步可选地,本发明实施例的所述图像处理装置还包括:Further optionally, the image processing device in the embodiment of the present invention further includes:
检测模块14,用于检测所述位置状态是否为旋转位置状态。The detection module 14 is configured to detect whether the position state is a rotational position state.
其中可选地,所述检测模块具体用于获取用于挂载所述成像装置的支撑设备的旋转角度信息;若获取到的支撑设备的旋转角度信息达到预设的第一角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。Wherein optionally, the detection module is specifically configured to acquire the rotation angle information of the support device used to mount the imaging device; if the obtained rotation angle information of the support device reaches the preset first angle threshold, then determine The position state of the imaging device is a rotational position state indicating that the imaging device is rotated.
其中可选地,所述检测模块14,具体用于从挂载所述成像装置的支撑设备中配置的旋转角度传感器中获取所述支撑设备的旋转角度信息;或者,从外置于所述成像装置的支撑设备并用于检测所述支撑设备的旋转角度传感器中获取所述支撑设备的旋转角度信息。Optionally, the detection module 14 is specifically configured to acquire the rotation angle information of the support device from a rotation angle sensor configured in the support device on which the imaging device is mounted; The support device of the device is used to detect the rotation angle sensor of the support device to obtain the rotation angle information of the support device.
其中可选地,所述检测模块14,具体用于获取用于挂载所述成像装置的移动物体的旋转角度信息;若获取到的移动物体的旋转角度信息达到预设的第二角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。Wherein optionally, the detection module 14 is specifically configured to obtain the rotation angle information of the mobile object used to mount the imaging device; if the obtained rotation angle information of the mobile object reaches the preset second angle threshold, Then, the position state of the imaging device is determined as a rotational position state indicating that the imaging device is in a rotated state.
其中可选地,所述检测模块14,具体用于从挂载所述成像装置的移动物体中配置的旋转角度传感器中获取所述移动物体的旋转角度信息;或者,从外置于所述成像装置的移动物体并用于检测所述移动物体的旋转角度传感器中获取所述移动物体的旋转角度信息。Optionally, the detection module 14 is specifically configured to acquire the rotation angle information of the moving object from a rotation angle sensor configured in the moving object on which the imaging device is mounted; The moving object of the device is used to detect the rotation angle sensor of the moving object to obtain the rotation angle information of the moving object.
其中可选地,所述检测模块14,具体用于获取所述成像装置的旋转角度信息;若获取到的所述成像装置的旋转角度信息达到预设的第三角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。Wherein optionally, the detection module 14 is specifically configured to obtain the rotation angle information of the imaging device; if the obtained rotation angle information of the imaging device reaches a preset third angle threshold, determine that the imaging device The position state of the device is a rotational position state indicating that the imaging device is rotated.
其中可选地,所述检测模块14,具体用于从配置在所述成像装置中的旋转角度传感器中获取所述成像装置的旋转角度信息;或者,从外置于所述成像装置并用于检测所述成像装置的旋转角度信息的旋转角度传感器中获取所述成像装置的旋转角度信息。Optionally, the detection module 14 is specifically configured to obtain the rotation angle information of the imaging device from a rotation angle sensor configured in the imaging device; The rotation angle information of the imaging device is obtained from the rotation angle sensor of the rotation angle information of the imaging device.
进一步可选地,本发明实施例的所述图像处理装置还包括:Further optionally, the image processing device in the embodiment of the present invention further includes:
判断模块15,用于判断自动旋转操作功能是否被开启。The judging module 15 is used for judging whether the automatic rotation operation function is turned on.
所述判断模块15可以在是否执行旋转操作之前,执行判断步骤,并在判断结果为是时通知所述处理模块12进行旋转操作。或者是在确定成像装置的位置状态之前就确定是否开启了自动旋转操作的功能,若是,则通知所述确定模块11确定所述成像装置的位置状态。The judging module 15 may perform a judging step before whether to perform the rotating operation, and notify the processing module 12 to perform the rotating operation when the judging result is yes. Or before determining the position state of the imaging device, it is determined whether the function of the automatic rotation operation is enabled, and if so, the determining module 11 is notified to determine the position state of the imaging device.
进一步可选地,所述旋转规则包括:按照旋转位置状态中所指示的旋转角度和方向,反向旋转图像;或者按照旋转位置状态中所指示的旋转角度和方向,朝该指示的方向上旋转图像,保证图像的旋转角度和旋转位置状态中所指示的旋转角度之和为360度。Further optionally, the rotation rule includes: reversely rotating the image according to the rotation angle and direction indicated in the rotation position state; or rotating in the indicated direction according to the rotation angle and direction indicated in the rotation position state Image, ensure that the sum of the rotation angle of the image and the rotation angle indicated in the rotation position state is 360 degrees.
需要说明的是,本发明实施例中的各个模块的具体实现可对应参考上述方法项各个实施例中相关步骤的描述,在此不赘述。It should be noted that, for the specific implementation of each module in the embodiment of the present invention, reference may be made to the description of relevant steps in each embodiment of the above method item, and details are not repeated here.
本发明实施例能够有效地对成像装置进行监控,确定出成像装置的旋转情况,满足了用户对实现图像旋转的自动化、智能化需求,软硬件成本较低。The embodiments of the present invention can effectively monitor the imaging device and determine the rotation of the imaging device, which meets the user's requirements for automation and intelligence of image rotation, and the cost of software and hardware is low.
再请参见图13,是本发明实施例的一种成像装置的结构示意图,本发明实施例所述的成像装置可以是指各种相机、摄像机,也可以是指带摄像功能的智能移动终端,其包括现有的各种软硬件结构,进一步具体的,本发明实施例的成像装置具体包括:摄像镜头111、光学传感器112、以及处理器113,其中:Please refer to FIG. 13 again, which is a schematic structural diagram of an imaging device according to an embodiment of the present invention. The imaging device described in this embodiment of the present invention may refer to various cameras, video cameras, or an intelligent mobile terminal with a camera function. It includes various existing software and hardware structures. More specifically, the imaging device in the embodiment of the present invention specifically includes: a camera lens 111, an optical sensor 112, and a processor 113, wherein:
所述处理器113,用于当通过所述摄像镜头和所述光学传感器采集到图像时,确定出本成像装置的位置状态;若所述位置状态为表示本成像装置处于旋转后的旋转位置状态,则按照预置的旋转规则对所述采集到的图像执行旋转操作;输出执行了所述旋转操作后的图像。The processor 113 is configured to determine the position state of the imaging device when the image is collected by the camera lens and the optical sensor; if the position state is a rotation position state indicating that the imaging device is in rotation , perform a rotation operation on the acquired image according to a preset rotation rule; and output the image after the rotation operation is performed.
进一步可选地,所述处理器113确定所述位置状态是否为旋转位置状态是根据挂载本成像装置的支撑设备的旋转角度信息、或者挂载本成像装置的移动物体的旋转角度信息、或者本成像装置的旋转角度信息确定的。Further optionally, the processor 113 determines whether the position state is a rotation position state based on the rotation angle information of the supporting device on which the imaging device is mounted, or the rotation angle information of the moving object on which the imaging device is mounted, or The rotation angle information of the imaging device is determined.
进一步可选地,所述处理器113,还用于检测所述位置状态是否为旋转位置状态。Further optionally, the processor 113 is further configured to detect whether the position state is a rotation position state.
进一步可选地,所述处理器113,具体用于获取用于挂载本成像装置的支撑设备的旋转角度信息;若获取到的支撑设备的旋转角度信息达到预设的第一角度阈值,则确定本成像装置的位置状态为表示本成像装置处于旋转后的旋转位置状态。Further optionally, the processor 113 is specifically configured to acquire rotation angle information of a support device used to mount the imaging device; if the acquired rotation angle information of the support device reaches a preset first angle threshold, then Determining the position state of the imaging device is a rotation position state indicating that the imaging device is in a rotated state.
进一步可选地,所述处理器113,具体用于从挂载本成像装置的支撑设备中配置的旋转角度传感器中获取所述支撑设备的旋转角度信息;或者,从外置于本成像装置的支撑设备并用于检测所述支撑设备的旋转角度传感器中获取所述支撑设备的旋转角度信息。Further optionally, the processor 113 is specifically configured to acquire the rotation angle information of the support device from a rotation angle sensor configured in the support device on which the imaging device is mounted; The support device is used to detect the rotation angle sensor of the support device to obtain the rotation angle information of the support device.
进一步可选地,所述处理器113,具体用于获取用于挂载本成像装置的移动物体的旋转角度信息;若获取到的移动物体的旋转角度信息达到预设的第二角度阈值,则确定本成像装置的位置状态为表示本成像装置处于旋转后的旋转位置状态。Further optionally, the processor 113 is specifically configured to obtain rotation angle information of a mobile object used to mount the imaging device; if the obtained rotation angle information of the mobile object reaches a preset second angle threshold, then Determining the position state of the imaging device is a rotation position state indicating that the imaging device is in a rotated state.
进一步可选地,所述处理器113,具体用于从挂载本成像装置的移动物体中配置的旋转角度传感器中获取所述移动物体的旋转角度信息;或者,从外置于本成像装置的移动物体并用于检测所述移动物体的旋转角度传感器中获取所述移动物体的旋转角度信息。Further optionally, the processor 113 is specifically configured to acquire the rotation angle information of the moving object from a rotation angle sensor configured in the moving object mounted with the imaging device; The moving object is used to detect the rotation angle sensor of the moving object to acquire the rotation angle information of the moving object.
进一步可选地,所述处理器113,具体用于获取本成像装置的旋转角度信息;若获取到的本成像装置的旋转角度信息达到预设的第三角度阈值,则确定本成像装置的位置状态为表示本成像装置处于旋转后的旋转位置状态。Further optionally, the processor 113 is specifically configured to acquire rotation angle information of the imaging device; if the acquired rotation angle information of the imaging device reaches a preset third angle threshold, determine the position of the imaging device The state is a state indicating that the imaging device is in a rotated position after rotation.
进一步可选地,所述处理器113,具体用于从配置在本成像装置中的旋转角度传感器中获取本成像装置的旋转角度信息;或者,从外置于本成像装置并用于检测本成像装置的旋转角度信息的旋转角度传感器中获取本成像装置的旋转角度信息。Further optionally, the processor 113 is specifically configured to obtain the rotation angle information of the imaging device from a rotation angle sensor configured in the imaging device; The rotation angle information of the imaging device is obtained from the rotation angle sensor of the rotation angle information.
进一步可选地,所述处理器113,还用于判断自动旋转操作功能是否被开启。Further optionally, the processor 113 is further configured to determine whether the automatic rotation operation function is enabled.
进一步可选地,所述处理器113所依照的旋转规则包括:按照旋转位置状态中所指示的旋转角度和方向,反向旋转图像;或者按照旋转位置状态中所指示的旋转角度和方向,朝该指示的方向上旋转图像,保证图像的旋转角度和旋转位置状态中所指示的旋转角度之和为360度。Further optionally, the rotation rule followed by the processor 113 includes: reversely rotating the image according to the rotation angle and direction indicated in the rotation position state; or rotating the image in the opposite direction according to the rotation angle and direction indicated in the rotation position state Rotate the image in the direction indicated, and ensure that the sum of the rotation angle of the image and the rotation angle indicated in the rotation position state is 360 degrees.
本发明实施例中,所述处理器113的具体实现可对应地参考上述方法实施例中相关步骤的描述,在此不赘述。In the embodiment of the present invention, for the specific implementation of the processor 113, reference may be made to the description of relevant steps in the foregoing method embodiments, and details are not repeated here.
本发明实施例能够有效地对成像装置进行监控,确定出成像装置的旋转情况,满足了用户对实现图像旋转的自动化、智能化需求,软硬件成本较低。The embodiments of the present invention can effectively monitor the imaging device and determine the rotation of the imaging device, which meets the user's requirements for automation and intelligence of image rotation, and the cost of software and hardware is low.
再请参见图14,是本发明实施例的另一种图像处理装置的结构示意图,本发明实施例的所述成像装置同样可以配置在各种相机、摄像机或者带摄像功能的移动智能终端中,具体的,本发明实施例的图像处理装置包括:Please refer to FIG. 14 again, which is a schematic structural diagram of another image processing device according to an embodiment of the present invention. The imaging device according to this embodiment of the present invention can also be configured in various cameras, video cameras, or mobile smart terminals with camera functions. Specifically, the image processing device in the embodiment of the present invention includes:
请求模块21,用于当采集到图像时,发送询问请求,所述询问请求用于请求获取用于拍摄所述图像的成像装置的位置状态是否为旋转位置状态;The request module 21 is configured to send an inquiry request when the image is captured, and the inquiry request is used to request whether the position state of the imaging device used to capture the image is a rotational position state;
旋转模块22,用于若接收到响应所述询问请求的确认信息,则按照预置的旋转规则对所述采集到的图像执行旋转操作,所述确认信息用于确定所述图像的成像装置处于旋转位置状态;The rotation module 22 is configured to perform a rotation operation on the captured image according to a preset rotation rule if confirmation information in response to the inquiry request is received, and the confirmation information is used to determine that the imaging device of the image is in the Rotation position state;
输出模块23,用于输出执行了所述旋转操作后的图像。The output module 23 is configured to output the image after the rotation operation is performed.
进一步可选地,本发明实施例的所述装置还可以包括:Further optionally, the device in the embodiment of the present invention may also include:
判断模块24,用于判断自动旋转操作功能是否被开启。The judging module 24 is configured to judge whether the automatic rotation operation function is turned on.
所述判断模块24可以在所述请求模块21发起询问请求之前判断旋转操作的功能是否开启,如果开启,则通知所述请求模块21发起询问请求,否则,不需发起询问请求。所述判断模块24也可以在所述旋转模块22执行旋转操作之前判断旋转操作的功能是否开启,如果开启,则通知所述旋转模块22旋转采集到的图像,否则,不需旋转图像。The judging module 24 can judge whether the rotation operation function is enabled before the requesting module 21 initiates an inquiry request, and if it is enabled, then notify the requesting module 21 to initiate an inquiry request; otherwise, no inquiry request is required. The judging module 24 may also judge whether the function of the rotating operation is enabled before the rotating module 22 performs the rotating operation, and if enabled, notify the rotating module 22 to rotate the captured image, otherwise, the image does not need to be rotated.
具体的,本发明实施例的所述图像处理装置的具体实现可参考上述方法项实施例中相关步骤的描述,在此不赘述。Specifically, for the specific implementation of the image processing apparatus in the embodiment of the present invention, reference may be made to the description of relevant steps in the above method embodiment, and details are not repeated here.
本发明实施例能够快速地确定是否对图像进行旋转操作,满足用户对实现图像旋转的自动化、智能化需求,软硬件成本较低。The embodiments of the present invention can quickly determine whether to rotate an image, satisfy users' requirements for automation and intelligence of image rotation, and have low software and hardware costs.
本发明实施例还提供了一种处理器,该处理器可以调用外部或者内部存储器中存储的程序以执行图像的自动旋转操作,具体的,所述处理器用于当采集到图像时,发送询问请求,所述询问请求用于请求获取用于拍摄所述图像的成像装置的位置状态是否为旋转位置状态;若接收到响应所述询问请求的确认信息,则按照预置的旋转规则对所述采集到的图像执行旋转操作,所述确认信息用于确定所述图像的成像装置处于旋转位置状态;输出执行了所述旋转操作后的图像。The embodiment of the present invention also provides a processor, the processor can call the program stored in the external or internal memory to perform the automatic rotation operation of the image, specifically, the processor is used to send an inquiry request when the image is collected , the query request is used to request whether the position state of the imaging device used to capture the image is a rotated position state; The received image is rotated, and the confirmation information is used to determine that the imaging device of the image is in a rotated position state; and the image after the rotation operation is performed is output.
进一步地,所述处理器还用于判断自动旋转操作功能是否被开启。Further, the processor is also used to determine whether the automatic rotation operation function is turned on.
本发明实施例能够快速地确定是否对图像进行旋转操作,满足用户对实现图像旋转的自动化、智能化需求,软硬件成本较低。The embodiments of the present invention can quickly determine whether to rotate an image, satisfy users' requirements for automation and intelligence of image rotation, and have low software and hardware costs.
再请参见图15,是本发明实施例的再一种图像处理装置的结构示意图,本发明实施例的所述图像处理装置可以为一个独立的装置用于监视成像装置、挂载成像装置的支撑设备以及挂载成像装置的移动物体的是否产生旋转,其也可以内置到成像装置、挂载成像装置的支撑设备以及挂载成像装置的移动物体,具体的,所述图像处理装置具体可以包括:Please refer to FIG. 15 again, which is a schematic structural diagram of another image processing device according to an embodiment of the present invention. The image processing device according to this embodiment of the present invention may be an independent device used for monitoring the imaging device and mounting the support of the imaging device. Whether the device and the moving object mounted on the imaging device rotate or not, it can also be built into the imaging device, the supporting equipment mounted on the imaging device, and the moving object mounted on the imaging device. Specifically, the image processing device can specifically include:
接收模块31,用于接收询问请求,所述询问请求用于请求在图像拍摄时所述图像的成像装置的位置状态是否为旋转位置状态;The receiving module 31 is configured to receive an inquiry request, and the inquiry request is used to request whether the position state of the imaging device of the image is a rotational position state when the image is captured;
获取模块32,用于获取所监控的所述成像装置的位置状态;An acquisition module 32, configured to acquire the monitored position status of the imaging device;
响应模块33,用于在所述位置状态为表示所述成像装置处于旋转后的旋转位置状态时,响应所述询问请求返回确认信息,以对所述成像装置拍摄的图像进行旋转操作。The response module 33 is configured to return confirmation information in response to the query request when the position state is a rotated position state indicating that the imaging device is rotated, so as to perform a rotation operation on the image captured by the imaging device.
进一步可选地,所述位置状态是否为旋转位置状态是根据挂载所述成像装置的支撑设备的旋转角度信息、或者挂载所述成像装置的移动物体的旋转角度信息、或者所述成像装置的旋转角度信息确定的。Further optionally, whether the position status is a rotation position status is based on the rotation angle information of the supporting device on which the imaging device is mounted, or the rotation angle information of the moving object on which the imaging device is mounted, or the imaging device The rotation angle information is determined.
进一步可选地,本发明实施例的所述成像装置还可以包括:Further optionally, the imaging device in the embodiment of the present invention may also include:
检测模块34,用于检测位置状态是否为旋转位置状态。The detection module 34 is used to detect whether the position state is a rotation position state.
进一步可选地,所述检测模块34,具体用于获取用于挂载所述成像装置的支撑设备的旋转角度信息;若获取到的支撑设备的旋转角度信息达到预设的第一角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。Further optionally, the detection module 34 is specifically configured to acquire rotation angle information of a support device used to mount the imaging device; if the obtained rotation angle information of the support device reaches a preset first angle threshold, Then, the position state of the imaging device is determined as a rotational position state indicating that the imaging device is in a rotated state.
进一步可选地,所述检测模块34,具体用于从挂载所述成像装置的支撑设备中配置的旋转角度传感器中获取所述支撑设备的旋转角度信息;或者,从外置于所述成像装置的支撑设备并用于检测所述支撑设备的旋转角度传感器中获取所述支撑设备的旋转角度信息。Further optionally, the detection module 34 is specifically configured to obtain the rotation angle information of the support device from a rotation angle sensor configured in the support device on which the imaging device is mounted; The support device of the device is used to detect the rotation angle sensor of the support device to obtain the rotation angle information of the support device.
进一步可选地,所述检测模块34,具体用于获取用于挂载所述成像装置的移动物体的旋转角度信息;若获取到的移动物体的旋转角度信息达到预设的第二角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。Further optionally, the detection module 34 is specifically configured to obtain rotation angle information of a mobile object used to mount the imaging device; if the obtained rotation angle information of the mobile object reaches a preset second angle threshold, Then, the position state of the imaging device is determined as a rotational position state indicating that the imaging device is in a rotated state.
进一步可选地,所述检测模块34,具体用于从挂载所述成像装置的移动物体中配置的旋转角度传感器中获取所述移动物体的旋转角度信息;或者,从外置于所述成像装置的移动物体并用于检测所述移动物体的旋转角度传感器中获取所述移动物体的旋转角度信息。Further optionally, the detection module 34 is specifically configured to acquire the rotation angle information of the moving object from a rotation angle sensor configured in the moving object on which the imaging device is mounted; The moving object of the device is used to detect the rotation angle sensor of the moving object to obtain the rotation angle information of the moving object.
进一步可选地,所述检测模块34,具体用于获取所述成像装置的旋转角度信息;若获取到的所述成像装置的旋转角度信息达到预设的第三角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。Further optionally, the detection module 34 is specifically configured to acquire rotation angle information of the imaging device; if the acquired rotation angle information of the imaging device reaches a preset third angle threshold, determine that the imaging The position state of the device is a rotational position state indicating that the imaging device is rotated.
进一步可选地,所述检测模块34,具体用于从配置在所述成像装置中的旋转角度传感器中获取所述成像装置的旋转角度信息;或者,从外置于所述成像装置并用于检测所述成像装置的旋转角度信息的旋转角度传感器中获取所述成像装置的旋转角度信息。Further optionally, the detection module 34 is specifically configured to acquire the rotation angle information of the imaging device from a rotation angle sensor configured in the imaging device; The rotation angle information of the imaging device is obtained from the rotation angle sensor of the rotation angle information of the imaging device.
进一步可选地,本发明实施例的所述成像装置还可以包括:Further optionally, the imaging device in the embodiment of the present invention may also include:
判断模块35,用于判断自动旋转操作功能是否被开启。The judging module 35 is used to judge whether the automatic rotation operation function is turned on.
所述判断模块35可以是在所述响应模块33发出确认信息之前,判断相应的功能是否被开启,若是,通知所述响应模块33返回确认信息,以通知成像装置处于旋转位置状态,否则,不回复信息或者回复成像装置不是处于旋转位置状态的信息,以便于不执行图像旋转操作。The judgment module 35 can judge whether the corresponding function is enabled before the response module 33 sends the confirmation information, and if so, notify the response module 33 to return the confirmation information to notify that the imaging device is in the state of the rotating position, otherwise, do not Reply information or reply information that the imaging device is not in the state of the rotated position, so that the image rotation operation is not performed.
需要说明的是,本发明实施例中的各个模块的具体实现可对应地参考上述方法项实施例中相关步骤的具体描述,在此不赘述。It should be noted that, for the specific implementation of each module in the embodiment of the present invention, corresponding reference may be made to the specific description of relevant steps in the above method embodiment, and details are not repeated here.
进一步地,本发明实施例还提供了一种处理器,该处理可以通过调用外部或者内容的存储中存储的程序,用于完成图像的自动旋转操作,具体的,所述处理器用于接收询问请求,所述询问请求用于请求在图像拍摄时所述图像的成像装置的位置状态是否为旋转位置状态;获取所述成像装置的位置状态;在所述位置状态为表示所述成像装置处于旋转后的旋转位置状态,响应所述询问请求返回确认信息,以对所述成像装置拍摄的图像进行旋转操作。Furthermore, the embodiment of the present invention also provides a processor, which can be used to complete the automatic rotation operation of the image by calling the program stored in the external or content storage, specifically, the processor is used to receive the inquiry request , the query request is used to request whether the position state of the imaging device of the image is a rotating position state when the image is taken; obtain the position state of the imaging device; the status of the rotation position, and return confirmation information in response to the query request, so as to perform a rotation operation on the image captured by the imaging device.
进一步可选地,所述处理器检测所述位置状态是否为旋转位置状态是根据挂载所述成像装置的支撑设备的旋转角度信息、或者挂载所述成像装置的移动物体的旋转角度信息、或者所述成像装置的旋转角度信息确定的。Further optionally, the processor detects whether the position state is a rotational position state based on information about the rotation angle of a supporting device on which the imaging device is mounted, or information on the rotation angle of a moving object on which the imaging device is mounted, Or determined by the rotation angle information of the imaging device.
进一步可选地,所述处理器还用于检测位置状态是否为旋转位置状态。Further optionally, the processor is further configured to detect whether the position state is a rotational position state.
进一步可选地,所述处理器具体用于获取用于挂载所述成像装置的支撑设备的旋转角度信息;若获取到的支撑设备的旋转角度信息达到预设的第一角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。Further optionally, the processor is specifically configured to obtain rotation angle information of a support device used to mount the imaging device; if the obtained rotation angle information of the support device reaches a preset first angle threshold, determine The position state of the imaging device is a rotational position state indicating that the imaging device is rotated.
进一步可选地,所述处理器具体用于从挂载所述成像装置的支撑设备中配置的旋转角度传感器中获取所述支撑设备的旋转角度信息;或者,从外置于所述成像装置的支撑设备并用于检测所述支撑设备的旋转角度传感器中获取所述支撑设备的旋转角度信息。Further optionally, the processor is specifically configured to obtain the rotation angle information of the support device from a rotation angle sensor configured in the support device on which the imaging device is mounted; The support device is used to detect the rotation angle sensor of the support device to obtain the rotation angle information of the support device.
进一步可选地,所述处理器,具体用于获取用于挂载所述成像装置的移动物体的旋转角度信息;若获取到的移动物体的旋转角度信息达到预设的第二角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。Further optionally, the processor is specifically configured to obtain rotation angle information of a mobile object used to mount the imaging device; if the obtained rotation angle information of the mobile object reaches a preset second angle threshold, then The position state of the imaging device is determined as a rotational position state indicating that the imaging device is in a rotated state.
进一步可选地,所述处理器具体用于从挂载所述成像装置的移动物体中配置的旋转角度传感器中获取所述移动物体的旋转角度信息;或者,从外置于所述成像装置的移动物体并用于检测所述移动物体的旋转角度传感器中获取所述移动物体的旋转角度信息。Further optionally, the processor is specifically configured to acquire the rotation angle information of the moving object from a rotation angle sensor configured in the moving object mounted with the imaging device; The moving object is used to detect the rotation angle sensor of the moving object to acquire the rotation angle information of the moving object.
进一步可选地,所述处理器具体用于获取所述成像装置的旋转角度信息;若获取到的所述成像装置的旋转角度信息达到预设的第三角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。Further optionally, the processor is specifically configured to obtain rotation angle information of the imaging device; if the obtained rotation angle information of the imaging device reaches a preset third angle threshold, determine the rotation angle information of the imaging device. The position state is a rotational position state indicating that the imaging device is rotated.
进一步可选地,所述处理器具体用于从配置在所述成像装置中的旋转角度传感器中获取所述成像装置的旋转角度信息;或者,从外置于所述成像装置并用于检测所述成像装置的旋转角度信息的旋转角度传感器中获取所述成像装置的旋转角度信息。Further optionally, the processor is specifically configured to acquire the rotation angle information of the imaging device from a rotation angle sensor configured in the imaging device; The rotation angle information of the imaging device is obtained from the rotation angle sensor of the rotation angle information of the imaging device.
进一步可选地,所述处理器还用于判断自动旋转操作功能是否被开启。Further optionally, the processor is further configured to determine whether the automatic rotation operation function is turned on.
所述的处理器的具体实现可对应地参考上述方法项实施例中相关步骤的描述,在此不赘述。For the specific implementation of the processor, reference may be made to the description of relevant steps in the foregoing method embodiments, and details are not repeated here.
本发明实施例能够快速地通知图像旋转处理器是否对图像进行旋转操作,满足用户对实现图像旋转的自动化、智能化需求,软硬件成本较低。The embodiment of the present invention can quickly notify the image rotation processor whether to perform image rotation operation, satisfying the user's requirements for automatic and intelligent image rotation, and the cost of software and hardware is relatively low.
再请参见图16,是本发明实施例的其中一种成像系统的结构示意图,本发明实施例的所述成像系统包括图像采集模块211、旋转处理模块212、图像存储模块213、图像显示模块214,旋转检测模块311、传感器312以及按键313,具体的,各个模块之间的信号流包括:Please refer to FIG. 16 again, which is a schematic structural diagram of one of the imaging systems of the embodiment of the present invention. The imaging system of the embodiment of the present invention includes an image acquisition module 211, a rotation processing module 212, an image storage module 213, and an image display module 214. , the rotation detection module 311, the sensor 312 and the button 313, specifically, the signal flow between each module includes:
所述图像采集模块211包括镜头、图像传感器等组件,其在采集到图像后将采集到的图像发送给所述旋转处理模块212;The image acquisition module 211 includes components such as a lens and an image sensor, which sends the acquired image to the rotation processing module 212 after acquiring the image;
所述旋转处理模块212在接收到图像后,向所述旋转检测模块311发起询问,检测成像装置、支撑设备或是移动物体是否导致了所述图像采集模块211所在的成像装置发生旋转;After receiving the image, the rotation processing module 212 initiates an inquiry to the rotation detection module 311 to detect whether the imaging device, the support device or the moving object causes the imaging device where the image acquisition module 211 is located to rotate;
旋转检测模块311从用于监测成像装置、支撑设备或移动物体的旋转的传感器312中接收数据,对数据进行分析,判断成像装置、支撑设备或移动物体的旋转是否导致了成像装置的旋转。所述传感器312可以是加速度计等;The rotation detection module 311 receives data from the sensor 312 for monitoring the rotation of the imaging device, supporting device or moving object, analyzes the data, and determines whether the rotation of the imaging device, supporting device or moving object causes the rotation of the imaging device. The sensor 312 may be an accelerometer or the like;
所述旋转检测模块311在确定成像装置发生了旋转后,检测按键313是否被触发,是否启用了自动旋转功能。所述按键313可以是物理按键,也可以是APP的触屏按键等;After the rotation detection module 311 determines that the imaging device is rotated, it detects whether the button 313 is triggered and whether the automatic rotation function is enabled. The button 313 can be a physical button, or a touch screen button of an APP, etc.;
所述旋转检测模块311在检测到开启了自动旋转功能后,响应所述询问,向所属旋转处理模块212返回确认旋转的确认消息;After the rotation detection module 311 detects that the automatic rotation function is turned on, it responds to the inquiry and returns a confirmation message confirming the rotation to the rotation processing module 212 to which it belongs;
旋转处理模块212在接收到确认消息后对所述图像采集模块211采集到的图像进行旋转处理,并输出旋转后的图像至所述图像存储模块213和/或显示模块214,以供用户查看旋转后的图像。The rotation processing module 212 performs rotation processing on the image collected by the image acquisition module 211 after receiving the confirmation message, and outputs the rotated image to the image storage module 213 and/or the display module 214, so that the user can view the rotated image. after the image.
本发明实施例能够快速地通知图像旋转处理器是否对图像进行旋转操作,满足用户对实现图像旋转的自动化、智能化需求,软硬件成本较低。The embodiment of the present invention can quickly notify the image rotation processor whether to perform image rotation operation, satisfying the user's requirements for automatic and intelligent image rotation, and the cost of software and hardware is relatively low.
再请参见图17,是本发明实施例的一种图像处理系统的结构示意图,本发明实施例的所述系统具体可以包括:成像装置1和用于支撑该成像装置的支撑设备2,所述成像装置1和所述支撑设备2数据相连,所述成像装置1包括处理器,所述支撑设备2包括用于感测支撑设备旋转的传感器;其中,Please refer to FIG. 17 again, which is a schematic structural diagram of an image processing system according to an embodiment of the present invention. The system according to this embodiment of the present invention may specifically include: an imaging device 1 and a supporting device 2 for supporting the imaging device. The imaging device 1 is connected to the support device 2 in data, the imaging device 1 includes a processor, and the support device 2 includes a sensor for sensing the rotation of the support device; wherein,
所述处理器,用于当采集到图像时,根据所述支撑设备的旋转角度信息确定出所述成像装置的位置状态;若所述位置状态为表示所述成像装置处于旋转后的旋转位置状态,则按照预置的旋转规则对所述采集到的图像执行旋转操作;输出执行了所述旋转操作后的图像。The processor is configured to determine the position state of the imaging device according to the rotation angle information of the support device when the image is collected; if the position state is a rotation position state indicating that the imaging device is in a rotated , perform a rotation operation on the acquired image according to a preset rotation rule; and output the image after the rotation operation is performed.
进一步可选地,所述处理器,具体用于获取用于挂载所述成像装置的支撑设备的旋转角度信息;若获取到的支撑设备的旋转角度信息达到预设的角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。Further optionally, the processor is specifically configured to obtain rotation angle information of a support device used to mount the imaging device; if the obtained rotation angle information of the support device reaches a preset angle threshold, determine the The position state of the imaging device is a rotational position state indicating that the imaging device is rotated.
进一步可选地,所述处理器,具体用于从挂载所述成像装置的支撑设备中配置的旋转角度传感器中获取所述支撑设备的旋转角度信息;或者,从外置于所述成像装置的支撑设备并用于检测所述支撑设备的旋转角度传感器中获取所述支撑设备的旋转角度信息。Further optionally, the processor is specifically configured to acquire the rotation angle information of the support device from a rotation angle sensor configured in the support device on which the imaging device is mounted; The support device is used to detect the rotation angle sensor of the support device to obtain the rotation angle information of the support device.
本发明实施例中,所述的装置、设备以及处理器的具体实现可对应地参考上述方法、相关装置及处理器中的相关描述,在此不赘述。In the embodiment of the present invention, for specific implementation of the device, device and processor, reference may be made to relevant descriptions in the above method, related device and processor, and details are not repeated here.
本发明实施例可以根据成像装置的旋转状态来对其拍摄到的图像进行旋转,满足用户对图像旋转的自动化智能化需求,并且实现成本较低。The embodiment of the present invention can rotate the image captured by the imaging device according to the rotation state of the imaging device, so as to meet the user's demand for automatic and intelligent image rotation, and the implementation cost is low.
再请参见图18,是本发明实施例的一种图像处理系统的结构示意图,本发明实施例的所述系统包括:成像装置3和用于支撑该成像装置的移动物体4,所述成像装置3和所述移动物体4数据相连,所述成像装置3包括处理器,所述移动物体4包括用于感测移动物体旋转的传感器;其中,Please refer to FIG. 18 again, which is a schematic structural diagram of an image processing system according to an embodiment of the present invention. The system according to this embodiment of the present invention includes: an imaging device 3 and a moving object 4 for supporting the imaging device. The imaging device 3 is connected to the data of the moving object 4, the imaging device 3 includes a processor, and the moving object 4 includes a sensor for sensing the rotation of the moving object; wherein,
所述处理器,用于当采集到图像时,根据所述移动物体的旋转角度信息确定出所述成像装置的位置状态;若所述位置状态为表示所述成像装置处于旋转后的旋转位置状态,则按照预置的旋转规则对所述采集到的图像执行旋转操作;输出执行了所述旋转操作后的图像。The processor is configured to determine the position state of the imaging device according to the rotation angle information of the moving object when the image is collected; if the position state is a rotation position state indicating that the imaging device is in a rotated , perform a rotation operation on the acquired image according to a preset rotation rule; and output the image after the rotation operation is performed.
进一步可选地,所述处理器,具体用于获取用于挂载所述成像装置的移动物体的旋转角度信息;若获取到的移动物体的旋转角度信息达到预设的第二角度阈值,则确定所述成像装置的位置状态为表示所述成像装置处于旋转后的旋转位置状态。Further optionally, the processor is specifically configured to obtain rotation angle information of a mobile object used to mount the imaging device; if the obtained rotation angle information of the mobile object reaches a preset second angle threshold, then The position state of the imaging device is determined as a rotational position state indicating that the imaging device is in a rotated state.
进一步可选地,所述处理器,具体用于从挂载所述成像装置的移动物体中配置的旋转角度传感器中获取所述移动物体的旋转角度信息;或者,从外置于所述成像装置的移动物体并用于检测所述移动物体的旋转角度传感器中获取所述移动物体的旋转角度信息。Further optionally, the processor is specifically configured to acquire the rotation angle information of the mobile object from a rotation angle sensor configured in the mobile object mounted with the imaging device; The moving object is used to detect the rotation angle sensor of the moving object to obtain the rotation angle information of the moving object.
本发明实施例中,所述的装置、移动物体以及处理器的具体实现可对应地参考上述方法、相关装置及处理器中的相关描述,在此不赘述。In the embodiment of the present invention, for the specific implementation of the device, mobile object and processor, reference may be made to relevant descriptions in the above-mentioned method, related devices and processors, and details are not repeated here.
本发明实施例可以根据成像装置的旋转状态来对其拍摄到的图像进行旋转,满足用户对图像旋转的自动化智能化需求,并且实现成本较低。The embodiment of the present invention can rotate the image captured by the imaging device according to the rotation state of the imaging device, so as to meet the user's demand for automatic and intelligent image rotation, and the implementation cost is low.
在本发明所提供的几个实施例中,应该理解到,所揭露的相关装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present invention, it should be understood that the disclosed related devices and methods may be implemented in other ways. For example, the 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. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得计算机处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,RandomAccessMemory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions for causing a computer processor (processor) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disk or optical disk, and various media that can store program codes.
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only an embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technologies fields, are all included in the scope of patent protection of the present invention in the same way.
Claims (73)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2015/070139 WO2016109927A1 (en) | 2015-01-06 | 2015-01-06 | Image processing method, related device, processor and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105794198A true CN105794198A (en) | 2016-07-20 |
Family
ID=56355391
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201580002806.7A Pending CN105794198A (en) | 2015-01-06 | 2015-01-06 | An image processing method, related device, processor and system |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105794198A (en) |
| WO (1) | WO2016109927A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108521805A (en) * | 2017-03-28 | 2018-09-11 | 深圳市大疆灵眸科技有限公司 | The control method and aircraft of installation condition based on holder |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101068309A (en) * | 2007-05-24 | 2007-11-07 | 中兴通讯股份有限公司 | Method and device for automatic rotating mobile terminal camera head shooting results |
| CN102447822A (en) * | 2010-09-30 | 2012-05-09 | 蒂雅克股份有限公司 | Camera module mounting device |
| EP2645701A1 (en) * | 2012-03-29 | 2013-10-02 | Axis AB | Method for calibrating a camera |
| CN103813088A (en) * | 2012-11-13 | 2014-05-21 | 联想(北京)有限公司 | Information processing method and electronic device |
-
2015
- 2015-01-06 WO PCT/CN2015/070139 patent/WO2016109927A1/en not_active Ceased
- 2015-01-06 CN CN201580002806.7A patent/CN105794198A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101068309A (en) * | 2007-05-24 | 2007-11-07 | 中兴通讯股份有限公司 | Method and device for automatic rotating mobile terminal camera head shooting results |
| CN102447822A (en) * | 2010-09-30 | 2012-05-09 | 蒂雅克股份有限公司 | Camera module mounting device |
| EP2645701A1 (en) * | 2012-03-29 | 2013-10-02 | Axis AB | Method for calibrating a camera |
| CN103813088A (en) * | 2012-11-13 | 2014-05-21 | 联想(北京)有限公司 | Information processing method and electronic device |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108521805A (en) * | 2017-03-28 | 2018-09-11 | 深圳市大疆灵眸科技有限公司 | The control method and aircraft of installation condition based on holder |
| WO2018176233A1 (en) * | 2017-03-28 | 2018-10-04 | 深圳市大疆灵眸科技有限公司 | Cradle head-based mounting state control method, and aerial vehicle |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2016109927A1 (en) | 2016-07-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105049707B (en) | Method for preventing camera from stalling and mobile terminal | |
| KR101674011B1 (en) | Method and apparatus for operating camera function in portable terminal | |
| CN103017730B (en) | Single-camera ranging method and single-camera ranging system | |
| JP5978610B2 (en) | Information processing apparatus, information processing method, and program | |
| JP6029797B2 (en) | Angle measuring method, apparatus, terminal, program, and recording medium | |
| CN103970259B (en) | The method and terminal device of screen pattern switching | |
| US20170374284A1 (en) | Camera operation mode control | |
| JP5861218B2 (en) | Portable terminal device, display control method, and program | |
| CN110291775B (en) | A tracking shooting method, device and storage medium | |
| CN103064519A (en) | Information content display control method and terminal | |
| US11405970B2 (en) | Communication connection | |
| WO2015192579A1 (en) | Dirt detection method and device | |
| KR20140142441A (en) | Shooting Method for Three-Dimensional Modeling And Electrical Device Thereof | |
| CN105827967A (en) | Control method, control device and electronic device | |
| CN204291178U (en) | A kind of imaging device and system | |
| JP7517312B2 (en) | Vehicle occupant travel distance measuring device, travel distance measuring program, and travel distance measuring method | |
| JP5631065B2 (en) | Video distribution system, control terminal, network camera, control method and program | |
| JP7472281B2 (en) | Electronic device and focusing method | |
| CN105794198A (en) | An image processing method, related device, processor and system | |
| CN104601884B (en) | A kind of camera control method and terminal | |
| JP5955114B2 (en) | Imaging apparatus, control method thereof, and program | |
| US8619119B2 (en) | Digital photographing apparatus | |
| CN111917904B (en) | Control method and electronic device | |
| US9239638B2 (en) | Information processing device supporting suspension operation function, data processing method thereof, input device and input controlling method thereof | |
| CN106791674A (en) | VR image pickup methods, system and mobile terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| TA01 | Transfer of patent application right | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20170419 Address after: 518057 Guangdong city of Shenzhen province Nanshan District Guangdong streets south four Road No. 18 building in the West SKYWORTH semiconductor design 12 Applicant after: Shenzhen City, Jiang Mou Ling Technology Co. Ltd. Address before: 518057 Guangdong province Shenzhen city Nanshan District high tech Zone South Hing a No. 9 Hongkong, Shenzhen building 6 floor Applicant before: Shenzhen Dji Technology Co., Ltd. |
|
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160720 |