CN104735449A - Image transmission method and system based on rectangular segmentation and interlaced scanning - Google Patents
Image transmission method and system based on rectangular segmentation and interlaced scanning Download PDFInfo
- Publication number
- CN104735449A CN104735449A CN201510089351.9A CN201510089351A CN104735449A CN 104735449 A CN104735449 A CN 104735449A CN 201510089351 A CN201510089351 A CN 201510089351A CN 104735449 A CN104735449 A CN 104735449A
- Authority
- CN
- China
- Prior art keywords
- coordinates
- rectangular
- scanning
- area
- image
- 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
- 238000000034 method Methods 0.000 title claims abstract description 56
- 230000005540 biological transmission Effects 0.000 title claims abstract description 55
- 230000011218 segmentation Effects 0.000 title claims description 27
- 230000008859 change Effects 0.000 claims abstract description 65
- 238000005070 sampling Methods 0.000 claims description 88
- 238000001514 detection method Methods 0.000 claims description 22
- 239000000872 buffer Substances 0.000 claims description 13
- 230000008569 process Effects 0.000 claims description 9
- 230000006835 compression Effects 0.000 claims description 5
- 238000007906 compression Methods 0.000 claims description 5
- 230000006837 decompression Effects 0.000 claims description 3
- 238000012545 processing Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000006872 improvement Effects 0.000 description 2
- 230000003542 behavioural effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
Landscapes
- Image Analysis (AREA)
Abstract
本发明公开了一种基于矩形分割隔列扫描的图像传输方法及系统,首先比较相邻两帧图像,找出所有图像变化的区域,然后根据变化像素点的坐标得到面积最小的不重叠矩形区域的集合,每次只发送矩形区域集合所包含的图像数据,以减小每一帧的传输数据,达到有效地降低的传输数据量的目的。本发明根据每帧图像变化区域的个数不同,动态的将屏幕分成数量不同的矩形分块,克服了固定分块图像传输算法屏幕分块个数难以确定和适应性差的问题;将屏幕根据每帧图像每个变化范围的不同分成大小不同的矩形分块,克服了固定分块图像传输算法中当屏幕图像变化区域正好位于多个矩形分块临界点,不能有效减少传输数据量的问题。
The present invention discloses an image transmission method and system based on rectangular division and row-to-column scanning. Firstly, two adjacent frames of images are compared to find out all areas where the images change, and then a non-overlapping rectangular area with the smallest area is obtained according to the coordinates of the changed pixels. set, only the image data included in the rectangular area set is sent each time, so as to reduce the transmission data of each frame, and achieve the purpose of effectively reducing the amount of transmission data. The present invention dynamically divides the screen into different numbers of rectangular blocks according to the number of image change areas in each frame, which overcomes the problems of difficulty in determining the number of screen blocks and poor adaptability of the fixed block image transmission algorithm; divides the screen according to each Each change range of the frame image is divided into rectangular blocks of different sizes, which overcomes the problem that the fixed block image transmission algorithm cannot effectively reduce the amount of transmitted data when the screen image change area is just at the critical point of multiple rectangular blocks.
Description
技术领域technical field
本发明属于计算机网络通信技术领域,尤其涉及一种基于矩形分割隔列扫描的图像传输方法及系统。The invention belongs to the technical field of computer network communication, and in particular relates to an image transmission method and system based on rectangular division and row scanning.
背景技术Background technique
随着网络技术的发展,远程计算机教学,远程网络监控,视频会议等工程得到了广泛应用,而在这些应用中,都需要实时传输计算机屏幕位图。因此,为了保证给用户提供良好的屏幕图像传输服务的同时不影响其他应用程序提供服务,实时屏幕图像传输系统应当满足以下条件:低CPU使用率,低带宽占用率,尽量避免延时、抖动和花屏现象的发生等。为了满足这项条件,通常采用两种方法:一是提高网络的带宽;二是减少传输的数据量。由于网络带宽很大程度上受限于网络硬件,因此,通过优化压缩和传输算法,减少数据传输量成为解决问题的关键。With the development of network technology, remote computer teaching, remote network monitoring, video conferencing and other projects have been widely used, and in these applications, real-time transmission of computer screen bitmaps is required. Therefore, in order to provide users with good screen image transmission services without affecting the services provided by other applications, the real-time screen image transmission system should meet the following conditions: low CPU usage, low bandwidth occupancy, and try to avoid delay, jitter and The occurrence of Huaping phenomenon, etc. In order to meet this condition, two methods are usually adopted: one is to increase the bandwidth of the network; the other is to reduce the amount of transmitted data. Since the network bandwidth is largely limited by the network hardware, the key to solving the problem is to reduce the amount of data transmission by optimizing the compression and transmission algorithms.
计算机屏幕图像不是时刻全部发生变化,大部分时间里只有部分图像在变化,若仅对发生改变的部分图像进行传输,则将大大减少屏幕数据传输量。专利201210264229.7将桌面图像的当前帧进行分块,并构建分层索引,依据分层索引检测当前帧相对图像块缓存的变化图像块及未变化图像块,将变化图像块压缩后与未变化图像块在图像块缓存中的标签一起封装成最终的传输数据;专利201310318030.2首先将图像划分为X列Y行的多个区域,对每个区域的内容与上一帧图像的相同区域作比较,如果这一区域的内容有发生变化,则对该区域的数据填上标识区域信息的头信息,再进行压缩传输;专利201210544289.4通过在编码处理之前对待传输的源数据进行格式类型识别,针对不同格式类型的源数据选择不同的压缩算法。Computer screen images do not change all the time, most of the time only part of the images are changing, if only the changed part of the images are transmitted, the amount of screen data transmission will be greatly reduced. Patent 201210264229.7 divides the current frame of the desktop image into blocks, and constructs a hierarchical index, detects the changed image block and the unchanged image block of the current frame relative to the image block cache according to the layered index, and compresses the changed image block and the unchanged image block The tags in the image block cache are packaged together into the final transmission data; patent 201310318030.2 first divides the image into multiple areas of X columns and Y rows, and compares the content of each area with the same area of the previous frame image, if this If the content of an area changes, fill in the header information identifying the area information for the data in the area, and then compress and transmit; patent 201210544289.4 recognizes the format type of the source data to be transmitted before the encoding process, and targets different format types. Source data chooses a different compression algorithm.
目前屏幕图像传输系统中常用的图像传输算法为固定分块图像传输算法,该算法基于矩形将屏幕进行分块,并对每个分块进行编号,每个分块的大小和分块的数量是固定的,然后将前后相邻两幅位图的数据保存下来,并分别按照对应的编号块来进行对比,若图像有变化则压缩发送当前块中的图像。判断前后两帧屏幕是否变化的方法有直接比较法和CRC比较法。直接比较法对前后两帧格屏幕的内存数据逐个字节进行比较;CRC比较法计算图像数据的CRC值,通过比较两帧图像的CRC值判断图像是否发生改变。由于固定分块图像传输算法每次只发送变化块中的图像数据,所以能够降低数据的传输量。At present, the image transmission algorithm commonly used in the screen image transmission system is the fixed block image transmission algorithm. This algorithm divides the screen into blocks based on rectangles, and numbers each block. The size and number of blocks of each block are Fixed, then save the data of the two adjacent bitmaps, and compare them according to the corresponding numbered blocks, if the image changes, compress and send the image in the current block. The methods for judging whether the screens of the two frames before and after have changed include the direct comparison method and the CRC comparison method. The direct comparison method compares the memory data of the two frame screens one by one byte by byte; the CRC comparison method calculates the CRC value of the image data, and judges whether the image has changed by comparing the CRC values of the two frames of images. Since the fixed-block image transmission algorithm only sends the image data in the changing block each time, it can reduce the amount of data transmission.
固定分块图像传输算法屏幕分块的个数难以确定,若个数过多将会导致分块处理时间的总和超过整屏数据的传输时间,这样虽然网络带宽占用小,但实时性可能下降;若个数过少,则较整屏处理占用的网络带宽下降幅度不大,速度提高效果不明显,存在减少传输数据量依赖于图像分块数目而分块数目又难以设定的缺陷;固定分块图像传输算法屏幕分块的个数与屏幕的分辨率密切相关,如果分辨率改变,为保证网络带宽占用小必须要调整算法屏幕分块的个数,其适应性差;固定分块图像传输算法对屏幕分块的大小和数量是固定的,当屏幕图像变化区域正好位于多个矩形分块的临界点时,就会出现图像变化的分块过多的现象,不能有效的减少传输数据量。Fixed block image transmission algorithm The number of screen blocks is difficult to determine. If the number is too large, the sum of the block processing time will exceed the transmission time of the entire screen data. Although the network bandwidth is small, the real-time performance may decrease; If the number is too small, the network bandwidth occupied by the full-screen processing will not drop much, and the effect of speed improvement will not be obvious. There is a defect that reducing the amount of transmitted data depends on the number of image blocks, and the number of blocks is difficult to set; Block image transmission algorithm The number of screen blocks is closely related to the resolution of the screen. If the resolution changes, the algorithm must adjust the number of screen blocks to ensure that the network bandwidth is small, and its adaptability is poor; fixed block image transmission algorithm The size and number of screen blocks are fixed. When the screen image change area is just at the critical point of multiple rectangular blocks, there will be too many blocks of image changes, which cannot effectively reduce the amount of transmitted data.
发明内容Contents of the invention
本发明的目的在于提供一种基于矩形分割隔列扫描的图像传输方法及系统,旨在解决固定分块图像传输算法中屏幕分块个数难以确定和适应性差、当屏幕图像变化区域正好位于多个矩形分块临界点,不能有效减少传输数据量的的问题。The object of the present invention is to provide an image transmission method and system based on rectangular partitioning and scanning, aiming to solve the problem of difficulty in determining the number of screen blocks and poor adaptability in the fixed block image transmission algorithm. A rectangular block critical point cannot effectively reduce the problem of the amount of transmitted data.
本发明是这样实现的,一种基于矩形分割隔列扫描的图像传输方法,该基于矩形分割隔列扫描的图像传输方法首先比较相邻两帧图像,找出所有图像变化的区域,然后根据变化像素点的坐标得到面积最小的不重叠矩形区域的集合;每次只发送矩形区域集合所包含的图像数据和对应坐标信息;The present invention is achieved in this way, an image transmission method based on rectangular division and inter-column scanning, the image transmission method based on rectangular division and inter-column scanning first compares two adjacent frames of images, finds out the areas where all images change, and then according to the change The coordinates of the pixel points get the set of non-overlapping rectangular areas with the smallest area; only the image data and corresponding coordinate information contained in the set of rectangular areas are sent each time;
根据像素点的坐标得到变化矩形区域,式(1)和式(2)是根据变化像素点来判断矩形R范围的算式;According to the coordinates of the pixel points, the variable rectangular area is obtained, and formula (1) and formula (2) are formulas for judging the range of the rectangular R according to the variable pixel points;
Rl≤Px AND Rt=Pyi (1)R l ≤ P x AND R t = P yi (1)
Rr≥Px AND Rb≥Py (2)R r ≥ P x AND R b ≥ P y (2)
其中Rl和Rt代表矩形左上角的横坐标和纵坐标,Rr和Rb代表矩形右下角的横坐标和纵坐标,Px和Py代表变化像素点的横坐标和纵坐标,Py0代表第一次变化像素点的纵坐标;根据式(1)和式(2)求得变化矩形区域的范围;先将前后相邻两幅位图的数据保存下来,并判断前后两帧屏幕所对应像素的值是否变化;当第一次检测到变化的采样点时,会将变化采样点的坐标(PX0,PY0)进行记录,作为变化矩形区域的左上角坐标(Rl,Rt),并且将行无变化标识为false;继续对比,当再次检测到不同采样点时,先将行无变化标识为false,接着将采样点的横坐标Px同矩形左上角的横坐标Rl进行比较并取最小值,同时矩形右下角的坐标(Rr,Rb)会和点的坐标(Px,Py)比较并取最大值;即:Among them, R l and R t represent the abscissa and ordinate of the upper left corner of the rectangle, R r and R b represent the abscissa and ordinate of the lower right corner of the rectangle, P x and P y represent the abscissa and ordinate of the changed pixel, P y0 represents the ordinate of the first changed pixel point; calculate the range of the changed rectangular area according to formula (1) and formula (2); first save the data of the two adjacent bitmaps, and judge the two frame screens before and after Whether the value of the corresponding pixel changes; when the changed sampling point is detected for the first time, the coordinates (P X0 , P Y0 ) of the changed sampling point will be recorded as the coordinates of the upper left corner of the changed rectangular area (R l , R t ), and mark no change in the line as false; continue to compare, when a different sampling point is detected again, first mark the line without change as false, and then the abscissa P x of the sampling point is the same as the abscissa R of the upper left corner of the rectangle l compare and take the minimum value, and the coordinates (R r , R b ) of the lower right corner of the rectangle will be compared with the point coordinates (P x , P y ) and take the maximum value; that is:
Rl=min(Pxi,Rl)(i>1) Rt=Pyi(i=1)R l =min(P xi ,R l )(i>1) R t =P yi (i=1)
Rr=max(Rxi,Rr)(i>1) Rb=max(Ryi,Rb)(i>1)R r =max(R xi ,R r )(i>1) R b =max(R yi ,R b )(i>1)
当检测到某行采样点值全部都相同时,得到一个变化的矩形区域块。When it is detected that the values of the sampling points in a certain row are all the same, a changed rectangular area block is obtained.
进一步,在一个扫描区域中对变化区域进行矩形分割算法采用隔列直接比较法判断前后图像缓冲区中两帧屏幕图像所对应像素是否变化从而找出变化的矩形区域;按照从上到下,从左到右的原则,基于矩形分割隔列扫描的图像传输方法找出后一帧图像相对于前一帧图像所有变化区域并基于矩形分割算法得到面积最小的不重叠矩形区域的集合。Further, in a scanning area, the rectangular segmentation algorithm for the changed area adopts the direct comparison method every other column to judge whether the pixels corresponding to the two frames of screen images in the front and rear image buffers have changed, so as to find out the changed rectangular area; from top to bottom, from Based on the principle of left to right, the image transmission method based on the rectangular segmentation alternate scanning finds out all the changed areas of the subsequent frame image relative to the previous frame image and obtains the smallest non-overlapping rectangular area set based on the rectangular segmentation algorithm.
进一步,采用隔列直接比较法判断前后两帧屏幕图像所对应像素是否变化,先以行为单位隔N列从左到右开始提取前后两幅图像对应的像素为采样点,比较对应像素点的值是否相同;根据应用场景的不同和带宽的要求,可以对间隔列数N做调整,N的值越小,隔列直接比较法检测所需的时间越长。Further, use the method of direct column-by-column comparison to determine whether the pixels corresponding to the two frames of screen images have changed. First, extract the pixels corresponding to the two frames of images from left to right at intervals of N columns in row units as sampling points, and compare the values of the corresponding pixels. Whether they are the same; according to different application scenarios and bandwidth requirements, the number of interval columns N can be adjusted. The smaller the value of N, the longer the detection time required by the direct comparison method between intervals.
进一步,在一个扫描区域中对变化区域进行矩形分割算法具体方法如下:Further, the specific method of performing a rectangular segmentation algorithm on the changing area in a scanning area is as follows:
步骤一,图像发送端首先获得屏幕的分辨率,得到列扫描的范围0~C和行扫描的范围0~R;Step 1, the image sending end first obtains the resolution of the screen, and obtains the range 0-C of the column scan and the range 0-R of the row scan;
步骤二,发送端将当前帧图像保存区的数据保存到前一帧图像缓冲区;截获当前的屏幕位图数据并保存在当前帧图像缓冲区;Step 2, the sending end saves the data in the current frame image storage area to the previous frame image buffer; intercepts the current screen bitmap data and saves it in the current frame image buffer;
步骤三,发送端首先初始化变化矩形区域左上角坐标和右下角坐标为(0,0),下次扫描起点坐标为(0,0),行无变化标识为true,更新列扫描的范围和行扫描的范围;Step 3, the sender first initializes the coordinates of the upper left corner and the lower right corner of the changing rectangular area to (0, 0), the coordinates of the starting point of the next scan are (0, 0), the flag of no change in the row is true, and the range and row of the column scan are updated scan range;
步骤四,判断是否在行扫描范围内,不在,跳转到步骤十;Step 4, judge whether it is within the line scanning range, if not, jump to step 10;
步骤五,判断是否在列扫描范围内,不在,跳转到步骤八;在列扫描范围内采用隔列直接比较法对当前采样点进行检测;值不同,首先将行无变化标识设置为false,然后判断是否是检测到的第一个变化采样点,是将采样点坐标作为变化矩形区域的左上角坐标,不是第一个变化采样点,将矩形右下角的坐标和该点的坐标比较并取最大值作为新的矩形右下角坐标,再判断该采样点是否是本行第一个变化采样点,是就将该采样点的纵坐标同矩形左上角的纵坐标进行比较并取最小值更新变化矩形区域的左上角坐标;值相同,需要判断行无变化标识是否为false,如果是false,记录坐标作为下次扫描的起点,检测到是最后一列采样点,将最后一列采样点坐标作为下次扫描的起点,跳转到步骤七;Step 5, judge whether it is within the column scanning range, if not, jump to step 8; within the column scanning range, use the method of direct comparison between columns to detect the current sampling point; if the values are different, first set the row no change flag to false, Then judge whether it is the first change sampling point detected. The coordinates of the sampling point are used as the coordinates of the upper left corner of the change rectangular area, not the first change sampling point. The coordinates of the lower right corner of the rectangle are compared with the coordinates of this point and taken The maximum value is used as the coordinate of the lower right corner of the new rectangle, and then it is judged whether the sampling point is the first changed sampling point of the line, and the vertical coordinate of the sampling point is compared with the vertical coordinate of the upper left corner of the rectangle and the minimum value is used to update the change Coordinates of the upper left corner of the rectangular area; if the values are the same, it is necessary to judge whether the row no change flag is false, if it is false, record the coordinates as the starting point of the next scan, detect the last column of sampling points, and use the coordinates of the last column of sampling points as the next time The starting point of scanning, skip to step 7;
步骤六,把列坐标右移N列,跳转到步骤五检测下一个采样点;Step 6, move the column coordinates to the right by N columns, and jump to step 5 to detect the next sampling point;
步骤七,本行检测完毕,将本行的下次扫描起点坐标与上一行记录的下次扫描起点坐标比较,并取最大值作为新的下次扫描起点坐标,行号加1,跳转到步骤四从下一行从头开始从左到右检测;Step 7: After the detection of this line is completed, compare the coordinates of the next scanning start point of this line with the coordinates of the next scanning start point recorded in the previous line, and take the maximum value as the new starting point coordinate of the next scan, add 1 to the line number, and jump to Step 4: Detect from the next line from the beginning to the right;
步骤八,判断行无变化标识是否为true且变化矩形区域左上角坐标不为(0,0),不是true,行号加1,跳转到步骤四;是true,则表明整行无不同像素点,得到了一个变化的矩形区域块;得到的变化矩形区域块左上角纵坐标向左移动N列,右下角纵坐标向右移动N列以包含图像边界信息;Step 8, judge whether the row no change flag is true and the coordinates of the upper left corner of the changed rectangular area are not (0, 0), if it is not true, add 1 to the row number, and jump to step 4; if it is true, it means that the entire row has no different pixels point, a changed rectangular area block is obtained; the ordinate of the upper left corner of the obtained changed rectangular area block is moved to the left by N columns, and the ordinate of the lower right corner is moved to the right by N columns to contain image boundary information;
步骤九,记录检测出的变化矩形区域坐标和相对应的下次扫描起点坐标,判断当前列扫描的范围是否0~C且行扫描的范围是否0~R,是,设置标识表明当前检测出的变化矩形区域标识是第一次检测出的,然后行号加1跳转到步骤四从下一行开始检测下一个变化的矩形区域块;直到检测超出行扫描的范围;Step 9: Record the coordinates of the detected change rectangular area and the corresponding starting point coordinates of the next scan, determine whether the range of the current column scan is 0-C and whether the range of the row scan is 0-R, and if yes, set a flag to indicate the currently detected change The rectangular area mark is detected for the first time, then add 1 to the line number and jump to step 4 to detect the next changed rectangular area block from the next line; until the detection exceeds the range of line scanning;
步骤十,本次检测完毕后,对本次检测中所有的下次扫描起点进行处理,计算出下次扫描范围的集合;首先检查本次检测出的第一个下次扫描起点的纵坐标是否比最后一列采样点的纵坐标小,不是,该区域检测完成,检测下一个下次扫描起点的纵坐标;是,以第一次检测出的变化矩形区域左上角的横坐标为横坐标,以当前变化矩形区域相关的下次扫描起点坐标的纵坐标为纵坐标,生成一个下次扫描范围的左上角坐标;以第一次检测出的变化矩形区域右下角的横坐标为横坐标,以屏幕的最大列数C为纵坐标生成一个下次扫描范围的右下角坐标;接着处理第二个下次扫描起点,直到本次检测中所有的下次扫描起点都被处理为止;Step ten, after this detection is completed, process all the starting points of the next scan in this detection, and calculate the set of the next scanning range; first check whether the ordinate of the first starting point of the next scan detected this time is It is smaller than the ordinate of the last column of sampling points. No, the detection of this area is completed, and the ordinate of the next scanning starting point is detected; The ordinate of the starting point coordinates of the next scan related to the current changing rectangular area is the ordinate, and a coordinate of the upper left corner of the next scanning range is generated; the abscissa of the lower right corner of the changing rectangular area detected for the first time is taken as the abscissa, and the screen The maximum number of columns C is the vertical coordinate to generate the coordinates of the lower right corner of the next scanning range; then process the second next scanning starting point until all the next scanning starting points in this detection are processed;
步骤十一,检测下次扫描范围集合中所有的扫描区域,首先基于下次扫描范围集合中第一个扫描区域的宽度和高度,生成行扫描和列扫描的范围,重复步骤三到步骤十检测第一个扫描区域中变化的矩形区域块,接着处理第二个扫描区域,直到下次扫描范围集合中所有的扫描区域都被检测为止;Step 11: Detect all scan areas in the next scan range set, firstly generate the range of row scan and column scan based on the width and height of the first scan area in the next scan range set, repeat steps 3 to 10 to detect The changed rectangular area block in the first scanning area, and then process the second scanning area until all scanning areas in the next scanning area set are detected;
步骤十二,重复步骤十到步骤十一,得到下一次扫描范围的变化矩形区域块,直到所有的下次扫描起点的纵坐标大于或等于最后一列采样点的纵坐标,整个屏幕检测完毕;Step 12, repeating step 10 to step 11, to obtain the changing rectangular area block of the next scanning range, until the vertical coordinates of all the starting points of the next scanning are greater than or equal to the vertical coordinates of the last column of sampling points, and the detection of the entire screen is completed;
步骤十三,得到了所有该帧图像相对于前一帧图像变化的面积最小的不重叠矩形区域的集合,检查该集合中的矩形区域,两个矩形其左上角纵坐标和右下角纵坐标相同,且一个矩形的右下角横坐标与另一个矩形左上角横坐标相邻,合并为一个矩形,然后再压缩并发送矩形区域的集合所包含的图像数据及对应坐标到客户端;Step 13, obtain the set of non-overlapping rectangular areas with the smallest area of the frame image relative to the previous frame image change, check the rectangular areas in the set, the vertical coordinates of the upper left corner and the lower right corner of the two rectangles are the same , and the abscissa of the lower right corner of one rectangle is adjacent to the abscissa of the upper left corner of another rectangle, merged into one rectangle, and then compress and send the image data and corresponding coordinates contained in the set of rectangular areas to the client;
步骤十四,图像接收端将接收的数据减压后基于每个矩形区域图像数据及对应坐标整合至前一帧图像中并显示;Step 14, the image receiving end decompresses the received data and integrates the received data into the previous frame image based on the image data and corresponding coordinates of each rectangular area and displays it;
步骤十五,每隔T秒重复步骤二到步骤十四,根据应用场景的不同和带宽的要求,可以对间隔时间T做调整。Step 15: Repeat steps 2 to 14 every T seconds. The interval T can be adjusted according to different application scenarios and bandwidth requirements.
本发明的另一目的在于提供一种基于矩形分割隔列扫描的图像传输系统,该基于矩形分割隔列扫描的图像传输系统包括发送端和接收端:Another object of the present invention is to provide a kind of image transmission system based on the rectangular division every other column scanning, this image transmission system based on the rectangular division every other column scanning comprises a sending end and a receiving end:
发送端包括:The sender includes:
屏幕图像采集模块,用于对发送端的屏幕进行图像采集;The screen image acquisition module is used for image acquisition of the screen at the sending end;
矩形分割隔列扫描模块,基于矩形分割隔列扫描算法将当前帧图像与缓存的上一帧图像进行对比,找出所有图像变化的区域,然后根据变化像素点的坐标得到面积最小的不重叠矩形区域的集合;Rectangular segmentation and row scanning module, based on the rectangular segmentation and row scanning algorithm, compares the current frame image with the cached previous frame image, finds out the areas where all images change, and then obtains the smallest non-overlapping rectangle according to the coordinates of the changed pixels collection of regions;
压缩发送模块,压缩矩形区域的集合所包含的图像数据,然后通过网络发送压缩的图像数据及对应坐标到客户端;The compression sending module compresses the image data contained in the collection of rectangular areas, and then sends the compressed image data and corresponding coordinates to the client through the network;
接收端包括:Receiver includes:
接收模块,接收发送端所发送的变化图像数据;The receiving module receives the changed image data sent by the sending end;
减压模块,将接收的数据减压,得到矩形区域的集合所包含的图像数据及对应坐标;The decompression module decompresses the received data to obtain the image data and corresponding coordinates contained in the set of rectangular areas;
更新显示模块,基于每个矩形区域图像数据及对应坐标更新缓存的前一帧图像对应区域并显示。The update display module updates and displays the cached corresponding area of the previous frame image based on the image data of each rectangular area and the corresponding coordinates.
本发明提供的基于矩形分割隔列扫描的图像传输方法及系统,首先比较相邻两帧图像,找出所有图像变化的区域,然后根据变化像素点的坐标得到面积最小的不重叠矩形区域的集合,每次只发送矩形区域集合所包含的图像数据,以减小每一帧的传输数据,达到有效地降低的传输数据量的目的。本发明根据每帧图像变化区域的个数不同,动态的将屏幕分成数量不同的矩形分块,克服了固定分块图像传输算法屏幕分块个数难以确定和适应性差的问题;将屏幕根据每帧图像每个变化范围的不同分成大小不同的矩形分块,克服了固定分块图像传输算法中当屏幕图像变化区域正好位于多个矩形分块临界点,不能有效减少传输数据量的问题。采用该方法图像传输系统相比采用固定分块隔行扫描算法的图像传输系统,更能有效地降低CPU使用率,减少带宽占用率,提高图像传输的性能。In the image transmission method and system based on rectangular division and alternate column scanning provided by the present invention, firstly compare two adjacent frames of images to find out all areas where the images change, and then obtain a set of non-overlapping rectangular areas with the smallest area according to the coordinates of the changed pixels , each time only the image data contained in the set of rectangular areas is sent, so as to reduce the transmission data of each frame, and achieve the purpose of effectively reducing the amount of transmission data. The present invention dynamically divides the screen into different numbers of rectangular blocks according to the number of image change areas in each frame, and overcomes the problems of difficulty in determining the number of screen blocks and poor adaptability of the fixed block image transmission algorithm; Each change range of the frame image is divided into rectangular blocks of different sizes, which overcomes the problem that the fixed block image transmission algorithm cannot effectively reduce the amount of transmitted data when the screen image change area is just at the critical point of multiple rectangular blocks. Compared with the image transmission system adopting the fixed-block interlaced scanning algorithm, the image transmission system adopting this method can more effectively reduce the CPU utilization rate, reduce the bandwidth occupation rate, and improve the performance of image transmission.
附图说明Description of drawings
图1是本发明实施例提供的基于矩形分割隔列扫描的图像传输方法流程图;FIG. 1 is a flow chart of an image transmission method based on rectangular division and row-by-column scanning provided by an embodiment of the present invention;
图2是本发明实施例提供的扫描示意图;Fig. 2 is a schematic diagram of scanning provided by an embodiment of the present invention;
图3是本发明实施例提供的检测出一个矩形区域的流程图;FIG. 3 is a flow chart for detecting a rectangular area provided by an embodiment of the present invention;
图4是本发明实施例提供的在一个扫描区域中检测变化矩形的集合流程图;Fig. 4 is a collection flow chart of detecting changing rectangles in a scanning area provided by an embodiment of the present invention;
图5是本发明实施例提供的计算下次扫描范围的集合流程图;Fig. 5 is a collection flowchart for calculating the next scan range provided by an embodiment of the present invention;
图6是本发明实施例提供的在一个扫描范围的集合中检测变化矩形流程图;Fig. 6 is a flow chart of detecting changing rectangles in a set of scanning ranges provided by an embodiment of the present invention;
图7是本发明实施例提供的图像变化示意图;Fig. 7 is a schematic diagram of image changes provided by an embodiment of the present invention;
图8是本发明实施例提供的基于矩形分割隔列扫描的图像传输系统结构示意图;Fig. 8 is a schematic diagram of the structure of an image transmission system based on rectangular division and alternate column scanning provided by an embodiment of the present invention;
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
下面结合附图及具体实施例对本发明的应用原理作进一步描述。The application principle of the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
如图1所示,本发明实施例的基于矩形分割隔列扫描的图像传输方法包括以下步骤:As shown in FIG. 1 , the image transmission method based on rectangular segmentation and scanning every other row according to the embodiment of the present invention includes the following steps:
S101:首先比较相邻两帧图像,找出所有图像变化的区域;S101: first compare two adjacent frames of images, and find out all areas where the images change;
S102:然后根据变化像素点的坐标得到面积最小的不重叠矩形区域的集合,每次只发送矩形区域集合所包含的图像数据。S102: Then obtain a set of non-overlapping rectangular areas with the smallest area according to the coordinates of the changed pixels, and only send the image data contained in the set of rectangular areas each time.
本发明实施例的具体步骤:Concrete steps of the embodiment of the present invention:
本发明实施例的基于矩形分割隔列扫描算法首先比较相邻两帧图像,找出所有图像变化的区域,然后根据变化像素点的坐标得到面积最小的不重叠矩形区域的集合;算法的重点在于如何根据像素点的坐标得到变化矩形区域;所示;下面基于图2描述其具体原理;In the alternate column scanning algorithm based on rectangular segmentation in the embodiment of the present invention, at first, two adjacent frames of images are compared to find out the regions where all images change, and then the set of non-overlapping rectangular regions with the smallest area is obtained according to the coordinates of the changed pixels; the key point of the algorithm is How to obtain the changing rectangular area according to the coordinates of the pixel points; as shown; the specific principle is described below based on Figure 2;
Rl≤Px AND Rt=Pyi (1)R l ≤ P x AND R t = P yi (1)
Rr≥Px AND Rb≥Py (2)R r ≥ P x AND R b ≥ P y (2)
式(1)和式(2)是根据变化像素点来判断矩形R范围的算式;其中Rl和Rt代表矩形左上角的横坐标和纵坐标,Rr和Rb代表矩形右下角的横坐标和纵坐标,Px和Py代表变化像素点的横坐标和纵坐标,Py0代表第一次变化像素点的纵坐标;按照2D图形学的习惯,X轴水平向右递增,Y轴水平向下递增;根据式(1)和式(2)即可求得变化矩形区域的范围;算法先将前后相邻两幅位图的数据保存下来,并对其判断前后两帧屏幕所对应像素的值是否变化;当第一次检测到变化的采样点时,会将变化采样点的坐标(PX0,PY0)进行记录,作为变化矩形区域的左上角坐标(Rl,Rt),并且将行无变化标识为false;继续对比,当再次检测到不同采样点时,先将行无变化标识为false,接着将该采样点的横坐标Px同矩形左上角的横坐标Rl进行比较并取最小值,同时矩形右下角的坐标(Rr,Rb)会和该点的坐标(Px,Py)比较并取最大值;即:Formulas (1) and (2) are formulas for judging the range of the rectangle R based on changing pixels; where R l and R t represent the abscissa and ordinate of the upper left corner of the rectangle, R r and R b represent the abscissa of the lower right corner of the rectangle Coordinates and ordinates, P x and P y represent the abscissa and ordinate of the changed pixel point, P y0 represents the ordinate of the first changed pixel point; according to the habit of 2D graphics, the X axis increases horizontally to the right, and the Y axis Increment horizontally downwards; according to formula (1) and formula (2), the range of the changing rectangular area can be obtained; the algorithm first saves the data of the two adjacent bitmaps, and judges the corresponding two frame screens Whether the value of the pixel changes; when the changed sampling point is detected for the first time, the coordinates (P X0 , P Y0 ) of the changed sampling point will be recorded as the coordinates (R l , R t ) of the upper left corner of the changed rectangular area , and mark no change in the line as false; continue the comparison, when a different sampling point is detected again, first mark the line without change as false, and then the abscissa P x of the sampling point is the same as the abscissa R l of the upper left corner of the rectangle Compare and take the minimum value, and at the same time, the coordinates (R r , R b ) of the lower right corner of the rectangle will be compared with the coordinates (P x , P y ) of the point and take the maximum value; that is:
Rl=min(Pxi,Rl)(i>1) Rt=Pyi(i=1)R l =min(P xi ,R l )(i>1) R t =P yi (i=1)
Rr=max(Rxi,Rr)(i>1) Rb=max(Ryi,Rb)(i>1)R r =max(R xi ,R r )(i>1) R b =max(R yi ,R b )(i>1)
当检测到某行采样点值全部都相同时,就得到了一个变化的矩形区域块;基于上述原理在一个扫描区域中对变化区域进行矩形分割算法流程如图3所示;When it is detected that the values of the sampling points in a certain row are all the same, a changed rectangular area block is obtained; based on the above principle, the flow of the rectangular segmentation algorithm for the changed area in a scanning area is shown in Figure 3;
为提高判断屏幕变化区域的速度,基于矩形分割隔列扫描的图像传输方法采用隔列直接比较法判断前后图像缓冲区中两帧屏幕图像所对应像素是否变化从而找出变化的矩形区域;先以行为单位隔N列(检测间隔列数N需要根据具体情况而定)从左到右开始提取前后两幅图像对应的像素为采样点,比较对应像素点的值是否相同;按照从上到下,从左到右的原则,基于矩形分割隔列扫描的图像传输方法找出后一帧图像相对于前一帧图像所有变化区域并基于矩形分割算法得到面积最小的不重叠矩形区域的集合;其详细工作流程如下:In order to improve the speed of judging the changing area of the screen, the image transmission method based on rectangular segmentation and scanning alternately adopts the direct comparison method of alternating column to judge whether the pixels corresponding to the two frames of screen images in the front and rear image buffers have changed, so as to find out the changed rectangular area; Behavioral units are separated by N columns (the number of detection interval columns N needs to be determined according to the specific situation). From left to right, the pixels corresponding to the two images before and after are extracted as sampling points, and the values of corresponding pixel points are compared whether they are the same; according to from top to bottom, Based on the principle of left to right, the image transmission method based on the rectangular segmentation alternate column scanning finds out all the changed areas of the next frame image compared to the previous frame image, and obtains the smallest set of non-overlapping rectangular areas based on the rectangular segmentation algorithm; its details The workflow is as follows:
步骤1,图像发送端首先获得屏幕的分辨率,得到列扫描的范围0~C和行扫描的范围0~R;Step 1, the image sender first obtains the resolution of the screen, and obtains the range 0~C of the column scan and the range 0~R of the row scan;
步骤2,发送端将当前帧图像保存区的数据保存到前一帧图像缓冲区;截获当前的屏幕位图数据并保存在当前帧图像缓冲区;Step 2, the sending end saves the data in the current frame image storage area to the previous frame image buffer; intercepts the current screen bitmap data and saves it in the current frame image buffer;
步骤3,发送端首先初始化变化矩形区域左上角坐标和右下角坐标为(0,0),下次扫描起点坐标为(0,0),行无变化标识为true,更新列扫描的范围和行扫描的范围;Step 3, the sender first initializes the coordinates of the upper left corner and the lower right corner of the changed rectangular area to (0, 0), the coordinates of the starting point of the next scan are (0, 0), and the row no change flag is true, and the range and row of the column scan are updated scan range;
步骤4,判断是否在行扫描范围内,如果不在,跳转到步骤10;Step 4, judge whether it is within the line scanning range, if not, jump to step 10;
步骤5,判断是否在列扫描范围内,如果不在,跳转到步骤8;如果在列扫描范围内采用隔列直接比较法对当前采样点进行检测;若值不同,首先将行无变化标识设置为false,然后判断是否是检测到的第一个变化采样点,如果是将采样点坐标作为变化矩形区域的左上角坐标,如果不是第一个变化采样点,将矩形右下角的坐标和该点的坐标比较并取最大值作为新的矩形右下角坐标,再判断该采样点是否是本行第一个变化采样点,如果是就将该采样点的纵坐标同矩形左上角的纵坐标进行比较并取最小值更新变化矩形区域的左上角坐标;若值相同,需要判断行无变化标识是否为false,如果是false,记录其坐标作为下次扫描的起点,如果检测到是最后一列采样点,将最后一列采样点坐标作为下次扫描的起点,跳转到步骤7;Step 5, judge whether it is within the column scanning range, if not, jump to step 8; if within the column scanning range, use the method of direct comparison between columns to detect the current sampling point; if the values are different, first set the row no change flag is false, then judge whether it is the first detected change sampling point, if it is the coordinate of the sampling point as the coordinate of the upper left corner of the change rectangular area, if it is not the first change sampling point, the coordinate of the lower right corner of the rectangle and the point Compare the coordinates and take the maximum value as the coordinate of the lower right corner of the new rectangle, and then judge whether the sampling point is the first change sampling point of the line, if so, compare the ordinate of the sampling point with the ordinate of the upper left corner of the rectangle And take the minimum value to update the coordinates of the upper left corner of the changing rectangular area; if the values are the same, it is necessary to judge whether the no-change flag is false, if it is false, record its coordinates as the starting point of the next scan, if it is the last column of sampling points detected, Use the coordinates of the last column of sampling points as the starting point of the next scan, and skip to step 7;
步骤6,把列坐标右移N列,跳转到步骤5检测下一个采样点;Step 6, move the column coordinates to the right by N columns, and jump to step 5 to detect the next sampling point;
步骤7,本行检测完毕,将本行的下次扫描起点坐标与上一行记录的下次扫描起点坐标比较,并取最大值作为新的下次扫描起点坐标,行号加1,跳转到步骤4从下一行从头开始从左到右检测;Step 7: After the detection of this line is completed, compare the coordinates of the next scanning start point of this line with the coordinates of the next scanning start point recorded in the previous line, and take the maximum value as the new starting point coordinate of the next scan, add 1 to the line number, and jump to Step 4 detect from the beginning from left to right from the next line;
步骤8,判断行无变化标识是否为true且变化矩形区域左上角坐标不为(0,0),如果不是true,行号加1,跳转到步骤4;如果是true,则表明整行无不同像素点,这样就得到了一个变化的矩形区域块;由于采用隔列直接比较法,会出现变化图像边界变化没有检测到造成边界信息丢失的现象,为解决这个问题,得到的变化的矩形区域块左上角纵坐标向左移动N列,右下角纵坐标向右移动N列以包含图像边界信息;Step 8, judge whether the no-change flag of the line is true and the coordinates of the upper left corner of the changed rectangular area are not (0, 0), if not true, add 1 to the line number, and jump to step 4; if true, it indicates that the entire line has no Different pixels, thus a changed rectangular area block is obtained; due to the use of the direct comparison method every other column, there will be a phenomenon that the boundary information of the changed image is not detected and the boundary information is lost. In order to solve this problem, the obtained rectangular area of change The ordinate of the upper left corner of the block moves to the left by N columns, and the ordinate of the lower right corner moves to the right by N columns to include image boundary information;
步骤9,记录检测出的变化矩形区域坐标和相对应的下次扫描起点坐标,判断当前列扫描的范围是否0~C且行扫描的范围是否0~R,如果是,设置标识表明当前检测出的变化矩形区域标识是第一次检测出的,然后行号加1跳转到步骤4从下一行开始检测下一个变化的矩形区域块;直到检测超出行扫描的范围,其流程见图4;Step 9, record the coordinates of the detected changing rectangular area and the corresponding starting point coordinates of the next scan, judge whether the range of the current column scan is 0-C and whether the range of the row scan is 0-R, if yes, set the flag to indicate the currently detected The variable rectangular area mark is detected for the first time, and then the line number is increased by 1 to jump to step 4 to detect the next changed rectangular area block from the next line; until the detection exceeds the range of line scanning, the process is shown in Figure 4;
步骤10,本次检测完毕,检查整个屏幕还有没有检测到的部分,因此需要基于本次检测出的变化矩形区域坐标和相对应的下次扫描起点坐标计算生成下次扫描范围,其方法是检查本次检测出的第一个下次扫描起点的纵坐标是否比最后一列采样点的纵坐标小,如果不是,该区域检测完成,检测下一个下次扫描起点的纵坐标;如果是,以第一次检测出的变化矩形区域左上角的横坐标为横坐标,以当前变化矩形区域相关的下次扫描起点坐标的纵坐标为纵坐标,生成一个下次扫描范围的左上角坐标;以第一次检测出的变化矩形区域右下角的横坐标为横坐标,以屏幕的最大列数C为纵坐标生成一个下次扫描范围的右下角坐标;基于上述方法对本次检测中所有的下次扫描起点处理,计算出下次扫描范围的集合,其流程见图5;Step 10, after this detection is completed, check whether there is any detected part of the entire screen. Therefore, it is necessary to calculate and generate the next scanning range based on the coordinates of the changed rectangular area detected this time and the corresponding starting point coordinates of the next scan. The method is Check whether the ordinate of the starting point of the first next scan detected this time is smaller than the ordinate of the last column of sampling points, if not, the detection of this area is completed, and the ordinate of the starting point of the next next scan is detected; if yes, use The abscissa of the upper left corner of the changing rectangular area detected for the first time is the abscissa, and the ordinate of the starting point coordinates of the next scan related to the current changing rectangular area is used as the ordinate to generate a coordinate of the upper left corner of the next scanning range; The abscissa of the lower right corner of the changed rectangular area detected once is the abscissa, and the maximum column number C of the screen is used as the ordinate to generate the coordinates of the lower right corner of the next scanning range; Scanning starting point processing, calculate the set of the next scanning range, the process is shown in Figure 5;
步骤11,基于下次扫描范围集合中第一个扫描区域的宽度和高度计算行扫描和列扫描的范围,重复步骤3到步骤10得到该扫描区域中变化的矩形区域块,基于上述方法对扫描范围集合中所有的扫描区域处理,其流程见图5;Step 11, calculate the range of row scan and column scan based on the width and height of the first scan area in the next scan range set, repeat step 3 to step 10 to obtain the changed rectangular area block in the scan area, scan based on the above method All scan area processing in the range set, the flow is shown in Figure 5;
步骤12,重复步骤10到11,得到下一次扫描范围的变化矩形区域块,直到所有的下次扫描起点的纵坐标大于或等于最后一列采样点的纵坐标,整个屏幕检测完毕;Step 12, repeat steps 10 to 11 to obtain the changing rectangular area block of the next scan range until the ordinates of all the starting points of the next scan are greater than or equal to the ordinates of the last column of sampling points, and the entire screen is detected;
步骤13,得到了所有该帧图像相对于前一帧图像变化的面积最小的不重叠矩形区域的集合,检查该集合中的矩形区域,如果两个矩形其左上角纵坐标和右下角纵坐标相同,且一个矩形的右下角横坐标与另一个矩形左上角横坐标相邻,将其合并为一个矩形,然后再压缩并发送矩形区域的集合所包含的图像数据及对应坐标到客户端;Step 13, obtain the set of non-overlapping rectangular areas with the smallest area of the frame image relative to the previous frame image change, check the rectangular areas in the set, if the vertical coordinates of the upper left corner and the lower right corner of the two rectangles are the same , and the abscissa of the lower right corner of one rectangle is adjacent to the abscissa of the upper left corner of another rectangle, merge them into a rectangle, and then compress and send the image data and corresponding coordinates contained in the set of rectangular areas to the client;
步骤14,图像接收端将接收的数据减压后基于每个矩形区域图像数据及对应坐标整合至前一帧图像中并显示;Step 14, the image receiving end decompresses the received data and integrates the received data into the previous frame image based on the image data and corresponding coordinates of each rectangular area and displays it;
步骤15,每隔T秒重复步骤2到步骤14,根据应用场景的不同和带宽的要求,可以对间隔时间T做调整。Step 15, repeat steps 2 to 14 every T seconds, and the interval T can be adjusted according to different application scenarios and bandwidth requirements.
如图8所示,本发明实施例的基于矩形分割隔列扫描的图像传输系统主要包括:发送端和接收端As shown in Fig. 8, the image transmission system based on the rectangular division and every column scanning of the embodiment of the present invention mainly includes: a sending end and a receiving end
发送端包括:The sender includes:
屏幕图像采集模块,用于对发送端的屏幕进行图像采集;The screen image acquisition module is used for image acquisition of the screen at the sending end;
矩形分割隔列扫描模块,基于矩形分割隔列扫描算法将当前帧图像与缓存的上一帧图像进行对比,找出所有图像变化的区域,然后根据变化像素点的坐标得到面积最小的不重叠矩形区域的集合;Rectangular segmentation and row scanning module, based on the rectangular segmentation and row scanning algorithm, compares the current frame image with the cached previous frame image, finds out the areas where all images change, and then obtains the smallest non-overlapping rectangle according to the coordinates of the changed pixels collection of regions;
压缩发送模块,压缩矩形区域的集合所包含的图像数据,然后通过网络发送压缩的图像数据及对应坐标到客户端;The compression sending module compresses the image data contained in the collection of rectangular areas, and then sends the compressed image data and corresponding coordinates to the client through the network;
接收端包括:Receiver includes:
接收模块,接收发送端所发送的变化图像数据;The receiving module receives the changed image data sent by the sending end;
减压模块,将接收的数据减压,得到矩形区域的集合所包含的图像数据及对应坐标;The decompression module decompresses the received data to obtain the image data and corresponding coordinates contained in the set of rectangular areas;
更新显示模块,基于每个矩形区域图像数据及对应坐标更新缓存的前一帧图像对应区域并显示。The update display module updates and displays the cached corresponding area of the previous frame image based on the image data of each rectangular area and the corresponding coordinates.
以下结合附图7对本发明的实现进行详细描述:Below in conjunction with accompanying drawing 7 the realization of the present invention is described in detail:
发送端与接收端之间建立网络连接,发送端对当前帧图像与缓存的前一帧的图像进行对比,获取两帧图像中面积最小的不重叠矩形区域的集合,只压缩发送矩形区域集合所包含的图像数据,以减小每一帧的传输数据;接收端将接收的图像数据整合至前一帧图像中并显示,由此以节省带宽占用量和CPU使用率,实现图像快速传输;下面以屏幕分辨率为1024×768屏幕图像传输为例,图7显示为当前帧图像相对于前一帧图像的变化,以下结合附图7详细描述如下:A network connection is established between the sending end and the receiving end. The sending end compares the current frame image with the cached previous frame image, obtains the set of non-overlapping rectangular areas with the smallest area in the two frames of images, and only compresses the set of sending rectangular areas. Include image data to reduce the transmission data of each frame; the receiving end integrates the received image data into the previous frame image and displays it, thereby saving bandwidth usage and CPU usage, and realizing fast image transmission; the following Taking screen image transmission with a screen resolution of 1024×768 as an example, Fig. 7 shows the change of the current frame image relative to the previous frame image, which is described in detail below in conjunction with Fig. 7:
步骤1,发送端首先获得屏幕的宽度为1024和高度为768,这两个变量将作为列扫描和行扫描的范围;Step 1, the sender first obtains the screen width of 1024 and height of 768, these two variables will be used as the range of column scanning and row scanning;
步骤2,发送端首先获取第一帧图像保存当前帧图像缓冲区,然后将该帧图像压缩后发送到接收端,接收端接收图像数据后显示图像信息;Step 2, the sending end first obtains the first frame image and saves the current frame image buffer, then compresses the frame image and sends it to the receiving end, and the receiving end displays the image information after receiving the image data;
步骤3,2秒后发送端将当前帧图像缓冲区的数据保存到前一帧图像缓冲区;截获当前的屏幕图像数据并保存在当前帧图像缓冲区中;Step 3, after 2 seconds, the sender saves the data of the current frame image buffer to the previous frame image buffer; intercepts the current screen image data and saves it in the current frame image buffer;
步骤4,发送端首先初始化变化矩形区域左上角坐标和右下角坐标为(0,0),下次扫描起点坐标为(0,0),行无变化标识为true,更新列扫描的范围为0~1024和行扫描的范围为0~768;Step 4, the sender first initializes the coordinates of the upper left corner and the lower right corner of the changing rectangular area as (0, 0), the starting point coordinates of the next scan are (0, 0), the row no change flag is true, and the range of the updated column scan is 0 ~1024 and the range of line scanning is 0~768;
步骤5,采用隔列直接比较法判断前后两帧屏幕所对应像素是否变化找出变化的矩形区域;指针pCurData和pBakData分别指向当前帧图像和前一帧图像坐标为(1,5)的像素点比较对应的值是否相同;如果相同就以行为单位向右间隔4个像素(间隔的像素个数可以根据具体情况而定,以4个像素点为例)取前后两帧图像下一个对应的像素为采样点,比较两帧图像中坐标(1,10)对应像素点的值是相同,接着检测下一个采样点坐标(1,15)对应像素点值不同,将行无变化标识设置为false,这是检测到的第一个变化采样点,将其坐标作为变化矩形区域的左上角坐标;采样点(1,15)是本行第一个检测到变化,然后需要将采样点(1,15)的纵坐标同矩形左上角的纵坐标进行比较并取最小值,矩形左上角坐标更新为(1,15);Step 5, use the direct comparison method to judge whether the pixels corresponding to the two frames of the screen before and after have changed to find out the changed rectangular area; the pointers pCurData and pBakData point to the pixel points of the current frame image and the previous frame image whose coordinates are (1, 5) respectively Compare whether the corresponding values are the same; if they are the same, space 4 pixels to the right in row units (the number of pixels in the interval can be determined according to the specific situation, take 4 pixels as an example) and take the next corresponding pixel of the two frames of images before and after It is a sampling point, compare the value of the pixel corresponding to the coordinate (1, 10) in the two frames of images to be the same, then detect that the value of the pixel corresponding to the next sampling point coordinate (1, 15) is different, and set the line no change flag to false, This is the first change sampling point detected, and its coordinates are used as the coordinates of the upper left corner of the change rectangular area; the sampling point (1, 15) is the first change detected in this line, and then the sampling point (1, 15) needs to be ) is compared with the ordinate of the upper left corner of the rectangle and takes the minimum value, and the coordinates of the upper left corner of the rectangle are updated to (1, 15);
步骤6,在同一行中接着检测下一个采样点(1,20)的值是相同的,记录其坐标(1,20)作为下次扫描的起点,然后从下一行(第二行)从头开始从左到右检测;Step 6, in the same line, then detect that the value of the next sampling point (1, 20) is the same, record its coordinates (1, 20) as the starting point of the next scan, and then start from the beginning from the next line (the second line) detection from left to right;
步骤7,发送端检测第二行的采样点(2,5)和(2,10)的值是相同的,继续检测下一个采样点(2,15)的值是不同的,将矩形右下角的坐标(1,15)和该点的坐标比较并取最大值更新矩形右下角坐标为(2,15);采样点(2,15)是第二行第一个变化的采样点,需要将该采样点的纵坐标同矩形左上角的纵坐标进行比较并取最小值,矩形左上角坐标更新为(1,15);接着检测到下一个采样点(2,20)值是相同的,更新下次扫描的起点(2,20),然后从下一行(第三行)从头开始从左到右检测;Step 7, the sender detects that the values of the sampling points (2, 5) and (2, 10) in the second row are the same, and continues to detect that the values of the next sampling point (2, 15) are different, and the lower right corner of the rectangle The coordinates (1, 15) of the point are compared with the coordinates of this point and take the maximum value to update the coordinates of the lower right corner of the rectangle to be (2, 15); the sampling point (2, 15) is the first changed sampling point in the second line, which needs to be The ordinate of the sampling point is compared with the ordinate of the upper left corner of the rectangle and takes the minimum value, and the coordinates of the upper left corner of the rectangle are updated to (1, 15); then it is detected that the value of the next sampling point (2, 20) is the same, update The starting point of the next scan (2, 20), and then start from the next row (third row) to detect from left to right;
步骤8,发送端检测第三行的采样点(3,5)的值是不同的,将矩形右下角的坐标(2,15)和该点的坐标比较并取最大值更新矩形右下角坐标为(3,15);采样点(3,5)是第三行第一个变化的采样点,需要将该采样点的纵坐标(5)同矩形左上角的纵坐标(15)进行比较并取最小值,矩形左上角坐标更新为(1,5);接着比较下面采样点(3,10)(3,15)(3,20)的值都是不同的,将矩形右下角的坐标和这些点的坐标比较并取最大值更新矩形右下角坐标为(3,20);Step 8. The sender detects that the values of the sampling points (3, 5) in the third line are different, compare the coordinates (2, 15) of the lower right corner of the rectangle with the coordinates of this point and take the maximum value to update the coordinates of the lower right corner of the rectangle as (3, 15); sampling point (3, 5) is the first changed sampling point in the third row, and the vertical coordinate (5) of the sampling point needs to be compared with the vertical coordinate (15) of the upper left corner of the rectangle and taken The minimum value, the coordinates of the upper left corner of the rectangle are updated to (1, 5); then compare the values of the following sampling points (3, 10) (3, 15) (3, 20) are all different, and the coordinates of the lower right corner of the rectangle are compared with these Compare the coordinates of the points and take the maximum value to update the coordinates of the lower right corner of the rectangle to (3, 20);
步骤9,发送端依次检测每行的采样点;第10行的采样点(10,20)的值是不同的,将矩形右下角的坐标和该点的坐标比较并取最大值更新矩形右下角坐标为(10,20);采样点(10,20)是第10行第一个变化的采样点,需要将该采样点的纵坐标(20)同矩形左上角的纵坐标(5)进行比较并取最小值,矩形左上角坐标更新为(1,5);在同一行中接着检测下一个采样点(10,25)的值是相同的,记录其坐标(10,25)作为下次扫描的起点,然后从下一行(第11行)从头开始从左到右检测;Step 9, the sender detects the sampling points of each row in turn; the value of the sampling point (10, 20) in the 10th row is different, compare the coordinates of the lower right corner of the rectangle with the coordinates of this point and take the maximum value to update the lower right corner of the rectangle The coordinates are (10, 20); the sampling point (10, 20) is the first changed sampling point in line 10, and the ordinate (20) of the sampling point needs to be compared with the ordinate (5) of the upper left corner of the rectangle And take the minimum value, update the coordinates of the upper left corner of the rectangle to (1, 5); in the same line, then detect that the value of the next sampling point (10, 25) is the same, record its coordinates (10, 25) as the next scan The starting point, and then from the next line (line 11) to detect from left to right from the beginning;
步骤10,发送端检测到第11行采样点值全部都相同,行无变化标识是为true且变化矩形区域左上角坐标不为(0,0),则表明整行无不同像素点,这样就得到了一个变化的矩形区域块左上角为(1,5),右下角(10,20),下次扫描的起点(10,25);为解决变化图像边界信息丢失问题,得到的变化的矩形区域块左上角纵坐标向左移动5列,右下角纵坐标向右移动5列以包含图像边界信息;得到更新的变化的矩形区域块左上角为(1,0),右下角(10,25),当前前列扫描的范围是0~C且行扫描的范围是0~R,设置标识表明当前检测出的变化矩形区域标识是第一次检测出的;Step 10, the sender detects that the values of the sampling points in the 11th row are all the same, the flag of no change in the row is true and the coordinates of the upper left corner of the changed rectangular area are not (0, 0), it indicates that there is no different pixel point in the entire row, so The upper left corner of a changed rectangular area block is (1, 5), the lower right corner is (10, 20), and the starting point of the next scan is (10, 25); in order to solve the problem of loss of boundary information of the changed image, the changed rectangle obtained The ordinate of the upper left corner of the area block moves 5 columns to the left, and the ordinate of the lower right corner moves 5 columns to the right to contain the image boundary information; the upper left corner of the updated rectangular area block is (1, 0), and the lower right corner (10, 25 ), the range of the current front row scan is 0~C and the range of the row scan is 0~R, and the setting mark indicates that the currently detected change rectangle area mark is detected for the first time;
步骤11,采用上述方法继续向下检测得到了下一个变化的矩形区域块左上角为(12,20),右下角(20,40),下次扫描的起点(18,40),设置第一次检测出标识;Step 11, use the above method to continue to detect downwards to obtain the next changed rectangular area block with (12, 20) in the upper left corner, (20, 40) in the lower right corner, and (18, 40) as the starting point of the next scan, and set the first The logo was detected for the second time;
步骤12,发送端逐行检测每行对应的采样点其值是否相同,直到屏幕的最后一行为止;基于本例第一次扫描完成,得到了两个变化的矩形区域块左上角为(1,0),右下角(10,25),下次扫描的起点(10,25)和矩形区域块左上角为(12,20),右下角(20,40),下次扫描的起点(18,40);Step 12, the sending end detects whether the values of the sampling points corresponding to each row are the same until the last row of the screen; based on the completion of the first scan in this example, the upper left corners of two changing rectangular areas are (1, 0), the lower right corner (10, 25), the starting point of the next scan (10, 25) and the upper left corner of the rectangular area block is (12, 20), the lower right corner (20, 40), the starting point of the next scan (18, 40);
步骤13,由于还存在下次扫描的起点(10,25)和(18,40)的纵坐标比最后一列采样点的纵坐标小,整个屏幕还有没有检测到的部分,因此发送端需要确定下一次检测的区域,基于从上到下检测出的变化矩形区域坐标和相对应的下次扫描起点坐标计算生成第二次扫描范围;首先基于第一个矩形区域左上角为(1,0),右下角(10,25),下次扫描的起点(10,25)计算第一个扫描区域;首先由于矩形区域(1,0),(10,25)是第一轮检测出的变化矩形区域,因此扫描区域左上角和右下角横坐标分别为第一个矩形区域左上角为(1,0),右下角(10,25)的横坐标,即扫描区域左上角和右下角横坐标分别为1和10;然后将扫描起点坐标的纵坐标25和屏幕最后一列采样点的纵坐标(1020)比较;扫描起点坐标的纵坐标小于屏幕最后一列的纵坐标,得到扫描区域左上角坐标纵坐标为扫描起点坐标的纵坐标25;以屏幕的宽度1024为扫描区域右下角坐标纵坐标,由此得到了第二次扫描范围中的一个扫描区域(1,25)(10,1024);然后基于矩形区域块左上角为(12,20),右下角(20,40),下次扫描的起点(18,40)计算下一个扫描区域;同计算第一个扫描区域的方法一样,得到了第二次扫描范围中的一个扫描区域(12,40)(20,1024);Step 13, since the ordinates of the starting points (10, 25) and (18, 40) of the next scan are smaller than the ordinates of the last column of sampling points, the entire screen still has undetected parts, so the sender needs to determine For the next detected area, the second scanning range is calculated based on the coordinates of the changing rectangular area detected from top to bottom and the corresponding starting point coordinates of the next scan; first, the upper left corner of the first rectangular area is (1, 0) , the lower right corner (10, 25), the starting point of the next scan (10, 25) to calculate the first scan area; first, because the rectangular area (1, 0), (10, 25) is the change rectangle detected in the first round area, so the abscissas of the upper left corner and lower right corner of the scanning area are respectively the abscissas of the upper left corner of the first rectangular area (1, 0) and the lower right corner (10, 25), that is, the abscissas of the upper left corner and lower right corner of the scanning area are respectively 1 and 10; then compare the ordinate 25 of the scan starting point coordinates with the ordinate (1020) of the last column of sampling points on the screen; the ordinate of the scan starting point coordinates is smaller than the ordinate of the last column of the screen, and obtain the coordinate ordinate of the upper left corner of the scanning area Be the ordinate 25 of scanning starting point coordinate; Take the width 1024 of screen as the coordinate ordinate of the lower right corner of the scanning area, thus obtained a scanning area (1,25)(10,1024) in the scanning range for the second time; Then based on The upper left corner of the rectangular area block is (12, 20), the lower right corner is (20, 40), and the starting point of the next scan is (18, 40) to calculate the next scan area; the same as the method for calculating the first scan area, the second scan area is obtained A scanning area (12, 40) (20, 1024) in the secondary scanning range;
步骤14,计算生成第二次扫描范围的区域集合后,可以得到第二次扫描列扫描和行扫描的范围;在本例中,第二次扫描区域集合为第一个区域(1,25)(10,1024)和第二个区域(12,40)(20,1024);下次扫描区域集合中第一个扫描区域列扫描的范围为(25≤x≤1024)和行扫描的范围(1≤y≤10),第二个扫描区域的列扫描的范围为(40≤x≤1024)和行扫描的范围(12≤y≤20);Step 14, after calculating and generating the area set of the second scan range, the range of the second scan column scan and row scan can be obtained; in this example, the second scan area set is the first area (1, 25) (10, 1024) and the second area (12, 40) (20, 1024); the range of the column scan of the first scan area in the next scan area set is (25≤x≤1024) and the range of row scan ( 1≤y≤10), the column scanning range of the second scanning area is (40≤x≤1024) and the row scanning range (12≤y≤20);
步骤15,发送端首先初始化变化矩形区域左上角坐标和右下角坐标为(0,0),接着采用隔列直接比较法判断第一个扫描区域中是否存在变化的矩形区域块,基于该例可以在第一个区域中得到了一个变化的矩形区域块左上角为(2,40),右下角(9,55),下次扫描的起点(7,55);Step 15, the sender first initializes the coordinates of the upper left corner and the lower right corner of the changing rectangular area to (0, 0), and then uses the method of direct comparison every other column to determine whether there is a changing rectangular area block in the first scanning area. Based on this example, In the first area, a changed rectangular area block is obtained (2, 40) in the upper left corner, (9, 55) in the lower right corner, and the starting point of the next scan (7, 55);
步骤16,接着发送端采用隔列直接比较法判断第二个扫描区域中是否存在变化的矩形区域块,基于该例发送端扫描到该区域最后1行最后1列采样点(20,1020)值都是相同的,不存在变化的矩形区域;发送端将下次扫描的起点坐标设置为(20,1020);该变化矩形区域对应扫描起点坐标的纵坐标和最后一列采样点的纵坐标相同,该变化矩形区域扫描完毕;第二次扫描完成,得到了一个变化的矩形区域块左上角为(2,40),右下角(9,55),下次扫描的起点(7,55);Step 16, then the sender judges whether there is a changed rectangular area block in the second scanning area by using the method of direct comparison between columns, based on the value of the sampling point (20, 1020) in the last row and last column of the area scanned by the sender in this example All are the same, there is no changing rectangular area; the sending end sets the starting point coordinates of the next scan to (20, 1020); the ordinate of the changing rectangular area corresponding to the scanning starting point coordinates is the same as the ordinate of the last column of sampling points, The changed rectangular area is scanned; the second scan is completed, and a changed rectangular area block is obtained with the upper left corner (2, 40), the lower right corner (9, 55), and the starting point of the next scan (7, 55);
步骤17,由于还存在下次扫描的起点(7,55)的纵坐标比最后一列采样点的纵坐标小,发送端再次计算生成第三次扫描范围,首先基于矩形区域左上角为(2,40),右下角(9,55),下次扫描的起点(3,55)计算;由于当前矩形区域左上角(2,40),右下角(9,55)不是第一轮检测出的变化矩形区域,扫描范围中扫描区域左上角和右下角横坐标保存不变,将扫描起点坐标的纵坐标55和屏幕最后一列采样点的纵坐标(1020)比较;扫描起点坐标的纵坐标小于屏幕最后一列的纵坐标,得到扫描区域左上角坐标纵坐标为扫描起点坐标的纵坐标55;以屏幕的宽度1024为右下角纵坐标;由此得到了第三次扫描范围中的一个扫描区域(1,55)(10,1024);Step 17, since the ordinate of the starting point (7, 55) of the next scan is smaller than the ordinate of the last column of sampling points, the sending end calculates and generates the third scanning range again, first based on the upper left corner of the rectangular area being (2, 40), the lower right corner (9, 55), the starting point of the next scan (3, 55) is calculated; because the upper left corner (2, 40) of the current rectangular area, the lower right corner (9, 55) is not the change detected in the first round In the rectangular area, the abscissas of the upper left corner and lower right corner of the scanning area in the scanning area are kept unchanged, and the ordinate 55 of the scanning starting point is compared with the ordinate (1020) of the last column of sampling points on the screen; the ordinate of the scanning starting point is smaller than the last The ordinate of a row, obtains the ordinate of the upper left corner of the scanning area and is the ordinate of the scanning starting point coordinate 55; Take the width 1024 of the screen as the ordinate of the lower right corner; thus obtain a scanning area (1, 55)(10,1024);
步骤18,接着发送端采用隔列直接比较法判断第三次扫描范围中是否存在变化的矩形区域块,基于该例发送端扫描到该区域最后1行最后1列采样点(10,1020)值都是相同的,不存在变化的矩形区域;发送端将下次扫描的起点坐标设置为(20,1020);该变化矩形区域对应扫描起点坐标的纵坐标和最后一列采样点的纵坐标相同,该变化矩形区域扫描完毕;Step 18, then the sender uses the method of direct comparison between columns to determine whether there is a changed rectangular area block in the third scanning range, based on the value of the sampling point (10, 1020) in the last row and last column of the area scanned by the sender in this example All are the same, there is no changing rectangular area; the sending end sets the starting point coordinates of the next scan to (20, 1020); the ordinate of the changing rectangular area corresponding to the scanning starting point coordinates is the same as the ordinate of the last column of sampling points, The changing rectangular area is scanned;
步骤19,到此为止,所有的扫描起点坐标的纵坐标和最后一列采样点的纵坐标相同,整个屏幕扫描完成,得到的变化矩形区域为矩形区域块左上角为(1,0),右下角(10,25),矩形区域块左上角为(12,20),右下角(20,40),矩形区域块左上角为(2,40),右下角(9,55);Step 19, so far, the ordinates of all scanning starting point coordinates are the same as the ordinates of the last column of sampling points, the entire screen is scanned, and the obtained changing rectangular area is (1, 0) in the upper left corner of the rectangular area block, and (1, 0) in the lower right corner (10, 25), the upper left corner of the rectangular area block is (12, 20), the lower right corner is (20, 40), the upper left corner of the rectangular area block is (2, 40), and the lower right corner is (9, 55);
步骤20,发送端压缩并发送变化矩形区域的集合所包含的图像数据和坐标信息到客户端;图像接收端将接收的图像数据整合至前一帧图像中并显示。Step 20, the sending end compresses and sends the image data and coordinate information contained in the set of changing rectangular areas to the client; the image receiving end integrates the received image data into the previous frame image and displays it.
步骤21,每隔2秒重复步骤3到步骤20,根据应用场景的不同和带宽的要求,可以对间隔时间做调整。Step 21, repeat steps 3 to 20 every 2 seconds, and the interval can be adjusted according to different application scenarios and bandwidth requirements.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510089351.9A CN104735449B (en) | 2015-02-27 | 2015-02-27 | A kind of image transfer method split based on rectangle every column scan |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510089351.9A CN104735449B (en) | 2015-02-27 | 2015-02-27 | A kind of image transfer method split based on rectangle every column scan |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104735449A true CN104735449A (en) | 2015-06-24 |
CN104735449B CN104735449B (en) | 2017-12-26 |
Family
ID=53458818
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510089351.9A Active CN104735449B (en) | 2015-02-27 | 2015-02-27 | A kind of image transfer method split based on rectangle every column scan |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104735449B (en) |
Cited By (35)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106954004A (en) * | 2017-03-17 | 2017-07-14 | 宇龙计算机通信科技(深圳)有限公司 | Screen sharing method and device |
CN107705257A (en) * | 2017-09-15 | 2018-02-16 | 重庆科技学院 | One kind is based on partial fractional differential graph of equation image contrast method |
CN107767368A (en) * | 2017-09-27 | 2018-03-06 | 贵阳中医学院 | A kind of multifunction electromagnetic heat cure control system and control method |
CN107801038A (en) * | 2017-10-31 | 2018-03-13 | 灏瑰浆 | A kind of English long-distance education and test system and method |
CN107841526A (en) * | 2017-11-16 | 2018-03-27 | 北华大学 | A kind of malic dehydrogenase diagnostic kit |
CN108039087A (en) * | 2017-12-06 | 2018-05-15 | 陈天 | A kind of long-range Piano Teaching interactive management system |
CN108182673A (en) * | 2017-12-07 | 2018-06-19 | 山东省林业科学研究院 | A kind of improvement in salt-soda soil and administering method and system |
CN108389444A (en) * | 2018-03-29 | 2018-08-10 | 湖南城市学院 | A kind of English language tutoring system and teaching application method |
CN108398384A (en) * | 2018-01-29 | 2018-08-14 | 重庆交通大学 | A kind of landslide downslide amount parameter remote rapid reconnaissance method based on big data |
CN108398905A (en) * | 2018-03-23 | 2018-08-14 | 湖南文理学院 | A kind of detection method and system of industrial stokehold technological process safety |
CN108416700A (en) * | 2018-02-05 | 2018-08-17 | 湖南城市学院 | An interior decoration design system based on AR virtual reality technology |
CN108416833A (en) * | 2018-03-02 | 2018-08-17 | 景德镇陶瓷大学 | An indoor design imaging processing control system based on mobile terminal data synchronization |
CN108426785A (en) * | 2018-01-29 | 2018-08-21 | 重庆交通大学 | A kind of rock soil medium Test Analysis of Pre-stressed method based on big data |
CN108447535A (en) * | 2018-03-02 | 2018-08-24 | 河南中医药大学 | An internet-based medical diagnosis and treatment control system for obstetrics and gynecology diseases |
CN108466684A (en) * | 2018-03-27 | 2018-08-31 | 江西理工大学 | A kind of novel seabed robot |
CN108492310A (en) * | 2018-03-27 | 2018-09-04 | 江西理工大学 | Workbench and implementation under a kind of intelligent water |
CN108510123A (en) * | 2018-04-04 | 2018-09-07 | 农业部环境保护科研监测所 | A kind of method for optimization analysis of wet land protection and exploitation based on Internet of Things |
CN108519745A (en) * | 2018-05-03 | 2018-09-11 | 广东水利电力职业技术学院(广东省水利电力技工学校) | A kind of motion controller system |
CN108520231A (en) * | 2018-04-04 | 2018-09-11 | 农业部环境保护科研监测所 | A system and method for analyzing the evolution process of intelligent wetland landscape |
CN108536104A (en) * | 2018-04-09 | 2018-09-14 | 湖南城市学院 | A kind of construction energy-conserving control method based on new energy |
CN108645385A (en) * | 2018-04-28 | 2018-10-12 | 黄冈职业技术学院 | A kind of heavy construction steel construction intelligence deformation detecting system |
CN108635153A (en) * | 2018-04-08 | 2018-10-12 | 鞠红梅 | A kind of occupational health diagnostic couch |
CN108648307A (en) * | 2018-05-09 | 2018-10-12 | 青岛职业技术学院 | A kind of access control system of applying electronic password |
CN109639926A (en) * | 2018-12-27 | 2019-04-16 | Tcl移动通信科技(宁波)有限公司 | Mobile terminal Bluetooth image method for transmission processing, mobile terminal and storage medium |
CN109829866A (en) * | 2019-02-01 | 2019-05-31 | 安谋科技(中国)有限公司 | Column noise detecting method, device, medium and system |
CN110235176A (en) * | 2019-04-17 | 2019-09-13 | 京东方科技集团股份有限公司 | Processing method and processing device, data transmission method and device, the storage medium of image |
CN110248159A (en) * | 2019-06-10 | 2019-09-17 | 江苏省产品质量监督检验研究院 | One kind being used for food and beverage enterprise's offsite surveillance inspection method |
CN110896497A (en) * | 2019-10-30 | 2020-03-20 | 厦门天锐科技股份有限公司 | Image processing method, video playing method and device |
CN112214188A (en) * | 2020-09-11 | 2021-01-12 | 西安万像电子科技有限公司 | Image processing method and device, storage medium and processor |
CN112565766A (en) * | 2020-11-11 | 2021-03-26 | 航天银山电气有限公司 | Video transmission method, device and storage medium |
CN112954261A (en) * | 2021-03-18 | 2021-06-11 | 深圳奇实科技有限公司 | Video conference network flow control method and system |
CN113546416A (en) * | 2021-08-16 | 2021-10-26 | 网易(杭州)网络有限公司 | Game scene processing method and device, computer equipment and storage medium |
CN114820440A (en) * | 2022-03-17 | 2022-07-29 | 杭州未名信科科技有限公司 | Image processing method and device, storage medium and electronic device |
CN115496914A (en) * | 2022-08-18 | 2022-12-20 | 成都智元汇信息技术股份有限公司 | Maximum outline package extraction method and device based on column data |
CN116469055A (en) * | 2023-04-26 | 2023-07-21 | 杨利容 | Key image area judging system for branch mark |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109537791A (en) * | 2018-11-01 | 2019-03-29 | 湖南城市学院 | A kind of dismountable modularization indoor decoration Combined type suspended ceiling structure |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101313592A (en) * | 2005-09-27 | 2008-11-26 | 高通股份有限公司 | Methods and device for data alignment with time domain boundary |
US20120182321A1 (en) * | 2011-01-19 | 2012-07-19 | Sony Corporation | Image converter, image conversion method, program and electronic equipment |
-
2015
- 2015-02-27 CN CN201510089351.9A patent/CN104735449B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101313592A (en) * | 2005-09-27 | 2008-11-26 | 高通股份有限公司 | Methods and device for data alignment with time domain boundary |
US20120182321A1 (en) * | 2011-01-19 | 2012-07-19 | Sony Corporation | Image converter, image conversion method, program and electronic equipment |
Non-Patent Citations (2)
Title |
---|
刘德胜: "基于矩形分割的局部渲染技术在无线图像通信中的应用", 《成都信息工程学院学报 》 * |
赵司井,林宏刚: "动态分块隔行扫描算法设计与实现", 《成都信息工程学院学报 》 * |
Cited By (42)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106954004A (en) * | 2017-03-17 | 2017-07-14 | 宇龙计算机通信科技(深圳)有限公司 | Screen sharing method and device |
CN107705257A (en) * | 2017-09-15 | 2018-02-16 | 重庆科技学院 | One kind is based on partial fractional differential graph of equation image contrast method |
CN107767368A (en) * | 2017-09-27 | 2018-03-06 | 贵阳中医学院 | A kind of multifunction electromagnetic heat cure control system and control method |
CN107801038A (en) * | 2017-10-31 | 2018-03-13 | 灏瑰浆 | A kind of English long-distance education and test system and method |
CN107841526A (en) * | 2017-11-16 | 2018-03-27 | 北华大学 | A kind of malic dehydrogenase diagnostic kit |
CN108039087A (en) * | 2017-12-06 | 2018-05-15 | 陈天 | A kind of long-range Piano Teaching interactive management system |
CN108182673A (en) * | 2017-12-07 | 2018-06-19 | 山东省林业科学研究院 | A kind of improvement in salt-soda soil and administering method and system |
CN108426785A (en) * | 2018-01-29 | 2018-08-21 | 重庆交通大学 | A kind of rock soil medium Test Analysis of Pre-stressed method based on big data |
CN108398384A (en) * | 2018-01-29 | 2018-08-14 | 重庆交通大学 | A kind of landslide downslide amount parameter remote rapid reconnaissance method based on big data |
CN108416700A (en) * | 2018-02-05 | 2018-08-17 | 湖南城市学院 | An interior decoration design system based on AR virtual reality technology |
CN108416833A (en) * | 2018-03-02 | 2018-08-17 | 景德镇陶瓷大学 | An indoor design imaging processing control system based on mobile terminal data synchronization |
CN108447535A (en) * | 2018-03-02 | 2018-08-24 | 河南中医药大学 | An internet-based medical diagnosis and treatment control system for obstetrics and gynecology diseases |
CN108398905A (en) * | 2018-03-23 | 2018-08-14 | 湖南文理学院 | A kind of detection method and system of industrial stokehold technological process safety |
CN108466684A (en) * | 2018-03-27 | 2018-08-31 | 江西理工大学 | A kind of novel seabed robot |
CN108492310A (en) * | 2018-03-27 | 2018-09-04 | 江西理工大学 | Workbench and implementation under a kind of intelligent water |
CN108389444A (en) * | 2018-03-29 | 2018-08-10 | 湖南城市学院 | A kind of English language tutoring system and teaching application method |
CN108510123A (en) * | 2018-04-04 | 2018-09-07 | 农业部环境保护科研监测所 | A kind of method for optimization analysis of wet land protection and exploitation based on Internet of Things |
CN108520231A (en) * | 2018-04-04 | 2018-09-11 | 农业部环境保护科研监测所 | A system and method for analyzing the evolution process of intelligent wetland landscape |
CN108635153A (en) * | 2018-04-08 | 2018-10-12 | 鞠红梅 | A kind of occupational health diagnostic couch |
CN108536104A (en) * | 2018-04-09 | 2018-09-14 | 湖南城市学院 | A kind of construction energy-conserving control method based on new energy |
CN108645385A (en) * | 2018-04-28 | 2018-10-12 | 黄冈职业技术学院 | A kind of heavy construction steel construction intelligence deformation detecting system |
CN108519745A (en) * | 2018-05-03 | 2018-09-11 | 广东水利电力职业技术学院(广东省水利电力技工学校) | A kind of motion controller system |
CN108648307A (en) * | 2018-05-09 | 2018-10-12 | 青岛职业技术学院 | A kind of access control system of applying electronic password |
CN109639926A (en) * | 2018-12-27 | 2019-04-16 | Tcl移动通信科技(宁波)有限公司 | Mobile terminal Bluetooth image method for transmission processing, mobile terminal and storage medium |
CN109829866B (en) * | 2019-02-01 | 2021-02-19 | 安谋科技(中国)有限公司 | Column noise detection method, apparatus, medium, and system |
CN109829866A (en) * | 2019-02-01 | 2019-05-31 | 安谋科技(中国)有限公司 | Column noise detecting method, device, medium and system |
CN110235176A (en) * | 2019-04-17 | 2019-09-13 | 京东方科技集团股份有限公司 | Processing method and processing device, data transmission method and device, the storage medium of image |
WO2020211021A1 (en) * | 2019-04-17 | 2020-10-22 | 京东方科技集团股份有限公司 | Image processing method and device, data transmission method and device, and storage medium |
US11336906B2 (en) | 2019-04-17 | 2022-05-17 | Boe Technology Group Co., Ltd. | Image processing method and device for image, data transmission method and device, and storage medium compression by combining rectangular regions of binarized images |
CN110235176B (en) * | 2019-04-17 | 2024-03-22 | 京东方科技集团股份有限公司 | Image processing method and device, data transmission method and device and storage medium |
CN110248159A (en) * | 2019-06-10 | 2019-09-17 | 江苏省产品质量监督检验研究院 | One kind being used for food and beverage enterprise's offsite surveillance inspection method |
CN110896497A (en) * | 2019-10-30 | 2020-03-20 | 厦门天锐科技股份有限公司 | Image processing method, video playing method and device |
CN112214188A (en) * | 2020-09-11 | 2021-01-12 | 西安万像电子科技有限公司 | Image processing method and device, storage medium and processor |
CN112214188B (en) * | 2020-09-11 | 2024-06-07 | 西安万像电子科技有限公司 | Image processing method, device, storage medium and processor |
CN112565766A (en) * | 2020-11-11 | 2021-03-26 | 航天银山电气有限公司 | Video transmission method, device and storage medium |
CN112954261A (en) * | 2021-03-18 | 2021-06-11 | 深圳奇实科技有限公司 | Video conference network flow control method and system |
CN113546416A (en) * | 2021-08-16 | 2021-10-26 | 网易(杭州)网络有限公司 | Game scene processing method and device, computer equipment and storage medium |
CN113546416B (en) * | 2021-08-16 | 2024-07-02 | 网易(杭州)网络有限公司 | Game scene processing method, game scene processing device, computer equipment and storage medium |
CN114820440A (en) * | 2022-03-17 | 2022-07-29 | 杭州未名信科科技有限公司 | Image processing method and device, storage medium and electronic device |
CN115496914A (en) * | 2022-08-18 | 2022-12-20 | 成都智元汇信息技术股份有限公司 | Maximum outline package extraction method and device based on column data |
CN115496914B (en) * | 2022-08-18 | 2023-05-02 | 成都智元汇信息技术股份有限公司 | Method and device for extracting package of maximum outline based on column data |
CN116469055A (en) * | 2023-04-26 | 2023-07-21 | 杨利容 | Key image area judging system for branch mark |
Also Published As
Publication number | Publication date |
---|---|
CN104735449B (en) | 2017-12-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104735449B (en) | A kind of image transfer method split based on rectangle every column scan | |
US8819270B2 (en) | Information processing apparatus, computer-readable non transitory storage medium storing image transmission program, and computer-readable storage medium storing image display program | |
US8787460B1 (en) | Method and apparatus for motion vector estimation for an image sequence | |
US20110276653A1 (en) | Information processing device, image transmission program, image display program, and image display method | |
US20130155075A1 (en) | Information processing device, image transmission method, and recording medium | |
US20240104780A1 (en) | Image compression method and apparatus, and intelligent terminal and computer-readable storage medium | |
US8958642B2 (en) | Method and device for image processing by image division | |
CN105338323A (en) | Video monitoring method and device | |
US8760366B2 (en) | Method and system for remote computing | |
TW201424400A (en) | Method and apparatus for reducing digital video image data | |
CN110235176A (en) | Processing method and processing device, data transmission method and device, the storage medium of image | |
WO2021047177A1 (en) | Data encoding method and apparatus | |
CN105025347B (en) | A kind of method of sending and receiving of GOP images group | |
CN111245879A (en) | Desktop content transmission method and system of virtual desktop and related components | |
JP4116006B2 (en) | Screen transfer device, screen transfer system, screen transfer method, and program | |
CN113055675A (en) | Image transmission method and device and video processing equipment | |
CN110740352B (en) | SPICE protocol-based difference image display method in video card transparent transmission environment | |
TWI586175B (en) | Method and system for managing bandwidth of video conference | |
CN107194952B (en) | A kind of screen scroll detection method of screen-oriented Video coding | |
US20150281699A1 (en) | Information processing device and method | |
US20100149181A1 (en) | Vector graphics system and vector graphics rendering method | |
CN102164168B (en) | Method and system for transmitting and displaying dragged image | |
KR101263669B1 (en) | Image processing system of image change adaptation | |
CN112565760A (en) | Encoding method, apparatus and storage medium for string encoding technique | |
JP2005033763A (en) | Transmission apparatus, image processing system, image processing method, program, and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210622 Address after: No.105, 1st floor, building 2, No.88 Keyuan South Road, high tech Zone, Chengdu, Sichuan 610000 Patentee after: Chengdu Feige Medical Technology Co.,Ltd. Address before: 610225, No. 24, Section 1, Xuefu Road, Southwest Economic Development Zone, Chengdu, Sichuan Patentee before: CHENGDU University OF INFORMATION TECHNOLOGY |
|
TR01 | Transfer of patent right |