WO2018176206A1 - Spatial display method and apparatus for monitoring device - Google Patents

Spatial display method and apparatus for monitoring device Download PDF

Info

Publication number
WO2018176206A1
WO2018176206A1 PCT/CN2017/078369 CN2017078369W WO2018176206A1 WO 2018176206 A1 WO2018176206 A1 WO 2018176206A1 CN 2017078369 W CN2017078369 W CN 2017078369W WO 2018176206 A1 WO2018176206 A1 WO 2018176206A1
Authority
WO
WIPO (PCT)
Prior art keywords
monitoring device
target
screen
picture
display
Prior art date
Application number
PCT/CN2017/078369
Other languages
French (fr)
Chinese (zh)
Inventor
彭志强
孙艳峥
谭喆
Original Assignee
深圳中兴力维技术有限公司
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
Priority to CN201780002698.2A priority Critical patent/CN108369602B/en
Application filed by 深圳中兴力维技术有限公司 filed Critical 深圳中兴力维技术有限公司
Priority to PCT/CN2017/078369 priority patent/WO2018176206A1/en
Publication of WO2018176206A1 publication Critical patent/WO2018176206A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/44Browsing; Visualisation therefor
    • G06F16/444Spatial browsing, e.g. 2D maps, 3D or virtual spaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Abstract

Provided are a spatial display method and apparatus for a monitoring device, which belong to the technical field of monitoring and display. The method comprises: clipping and displaying a current interface where a target monitoring device is located on a screen, and generating a clipped picture; in the clipped picture, calculating location coordinates of the target monitoring device; calculating position coordinates of the target monitoring device relative to the screen by means of operating the clipped picture and the location coordinates; and according to a route generated by a map file and a screen line drawn by means of the operation of an input device, calculating position coordinates of the target monitoring device relative to the clipped picture so as to display the geographical position of the target monitoring device in a space. The spatial display method and apparatus for a monitoring device in the present invention can accurately display a spatial position of a device unit, and, following the operation of a mouse, smoothly display operations, such as travelling, zooming in and zooming out, and can reduce the difficulty and cost of erecting a GIS monitoring system.

Description

技术领域  Technical field
[0001] 本发明涉及监控显示技术领域, 尤其涉及一种监控设备的空间显示方法及装置 背景技术  [0001] The present invention relates to the field of monitoring display technologies, and in particular, to a spatial display method and apparatus for a monitoring device.
[0002] 在监控行业, 设备的地理空间信息通常是通过地理信息系统 (Geography  [0002] In the surveillance industry, geospatial information of equipment is usually through geographic information systems (Geography
Information System, GIS) 直观的展示出来。 GIS—般的数据源主要有控制测量 实测数据、 现有纸质地图数字化、 现有空间数据文件或数据库、 遥感影像、 统 计数据等。  Information System, GIS) is displayed intuitively. GIS-like data sources mainly include control measurement, measured data, existing paper map digitization, existing spatial data files or databases, remote sensing images, and statistical data.
[0003] 目前, GIS在监控平台中的应用主要有两种方式, 一种是利用如 GoogleMap [0003] At present, there are two main ways for GIS to be applied in the monitoring platform, one is to use such as GoogleMap.
MapABC、 MapBar、 SougouMap等提供的地图服务应用程序编程接口 (Applicati on Programming Interface, API) ; 另外一种则是购买或者从其它渠道获取所需 数据, 基于这些数据, 利用第三方的 GIS基础平台实现应用。 对于第一种实现, 需要在线联网; 第二种实现, 能够实现较高层次的应用, 但是基础数据来源较 多, 再加上标准不一, 数据量庞大, 要将这些数据集成到同一基础地图上, 处 理和集成的过程需要付出相当大的代价。 另外, 由于很多的园区或者楼宇都是 没有地理测量数据, 只有内部的规划图或者设计图, 很难直观的在空间里直接 看到监控设备的地理位置。 MapABC, MapBar, SougouMap and other map service application programming interface (API); the other is to purchase or obtain the required data from other channels, based on the data, using a third-party GIS based platform to achieve application. For the first implementation, online networking is required; the second implementation enables higher-level applications, but there are more basic data sources, plus different standards and large amounts of data, which are integrated into the same base map. The process of processing and integration requires a considerable price. In addition, since many parks or buildings have no geographical measurement data, only internal planning drawings or design drawings, it is difficult to directly see the geographical location of the monitoring equipment in the space.
技术问题  technical problem
[0004] 本发明的主要目的在于提出一种监控设备的空间显示方法及装置, 能够实现规 划图的联动操作, 给无法架设地理信息系统的使用者带来直观展示设备的可能 问题的解决方案  [0004] The main object of the present invention is to provide a space display method and device for a monitoring device, which can realize the linkage operation of the plan map, and provide a solution for the problem that the user who cannot set up the GIS can visually display the device.
技术解决方案  Technical solution
[0005] 为实现上述目的, 本发明提供一种监控设备的空间显示方法, 所述方法包括: 裁剪并显示目标监控设备在屏幕所处的当前界面, 并生成裁剪图片; 在所述裁 剪图片中, 计算所述目标监控设备的定位坐标; 通过操作所述裁剪图片、 以及 所述定位坐标, 计算所述目标监控设备相对屏幕的位置坐标; 根据地图文件生 成的线路、 以及通过输入设备的操作绘制的屏幕线, 计算所述目标监控设备相 对所述裁剪图片的位置坐标, 以显示所述目标监控设备在空间的地理位置。 [0005] In order to achieve the above object, the present invention provides a spatial display method of a monitoring device, the method comprising: cropping and displaying a current interface of a target monitoring device at a screen, and generating a cropped image; Calculating a positioning coordinate of the target monitoring device in the cut image; calculating a position coordinate of the target monitoring device relative to the screen by operating the cropped image and the positioning coordinate; a line generated according to the map file, and an input device The operation draws the screen line, and calculates the position coordinates of the target monitoring device relative to the cropped image to display the geographical location of the target monitoring device in the space.
[0006] 可选地, 在所述裁剪并显示目标监控设备在屏幕所处的当前界面, 并生成裁剪 图片之前, 所述方法还包括: 导入所述地图文件; 从所述地图文件中査找目标 图片, 所述目标图片包含目标监控设备。  [0006] Optionally, before the cropping and displaying the current interface where the target monitoring device is located, and generating the cropped image, the method further includes: importing the map file; searching for a target from the map file Picture, the target picture contains a target monitoring device.
[0007] 可选地, 所述裁剪并显示目标监控设备在屏幕所处的当前界面, 并生成裁剪图 片, 包括: 获取目标图片的缩放级别、 以及目标图片的中心点相对坐标; 根据 所述缩放级别, 计算当前屏幕的矩形显示框的大小; 在所述目标图片的中心点 相对坐标位置上对所述目标图片按照所述矩形显示框的大小进行裁剪, 生成裁 剪图片; 复制所述裁剪图片, 并将复制份显示至当前界面。  [0007] Optionally, the cropping and displaying the current interface of the target monitoring device at the screen, and generating the cropped image, includes: acquiring a zoom level of the target image, and a center point relative coordinate of the target image; Level, calculating a size of a rectangular display frame of the current screen; cropping the target image according to the size of the rectangular display frame at a relative coordinate position of a center point of the target image to generate a cropped image; copying the cropped image, And copy the copy to the current interface.
[0008] 可选地, 所述目标监控设备相对屏幕的位置坐标与所述目标监控设备相对所述 裁剪图片的位置坐标之间符合以下公式:  [0008] Optionally, the location coordinates of the target monitoring device relative to the screen and the location coordinates of the target monitoring device relative to the cropped image conform to the following formula:
[0009] xzoom = ViewSize.Width÷CurrImageSize.Width;  [0009] xzoom = ViewSize.Width÷CurrImageSize.Width;
[0010] yzoom = ViewSize.Height÷CurrImageSize.Height;  [0010] yzoom = ViewSize.Height÷CurrImageSize.Height;
[0011] Location (X , Y) =(layerLocation.X - imageLocation.X) x  [0011] Location (X , Y) = (layerLocation.X - imageLocation.X) x
xzoom,(layerLocation.Y-imageLocation.Y)xyzoom;  Xzoom, (layerLocation.Y-imageLocation.Y)xyzoom;
[0012] 其中, ViewSize为显示区域的大小, CurrlmageSize为裁剪图片的大小, Locatio η (Χ , Υ) 为所述目标监控设备相对屏幕的位置坐标, imageLocation (X , Y) 为 裁剪图片的左上角坐标, layerLocation (X , Y) 为目标监控设备相对图片的坐标  [0012] wherein, ViewSize is the size of the display area, CurrlmageSize is the size of the cropped picture, Locatio η (Χ, Υ) is the position coordinate of the target monitoring device relative to the screen, and imageLocation (X, Y) is the upper left corner of the cropped picture. Coordinate, layerLocation (X , Y) is the coordinates of the target monitoring device relative to the image
[0013] 可选地, 所述方法还包括: 响应用户端的业务操作指令, 并反馈操作结果至屏 幕的界面。 [0013] Optionally, the method further includes: responding to the service operation instruction of the user end, and feeding back the operation result to the interface of the screen.
[0014] 此外, 为实现上述目的, 本发明还提供一种监控设备的空间显示装置, 所述装 置包括: 图片裁剪显示模块, 设置为裁剪并显示目标监控设备在屏幕所处的当 前界面, 并生成裁剪图片; 第一计算模块, 设置为在所述裁剪图片中, 计算所 述目标监控设备的定位坐标; 第二计算模块, 设置为通过操作所述裁剪图片、 以及所述定位坐标, 计算所述目标监控设备相对屏幕的位置坐标; 第三计算模 块, 设置为根据地图文件生成的线路、 以及通过输入设备的操作绘制的屏幕线 , 计算所述目标监控设备相对所述裁剪图片的位置坐标, 以显示所述目标监控 设备在空间的地理位置。 [0014] In addition, in order to achieve the above object, the present invention further provides a space display device for a monitoring device, the device comprising: a picture cropping display module, configured to crop and display a current interface of the target monitoring device at the screen, and Generating a cropped image; a first calculating module, configured to calculate a positioning coordinate of the target monitoring device in the cropped image; a second calculating module, configured to operate the cropped image, And the positioning coordinates, calculating a position coordinate of the target monitoring device relative to the screen; a third calculating module, configured to calculate a line corresponding to the map file and a screen line drawn by operation of the input device, and calculate the relative target monitoring device The position coordinates of the cropped picture are displayed to show the geographical location of the target monitoring device in space.
[0015] 可选地, 所述装置还包括: 导入模块, 设置为导入所述地图文件; 图片査找模 块, 设置为从所述地图文件中査找目标图片, 所述目标图片包含目标监控设备  [0015] Optionally, the device further includes: an importing module, configured to import the map file; a picture search module, configured to search for a target image from the map file, where the target image includes a target monitoring device
[0016] 可选地, 所述图片裁剪显示模块包括: 获取单元, 设置为获取目标图片的缩放 级别、 以及目标图片的中心点相对坐标; 计算单元, 设置为根据所述缩放级别 , 计算当前屏幕的矩形显示框的大小; 裁剪单元, 设置为在所述目标图片的中 心点相对坐标位置上对所述目标图片按照所述矩形显示框的大小进行裁剪, 生 成裁剪图片; 显示单元, 设置为复制所述裁剪图片, 并将复制份显示至当前界 面。 [0016] Optionally, the picture cropping display module includes: an acquiring unit, configured to acquire a zoom level of the target image, and a center point relative coordinate of the target image; and a calculating unit, configured to calculate a current screen according to the zoom level The rectangle displays the size of the frame; the cropping unit is configured to crop the target image according to the size of the rectangular display frame at a relative coordinate position of the center point of the target image to generate a cropped image; the display unit is set to be copied The cropped picture is displayed and the copied copy is displayed to the current interface.
[0017] 可选地, 所述第二计算单元计算的所述目标监控设备相对屏幕的位置坐标与上 述第三计算单元计算的所述目标监控设备相对所述裁剪图片的位置坐标之间符 合以下公式:  [0017] Optionally, the position coordinate of the target monitoring device relative to the screen calculated by the second calculating unit and the position coordinate of the target monitoring device calculated by the third calculating unit with respect to the cropped picture meet the following Formula:
[0018] xzoom = ViewSize.Width÷CurrImageSize.Width;  [0018] xzoom = ViewSize.Width÷CurrImageSize.Width;
[0019] yzoom = ViewSize.Height÷CurrImageSize.Height;  [0019] yzoom = ViewSize.Height÷CurrImageSize.Height;
[0020] Location (X , Y) =(layerLocation.X - imageLocation.X) x  [0020] Location (X , Y) = (layerLocation.X - imageLocation.X) x
xzoom,(layerLocation.Y-imageLocation.Y)xyzoom;  Xzoom, (layerLocation.Y-imageLocation.Y)xyzoom;
[0021] 其中, ViewSize为显示区域的大小, CurrlmageSize为裁剪图片的大小, Locatio η (Χ , Υ) 为所述目标监控设备相对屏幕的位置坐标, imageLocation (X , Y) 为 裁剪图片的左上角坐标, layerLocation (X , Y) 为目标监控设备相对图片的坐标  [0021] wherein, ViewSize is the size of the display area, CurrlmageSize is the size of the cropped picture, Locatio η (Χ, Υ) is the position coordinate of the target monitoring device relative to the screen, and imageLocation (X, Y) is the upper left corner of the cropped picture. Coordinate, layerLocation (X , Y) is the coordinates of the target monitoring device relative to the image
[0022] 可选地, 其中, 所述装置还包括: 执行模块, 设置为响应用户端的业务操作指 令, 并反馈操作结果至屏幕的界面。 [0022] Optionally, the device further includes: an execution module, configured to respond to the service operation instruction of the user end, and feed back the operation result to the interface of the screen.
发明的有益效果  Advantageous effects of the invention
有益效果 [0023] 本发明提出的监控设备的空间显示方法及装置, 通过操作目标图片, 裁剪并显 示目标监控设备在屏幕所处的当前界面, 以生成裁剪图片, 在裁剪图片中计算 目标监控设备的定位坐标, 根据操作裁剪图片以及定位坐标计算目标监控设备 相对屏幕的位置坐标以及相对裁剪图片的位置坐标, 以显示目标监控设备在空 间的地理位置, 能够准确的显示设备单元的空间位置, 并跟随鼠标的操作平滑 的显示漫游、 放大、 缩小操作, 并能够降低 GIS监控系统的架设难度及架设费用 Beneficial effect [0023] The space display method and device of the monitoring device proposed by the present invention, by operating a target image, cropping and displaying the current interface of the target monitoring device at the screen to generate a cropped image, and calculating the positioning of the target monitoring device in the cropped image Coordinates, calculate the position coordinates of the target monitoring device relative to the screen and the position coordinates of the relative cropped image according to the operation of cropping the image and the positioning coordinates, to display the geographical position of the target monitoring device in space, accurately display the spatial position of the device unit, and follow the mouse Smooth display of roaming, zooming in and zooming out, and reducing the difficulty of GIS monitoring system and the cost of erection
对附图的简要说明 Brief description of the drawing
附图说明  DRAWINGS
[0024] 图 1为本发明较佳实施例提供的监控设备的空间显示方法的流程示意图;  1 is a schematic flowchart of a spatial display method of a monitoring device according to a preferred embodiment of the present invention;
[0025] 图 2为本发明较佳实施例提供的监控设备的空间显示方法的子流程示意图; [0026] 图 3为本发明较佳实施例提供的监控设备的空间显示装置的模块示意图; 2 is a schematic diagram of a sub-flow of a spatial display device of a monitoring device according to a preferred embodiment of the present invention; [0026] FIG. 3 is a block diagram of a spatial display device of a monitoring device according to a preferred embodiment of the present invention;
[0027] 图 4为图 3中的图片裁剪显示模块的模块示意图。 4 is a block diagram of a picture cropping display module of FIG. 3.
[0028] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。  [0028] The implementation, functional features, and advantages of the present invention will be further described with reference to the accompanying drawings.
本发明的实施方式 Embodiments of the invention
[0029] 下面详细描述本发明的实施例, 所述实施例的示例在附图中示出, 其中自始至 终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。 下 面通过参考附图描述的实施例是示例性的, 旨在设置为解释本发明, 而不能理 解为对本发明的限制。  The embodiments of the present invention are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the drawings are intended to be illustrative of the invention and are not to be construed as limiting.
[0030] 请参照图 1, 为本发明较佳实施例提供的监控设备的空间显示方法的流程示意 图, 所述方法包括步骤:  [0030] FIG. 1 is a schematic flowchart of a spatial display method of a monitoring device according to a preferred embodiment of the present invention. The method includes the following steps:
[0031] 步骤 110, 导入地图文件。 [0031] Step 110: Import a map file.
[0032] 具体地, 本实施例中的地图文件包括园区规划图、 楼宇建设图或者卫星影像图  [0032] Specifically, the map file in this embodiment includes a park plan map, a building construction map, or a satellite image map.
[0033] 可选地, 导入地图文件之前, 可以先在本地文件中査找是否存在需要的地图文 件, 若未査找到, 则进入步骤 110, 若査找到, 则可以省略步骤 110。 [0033] Optionally, before importing the map file, the local file may be first searched for the presence of the required map file. If not, the process proceeds to step 110. If found, step 110 may be omitted.
[0034] 步骤 120, 从所述地图文件中査找目标图片, 所述目标图片包含目标监控设备 [0035] 可选的, 根据操作指令, 对所述地图文件执行相应地操作, 以找到目标监控设 备。 操作指令包括: 放大、 缩小、 漫游等操作。 [0034] Step 120: Find a target image from the map file, where the target image includes a target monitoring device. [0035] Optionally, according to the operation instruction, performing corresponding operations on the map file to find the target monitoring device. Operation instructions include: operations such as zooming in, zooming out, and roaming.
[0036] 步骤 130, 当操作所述目标图片吋, 裁剪并显示所述目标监控设备在屏幕所处 的当前界面, 并生成裁剪图片。 [0036] Step 130: When the target picture is operated, crop and display the current interface where the target monitoring device is located, and generate a cropped picture.
[0037] 具体地, 请参照图 2, 步骤 130进一步包括: [0037] Specifically, referring to FIG. 2, step 130 further includes:
[0038] 步骤 210, 获取目标图片的缩放级别、 以及目标图片的中心点相对坐标。  [0038] Step 210: Acquire a zoom level of the target picture, and a center point relative coordinate of the target picture.
[0039] 具体地, 根据输入设备的滚动方向获取操作指令中的缩放级别。 具体地, 缩放 级别 (ZoomLevel) 的大小采用公式 (2) 进行计算。 [0039] Specifically, the zoom level in the operation instruction is acquired according to the scroll direction of the input device. Specifically, the size of the zoom level (ZoomLevel) is calculated using equation (2).
[0040] N=Mousewheel/120 公式 (1) [0040] N=Mousewheel/120 Formula (1)
[0041] ZoomLevel=N>0?l. lnxZoomLevel: ZoomLevel÷l. In 公式 (2)  [0041] ZoomLevel=N>0?l. lnxZoomLevel: ZoomLevel÷l. In Formula (2)
[0042] 其中, Monsewheel为鼠标滚轮值。 若鼠标的滚轮沿着第一方向进行滚动吋, 则 滚轮值为正数, N为正数; 若鼠标的滚轮沿着与第一方向相反的第二方向进行滚 动吋, 则滚轮值为负数, N为负数。 也就是说, 当滚轮为正方向吋, 缩放级别等 于当前缩放级别乘于 1.1的 N次方, 当滚轮为负方向吋, 缩放级别等于当前缩放 级别除于 1.1的 N次方。 [0042] wherein, the Monsewheel is a mouse wheel value. If the mouse wheel is scrolling in the first direction, the wheel value is a positive number, and N is a positive number; if the mouse wheel is scrolled in a second direction opposite to the first direction, the wheel value is a negative number. N is a negative number. That is, when the scroll wheel is in the forward direction, the zoom level is equal to the current zoom level multiplied by 1.1 to the Nth power. When the scroll wheel is in the negative direction, the zoom level is equal to the current zoom level divided by 1.1 to the Nth power.
[0043] 步骤 220, 根据所述缩放级别, 计算当前屏幕的矩形显示框的大小。 [0043] Step 220: Calculate a size of a rectangular display frame of the current screen according to the zoom level.
[0044] 具体地, 矩形显示框 (CurrlmageSize) 的大小采用公式 (3) 进行计算。 [0044] Specifically, the size of the rectangular display frame (CurrlmageSize) is calculated by the formula (3).
[0045] CurrImageSize= (lmgSrcSize.X÷ZoomLevel , ImgSrc Size . Y÷ZoomLe ve ) 公式 [0045] CurrImageSize=(lmgSrcSize.X÷ZoomLevel , ImgSrc Size . Y÷ZoomLe ve ) Formula
(3)  (3)
[0046] 其中, ZoomLevel为当前操作下的放大级别, ImgSrcSize为导入的图片大小。  [0046] wherein, ZoomLevel is the zoom level under the current operation, and ImgSrcSize is the imported picture size.
[0047] 步骤 230, 在所述目标图片的中心点相对坐标位置上对所述目标图片按照所述 矩形显示框的大小进行裁剪, 生成裁剪图片。 [0047] Step 230: Crop the target picture according to the size of the rectangular display frame at a center point relative coordinate position of the target picture to generate a cropped picture.
[0048] 具体地, 若仅按照矩形显示框生成第一裁剪图片, 则第一次裁剪图片的大小与 矩形显示框的大小相等。 若对第一裁剪图片进行裁剪, 生成第二裁剪图片吋, 则第二裁剪图片 (rectangle) 的大小采用公式 (6) 进行计算。 [0048] Specifically, if the first cropped picture is generated only according to the rectangular display frame, the size of the first cropped picture is equal to the size of the rectangular display frame. If the first cropped image is cropped to generate a second cropped image, the size of the second cropped image (rectangle) is calculated using equation (6).
[0049] imageLocation.X = (Oldlmage.Width - CurrlmageSize.Width) ÷ 2 + [0049] imageLocation.X = (Oldlmage.Width - CurrlmageSize.Width) ÷ 2 +
imageLocation.X 公式 (4) [0050] imageLocation.Y = (Oldlmage.Height - CurrlmageSize.Height) ÷ 2 + imageLocation.Y 公式 (5) imageLocation.X formula (4) [0050] imageLocation.Y = (Oldlmage.Height - CurrlmageSize.Height) ÷ 2 + imageLocation.Y Equation (5)
[0051] rectangle = (imageLocation, CurrlmageSize) 公式 (6)  [0051] rectangle = (imageLocation, CurrlmageSize) formula (6)
[0052] 其中, Oldlmage为第一裁剪图片的大小, CurrlmageSize为当前裁剪区域的大小, locationPoint为当前裁剪区域的左上角坐标。  [0052] wherein, Oldlmage is the size of the first cropped picture, CurrlmageSize is the size of the current cropped area, and locationPoint is the upper left corner coordinate of the current cropped area.
[0053] 步骤 240, 复制所述裁剪图片, 并将复制份显示至当前界面。 [0053] Step 240: Copy the cropped picture, and display the copied copy to the current interface.
[0054] 步骤 140, 在所述裁剪图片中, 计算所述目标监控设备的定位坐标。 [0054] Step 140: Calculate, in the cropped picture, positioning coordinates of the target monitoring device.
[0055] 具体地, 根据图片的缩放级别和中心点相对坐标, 计算目标监控设备定位到的 位置的定位坐标, 并将坐标保存到数据库。 [0055] Specifically, according to the zoom level of the picture and the relative coordinates of the center point, the positioning coordinates of the position where the target monitoring device is located are calculated, and the coordinates are saved to the database.
[0056] 进一步的, 在将定位坐标一起保存到数据库之前, 配置该目标监控设备在地图 上显示的图标、 名字、 以及状态改变需要显示的图标。 [0056] Further, before the positioning coordinates are saved together to the database, the icons, names, and icons that the target monitoring device displays on the map are configured to be displayed.
[0057] 进一步的, 当设备位于楼宇内吋, 则按照楼宇切换规划图对目标监控设备进行 定位。 [0057] Further, when the device is located in the building, the target monitoring device is positioned according to the building switching plan.
[0058] 步骤 150, 通过操作所述裁剪图片、 以及所述定位坐标, 计算所述目标监控设 备相对屏幕的位置坐标。  [0058] Step 150: Calculate position coordinates of the target monitoring device relative to the screen by operating the cropped picture and the positioning coordinates.
[0059] 具体地, 通过对裁剪图片进行放大、 缩小等操作, 移动所述目标监控设备在所 述屏幕的位置, 并根据定位坐标, 计算目标监控设备相对于屏幕的位置坐标。  [0059] Specifically, by zooming in, zooming out, etc., the position of the target monitoring device on the screen is moved, and the position coordinates of the target monitoring device relative to the screen are calculated according to the positioning coordinates.
[0060] 更具体地, 目标监控设备相对屏幕的位置坐标采用公式 (9) 进行计算。 [0060] More specifically, the positional coordinates of the target monitoring device relative to the screen are calculated using equation (9).
[0061] xzoom = ViewSize.Width÷CurrImageSize.Width 公式 (7) [0061] xzoom = ViewSize.Width÷CurrImageSize.Width Formula (7)
[0062] yzoom = ViewSize.Height÷CurrImageSize.Height 公式 (8)  [0062] yzoom = ViewSize.Height÷CurrImageSize.Height Formula (8)
[0063] Location (X , Y) =(layerLocation.X - imageLocation.X) x xzoom,  [0063] Location (X , Y) = (layerLocation.X - imageLocation.X) x xzoom,
(layerLocation. Y-imageLocation.Y)xyzoom 公式 (9)  (layerLocation. Y-imageLocation.Y)xyzoom formula (9)
[0064] 其中, ViewSize为显示区域的大小, CurrlmageSize为裁剪图片的大小, imageL ocation为裁剪图片的左上角坐标, layerLocation为目标监控设备相对图片的坐标  [0064] wherein, ViewSize is the size of the display area, CurrlmageSize is the size of the cropped picture, imageL ocation is the upper left coordinate of the cropped picture, and layerLocation is the coordinate of the target monitoring device relative to the picture.
[0065] 步骤 160, 根据所述地图文件生成的线路、 以及通过输入设备的操作绘制的屏 幕线, 计算所述目标监控设备相对所述裁剪图片的位置坐标, 以显示所述目标 监控设备在空间的地理位置。 [0066] 具体地, 目标监控设备相对裁剪图片的位置坐标 layerLocation (X , Y) 可以采 用公式 (10) 进行计算。 [0065] Step 160: Calculate, according to the line generated by the map file and the screen line drawn by the operation of the input device, location coordinates of the target monitoring device relative to the cropped image, to display the target monitoring device in space. Geographic location. [0066] Specifically, the position coordinate layerLocation (X , Y) of the target monitoring device relative to the cropped picture may be calculated by using formula (10).
[0067] layerLocation (X , Υ) = (location.X ÷ xzoom + imageLocation.X , location.Y ÷ yzoom + imageLocation.Y) 公式 ( 10) [0067] layerLocation (X , Υ) = (location.X ÷ xzoom + imageLocation.X , location.Y ÷ yzoom + imageLocation.Y) Formula (10)
[0068] 其中, location为相对屏幕的位置坐标, imageLocation为裁剪图片的左上角坐标  [0068] wherein, the location is the position coordinate of the relative screen, and the imageLocation is the coordinate of the upper left corner of the cropped image.
[0069] 在本实施例中, 所述输入设备可以是鼠标。 [0069] In this embodiment, the input device may be a mouse.
[0070] 例如, 当进行巡更路线规划、 警卫路线规划等业务吋, 通过鼠标的操作绘制屏 幕线路, 根据线路点集合, 并通过计算监控设备相对裁剪图片坐标, 将点集合 转化为相对裁剪图片坐标集合, 将线路存储至数据库。  [0070] For example, when performing patrol route planning, guard route planning, and the like, the screen line is drawn by the operation of the mouse, and the point set is converted into a relative cropped picture according to the set of the line points and by calculating the relative cropping picture coordinates of the monitoring device. A collection of coordinates that stores the line to the database.
[0071] 当涉及到空间计算类业务, 如距离最近的监控点位, 基础空间计算单元可按照 相对图片坐标做距离运算。 当前放大级别及裁剪位置下, 相对图片坐标计算,其 中 layerLocation为设备相对图标坐标 , location为相对显示区域屏幕坐标,计算方法 如下:  [0071] When it comes to spatial computing services, such as the closest monitoring point, the base space computing unit can perform distance operations according to relative picture coordinates. Under the current zoom level and crop position, relative image coordinates are calculated, where layerLocation is the device relative icon coordinate and location is relative to the display area screen coordinates. The calculation method is as follows:
[0072] pointx = location.X I xzoom + imageLocation.X;  [0072] pointx = location.X I xzoom + imageLocation.X;
[0073] pointy = location.Y I yzoom + imageLocation.Y。 [0073] pointy = location.Y I yzoom + imageLocation.Y.
[0074] 步骤 170, 响应用户端的业务操作指令, 并反馈操作结果至屏幕的界面。  [0074] Step 170: Respond to the service operation instruction of the user end, and feed back the operation result to the interface of the screen.
[0075] 本实施例提供的监控设备的的空间显示方法, 将安防领域涉及的与吋空有关的 目标按照相对图片坐标, 结合形成包含图形对象和属性的 GIS地图要素, 并以数 据图层的形式纳入空间数据库进行统一管理。 可包含一个或多个安防领域专用 业务图层, 而图层包含一系列要素, 一个要素表示一个目标, 由图形对象和一 条属性记录共同构成。 图形对象通常由基本的点 (如摄像机)、 线 (如车辆运行轨 迹)、 面 (切换地图)构成, 属性表存储了该目标的附属信息 (如摄像机的编号、 名 称、 类型以及其它属性等), 图形对象和属性表记录行通过唯一标识号关联, 以 此实现空间信息和属性表的互査, 并且地图通过显示不同的要素图片以展示设 备不同状态, 例如门禁幵关, 摄像头的告警。 [0075] The spatial display method of the monitoring device provided by the embodiment combines the target related to the hollowing out in the security field according to the relative picture coordinates to form a GIS map element including the graphic object and the attribute, and the data layer is The form is incorporated into the spatial database for unified management. It can contain one or more security-specific business layers, while a layer contains a series of features, and a feature represents a target, consisting of a graphic object and a property record. Graphic objects are usually composed of basic points (such as cameras), lines (such as vehicle running tracks), and faces (switching maps). The attribute table stores auxiliary information of the target (such as camera number, name, type, and other attributes). The graphic object and the attribute table record line are associated by a unique identification number, thereby realizing mutual check of the spatial information and the attribute table, and the map displays different device pictures to display different states of the device, such as a door lock, a camera alarm.
[0076] 示例一, 选中点型业务接口中的摄像头, 通过鼠标单击或者双击摄像头, 使摄 像头进行闪烁。 [0077] 示例二, 选中线型业务中车辆运行轨迹的线, 选中的线会产生颜色的改变。 [0076] Example 1, the camera in the point type service interface is selected, and the camera is blinked by clicking or double clicking the camera. [0077] Example 2, the line of the vehicle running track in the line type service is selected, and the selected line will produce a color change.
[0078] 示例三, 选中面型业务中的楼宇地图, 选中的地图会进行切换。  [0078] Example 3: Select a building map in the face business, and the selected map will switch.
[0079] 示例四, 当涉及到空间计算类业务, 如距离最近的监控点位, 可按照相对裁剪 图片坐标做距离运算。  [0079] Example 4, when it comes to spatial computing-like services, such as the closest monitoring point, the distance operation can be performed according to the relative cropped picture coordinates.
[0080] 本实施例的监控设备的的空间显示方法, 通过操作目标图片, 裁剪并显示目标 监控设备在屏幕所处的当前界面, 以生成裁剪图片, 在裁剪图片中计算目标监 控设备的定位坐标, 根据操作裁剪图片以及定位坐标计算目标监控设备相对屏 幕的位置坐标以及相对裁剪图片的位置坐标, 以显示目标监控设备在空间的地 理位置, 从而能够准确的显示设备单元的空间位置, 并跟随鼠标的操作平滑的 显示漫游、 放大、 缩小操作, 并能够降低 GIS监控系统的架设难度及架设费用。  [0080] The spatial display method of the monitoring device of the embodiment, by operating the target image, cropping and displaying the current interface of the target monitoring device at the screen to generate a cropped image, and calculating the positioning coordinates of the target monitoring device in the cropped image Calculating the position coordinates of the target monitoring device relative to the screen and the position coordinates of the relative cropped image according to the operation of cropping the image and the positioning coordinates, so as to display the geographical position of the target monitoring device in space, thereby accurately displaying the spatial position of the device unit, and following the mouse The operation smoothly displays the roaming, zooming in and zooming out operations, and can reduce the difficulty of erecting the GIS monitoring system and the cost of erection.
[0081] 请参照图 3, 本发明另一较佳实施例还提供了一种监控设备的空间显示装置, 该装置包括:  [0081] Referring to FIG. 3, another preferred embodiment of the present invention further provides a space display device for a monitoring device, where the device includes:
[0082] 导入模块 310, 设置为导入地图文件。  [0082] The import module 310 is set to import a map file.
[0083] 具体地, 本实施例中的地图文件包括园区规划图、 楼宇建设图或者卫星影像图  [0083] Specifically, the map file in this embodiment includes a park plan map, a building construction map, or a satellite image map.
[0084] 可选地, 在导入模块 310导入地图文件之前, 可以先在本地文件中査找是否存 在需要的地图文件, 若未査找到, 则触发导入模块 310, 若査找到, 则无需触发 导入模块 310。 [0084] Optionally, before the importing module 310 imports the map file, the local file may be searched for whether the required map file exists. If not, the import module 310 is triggered. If the search module is found, the import module is not triggered. 310.
[0085] 图片査找模块 320, 设置为从所述地图文件中査找目标图片, 所述目标图片包 含目标监控设备。  [0085] The picture search module 320 is configured to search for a target picture from the map file, where the target picture includes a target monitoring device.
[0086] 可选的, 根据操作指令, 图片査找模块 320对所述地图文件执行相应地操作, 以找到目标监控设备。 操作指令包括: 放大、 缩小、 漫游等操作。  [0086] Optionally, according to the operation instruction, the picture search module 320 performs corresponding operations on the map file to find the target monitoring device. Operation instructions include: operations such as zooming in, zooming out, and roaming.
[0087] 图片裁剪显示模块 330, 设置为当操作所述目标图片吋, 裁剪并显示所述目标 监控设备在屏幕所处的当前界面, 并生成裁剪图片。  [0087] The picture cropping display module 330 is configured to, when the target picture is operated, crop and display the current interface where the target monitoring device is located, and generate a cropped picture.
[0088] 具体地, 请参照图 4, 图片裁剪显示模块 330进一步包括:  [0088] Specifically, referring to FIG. 4, the picture cropping display module 330 further includes:
[0089] 获取单元 410, 设置为获取目标图片的缩放级别、 以及目标图片的中心点相对 坐标。  [0089] The obtaining unit 410 is configured to acquire a zoom level of the target picture and a center point relative coordinate of the target picture.
[0090] 具体地, 获取单元 410根据输入设备的滚动方向获取操作指令中的缩放级别。 具体地, 缩放级别 (ZoomLevel) 的大小采用公式 (2) 进行计算。 [0090] Specifically, the obtaining unit 410 acquires the zoom level in the operation instruction according to the scroll direction of the input device. Specifically, the size of the zoom level (ZoomLevel) is calculated using equation (2).
[0091] N=Mousewheel/120 公式 (1) [0091] N=Mousewheel/120 Formula (1)
[0092] ZoomLevel=N>0?l. lnxZoomLevel: ZoomLevel÷l. In 公式 (2)  [0092] ZoomLevel=N>0?l. lnxZoomLevel: ZoomLevel÷l. In Formula (2)
[0093] 其中, Monsewheel为鼠标滚轮值。 若鼠标的滚轮沿着第一方向进行滚动吋, 则 滚轮值为正数, N为正数; 若鼠标的滚轮沿着与第一方向相反的第二方向进行滚 动吋, 则滚轮值为负数, N为负数。 也就是说, 当滚轮为正方向吋, 缩放级别等 于当前缩放级别乘于 1.1的 N次方, 当滚轮为负方向吋, 缩放级别等于当前缩放 级别除于 1.1的 N次方。 [0093] wherein, the Monsewheel is a mouse wheel value. If the mouse wheel is scrolling in the first direction, the wheel value is a positive number, and N is a positive number; if the mouse wheel is scrolled in a second direction opposite to the first direction, the wheel value is a negative number. N is a negative number. That is, when the scroll wheel is in the forward direction, the zoom level is equal to the current zoom level multiplied by 1.1 to the Nth power. When the scroll wheel is in the negative direction, the zoom level is equal to the current zoom level divided by 1.1 to the Nth power.
[0094] 计算单元 420, 设置为根据所述缩放级别, 计算当前屏幕的矩形显示框的大小  [0094] The calculating unit 420 is configured to calculate a size of a rectangular display frame of the current screen according to the zoom level
[0095] 具体地, 矩形显示框 (CurrlmageSize) 的大小采用公式 (3) 进行计算。 [0095] Specifically, the size of the rectangular display frame (CurrlmageSize) is calculated using the formula (3).
[0096] CurrImageSize= (lmgSrcSize.X÷ZoomLevel , ImgSrc Size . Y÷ZoomLe ve ) 公式 [0096] CurrImageSize=(lmgSrcSize.X÷ZoomLevel , ImgSrc Size . Y÷ZoomLe ve ) Formula
(3)  (3)
[0097] 其中, ZoomLevel为当前操作下的放大级别, ImgSrcSize为导入的图片大小。  [0097] wherein, ZoomLevel is the zoom level under the current operation, and ImgSrcSize is the imported picture size.
[0098] 裁剪单元 430, 设置为在所述目标图片的中心点相对坐标位置上对所述目标图 片按照所述矩形显示框的大小进行裁剪, 生成裁剪图片。 [0098] The cropping unit 430 is configured to crop the target image according to the size of the rectangular display frame at a center point relative coordinate position of the target picture to generate a cropped picture.
[0099] 具体地, 若仅按照矩形显示框生成第一裁剪图片, 则裁剪单元 430第一次裁剪 图片的大小与矩形显示框的大小相等。 若对第一裁剪图片进行裁剪, 生成第二 裁剪图片吋, 则裁剪单元 430第二裁剪图片 (rectangle) 的大小采用公式 (6) 进 行计算。 [0099] Specifically, if the first cropped picture is generated only in accordance with the rectangular display frame, the cropping unit 430 first crops the size of the image to be equal to the size of the rectangular display frame. If the first cropped picture is cropped to generate the second cropped picture, the size of the second cropped picture (rectangle) of the cropping unit 430 is calculated by the formula (6).
[0100] imageLocation.X = (Oldlmage.Width - CurrlmageSize.Width) ÷ 2 +  [0100] imageLocation.X = (Oldlmage.Width - CurrlmageSize.Width) ÷ 2 +
imageLocation.X 公式 (4)  imageLocation.X formula (4)
[0101] imageLocation.Y = (Oldlmage.Height - CurrlmageSize.Height) ÷ 2 +  [0101] imageLocation.Y = (Oldlmage.Height - CurrlmageSize.Height) ÷ 2 +
imageLocation.Y 公式 (5)  imageLocation.Y formula (5)
[0102] rectangle = (imageLocation, CurrlmageSize) 公式 (6)  [0102] rectangle = (imageLocation, CurrlmageSize) formula (6)
[0103] 其中, Oldlmage为第一裁剪图片的大小, CurrlmageSize为当前裁剪区域的大小, locationPoint为当前裁剪区域的左上角坐标。  [0103] wherein, Oldlmage is the size of the first cropped picture, CurrlmageSize is the size of the current cropped area, and locationPoint is the upper left corner coordinate of the current cropped area.
[0104] 显示单元 440, 设置为复制所述裁剪图片, 并将复制份显示至当前界面。 [0105] 第一计算装置 340, 设置为在所述裁剪图片中, 计算所述目标监控设备的定位 坐标。 [0104] The display unit 440 is configured to copy the cropped picture and display the copied copy to the current interface. [0105] The first computing device 340 is configured to calculate positioning coordinates of the target monitoring device in the cropped picture.
[0106] 具体地, 根据图片的缩放级别和中心点相对坐标, 第一计算装置 340计算目标 监控设备定位到的位置的定位坐标, 并将坐标保存到数据库。  [0106] Specifically, based on the zoom level of the picture and the relative coordinates of the center point, the first computing device 340 calculates the positioning coordinates of the position to which the target monitoring device is located, and saves the coordinates to the database.
[0107] 进一步的, 在将定位坐标一起保存到数据库之前, 配置该目标监控设备在地图 上显示的图标、 名字、 以及状态改变需要显示的图标。 [0107] Further, before the positioning coordinates are saved together to the database, the icons, names, and icons that the target monitoring device displays on the map are configured to be displayed.
[0108] 进一步的, 当设备位于楼宇内吋, 则第一计算装置 340按照楼宇切换规划图对 目标监控设备进行定位。 [0108] Further, when the device is located in the building, the first computing device 340 locates the target monitoring device according to the building switching plan.
[0109] 第二计算装置 350, 设置为通过操作所述裁剪图片、 以及所述定位坐标, 计算 所述目标监控设备相对屏幕的位置坐标。 [0109] The second computing device 350 is configured to calculate a position coordinate of the target monitoring device relative to the screen by operating the cropped picture and the positioning coordinates.
[0110] 具体地, 通过对裁剪图片进行放大、 缩小等操作, 移动所述目标监控设备在所 述屏幕的位置, 并根据定位坐标, 第二计算装置 350计算目标监控设备相对于屏 幕的位置坐标。 [0110] Specifically, by zooming in, zooming out, etc., the position of the target monitoring device on the screen is moved, and according to the positioning coordinates, the second computing device 350 calculates the position coordinate of the target monitoring device relative to the screen. .
[0111] 更具体地, 目标监控设备相对屏幕的位置坐标采用公式 (9) 进行计算。  [0111] More specifically, the positional coordinates of the target monitoring device with respect to the screen are calculated using Equation (9).
[0112] xzoom = ViewSize.Width÷CurrImageSize.Width 公式 (7) [0112] xzoom = ViewSize.Width÷CurrImageSize.Width Formula (7)
[0113] yzoom = ViewSize.Height÷CurrImageSize.Height 公式 (8)  [0113] yzoom = ViewSize.Height÷CurrImageSize.Height Formula (8)
[0114] Location (X , Y) =(layerLocation.X - imageLocation.X) x  [0114] Location (X , Y) = (layerLocation.X - imageLocation.X) x
xzoom,(layerLocation.Y-imageLocation.Y)xyzoom 公式 (9)  Xzoom, (layerLocation.Y-imageLocation.Y) xyzoom formula (9)
[0115] 其中, ViewSize为显示区域的大小, CurrlmageSize为裁剪图片的大小, imageL ocation为裁剪图片的左上角坐标, layerLocation为目标监控设备相对图片的坐标  [0115] wherein, ViewSize is the size of the display area, CurrlmageSize is the size of the cropped picture, imageL ocation is the upper left coordinate of the cropped picture, and layerLocation is the coordinate of the target monitoring device relative to the picture.
[0116] 第三计算装置 360, 设置为根据所述地图文件生成的线路、 以及通过输入设备 的操作绘制的屏幕线, 计算所述目标监控设备相对所述裁剪图片的位置坐标, 以显示所述目标监控设备在空间的地理位置。 [0116] The third computing device 360 is configured to calculate a position coordinate of the target monitoring device relative to the cropped image according to a line generated by the map file and a screen line drawn by an operation of the input device, to display the The target monitors the geographical location of the device in space.
[0117] 具体地, 目标监控设备相对裁剪图片的位置坐标 layerLocation (X , Y) 可以采 用公式 (10) 进行计算。 [0117] Specifically, the position coordinate layerLocation (X , Y) of the target monitoring device relative to the cropped picture can be calculated by using formula (10).
[0118] layerLocation (X , Y) = (location.X ÷ xzoom + imageLocation.X , location.Y ÷ yzoom + imageLocation.Y) 公式 ( 10) [0119] 其中, location为相对屏幕的位置坐标, imageLocation为裁剪图片的左上角坐标 [0118] layerLocation (X , Y) = (location.X ÷ xzoom + imageLocation.X , location.Y ÷ yzoom + imageLocation.Y) Formula (10) [0119] wherein, location is the position coordinate of the relative screen, and imageLocation is the coordinate of the upper left corner of the cropped image
[0120] 在本实施例中, 所述输入设备可以是鼠标。 [0120] In this embodiment, the input device may be a mouse.
[0121] 例如, 当进行巡更路线规划、 警卫路线规划等业务吋, 通过鼠标的操作绘制屏 幕线路, 根据线路点集合, 并通过计算监控设备相对裁剪图片坐标, 将点集合 转化为相对裁剪图片坐标集合, 将线路存储至数据库。  [0121] For example, when performing patrol route planning, guard route planning, and the like, the screen line is drawn by the operation of the mouse, and the point set is converted into a relative cropped picture according to the line point set and by calculating the relative cropping picture coordinates of the monitoring device. A collection of coordinates that stores the line to the database.
[0122] 当涉及到空间计算类业务, 如距离最近的监控点位, 基础空间计算单元可按照 相对图片坐标做距离运算。 当前放大级别及裁剪位置下, 相对图片坐标计算,其 中 layerLocation为设备相对图标坐标 Jocation为相对显示区域屏幕坐标,计算方法 如下:  [0122] When referring to a space calculation type service, such as a nearest monitoring point, the base space calculation unit may perform a distance operation according to the relative picture coordinates. Under the current zoom level and crop position, the relative picture coordinates are calculated, where layerLocation is the device relative icon coordinate Jocation is the relative display area screen coordinates, and the calculation method is as follows:
[0123] pointx = location.X I xzoom + imageLocation.X;  [0123] pointx = location.X I xzoom + imageLocation.X;
[0124] pointy = location.Y I yzoom + imageLocation.Y。 [0124] pointy = location.Y I yzoom + imageLocation.Y.
[0125] 执行模块 370, 设置为响应用户端的业务操作指令, 并反馈操作结果至屏幕的 界面。  [0125] The execution module 370 is configured to respond to the service operation instruction of the user end, and feed back the operation result to the interface of the screen.
[0126] 本实施例提供的监控设备的的空间显示装置, 将安防领域涉及的与吋空有关的 目标按照相对图片坐标, 结合形成包含图形对象和属性的 GIS地图要素, 并以数 据图层的形式纳入空间数据库进行统一管理。 可包含一个或多个安防领域专用 业务图层, 而图层包含一系列要素, 一个要素表示一个目标, 由图形对象和一 条属性记录共同构成。 图形对象通常由基本的点 (如摄像机)、 线 (如车辆运行轨 迹)、 面 (切换地图)构成, 属性表存储了该目标的附属信息 (如摄像机的编号、 名 称、 类型以及其它属性等), 图形对象和属性表记录行通过唯一标识号关联, 以 此实现空间信息和属性表的互査, 并且地图通过显示不同的要素图片以展示设 备不同状态, 例如门禁幵关, 摄像头的告警。  [0126] The spatial display device of the monitoring device provided by the embodiment combines the target related to the hollowing in the security field according to the relative picture coordinates to form a GIS map element including the graphic object and the attribute, and the data layer is The form is incorporated into the spatial database for unified management. It can contain one or more security-specific business layers, while a layer contains a series of features, and a feature represents a target, consisting of a graphic object and a property record. Graphic objects are usually composed of basic points (such as cameras), lines (such as vehicle running tracks), and faces (switching maps). The attribute table stores auxiliary information of the target (such as camera number, name, type, and other attributes). The graphic object and the attribute table record line are associated by a unique identification number, thereby realizing mutual check of the spatial information and the attribute table, and the map displays different device pictures to display different states of the device, such as a door lock, a camera alarm.
[0127] 示例一, 选中点型业务接口中的摄像头, 通过鼠标单击或者双击摄像头, 使摄 像头进行闪烁。  [0127] Example 1, the camera in the point type service interface is selected, and the camera is blinked by clicking or double clicking the camera.
[0128] 示例二, 选中线型业务中车辆运行轨迹的线, 选中的线会产生颜色的改变。  [0128] Example 2, the line of the vehicle running track in the line type service is selected, and the selected line will produce a color change.
[0129] 示例三, 选中面型业务中的楼宇地图, 选中的地图会进行切换。  [0129] Example 3, the building map in the face business is selected, and the selected map is switched.
[0130] 示例四, 当涉及到空间计算类业务, 如距离最近的监控点位, 可按照相对裁剪 图片坐标做距离运算。 [0130] Example 4, when it comes to spatial computing services, such as the nearest monitoring point, you can follow the relative cropping The picture coordinates are used for distance calculation.
[0131] 本实施例的监控设备的的空间显示装置, 通过操作目标图片, 图片裁剪显示模 块 330裁剪并显示目标监控设备在屏幕所处的当前界面, 以生成裁剪图片, 第一 计算模块 340在裁剪图片中计算目标监控设备的定位坐标, 第二计算模块 350根 据操作裁剪图片以及定位坐标计算目标监控设备相对屏幕的位置坐标, 以及第 三计算模块 360计算目标监控设备相对裁剪图片的位置坐标, 以显示目标监控设 备在空间的地理位置, 从而能够准确的显示设备单元的空间位置, 并跟随鼠标 的操作平滑的显示漫游、 放大、 缩小操作, 并能够降低 GIS监控系统的架设难度 及架设费用。  [0131] The spatial display device of the monitoring device of the embodiment, by operating the target image, the image cropping display module 330 crops and displays the current interface of the target monitoring device at the screen to generate a cropped image, and the first computing module 340 is Calculating the positioning coordinates of the target monitoring device in the cropped image, the second calculating module 350 calculates the position coordinates of the target monitoring device relative to the screen according to the operation cropping picture and the positioning coordinates, and the third calculating module 360 calculates the position coordinates of the target monitoring device relative to the cropped image, In order to display the geographical location of the target monitoring device in space, the spatial position of the device unit can be accurately displayed, and the roaming, zooming, and zooming operations can be smoothly displayed following the operation of the mouse, and the erection difficulty and the erection cost of the GIS monitoring system can be reduced.
[0132] 需要说明的是, 在本文中, 术语"包括"或者其任何其他变体意在涵盖非排他性 的包含, 从而使得包括一系列要素的过程、 方法、 物品或者装置不仅包括那些 要素, 而且还包括没有明确列出的其他要素, 或者是还包括为这种过程、 方法 、 物品或者装置所固有的要素。 在没有更多限制的情况下, 由语句 "包括一个… …"限定的要素, 并不排除在包括该要素的过程、 方法、 物品或者装置中还存在 另外的相同要素。  [0132] It should be noted that, the term "comprising" or any other variation thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also It also includes other elements not explicitly listed, or elements that are inherent to such a process, method, item, or device. An element defined by the phrase "comprising a ...", without further limitation, does not exclude the presence of additional elements in the process, method, article, or device that comprises the element.
[0133] 上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。  [0133] The foregoing serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
[0134] 通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到上述实施例 方法可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件, 但很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案本 质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该计 算机软件产品存储在一个存储介质 (如 ROM/RAM、 磁碟、 光盘) 中, 包括若干 指令用以使得一台终端设备 (可以是手机, 计算机, 服务器, 空调器, 或者网 络设备等) 执行本发明各个实施例所述的方法。 [0134] Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former It is a better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
[0135] 以上仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利用本 发明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运用在 其他相关的技术领域, 均同理包括在本发明的专利保护范围内。  The above is only a preferred embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the invention and the drawings are directly or indirectly applied to other related The technical field is equally included in the scope of patent protection of the present invention.
工业实用性  Industrial applicability
[0136] 本发明提出的监控设备的空间显示方法及装置, 通过操作目标图片, 裁剪并显 示目标监控设备在屏幕所处的当前界面, 以生成裁剪图片, 在裁剪图片中计算 目标监控设备的定位坐标, 根据操作裁剪图片以及定位坐标计算目标监控设备 相对屏幕的位置坐标以及相对裁剪图片的位置坐标, 以显示目标监控设备在空 间的地理位置, 能够准确的显示设备单元的空间位置, 并跟随鼠标的操作平滑 的显示漫游、 放大、 缩小操作, 并能够降低 GIS监控系统的架设难度及架设费用 [0136] The space display method and device of the monitoring device proposed by the present invention are cut and displayed by operating a target picture Displaying the current interface of the target monitoring device on the screen to generate a cropped image, calculating the positioning coordinates of the target monitoring device in the cropped image, calculating the position coordinates of the target monitoring device relative to the screen and the relative cropping image according to the operation of cropping the image and the positioning coordinates Position coordinates, to display the geographical location of the target monitoring device, can accurately display the spatial position of the device unit, and smoothly display the roaming, zooming in and zooming operations following the operation of the mouse, and can reduce the difficulty and erection of the GIS monitoring system. cost

Claims

权利要求书 Claim
[权利要求 1] 一种监控设备的空间显示方法, 所述方法包括: [Claim 1] A spatial display method of a monitoring device, the method comprising:
裁剪并显示目标监控设备在屏幕所处的当前界面, 并生成裁剪图片; 在所述裁剪图片中, 计算所述目标监控设备的定位坐标;  Cropping and displaying a current interface of the target monitoring device at the screen, and generating a cropped image; in the cropped image, calculating a positioning coordinate of the target monitoring device;
通过操作所述裁剪图片、 以及所述定位坐标, 计算所述目标监控设备 相对屏幕的位置坐标; 根据地图文件生成的线路、 以及通过输入设备的操作绘制的屏幕线, 计算所述目标监控设备相对所述裁剪图片的位置坐标, 以显示所述目 标监控设备在空间的地理位置。  Calculating position coordinates of the target monitoring device relative to the screen by operating the cropped image and the positioning coordinates; calculating the target monitoring device relative to the line generated by the map file and the screen line drawn by the operation of the input device The position coordinates of the cropped picture are displayed to show the geographical location of the target monitoring device in space.
[权利要求 2] 根据权利要求 1所述的监控设备的空间显示方法, 其中, 在所述裁剪 并显示目标监控设备在屏幕所处的当前界面, 并生成裁剪图片之前, 所述方法还包括:  [Claim 2] The spatial display method of the monitoring device according to claim 1, wherein before the cropping and displaying the current interface where the target monitoring device is located, and generating the cropped image, the method further includes:
导入所述地图文件;  Import the map file;
从所述地图文件中査找目标图片, 所述目标图片包含目标监控设备。  A target picture is searched from the map file, and the target picture includes a target monitoring device.
[权利要求 3] 根据权利要求 2所述的监控设备的空间显示方法, 其中, 所述裁剪并 显示目标监控设备在屏幕所处的当前界面, 并生成裁剪图片, 包括: 获取目标图片的缩放级别、 以及目标图片的中心点相对坐标; 根据所述缩放级别, 计算当前屏幕的矩形显示框的大小; [Claim 3] The spatial display method of the monitoring device according to claim 2, wherein the cropping and displaying the current interface of the target monitoring device at the screen and generating the cropped image comprises: obtaining a zoom level of the target image And a relative coordinate of a center point of the target image; calculating a size of a rectangular display frame of the current screen according to the zoom level;
在所述目标图片的中心点相对坐标位置上对所述目标图片按照所述矩 形显示框的大小进行裁剪, 生成裁剪图片;  And cropping the target picture according to a size of the rectangular display frame at a center point relative coordinate position of the target picture to generate a cropped picture;
复制所述裁剪图片, 并将复制份显示至当前界面。  Copy the cropped image and display the copied copy to the current interface.
[权利要求 4] 根据权利要求 1所述的监控设备的空间显示方法, 其中, 所述目标监 控设备相对屏幕的位置坐标与所述目标监控设备相对所述裁剪图片的 位置坐标之间符合以下公式: [Claim 4] The spatial display method of the monitoring device according to claim 1, wherein the positional coordinates of the target monitoring device relative to the screen and the positional coordinates of the target monitoring device relative to the cropped image conform to the following formula :
xzoom = ViewSize.Width÷CurrImageSize.Width;  Xzoom = ViewSize.Width÷CurrImageSize.Width;
yzoom = ViewSize.Height÷CurrImageSize.Height;  Yzoom = ViewSize.Height÷CurrImageSize.Height;
Location (X , Y) =(layerLocation.X - imageLocation.X) x  Location (X , Y) = (layerLocation.X - imageLocation.X) x
xzoom,(layerLocation.Y-imageLocation.Y)xyzoom; 其中, ViewSize为显示区域的大小, CurrlmageSize为裁剪图片的大小 , Location (X , Xzoom, (layerLocation.Y-imageLocation.Y)xyzoom; Among them, ViewSize is the size of the display area, CurrlmageSize is the size of the cropped image, Location (X,
Υ) 为所述目标监控设备相对屏幕的位置坐标, imageLocation (X , Y ) 为裁剪图片的左上角坐标, layerLocation (X , Y) 为目标监控设备 相对图片的坐标。  Υ) For the target to monitor the position coordinates of the device relative to the screen, imageLocation (X , Y ) is the coordinates of the upper left corner of the cropped image, and layerLocation (X , Y) is the coordinate of the relative image of the target monitoring device.
[权利要求 5] 根据权利要求 1-4任一项所述的监控设备的空间显示方法, 其中, 所 述方法还包括: 响应用户端的业务操作指令, 并反馈操作结果至屏幕 的界面。  [Claim 5] The spatial display method of the monitoring device according to any one of claims 1-4, wherein the method further comprises: responding to the business operation instruction of the user end, and feeding back the operation result to the interface of the screen.
[权利要求 6] —种监控设备的空间显示装置, 所述装置包括:  [Claim 6] A space display device for a monitoring device, the device comprising:
图片裁剪显示模块, 设置为裁剪并显示目标监控设备在屏幕所处的当 前界面, 并生成裁剪图片;  The picture cropping display module is set to crop and display the current interface of the target monitoring device at the screen, and generate a cropped picture;
第一计算模块, 设置为在所述裁剪图片中, 计算所述目标监控设备的 定位坐标;  a first calculating module, configured to calculate, in the cropped picture, a positioning coordinate of the target monitoring device;
第二计算模块, 设置为通过操作所述裁剪图片、 以及所述定位坐标, 计算所述目标监控设备相对屏幕的位置坐标;  a second calculating module, configured to calculate a position coordinate of the target monitoring device relative to the screen by operating the cropped image and the positioning coordinates;
第三计算模块, 设置为根据地图文件生成的线路、 以及通过输入设备 的操作绘制的屏幕线, 计算所述目标监控设备相对所述裁剪图片的位 置坐标, 以显示所述目标监控设备在空间的地理位置。  a third calculating module, configured to calculate a position coordinate of the target monitoring device relative to the cropped image by using a line generated according to the map file and a screen line drawn by operation of the input device, to display the target monitoring device in space Geographic location.
[权利要求 7] 根据权利要求 6所述的监控设备的空间显示装置, 其中, 所述装置还 包括: The space display device of the monitoring device according to claim 6, wherein the device further comprises:
导入模块, 设置为导入所述地图文件;  Import module, set to import the map file;
图片査找模块, 设置为从所述地图文件中査找目标图片, 所述目标图 片包含目标监控设备。  And a picture search module, configured to search for a target picture from the map file, where the target picture includes a target monitoring device.
[权利要求 8] 根据权利要求 7所述的监控设备的空间显示装置, 其中, 所述图片裁 剪显示模块包括:  The space display device of the monitoring device according to claim 7, wherein the picture cropping display module comprises:
获取单元, 设置为获取目标图片的缩放级别、 以及目标图片的中心点 相对坐标;  An obtaining unit, configured to obtain a zoom level of the target image, and a center point relative coordinate of the target image;
计算单元, 设置为根据所述缩放级别, 计算当前屏幕的矩形显示框的 大小; a calculating unit, configured to calculate a rectangular display frame of the current screen according to the zoom level Size
裁剪单元, 设置为在所述目标图片的中心点相对坐标位置上对所述目 标图片按照所述矩形显示框的大小进行裁剪, 生成裁剪图片; 显示单元, 设置为复制所述裁剪图片, 并将复制份显示至当前界面。  a cropping unit, configured to crop the target image according to a size of the rectangular display frame at a center coordinate relative coordinate position of the target image to generate a cropped image; a display unit configured to copy the cropped image, and The copy is displayed to the current interface.
[权利要求 9] 根据权利要求 6所述的监控设备的空间显示装置, 其中, 所述第二计 算单元计算的所述目标监控设备相对屏幕的位置坐标与上述第三计算 单元计算的所述目标监控设备相对所述裁剪图片的位置坐标之间符合 以下公式:  The spatial display device of the monitoring device according to claim 6, wherein the position coordinate of the target monitoring device relative to the screen calculated by the second calculating unit and the target calculated by the third calculating unit The positional coordinates of the monitoring device relative to the cropped image conform to the following formula:
xzoom = ViewSize.Width÷CurrImageSize.Width;  Xzoom = ViewSize.Width÷CurrImageSize.Width;
yzoom = ViewSize.Height÷CurrImageSize.Height;  Yzoom = ViewSize.Height÷CurrImageSize.Height;
Location (X , Y) =(layerLocation.X - imageLocation.X) x  Location (X , Y) = (layerLocation.X - imageLocation.X) x
xzoom,(layerLocation.Y-imageLocation.Y)xyzoom;  Xzoom, (layerLocation.Y-imageLocation.Y)xyzoom;
其中, ViewSize为显示区域的大小, CurrlmageSize为裁剪图片的大小 Where ViewSize is the size of the display area, and CurrlmageSize is the size of the cropped image.
, Location (X , , Location (X ,
Υ) 为所述目标监控设备相对屏幕的位置坐标, imageLocation (X , Y ) 为裁剪图片的左上角坐标, layerLocation (X , Y) 为目标监控设备 相对图片的坐标。  Υ) For the target to monitor the position coordinates of the device relative to the screen, imageLocation (X , Y ) is the coordinates of the upper left corner of the cropped image, and layerLocation (X , Y) is the coordinate of the relative image of the target monitoring device.
[权利要求 10] 根据权利要求 6-9任一项所述的监控设备的空间显示装置, 其中, 所 述装置还包括:  The space display device of the monitoring device according to any one of claims 6 to 9, wherein the device further comprises:
执行模块, 设置为响应用户端的业务操作指令, 并反馈操作结果至屏 幕的界面。  The execution module is set to respond to the business operation instructions of the client, and feeds back the operation result to the interface of the screen.
PCT/CN2017/078369 2017-03-28 2017-03-28 Spatial display method and apparatus for monitoring device WO2018176206A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780002698.2A CN108369602B (en) 2017-03-28 2017-03-08 Space display method and device of monitoring equipment
PCT/CN2017/078369 WO2018176206A1 (en) 2017-03-28 2017-03-28 Spatial display method and apparatus for monitoring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/078369 WO2018176206A1 (en) 2017-03-28 2017-03-28 Spatial display method and apparatus for monitoring device

Publications (1)

Publication Number Publication Date
WO2018176206A1 true WO2018176206A1 (en) 2018-10-04

Family

ID=63011410

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/078369 WO2018176206A1 (en) 2017-03-28 2017-03-28 Spatial display method and apparatus for monitoring device

Country Status (2)

Country Link
CN (1) CN108369602B (en)
WO (1) WO2018176206A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110611787B (en) * 2019-06-10 2021-05-28 海信视像科技股份有限公司 Display and image processing method
CN110381446A (en) * 2019-07-10 2019-10-25 宁夏仲检检测有限公司 A kind of sampler's motion profile method for tracing

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547128A (en) * 2012-02-02 2012-07-04 河南亚视软件技术有限公司 Intelligent monitoring method and application thereof
KR20120125037A (en) * 2011-05-06 2012-11-14 삼성테크윈 주식회사 Method for controlling surveillance system
CN105245825A (en) * 2015-08-24 2016-01-13 国网上海市电力公司 Video monitoring method based on map positioning of transformer station
US20160191860A1 (en) * 2014-12-24 2016-06-30 Electronics And Telecommunications Research Institute Apparatus and method for displaying surveillance area of camera
CN105898213A (en) * 2015-02-12 2016-08-24 佳能株式会社 Display control apparatus and display control method
CN106027960A (en) * 2016-05-13 2016-10-12 深圳先进技术研究院 Positioning system and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2475706C (en) * 2009-11-26 2013-01-09 Jabbakam Ltd Surveillance system and method
CN104166943A (en) * 2014-07-04 2014-11-26 国家电网公司 Method and device for drawing cable line graph
CN105354326B (en) * 2015-11-26 2020-09-04 航天恒星科技有限公司 Spatial position indexing method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120125037A (en) * 2011-05-06 2012-11-14 삼성테크윈 주식회사 Method for controlling surveillance system
CN102547128A (en) * 2012-02-02 2012-07-04 河南亚视软件技术有限公司 Intelligent monitoring method and application thereof
US20160191860A1 (en) * 2014-12-24 2016-06-30 Electronics And Telecommunications Research Institute Apparatus and method for displaying surveillance area of camera
CN105898213A (en) * 2015-02-12 2016-08-24 佳能株式会社 Display control apparatus and display control method
CN105245825A (en) * 2015-08-24 2016-01-13 国网上海市电力公司 Video monitoring method based on map positioning of transformer station
CN106027960A (en) * 2016-05-13 2016-10-12 深圳先进技术研究院 Positioning system and method

Also Published As

Publication number Publication date
CN108369602B (en) 2021-09-21
CN108369602A (en) 2018-08-03

Similar Documents

Publication Publication Date Title
JP4796435B2 (en) Image viewer
CN105444767B (en) User-defined private maps
US20160246889A1 (en) Selective map marker aggregation
CN110914870B (en) Annotation generation for image networks
US20190095536A1 (en) Method and device for content recommendation and computer readable storage medium
TW200921051A (en) View-independent tagging of geospatial entities in images
US20200042793A1 (en) Creating, managing and accessing spatially located information utilizing augmented reality and web technologies
JP5419644B2 (en) Method, system and computer-readable recording medium for providing image data
JP5478242B2 (en) Map display device, map display method, and program
WO2018176206A1 (en) Spatial display method and apparatus for monitoring device
CN112068753A (en) Method and device for searching business object
US9805627B2 (en) Method and apparatus for displaying digital map in client
JP2018005394A (en) Information processing device, method, and system
US20210027239A1 (en) System and method of asset tracking
JP2002366558A (en) System, method and program for providing communication tool
US9710486B2 (en) Determination of a filtered map interaction descriptor
US20080215460A1 (en) Merchandise location system
US20230052278A1 (en) Information processing apparatus, information processing method, and storage medium
CN106909364B (en) Terminal display method and visualization device
US20180112988A1 (en) System and method for displaying points of interest in augmented reality
KR102080872B1 (en) Device for providing map service and method for providing map service
Yan et al. Design and implementation of a mobile gis for field data collection
US20230056155A1 (en) Information processing apparatus, information processing method, and storage medium
US20230351758A1 (en) Monitoring and identifying traffic trends associated with entities in a physical area using multiple video sources
US20220222942A1 (en) Exhibition support device, exhibition support system, exhibition support method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17902964

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17902964

Country of ref document: EP

Kind code of ref document: A1