CN108366245A - Imaged image transmission method and device - Google Patents

Imaged image transmission method and device Download PDF

Info

Publication number
CN108366245A
CN108366245A CN201810218305.8A CN201810218305A CN108366245A CN 108366245 A CN108366245 A CN 108366245A CN 201810218305 A CN201810218305 A CN 201810218305A CN 108366245 A CN108366245 A CN 108366245A
Authority
CN
China
Prior art keywords
image
transmitting terminal
block
resolution value
pixel
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
Application number
CN201810218305.8A
Other languages
Chinese (zh)
Other versions
CN108366245B (en
Inventor
崔晓宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Henghengguai Digital Technology Co.,Ltd.
Original Assignee
Beijing Virtual Film Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Virtual Film Technology Co Ltd filed Critical Beijing Virtual Film Technology Co Ltd
Priority to CN201810218305.8A priority Critical patent/CN108366245B/en
Publication of CN108366245A publication Critical patent/CN108366245A/en
Application granted granted Critical
Publication of CN108366245B publication Critical patent/CN108366245B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The present invention provides imaged image transmission method and devices, are related to technical field of data transmission, wherein the imaged image transmission method includes:The volume of transmitted data for the transmission medium that the detection of image transmitting terminal is attached thereto, when the main body resolution value of image data is more than foreground resolution value, and, when main body resolution value is more than background resolution value, every frame image in image data to be transmitted is divided into multiple images block, when volume of transmitted data is less than pixel, calculate the difference between volume of transmitted data and pixel, according to the minimum image block of the type to get colors, reduce the pixel of the image block selected, calculate the reduction amount of the pixel of image block, when reduction amount and difference it is equal in magnitude when, the image block that the minimum image block of color category is updated to preserve, and the image block of not updated image block and preservation is put into transmission medium and is transmitted, to improve the matching degree of image data and transmission medium.

Description

Imaged image transmission method and device
Technical field
The present invention relates to technical field of data transmission more particularly to imaged image transmission methods and device.
Background technology
It is universal with computer technology with the development of science and technology, it is various also to be given using the imaged image data of high-tech technology People bring completely new sensory experience.The stage effect made by 3D technology, the virtual reality trip made by VR technologies The remote multi-person video pictures etc. that play is experienced, realized by Video chat technology are all in front end (for example, 3D glasses, camera Deng) get the imaged image data comprising image after, be ultimately transferred to after transmission medium using certain transmission technology The human eye of audience.
But in transmission process, the imaged image data of above-mentioned diversified forms are needed by image collecting device and image exhibition The transmission medium (for example, cable, electronic circuit etc.) set up between showing device is propagated.Due to the specification ratio of transmission medium It is relatively fixed, it can not be adjusted flexibly after installation is completed.Therefore, imaged image data inevitably will appear in transmission process Obstruction, i.e. the imaged image data of current transmission are excessive, and the volume of transmitted data of matched transmission medium is too small etc., from And imaged image data is caused to occur the phenomenon that congestion, even packet loss in transmission process, and then lead to image demonstration apparatus It can not watch the image of complete display or even image demonstration apparatus that can not play after receiving above-mentioned imaged image data State imaged image data.
To sum up, it the problem of can not being matched at present with transmission medium in transmission process about imaged image data, there is no The solution of effect.
Invention content
In view of this, the embodiment of the present invention has been designed to provide imaged image transmission method and device, pass through detection The volume of transmitted data of transmission medium and the resolution ratio etc. for reducing imaged image to be transmitted improve transmission medium and to be transmitted Imaged image matching degree, consequently facilitating getting the video image of complete display in image receiving terminal.
In a first aspect, an embodiment of the present invention provides imaged image transmission methods, including:
When receiving image transmission request triggering, image transmitting terminal detects the data for the transmission medium being attached thereto in real time Transmission quantity;
Image transmitting terminal transfers image data corresponding with imaged image transmission triggering from the data storage end;
Image transmitting terminal extracts foreground resolution value, main body resolution value and the background resolution value of image data respectively;
Image transmitting terminal compares foreground resolution value, the size of main body resolution value and background resolution value;
Resolution value is more than foreground resolution value based on the result of the comparison, and, main body resolution value is more than background point When resolution value, image transmitting terminal sets image data to image data to be transmitted;
Every frame image in image data to be transmitted is divided into multiple images block by image transmitting terminal, wherein Mei Getu Picture point as including different colours in block, and, each image block is the matrix-block of n*n;
The size of the image transmitting terminal pixel of more current volume of transmitted data and image block frame by frame;
When volume of transmitted data is less than the size of pixel, image transmitting terminal calculates the difference between volume of transmitted data and pixel Value;
In the more each image block of image transmitting terminal the type of the picture point of included color number;
The minimum image block of type that image transmitting terminal gets colors, reduces the pixel of the image block selected, and, it calculates The reduction amount of the pixel of image block;
Image transmitting terminal compares the size of reduction amount and difference;
When reduction amount and difference it is equal in magnitude when, image transmitting terminal preserves the image of the pixel to match with reduction amount Block;
The image block that the minimum image block of the type of color is updated to preserve by image transmitting terminal;
The image block of not updated image block and preservation is put into transmission medium and is transmitted by image transmitting terminal.
With reference to first aspect, an embodiment of the present invention provides the first possible embodiments of first aspect, wherein shadow As every frame image in image data to be transmitted is divided into multiple images block by transmitting terminal, wherein wrapped in each image block The picture point of different colours is included, and, each image block is the matrix-block of n*n, including:
Image data to be transmitted is divided into multiple image by image transmitting terminal as unit of frame;
Image transmitting terminal will be divided into multiple matrix form image blocks per frame image, wherein include not in each image block With the picture point of color;
Each image block is divided into the matrix-block of n*n by image transmitting terminal, wherein the numberical range of n is positive integer;
Image transmitting terminal extracts the corresponding color of each matrix form image picture point in the block;
When the type of the color of matrix form image picture point in the block is one, image transmitting terminal adjusts matrix form image block Length and width so that the type of the color of matrix form image picture point in the block is at least two kinds.
The possible embodiment of with reference to first aspect the first, an embodiment of the present invention provides second of first aspect Possible embodiment, wherein the size of the image transmitting terminal pixel of more current volume of transmitted data and image block frame by frame, packet It includes:
Image transmitting terminal calculates volume of transmitted data of the transmission medium within the unit interval;
Image transmitting terminal calculates the size of the pixel of each matrix form image block;
The size of image the transmitting terminal pixel and volume of transmitted data of more each matrix form image block one by one.
The possible embodiment of with reference to first aspect the first, an embodiment of the present invention provides the third of first aspect Possible embodiment, wherein method further includes:
When the minimum number of species of the color of matrix form image picture point in the block are identical, image transmitting terminal is number of species Identical matrix form image block setting declines weights;
Image transmitting terminal counts the number of the identical matrix form image block of number of species;
Image transmitting terminal is set as the inverse of number by weights are declined;
The identical matrix form image block of number of species is chosen, image transmitting terminal reduces the matrix form image block selected respectively Pixel, until reduction amount and decline weights sum be equal to difference until.
The third possible embodiment with reference to first aspect, an embodiment of the present invention provides the 4th kind of first aspect Possible embodiment, wherein method further includes:
When reduction amount, which reaches, reduces threshold value, image transmitting terminal compares the size of difference and reduction amount;
When difference is more than reduction amount, image transmitting terminal chooses matrix form image corresponding with pre-set background image Block;
Image transmitting terminal reduces the pixel of the corresponding matrix form image block of pre-set background image, and, get the back of the body Scape reduction amount;
When reduction amount and background reduction amount and with difference equal in magnitude, image transmitting terminal preserves and background reduction amount The corresponding matrix form image block of background image of the pixel to match.
The third possible embodiment with reference to first aspect, an embodiment of the present invention provides the 5th kind of first aspect Possible embodiment, wherein method further includes:
When resolution value is more than or equal to foreground resolution value based on the result of the comparison, image transmitting terminal is by image Data are set as the image data not transmitted;
When main body resolution value is more than or equal to background resolution value, image data is set as not passing by image transmitting terminal Defeated image data.
With reference to first aspect, an embodiment of the present invention provides the 6th kind of possible embodiments of first aspect, wherein shadow As the transmission medium between receiving terminal and image transmitting terminal includes one kind in cable or electronic circuit.
Second aspect, an embodiment of the present invention provides imaged image transmitting devices, including:
Volume of transmitted data detection module, for when receiving image transmission request triggering, image transmitting terminal to detect in real time The volume of transmitted data for the transmission medium being attached thereto;
Image data transfers module, is transferred from the data storage end with imaged image transmission triggering relatively for image transmitting terminal The image data answered;
Resolution value extraction module extracts foreground resolution value, the main body point of image data for image transmitting terminal respectively Resolution value and background resolution value;
Resolution value comparison module compares foreground resolution value, main body resolution value and background point for image transmitting terminal The size of resolution value;
Transmit setting module, for based on the result of the comparison resolution value be more than foreground resolution value, and, main body point When resolution value is more than background resolution value, image transmitting terminal sets image data to image data to be transmitted;
Every frame image in image data to be transmitted is divided into multiple by image block division module for image transmitting terminal Image block, wherein include the picture point of different colours in each image block, and, each image block is the matrix-block of n*n;
Pixel comparison module, for the big of the image transmitting terminal pixel of more current volume of transmitted data and image block frame by frame It is small;
Difference calculating module is used for when volume of transmitted data is less than the size of pixel, and image transmitting terminal calculates data transmission Difference between amount and pixel;
Color comparison module, the type of the picture point for color included in the more each image block of image transmitting terminal How much;
Pixel reduces module, and the minimum image block of the type to get colors for image transmitting terminal reduces the figure selected As the pixel of block, and, calculate the reduction amount of the pixel of image block;
Residual quantity comparison module compares the size of reduction amount and difference for image transmitting terminal;
Image block preserving module, for when reduction amount and difference it is equal in magnitude when, image transmitting terminal preserves and reduction amount The image block of the pixel to match;
Image block update module, the image for being updated to preserve by the minimum image block of the type of color for image transmitting terminal Block;
The image block of not updated image block and preservation is put into transmission medium by transmission module for image transmitting terminal In be transmitted.
The third aspect, the embodiment of the present invention also provide a kind of terminal, including memory and processor, and memory is for depositing Storage supports processor to execute the program for the imaged image transmission method that above-mentioned aspect provides, and processor is configurable for executing and deposit The program stored in reservoir.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, computer readable storage medium On be stored with computer program, when computer program is run by processor execute any of the above-described method the step of.
Imaged image transmission method and device provided in an embodiment of the present invention, wherein the imaged image transmission method includes: When receiving image transmission request triggering, image transmitting terminal detects the volume of transmitted data for the transmission medium being attached thereto in real time, Image transmitting terminal transfers image data corresponding with imaged image transmission triggering from the data storage end, and image transmitting terminal carries respectively Foreground resolution value, main body resolution value and the background resolution value of image data, image transmitting terminal is taken to compare foreground resolution Value, the size of main body resolution value and background resolution value, resolution value is more than foreground resolution based on the result of the comparison Value, also, main body resolution value be more than background resolution value when, image transmitting terminal sets image data to image to be transmitted Every frame image in image data to be transmitted is divided into multiple images block by data, image transmitting terminal, wherein each image block In include the picture points of different colours, also, each image block is the matrix-block of n*n, and image transmitting terminal is relatively more current frame by frame Volume of transmitted data and image block pixel size, when volume of transmitted data be less than pixel size when, image transmitting terminal calculate Difference between volume of transmitted data and pixel, the type of the picture point of included color in the more each image block of image transmitting terminal Number, the minimum image block of type that image transmitting terminal gets colors reduces the pixel of the image block selected, also, counts The reduction amount of the pixel of image block is calculated, image transmitting terminal compares the size of reduction amount and difference, when the size of reduction amount and difference When equal, image transmitting terminal preserves the image block of the pixel to match with reduction amount, and image transmitting terminal is minimum by the type of color Image block be updated to the image block preserved, not updated image block and the image block of preservation be put into biography by image transmitting terminal It is transmitted in defeated medium, by above-mentioned processing procedure, realizes the processing of the resolution ratio to image data to be transmitted, and lead to The volume of transmitted data for crossing detection transmission medium, realizes of the volume of transmitted data of image data and transmission medium to be transmitted Match, under the premise of ensureing viewing quality, realize matching transmission of the imaged image in transmission medium, easily and effectively.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages are in specification, claims And specifically noted structure is realized and is obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, in being described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, other drawings may also be obtained based on these drawings.
Fig. 1 shows the flow chart for the imaged image transmission method that the embodiment of the present invention is provided;
Fig. 2 shows the connection figures for the imaged image transmitting device that the embodiment of the present invention is provided;
Fig. 3 shows the structural framing figure for the imaged image transmitting device that the embodiment of the present invention is provided;
Fig. 4 shows the structure connection figure for the imaged image transmitting device that the embodiment of the present invention is provided.
Icon:1- volume of transmitted data detection modules;2- image datas transfer module;3- resolution value extraction modules;4- points Resolution value comparison module;5- transmits setting module;6- image block division modules;7- pixel comparison modules;8- difference calculating modules; 9- color comparison modules;10- pixels reduce module;11- residual quantity comparison modules;12- image block preserving modules;13- image blocks are more New module;14- transmission modules.
Specific implementation mode
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, the detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit claimed invention below Range, but it is merely representative of the selected embodiment of the present invention.Based on the embodiment of the present invention, those skilled in the art are not doing The every other embodiment obtained under the premise of going out creative work, shall fall within the protection scope of the present invention.
Currently, in transmission process, the imaged image data of above-mentioned diversified forms need by transmission medium (for example, cable, Electronic circuit etc.) it is propagated.Since the specification of transmission medium is relatively more fixed, can not flexibly be adjusted after installation is completed It is whole.Therefore, imaged image data inevitably will appear obstruction in transmission process, i.e. the imaged image data of current transmission are excessive, And the volume of transmitted data of matched transmission medium is too small etc., to cause imaged image data to occur in transmission process The phenomenon that congestion, even packet loss, and then cause image demonstration apparatus imperfect after receiving above-mentioned imaged image data, into And above-mentioned imaged image data can not be played by leading to not the image for watching complete display or even image demonstration apparatus, study carefully it The reason is that, imaged image data can not be effectively matched in transmission process with transmission medium.
Based on this, an embodiment of the present invention provides imaged image transmission method and devices, are retouched below by embodiment It states.
Embodiment 1
Referring to Fig. 1, Fig. 2 and Fig. 3, the imaged image transmission method that the present embodiment proposes specifically includes following steps:
Step S101:When receiving image transmission request triggering, image transmitting terminal detects the transmission being attached thereto in real time The volume of transmitted data of medium is provided with transmission medium, i.e. image in implementation process between image transmitting terminal and image receiving terminal Image is transmitted by transmission medium, and the trigger condition of transmission is that the image transmission request that user terminal is sent out triggers (for example, pressing Key triggering, point touch-control etc.), in the present embodiment, the transmission medium between image receiving terminal and image transmitting terminal includes cable Or one kind in electronic circuit, cable usually apply to the transmission of relatively remote and larger capacity imaged image, electric wire Road usually applies to the transmission of closer distance and the imaged image compared with low capacity.
Step S102:Image transmitting terminal transfers image number corresponding with imaged image transmission triggering from the data storage end According to when receiving the image transmission request triggering that user terminal is sent out, image transmitting terminal transfers corresponding image data first.
Step S103:Image transmitting terminal extracts foreground resolution value, main body resolution value and the background of image data respectively Resolution value, since image data is divided into foreground, main body and background, therefore, in order to effectively identify the important of image data Property, in the present embodiment, foreground resolution value, main body resolution value and the background resolution value of image data are extracted respectively.
Step S104:Image transmitting terminal compares foreground resolution value, the size of main body resolution value and background resolution value, I.e. by comparing foreground resolution value, main body resolution value and background resolution value, where partly accounting for for the image data judged Proportion it is bigger.
Step S105:Resolution value is more than foreground resolution value, also, main body resolution value based on the result of the comparison When more than background resolution value, image transmitting terminal sets image data to image data to be transmitted, based on comparison result When body resolution value is more than foreground resolution value and background resolution value, illustrate the resolution that the main part of the image data occupies Rate value is larger, and then it is important to be inferred to the image data.
Step S106:Every frame image in image data to be transmitted is divided into multiple images block by image transmitting terminal, will The purpose that multiple images block is divided into per frame image is the composition for more refined image, needs exist for illustrating, The picture point for including different colours in each image block, can be more fine by the acquisition of the picture point of different colours in image block The feature for considering image data to be transmitted, also, each image block is the matrix-block of n*n, i.e., each image block is Square, convenient for calculating.
Step S107:The size of the image transmitting terminal pixel of more current volume of transmitted data and image block frame by frame, in order to It detects whether image data to be transmitted matches with the volume of transmitted data of current transmission medium, can effectively avoid volume of transmitted data When too small and the image block to be transmitted pixel is too small, the phenomenon that the image lost block of appearance.
Step S108:When volume of transmitted data is less than the size of pixel, image transmitting terminal calculates volume of transmitted data and pixel Between difference illustrate that current transmission medium is insufficient to supply image block when volume of transmitted data is less than the size of pixel Transmission, in the present embodiment, needs the pixel size of further reduction image block.
Step S109:In the more each image block of image transmitting terminal the type of the picture point of included color number, In this case, the type of the picture point of color included in the more each image block of image transmitting terminal number, that is, compare and work as The importance of each image block in preceding image data.
Step S110:The minimum image block of type that image transmitting terminal gets colors, that is, select most unessential image Block carries out the reduction of resolution ratio, so as to effectively keep the integrality of former image data, specifically, reducing the image selected The pixel of block, also, calculate the reduction amount of the pixel of image block.
Step S111:Image transmitting terminal compares the size of reduction amount and difference, when the reduction operation for carrying out above-mentioned resolution ratio Afterwards, the size for comparing reduction amount and difference, to avoid the reduction of unnecessary more resolution ratio is carried out to image block.
Step S112:When reduction amount and difference it is equal in magnitude when, at this point, image data to be transmitted is situated between with current transmission The volume of transmitted data of matter just matches, and image transmitting terminal preserves the image block of the pixel to match with reduction amount.
Step S113:Image transmitting terminal by the minimum image block of the type of color be updated to preserve image block, i.e., with The image block for the pixel that reduction amount matches replaces original image block.
Step S114:Image transmitting terminal by not updated image block and the image block of preservation be put into transmission medium into Entire image data is sent into transmission medium and is transmitted by row transmission.
Every frame image in image data to be transmitted is divided into multiple images block by above-mentioned steps image transmitting terminal, In, the picture point of different colours is included in each image block, and, each image block is the matrix-block of n*n, including:
Step S1021:Image data to be transmitted is divided into multiple image by image transmitting terminal as unit of frame, due to waiting for The data volume of the image data of transmission is bigger, and is continuous dynamic.Therefore, it is divided into multiframe figure as unit of frame Picture.
Step S1022:Image transmitting terminal will be divided into multiple matrix form image blocks per frame image, need to illustrate It is to include the picture point of different colours in each image block, the principle for dividing image block in this way is to ensure in each image block extremely Include less 2 kinds of different colors, to be distinguished with simple color background.
Step S1023:Each image block is divided into the matrix-block of n*n by image transmitting terminal, in the present embodiment, the number of n Value ranging from positive integer, it is preferred that the value of n is 4, and it is succinct convenient to calculate.
Step S1024:Image transmitting terminal extracts the corresponding color of each matrix form image picture point in the block, to check image The type of color in the block.
Step S1025:When the type of the color of matrix form image picture point in the block is one, image transmitting terminal adjusts square The length and width of configuration image block, so that the type of the color of matrix form image picture point in the block is at least two kinds.
The size of the above-mentioned steps image transmitting terminal pixel of more current volume of transmitted data and image block frame by frame is specific to wrap It includes:
Step S1031:Image transmitting terminal calculates volume of transmitted data of the transmission medium within the unit interval, i.e., is passed by calculating Volume of transmitted data in the unit interval of defeated medium weighs the load of transmission medium, especially in network transmission process, together One transmission medium can be influenced by different network environments, therefore, calculate the prison that volume of transmitted data can be more vivid in real time Measure the volume of transmitted data of transmission medium.
Step S1032:Image transmitting terminal calculates the size of the pixel of each matrix form image block, passes through each image block The size of pixel calculates to judge the size of image data.
Step S1033:The size of image the transmitting terminal pixel and volume of transmitted data of more each matrix form image block one by one, By uniformly comparing for the size with volume of transmitted data, the sizes values of the pixel of matrix form image block can be compared.
In addition, imaged image transmission method further includes:
(1) when the minimum number of species of the color of matrix form image picture point in the block are identical, image transmitting terminal is type Quantity identical matrix form image block setting declines weights, in specific implementation process, usually decline the size settings of weights with The number of the identical matrix form image block of number of species is related.
(2) number of the identical matrix form image block of image transmitting terminal statistics number of species, i.e., the sum of this kind image block.
(3) image transmitting terminal sets decline weights to the inverse of number, for example, when sum is five, declines weights and sets It is set to 1/5th, i.e., 20%.
(4) the identical matrix form image block of number of species is chosen, image transmitting terminal reduces the matrix form figure selected respectively As the pixel of block, until the sum of reduction amount and decline weights is equal to difference.
In addition, imaged image transmission method further includes:
(1) in order to effectively avoid the resolution value of image block too low the case where causing image that can not use from occurring, work as reduction When amount reaches reduction threshold value, image transmitting terminal compares the size of difference and reduction amount.
(2) when difference is more than reduction amount, image transmitting terminal chooses matrix form corresponding with pre-set background image Image block, in this case, the resolution value of image data decline excessively, still cannot be satisfied use condition, therefore, image hair Sending end chooses matrix form image block corresponding with pre-set background image.
(3) image transmitting terminal reduces the pixel of the corresponding matrix form image block of pre-set background image, also, obtains To its background reduction amount.Meet the requirement of transmission by the reduction of the resolution value of background image.
(4) when reduction amount and background reduction amount and with difference equal in magnitude, image transmitting terminal is preserved to drop with background The corresponding matrix form image block of background image for the pixel that low amounts matches, to realize that the matching of imaged image is sent.
In addition, imaged image transmission method further includes:
(1) when resolution value is more than or equal to foreground resolution value based on the result of the comparison, image transmitting terminal will Image data is set as the image data not transmitted, i.e. the main body resolution value by comparing discovery image data is smaller, explanation The importance of the image data is poor.
(2) when main body resolution value is more than or equal to background resolution value, image transmitting terminal sets image data to The image data not transmitted.I.e. by comparing finding that the main body resolution value of image data is smaller, illustrate the weight of the image data The property wanted is poor.In the case of above-mentioned (1) and (2), image data that image data is set as not transmitting.Abandon the frame shadow As the transmission of data.
In conclusion imaged image transmission method provided in this embodiment includes:It is triggered when receiving image transmission request When, image transmitting terminal detects the volume of transmitted data for the transmission medium being attached thereto in real time, and image transmitting terminal is from the data storage end tune Image data corresponding with imaged image transmission triggering, image transmitting terminal is taken to extract the foreground resolution of image data respectively Value, main body resolution value and background resolution value, image transmitting terminal compare foreground resolution value, main body resolution value and background point The size of resolution value, resolution value is more than foreground resolution value based on the result of the comparison, also, main body resolution value is more than When background resolution value, image transmitting terminal sets image data to image data to be transmitted, and image transmitting terminal will be to be transmitted Image data in every frame image be divided into multiple images block, need exist for illustrating, be wrapped in each image block Include the picture point of different colours, also, each image block is the matrix-block of n*n, image transmitting terminal more current data frame by frame The size of the pixel of transmission quantity and image block, when volume of transmitted data is less than the size of pixel, image transmitting terminal calculates data and passes Difference between throughput rate and pixel, the type of the picture point of included color is more in the more each image block of image transmitting terminal Lack, the minimum image block of the type that image transmitting terminal gets colors reduces the pixel of the image block selected, also, calculates figure As the reduction amount of the pixel of block, image transmitting terminal compares the size of reduction amount and difference, equal in magnitude when reduction amount and difference When, image transmitting terminal preserves the image block of the pixel to match with reduction amount, and image transmitting terminal is by the minimum figure of the type of color As block is updated to the image block preserved, not updated image block and the image block of preservation are put into transmission and are situated between by image transmitting terminal It is transmitted in matter.By above-mentioned processing procedure, the processing of the resolution ratio to image data to be transmitted is realized, and passes through inspection The volume of transmitted data for surveying transmission medium, realizes the matching of the volume of transmitted data of image data and transmission medium to be transmitted, from And under the premise of ensureing viewing quality, matching transmission of the imaged image in transmission medium is realized, easily and effectively.
Embodiment 2
Referring to Fig. 4, present embodiments providing imaged image transmitting device includes:Volume of transmitted data detection module 1, for working as When receiving image transmission request triggering, image transmitting terminal detects the volume of transmitted data for the transmission medium being attached thereto in real time;Shadow As data transfer module 2, image corresponding with imaged image transmission triggering is transferred from the data storage end for image transmitting terminal Data;Resolution value extraction module 3 extracts the foreground resolution value of image data respectively for image transmitting terminal, main body is differentiated Rate value and background resolution value;Resolution value comparison module 4 compares foreground resolution value for image transmitting terminal, main body is differentiated The size of rate value and background resolution value;Transmit setting module 5, for based on the result of the comparison resolution value be more than foreground Resolution value, and, when main body resolution value is more than background resolution value, image data is set as to be transmitted by image transmitting terminal Image data;Every frame image in image data to be transmitted is divided into more by image block division module 6 for image transmitting terminal A image block, wherein include the picture point of different colours in each image block, and, each image block is the matrix-block of n*n; Pixel comparison module 7, the size for the image transmitting terminal pixel of more current volume of transmitted data and image block frame by frame;Difference Computing module 8 is used for when volume of transmitted data is less than the size of pixel, and image transmitting terminal calculates between volume of transmitted data and pixel Difference;Color comparison module 9, the type of the picture point for color included in the more each image block of image transmitting terminal How much;Pixel reduces module 10, and the minimum image block of the type to get colors for image transmitting terminal reduces the image selected The pixel of block, and, calculate the reduction amount of the pixel of image block;Residual quantity comparison module 11 compares reduction amount for image transmitting terminal With the size of difference;Image block preserving module 12, for when reduction amount and difference it is equal in magnitude when, image transmitting terminal preserve with The image block for the pixel that reduction amount matches;Image block update module 13, for image transmitting terminal that the type of color is minimum Image block is updated to the image block preserved;Transmission module 14 is used for image transmitting terminal by not updated image block and preservation Image block is put into transmission medium and is transmitted.
Imaged image transmitting device provided in an embodiment of the present invention, the imaged image transmission method provided with above-described embodiment Technical characteristic having the same reaches identical technique effect so can also solve identical technical problem.
The embodiment of the present invention additionally provides a kind of terminal, including memory and processor, and memory is supported for storing Processor executes the program of above-described embodiment method, and processor is configurable for executing the program stored in memory.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, when computer program is run by processor the step of the method for execution any of the above-described.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight Point explanation is all difference from other examples, and the same or similar parts between the embodiments can be referred to each other. The imaged image transmission method and device that the embodiment of the present invention is provided, the technique effect and aforementioned side of realization principle and generation Method embodiment is identical, and to briefly describe, device embodiment part does not refer to place, can refer in corresponding in preceding method embodiment Hold.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart in attached drawing and block diagram Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part for the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that at some as in the realization method replaced, the function of being marked in box can also be to be different from The sequence marked in attached drawing occurs.For example, two continuous boxes can essentially be basically executed in parallel, they are sometimes It can execute in the opposite order, this is depended on the functions involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use function or the dedicated base of action as defined in executing It realizes, or can be realized using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each function module or unit in each embodiment of the present invention can integrate and to form an independence Part, can also be modules individualism, can also two or more modules be integrated to form an independent portion Point.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence, can not be interpreted as indicating or implying relative importance.Moreover, term " packet Include ", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion so that including the mistake of a series of elements Journey, method, article or equipment include not only those elements, but also include other elements that are not explicitly listed, either Further include for elements inherent to such a process, method, article, or device.In the absence of more restrictions, by sentence The element that "including a ..." limits, it is not excluded that also deposit in the process, method, article or apparatus that includes the element In other identical element.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should be noted that:Similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and is explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. imaged image transmission method, which is characterized in that including:
When receiving image transmission request triggering, image transmitting terminal detects the data transmission for the transmission medium being attached thereto in real time Amount;
The image transmitting terminal transfers image data corresponding with imaged image transmission triggering from the data storage end;
The image transmitting terminal extracts foreground resolution value, main body resolution value and the background resolution ratio of the image data respectively Value;
The image transmitting terminal foreground resolution value, the main body resolution value and the background resolution value it is big It is small;
When result of the comparison be the main body resolution value be more than the foreground resolution value, and, the main body resolution value is big When the background resolution value, the image transmitting terminal sets the image data to image data to be transmitted;
Every frame image in the image data to be transmitted is divided into multiple images block by the image transmitting terminal, wherein every Include the picture point of different colours in a described image block, and, each described image block is the matrix-block of n*n;
The size of the image transmitting terminal pixel of the more current volume of transmitted data and described image block frame by frame;
When the volume of transmitted data is less than the size of the pixel, the image transmitting terminal calculates the volume of transmitted data and institute State the difference between pixel;
In the more each described image block of image transmitting terminal the type of the picture point of included color number;
The minimum described image block of type that the image transmitting terminal chooses the color, reduces the described image block selected Pixel, and, calculate the reduction amount of the pixel of described image block;
The size of image the transmitting terminal reduction amount and the difference;
When the reduction amount and the difference it is equal in magnitude when, the image transmitting terminal, which is preserved, to match with the reduction amount The described image block of pixel;
The minimum image block of the type of the color is updated to the image block of the preservation by the image transmitting terminal;
The image block of not updated described image block and the preservation is put into the transmission medium by the image transmitting terminal In be transmitted.
2. imaged image transmission method according to claim 1, which is characterized in that the image transmitting terminal will be described to be passed Every frame image in defeated image data is divided into multiple images block, wherein includes different colours in each described image block Picture point, and, each described image block is the matrix-block of n*n, including:
The image data to be transmitted is divided into multiple image by the image transmitting terminal as unit of frame;
The image transmitting terminal will be divided into multiple matrix form image blocks per frame described image, wherein in each described image block Include the picture point of different colours;
Each described image block is divided into the matrix-block of n*n by the image transmitting terminal, wherein the numberical range of n is positive integer;
The image transmitting terminal extracts the corresponding color of each matrix form image picture point in the block;
When the type of the color of the matrix form image picture point in the block is one, the image transmitting terminal adjusts the matrix The length and width of formula image block, so that the type of the color of the matrix form image picture point in the block is at least two kinds.
3. imaged image transmission method according to claim 2, which is characterized in that the image transmitting terminal compares frame by frame works as The size of the pixel of the preceding volume of transmitted data and described image block, including:
The image transmitting terminal calculates volume of transmitted data of the transmission medium within the unit interval;
The image transmitting terminal calculates the size of the pixel of each matrix form image block;
The image transmitting terminal compares the size of the pixel and the volume of transmitted data of each matrix form image block one by one.
4. imaged image transmission method according to claim 2, which is characterized in that the method further includes:
When the minimum number of species of the color of the matrix form image picture point in the block are identical, the image transmitting terminal is described The identical matrix form image block setting of number of species declines weights;
The image transmitting terminal counts the number of the identical matrix form image block of the number of species;
The image transmitting terminal sets the decline weights to the inverse of the number;
Choose the identical matrix form image block of the number of species, the image transmitting terminal reduce respectively select it is described The pixel of matrix form image block, until the sum of the reduction amount and decline weights is equal to the difference.
5. imaged image transmission method according to claim 4, which is characterized in that the method further includes:
When the reduction amount, which reaches, reduces threshold value, the size of image the transmitting terminal difference and the reduction amount;
When the difference is more than the reduction amount, the image transmitting terminal chooses institute corresponding with pre-set background image State matrix form image block;
The image transmitting terminal reduces the pixel of the corresponding matrix form image block of the pre-set background image, and, it obtains To background reduction amount;
When the reduction amount and the background reduction amount and with the difference equal in magnitude, the image transmitting terminal preserves Matrix form image block corresponding with the background image of pixel that the background reduction amount matches.
6. imaged image transmission method according to claim 4, which is characterized in that the method further includes:
When result of the comparison is that the main body resolution value is more than or equal to the foreground resolution value, the image is sent End sets the image data to the image data not transmitted;
When the main body resolution value is more than or equal to the background resolution value, the image transmitting terminal is by the image number According to the image data for being set as not transmitting.
7. imaged image transmission method according to claim 1, which is characterized in that image receiving terminal is sent with the image The transmission medium between end includes one kind in cable or electronic circuit.
8. imaged image transmitting device, which is characterized in that including:
Volume of transmitted data detection module, for when receiving image transmission request triggering, the detection in real time of image transmitting terminal to be therewith The volume of transmitted data of connected transmission medium;
Image data transfers module, transfers to transmit with the imaged image from the data storage end for the image transmitting terminal and trigger Corresponding image data;
Resolution value extraction module extracts foreground resolution value, the master of the image data for the image transmitting terminal respectively Body resolution value and background resolution value;
Resolution value comparison module, for the image transmitting terminal foreground resolution value, the main body resolution value With the size of the background resolution value;
Setting module is transmitted, for being more than the foreground resolution value when result of the comparison for the main body resolution value, and, institute When stating main body resolution value more than the background resolution value, the image data is set as to be transmitted by the image transmitting terminal Image data;
Every frame image in the image data to be transmitted is divided by image block division module for the image transmitting terminal Multiple images block, wherein include the picture point of different colours in each described image block, and, each described image block is n*n Matrix-block;
Pixel comparison module, for the image transmitting terminal more current volume of transmitted data and described image block frame by frame The size of pixel;
Difference calculating module is used for when the volume of transmitted data is less than the size of the pixel, and the image transmitting terminal calculates Difference between the volume of transmitted data and the pixel;
Color comparison module, the kind of the picture point for color included in the more each described image block of the image transmitting terminal The number of class;
Pixel reduces module, and the minimum described image block of the type for choosing the color for the image transmitting terminal reduces choosing The pixel of the described image block of taking-up, and, calculate the reduction amount of the pixel of described image block;
Residual quantity comparison module is used for the size of the image transmitting terminal reduction amount and the difference;
Image block preserving module, for when the reduction amount and the difference it is equal in magnitude when, the image transmitting terminal preserves The described image block of the pixel to match with the reduction amount;
The minimum image block of the type of the color is updated to the guarantor by image block update module for the image transmitting terminal The image block deposited;
The image block of not updated described image block and the preservation is put by transmission module for the image transmitting terminal It is transmitted in the transmission medium.
9. a kind of terminal, which is characterized in that including memory and processor, the memory supports processor to hold for storing The program of any one of row claim 1 to 7 the method, the processor are configurable for executing and be stored in the memory Program.
10. a kind of computer readable storage medium, it is stored with computer program on computer readable storage medium, feature exists In when computer program is run by processor the step of any one of execution the claims 1 to 7 the method.
CN201810218305.8A 2018-03-16 2018-03-16 Image transmission method and device Active CN108366245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810218305.8A CN108366245B (en) 2018-03-16 2018-03-16 Image transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810218305.8A CN108366245B (en) 2018-03-16 2018-03-16 Image transmission method and device

Publications (2)

Publication Number Publication Date
CN108366245A true CN108366245A (en) 2018-08-03
CN108366245B CN108366245B (en) 2020-09-11

Family

ID=63000443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810218305.8A Active CN108366245B (en) 2018-03-16 2018-03-16 Image transmission method and device

Country Status (1)

Country Link
CN (1) CN108366245B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422807A (en) * 2022-03-28 2022-04-29 麒麟软件有限公司 Transmission optimization method based on Spice protocol
CN115623245A (en) * 2022-12-19 2023-01-17 檀沐信息科技(深圳)有限公司 Image processing method and device in live video and computer equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996345A (en) * 2005-12-31 2007-07-11 朝阳影像科技股份有限公司 Articles detection system and method therefor
CN102348116A (en) * 2010-08-03 2012-02-08 株式会社理光 Video processing method, video processing device and video processing system
CN103458220A (en) * 2012-06-04 2013-12-18 联想(北京)有限公司 Image processing method and electronic equipment
CN104322065A (en) * 2012-06-28 2015-01-28 宇龙计算机通信科技(深圳)有限公司 Terminal and video image compression method
CN104954804A (en) * 2015-06-19 2015-09-30 苏州淘老外网络科技有限公司 Self-adaptive image resolution processing method
CN105635624A (en) * 2014-10-27 2016-06-01 华为技术有限公司 Video image processing method, device and system
CN107040794A (en) * 2017-04-26 2017-08-11 盯盯拍(深圳)技术股份有限公司 Video broadcasting method, server, virtual reality device and panoramic virtual reality play system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996345A (en) * 2005-12-31 2007-07-11 朝阳影像科技股份有限公司 Articles detection system and method therefor
CN102348116A (en) * 2010-08-03 2012-02-08 株式会社理光 Video processing method, video processing device and video processing system
CN103458220A (en) * 2012-06-04 2013-12-18 联想(北京)有限公司 Image processing method and electronic equipment
CN104322065A (en) * 2012-06-28 2015-01-28 宇龙计算机通信科技(深圳)有限公司 Terminal and video image compression method
CN105635624A (en) * 2014-10-27 2016-06-01 华为技术有限公司 Video image processing method, device and system
CN104954804A (en) * 2015-06-19 2015-09-30 苏州淘老外网络科技有限公司 Self-adaptive image resolution processing method
CN107040794A (en) * 2017-04-26 2017-08-11 盯盯拍(深圳)技术股份有限公司 Video broadcasting method, server, virtual reality device and panoramic virtual reality play system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422807A (en) * 2022-03-28 2022-04-29 麒麟软件有限公司 Transmission optimization method based on Spice protocol
CN115623245A (en) * 2022-12-19 2023-01-17 檀沐信息科技(深圳)有限公司 Image processing method and device in live video and computer equipment
CN115623245B (en) * 2022-12-19 2023-03-03 檀沐信息科技(深圳)有限公司 Image processing method and device in live video and computer equipment

Also Published As

Publication number Publication date
CN108366245B (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN109302619A (en) A kind of information processing method and device
CN108124184A (en) A kind of method and device of living broadcast interactive
CN109284784A (en) A kind of content auditing model training method and device for live scene video
CN108322788A (en) Advertisement demonstration method and device in a kind of net cast
CN110969170B (en) Image theme color extraction method and device and electronic equipment
CN105304002B (en) The detection method and device of LED display stitching error
CN108876935A (en) A kind of method and device quickly carrying out house threedimensional model splicing in mobile terminal
CN106302477A (en) A kind of net cast method of testing and system
US10068352B2 (en) Determining visibility of rendered content
CN110348519A (en) Financial product cheats recognition methods and the device of clique
CN108830093A (en) Management method, server and the terminal device of terminal device operating right
CN104994037A (en) Automatic distributing system and distributing method for bandwidth
CN108366245A (en) Imaged image transmission method and device
CN108961183A (en) Image processing method, terminal device and computer readable storage medium
CN108647264A (en) A kind of image automatic annotation method and device based on support vector machines
CN109784394A (en) A kind of recognition methods, system and the terminal device of reproduction image
CN108366244A (en) video image transmission method and device
CN108304839A (en) A kind of image processing method and device
CN110428368A (en) A kind of algorithm evaluation method, device, electronic equipment and readable storage medium storing program for executing
CN110990617B (en) Picture marking method, device, equipment and storage medium
CN109660508A (en) Data visualization method, electronic device, computer equipment and storage medium
CN106897890A (en) A kind of method and device for showing electronic gift information
CN109194942A (en) A kind of naked eye 3D video broadcasting method, terminal and server
CN108932703A (en) Image processing method, picture processing unit and terminal device
CN104519335A (en) Method, device and system for resizing original depth frame

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230626

Address after: 710000, Room 21008, 10th Floor, Unit 2, Building 2, No. 2, Shenglong Square, No. 80 Weiyang Road, Weiyang District, Xi'an City, Shaanxi Province

Patentee after: Xi'an Henghengguai Digital Technology Co.,Ltd.

Address before: 100000 building 17, No. 3, yanjingli middle street, Chaoyang District, Beijing (No. b182, Deqian Xinyuan incubator)

Patentee before: BEIJING VIRTUAL FILM TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right