[go: up one dir, main page]

CN104184985B - The method and device of image acquisition - Google Patents

The method and device of image acquisition Download PDF

Info

Publication number
CN104184985B
CN104184985B CN201310202005.8A CN201310202005A CN104184985B CN 104184985 B CN104184985 B CN 104184985B CN 201310202005 A CN201310202005 A CN 201310202005A CN 104184985 B CN104184985 B CN 104184985B
Authority
CN
China
Prior art keywords
picture
operation frame
preset
shooting angle
focal length
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.)
Active
Application number
CN201310202005.8A
Other languages
Chinese (zh)
Other versions
CN104184985A (en
Inventor
初艳微
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310202005.8A priority Critical patent/CN104184985B/en
Publication of CN104184985A publication Critical patent/CN104184985A/en
Application granted granted Critical
Publication of CN104184985B publication Critical patent/CN104184985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

本发明公开了一种图像获取的方法及装置,涉及图像处理领域,能够解决通过全景摄像机进行监控时,监控设备成本高的问题。所述方法包括:显示全景图片以及全景图片中的操作框,全景图片用于表示能够监控到的监控范围,操作框用于表示当前的监控区域;接收用户对操作框触发的操作指示,操作指示用于移动操作框的位置或调节操作框的尺寸;根据操作指示从预设关系表中确定摄像机参数,所述摄像机参数包括摄像机的拍摄角度、焦距,所述预设关系表用于记录所述操作框的位置、尺寸与摄像机的拍摄角度、焦距的对应关系;根据摄像机参数获取监控图像,监控图像为监控区域当前的图像。本发明主要应用于视频监控的过程中。

The invention discloses an image acquisition method and device, relates to the field of image processing, and can solve the problem of high cost of monitoring equipment when a panoramic camera is used for monitoring. The method includes: displaying a panorama picture and an operation frame in the panorama picture, the panorama picture is used to represent the monitoring range that can be monitored, and the operation frame is used to represent the current monitoring area; receiving an operation instruction triggered by the user on the operation frame, the operation instruction It is used to move the position of the operation frame or adjust the size of the operation frame; determine the camera parameters from the preset relationship table according to the operation instructions, the camera parameters include the shooting angle and focal length of the camera, and the preset relationship table is used to record the The corresponding relationship between the position and size of the operation frame and the shooting angle and focal length of the camera; the monitoring image is obtained according to the camera parameters, and the monitoring image is the current image of the monitoring area. The invention is mainly applied in the process of video monitoring.

Description

图像获取的方法及装置Image acquisition method and device

技术领域technical field

本发明涉及图像处理领域,尤其涉及一种图像获取的方法及装置。The present invention relates to the field of image processing, in particular to an image acquisition method and device.

背景技术Background technique

球机全称为球型摄像机,是现代电视监控发展的代表,集成彩色一体化摄像机、云台、解码器、防护罩等多功能于一体,广泛应用于开阔区域的监控,适用于不同的场合。当球机在转动到最大转角时,将无法继续转动。用户不知道球机当前的转动位置是否已接近转动的最大范围,即无法提前判断监控对象是否将离开监控范围,当突然无法继续转动时,将给监视造成障碍。The full name of the dome camera is the dome camera, which is a representative of the development of modern TV monitoring. It integrates multiple functions such as a color integrated camera, a pan/tilt, a decoder, and a protective cover. It is widely used in the monitoring of open areas and is suitable for different occasions. When the speed dome rotates to the maximum angle, it cannot continue to rotate. The user does not know whether the current rotation position of the speed dome is close to the maximum range of rotation, that is, it is impossible to judge in advance whether the monitored object will leave the monitoring range, and when it suddenly cannot continue to rotate, it will cause obstacles to the monitoring.

为了解决上述问题,现有技术中提供了一种通过全景摄像机获取监控范围的图像,由于全景摄像机的像素分辨率较低,无法实现局部放大,因此通过具有云台全方位(上下、左右)移动及镜头变倍、变焦控制(Pan/Tilt/Zoom,简称PTZ)功能的球机对局部进行放大。通过一台全景摄像机配合多台PTZ球机达到对监视功能。由于全景摄像机无需转动即可获得最大监控范围的全部图像,因此能够避免用户无法提前判断监控对象是否将超出监控范围的问题。In order to solve the above problems, the prior art provides an image obtained by a panoramic camera to obtain a monitoring range. Because the pixel resolution of the panoramic camera is low, it is impossible to achieve local zooming. The dome camera with lens zoom and zoom control (Pan/Tilt/Zoom, PTZ for short) function can zoom in on the part. The monitoring function is achieved through a panoramic camera and multiple PTZ ball cameras. Since the panoramic camera can obtain all the images of the maximum monitoring range without turning, it can avoid the problem that the user cannot judge in advance whether the monitoring object will exceed the monitoring range.

在实现上述图像获取的过程中,发明人发现现有技术中至少存在如下问题:由于全景照相机需要单独进行购买和安装,因此监控设备成本高。In the process of realizing the above image acquisition, the inventor found at least the following problems in the prior art: since the panoramic camera needs to be purchased and installed separately, the cost of monitoring equipment is high.

发明内容Contents of the invention

本发明提供的一种图像获取的方法及装置,能够解决通过全景摄像机进行监控时,监控设备成本高的问题。The method and device for image acquisition provided by the present invention can solve the problem of high cost of monitoring equipment when the panoramic camera is used for monitoring.

第一方面,本发明提供了一种图像获取的方法,包括:In a first aspect, the present invention provides a method for image acquisition, comprising:

显示全景图片以及所述全景图片中的操作框,所述全景图片用于表示能够监控到的监控范围,所述操作框用于表示当前的监控区域;Displaying a panoramic picture and an operation frame in the panoramic picture, the panoramic picture is used to represent the monitoring range that can be monitored, and the operation frame is used to represent the current monitoring area;

接收用户对所述操作框触发的操作指示,所述操作指示用于移动所述操作框的位置或调节所述操作框的尺寸;receiving an operation instruction triggered by the user on the operation frame, where the operation instruction is used to move the position of the operation frame or adjust the size of the operation frame;

根据所述操作指示从预设关系表中确定摄像机参数,所述摄像机参数包括摄像机的拍摄角度、焦距,所述预设关系表用于记录所述操作框的位置、尺寸与摄像机的拍摄角度、焦距的对应关系;Determine camera parameters from a preset relationship table according to the operation instructions, the camera parameters include camera shooting angle and focal length, and the preset relationship table is used to record the position and size of the operation frame and the camera shooting angle, Correspondence of focal length;

根据所述摄像机参数获取监控图像,所述监控图像为所述监控区域当前的图像。A monitoring image is acquired according to the camera parameters, and the monitoring image is a current image of the monitoring area.

在所述第一方面的第一种可能的实现方式中,在所述显示全景图片以及所述全景图片中的操作框之前,所述方法还包括:In a first possible implementation manner of the first aspect, before displaying the panoramic picture and the operation frame in the panoramic picture, the method further includes:

根据最大所述拍摄角度按照预设焦距获取至少一幅监控区域的图片;Obtaining at least one picture of the monitoring area according to the maximum shooting angle according to the preset focal length;

根据所述至少一幅监控区域的图片生成所述全景图片;generating the panoramic picture according to the at least one picture of the monitoring area;

根据所述至少一幅监控区域的图片在所述全景图片中的位置以及获取所述图片时的所述拍摄角度,生成所述预设关系表,所述预设关系表还用于记录生成所述全景图片时使用的所述预设焦距。According to the position of the at least one picture of the monitoring area in the panoramic picture and the shooting angle when the picture is acquired, the preset relationship table is generated, and the preset relationship table is also used to record and generate the The preset focal length used when describing the panorama picture.

在所述第一方面或所述第一方面的第一种可能的实现方式中,还提供了所述第一方面的第二种可能的实现方式,在所述第一方面的第二种可能的实现方式中,所述根据最大所述拍摄角度按照预设焦距获取至少一幅监控区域的图片,包括:In the first aspect or the first possible implementation of the first aspect, a second possible implementation of the first aspect is also provided, and in the second possible implementation of the first aspect In an implementation manner, the acquisition of at least one picture of the monitoring area according to the preset focal length according to the maximum shooting angle includes:

获取水平方向的最大所述拍摄角度和垂直方向的最大所述拍摄角度;obtaining the maximum shooting angle in the horizontal direction and the maximum shooting angle in the vertical direction;

根据所述水平方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到水平图片集,所述水平图片集包含水平方向上至少一幅监控区域的图片;Scanning the monitoring range according to the maximum shooting angle in the horizontal direction and according to the preset focal length to obtain a horizontal picture set, the horizontal picture set includes at least one picture of the monitoring area in the horizontal direction;

根据所述垂直方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到垂直图片集,所述垂直图片集包含垂直方向上至少一幅监控区域的图片;Scanning the monitoring range according to the maximum shooting angle in the vertical direction and according to the preset focal length to obtain a vertical picture set, the vertical picture set includes at least one picture of the monitoring area in the vertical direction;

所述根据所述至少一幅监控区域的图片生成所述全景图片,包括:The generating the panoramic picture according to the at least one picture of the monitoring area includes:

根据所述水平图片集和所述垂直图片集,生成所述全景图片。The panoramic picture is generated according to the horizontal picture set and the vertical picture set.

在所述第一方面或所述第一方面的第一种可能或第二种可能的实现方式中,还提供了所述第一方面的第三种可能的实现方式,在所述第一方面的第三种可能的实现方式中,所述接收用户对所述操作框触发的操作指示,包括:In the first aspect or the first possible or second possible implementation of the first aspect, a third possible implementation of the first aspect is also provided, in the first aspect In a third possible implementation manner of , the receiving the operation instruction triggered by the user on the operation box includes:

接收用户对所述操作框触发的移动指示,所述移动指示用于移动所述操作框的位置;receiving a movement instruction triggered by the user on the operation frame, where the movement instruction is used to move the position of the operation frame;

所述根据所述操作指示从预设关系表中确定摄像机参数,包括:The determining the camera parameters from the preset relationship table according to the operation instruction includes:

根据所述移动指示和操作框坐标从所述预设关系表中确定所述拍摄角度。The shooting angle is determined from the preset relationship table according to the movement instruction and the coordinates of the operation frame.

在所述第一方面或所述第一方面的第一种可能、第二种可能或第三种可能的实现方式中,还提供了所述第一方面的第四种可能的实现方式,在所述第一方面的第四种可能的实现方式中,所述根据所述移动指示和操作框坐标从所述预设关系表中确定所述拍摄角度,包括:In the first aspect or the first possible, second possible or third possible implementation of the first aspect, a fourth possible implementation of the first aspect is also provided, in In a fourth possible implementation manner of the first aspect, the determining the shooting angle from the preset relationship table according to the movement instruction and the coordinates of the operation frame includes:

获取操作框的中心点坐标,所述中心点为所述操作框的几何中心;Obtain the coordinates of the center point of the operation frame, where the center point is the geometric center of the operation frame;

从所述移动指示中获取偏移向量;obtaining an offset vector from said movement indication;

根据所述中心点坐标和所述偏移向量,计算移动中心点坐标,所述移动中心点坐标用于表示移动后的操作框的中心点的坐标;Calculate the coordinates of the center point of movement according to the coordinates of the center point and the offset vector, and the coordinates of the center point of movement are used to represent the coordinates of the center point of the moved operation frame;

从所述预设关系表中查找与所述移动中心点坐标相对应的所述拍摄角度。The shooting angle corresponding to the coordinates of the moving center point is searched from the preset relationship table.

在所述第一方面或所述第一方面的第一种可能、第二种可能、第三种可能或第四种可能的实现方式中,还提供了所述第一方面的第五种可能的实现方式,在所述第一方面的第五种可能的实现方式中,所述接收用户对所述操作框触发的操作指示,包括:In the first aspect or the first possibility, the second possibility, the third possibility or the fourth possible implementation of the first aspect, a fifth possibility of the first aspect is also provided In a fifth possible implementation of the first aspect, the receiving an operation instruction triggered by the user on the operation box includes:

接收用户对所述操作框触发的缩放指示,所述缩放指示用于调节所述操作框的尺寸;receiving a zoom instruction triggered by the user on the operation frame, where the zoom instruction is used to adjust the size of the operation frame;

所述根据所述操作指示从预设关系表中确定摄像机参数,包括:The determining the camera parameters from the preset relationship table according to the operation instruction includes:

根据所述缩放指示从所述预设关系表中确定焦距。Determining the focal length from the preset relationship table according to the zoom indication.

在所述第一方面或所述第一方面的第一种可能、第二种可能、第三种可能、第四种可能或第五种可能中的实现方式中,还提供了所述第一方面的第六种可能的实现方式,在所述第一方面的第六种可能的实现方式中,所述根据所述缩放指示从所述预设关系表中确定焦距,包括:In the implementation manner of the first aspect or the first possibility, the second possibility, the third possibility, the fourth possibility or the fifth possibility of the first aspect, the first possibility is further provided. In a sixth possible implementation manner of the aspect, in the sixth possible implementation manner of the first aspect, the determining the focal length from the preset relationship table according to the zoom indication includes:

获取所述中心点坐标与当前操作框中预设位置点之间的距离d1;Obtain the distance d1 between the coordinates of the center point and the preset position point in the current operation frame;

获取所述中心点坐标与缩放后的操作框中所述预设位置点之间的距离d2;Obtain the distance d2 between the center point coordinates and the preset position point in the scaled operation frame;

根据所述d1、所述d2以及所述预设关系表中记录的预设焦距,计算缩放后的焦距。Calculate the zoomed focal length according to the d1, the d2, and the preset focal length recorded in the preset relationship table.

在所述第一方面或所述第一方面的第一种可能、第二种可能、第三种可能、第四种可能、第五种可能或第六种可能中的实现方式中,还提供了所述第一方面的第七种可能的实现方式,在所述第一方面的第七种可能的实现方式中,所述显示全景图片以及所述全景图片中的操作框,包括:In the implementation of the first aspect or the first possibility, the second possibility, the third possibility, the fourth possibility, the fifth possibility or the sixth possibility of the first aspect, further provided In the seventh possible implementation manner of the first aspect, in the seventh possible implementation manner of the first aspect, the displaying the panoramic picture and the operation box in the panoramic picture includes:

在所述全景图片中显示焦点的可达边界,所述可达边界用于表示光轴能够转动的最大范围。The reachable boundary of the focal point is displayed in the panoramic picture, and the reachable boundary is used to indicate the maximum range in which the optical axis can rotate.

在所述第一方面或所述第一方面的第一种可能、第二种可能、第三种可能、第四种可能、第五种可能、第六种可能或第七种可能中的实现方式中,还提供了所述第一方面的第八种可能的实现方式,在所述第一方面的第八种可能的实现方式中,所述方法还包括:Implementation in the first aspect or the first possibility, the second possibility, the third possibility, the fourth possibility, the fifth possibility, the sixth possibility or the seventh possibility of the first aspect In the method, an eighth possible implementation manner of the first aspect is also provided, and in the eighth possible implementation manner of the first aspect, the method further includes:

当操作框的几何中心点与所述可达边界的距离小于预设距离时,输出提示信息,所述提示信息用于表示所述操作框接近监控范围的边界。When the distance between the geometric center point of the operation frame and the reachable boundary is less than a preset distance, output prompt information, the prompt information is used to indicate that the operation frame is close to the boundary of the monitoring range.

第二方面,本发明还提供了一种图像获取的装置,包括:In a second aspect, the present invention also provides a device for image acquisition, including:

显示单元,用于显示全景图片以及所述全景图片中的操作框,所述全景图片用于表示能够监控到的监控范围,所述操作框用于表示当前的监控区域;A display unit, configured to display a panorama picture and an operation box in the panorama picture, the panorama picture is used to indicate a monitoring range that can be monitored, and the operation box is used to indicate a current monitoring area;

接收单元,用于接收用户对所述显示单元显示的所述操作框触发的操作指示,所述操作指示用于移动所述操作框的位置或调节所述操作框的尺寸;a receiving unit, configured to receive an operation instruction triggered by a user on the operation frame displayed on the display unit, where the operation instruction is used to move the position of the operation frame or adjust the size of the operation frame;

确定单元,用于根据所述接收单元接收的所述操作指示从预设关系表中确定摄像机参数,所述摄像机参数包括摄像机的拍摄角度、焦距,所述预设关系表用于记录所述操作框的位置、尺寸与摄像机的拍摄角度、焦距的对应关系;A determining unit, configured to determine camera parameters from a preset relationship table according to the operation instruction received by the receiving unit, the camera parameters including the shooting angle and focal length of the camera, and the preset relationship table is used to record the operation The corresponding relationship between the position and size of the frame and the shooting angle and focal length of the camera;

获取单元,用于根据所述确定单元确定的所述摄像机参数获取监控图像,所述监控图像为所述监控区域当前的图像。An acquiring unit, configured to acquire a monitoring image according to the camera parameters determined by the determining unit, where the monitoring image is a current image of the monitoring area.

在所述第二方面的第一种可能的实现方式中,所述获取单元还用于,根据最大所述拍摄角度按照预设焦距获取至少一幅监控区域的图片;In a first possible implementation manner of the second aspect, the acquiring unit is further configured to acquire at least one picture of the monitoring area according to the maximum shooting angle and a preset focal length;

所述装置还包括:The device also includes:

生成单元,用于根据所述获取单元获取的所述至少一幅监控区域的图片生成所述全景图片;a generation unit, configured to generate the panoramic picture according to the at least one picture of the monitoring area acquired by the acquisition unit;

所述生成单元还用于,根据所述至少一幅监控区域的图片在所述全景图片中的位置以及获取所述图片时的所述拍摄角度,生成所述预设关系表,所述预设关系表还用于记录生成所述全景图片时使用的所述预设焦距。The generating unit is further configured to generate the preset relationship table according to the position of the at least one picture of the monitoring area in the panoramic picture and the shooting angle when the picture is acquired, and the preset The relationship table is also used to record the preset focal length used when generating the panoramic picture.

在所述第二方面或所述第二方面的第一种可能的实现方式中,还提供了所述第二方面的第二种可能的实现方式,在所述第二方面的第二种可能的实现方式中,所述获取单元,包括:In the second aspect or the first possible implementation of the second aspect, a second possible implementation of the second aspect is also provided, and in the second possible implementation of the second aspect In an implementation manner, the acquisition unit includes:

第一获取子单元,用于获取水平方向的最大所述拍摄角度和垂直方向的最大所述拍摄角度;a first acquiring subunit, configured to acquire the maximum shooting angle in the horizontal direction and the maximum shooting angle in the vertical direction;

第二获取子单元,根据所述第一获取子单元获取的所述水平方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到水平图片集,所述水平图片集包含水平方向上至少一幅监控区域的图片;The second acquisition subunit scans the monitoring range according to the preset focal length according to the maximum shooting angle in the horizontal direction acquired by the first acquisition subunit to obtain a horizontal picture set, the horizontal picture set includes the horizontal direction Upload at least one picture of the surveillance area;

第三获取子单元,根据所述第一获取子单元获取的根据所述垂直方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到垂直图片集,所述垂直图片集包含垂直方向上至少一幅监控区域的图片;The third acquisition subunit scans the monitoring range according to the preset focal length according to the maximum shooting angle in the vertical direction acquired by the first acquisition subunit to obtain a vertical picture set, and the vertical picture set includes vertical At least one picture of the monitoring area in the direction;

所述生成单元还用于,根据所述第二获取子单元获取的所述水平图片集和所述第三获取子单元获取的所述垂直图片集,生成所述全景图片。The generating unit is further configured to generate the panoramic picture according to the horizontal picture set acquired by the second acquiring subunit and the vertical picture set acquired by the third acquiring subunit.

在所述第二方面或所述第二方面的第一种可能或第二种可能的实现方式中,还提供了所述第二方面的第三种可能的实现方式,在所述第二方面的第三种可能的实现方式中,所述接收单元,包括:In the second aspect or the first possible implementation or the second possible implementation of the second aspect, a third possible implementation of the second aspect is also provided, in the second aspect In a third possible implementation manner, the receiving unit includes:

第一接收子单元,用于接收用户对所述操作框触发的移动指示,所述移动指示用于移动所述操作框的位置;The first receiving subunit is configured to receive a movement instruction triggered by the user on the operation frame, where the movement instruction is used to move the position of the operation frame;

所述确定单元,包括:The determination unit includes:

第一确定子单元,用于根据所述第一接收子单元接收的所述移动指示和操作框坐标从所述预设关系表中确定所述拍摄角度。The first determining subunit is configured to determine the shooting angle from the preset relationship table according to the movement instruction and the coordinates of the operation frame received by the first receiving subunit.

在所述第二方面或所述第二方面的第一种可能、第二种可能或第三种可能的实现方式中,还提供了所述第二方面的第四种可能的实现方式,在所述第二方面的第四种可能的实现方式中,所述第一确定子单元,包括:In the second aspect or the first possible, second possible or third possible implementation of the second aspect, a fourth possible implementation of the second aspect is also provided, in In a fourth possible implementation manner of the second aspect, the first determining subunit includes:

第一获取模块,用于获取操作框的中心点坐标,所述中心点为所述操作框的几何中心;The first obtaining module is used to obtain the center point coordinates of the operation frame, and the center point is the geometric center of the operation frame;

第二获取模块,用于从所述第一接收子单元接收的所述移动指示中获取偏移向量;A second obtaining module, configured to obtain an offset vector from the movement indication received by the first receiving subunit;

第一计算模块,用于根据所述第一获取模块获取的所述中心点坐标和所述第二获取模块获取的所述偏移向量,计算移动中心点坐标,所述移动中心点坐标用于表示移动后的操作框的中心点的坐标;The first calculation module is configured to calculate the coordinates of the center point of movement according to the coordinates of the center point acquired by the first acquisition module and the offset vector acquired by the second acquisition module, and the coordinates of the center point of movement are used for Indicates the coordinates of the center point of the moved operation box;

查找模块,用于从所述生成单元生成的所述预设关系表中查找与所述第一计算模块计算的所述移动中心点坐标相对应的所述拍摄角度。A search module, configured to search the shooting angle corresponding to the coordinates of the moving center point calculated by the first calculation module from the preset relationship table generated by the generating unit.

在所述第二方面或所述第二方面的第一种可能、第二种可能、第三种可能或第四种可能的实现方式中,还提供了所述第二方面的第五种可能的实现方式,在所述第二方面的第五种可能的实现方式中,所述接收单元,还包括:In the second aspect or the first possibility, the second possibility, the third possibility or the fourth possible implementation of the second aspect, a fifth possibility of the second aspect is also provided In a fifth possible implementation manner of the second aspect, the receiving unit further includes:

第二接收子单元,用于接收用户对所述操作框触发的缩放指示,所述缩放指示用于调节所述操作框的尺寸;The second receiving subunit is configured to receive a zooming instruction triggered by the user on the operation frame, where the zoom instruction is used to adjust the size of the operation frame;

所述确定单元,还包括:The determination unit also includes:

第二确定子单元,根据所述第二接收子单元接收的所述缩放指示从所述预设关系表中确定焦距。The second determination subunit determines the focal length from the preset relationship table according to the zoom instruction received by the second receiving subunit.

在所述第二方面或所述第二方面的第一种可能、第二种可能、第三种可能、第四种可能或第五种可能中的实现方式中,还提供了所述第二方面的第六种可能的实现方式,在所述第二方面的第六种可能的实现方式中,所述第二确定子单元,包括:In the implementation of the second aspect or the first possibility, the second possibility, the third possibility, the fourth possibility or the fifth possibility of the second aspect, the second possibility is further provided. A sixth possible implementation manner of the aspect, in the sixth possible implementation manner of the second aspect, the second determining subunit includes:

第三获取模块,用于获取所述中心点坐标与当前操作框中预设位置点之间的距离d1;The third obtaining module is used to obtain the distance d1 between the center point coordinates and the preset position point in the current operation frame;

第四获取模块,用于获取所述中心点坐标与缩放后的操作框中所述预设位置点之间的距离d2;The fourth obtaining module is used to obtain the distance d2 between the center point coordinates and the preset position point in the scaled operation frame;

第二计算模块,用于根据所述第三获取模块获取的所述d1、所述第四获取模块获取的所述d2以及所述生成单元生成的所述预设关系表中记录的预设焦距,计算缩放后的焦距。The second calculation module is configured to use the d1 acquired by the third acquisition module, the d2 acquired by the fourth acquisition module, and the preset focal length recorded in the preset relationship table generated by the generating unit , to calculate the zoomed focal length.

在所述第二方面或所述第二方面的第一种可能、第二种可能、第三种可能、第四种可能、第五种可能或第六种可能中的实现方式中,还提供了所述第二方面的第七种可能的实现方式,在所述第二方面的第七种可能的实现方式中,所述显示单元还用于,在所述全景图片中显示焦点的可达边界,所述可达边界用于表示光轴能够转动的最大范围。In the implementation of the second aspect or the first possibility, the second possibility, the third possibility, the fourth possibility, the fifth possibility or the sixth possibility of the second aspect, further provided In the seventh possible implementation manner of the second aspect, in the seventh possible implementation manner of the second aspect, the display unit is further configured to display the reachability of the focus in the panoramic picture Boundary, the reachable boundary is used to represent the maximum range that the optical axis can rotate.

在所述第二方面或所述第二方面的第一种可能、第二种可能、第三种可能、第四种可能、第五种可能、第六种可能或第七种可能中的实现方式中,还提供了所述第二方面的第八种可能的实现方式,在所述第二方面的第八种可能的实现方式中,所述装置还包括:Implementation in the first possibility, the second possibility, the third possibility, the fourth possibility, the fifth possibility, the sixth possibility or the seventh possibility of the second aspect or the second aspect In the manner, an eighth possible implementation manner of the second aspect is also provided. In the eighth possible implementation manner of the second aspect, the device further includes:

输出单元,用于当操作框的几何中心点与所述可达边界的距离小于预设距离时,输出提示信息,所述提示信息用于表示所述操作框接近监控范围的边界。The output unit is configured to output prompt information when the distance between the geometric center point of the operation frame and the reachable boundary is less than a preset distance, and the prompt information is used to indicate that the operation frame is close to the boundary of the monitoring range.

第三方面,本发明还提供了一种计算机程序产品,包括计算机可读介质,所述计算机可读介质包括一组程序代码,用于执行第一方面所述的方法。In a third aspect, the present invention also provides a computer program product, including a computer-readable medium, where the computer-readable medium includes a set of program codes for executing the method described in the first aspect.

本发明提供的图像获取的方法及装置,能够在在全景图中显示当前监视区域的操作框,根据用户对操作框触发的操作指示确定摄像机参数,根据摄像机参数获取监控区域的图像。现有技术中,需要全景摄像机动态获取当前监控范围内的图像,在对图像中不同位置进行局部放大时,需要不同的PTZ球机进行放大处理,使用的设备台数多,导致监控设备成本高。本发明通过一台PTZ球机实现对监控区域的监控,能够降低监控设备的成本。同时,本发明中,通过一台PTZ球机即可完成全景图片的生成,并能够在全景图片中显示当前拍摄区域在拍摄范围中的位置,便于用户提前预判是否到达拍摄范围边界。现有技术中仅仅利用的PTZ球机的放大功能,而未充分利用其转动功能,本发明在形成全景图片时将PTZ球机的最大转动范围作为形成全景图片的测量范围,充分利用PTZ球机的转动功能,同时根据用户的操作指示调整焦距,利用了PTZ球机的缩放功能,进而提高PTZ球机的使用效率。The image acquisition method and device provided by the present invention can display the operation frame of the current monitoring area in the panorama, determine the camera parameters according to the operation instruction triggered by the user on the operation frame, and acquire the image of the monitoring area according to the camera parameters. In the prior art, panoramic cameras are required to dynamically acquire images within the current monitoring range, and different PTZ dome cameras are required to perform zoom-in processing when locally zooming in on different positions in the images, and the number of devices used is large, resulting in high cost of monitoring equipment. The invention realizes the monitoring of the monitoring area through a PTZ ball machine, and can reduce the cost of the monitoring equipment. At the same time, in the present invention, a PTZ ball camera can complete the generation of the panoramic picture, and can display the position of the current shooting area in the shooting range in the panoramic picture, which is convenient for the user to predict in advance whether to reach the shooting range boundary. In the prior art, only the magnification function of the PTZ ball camera is used, but its rotation function is not fully utilized. The present invention uses the maximum rotation range of the PTZ ball camera as the measurement range for forming a panoramic picture when forming a panoramic picture, and makes full use of the PTZ ball camera. At the same time, adjust the focus according to the user's operation instructions, and use the zoom function of the PTZ dome camera to improve the use efficiency of the PTZ dome camera.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例中第一个图像获取的方法的流程图;Fig. 1 is the flow chart of the method for the first image acquisition in the embodiment of the present invention;

图2为本发明实施例中第二个图像获取的方法的流程图;Fig. 2 is the flow chart of the method for the second image acquisition in the embodiment of the present invention;

图3为本发明实施例中第三个图像获取的方法的流程图;FIG. 3 is a flowchart of a third image acquisition method in an embodiment of the present invention;

图4为本发明实施例中在全景图片内显示焦点的位置范围的示意图;FIG. 4 is a schematic diagram of displaying a focus position range in a panoramic picture in an embodiment of the present invention;

图5为本发明实施例中第四个图像获取的方法的流程图;FIG. 5 is a flowchart of a fourth image acquisition method in an embodiment of the present invention;

图6为本发明实施例中第五个图像获取的方法的流程图;FIG. 6 is a flowchart of a fifth image acquisition method in an embodiment of the present invention;

图7为本发明实施例中根据移动指示确定坐标的示意图;Fig. 7 is a schematic diagram of determining coordinates according to a movement instruction in an embodiment of the present invention;

图8为本发明实施例中第六个图像获取的方法的流程图;FIG. 8 is a flowchart of a sixth image acquisition method in an embodiment of the present invention;

图9为本发明实施例中第七个图像获取的方法的流程图;FIG. 9 is a flowchart of a seventh image acquisition method in an embodiment of the present invention;

图10为本发明实施例中第一个图像获取的装置的结构示意图;FIG. 10 is a schematic structural diagram of the first image acquisition device in an embodiment of the present invention;

图11为本发明实施例中第二个图像获取的装置的结构示意图;FIG. 11 is a schematic structural diagram of a second image acquisition device in an embodiment of the present invention;

图12为本发明实施例中第三个图像获取的装置的结构示意图;FIG. 12 is a schematic structural diagram of a third image acquisition device in an embodiment of the present invention;

图13为本发明实施例中一个图像获取的系统的示意图。Fig. 13 is a schematic diagram of an image acquisition system in an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。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.

本发明实施例提供了一种图像获取的方法,所述方法应用于具有PTZ功能的电子设备中,所述具有摄像功能的电子设备可以为下述电子设备的任意一种:彩色摄像机、黑白摄像机等。下面为了方便描述,以具有PTZ功能的球机(PTZ球机)作为使用本发明所述方法的电子设备进行描述。如图1所示,所述方法包括:The embodiment of the present invention provides a method for image acquisition, the method is applied to an electronic device with a PTZ function, and the electronic device with a camera function can be any of the following electronic devices: a color camera, a black and white camera Wait. In the following, for the convenience of description, a dome camera with PTZ function (PTZ dome camera) will be described as the electronic device using the method of the present invention. As shown in Figure 1, the method includes:

步骤101、显示全景图片以及全景图片中的操作框,全景图片用于表示能够监控到的监控范围,操作框用于表示当前的监控区域。Step 101 , displaying the panorama picture and the operation frame in the panorama picture, the panorama picture is used to indicate the monitoring range that can be monitored, and the operation box is used to indicate the current monitoring area.

在用户进行监控时,通过在屏幕中显示一张全景图,该全景图用于表示能够监视到的监控范围。例如:在监控停车场时,PTZ球机的水平所述拍摄角度为270度,垂直所述拍摄角度为90度,此时全景图片为PTZ球机通过水平所述拍摄角度为270度,垂直所述拍摄角度为90度,得打的一张连续的画面。操作框为PTZ球机当前捕捉到的监控区域,例如上例中停车场中的一个车位。全景图片为一张静态图片,其用于表示能够监视到的全部监控范围,操作框用于表示当前的监控区域。When the user is monitoring, a panorama is displayed on the screen, and the panorama is used to indicate the monitoring range that can be monitored. For example: when monitoring the parking lot, the horizontal shooting angle of the PTZ ball camera is 270 degrees, and the vertical shooting angle is 90 degrees. The above-mentioned shooting angle is 90 degrees, and a continuous picture has to be shot. The operation frame is the monitoring area currently captured by the PTZ dome camera, such as a parking space in the parking lot in the above example. The panorama picture is a static picture, which is used to represent the entire monitoring range that can be monitored, and the operation frame is used to represent the current monitoring area.

步骤102、接收用户对操作框触发的操作指示,操作指示用于移动操作框的位置和调节操作框的尺寸。Step 102: Receive an operation instruction triggered by the user on the operation frame, where the operation instruction is used to move the position of the operation frame and adjust the size of the operation frame.

用户根据显示的全景图片以及操作框,能够获知当前的监控区域在监控范围中的位置。对于用户而言,通过移动操作框能够跟踪停车场中的某个人。当需要看清该人的面部特征时,用户可以通过缩小操作框来进行放大显示。The user can know the position of the current monitoring area within the monitoring range according to the displayed panoramic picture and the operation frame. For the user, it is possible to track someone in the parking lot by moving the action box. When it is necessary to see the facial features of the person clearly, the user can zoom in and display them by zooming out the operation frame.

步骤103、根据操作指示从预设关系表中确定摄像机参数,摄像机参数包括摄像机的拍摄角度、焦距,预设关系表用于记录操作框的位置、尺寸与摄像机的拍摄角度、焦距的对应关系。Step 103: Determine the camera parameters from the preset relationship table according to the operation instructions. The camera parameters include the shooting angle and focal length of the camera. The preset relationship table is used to record the corresponding relationship between the position and size of the operation frame and the shooting angle and focal length of the camera.

当所述操作指示用于移动操作框的位置时,根据操作指示指向的终点坐标在预设关系表中查找与之到对应的所述拍摄角度。当所述操作指示用于调节所述操作框的尺寸时,通过操作指示中前后操作框边长大小的比例以及生成全景图片时使用的预设焦距,能够得到操作指示指向后的焦距。When the operation instruction is used to move the position of the operation frame, the corresponding shooting angle is searched in the preset relationship table according to the coordinates of the end point pointed to by the operation instruction. When the operation instruction is used to adjust the size of the operation frame, the backward focal length of the operation instruction can be obtained through the ratio of the side lengths of the front and rear operation frames in the operation instruction and the preset focal length used when generating the panorama picture.

步骤104、根据摄像机参数获取监控图像,监控图像为监控区域当前的图像。Step 104: Obtain a monitoring image according to the camera parameters, where the monitoring image is a current image of the monitoring area.

在步骤103确定了摄像机参数之后,根据不同的摄像机参数调整PTZ球机的所述拍摄角度或焦距,并获取当前监控区域的图像。After the camera parameters are determined in step 103, the shooting angle or focal length of the PTZ ball camera is adjusted according to different camera parameters, and images of the current monitoring area are acquired.

本发明实施例提供的图像获取的方法,能够在在全景图中显示当前监视区域的操作框,根据用户对操作框触发的操作指示确定摄像机参数,根据摄像机参数获取监控区域的图像。现有技术中,需要全景摄像机动态获取当前监控范围内的图像,在对图像中不同位置进行局部放大时,需要不同的PTZ球机进行放大处理,使用的设备台数多,导致监控设备成本高。本发明通过一台PTZ球机实现对监控区域的监控,能够降低监控设备的成本。同时,本发明中,通过一台PTZ球机即可完成全景图片的生成,并能够在全景图片中显示当前拍摄区域在拍摄范围中的位置,便于用户提前预判是否到达拍摄范围边界。现有技术中仅仅利用的PTZ球机的放大功能,而未充分利用其转动功能,本发明在形成全景图片时将PTZ球机的最大转动范围作为形成全景图片的测量范围,充分利用PTZ球机的转动功能,同时根据用户的操作指示调整焦距,利用了PTZ球机的缩放功能,进而提高PTZ球机的使用效率。The image acquisition method provided by the embodiment of the present invention can display the operation frame of the current monitoring area in the panorama, determine the camera parameters according to the operation instruction triggered by the user on the operation frame, and acquire the image of the monitoring area according to the camera parameters. In the prior art, panoramic cameras are required to dynamically acquire images within the current monitoring range, and different PTZ dome cameras are required to perform zoom-in processing when locally zooming in on different positions in the images, and the number of devices used is large, resulting in high cost of monitoring equipment. The invention realizes the monitoring of the monitoring area through a PTZ ball machine, and can reduce the cost of the monitoring equipment. At the same time, in the present invention, a PTZ ball camera can complete the generation of the panoramic picture, and can display the position of the current shooting area in the shooting range in the panoramic picture, which is convenient for the user to predict in advance whether to reach the shooting range boundary. In the prior art, only the magnification function of the PTZ ball camera is used, but its rotation function is not fully utilized. The present invention uses the maximum rotation range of the PTZ ball camera as the measurement range for forming a panoramic picture when forming a panoramic picture, and makes full use of the PTZ ball camera. At the same time, adjust the focus according to the user's operation instructions, and use the zoom function of the PTZ dome camera to improve the use efficiency of the PTZ dome camera.

本发明实施例还提供了另一种图像获取的方法,用于说明图1所述方法中,全景图片的具体生成步骤,如图2所示,在步骤101之前,所述方法还包括:The embodiment of the present invention also provides another method for image acquisition, which is used to illustrate the specific steps of generating a panoramic picture in the method described in FIG. 1. As shown in FIG. 2, before step 101, the method further includes:

步骤201、根据最大所述拍摄角度按照预设焦距获取至少一幅监控区域的图片。Step 201, acquire at least one picture of the monitoring area according to the maximum shooting angle and the preset focal length.

不同的PTZ球机,具有的转动调度不尽相同。以水平最大所述拍摄角度为270度的PTZ球机为例:PTZ球机在从最小所述拍摄角度(0度)到最大所述拍摄角度(270度)进行移动的过程中,根据预设焦距获取监控区域的连续图片,通过对连续图片的拼接,能够得到全景图片。Different PTZ ball machines have different rotation schedules. Take the PTZ ball camera with the maximum horizontal shooting angle of 270 degrees as an example: the PTZ ball camera moves from the minimum shooting angle (0 degrees) to the maximum shooting angle (270 degrees), according to the preset The focal length acquires continuous pictures of the monitoring area, and through splicing the continuous pictures, a panoramic picture can be obtained.

具体的,如图3所示,步骤201包括:Specifically, as shown in Figure 3, step 201 includes:

步骤301、获取水平方向的最大所述拍摄角度和垂直方向的最大所述拍摄角度。Step 301. Obtain the maximum shooting angle in the horizontal direction and the maximum shooting angle in the vertical direction.

步骤302、根据水平方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到水平图片集,水平图片集包含水平方向上至少一幅监控区域的图片。Step 302: Scan the monitoring area according to the maximum shooting angle in the horizontal direction and the preset focal length to obtain a horizontal picture set, which includes at least one picture of the monitoring area in the horizontal direction.

步骤303、根据垂直方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到垂直图片集,垂直图片集包含垂直方向上至少一幅监控区域的图片。Step 303 : Scan the monitoring area according to the maximum shooting angle in the vertical direction and according to the preset focal length to obtain a vertical picture set. The vertical picture set includes at least one picture of the monitoring area in the vertical direction.

在获取到水平方向的最大所述拍摄角度(270度)和垂直方向的最大所述拍摄角度(90度)之后,分别在水平方向和垂直方向上从最小所述拍摄角度(0度)向最大所述拍摄角度(270度或90度)进行转动,并获取到连续的监控区域的图片(连续图片集)。步骤302与步骤303部分前后,只要连续图片集中能够包含全部监控范围中的图片即可,连续图片集中各图片可以存在重叠的部分。可选的,首先垂直方向的所述拍摄角度(0度)不变,获取0-270度的连续图片,其次更改垂直方向的所述拍摄角度(5度),再次获取0-270度的连续图片,直至垂直方向的所述拍摄角度为90度时并获取该角度上,水平方向上0-270度的连续图片,结束连续图片的获取。After obtaining the maximum shooting angle (270 degrees) in the horizontal direction and the maximum shooting angle (90 degrees) in the vertical direction, respectively in the horizontal direction and the vertical direction from the minimum shooting angle (0 degree) to the maximum The shooting angle (270 degrees or 90 degrees) is rotated, and pictures of continuous monitoring areas (sequential pictures set) are obtained. Before and after step 302 and step 303, as long as the continuous picture set can contain all the pictures in the monitoring range, the pictures in the continuous picture set can have overlapping parts. Optionally, firstly, the shooting angle (0 degree) in the vertical direction remains unchanged, and continuous pictures of 0-270 degrees are obtained, and secondly, the shooting angle (5 degrees) in the vertical direction is changed, and continuous pictures of 0-270 degrees are obtained again. pictures, until the shooting angle in the vertical direction is 90 degrees, and obtain continuous pictures at this angle and 0-270 degrees in the horizontal direction, and end the acquisition of continuous pictures.

需要说明的是,由于PTZ球机具有缩放功能,即可以按照不同的焦距进行摄像,因此使用预设焦距获取上述垂直图片集和水平图片集。可选的,预设焦距为PTZ球机能够实现的焦距范围区间(如0-100)的中间值(如50)。It should be noted that since the PTZ ball camera has a zoom function, that is, it can take pictures according to different focal lengths, so the above-mentioned vertical picture set and horizontal picture set are obtained by using the preset focal length. Optionally, the preset focal length is an intermediate value (such as 50) of the range of focal lengths (such as 0-100) that the PTZ ball camera can achieve.

步骤202、根据至少一幅监控区域的图片生成全景图片。Step 202, generating a panoramic picture according to at least one picture of the monitoring area.

在步骤303之后,步骤202包括:After step 303, step 202 includes:

步骤304、根据水平图片集和垂直图片集,生成全景图片。Step 304: Generate a panorama picture according to the horizontal picture set and the vertical picture set.

现有技术中提供了对具有重叠内容的连续图片进行合成,生成全景图片的技术方案,此处不再赘述。The prior art provides a technical solution for synthesizing consecutive pictures with overlapping content to generate a panoramic picture, which will not be repeated here.

步骤203、根据至少一幅监控区域的图片在全景图片中的位置以及获取图片时的所述拍摄角度,生成预设关系表,预设关系表还用于记录生成全景图片时使用的预设焦距。Step 203, according to the position of at least one picture of the monitoring area in the panorama picture and the shooting angle when the picture is acquired, a preset relationship table is generated, and the preset relationship table is also used to record the preset focal length used when generating the panorama picture .

预设关系表中还可以记录有步骤202中使用的预设焦距。在获取所述至少一幅监控区域的图片时,PTZ球机处于的不同的所述拍摄角度。步骤203中将不同的所述拍摄角度与根据至少一幅监控区域的图片生成的全景图片中的坐标位置进行关联。本领域技术人员能够得知,PTZ球机在进行摄像时,可以用光轴方向来代替PTZ球机的摄像方向,光轴上的不同位置点对应于不同的焦距。步骤202中,当光轴指向空间某坐标(1,1)时,获取图片Pic1-1,此时水平方向的所述拍摄角度为1度,垂直方向的所述拍摄角度为1度;当光轴指向空间某坐标(1,2)时,获取图片Pic1-2,此时水平方向的所述拍摄角度为1度,垂直方向的所述拍摄角度为2度;当光轴指向空间某坐标(2,1)时,获取图片Pic2-1,此时水平方向的所述拍摄角度为2度,垂直方向的所述拍摄角度为1度;当光轴指向空间某坐标(2,2)时,获取图片Pic2-2,此时水平方向的所述拍摄角度为2度,垂直方向的所述拍摄角度为2度。以此类推,能够得至少一幅监控区域的图片的集合:{Pic1-1、Pic1-2…Pic1-N,Pic2-1、Pic2-2…Pic2-N,PicM-1、PicM-2…PicM-N}。与该至少一幅监控区域的图片的集合对应的所述拍摄角度的集合为:{(1°,1°)、(1°,2°)…(1°,270°)、(2°,1°)、(2°,2°)…(2°,270°)、(90°,1°)、(90°,2°)…(90°,270°)},其中,以(2°,1°)为了,其用于表示水平方向的所述拍摄角度为2°,垂直方向的所述拍摄角度为1°。上述两个集合记录于预设对应关系表中。The preset focal length used in step 202 may also be recorded in the preset relationship table. When acquiring the at least one picture of the monitoring area, the PTZ ball camera is at different shooting angles. In step 203, the different shooting angles are associated with the coordinate positions in the panoramic picture generated according to at least one picture of the monitoring area. Those skilled in the art can know that when the PTZ dome camera is taking pictures, the direction of the optical axis can be used instead of the shooting direction of the PTZ dome camera, and different positions on the optical axis correspond to different focal lengths. In step 202, when the optical axis points to a certain coordinate (1, 1) in the space, the picture Pic1-1 is obtained, at this time, the shooting angle in the horizontal direction is 1 degree, and the shooting angle in the vertical direction is 1 degree; when the light When the axis points to a certain coordinate (1, 2) in the space, the picture Pic1-2 is obtained. At this time, the shooting angle in the horizontal direction is 1 degree, and the shooting angle in the vertical direction is 2 degrees; when the optical axis points to a certain coordinate in the space ( 2, 1), the picture Pic2-1 is obtained, the shooting angle in the horizontal direction is 2 degrees, and the shooting angle in the vertical direction is 1 degree; when the optical axis points to a certain coordinate (2, 2) in space, The picture Pic2-2 is acquired. At this time, the shooting angle in the horizontal direction is 2 degrees, and the shooting angle in the vertical direction is 2 degrees. By analogy, at least one set of pictures in the monitoring area can be obtained: {Pic1-1, Pic1-2...Pic1-N, Pic2-1, Pic2-2...Pic2-N, PicM-1, PicM-2...PicM -N}. The set of shooting angles corresponding to the set of pictures of the at least one monitoring area is: {(1°, 1°), (1°, 2°)...(1°, 270°), (2°, 1°), (2°, 2°)...(2°, 270°), (90°, 1°), (90°, 2°)...(90°, 270°)}, where (2 °, 1°) in order to indicate that the shooting angle in the horizontal direction is 2°, and the shooting angle in the vertical direction is 1°. The above two sets are recorded in the preset correspondence table.

需要说明的是,预设对应关系表中还可以保存操作框坐标(x,y)与所述拍摄角度(a°,b°)的对应关系的公式,其中操作框坐标为操作框的中心点坐标。可选的,所述公式为:a°=(x/X)*A,b°=(y/Y)*B,其中:X为全景图片水平方向的最大坐标值,Y为全景图片垂直方向的最大坐标值,A为PTZ球机水平方向的最大所述拍摄角度,B为PTZ球机垂直方向的最大所述拍摄角度。It should be noted that the formula for the correspondence between the coordinates of the operation frame (x, y) and the shooting angle (a°, b°) can also be stored in the preset correspondence table, wherein the coordinates of the operation frame are the center point of the operation frame coordinate. Optionally, the formula is: a°=(x/X)*A, b°=(y/Y)*B, wherein: X is the maximum coordinate value in the horizontal direction of the panoramic picture, and Y is the vertical direction of the panoramic picture A is the maximum shooting angle in the horizontal direction of the PTZ dome camera, and B is the maximum shooting angle in the vertical direction of the PTZ dome camera.

进一步的,预设对应关系表中还可以记录在所述全景图片中显示焦点的可达边界,所述可达边界用于表示光轴能够转动的最大范围。在显示全景图像时,如图4所示,将焦点(即光轴)的位置范围显示于屏幕上。此时,用户通过观察光轴的位置即可得知PTZ球机的是否还有转动的空间。Further, the preset correspondence table may also record the reachable boundary of the display focus in the panoramic picture, and the reachable boundary is used to represent the maximum range that the optical axis can rotate. When displaying a panoramic image, as shown in FIG. 4 , the position range of the focal point (that is, the optical axis) is displayed on the screen. At this time, the user can know whether there is room for rotation of the PTZ ball camera by observing the position of the optical axis.

本发明实施例提供的图像获取的方法,能够通过根据最大所述拍摄角度按照预设焦距获取至少一幅监控区域的图片,并根据所述至少一幅监控区域的图片生成全景图片以及预设对应关系表。预设对应关系表能够将前台显示的全景图片中操作框的位置与后台PTZ球机的所述拍摄角度以及焦距进行关联,保证用户操作的可实现性。The image acquisition method provided by the embodiment of the present invention can obtain at least one picture of the monitoring area according to the preset focal length according to the maximum shooting angle, and generate a panoramic picture and a preset corresponding image according to the at least one picture of the monitoring area. Relational tables. The preset correspondence table can associate the position of the operation frame in the panorama picture displayed on the foreground with the shooting angle and focal length of the PTZ dome camera in the background, so as to ensure the feasibility of user operations.

本发明实施例还提供了另一种图像获取的方法,作为对图1所示方法的具体描述,如图5所示,步骤102包括:The embodiment of the present invention also provides another image acquisition method, as a specific description of the method shown in Figure 1, as shown in Figure 5, step 102 includes:

步骤501、接收用户对操作框触发的移动指示,移动指示用于移动操作框的位置。Step 501: Receive a movement instruction triggered by the user on the operation frame, where the movement instruction is used to move the position of the operation frame.

步骤103包括:Step 103 includes:

步骤502、根据移动指示和操作框坐标从预设关系表中确定所述拍摄角度。Step 502: Determine the shooting angle from a preset relationship table according to the movement instruction and the coordinates of the operation frame.

具体的,如图6所示,步骤502包括:Specifically, as shown in FIG. 6, step 502 includes:

步骤601、获取操作框的中心点坐标,中心点为操作框的几何中心。Step 601. Acquire the coordinates of the center point of the operation frame, where the center point is the geometric center of the operation frame.

步骤602、从移动指示中获取偏移向量。Step 602. Obtain an offset vector from the movement indication.

步骤603、根据中心点坐标和偏移向量,计算移动中心点坐标,移动中心点坐标用于表示移动后的操作框的中心点的坐标。Step 603. Calculate the coordinates of the center point of movement according to the coordinates of the center point and the offset vector. The coordinates of the center point of movement are used to represent the coordinates of the center point of the moved operation frame.

步骤604、从预设关系表中查找与移动中心点坐标相对应的所述拍摄角度。Step 604, searching the shooting angle corresponding to the coordinates of the moving center point from a preset relational table.

当用户对操作框进行移动时,将触发移动指示。从移动指示中能够获取到移动向量,根据移动向量能够确定操作框的位置偏移量。将移动前的中心点坐标与位置偏移量进行相加,能够得到移动后的操作框的中心点坐标。如图7所示,移动前的中心点坐标为(1,3),偏移向量对应的位置偏移量为(3,-2),将上述两个坐标进行相加,得到移动后的中心点坐标(1+3,3-2)=(4,1)。然后,从预设关系表中查找出与(4,1)相对应的所述拍摄角度。When the user moves the action box, the movement indication will be triggered. The movement vector can be obtained from the movement instruction, and the position offset of the operation frame can be determined according to the movement vector. The center point coordinates of the moved operation frame can be obtained by adding the center point coordinates before the movement to the position offset. As shown in Figure 7, the coordinates of the center point before moving are (1, 3), and the position offset corresponding to the offset vector is (3, -2). Add the above two coordinates to get the center after moving Point coordinates (1+3, 3-2)=(4, 1). Then, the shooting angle corresponding to (4, 1) is found from the preset relationship table.

本发明实施例还提供了另一种图像获取的方法,作为对图1所示方法的具体描述,如图8所示,步骤102还包括:The embodiment of the present invention also provides another image acquisition method, as a specific description of the method shown in Figure 1, as shown in Figure 8, step 102 also includes:

步骤801、接收用户对操作框触发的缩放指示,缩放指示用于调节所述操作框的尺寸。Step 801: Receive a zoom instruction triggered by a user on an operation frame, where the zoom instruction is used to adjust the size of the operation frame.

步骤103还包括:Step 103 also includes:

步骤802、根据缩放指示从预设关系表中确定焦距。Step 802. Determine the focal length from the preset relationship table according to the zooming instruction.

具体的,如图9所示,步骤802包括:Specifically, as shown in FIG. 9, step 802 includes:

步骤901、获取中心点坐标与当前操作框中预设位置点之间的距离d1。Step 901. Obtain the distance d1 between the coordinates of the center point and the preset position point in the current operation frame.

步骤902、获取中心点坐标与缩放后的操作框中预设位置点之间的距离d2。Step 902, obtaining the distance d2 between the center point coordinates and the preset position point in the scaled operation frame.

步骤903、根据d1、d2以及预设关系表中记录的预设焦距,计算缩放后的焦距。Step 903: Calculate the zoomed focal length according to d1, d2 and the preset focal length recorded in the preset relationship table.

当用户对操作框的尺寸进行调整时,触发缩放指示。操作框的默认尺寸为获取全景图片时对应焦距。例如:生成全景图片时,由4幅监控区域的图片组成所述至少一幅监控区域的图片的集合,此时操作框的尺寸为一幅监控区域的图片的大小。由于操作框长短与焦距成反比,因此通过d1与d2的比值能顾获取缩放指示调整后的焦距。可选的,根据d1、d2以及预设焦距f计算缩放后的焦距f′的公式为:f′=(d2/d1)*f。如果在第一次缩放指示之后,再次调整操作框的尺寸,则可根据上一次计算得到的f′以及f′对应的焦距进一步确定再次调整后的焦距f″,f″=(d2/d1)*f′。When the user adjusts the size of the action box, the zoom indicator is triggered. The default size of the operation frame is the corresponding focal length when acquiring the panorama image. For example: when generating a panorama picture, the set of at least one picture of the monitoring area is composed of four pictures of the monitoring area, and the size of the operation frame at this time is the size of one picture of the monitoring area. Since the length of the operation frame is inversely proportional to the focal length, the adjusted focal length can be obtained through the ratio of d1 to d2. Optionally, the formula for calculating the zoomed focal length f' according to d1, d2 and the preset focal length f is: f'=(d2/d1)*f. If the size of the operation frame is adjusted again after the first zoom instruction, the readjusted focal length f″ can be further determined according to the f′ obtained from the previous calculation and the focal length corresponding to f′, f″=(d2/d1) *f'.

本发明实施例提供的图像获取的方法,在接收到移动指示时,能够根据移动指示确定移动后的操作框位置,并根据预设关系表确定PTZ球机的所述拍摄角度,进而实现根据用户指示调整所述拍摄角度的人机交互功能。The image acquisition method provided by the embodiment of the present invention can determine the position of the moved operation frame according to the movement instruction when receiving the movement instruction, and determine the shooting angle of the PTZ speed dome camera according to the preset relationship table, thereby realizing Indicates the human-computer interaction function for adjusting the shooting angle.

进一步的,本发明实施例还提供了一种图像获取的方法,作为对图1所示方法的进一步说明,所述方法还包括:Further, the embodiment of the present invention also provides a method for image acquisition, as a further description of the method shown in Figure 1, the method also includes:

当操作框的几何中心点与所述可达边界的距离小于预设距离时,输出提示信息,所述提示信息用于表示所述操作框接近监控范围的边界。When the distance between the geometric center point of the operation frame and the reachable boundary is less than a preset distance, output prompt information, the prompt information is used to indicate that the operation frame is close to the boundary of the monitoring range.

其中输出提示信息包括下述至少一种方式:显示提示信息,播放提示音,根据预设震动频率进行震动提示。The outputting prompt information includes at least one of the following methods: displaying prompt information, playing prompt sound, and vibrating prompt according to a preset vibration frequency.

其中,显示提示信息,可以是显示文字类信息和/或图片信息,也可以是更改操作框边框的颜色和/或以闪烁方式显示操作框边框颜色,还可以显示全景图片的边框和/或更改全景图片的边框颜色等。上述方式只作为对显示提示信息的举例说明,不作为对显示提示信息的限定。Among them, displaying prompt information can be displaying text information and/or picture information, or changing the color of the border of the operation box and/or displaying the color of the border of the operation box in a blinking manner, or displaying the border of a panoramic picture and/or changing the color of the border of the operation box. The border color of the panorama image, etc. The foregoing manner is only used as an example for displaying prompt information, and is not intended as a limitation for displaying prompt information.

除了根据操作框的几何中心点与可达边界的距离之外,还可以计算操作框的边框与全景图片边框的边框间距离,当该边框间距离小于预设边框距离时,输出提示信息。In addition to the distance between the geometric center point of the operation frame and the reachable boundary, the distance between the frame of the operation frame and the frame of the panorama picture can also be calculated, and when the distance between the frames is smaller than the preset frame distance, a prompt message is output.

本发明实施例提供的图像获取的方法,能够在操作框到达预设位置时,输出提示信息,达到提示用户当前监控区域已到达监控范围的边缘,以便用户进行调整,防止监控目标被跟丢。在接收到缩放指示时,能够根据d1、d2以及预设焦距确定用户调整后的焦距,进而实现根据用户指示调节焦距的人机交互功能。The image acquisition method provided by the embodiment of the present invention can output prompt information when the operation frame reaches the preset position, so as to remind the user that the current monitoring area has reached the edge of the monitoring range, so that the user can make adjustments and prevent the monitoring target from being lost. When the zoom instruction is received, the focal length adjusted by the user can be determined according to d1, d2 and the preset focal length, thereby realizing the human-computer interaction function of adjusting the focal length according to the user instruction.

需要说明的是,所述输出提示信息的技术方案对上述各实施例均适用。此外,上述实施例中,用户对所述操作框触发操作指示时,可以通过鼠标等按键式的人工输入设备触发,也可通过触摸屏接收用户的滑动轨迹的方式进行触发。通过鼠标的方式可以将操作框的中心点坐标与鼠标坐标进行关联,当鼠标移动时触发移动指示,当滚动鼠标上的滚轮时,触发缩放指示。当使用触摸屏接收用户触发的操作时:用户通过拖拽操作框能够触发移动指示,用户长按操作框边框并通过两个手指调整操作框尺寸能够触发缩放指示。It should be noted that the technical solution for outputting prompt information is applicable to all the above-mentioned embodiments. In addition, in the above-mentioned embodiment, when the user triggers an operation instruction on the operation box, it can be triggered by a key-type manual input device such as a mouse, or can be triggered by receiving the user's sliding track through a touch screen. The coordinates of the center point of the operation box and the coordinates of the mouse can be associated by means of the mouse. When the mouse moves, the movement indication is triggered, and when the scroll wheel on the mouse is rolled, the zoom indication is triggered. When the touch screen is used to receive user-triggered operations: the user can trigger the movement instruction by dragging the operation box, and the user can trigger the zoom instruction by long-pressing the border of the operation box and adjusting the size of the operation box with two fingers.

本发明实施例还提供了一种图像获取的装置,所述装置位于具有PTZ功能的电子设备中,所述具有摄像功能的电子设备可以为下述电子设备的任意一种:彩色摄像机、黑白摄像机等。下面为了方便描述,以具有PTZ功能的球机(PTZ球机)作为使用本发明所述方法的电子设备进行描述。所述装置如图10所示,包括:The embodiment of the present invention also provides an image acquisition device, the device is located in an electronic device with a PTZ function, and the electronic device with a camera function can be any of the following electronic devices: a color camera, a black and white camera Wait. In the following, for the convenience of description, a dome camera with PTZ function (PTZ dome camera) will be described as the electronic device using the method of the present invention. Described device is as shown in Figure 10, comprises:

显示单元1001,用于显示全景图片以及所述全景图片中的操作框,所述全景图片用于表示能够监控到的监控范围,所述操作框用于表示当前的监控区域。The display unit 1001 is configured to display a panorama picture and an operation box in the panorama picture, the panorama picture is used to indicate a monitoring range that can be monitored, and the operation box is used to indicate a current monitoring area.

接收单元1002,用于接收用户对所述显示单元1001显示的所述操作框触发的操作指示,所述操作指示用于移动所述操作框的位置或调节所述操作框的尺寸。The receiving unit 1002 is configured to receive an operation instruction triggered by a user on the operation frame displayed on the display unit 1001, where the operation instruction is used to move the position of the operation frame or adjust the size of the operation frame.

确定单元1003,用于根据所述接收单元1002接收的所述操作指示从预设关系表中确定摄像机参数,所述摄像机参数包括摄像机的拍摄角度、焦距,所述预设关系表用于记录所述操作框的位置、尺寸与摄像机的拍摄角度、焦距的对应关系。A determining unit 1003, configured to determine camera parameters from a preset relational table according to the operation instructions received by the receiving unit 1002, the camera parameters including the shooting angle and focal length of the camera, and the preset relational table is used to record the Describe the corresponding relationship between the position and size of the operation frame and the shooting angle and focal length of the camera.

获取单元1004,用于根据所述确定单元1003确定的所述摄像机参数获取监控图像,所述监控图像为所述监控区域当前的图像。The acquiring unit 1004 is configured to acquire a monitoring image according to the camera parameters determined by the determining unit 1003, where the monitoring image is a current image of the monitoring area.

本发明实施例还提供了一种图像获取的装置,所述装置作为对图10所述装置的进一步说明,如图11所示,所述装置还包括:生成单元1101和输出单元1102。The embodiment of the present invention also provides an image acquisition device. As a further description of the device shown in FIG. 10 , as shown in FIG. 11 , the device further includes: a generation unit 1101 and an output unit 1102 .

所述获取单元1004还用于,根据最大所述拍摄角度按照预设焦距获取至少一幅监控区域的图片。The obtaining unit 1004 is further configured to obtain at least one picture of the monitoring area according to the maximum shooting angle and a preset focal length.

所述生成单元1101,用于根据所述获取单元1004获取的所述至少一幅监控区域的图片生成所述全景图片;The generating unit 1101 is configured to generate the panoramic picture according to the at least one picture of the monitoring area acquired by the acquiring unit 1004;

所述生成单元1101还用于,根据所述至少一幅监控区域的图片在所述全景图片中的位置以及获取所述图片时的所述拍摄角度,生成所述预设关系表,所述预设关系表还用于记录生成所述全景图片时使用的所述预设焦距。所述显示单元1001还用于显示所述生成单元1101生成的所述全景图片。The generating unit 1101 is further configured to generate the preset relationship table according to the position of the at least one picture of the monitoring area in the panoramic picture and the shooting angle when the picture is acquired, the preset relationship table The setting relationship table is also used to record the preset focal length used when generating the panoramic picture. The display unit 1001 is further configured to display the panoramic picture generated by the generating unit 1101 .

进一步的,所述获取单元1004,包括:Further, the acquiring unit 1004 includes:

第一获取子单元41,用于获取水平方向的最大所述拍摄角度和垂直方向的最大所述拍摄角度。The first acquiring subunit 41 is configured to acquire the maximum shooting angle in the horizontal direction and the maximum shooting angle in the vertical direction.

第二获取子单元42,根据所述第一获取子单元41获取的所述水平方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到水平图片集,所述水平图片集包含水平方向上至少一幅监控区域的图片。The second acquisition subunit 42 scans the monitoring range according to the preset focal length according to the maximum shooting angle in the horizontal direction acquired by the first acquisition subunit 41 to obtain a horizontal picture set, the horizontal picture set includes At least one picture of the monitoring area in the horizontal direction.

第三获取子单元43,根据所述第一获取子单元41获取的所述垂直方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到垂直图片集,所述垂直图片集包含垂直方向上至少一幅监控区域的图片。The third acquisition subunit 43 scans the monitoring range according to the preset focal length according to the maximum shooting angle in the vertical direction acquired by the first acquisition subunit 41 to obtain a vertical picture set, the vertical picture set includes At least one picture of the monitored area in the vertical direction.

所述生成单元1101还用于,根据所述第二获取子单元42获取的所述水平图片集和所述第三获取子单元43获取的所述垂直图片集,生成所述全景图片。The generating unit 1101 is further configured to generate the panoramic picture according to the horizontal picture set acquired by the second acquiring subunit 42 and the vertical picture set acquired by the third acquiring subunit 43 .

进一步的,所述接收单元1002,包括:Further, the receiving unit 1002 includes:

第一接收子单元21,用于接收用户对所述操作框触发的移动指示,所述移动指示用于移动所述操作框的位置。The first receiving subunit 21 is configured to receive a movement instruction triggered by the user on the operation frame, where the movement instruction is used to move the position of the operation frame.

所述确定单元1003,包括:The determining unit 1003 includes:

第一确定子单元31,用于根据所述第一接收子单元21接收的所述移动指示和操作框坐标从所述预设关系表中确定所述拍摄角度。The first determining subunit 31 is configured to determine the shooting angle from the preset relationship table according to the movement instruction and the coordinates of the operation frame received by the first receiving subunit 21 .

进一步的,所述第一确定子单元31,包括:Further, the first determining subunit 31 includes:

第一获取模块311,用于获取操作框的中心点坐标,所述中心点为所述操作框的几何中心。The first obtaining module 311 is configured to obtain coordinates of a center point of the operation frame, where the center point is a geometric center of the operation frame.

第二获取模块312,用于从所述第一接收子单元21接收的所述移动指示中获取偏移向量。The second acquiring module 312 is configured to acquire an offset vector from the movement indication received by the first receiving subunit 21 .

第一计算模块313,用于根据所述第一获取模块311获取的所述中心点坐标和所述第二获取模块312获取的所述偏移向量,计算移动中心点坐标,所述移动中心点坐标用于表示移动后的操作框的中心点的坐标。The first calculation module 313 is configured to calculate the coordinates of the center point of movement according to the coordinates of the center point acquired by the first acquisition module 311 and the offset vector acquired by the second acquisition module 312, the center point of movement The coordinates are used to represent the coordinates of the center point of the moved operation box.

查找模块,用于从所述生成单元1101生成的所述预设关系表中查找与所述第一计算模块313计算的所述移动中心点坐标相对应的所述拍摄角度。A searching module, configured to search the shooting angle corresponding to the coordinates of the moving center point calculated by the first calculating module 313 from the preset relationship table generated by the generating unit 1101 .

进一步的,所述接收单元1002,还包括:Further, the receiving unit 1002 also includes:

第二接收子单元22,用于接收用户对所述操作框触发的缩放指示,所述缩放指示用于调节所述操作框的尺寸。The second receiving subunit 22 is configured to receive a scaling instruction triggered by the user on the operation frame, where the zoom instruction is used to adjust the size of the operation frame.

所述确定单元1003,还包括:The determining unit 1003 further includes:

第二确定子单元32,根据所述第二接收子单元22接收的所述缩放指示从所述预设关系表中确定焦距。The second determination subunit 32 determines the focal length from the preset relation table according to the zoom indication received by the second reception subunit 22 .

进一步的,所述第二确定子单元32,包括:Further, the second determining subunit 32 includes:

第三获取模块321,用于获取所述中心点坐标与当前操作框中预设位置点之间的距离d1。The third acquiring module 321 is configured to acquire the distance d1 between the center point coordinates and the preset position point in the current operation frame.

第四获取模块322,用于获取所述中心点坐标与缩放后的操作框中所述预设位置点之间的距离d2。The fourth acquiring module 322 is configured to acquire the distance d2 between the center point coordinates and the preset position point in the scaled operation frame.

第二计算模块323,用于根据所述第三获取模块321获取的所述d1、所述第四获取模块322获取的所述d2以及所述生成单元1101生成的所述预设关系表中记录的预设焦距,计算缩放后的焦距。The second computing module 323 is configured to record according to the d1 obtained by the third obtaining module 321, the d2 obtained by the fourth obtaining module 322, and the preset relationship table generated by the generating unit 1101 The preset focal length of , calculate the zoomed focal length.

进一步的,所述显示单元1001还用于,在所述全景图片中显示焦点的可达边界,所述可达边界用于表示光轴能够转动的最大范围。Further, the display unit 1001 is further configured to display the reachable boundary of the focal point in the panoramic picture, and the reachable boundary is used to indicate the maximum range in which the optical axis can rotate.

进一步的,所述输出单元1102,用于当操作框的几何中心点与所述可达边界的距离小于预设距离时,输出提示信息,所述提示信息用于表示所述操作框接近监控范围的边界。操作框的几何中心点位置可以通过第一计算模块313根据移动指示进行计算得到。Further, the output unit 1102 is configured to output prompt information when the distance between the geometric center point of the operation frame and the reachable boundary is less than a preset distance, and the prompt information is used to indicate that the operation frame is close to the monitoring range borders. The position of the geometric center point of the operation frame can be calculated by the first calculation module 313 according to the movement instruction.

本发明实施例提供的图像获取的装置,显示单元1001能够在在全景图中显示当前监视区域的操作框,确定单元1003根据接收单元1002接收的用户对操作框触发的操作指示确定摄像机参数,获取单元1004根据摄像机参数获取监控区域的图像。现有技术中,需要全景摄像机动态获取当前监控范围内的图像,在对图像中不同位置进行局部放大时,需要不同的PTZ球机进行放大处理,使用的设备台数多,导致监控设备成本高。本发明通过一台PTZ球机实现对监控区域的监控,能够降低监控设备的成本。同时,本发明中,通过一台PTZ球机即可完成全景图片的生成,并能够在全景图片中显示当前拍摄区域在拍摄范围中的位置,便于用户提前预判是否到达拍摄范围边界。现有技术中仅仅利用的PTZ球机的放大功能,而未充分利用其转动功能,本发明在形成全景图片时将PTZ球机的最大转动范围作为形成全景图片的测量范围,充分利用PTZ球机的转动功能,同时根据用户的操作指示调整焦距,利用了PTZ球机的缩放功能,进而提高PTZ球机的使用效率。此外,本发明实施例提供的图像获取的装置,生成单元1101能够通过根据最大所述拍摄角度按照预设焦距获取至少一幅监控区域的图片,并根据所述至少一幅监控区域的图片生成全景图片以及预设对应关系表。预设对应关系表能够将前台显示的全景图片中操作框的位置与后台PTZ球机的所述拍摄角度以及焦距进行关联,保证用户操作的可实现性。进一步的,在第一接收子单元21接收到移动指示时,确定单元1003能够根据移动指示确定移动后的操作框位置,并根据预设关系表确定PTZ球机的所述拍摄角度,进而实现根据用户指示调整所述拍摄角度的人机交互功能。输出单元1102能够在操作框到达预设位置时,输出提示信息,达到提示用户当前监控区域已到达监控范围的边缘,以便用户进行调整,防止监控目标被跟丢。在第二接收子单元22接收到缩放指示时,确定单元1003能够根据d1、d2以及预设焦距确定用户调整后的焦距,进而实现根据用户指示调节焦距的人机交互功能。In the image acquisition device provided by the embodiment of the present invention, the display unit 1001 can display the operation frame of the current monitoring area in the panorama, and the determination unit 1003 determines the camera parameters according to the operation instruction triggered by the user on the operation frame received by the receiving unit 1002, and obtains Unit 1004 acquires images of the monitoring area according to camera parameters. In the prior art, panoramic cameras are required to dynamically acquire images within the current monitoring range, and different PTZ dome cameras are required to perform zoom-in processing when locally zooming in on different positions in the images, and the number of devices used is large, resulting in high cost of monitoring equipment. The invention realizes the monitoring of the monitoring area through a PTZ ball machine, and can reduce the cost of the monitoring equipment. At the same time, in the present invention, a PTZ ball camera can complete the generation of the panoramic picture, and can display the position of the current shooting area in the shooting range in the panoramic picture, which is convenient for the user to predict in advance whether to reach the shooting range boundary. In the prior art, only the magnification function of the PTZ ball camera is used, but its rotation function is not fully utilized. The present invention uses the maximum rotation range of the PTZ ball camera as the measurement range for forming a panoramic picture when forming a panoramic picture, and makes full use of the PTZ ball camera. At the same time, adjust the focus according to the user's operation instructions, and use the zoom function of the PTZ dome camera to improve the use efficiency of the PTZ dome camera. In addition, in the image acquisition device provided by the embodiment of the present invention, the generating unit 1101 can acquire at least one picture of the monitoring area according to the preset focal length according to the maximum shooting angle, and generate a panorama based on the at least one picture of the monitoring area Pictures and preset correspondence tables. The preset correspondence table can associate the position of the operation frame in the panorama picture displayed on the foreground with the shooting angle and focal length of the PTZ dome camera in the background, so as to ensure the feasibility of user operations. Further, when the first receiving subunit 21 receives the moving instruction, the determining unit 1003 can determine the position of the moved operation frame according to the moving instruction, and determine the shooting angle of the PTZ ball camera according to the preset relationship table, and then realize the The human-computer interaction function that the user instructs to adjust the shooting angle. The output unit 1102 can output prompt information when the operation frame reaches the preset position to remind the user that the current monitoring area has reached the edge of the monitoring range, so that the user can make adjustments to prevent the monitoring target from being lost. When the second receiving subunit 22 receives the zooming instruction, the determining unit 1003 can determine the focal length adjusted by the user according to d1, d2 and the preset focal length, thereby realizing the human-computer interaction function of adjusting the focal length according to the user's instruction.

本发明实施例还提供了一种图像获取的装置,如图12所示,包括:The embodiment of the present invention also provides an image acquisition device, as shown in Figure 12, including:

显示器1201,用于显示全景图片以及所述全景图片中的操作框,所述全景图片用于表示能够监控到的监控范围,所述操作框用于表示当前的监控区域。The display 1201 is configured to display a panorama picture and an operation box in the panorama picture, the panorama picture is used to indicate a monitoring range that can be monitored, and the operation box is used to indicate a current monitoring area.

接收器1202,用于接收用户对所述显示器1201显示的所述操作框触发的操作指示,所述操作指示用于移动所述操作框的位置或调节所述操作框的尺寸。The receiver 1202 is configured to receive an operation instruction triggered by the user on the operation frame displayed on the display 1201 , the operation instruction is used to move the position of the operation frame or adjust the size of the operation frame.

处理器1203,用于根据所述接收器1202接收的所述操作指示从预设关系表中确定摄像机参数,所述摄像机参数包括摄像机的拍摄角度、焦距,所述预设关系表用于记录所述操作框的位置、尺寸与摄像机的拍摄角度、焦距的对应关系。Processor 1203, configured to determine camera parameters from a preset relational table according to the operation instructions received by the receiver 1202, where the camera parameters include the shooting angle and focal length of the camera, and the preset relational table is used to record all Describe the corresponding relationship between the position and size of the operation frame and the shooting angle and focal length of the camera.

感光器1204,用于根据所述处理器1203确定的所述摄像机参数获取监控图像,所述监控图像为所述监控区域当前的图像。The photoreceptor 1204 is configured to acquire a surveillance image according to the camera parameters determined by the processor 1203, where the surveillance image is a current image of the surveillance area.

本发明实施例还提供了一种图像获取的装置,所述装置作为对图12所述装置的进一步说明,所述装置还包括播放器1205。The embodiment of the present invention also provides an image acquisition device, which is a further description of the device shown in FIG. 12 , and the device further includes a player 1205 .

所述感光器1204还用于,根据最大所述拍摄角度按照预设焦距获取至少一幅监控区域的图片。The photoreceptor 1204 is also used to acquire at least one picture of the monitoring area according to the maximum shooting angle and the preset focal length.

所述处理器1203,用于根据所述感光器1204获取的所述至少一幅监控区域的图片生成所述全景图片;The processor 1203 is configured to generate the panoramic picture according to the at least one picture of the monitoring area acquired by the photoreceptor 1204;

所述处理器1203还用于,根据所述至少一幅监控区域的图片在所述全景图片中的位置以及获取所述图片时的所述拍摄角度,生成所述预设关系表,所述预设关系表还用于记录生成所述全景图片时使用的所述预设焦距。The processor 1203 is further configured to generate the preset relationship table according to the position of the at least one picture of the monitoring area in the panoramic picture and the shooting angle when the picture is acquired, and the preset relationship table is The setting relationship table is also used to record the preset focal length used when generating the panoramic picture.

进一步的,所述感光器1204,还用于:Further, the photoreceptor 1204 is also used for:

获取水平方向的最大所述拍摄角度和垂直方向的最大所述拍摄角度。The maximum shooting angle in the horizontal direction and the maximum shooting angle in the vertical direction are obtained.

根据所述水平方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到水平图片集,所述水平图片集包含水平方向上至少一幅监控区域的图片。Scanning the monitoring range according to the maximum shooting angle in the horizontal direction and according to the preset focal length to obtain a horizontal picture set, the horizontal picture set includes at least one picture of the monitoring area in the horizontal direction.

根据所述垂直方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到垂直图片集,所述垂直图片集包含垂直方向上至少一幅监控区域的图片。Scanning the monitoring range according to the maximum shooting angle in the vertical direction and according to the preset focal length to obtain a vertical picture set, the vertical picture set includes at least one picture of the monitoring area in the vertical direction.

所述处理器1203还用于,根据所述水平图片集和所述垂直图片集,生成所述全景图片。The processor 1203 is further configured to generate the panoramic picture according to the horizontal picture set and the vertical picture set.

进一步的,所述接收器1202还用于:Further, the receiver 1202 is also used for:

接收用户对所述操作框触发的移动指示,所述移动指示用于移动所述操作框的位置。A movement instruction triggered by the user on the operation frame is received, and the movement instruction is used to move the position of the operation frame.

所述处理器1203还用于,根据所述接收器1202接收的所述移动指示和操作框坐标从所述预设关系表中确定所述拍摄角度。The processor 1203 is further configured to determine the shooting angle from the preset relationship table according to the movement instruction and the coordinates of the operation frame received by the receiver 1202 .

进一步的,所述处理器1203还用于:Further, the processor 1203 is further configured to:

获取操作框的中心点坐标,所述中心点为所述操作框的几何中心。Acquire the coordinates of the center point of the operation frame, where the center point is the geometric center of the operation frame.

从所述移动指示中获取偏移向量。An offset vector is obtained from the movement indication.

根据所述中心点坐标和所述偏移向量,计算移动中心点坐标,所述移动中心点坐标用于表示移动后的操作框的中心点的坐标。According to the coordinates of the center point and the offset vector, the coordinates of the moving center point are calculated, and the coordinates of the moving center point are used to represent the coordinates of the center point of the moved operation frame.

从所述预设关系表中查找与所述移动中心点坐标相对应的所述拍摄角度。The shooting angle corresponding to the coordinates of the moving center point is searched from the preset relationship table.

进一步的,所述接收器1202,还用于接收用户对所述操作框触发的缩放指示,所述缩放指示用于调节所述操作框的尺寸。Further, the receiver 1202 is also configured to receive a scaling instruction triggered by the user on the operation frame, where the zoom instruction is used to adjust the size of the operation frame.

所述处理器1203,还用于,根据所述接收器1202接收的所述缩放指示从所述预设关系表中确定焦距。The processor 1203 is further configured to determine the focal length from the preset relationship table according to the zoom indication received by the receiver 1202 .

进一步的,所述处理器1203还用于:Further, the processor 1203 is further configured to:

获取所述中心点坐标与当前操作框中预设位置点之间的距离d1。Obtain the distance d1 between the center point coordinates and the preset position point in the current operation frame.

获取所述中心点坐标与缩放后的操作框中所述预设位置点之间的距离d2。Obtain the distance d2 between the coordinates of the center point and the preset position point in the scaled operation frame.

根据所述d1、所述d2以及所述预设关系表中记录的预设焦距,计算缩放后的焦距。Calculate the zoomed focal length according to the d1, the d2, and the preset focal length recorded in the preset relationship table.

进一步的,所述显示器1201还用于,在所述全景图片中显示焦点的可达边界,所述可达边界用于表示光轴能够转动的最大范围。Further, the display 1201 is further configured to display the reachable boundary of the focal point in the panoramic picture, and the reachable boundary is used to indicate the maximum range in which the optical axis can rotate.

进一步的,所述播放器1205,用于当操作框的几何中心点与所述可达边界的距离小于预设距离时,输出提示信息,所述提示信息用于表示所述操作框接近监控范围的边界。Further, the player 1205 is configured to output prompt information when the distance between the geometric center point of the operation frame and the reachable boundary is less than a preset distance, and the prompt information is used to indicate that the operation frame is close to the monitoring range borders.

本发明实施例提供的图像获取的装置,显示器1201能够在在全景图中显示当前监视区域的操作框,处理器1203根据接收器1202接收的用户对操作框触发的操作指示确定摄像机参数,感光器1204根据摄像机参数获取监控区域的图像。现有技术中,需要全景摄像机动态获取当前监控范围内的图像,在对图像中不同位置进行局部放大时,需要不同的PTZ球机进行放大处理,使用的设备台数多,导致监控设备成本高。本发明通过一台PTZ球机实现对监控区域的监控,能够降低监控设备的成本。同时,本发明中,通过一台PTZ球机即可完成全景图片的生成,并能够在全景图片中显示当前拍摄区域在拍摄范围中的位置,便于用户提前预判是否到达拍摄范围边界。现有技术中仅仅利用的PTZ球机的放大功能,而未充分利用其转动功能,本发明在形成全景图片时将PTZ球机的最大转动范围作为形成全景图片的测量范围,充分利用PTZ球机的转动功能,同时根据用户的操作指示调整焦距,利用了PTZ球机的缩放功能,进而提高PTZ球机的使用效率。此外,本发明实施例提供的图像获取的装置,处理器1203能够通过根据最大所述拍摄角度按照预设焦距获取至少一幅监控区域的图片,并根据所述至少一幅监控区域的图片生成全景图片以及预设对应关系表。预设对应关系表能够将前台显示的全景图片中操作框的位置与后台PTZ球机的所述拍摄角度以及焦距进行关联,保证用户操作的可实现性。进一步的,在接收器1202接收到移动指示时,处理器1203能够根据移动指示确定移动后的操作框位置,并根据预设关系表确定PTZ球机的所述拍摄角度,进而实现根据用户指示调整所述拍摄角度的人机交互功能。播放器1205能够在操作框到达预设位置时,输出提示信息,达到提示用户当前监控区域已到达监控范围的边缘,以便用户进行调整,防止监控目标被跟丢。在接收器1202接收到缩放指示时,处理器1203能够根据d1、d2以及预设焦距确定用户调整后的焦距,进而实现根据用户指示调节焦距的人机交互功能。In the image acquisition device provided by the embodiment of the present invention, the display 1201 can display the operation frame of the current monitoring area in the panorama, the processor 1203 determines the camera parameters according to the operation instruction triggered by the user on the operation frame received by the receiver 1202, and the photoreceptor 1204 Acquire images of the monitoring area according to the camera parameters. In the prior art, panoramic cameras are required to dynamically acquire images within the current monitoring range, and different PTZ dome cameras are required to perform zoom-in processing when locally zooming in on different positions in the images, and the number of devices used is large, resulting in high cost of monitoring equipment. The invention realizes the monitoring of the monitoring area through a PTZ ball machine, and can reduce the cost of the monitoring equipment. At the same time, in the present invention, a PTZ ball camera can complete the generation of the panoramic picture, and can display the position of the current shooting area in the shooting range in the panoramic picture, which is convenient for the user to predict in advance whether to reach the shooting range boundary. In the prior art, only the magnification function of the PTZ ball camera is used, but its rotation function is not fully utilized. The present invention uses the maximum rotation range of the PTZ ball camera as the measurement range for forming a panoramic picture when forming a panoramic picture, and makes full use of the PTZ ball camera. At the same time, adjust the focus according to the user's operation instructions, and use the zoom function of the PTZ dome camera to improve the use efficiency of the PTZ dome camera. In addition, in the image acquisition device provided by the embodiment of the present invention, the processor 1203 can acquire at least one picture of the monitoring area according to the preset focal length according to the maximum shooting angle, and generate a panorama based on the at least one picture of the monitoring area Pictures and preset correspondence tables. The preset correspondence table can associate the position of the operation frame in the panorama picture displayed on the foreground with the shooting angle and focal length of the PTZ dome camera in the background, so as to ensure the feasibility of user operations. Further, when the receiver 1202 receives the movement instruction, the processor 1203 can determine the position of the moved operation frame according to the movement instruction, and determine the shooting angle of the PTZ dome camera according to the preset relationship table, and then realize adjustment according to the user instruction The human-computer interaction function of the shooting angle. The player 1205 can output prompt information when the operation frame reaches the preset position to remind the user that the current monitoring area has reached the edge of the monitoring range, so that the user can make adjustments and prevent the monitoring target from being lost. When the receiver 1202 receives the zooming instruction, the processor 1203 can determine the focal length adjusted by the user according to d1, d2 and the preset focal length, thereby realizing the human-computer interaction function of adjusting the focal length according to the user's instruction.

本发明实施例还提供了一种计算机程序产品,包括计算机可读介质,所述计算机可读介质包括一组程序代码,所述一组程序代码用于执行图1至图9中任意一幅所示的方法。An embodiment of the present invention also provides a computer program product, including a computer-readable medium, where the computer-readable medium includes a set of program codes, and the set of program codes is used to execute any one of the programs shown in FIG. 1 to FIG. 9 . method shown.

所述计算机程序产品如图13所示,图像获取的系统,包括显示模块1301、摄像模块1302、存储模块1303、输入输出模块1304以及处理模块1305,该组程序代码用于执行上述模块的功能。The computer program product is shown in FIG. 13 , the image acquisition system includes a display module 1301 , a camera module 1302 , a storage module 1303 , an input and output module 1304 and a processing module 1305 , and this group of program codes is used to execute the functions of the above modules.

显示模块1301,用于显示全景图片以及所述全景图片中的操作框,所述全景图片用于表示能够监控到的监控范围,所述操作框用于表示当前的监控区域。The display module 1301 is configured to display a panorama picture and an operation box in the panorama picture, the panorama picture is used to indicate a monitoring range that can be monitored, and the operation box is used to indicate a current monitoring area.

输入输出模块1304,用于接收用户对所述显示模块1301显示的所述操作框触发的操作指示,所述操作指示用于移动所述操作框的位置或调节所述操作框的尺寸。The input and output module 1304 is configured to receive an operation instruction triggered by the user on the operation frame displayed on the display module 1301, and the operation instruction is used to move the position of the operation frame or adjust the size of the operation frame.

处理模块1305,用于根据所述输入输出模块1304接收的所述操作指示从预设关系表中确定摄像机参数,所述摄像机参数包括摄像机的拍摄角度、焦距,所述预设关系表用于记录所述操作框的位置、尺寸与摄像机的拍摄角度、焦距的对应关系。A processing module 1305, configured to determine camera parameters from a preset relationship table according to the operation instruction received by the input and output module 1304, the camera parameters including the shooting angle and focal length of the camera, and the preset relationship table is used to record The corresponding relationship between the position and size of the operation frame and the shooting angle and focal length of the camera.

摄像模块1302,用于根据所述处理模块1305确定的所述摄像机参数获取监控图像,所述监控图像为所述监控区域当前的图像。The camera module 1302 is configured to acquire a surveillance image according to the camera parameters determined by the processing module 1305, where the surveillance image is a current image of the surveillance area.

所述摄像模块1302还用于,根据最大所述拍摄角度按照预设焦距获取至少一幅监控区域的图片。The camera module 1302 is further configured to acquire at least one picture of the monitoring area according to the maximum shooting angle and a preset focal length.

所述处理模块1305,用于根据所述摄像模块1302获取的所述至少一幅监控区域的图片生成所述全景图片;The processing module 1305 is configured to generate the panoramic picture according to the at least one picture of the monitoring area acquired by the camera module 1302;

所述处理模块1305还用于,根据所述至少一幅监控区域的图片在所述全景图片中的位置以及获取所述图片时的所述拍摄角度,生成所述预设关系表,所述预设关系表还用于记录生成所述全景图片时使用的所述预设焦距。The processing module 1305 is further configured to generate the preset relationship table according to the position of the at least one picture of the monitoring area in the panoramic picture and the shooting angle when the picture is acquired, and the preset relationship table is The setting relationship table is also used to record the preset focal length used when generating the panoramic picture.

进一步的,所述摄像模块1302,还用于:Further, the camera module 1302 is also used for:

获取水平方向的最大所述拍摄角度和垂直方向的最大所述拍摄角度。The maximum shooting angle in the horizontal direction and the maximum shooting angle in the vertical direction are obtained.

根据所述水平方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到水平图片集,所述水平图片集包含水平方向上至少一幅监控区域的图片。Scanning the monitoring range according to the maximum shooting angle in the horizontal direction and according to the preset focal length to obtain a horizontal picture set, the horizontal picture set includes at least one picture of the monitoring area in the horizontal direction.

根据所述垂直方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到垂直图片集,所述垂直图片集包含垂直方向上至少一幅监控区域的图片。Scanning the monitoring range according to the maximum shooting angle in the vertical direction and according to the preset focal length to obtain a vertical picture set, the vertical picture set includes at least one picture of the monitoring area in the vertical direction.

所述处理模块1305还用于,根据所述水平图片集和所述垂直图片集,生成所述全景图片。The processing module 1305 is further configured to generate the panoramic picture according to the horizontal picture set and the vertical picture set.

进一步的,所述输入输出模块1304还用于:Further, the input and output module 1304 is also used for:

接收用户对所述操作框触发的移动指示,所述移动指示用于移动所述操作框的位置。A movement instruction triggered by the user on the operation frame is received, and the movement instruction is used to move the position of the operation frame.

所述处理模块1305还用于,根据所述输入输出模块1304接收的所述移动指示和操作框坐标从所述预设关系表中确定所述拍摄角度。The processing module 1305 is further configured to determine the shooting angle from the preset relationship table according to the movement instruction and the coordinates of the operation frame received by the input and output module 1304 .

进一步的,所述处理模块1305还用于:Further, the processing module 1305 is also used for:

获取操作框的中心点坐标,所述中心点为所述操作框的几何中心。Acquire the coordinates of the center point of the operation frame, where the center point is the geometric center of the operation frame.

从所述移动指示中获取偏移向量。An offset vector is obtained from the movement indication.

根据所述中心点坐标和所述偏移向量,计算移动中心点坐标,所述移动中心点坐标用于表示移动后的操作框的中心点的坐标。According to the coordinates of the center point and the offset vector, the coordinates of the moving center point are calculated, and the coordinates of the moving center point are used to represent the coordinates of the center point of the moved operation frame.

从所述预设关系表中查找与所述移动中心点坐标相对应的所述拍摄角度。The shooting angle corresponding to the coordinates of the moving center point is searched from the preset relationship table.

进一步的,所述输入输出模块1304,还用于接收用户对所述操作框触发的缩放指示,所述缩放指示用于调节所述操作框的尺寸。Further, the input and output module 1304 is further configured to receive a scaling instruction triggered by the user on the operation frame, and the zoom instruction is used to adjust the size of the operation frame.

所述处理模块1305,还用于,根据所述输入输出模块1304接收的所述缩放指示从所述预设关系表中确定焦距。The processing module 1305 is further configured to determine the focal length from the preset relationship table according to the zoom instruction received by the input and output module 1304 .

进一步的,所述处理模块1305还用于:Further, the processing module 1305 is also used for:

获取所述中心点坐标与当前操作框中预设位置点之间的距离d1。Obtain the distance d1 between the center point coordinates and the preset position point in the current operation frame.

获取所述中心点坐标与缩放后的操作框中所述预设位置点之间的距离d2。Obtain the distance d2 between the coordinates of the center point and the preset position point in the scaled operation frame.

根据所述d1、所述d2以及所述预设关系表中记录的预设焦距,计算缩放后的焦距。Calculate the zoomed focal length according to the d1, the d2, and the preset focal length recorded in the preset relationship table.

进一步的,所述显示模块1301还用于,在所述全景图片中显示焦点的可达边界,所述可达边界用于表示光轴能够转动的最大范围。Further, the display module 1301 is further configured to display the reachable boundary of the focal point in the panoramic picture, and the reachable boundary is used to indicate the maximum range that the optical axis can rotate.

进一步的,所述输入输出模块1304,用于当操作框的几何中心点与所述可达边界的距离小于预设距离时,输出提示信息,所述提示信息用于表示所述操作框接近监控范围的边界。Further, the input and output module 1304 is configured to output prompt information when the distance between the geometric center point of the operation frame and the reachable boundary is less than a preset distance, and the prompt information is used to indicate that the operation frame is close to monitoring The bounds of the range.

本发明实施例提供的图像获取的装置,显示模块1301能够在在全景图中显示当前监视区域的操作框,处理模块1305根据输入输出模块1304接收的用户对操作框触发的操作指示确定摄像机参数,摄像模块1302根据摄像机参数获取监控区域的图像。现有技术中,需要全景摄像机动态获取当前监控范围内的图像,在对图像中不同位置进行局部放大时,需要不同的PTZ球机进行放大处理,使用的设备台数多,导致监控设备成本高。本发明通过一台PTZ球机实现对监控区域的监控,能够降低监控设备的成本。同时,本发明中,通过一台PTZ球机即可完成全景图片的生成,并能够在全景图片中显示当前拍摄区域在拍摄范围中的位置,便于用户提前预判是否到达拍摄范围边界。现有技术中仅仅利用的PTZ球机的放大功能,而未充分利用其转动功能,本发明在形成全景图片时将PTZ球机的最大转动范围作为形成全景图片的测量范围,充分利用PTZ球机的转动功能,同时根据用户的操作指示调整焦距,利用了PTZ球机的缩放功能,进而提高PTZ球机的使用效率。此外,本发明实施例提供的图像获取的装置,处理模块1305能够通过根据最大所述拍摄角度按照预设焦距获取至少一幅监控区域的图片,并根据所述至少一幅监控区域的图片生成全景图片以及预设对应关系表。预设对应关系表能够将前台显示的全景图片中操作框的位置与后台PTZ球机的所述拍摄角度以及焦距进行关联,保证用户操作的可实现性。进一步的,在输入输出模块1304接收到移动指示时,处理模块1305能够根据移动指示确定移动后的操作框位置,并根据预设关系表确定PTZ球机的所述拍摄角度,进而实现根据用户指示调整所述拍摄角度的人机交互功能。输入输出模块1304能够在操作框到达预设位置时,输出提示信息,达到提示用户当前监控区域已到达监控范围的边缘,以便用户进行调整,防止监控目标被跟丢。在输入输出模块1304接收到缩放指示时,处理模块1305能够根据d1、d2以及预设焦距确定用户调整后的焦距,进而实现根据用户指示调节焦距的人机交互功能。In the image acquisition device provided by the embodiment of the present invention, the display module 1301 can display the operation frame of the current monitoring area in the panorama, and the processing module 1305 determines the camera parameters according to the operation instruction triggered by the user on the operation frame received by the input and output module 1304, The camera module 1302 acquires images of the monitoring area according to camera parameters. In the prior art, panoramic cameras are required to dynamically acquire images within the current monitoring range, and different PTZ dome cameras are required to perform zoom-in processing when locally zooming in on different positions in the images, and the number of devices used is large, resulting in high cost of monitoring equipment. The invention realizes the monitoring of the monitoring area through a PTZ ball machine, and can reduce the cost of the monitoring equipment. At the same time, in the present invention, a PTZ ball camera can complete the generation of the panoramic picture, and can display the position of the current shooting area in the shooting range in the panoramic picture, which is convenient for the user to predict in advance whether to reach the shooting range boundary. In the prior art, only the magnification function of the PTZ ball camera is used, but its rotation function is not fully utilized. The present invention uses the maximum rotation range of the PTZ ball camera as the measurement range for forming a panoramic picture when forming a panoramic picture, and makes full use of the PTZ ball camera. At the same time, adjust the focus according to the user's operation instructions, and use the zoom function of the PTZ dome camera to improve the use efficiency of the PTZ dome camera. In addition, in the image acquisition device provided by the embodiment of the present invention, the processing module 1305 can acquire at least one picture of the monitoring area according to the preset focal length according to the maximum shooting angle, and generate a panorama based on the at least one picture of the monitoring area Pictures and preset correspondence table. The preset correspondence table can associate the position of the operation frame in the panorama picture displayed on the foreground with the shooting angle and focal length of the PTZ dome camera in the background, so as to ensure the feasibility of user operations. Further, when the input and output module 1304 receives the movement instruction, the processing module 1305 can determine the position of the operation frame after the movement according to the movement instruction, and determine the shooting angle of the PTZ speed dome camera according to the preset relationship table, and then realize the operation according to the user instruction. Adjust the human-computer interaction function of the shooting angle. The input and output module 1304 can output prompt information when the operation frame reaches the preset position to remind the user that the current monitoring area has reached the edge of the monitoring range, so that the user can make adjustments to prevent the monitoring target from being lost. When the input and output module 1304 receives the zoom instruction, the processing module 1305 can determine the focal length adjusted by the user according to d1, d2 and the preset focal length, and then realize the human-computer interaction function of adjusting the focal length according to the user instruction.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the above-described system, device, and unit, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can 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.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(proces sor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。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 this 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 to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (proces sor) 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-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (17)

1.一种图像获取的方法,其特征在于,包括:1. A method for image acquisition, comprising: 根据最大拍摄角度按照预设焦距获取至少一幅监控区域的图片;Obtain at least one picture of the monitoring area according to the maximum shooting angle and the preset focal length; 根据所述至少一幅监控区域的图片生成全景图片;generating a panoramic picture according to the at least one picture of the monitoring area; 根据所述至少一幅监控区域的图片在所述全景图片中的位置以及获取所述图片时的所述拍摄角度,生成预设关系表,所述预设关系表还用于记录生成所述全景图片时使用的所述预设焦距;According to the position of the picture of the at least one monitoring area in the panorama picture and the shooting angle when the picture is acquired, a preset relationship table is generated, and the preset relationship table is also used to record and generate the panorama The said preset focal length used when taking the picture; 显示所述全景图片以及所述全景图片中的操作框,所述全景图片用于表示能够监控到的监控范围,所述操作框用于表示当前的监控区域;Displaying the panoramic picture and an operation box in the panoramic picture, the panoramic picture is used to indicate the monitoring range that can be monitored, and the operation box is used to indicate the current monitoring area; 接收用户对所述操作框触发的操作指示,所述操作指示用于移动所述操作框的位置或调节所述操作框的尺寸;receiving an operation instruction triggered by the user on the operation frame, where the operation instruction is used to move the position of the operation frame or adjust the size of the operation frame; 根据所述操作指示从所述预设关系表中确定摄像机参数,所述摄像机参数包括摄像机的拍摄角度、焦距,所述预设关系表用于记录所述操作框的位置、尺寸与摄像机的拍摄角度、焦距的对应关系;Determine the camera parameters from the preset relationship table according to the operation instructions, the camera parameters include the shooting angle and focal length of the camera, and the preset relationship table is used to record the position and size of the operation frame and the shooting of the camera Correspondence between angle and focal length; 根据所述摄像机参数获取监控图像,所述监控图像为所述监控区域当前的图像。A monitoring image is acquired according to the camera parameters, and the monitoring image is a current image of the monitoring area. 2.根据权利要求1所述的图像获取的方法,其特征在于,所述根据最大所述拍摄角度按照预设焦距获取至少一幅监控区域的图片,包括:2. The method for image acquisition according to claim 1, wherein said acquiring at least one picture of the monitoring area according to the preset focal length according to the maximum shooting angle comprises: 获取水平方向的最大所述拍摄角度和垂直方向的最大所述拍摄角度;obtaining the maximum shooting angle in the horizontal direction and the maximum shooting angle in the vertical direction; 根据所述水平方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到水平图片集,所述水平图片集包含水平方向上至少一幅监控区域的图片;Scanning the monitoring range according to the maximum shooting angle in the horizontal direction and according to the preset focal length to obtain a horizontal picture set, the horizontal picture set includes at least one picture of the monitoring area in the horizontal direction; 根据所述垂直方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到垂直图片集,所述垂直图片集包含垂直方向上至少一幅监控区域的图片;Scanning the monitoring range according to the maximum shooting angle in the vertical direction and according to the preset focal length to obtain a vertical picture set, the vertical picture set includes at least one picture of the monitoring area in the vertical direction; 所述根据所述至少一幅监控区域的图片生成所述全景图片,包括:The generating the panoramic picture according to the at least one picture of the monitoring area includes: 根据所述水平图片集和所述垂直图片集,生成所述全景图片。The panoramic picture is generated according to the horizontal picture set and the vertical picture set. 3.根据权利要求1所述的图像获取的方法,其特征在于,所述接收用户对所述操作框触发的操作指示,包括:3. The image acquisition method according to claim 1, wherein the receiving the operation instruction triggered by the user on the operation frame comprises: 接收用户对所述操作框触发的移动指示,所述移动指示用于移动所述操作框的位置;receiving a movement instruction triggered by the user on the operation frame, where the movement instruction is used to move the position of the operation frame; 所述根据所述操作指示从预设关系表中确定摄像机参数,包括:The determining the camera parameters from the preset relationship table according to the operation instruction includes: 根据所述移动指示和操作框坐标从所述预设关系表中确定所述拍摄角度。The shooting angle is determined from the preset relationship table according to the movement instruction and the coordinates of the operation frame. 4.根据权利要求3所述的图像获取的方法,其特征在于,所述根据所述移动指示和操作框坐标从所述预设关系表中确定所述拍摄角度,包括:4. The method for image acquisition according to claim 3, wherein the determining the shooting angle from the preset relationship table according to the movement instruction and the coordinates of the operation frame comprises: 获取操作框的中心点坐标,所述中心点为所述操作框的几何中心;Obtain the coordinates of the center point of the operation frame, where the center point is the geometric center of the operation frame; 从所述移动指示中获取偏移向量;obtaining an offset vector from said movement indication; 根据所述中心点坐标和所述偏移向量,计算移动中心点坐标,所述移动中心点坐标用于表示移动后的操作框的中心点的坐标;Calculate the coordinates of the center point of movement according to the coordinates of the center point and the offset vector, and the coordinates of the center point of movement are used to represent the coordinates of the center point of the moved operation frame; 从所述预设关系表中查找与所述移动中心点坐标相对应的所述拍摄角度。The shooting angle corresponding to the coordinates of the moving center point is searched from the preset relationship table. 5.根据权利要求4所述的图像获取的方法,其特征在于,所述接收用户对所述操作框触发的操作指示,包括:5. The image acquisition method according to claim 4, wherein the receiving the user's operation instruction triggered by the operation box comprises: 接收用户对所述操作框触发的缩放指示,所述缩放指示用于调节所述操作框的尺寸;receiving a zoom instruction triggered by the user on the operation frame, where the zoom instruction is used to adjust the size of the operation frame; 所述根据所述操作指示从预设关系表中确定摄像机参数,包括:The determining the camera parameters from the preset relationship table according to the operation instruction includes: 根据所述缩放指示从所述预设关系表中确定焦距。Determining the focal length from the preset relationship table according to the zoom indication. 6.根据权利要求5所述的图像获取的方法,其特征在于,所述根据所述缩放指示从所述预设关系表中确定焦距,包括:6. The method for image acquisition according to claim 5, wherein said determining the focal length from said preset relationship table according to said zooming instruction comprises: 获取所述中心点坐标与当前操作框中预设位置点之间的距离d1;Obtain the distance d1 between the coordinates of the center point and the preset position point in the current operation frame; 获取所述中心点坐标与缩放后的操作框中所述预设位置点之间的距离d2;Obtain the distance d2 between the center point coordinates and the preset position point in the scaled operation frame; 根据所述d1、所述d2以及所述预设关系表中记录的预设焦距,计算缩放后的焦距。Calculate the zoomed focal length according to the d1, the d2, and the preset focal length recorded in the preset relationship table. 7.根据权利要求1至6中的任一项所述的图像获取的方法,其特征在于,所述显示全景图片以及所述全景图片中的操作框,包括:7. The method for image acquisition according to any one of claims 1 to 6, wherein the displaying the panoramic picture and the operation frame in the panoramic picture comprises: 在所述全景图片中显示焦点的可达边界,所述可达边界用于表示光轴能够转动的最大范围。The reachable boundary of the focal point is displayed in the panoramic picture, and the reachable boundary is used to indicate the maximum range in which the optical axis can rotate. 8.根据权利要求7所述的图像获取的方法,其特征在于,所述方法还包括:8. the method for image acquisition according to claim 7, is characterized in that, described method also comprises: 当操作框的几何中心点与所述可达边界的距离小于预设距离时,输出提示信息,所述提示信息用于表示所述操作框接近监控范围的边界。When the distance between the geometric center point of the operation frame and the reachable boundary is less than a preset distance, output prompt information, the prompt information is used to indicate that the operation frame is close to the boundary of the monitoring range. 9.一种图像获取的装置,其特征在于,包括:9. A device for image acquisition, comprising: 显示单元,用于显示全景图片以及所述全景图片中的操作框,所述全景图片用于表示能够监控到的监控范围,所述操作框用于表示当前的监控区域;A display unit, configured to display a panorama picture and an operation box in the panorama picture, the panorama picture is used to indicate a monitoring range that can be monitored, and the operation box is used to indicate a current monitoring area; 接收单元,用于接收用户对所述显示单元显示的所述操作框触发的操作指示,所述操作指示用于移动所述操作框的位置或调节所述操作框的尺寸;a receiving unit, configured to receive an operation instruction triggered by a user on the operation frame displayed on the display unit, where the operation instruction is used to move the position of the operation frame or adjust the size of the operation frame; 确定单元,用于根据所述接收单元接收的所述操作指示从预设关系表中确定摄像机参数,所述摄像机参数包括摄像机的拍摄角度、焦距,所述预设关系表用于记录所述操作框的位置、尺寸与摄像机的拍摄角度、焦距的对应关系;A determining unit, configured to determine camera parameters from a preset relationship table according to the operation instruction received by the receiving unit, the camera parameters including the shooting angle and focal length of the camera, and the preset relationship table is used to record the operation The corresponding relationship between the position and size of the frame and the shooting angle and focal length of the camera; 获取单元,用于根据所述确定单元确定的所述摄像机参数获取监控图像,所述监控图像为所述监控区域当前的图像;an acquiring unit, configured to acquire a monitoring image according to the camera parameters determined by the determining unit, where the monitoring image is a current image of the monitoring area; 所述获取单元还用于,根据最大所述拍摄角度按照预设焦距获取至少一幅监控区域的图片;The acquisition unit is also used to acquire at least one picture of the monitoring area according to the maximum shooting angle and a preset focal length; 生成单元,用于根据所述获取单元获取的所述至少一幅监控区域的图片生成所述全景图片;a generation unit, configured to generate the panoramic picture according to the at least one picture of the monitoring area acquired by the acquisition unit; 所述生成单元还用于,根据所述至少一幅监控区域的图片在所述全景图片中的位置以及获取所述图片时的所述拍摄角度,生成所述预设关系表,所述预设关系表还用于记录生成所述全景图片时使用的所述预设焦距。The generating unit is further configured to generate the preset relationship table according to the position of the at least one picture of the monitoring area in the panoramic picture and the shooting angle when the picture is acquired, and the preset The relationship table is also used to record the preset focal length used when generating the panoramic picture. 10.根据权利要求9所述的图像获取的装置,其特征在于,所述获取单元,包括:10. The image acquisition device according to claim 9, wherein the acquisition unit includes: 第一获取子单元,用于获取水平方向的最大所述拍摄角度和垂直方向的最大所述拍摄角度;a first acquiring subunit, configured to acquire the maximum shooting angle in the horizontal direction and the maximum shooting angle in the vertical direction; 第二获取子单元,根据所述第一获取子单元获取的所述水平方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到水平图片集,所述水平图片集包含水平方向上至少一幅监控区域的图片;The second acquisition subunit scans the monitoring range according to the preset focal length according to the maximum shooting angle in the horizontal direction acquired by the first acquisition subunit to obtain a horizontal picture set, the horizontal picture set includes the horizontal direction At least one picture of the surveillance area; 第三获取子单元,根据所述第一获取子单元获取的根据所述垂直方向的最大所述拍摄角度、按照预设焦距对监视范围进行扫描,得到垂直图片集,所述垂直图片集包含垂直方向上至少一幅监控区域的图片;The third acquisition subunit scans the monitoring range according to the preset focal length according to the maximum shooting angle in the vertical direction acquired by the first acquisition subunit to obtain a vertical picture set, and the vertical picture set includes vertical At least one picture of the monitoring area in the direction; 所述生成单元还用于,根据所述第二获取子单元获取的所述水平图片集和所述第三获取子单元获取的所述垂直图片集,生成所述全景图片。The generating unit is further configured to generate the panoramic picture according to the horizontal picture set acquired by the second acquiring subunit and the vertical picture set acquired by the third acquiring subunit. 11.根据权利要求9所述的图像获取的装置,其特征在于,所述接收单元,包括:11. The image acquisition device according to claim 9, wherein the receiving unit comprises: 第一接收子单元,用于接收用户对所述操作框触发的移动指示,所述移动指示用于移动所述操作框的位置;The first receiving subunit is configured to receive a movement instruction triggered by the user on the operation frame, where the movement instruction is used to move the position of the operation frame; 所述确定单元,包括:The determination unit includes: 第一确定子单元,用于根据所述第一接收子单元接收的所述移动指示和操作框坐标从所述预设关系表中确定所述拍摄角度。The first determining subunit is configured to determine the shooting angle from the preset relationship table according to the movement instruction and the coordinates of the operation frame received by the first receiving subunit. 12.根据权利要求11所述的图像获取的装置,其特征在于,所述第一确定子单元,包括:12. The image acquisition device according to claim 11, wherein the first determining subunit comprises: 第一获取模块,用于获取操作框的中心点坐标,所述中心点为所述操作框的几何中心;The first obtaining module is used to obtain the center point coordinates of the operation frame, and the center point is the geometric center of the operation frame; 第二获取模块,用于从所述第一接收子单元接收的所述移动指示中获取偏移向量;A second obtaining module, configured to obtain an offset vector from the movement indication received by the first receiving subunit; 第一计算模块,用于根据所述第一获取模块获取的所述中心点坐标和所述第二获取模块获取的所述偏移向量,计算移动中心点坐标,所述移动中心点坐标用于表示移动后的操作框的中心点的坐标;The first calculation module is configured to calculate the coordinates of the center point of movement according to the coordinates of the center point acquired by the first acquisition module and the offset vector acquired by the second acquisition module, and the coordinates of the center point of movement are used for Indicates the coordinates of the center point of the moved operation box; 查找模块,用于从所述生成单元生成的所述预设关系表中查找与所述第一计算模块计算的所述移动中心点坐标相对应的所述拍摄角度。A search module, configured to search the shooting angle corresponding to the coordinates of the moving center point calculated by the first calculation module from the preset relationship table generated by the generating unit. 13.根据权利要求12所述的图像获取的装置,其特征在于,所述接收单元,还包括:13. The image acquisition device according to claim 12, wherein the receiving unit further comprises: 第二接收子单元,用于接收用户对所述操作框触发的缩放指示,所述缩放指示用于调节所述操作框的尺寸;The second receiving subunit is configured to receive a zooming instruction triggered by the user on the operation frame, where the zoom instruction is used to adjust the size of the operation frame; 所述确定单元,还包括:The determination unit also includes: 第二确定子单元,根据所述第二接收子单元接收的所述缩放指示从所述预设关系表中确定焦距。The second determination subunit determines the focal length from the preset relationship table according to the zoom instruction received by the second receiving subunit. 14.根据权利要求13所述的图像获取的装置,其特征在于,所述第二确定子单元,包括:14. The image acquisition device according to claim 13, wherein the second determining subunit comprises: 第三获取模块,用于获取所述中心点坐标与当前操作框中预设位置点之间的距离d1;The third obtaining module is used to obtain the distance d1 between the center point coordinates and the preset position point in the current operation frame; 第四获取模块,用于获取所述中心点坐标与缩放后的操作框中所述预设位置点之间的距离d2;The fourth obtaining module is used to obtain the distance d2 between the center point coordinates and the preset position point in the scaled operation frame; 第二计算模块,用于根据所述第三获取模块获取的所述d1、所述第四获取模块获取的所述d2以及所述生成单元生成的所述预设关系表中记录的预设焦距,计算缩放后的焦距。The second calculation module is configured to use the d1 acquired by the third acquisition module, the d2 acquired by the fourth acquisition module, and the preset focal length recorded in the preset relationship table generated by the generating unit , to calculate the zoomed focal length. 15.根据权利要求9至14中的任一项所述的图像获取的装置,其特征在于,所述显示单元还用于,在所述全景图片中显示焦点的可达边界,所述可达边界用于表示光轴能够转动的最大范围。15. The image acquisition device according to any one of claims 9 to 14, wherein the display unit is further configured to display the reachable boundary of the focal point in the panoramic picture, the reachable Bounds are used to indicate the maximum range over which the optical axis can be rotated. 16.根据权利要求15所述的图像获取的装置,其特征在于,所述装置还包括:16. The device for image acquisition according to claim 15, wherein the device further comprises: 输出单元,用于当操作框的几何中心点与所述可达边界的距离小于预设距离时,输出提示信息,所述提示信息用于表示所述操作框接近监控范围的边界。The output unit is configured to output prompt information when the distance between the geometric center point of the operation frame and the reachable boundary is less than a preset distance, and the prompt information is used to indicate that the operation frame is close to the boundary of the monitoring range. 17.一种计算机可读存储介质,其特征在于,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1-8中任意一项所述的图像获取的方法。17. A computer-readable storage medium, characterized by comprising instructions, which, when run on a computer, cause the computer to execute the image acquisition method according to any one of claims 1-8.
CN201310202005.8A 2013-05-27 2013-05-27 The method and device of image acquisition Active CN104184985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310202005.8A CN104184985B (en) 2013-05-27 2013-05-27 The method and device of image acquisition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310202005.8A CN104184985B (en) 2013-05-27 2013-05-27 The method and device of image acquisition

Publications (2)

Publication Number Publication Date
CN104184985A CN104184985A (en) 2014-12-03
CN104184985B true CN104184985B (en) 2018-05-29

Family

ID=51965685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310202005.8A Active CN104184985B (en) 2013-05-27 2013-05-27 The method and device of image acquisition

Country Status (1)

Country Link
CN (1) CN104184985B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017033619A1 (en) * 2015-08-26 2017-03-02 富士フイルム株式会社 Image-capturing system and image-capturing control method
CN105872377B (en) * 2016-04-14 2019-09-17 南京买简信息科技有限公司 Can auto zoom focal length the panoramic shooting method that fills image
CN105898228B (en) * 2016-04-29 2019-07-09 北京小米移动软件有限公司 Control method and device for picture pick-up device
CN107277362A (en) * 2017-07-20 2017-10-20 三星半导体(中国)研究开发有限公司 Method and apparatus for generating high-definition image
CN107370945A (en) * 2017-07-25 2017-11-21 广东虹勤通讯技术有限公司 Camera control method and camera control device
CN110361092B (en) * 2018-04-11 2020-12-18 杭州海康微影传感科技有限公司 Image registration method and device and thermal imaging camera
CN111277886B (en) * 2018-11-16 2022-10-28 北京字节跳动网络技术有限公司 Panoramic video view field control method and device, electronic equipment and storage medium
CN111629141B (en) * 2019-02-27 2023-04-18 杭州海康威视数字技术股份有限公司 Video camera
CN112243106A (en) * 2019-07-17 2021-01-19 杭州海康威视数字技术股份有限公司 Target monitoring method, device and equipment and storage medium
CN110505400B (en) * 2019-08-16 2021-09-07 维沃移动通信有限公司 A preview image display adjustment method and terminal
CN111741323A (en) * 2020-08-14 2020-10-02 广州盈可视电子科技有限公司 Live broadcast picture display method and device
CN113658265B (en) * 2021-07-16 2024-11-05 北京迈格威科技有限公司 Camera calibration method, device, electronic device and storage medium
CN114040104A (en) * 2021-11-16 2022-02-11 北京筑梦园科技有限公司 Equipment debugging method and device and parking management system
CN115242969B (en) * 2022-06-22 2023-10-13 天翼数字生活科技有限公司 Method and system for controlling rotation of network camera
CN118537940B (en) * 2024-07-12 2025-03-04 广东保伦电子股份有限公司 Attendance checking method, device, equipment and storage medium based on face recognition

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0737005A1 (en) * 1995-04-07 1996-10-09 Canon Kabushiki Kaisha Camera control method and apparatus
US6624846B1 (en) * 1997-07-18 2003-09-23 Interval Research Corporation Visual user interface for use in controlling the interaction of a device with a spatial region
CN1960479A (en) * 2005-11-03 2007-05-09 中国科学院自动化研究所 Method for tracking principal and subordinate videos by using single video camera
CN101404726A (en) * 2008-10-20 2009-04-08 深圳华为通信技术有限公司 Control method, system and apparatus for far-end camera

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69520329T2 (en) * 1994-11-17 2001-09-27 Canon K.K., Tokio/Tokyo Camera control device and method
JP4332231B2 (en) * 1997-04-21 2009-09-16 ソニー株式会社 Imaging device controller and imaging system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0737005A1 (en) * 1995-04-07 1996-10-09 Canon Kabushiki Kaisha Camera control method and apparatus
US6624846B1 (en) * 1997-07-18 2003-09-23 Interval Research Corporation Visual user interface for use in controlling the interaction of a device with a spatial region
CN1960479A (en) * 2005-11-03 2007-05-09 中国科学院自动化研究所 Method for tracking principal and subordinate videos by using single video camera
CN101404726A (en) * 2008-10-20 2009-04-08 深圳华为通信技术有限公司 Control method, system and apparatus for far-end camera

Also Published As

Publication number Publication date
CN104184985A (en) 2014-12-03

Similar Documents

Publication Publication Date Title
CN104184985B (en) The method and device of image acquisition
JP7311418B2 (en) Focusing method, terminal and computer readable storage medium
KR102000536B1 (en) Photographing device for making a composion image and method thereof
WO2017161777A1 (en) Panorama live broadcast method and device
US10437545B2 (en) Apparatus, system, and method for controlling display, and recording medium
CN104902170B (en) A kind of photographic method and terminal
US10866647B2 (en) Using natural movements of a hand-held device to manipulate digital content
CN111479065A (en) Camera field angle synchronization method and device and image shooting method and device
CN108377342A (en) Double-camera shooting method and device, storage medium and terminal
CN113875220B (en) Shooting anti-shake method, device, terminal and storage medium
CN105979156A (en) Panoramically photographing method and mobile terminal
CN107040716A (en) Method for controlling movement of equipment and control system thereof
CN106713772B (en) A kind of photographic method and mobile terminal
WO2018121401A1 (en) Splicing method for panoramic video images, and panoramic camera
CN105915802A (en) A shooting range setting adjustment method of a rotary camera
CN104954672A (en) Mobile terminal and manual focusing method thereof
CN112637500A (en) Image processing method and device
CN116980759A (en) Photography method, terminal, electronic equipment and readable storage medium
CN114785969B (en) Shooting method and device
KR20210112390A (en) Filming method, apparatus, electronic device and storage medium
JP7640718B2 (en) Photographing method, device, electronic device, and readable storage medium
CN104539893B (en) Realize the method, apparatus and system of virtual head monitoring effect
CN112954197B (en) Shooting method, shooting device, electronic equipment and readable storage medium
KR20190129592A (en) Method and apparatus for providing video in potable device
JP2018174468A (en) Video display unit, and control method, and program therefor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant