CN102164168A - A transmission and display method and system for dragging images - Google Patents
A transmission and display method and system for dragging images Download PDFInfo
- Publication number
- CN102164168A CN102164168A CN2011100412934A CN201110041293A CN102164168A CN 102164168 A CN102164168 A CN 102164168A CN 2011100412934 A CN2011100412934 A CN 2011100412934A CN 201110041293 A CN201110041293 A CN 201110041293A CN 102164168 A CN102164168 A CN 102164168A
- Authority
- CN
- China
- Prior art keywords
- transmission
- image
- display
- block
- existing
- 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.)
- Granted
Links
Images
Landscapes
- Digital Computer Display Output (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明属于远程控制领域,具体地说,涉及一种拖动图像的传输显示方法和系统。The invention belongs to the field of remote control, and in particular relates to a transmission and display method and system for dragging images.
背景技术Background technique
所谓远程控制,是指管理人员通过互联网联通处于异地的被控制的电脑,将被控电脑的桌面环境显示到自己的电脑中,通过本地电脑对处于异地的被控电脑进行配置、软件安装程序、修改等工作。The so-called remote control means that the management staff connects to the controlled computer in a different place through the Internet, displays the desktop environment of the controlled computer on their own computer, and configures, installs software, Modify and so on.
远程控制的工作原理:远程控制必须通过网络才能进行。位于本地的电脑是操纵指令的发出端,称为主控端,非本地的被控电脑称为被控端。主控端和被控端可以是位于同一局域网中,也可以是连入互联网的处在任何位置的两台或多台电脑。通常在主控端的电脑中安装服务器端程序,在被控端的电脑中安装客户端程序;使用时主控端的电脑中的服务器端程序向被控端的电脑中的客户端程序发出信号,建立一个特殊的远程服务,然后通过这个远程服务,使用各种远程控制功能发送远程控制命令,控制被控端的电脑中的各种应用程序运行。How remote control works: Remote control must be done through the network. The local computer is the sending end of the manipulation command, called the master control end, and the non-local controlled computer is called the controlled end. The master control end and the controlled end can be located in the same local area network, or two or more computers connected to the Internet at any location. Usually, the server-side program is installed in the computer of the master control end, and the client-side program is installed in the computer of the controlled end; when in use, the server-side program in the computer of the master control end sends a signal to the client program in the computer of the controlled end to establish a special Then through this remote service, use various remote control functions to send remote control commands to control the operation of various applications in the computer at the controlled end.
VNC(Virtual Network Computing虚拟网络计算机)就是一种远程控制技术,实质上属于一种跨平台的显示系统,将被控端的电脑的完整的窗口界面通过网络传输到主控端的电脑屏幕上显示。当操作者使用主控端的电脑控制被控端的电脑时,就如同坐在被控端的电脑的屏幕前一样,可以启动被控端电脑的应用程序,可以使用或窃取被控端电脑的文件资料,甚至可以利用被控端电脑的外部打印设备(打印机)和通信设备(调制解调器或者专线等)来进行打印和访问外网和内网。VNC (Virtual Network Computing virtual network computer) is a remote control technology, which is essentially a cross-platform display system, which transmits the complete window interface of the computer at the controlled end to the computer screen at the main control end through the network for display. When the operator uses the host computer to control the controlled computer, as if sitting in front of the screen of the controlled computer, the operator can start the application program of the controlled computer, use or steal the files and materials of the controlled computer, It is even possible to use the external printing device (printer) and communication device (modem or dedicated line, etc.) of the controlled computer to print and access the external network and intranet.
因为VNC是一个抽象工具,和客户机本机的图形系统并没有直接联系,VNC技术是对被控端的整个屏幕进行抓取,将屏幕作为一个位图传输到主控端并加以显示,因此,当客户机的用户执行鼠标拖动一个窗口在屏幕上移动时,VNC技术还需要将整个桌面不断的抓取传输至主控端重现,所传输的数据量必然会很大,在主控端重现屏幕也会耗费更多资源,传输效率和处理效率都非常低,这就会直接导致主控端所显示的画面更新速度很慢,画面严重滞后,并且刷新的效果不明显,从而影响主控端对被控端的远程控制,给被控端的用户的感觉就是远程控制的主控端的反应非常不灵敏,存在非常大的延迟。Because VNC is an abstract tool, it has no direct connection with the graphics system of the client machine. VNC technology captures the entire screen of the controlled terminal, and transmits the screen as a bitmap to the host terminal for display. Therefore, When the user of the client computer drags a window to move on the screen with the mouse, the VNC technology also needs to continuously capture and transmit the entire desktop to the host control end for reproduction, and the amount of transmitted data will inevitably be large. Reappearing the screen will also consume more resources, and the transmission efficiency and processing efficiency are very low, which will directly lead to the slow update speed of the picture displayed on the main control terminal, the picture lags seriously, and the refresh effect is not obvious, thus affecting the main control. The remote control of the controlled terminal by the control terminal gives the user of the controlled terminal the feeling that the response of the remote control main control terminal is very insensitive, and there is a very large delay.
发明内容Contents of the invention
有鉴于此,本发明所要解决的技术问题是提供了一种拖动图像的传输显示方法和系统,这样可以有效的降低了处理资源和传输资源的占用率,提升处理速度和传输速度。In view of this, the technical problem to be solved by the present invention is to provide a transmission and display method and system for dragging images, which can effectively reduce the occupancy rate of processing resources and transmission resources, and improve processing speed and transmission speed.
为了解决上述技术问题,本发明公开了一种拖动图像的传输显示方法,包括:在远程控制过程中,在本地侧检测到一已有窗体的位置发生变化;在网络侧将所述已有窗体替换显示到其新位置。In order to solve the above-mentioned technical problems, the present invention discloses a transmission and display method for dragging images, including: during the remote control process, detecting that the position of an existing window has changed on the local side; Have the form replace the display to its new location.
进一步地,还包括:在本地侧将所述已有窗体的原位置和新位置也一起传输至网络侧。Further, the method also includes: transmitting the original position and the new position of the existing window to the network side at the local side.
进一步地,检测到一已有窗体的位置发生变化,包括:在本地侧检测到存在鼠标点击拖动操作且被拖动至新位置的所述已有窗体在之前的远程控制过程中已被传输至网络侧。Further, detecting that the position of an existing form changes includes: detecting on the local side that there is a mouse click and drag operation and that the existing form that has been dragged to a new position has been changed in the previous remote control process is transmitted to the network side.
进一步地,所述已有窗体在之前的远程控制过程中已被传输至网络侧,包括:在本地侧根据所述已有窗体的图像在所保存的之前远程控制过程中所发送的图像中进行命中,如果命中,判定所述已有窗体在之前的远程控制过程中已被传输至网络侧。Further, the existing form has been transmitted to the network side in the previous remote control process, including: at the local side, according to the image of the existing form sent during the saved previous remote control process If hit, it is determined that the existing form has been transmitted to the network side in the previous remote control process.
进一步地,在网络侧将所述已有窗体替换显示,包括:在网络侧从所保存的之前远程控制过程中所接收的图像中获取所述已有窗体的图像,替换显示到其新位置。Further, replacing and displaying the existing form on the network side includes: obtaining the image of the existing form from the saved image received in the previous remote control process on the network side, and replacing and displaying the image to its new form. Location.
进一步地,还包括:在网络侧在所述已有窗体的原位置填充显示背景。Further, the method also includes: filling the display background at the original position of the existing window on the network side.
进一步地,还包括:在本地侧对所述已有窗体的原位置上的图像进行抓取并发送至所述网络侧;在网络侧在所述已有窗体的原位置填充显示所述图像。Further, it also includes: capturing the image at the original position of the existing form on the local side and sending it to the network side; filling and displaying the image at the original position of the existing form on the network side image.
进一步地,包括:在本地侧将所述已有窗体的原位置上的图像划分为若干区块;针对每一区块,识别其中包含的元素,如果存在一元素面积最大且占所述区块的面积的比重超过一门限,使用与所述元素的类别相应的压缩方式对所述区块进行压缩并随各区块的位置信息一起传输至网络侧;在网络侧接收并解压缩各区块,依据所述各区块的位置信息对各区块进行重组还原所述图像,在所述原位置填充显示所述图像。Further, it includes: dividing the image at the original position of the existing window into several blocks on the local side; for each block, identifying the elements contained therein, if there is an element with the largest area and occupying the area When the proportion of the area of the block exceeds a threshold, the block is compressed using a compression method corresponding to the type of the element and transmitted to the network side along with the location information of each block; each block is received and decompressed on the network side, Recombining each block according to the position information of each block to restore the image, filling and displaying the image at the original position.
为了解决上述技术问题,本发明还公开了一种拖动图像的传输显示系统,包括:传输装置和显示装置;所述传输装置,用于在远程控制过程中在本地侧检测到一已有窗体的位置发生变化;所述显示装置,用于在网络侧将所述已有窗体替换显示到其新位置。In order to solve the above technical problems, the present invention also discloses a transmission and display system for dragging images, including: a transmission device and a display device; the transmission device is used to detect an existing window at the local side during the remote control The position of the form changes; the display device is used to replace and display the existing form to its new position on the network side.
进一步地,所述传输装置,还用于将所述已有窗体的原位置和新位置也一起传输至所述显示装置。Further, the transmission device is also used to transmit the original position and the new position of the existing window to the display device.
进一步地,所述传输装置,还用于检测是否存在鼠标点击拖动操作且被拖动至新位置的所述已有窗体在之前的远程控制过程中是否已被传输至所述显示装置。Further, the transmission device is also used to detect whether there is a mouse click and drag operation and whether the existing window dragged to a new position has been transmitted to the display device during the previous remote control process.
进一步地,所述传输装置,还用于根据所述已有窗体的图像在存储装置中进行命中,如果命中,判定所述已有窗体在之前的远程控制过程中已被传输至所述显示装置;所述存储装置,为位于所述传输装置一侧的缓存或者位于第三方位置且与所述显示装置共享的缓存,用于缓存所述传输装置发送的已有窗体的图像。Further, the transmission device is also used to perform a hit in the storage device according to the image of the existing form, and if it is hit, it is determined that the existing form has been transmitted to the The display device; the storage device is a cache located on the side of the transmission device or a cache located at a third party and shared with the display device, and is used to cache the image of the existing window sent by the transmission device.
进一步地,所述显示装置,还用于由存储装置中获取所述已有窗体的图像;所述存储装置,为与所述传输装置同步且位于所述显示装置一侧的缓存或者位于第三方位置且与所述传输装置共享的缓存,用于缓存接收所述传输装置发送的已有窗体的图像。Further, the display device is also used to obtain the image of the existing window from the storage device; the storage device is a buffer that is synchronized with the transmission device and located on the side of the display device or located at the first The three-party location and the buffer shared with the transmission device are used for buffering and receiving the image of the existing form sent by the transmission device.
进一步地,所述显示装置,还用于在所述已有窗体的原位置填充显示背景。Further, the display device is also used to fill the display background at the original position of the existing window.
进一步地,所述传输装置,还用于对所述已有窗体的原位置上的图像进行抓取并发送至所述显示装置;所述显示装置,还用于在所述已有窗体的原位置填充显示所述图像。Further, the transmission device is also used to capture the image at the original position of the existing window and send it to the display device; the display device is also used to The in-place fill shows the image.
进一步地,所述传输装置,将所述已有窗体的原位置上的图像划分为若干区块,针对每一区块,识别其中包含的元素,如果存在一元素面积最大且占所述区块的面积的比重超过一门限,使用与所述元素的类别相应的压缩方式对所述区块进行压缩并随所述区块的位置信息一起传输至所述显示装置;所述显示装置,还用于接收并解压缩各区块,依据所述各区块的位置信息对各区块进行重组还原所述图像,在所述原位置填充显示所述图像。Further, the transmission device divides the image at the original position of the existing window into several blocks, and for each block, identifies the elements contained in it, if there is an element with the largest area and occupies the area When the proportion of the area of the block exceeds a threshold, the block is compressed using a compression method corresponding to the type of the element and transmitted to the display device together with the position information of the block; the display device also It is used for receiving and decompressing each block, recombining each block according to the position information of each block to restore the image, and filling and displaying the image at the original position.
与现有的方案相比,本发明所获得的技术效果:Compared with existing solutions, the technical effects obtained by the present invention are:
1)本发明特别针对窗体拖动这一情况,通过判断窗体拖动的发生,由网络侧直接从缓存中读取移动的窗体并显示,避免了重复的数据传输,大大减小了所需要传递的总数据量,节省了传输资源的占用;1) The present invention is particularly aimed at the situation of window dragging. By judging the occurrence of window dragging, the network side directly reads and displays the moving window from the cache, avoiding repeated data transmission and greatly reducing The total amount of data that needs to be transmitted saves the occupation of transmission resources;
2)同时对于窗体移动后的原位置,也通过分类处理的方式,填充背景或者填充新图像,保证了在网络侧还原桌面的精确性;2) At the same time, for the original position after the window is moved, the background or new image is also filled in through classification processing, which ensures the accuracy of restoring the desktop on the network side;
3)同时在填充新图像时,还通过对图像分类压缩的方式,将图像的传输尺寸进一步降低,减小了传输的数据量。3) At the same time, when filling the new image, the transmission size of the image is further reduced by classifying and compressing the image, which reduces the amount of transmitted data.
附图说明Description of drawings
图1为本发明实施例的总流程图;Fig. 1 is the overall flowchart of the embodiment of the present invention;
图2为本发明实施例的检测窗体拖动的流程图;Fig. 2 is the flowchart of the detection form dragging of the embodiment of the present invention;
图3为本发明应用实例的分类压缩处理的细部流程图;Fig. 3 is the detailed flowchart of the classification compression processing of the application example of the present invention;
图4为本发明实施例的系统示意图。Fig. 4 is a schematic diagram of the system of the embodiment of the present invention.
具体实施方式Detailed ways
以下将配合图式及实施例来详细说明本发明的实施方式,藉此对本发明如何应用技术手段来解决技术问题并达成技术功效的实现过程能充分理解并据以实施。The implementation of the present invention will be described in detail below in conjunction with the drawings and examples, so that the realization process of how to use technical means to solve technical problems and achieve technical effects in the present invention can be fully understood and implemented accordingly.
本发明的核心构思在于:在远程控制过程中,在本地侧检测到一已有窗体的位置发生变化;在网络侧将所述已有窗体替换显示到其新位置。所述窗体,可以是系统桌面内的窗体,也可以是所述窗体内显示的又一窗体,本发明并不限于此。The core idea of the present invention is: during the remote control process, the local side detects that the position of an existing window changes; and the network side replaces and displays the existing window to its new position. The window may be a window in the system desktop, or another window displayed in the window, and the present invention is not limited thereto.
以下以一个实施例对本发明的用于远程控制的分区传输方法进行说明。用户接受服务器的请求,接管用户的终端进行远程控制,在远程控制的过程中,需要服务器实时或周期地抓取用户终端的桌面,并保存为图片的形式发送到服务器上进行显示,从而在服务器上还原用户终端的桌面,方便维护人员在服务器上控制用户的终端。The partition transmission method for remote control of the present invention will be described below with an embodiment. The user accepts the server's request and takes over the user's terminal for remote control. In the process of remote control, the server needs to capture the desktop of the user terminal in real time or periodically, and save it as a picture and send it to the server for display, so that it can be displayed on the server. restore the desktop of the user terminal on the server, so that maintenance personnel can control the user terminal on the server.
本发明的拖动图像的传输显示方法,应用于在进行远程控制时服务侧接管用户侧,抓取并传输用户终端的桌面的过程。如图1所示,具体包括如下操作:The transmission and display method of the dragging image of the present invention is applied to the process that the service side takes over the user side during remote control, and captures and transmits the desktop of the user terminal. As shown in Figure 1, it specifically includes the following operations:
步骤S1,在远程控制过程中,在本地侧检测到一已有窗体的位置发生变化;Step S1, during the remote control process, it is detected on the local side that the position of an existing window has changed;
同时,在本地侧还将所述已有窗体的原位置和新位置也一起传输至网络侧;At the same time, the original position and the new position of the existing form are also transmitted to the network side at the local side;
步骤S2,在本地侧对原位置进行扫描,分情况执行步骤S3或S4;Step S2, scan the original position on the local side, and execute step S3 or S4 depending on the situation;
在本地侧扫描发现,所述已有窗体叠加显示在另一窗体或者图像上时,执行步骤S3,所述已有窗体直接显示在桌面背景上时,执行步骤S4;When the local scan finds that the existing form is superimposed on another form or image, step S3 is performed, and when the existing form is directly displayed on the desktop background, step S4 is performed;
步骤S3,在本地侧对所述已有窗体的原位置上的图像进行抓取并发送至所述网络侧,执行步骤S5;Step S3, capture the image at the original position of the existing form on the local side and send it to the network side, and execute step S5;
步骤S4,在网络侧在所述已有窗体的原位置填充显示背景,执行步骤S5;Step S4, fill the display background at the original position of the existing form on the network side, and execute step S5;
步骤S5,在网络侧将所述已有窗体替换显示到其新位置;Step S5, replacing and displaying the existing window to its new position on the network side;
因为是已有窗体,所以所述已有窗体在之前的远程控制过程中已被传输至网络侧,则在网络侧由缓存中直接获取所述已有窗体的图像,将所述图像替换显示到其新位置,从而在网络侧重现出这一时刻本地侧窗体拖动显示的效果;Because it is an existing form, the existing form has been transmitted to the network side in the previous remote control process, then the image of the existing form is directly obtained from the cache on the network side, and the image is stored Replace the display to its new position, so as to reproduce the effect of dragging and displaying the window on the local side at this moment on the network side;
所述缓存为与本地侧同步的网络侧缓存或位于第三方位置且与所述本地侧共享的缓存。The cache is a network-side cache synchronized with the local side or a cache located at a third-party location and shared with the local side.
对于步骤S1,检测是否存在一已有窗体的位置发生变化的判断方式,可以通过以下步骤实现。如图2所示,包括以下步骤:For step S1 , the judging method of detecting whether there is a change in the position of an existing window can be realized through the following steps. As shown in Figure 2, it includes the following steps:
步骤SS1,在本地侧检测是否存在鼠标点击拖动操作,如果是,则说明发生了有可能发生窗体移动,但窗体本身的图像没有变化,执行步骤SS2;如果没有发生,一般可以认为未发生窗体移动,流程结束;Step SS1, detect whether there is a mouse click and drag operation on the local side, if yes, it means that the window may be moved, but the image of the window itself does not change, go to step SS2; if it does not happen, it can generally be regarded as not The window moves and the process ends;
步骤SS2,监测被拖动至新位置的所述已有窗体在之前的远程控制过程中是否已被传输至网络侧,如果是,则可以确定是发生了窗体移动,并可以保证步骤S5中在网络侧可以通过直接读取缓存获取所述已有窗口的图像,避免了网络传输,此时跳转执行步骤S2;否则,执行步骤SS3;Step SS2, monitoring whether the existing form dragged to the new position has been transmitted to the network side in the previous remote control process, if yes, it can be determined that the form has been moved, and step S5 can be guaranteed In the network side, the image of the existing window can be obtained by directly reading the cache, avoiding network transmission, and then jump to step S2; otherwise, go to step SS3;
具体来说,在本地侧可以根据所述已有窗体的图像在缓存中进行命中,如果命中,判定所述已有窗体在之前的远程控制过程中已被传输至网络侧;如果未命中,判定所述已有窗体在之前的远程控制过程中尚未被传输至网络侧,所以步骤S5中在网络侧无法通过直接读取缓存获取所述已有窗口的图像,执行步骤SS3;Specifically, on the local side, a hit can be performed in the cache according to the image of the existing form, and if it is hit, it is determined that the existing form has been transmitted to the network side in the previous remote control process; if it is not hit , it is determined that the existing window has not been transmitted to the network side in the previous remote control process, so in step S5 the image of the existing window cannot be obtained by directly reading the cache on the network side, and step SS3 is performed;
所述缓存为本地侧缓存或者位于第三方位置且与所述网络侧共享的缓存;The cache is a cache on the local side or a cache located at a third-party location and shared with the network side;
步骤SS3,在本地侧对所述已有窗口的图像进行抓取传输,在所述网络侧对所述图像进行接收显示。Step SS3, capturing and transmitting the image of the existing window on the local side, and receiving and displaying the image on the network side.
本发明对于步骤S3,将在本地侧所述已有窗体的原位置上的图像传输至网络侧,或者对于步骤SS3,将本地侧的已有窗口的图像传输至网络侧,都可以通过下面对分类传输的方式传输至网络侧。如图3所示,包括以下步骤:For step S3 of the present invention, the image on the original position of the existing window on the local side is transmitted to the network side, or for step SS3, the image of the existing window on the local side is transmitted to the network side, both can be passed through the following steps: It is transmitted to the network side in the manner of classified transmission. As shown in Figure 3, the following steps are included:
步骤SSS1,在本地侧获取所述已有窗体的原位置上的图像或者已有窗口的图像;Step SSS1, acquiring the image at the original position of the existing form or the image of the existing window at the local side;
步骤SSS2,将所述图像划分为若干区块;Step SSS2, dividing the image into several blocks;
将所述图像按任意方式分为若干区块,例如,可以按九宫格将所述图像分为九个区块,也可以分成十六格等等,本发明并不限于此;Dividing the image into several blocks in any manner, for example, the image can be divided into nine blocks according to the nine-square grid, or it can be divided into sixteen grids, etc., and the present invention is not limited thereto;
步骤SSS3,针对每一区块识别其中包含的元素;Step SSS3, identifying elements contained therein for each block;
所述元素,至少包括:背景、文字、图片;The elements include at least: background, text, and pictures;
根据系统内部的图形设备接口GDI识别所述区块内的元素中的背景;对于背景,可以是颜色丰富的图片,也有可能是单一颜色的图片;Identify the background in the elements in the block according to the graphics device interface GDI inside the system; for the background, it can be a picture with rich colors, or a picture with a single color;
对所述区块所包含的颜色种类进行识别,根据所述颜色种类的数量识别所述区块内的元素中的文字和/或图片;一般来说,图片所包含的颜色的种类会比较丰富,而相对图片来说,文字所包含的颜色种类则较为单一,因此,可以为颜色种类设定一门限,颜色种类的数量小于所述门限时,识别所述元素为文字;所述颜色种类的数量大于所述门限时,识别所述元素为图片;Identify the color types contained in the block, and identify the text and/or pictures in the elements in the block according to the number of color types; generally speaking, the color types contained in the pictures will be more abundant , and compared to pictures, the color types contained in text are relatively single. Therefore, a threshold can be set for color types. When the number of color types is less than the threshold, the element is identified as text; the color type When the number is greater than the threshold, identifying the element as a picture;
当然,还可以对图片进行更细致的划分,可以为颜色种类设定第一门限及第二门限,所述第一门限大于第二门限;颜色种类的数量小于所述第二门限时,识别所述元素为文字;所述颜色种类的数量大于所述第一门限时,识别所述元素为色彩丰富的图片;所述颜色种类在第一门限及第二门限之间时,识别为色彩不丰富的图片;Of course, the picture can also be divided more carefully, and the first threshold and the second threshold can be set for the color type, the first threshold is greater than the second threshold; when the number of color types is smaller than the second threshold, the identified The element is text; when the number of the color types is greater than the first threshold, identify the element as a picture with rich colors; when the color type is between the first threshold and the second threshold, identify the element as not rich in color picture of;
步骤SSS4,针对每一区块找出其中所占面积最大的元素并判定所述元素占所述区块的面积的比重,如果所述元素占所述区块的面积的比重超过一门限,执行步骤SSS6,如果所述元素占所述区块的面积的比重未超过一门限,执行步骤SSS5;Step SSS4, for each block, find the element with the largest area and determine the proportion of the element in the area of the block, if the proportion of the element in the area of the block exceeds a threshold, execute Step SSS6, if the proportion of the element in the area of the block does not exceed a threshold, execute step SSS5;
一般来说,如果所述面积最大的元素占所述区块的比重超过一预设门限,则可以认为所述区块主要是由这种元素构成;如果所述元素占所述区块的比重未超过所述门限,则说明所述区块中的元素种类繁多且平均填充,所述区块并不是主要是由某种元素构成;Generally speaking, if the proportion of the element with the largest area in the block exceeds a preset threshold, it can be considered that the block is mainly composed of this element; if the proportion of the element in the block If the threshold is not exceeded, it means that the elements in the block are of various types and filled on average, and the block is not mainly composed of certain elements;
步骤SSS5,将所述区块再划分为若干二级区块,针对每个二级区块再次执行步骤SSS3,识别其中包含的元素;Step SSS5, divide the block into several second-level blocks, execute step SSS3 again for each second-level block, and identify the elements contained therein;
因为所述区块并不是主要是由某种元素构成,不同类的元素适用于不同的压缩方式,所以此时对所述区块无法选择适合的压缩方式;可以对所述区块再划分为若干二级区块,按任意方式划分二级区块,例如,可以按九宫格将所述区块分为九个二级区块,也可以分成十六格等等,本发明并不限于此。如果此时某些二级区块中依然无法确定主要构成元素,也可以对二级区块再次划分,并进行多次迭代,本发明并不限于此;Because the block is not mainly composed of certain elements, and different types of elements are suitable for different compression methods, so the appropriate compression method cannot be selected for the block at this time; the block can be further divided into A plurality of secondary blocks can be divided into secondary blocks in any manner, for example, the blocks can be divided into nine secondary blocks according to a nine-square grid, or can be divided into sixteen grids, etc., and the present invention is not limited thereto. If the main constituent elements cannot be determined in some secondary blocks at this time, the secondary blocks can also be divided again and repeated multiple times, the present invention is not limited thereto;
步骤SSS6,使用与所述元素类别相应的压缩方式对所述区块进行压缩并传输至网络侧,同时将所述区块的位置信息也传输至网络侧;Step SSS6, using a compression method corresponding to the element type to compress the block and transmit it to the network side, and at the same time transmit the location information of the block to the network side;
因为所述区块主要是由这种元素构成,所以对这个区块使用这种元素相应的压缩方式最有效而且适合的;Since the block is mainly composed of such elements, it is most effective and suitable to use the compression method corresponding to this element for this block;
对于压缩方式的选取,可以遵循以下原则:For the selection of compression methods, the following principles can be followed:
对主要由文字组成的区块,文字是主要对象,而文字往往承载需要肉眼识别的数据,因此需要保证数据还原的质量,而且文字本身的尺寸也较小,可以使用无损压缩方式;For a block mainly composed of text, text is the main object, and text often carries data that needs to be recognized by the naked eye, so it is necessary to ensure the quality of data restoration, and the size of the text itself is also small, so lossless compression can be used;
对于主要由色彩不丰富的图片组成的区块,色彩不丰富的图片是主要对象,由于这种图片本身的尺寸并不大,可以使用无损编码压缩方式;For a block mainly composed of pictures with less color, the picture with less color is the main object. Since the size of the picture itself is not large, lossless encoding and compression can be used;
对于主要由色彩丰富的图片组成的区块,色彩丰富的图片是主要对象,对于远程控制来说这种图片往往并不是关键数据,允许一定的失真,因此可使用有损编码压缩方式,比如JPG,可以获得较高的压缩比,极大地缩小图片尺寸,在传输时获得较高的速率。For a block mainly composed of colorful pictures, the colorful picture is the main object. For remote control, this kind of picture is often not the key data, and certain distortion is allowed. Therefore, a lossy encoding compression method can be used, such as JPG , can obtain a higher compression ratio, greatly reduce the size of the picture, and obtain a higher rate during transmission.
与直接抓取整个区域进行传输相比,经过这样的分类压缩后,可以将区域的大小缩小30%-50%,大大降低了数据量,并使得传输速率大大提高;Compared with directly capturing the entire area for transmission, after such classification compression, the size of the area can be reduced by 30%-50%, which greatly reduces the amount of data and greatly improves the transmission rate;
步骤SSS7,在网络侧接收并解压缩各区块的图像,依据各区块的位置信息在网络侧对各区块进行重组还原所述图像,在所述原位置填充显示所述图像,从而在网络侧重现出这一时刻本地侧窗体拖动显示的效果;Step SSS7, receiving and decompressing the image of each block on the network side, reorganizing and restoring the image of each block on the network side according to the position information of each block, filling and displaying the image at the original position, so as to reproduce it on the network side Show the effect of dragging and displaying the local side window at this moment;
位置信息可以是各区块在图像发生变化的区域上的横纵坐标。The location information may be the horizontal and vertical coordinates of each block on the area where the image changes.
以下以一个实施例对本发明的用于远程控制的分区传输系统进行说明。The partition transmission system for remote control of the present invention will be described below with an embodiment.
如图4所示,一种拖动图像的传输显示系统,包括:位于本地侧的传输装置1和位于网络侧的显示装置2;As shown in FIG. 4 , a transmission and display system for dragging images includes: a transmission device 1 on the local side and a display device 2 on the network side;
所述传输装置1,用于在远程控制过程中在本地侧检测到一已有窗体的位置发生变化,将所述已有窗体的原位置和新位置也一起传输至所述显示装置;如果所述已有窗体叠加显示在另一窗体或者图像上,还用于对所述已有窗体的原位置上的图像进行抓取并发送至所述显示装置;The transmission device 1 is used to detect a change in the position of an existing window at the local side during the remote control process, and transmit the original position and the new position of the existing window to the display device together; If the existing form is superimposed and displayed on another form or image, it is also used to capture the image at the original position of the existing form and send it to the display device;
所述显示装置2,用于在网络侧将所述已有窗体替换显示到其新位置,在所述已有窗体的原位置填充显示背景或者在所述已有窗体的原位置填充显示所述图像;The display device 2 is configured to replace and display the existing form to its new position on the network side, fill the display background in the original position of the existing form or fill in the original position of the existing form display said image;
具体来说,所述传输装置1,还用于检测是否存在鼠标点击拖动操作且被拖动至新位置的所述已有窗体在之前的远程控制过程中是否已被传输至所述显示装置;根据所述已有窗体的图像在缓存3中进行命中,如果命中,判定所述已有窗体在之前的远程控制过程中已被传输至所述显示装置;所述缓存3,为位于所述传输装置1一侧的本地缓存或者位于第三方位置且与所述显示装置2共享的缓存,用于缓存所述传输装置1发送的已有窗体的图像。Specifically, the transmission device 1 is also used to detect whether there is a mouse click and drag operation and whether the existing window dragged to a new position has been transmitted to the display during the previous remote control process. device; hit in the cache 3 according to the image of the existing form, if hit, it is determined that the existing form has been transmitted to the display device in the previous remote control process; the cache 3 is The local cache located on the side of the transmission device 1 or the cache located at a third party and shared with the display device 2 is used to cache the image of the existing window sent by the transmission device 1 .
所述显示装置2,还用于由缓存4中获取所述已有窗体的图像;所述缓存4为与所述传输装置1的数据同步且位于所述显示装置2一侧的缓存或者位于第三方位置且与所述传输装置1共享的缓存,用于缓存接收所述传输装置1发送的已有窗体的图像。The display device 2 is also used to obtain the image of the existing form from the cache 4; the cache 4 is a cache located on the side of the display device 2 that is synchronized with the data of the transmission device 1 or located at The third-party cache shared with the transmission device 1 is used to cache and receive the image of the existing form sent by the transmission device 1 .
所述传输装置1,将所述已有窗体的原位置上的图像划分为若干区块,针对每一区块,识别其中包含的元素,如果存在一元素面积最大且占所述区块的面积的比重超过一门限,使用与所述元素的类别相应的压缩方式对所述区块进行压缩并随所述区块的位置信息一起传输至所述显示装置;所述显示装置2,还用于接收并解压缩各区块,依据所述各区块的位置信息对各区块进行重组还原所述图像,在所述原位置填充显示所述图像。The transmission device 1 divides the image at the original position of the existing window into several blocks, and for each block, identifies the elements contained therein. If there is an element with the largest area and occupying If the proportion of the area exceeds a threshold, the block is compressed using a compression method corresponding to the type of the element and transmitted to the display device together with the position information of the block; the display device 2 also uses After receiving and decompressing each block, recombining each block according to the position information of each block to restore the image, filling and displaying the image at the original position.
上述系统和装置与前述用于远程控制的分区传输方法的特征对应,不足之处可以参考前述用于远程控制的分区传输方法。The above-mentioned system and device correspond to the features of the above-mentioned partition transmission method for remote control, and for the deficiencies, please refer to the above-mentioned partition transmission method for remote control.
上述说明示出并描述了本发明的若干优选实施例,但如前所述,应当理解本发明并非局限于本文所披露的形式,不应看作是对其他实施例的排除,而可用于各种其他组合、修改和环境,并能够在本文所述发明构想范围内,通过上述教导或相关领域的技术或知识进行改动。而本领域人员所进行的改动和变化不脱离本发明的精神和范围,则都应在本发明所附权利要求的保护范围内。The above description shows and describes several preferred embodiments of the present invention, but as mentioned above, it should be understood that the present invention is not limited to the forms disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various Various other combinations, modifications, and environments can be made within the scope of the inventive concept described herein, by the above teachings or by skill or knowledge in the relevant field. However, changes and changes made by those skilled in the art do not depart from the spirit and scope of the present invention, and should all be within the protection scope of the appended claims of the present invention.
Claims (16)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110041293.4A CN102164168B (en) | 2011-02-21 | 2011-02-21 | A transmission and display method and system for dragging images |
| CN201410128852.9A CN103957235B (en) | 2011-02-21 | 2011-02-21 | A kind of the transmission display methods and system of dragged image |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110041293.4A CN102164168B (en) | 2011-02-21 | 2011-02-21 | A transmission and display method and system for dragging images |
Related Child Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410129188.XA Division CN103957236A (en) | 2011-02-21 | 2011-02-21 | Image display method and transmission method based on remote control |
| CN201410128852.9A Division CN103957235B (en) | 2011-02-21 | 2011-02-21 | A kind of the transmission display methods and system of dragged image |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102164168A true CN102164168A (en) | 2011-08-24 |
| CN102164168B CN102164168B (en) | 2014-04-30 |
Family
ID=44465137
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201110041293.4A Expired - Fee Related CN102164168B (en) | 2011-02-21 | 2011-02-21 | A transmission and display method and system for dragging images |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102164168B (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102662618A (en) * | 2012-03-29 | 2012-09-12 | 北京奇虎科技有限公司 | Image processing method and device in remote assistance process |
| CN102984233A (en) * | 2012-11-19 | 2013-03-20 | 北京奇虎科技有限公司 | Device and method for transmitting data in remote assistance |
| CN110231904A (en) * | 2012-03-14 | 2019-09-13 | 提维解决方案有限公司 | Remote configuration is carried out to the window shown on the display device |
| CN112291588A (en) * | 2020-10-12 | 2021-01-29 | 北京文香信息技术有限公司 | Display content sharing method and device, equipment and readable storage medium |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1622618A (en) * | 2004-12-24 | 2005-06-01 | 北京中星微电子有限公司 | A screen broadcasting method |
| US20080122847A1 (en) * | 2006-11-28 | 2008-05-29 | International Buisness Machines Corporation | Method, program and apparatus for generating image data |
-
2011
- 2011-02-21 CN CN201110041293.4A patent/CN102164168B/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1622618A (en) * | 2004-12-24 | 2005-06-01 | 北京中星微电子有限公司 | A screen broadcasting method |
| US20080122847A1 (en) * | 2006-11-28 | 2008-05-29 | International Buisness Machines Corporation | Method, program and apparatus for generating image data |
Non-Patent Citations (1)
| Title |
|---|
| 卢小林: "基于虚拟网络计算的网管系统集成的设计与实现", 《计算机工程》 * |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110231904A (en) * | 2012-03-14 | 2019-09-13 | 提维解决方案有限公司 | Remote configuration is carried out to the window shown on the display device |
| CN110231904B (en) * | 2012-03-14 | 2022-08-02 | 提维解决方案有限公司 | Remote configuration of windows displayed on a display device |
| US11842036B2 (en) | 2012-03-14 | 2023-12-12 | Tivo Solutions Inc. | Remotely configuring windows displayed on a display device |
| US12321575B2 (en) | 2012-03-14 | 2025-06-03 | Adeia Media Solutions Inc. | Remotely configuring windows displayed on a display device |
| CN102662618A (en) * | 2012-03-29 | 2012-09-12 | 北京奇虎科技有限公司 | Image processing method and device in remote assistance process |
| CN102662618B (en) * | 2012-03-29 | 2015-10-14 | 北京奇虎科技有限公司 | Image processing method in remote assistance process and device |
| CN102984233A (en) * | 2012-11-19 | 2013-03-20 | 北京奇虎科技有限公司 | Device and method for transmitting data in remote assistance |
| CN102984233B (en) * | 2012-11-19 | 2016-03-30 | 北京奇虎科技有限公司 | For carrying out the apparatus and method of transfer of data in remote assistance |
| CN112291588A (en) * | 2020-10-12 | 2021-01-29 | 北京文香信息技术有限公司 | Display content sharing method and device, equipment and readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102164168B (en) | 2014-04-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102164167A (en) | Classified transmission method and system for remote control | |
| EP2344957B1 (en) | Remote computing platforms providing high-fidelity display and interactivity for clients | |
| AU2010341605B2 (en) | Systems and methods for video-aware screen capture and compression | |
| US12067409B2 (en) | Streaming per-pixel transparency information using transparency-agnostic video codecs | |
| EP3836555A1 (en) | Video processing method and apparatus, electronic device, and computer-readable medium | |
| CN103412701B (en) | remote desktop image processing method and device | |
| CN102164166A (en) | A partition transmission method and system for remote control | |
| CN103312814B (en) | Method for establishing VNC hidden channel between cloud management platform and virtual machine terminal user | |
| WO2013113191A1 (en) | Method and system for rapid video image transmission | |
| CN102164168B (en) | A transmission and display method and system for dragging images | |
| WO2021169236A1 (en) | Rendering method and apparatus | |
| CN104158915B (en) | A kind of subregion transmission method and system for remote control | |
| US8760366B2 (en) | Method and system for remote computing | |
| US20190325008A1 (en) | Processing duplicate multimedia content | |
| US20130002521A1 (en) | Screen relay device, screen relay system, and computer -readable storage medium | |
| GB2528870A (en) | Managing display data for display | |
| CN100583080C (en) | Remote computer control method and system | |
| CN103957236A (en) | Image display method and transmission method based on remote control | |
| CN103314394A (en) | Three-dimensional earth-formulation visualization | |
| CN102546803B (en) | Remote desktop communication method based on capability set | |
| EP2661083A2 (en) | Video encoding system, method and computer readable medium thereof | |
| CN101984402A (en) | Image acquisition and compression method and related device | |
| CN103957235B (en) | A kind of the transmission display methods and system of dragged image | |
| CN109960562B (en) | Information display method and device and computer readable storage medium | |
| CN104184833A (en) | Transmission method and system used for remote control |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140430 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |