CN110299967A - A kind of picture transmission method, device and storage medium - Google Patents

A kind of picture transmission method, device and storage medium Download PDF

Info

Publication number
CN110299967A
CN110299967A CN201910710808.1A CN201910710808A CN110299967A CN 110299967 A CN110299967 A CN 110299967A CN 201910710808 A CN201910710808 A CN 201910710808A CN 110299967 A CN110299967 A CN 110299967A
Authority
CN
China
Prior art keywords
picture
client
transmitted
cpu
real
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.)
Pending
Application number
CN201910710808.1A
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201910710808.1A priority Critical patent/CN110299967A/en
Publication of CN110299967A publication Critical patent/CN110299967A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/0864Round trip delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0882Utilisation of link capacity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00095Systems or arrangements for the transmission of the picture signal

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This specification embodiment provides a kind of picture transmission method, device and storage medium.The described method includes: obtaining picture to be transmitted, and determine current network bandwidth;According to the performance information of client, the real-time calculation power of the client cpu is calculated;The picture compression rate of the picture to be transmitted is determined according to the real-time calculation power of the current network bandwidth and the client cpu;By picture compression to be transmitted and client is transmitted to according to the picture compression rate.This specification embodiment can be under the conditions of not changing existing hardware, it is calculated by acquiring resource information in real time, being dynamically completed compression ratio, realize picture compression, to be optimized to whole image processing and transmission process, significantly reduce the network load in pictorial information transmission process, and cpu computing capability is made full use of, the timeliness of transmission process is reduced, request timed out is avoided.

Description

A kind of picture transmission method, device and storage medium
Technical field
This specification embodiment is related to field of computer technology, in particular to a kind of picture transmission method, device and storage Medium.
Background technique
With network communication and the development of smart machine, user is between the use mobile terminals such as mobile phone, ipad, movement It generally requires to carry out sending and receiving for picture between terminal and computer equipment, computer equipment, picture is carried out between equipment Send and receive and usually can such as be transmitted by connecting data line by wire transmission, but work as between equipment distance compared with It is remote or without data line in the case where can be then wirelessly transferred, such as Bluetooth transmission, wireless network transmissions.
However, device configuration reason etc., often occurring picture transfer process, delay is big to ask because of region network cause Topic.Equipment performance is strong, and network difference causes transmission time too long or even causes network timeout;Network condition is good, but equipment Performance difference causes transmission time too long.
Summary of the invention
The purpose of this specification embodiment is to provide a kind of picture transmission method, device and storage medium, to reduce picture Delay in transmission process.
To solve the above problems, it is this that this specification embodiment, which provides a kind of picture transmission method, device and storage medium, What sample was realized.
A kind of picture transmission method, which comprises obtain picture to be transmitted, and determine current network bandwidth;According to The performance information of client calculates the real-time calculation power of the client cpu;According to the current network bandwidth and the client The real-time calculation power of end cpu determines the picture compression rate of the picture to be transmitted;According to the picture compression rate by picture to be transmitted It compresses and is transmitted to client.
A kind of picture transfer device, described device include: the first determining module, for obtaining picture to be transmitted, and are determined Current network bandwidth;Computing module calculates the real-time calculation power of the client cpu for the performance information according to client; Second determining module, it is described to be transmitted for being determined according to the real-time calculation power of the current network bandwidth and the client cpu The picture compression rate of picture;Transmission module, for by picture compression to be transmitted and being transmitted to client according to the picture compression rate End.
A kind of computer readable storage medium is stored thereon with computer program instructions, the computer program instructions quilt It is realized when execution: obtaining picture to be transmitted, and determine current network bandwidth;According to the performance information of client, calculate described The real-time calculation power of client cpu;It is determined according to the real-time calculation power of the current network bandwidth and the client cpu described to be passed The picture compression rate of defeated picture;By picture compression to be transmitted and client is transmitted to according to the picture compression rate.
The technical solution provided by above this specification embodiment is as it can be seen that the picture transfer side that this specification embodiment provides Method, can be by obtaining picture to be transmitted, and determines current network bandwidth;According to the performance information of client, calculate described The real-time calculation power of client cpu;It is determined according to the real-time calculation power of the current network bandwidth and the client cpu described to be passed The picture compression rate of defeated picture;By picture compression to be transmitted and client is transmitted to according to the picture compression rate.This specification Embodiment can be calculated by acquiring resource information in real time, being dynamically completed compression ratio, be realized under the conditions of not changing existing hardware Picture compression significantly reduces in pictorial information transmission process to optimize to whole image processing and transmission process Network load, and cpu computing capability is made full use of, the timeliness of transmission process is reduced, request timed out is avoided.
Detailed description of the invention
In order to illustrate more clearly of this specification embodiment or technical solution in the prior art, below will to embodiment or Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only The some embodiments recorded in this specification, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of picture transmission method of this specification embodiment;
Fig. 2 is a kind of schematic diagram of picture transmission method business scenario of this specification embodiment;
Fig. 3 is a kind of flow chart of picture transmission method business scenario of this specification embodiment;
Fig. 4 is a kind of structure composition schematic diagram of picture transfer server of this specification embodiment;
Fig. 5 is a kind of functional block diagram of picture transfer device of this specification embodiment.
Specific embodiment
Below in conjunction with the attached drawing in this specification embodiment, the technical solution in this specification embodiment is carried out clear Chu is fully described by, it is clear that described embodiment is only this specification a part of the embodiment, rather than whole implementation Example.The embodiment of base in this manual, those of ordinary skill in the art are obtained without making creative work Every other embodiment, all should belong to this specification protection range.
In the present embodiment, the main body for executing the picture transmission method can be the electronics with logical operation function Equipment, the electronic equipment can be server or client, and the client can be desktop computer, tablet computer, notes This computer, smart phone, work station etc..Certainly, client is not limited to the above-mentioned electronic equipment with certain entity, may be used also Think the software run in above-mentioned electronic equipment.It can also be a kind of program software formed by program development, the program Software can be run in above-mentioned electronic equipment.
In existing picture transmission method, because of region network cause, device configuration reason etc. often makes picture transfer mistake Journey occurs postponing big problem.Equipment performance is strong, and network difference causes transmission time too long or even causes network timeout;Network item Part is good, but equipment performance difference causes transmission time too long.If equipment cpu is made full use of to calculate the feelings such as power and network bandwidth Condition, and balance using a kind of dynamic algorithm cpu and calculate power and network transmission, so that it is determined that the picture compression rate of picture transfer come into Row picture transfer avoids request timed out to reduce the timeliness of transmission process.
For this purpose, this specification embodiment provides a kind of picture transmission method, as shown in Figure 1, the method may include Following steps:
S110: picture to be transmitted is obtained, and determines current network bandwidth.
In some embodiments, it can store picture in the database of server, user can choose in database and store Picture transmitted, the picture that server selects user is as picture to be transmitted;The band transmission picture can also be use Family is uploaded to the picture of server by client, and user can specify the transmission address of picture after uploading pictures, clothes The picture that the available user of business device uploads is as picture to be transmitted;Server can also obtain to be passed according to any other mode Defeated picture, this specification embodiment are not construed as limiting this.
Above-mentioned network bandwidth refers to the data volume that can be transmitted within the unit time (generally referred to as 1 second), picture into During row network transmission, according to network bandwidth it is estimated that the speed of picture transfer.In some embodiments, Netowrk tape Width can be determined according to following steps.
Step 1: test picture being sent to client, and records the sending time of every frame image;
Step 2: receiving the response message of client feedback, and record receiving time;
Step 3: current network bandwidth is determined according to the sending time and receiving time.
Server before carrying out picture transfer, can to client send be used for test network situation picture, and with The mode of directly record sending time records every frame image and its sending time.Since client receives data by transmission sequence, Therefore in the reception event triggering of client end, a response message can be sent to server, when server receives client After holding the response message sent, current receiving time is recorded, and obtain data transmission two-way time, Yi Jitong using formula (1) It crosses formula (2) and current network bandwidth is calculated.
RTT=T2-T1 (1)
RTTs=(1- α) × RTTp+ α × RTT (2)
Wherein, T1 is the sending time of present frame, and T2 is receiving time, and RTT is the round-trip delay of present frame, and RTTp is Send frame average delay, α be the present frame round-trip delay and the average delay for having sent frame weight coefficient, RTTs is current network bandwidth.
In above-mentioned formula (2), α is the round-trip delay of the present frame and the weight of the average delay for having sent frame Coefficient, which controls the specific gravity of RTT and RTTp by α for judging network congestion degree, to determine the speed of picture transfer, If the value of RTT and RTTp is closer, indicate that the round-trip delay currently to pause is mainly subject in the judgement of network congestion degree;If α value indicates that the round-trip delay of present frame is mainly subject in the judgement of Congestion Level SPCC closer to 1;If α value indicates net closer to 0 The average delay for having sent frame is mainly subject in the judgement of network Congestion Level SPCC.Since network congestion is often paroxysmal, single frames The round-trip delay of present frame be not enough to represent the Congestion Level SPCC entirely transmitted.And the current network that formula (2) is calculated Bandwidth is for controlling data transmission rate, and after transmission rate decline, the round-trip delay of present frame can rise naturally, if α value It is excessive, it be easy to cause current network bandwidth fluctuating range larger, is unable to reach the effect of stability contorting transmission rate.Therefore it to obtain One relatively stable value of current network bandwidth.
S120: according to the performance information of client, the real-time calculation power of the client cpu is calculated.
It calculates power and is also referred to as Hash rate, be the linear module of bit coin network throughput, as cpu calculates hash function output Speed, calculating power is that the development of big data provides solid foundation guarantee, and the proposition of existing calculation power is given in the explosive growth of big data Huge challenge.During picture transfer, the cpu of receiving end calculates power difference, to the time of reception and the processing of picture Difference, in the identical situation of Network status, the cpu calculation power of receiving end is bigger, then to the time of the reception of picture and processing Also faster.Therefore, in this specification embodiment, need to calculate the real-time calculation power of client cpu.
In some embodiments, can according to the performance information of client, as client cpu frequency, cpu number of cores, Current cpu calculates the real-time calculation power of client cpu using accounting.Specifically, the real-time calculation power of client cpu can basis Following formula is calculated:
Power=F × A × (1-P) (3)
Wherein, Power is the real-time calculation power of the client cpu, and F is the cpu frequency, and A is nucleus number in the cpu Amount, P are that the current cpu uses accounting.
In some embodiments, itself available cpu frequency of client, cpu number of cores, current cpu use accounting, And the cpu frequency that will acquire, cpu number of cores, current cpu using accounting information are sent to server, server can carry out It receives, and the real-time calculation power of client cpu is calculated by formula (3);Client can also be according to itself cpu frequency, cpu Number of cores, current cpu use accounting, and are calculated the real-time calculation power of client cpu by formula (3), then by client The real-time calculation force information of cpu is sent to server.
In some embodiments, server can also pass through vmstat, cat/proc/ by disposing telnet tool The cpu frequency of the orders viewing client-side such as cpuinfo, cpu number of cores, current cpu use accounting, and are counted using formula (3) Calculate the real-time calculation power Power of cpu.Server can also obtain cpu frequency, the cpu kernel of client according to any other mode Quantity, current cpu are not construed as limiting this using accounting or the real-time calculation power of client cpu, this specification embodiment.
In some embodiments, since the service condition of client can change, current cpu is caused to change using accounting Become, so that the real-time calculation power of client cpu changes, it therefore, can be by continuously acquiring client in certain time The real-time calculation power of cpu obtains a more stable comprehensive calculation force value.
S130: the picture to be transmitted is determined according to the real-time calculation power of the current network bandwidth and the client cpu Picture compression rate.
In some embodiments, the picture compression rate of the picture to be transmitted can be determined according to the following formula:
T=f (Powera, RTTs, c) (4)
Wherein, Power is the real-time calculation power of the client cpu, and RTTs is current network bandwidth, and c is picture compression rate, T is transmission total time-consuming.
Specifically, in the case where the real-time calculation power of current network bandwidth and client cpu has determined, it is desirable to determine figure The total time-consuming of piece transmission then also needs to determine picture compression rate.Wherein, transmission total time-consuming includes that transmission is time-consuming and Compress softwares is time-consuming, In the case where network state is certain, since identical picture is compressed before transmission, the compression that different compression ratios obtains Picture is of different sizes afterwards, and wherein the more big then compressed picture of compression ratio is smaller, and transmission is time-consuming also fewer.Compress softwares is time-consuming It is then related with the real-time calculation power of client cpu, the compression algorithm of selection and compression ratio, therefore in the real-time calculation power of client cpu Value determine in the case where, and suitable compression algorithm selected according to the type of picture, picture compression rate it is smaller, then compress Decompression is time-consuming shorter.
In some embodiments, table 1 is please referred to, title, description and each compression that table 1 lists several compression algorithms are calculated The advantage and disadvantage of method, can be different according to the type of picture, select suitable compression algorithm.
Table 1
In above-mentioned formula (4), the real-time calculation power Power of current network bandwidth RTTs and client cpu are to have determined Constant, picture compression rate c and transmission total time-consuming T be variable, in this specification embodiment, it is desirable to the transmission total time-consuming of picture It is as small as possible, it is therefore desirable to adjust picture compression rate, determine that transmission total time-consuming value of picture compression rate in minimum is The picture compression rate of the picture to be transmitted.As shown in table 2, the picture file for giving a 5m is obtained according to calculated result Relationship in different schemes between parameter.
Table 2
As shown in Table 2, the total time-consuming that scheme three is finally calculated is minimum, therefore selects operational version three for best side Case.
S140: client by picture compression to be transmitted and is transmitted to according to the picture compression rate.
In some embodiments, the server can be requested according to the picture transfer of a client, to a client End transmission picture, can also request according to the picture transfer of multiple client, transmit picture to multiple client respectively.Multiple When client request picture transfer, business scenario as shown in Figure 2, the server can calculate separately each client cpu Real-time calculation power, and according to current network conditions, calculate separately transmission total time-consuming it is minimum when picture compression rate, and with different Picture compression rate compressed picture carries out picture transfer respectively.
Referring to Fig. 3, the server can be according to following steps come to figure when multiple client requests picture transfer Piece is transmitted.
S310: client performance value is calculated.
The server can also calculate the reality of each client cpu after the picture transfer request for receiving client When calculate power, and obtain a client performance value according to current network conditions.
S320: client packets.
In the present embodiment, the identical client of client performance value can be divided into one group.
S330: it is directed to the optimal picture compression rate of every group of calculating.
S340: picture compression is carried out by group.
In the present embodiment, picture can be compressed respectively according to every group of optimal picture compression rate.
S350: by group distribution picture.
It in the present embodiment, can be to the picture file of different packet distribution difference compression ratios.
It, can be by obtaining picture to be transmitted in this specification embodiment, and determine current network bandwidth;According to client Performance information, calculate the real-time calculation power of the client cpu;According to the current network bandwidth and the client cpu Real-time calculation power determine the picture compression rate of the picture to be transmitted;According to the picture compression rate by picture compression to be transmitted simultaneously It is transmitted to client, under the conditions of not changing existing hardware, is calculated by acquiring resource information in real time, being dynamically completed compression ratio, It realizes picture compression, to optimize to whole image processing and transmission process, significantly reduces pictorial information transmission process In network load, and make full use of cpu computing capability, reduce the timeliness of transmission process, avoid request timed out.
As shown in figure 4, this specification embodiment also provides a kind of picture transfer server, the server includes that resource is adopted Collect unit 410, data storage cell 420, intellectual analysis unit 430 and picture compression unit 440.
Wherein, the collection of resources unit 410 is used to receive the picture transfer solicited message of client, and acquires client Performance information, such as client cpu frequency, cpu number of cores, cpu use accounting information, or acquisition client according to oneself The client cpu that body cpu frequency, cpu number of cores, current cpu are calculated using accounting calculates the information of power in real time.
In some embodiments, itself available cpu frequency of client, cpu number of cores, current cpu use accounting, And the cpu frequency that will acquire, cpu number of cores, current cpu using accounting information are sent to picture transfer server, picture passes Collection of resources unit 410 in defeated server can be received;Client can also be according to nucleus number in itself cpu frequency, cpu Amount, current cpu use accounting, and are calculated the real-time calculation power of client cpu by formula (3), then by the reality of client cpu When calculate force information be sent to server, the collection of resources unit 410 in picture transfer server can be received.
In some embodiments, picture transfer server can also pass through vmstat, cat/ by disposing telnet tool The cpu frequency of the orders viewing client-side such as proc/cpuinfo, cpu number of cores, current cpu use accounting.Picture transfer clothes Business device can also be obtained according to any other mode the cpu frequency, cpu number of cores, current cpu of client using accounting or The real-time calculation power of client cpu, this specification embodiment are not construed as limiting this.
The data storage cell 420, the information acquired for storage resource acquisition unit 410.
The intellectual analysis unit 430, the information for being acquired according to storage resource acquisition unit 410, calculates client Hold the real-time calculation power of cpu.Wherein, the real-time calculation power of client cpu can be calculated by formula (3).
In some embodiments, since the service condition of client can change, current cpu is caused to change using accounting Become, so that the real-time calculation power of client cpu changes, it therefore, can be by continuously acquiring client in certain time The real-time calculation power of cpu obtains a more stable comprehensive calculation force value.
The intellectual analysis unit 430 is also used to determine network bandwidth according to following steps.
Step 1: test picture being sent to client, and records the sending time of every frame image;
Step 2: receiving the response message of client feedback, and record receiving time;
Step 3: current network bandwidth is determined according to the sending time and receiving time.
Picture transfer server server can send to client before carrying out picture transfer and be used for test network feelings The picture of condition, and every frame image and its sending time are recorded in a manner of directly recording sending time.Since client is by transmission Sequence receives data, therefore in the triggering of the reception event of client, can send a response message to picture transfer server, After picture transfer server receives the response message of client transmission, current receiving time is recorded, and obtain using formula (1) It is transmitted two-way time to data, and current network bandwidth is calculated by formula (2).
The intellectual analysis unit 430 can be also used for according to the current network bandwidth and the client being calculated The real-time calculation power of cpu determines the picture compression rate of the picture to be transmitted.
The intellectual analysis unit 430 can also will be calculated information and store to data storage cell 420.
The picture compression unit 440, the picture compression rate for being calculated according to the intellectual analysis unit 230, By picture compression to be transmitted and client will be transmitted to.
In some embodiments, the picture transfer server can be requested according to the picture transfer of a client, to One client transmissions picture can also be requested according to the picture transfer of multiple client, transmit scheme to multiple client respectively Piece.When multiple client requests picture transfer, business scenario as shown in Figure 2, the picture transfer server can be distinguished Calculate the real-time calculation power of each client cpu, and according to current network conditions, calculate separately transmission total time-consuming it is minimum when picture Compression ratio, and picture transfer is carried out respectively with different picture compression rate compressed pictures.
In some embodiments, when multiple client requests picture transfer, the picture transfer server is being received After the picture transfer request of client, the real-time calculation power of each client cpu can also be calculated, and obtain according to current network conditions It is divided into one group to a client performance value, and by the identical client of client performance value, for every group of optimal picture of calculating Compression ratio respectively compresses picture according to every group of optimal picture compression rate, to different packet distribution difference compression ratios Picture file.
This specification embodiment, under the conditions of not changing existing hardware, by acquiring resource information in real time, being dynamically completed pressure Scaling calculation realizes picture compression, to optimize to whole image processing and transmission process, significantly reduces pictorial information Network load in transmission process, and cpu computing capability is made full use of, the timeliness of transmission process is reduced, request timed out is avoided to send out It is raw.
This specification embodiment additionally provides a kind of computer readable storage medium of picture transmission method, the computer Readable storage medium storing program for executing is stored with computer program instructions, is performed realization in the computer program instructions: obtaining to be transmitted Picture, and determine current network bandwidth;According to the performance information of client, the real-time calculation power of the client cpu is calculated;Root The picture compression rate of the picture to be transmitted is determined according to the real-time calculation power of the current network bandwidth and the client cpu;Root By picture compression to be transmitted and client is transmitted to according to the picture compression rate.
In the present embodiment, above-mentioned storage medium includes but is not limited to random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), caching (Cache), hard disk (Hard DiskDrive, ) or storage card (Memory Card) HDD.The memory can be used for storing the computer program and/or module, described Memory can mainly include storing program area and storage data area, wherein storing program area can storage program area, at least one Application program needed for function (such as sound-playing function, text conversion function etc.) etc.;Storage data area can store according to Family terminal uses created data (such as audio data, text message data etc.) etc..In addition, memory may include height Fast random access memory can also include nonvolatile memory.In the present embodiment, the computer readable storage medium The function and effect of the program instruction specific implementation of storage, can compare explanation, details are not described herein with other embodiment.
Refering to Fig. 5, on software view, this specification embodiment additionally provides a kind of picture transfer device, device tool Body may include construction module below.
First determining module 510 for obtaining picture to be transmitted, and determines current network bandwidth.
Computing module 520 calculates the real-time calculation power of the client cpu for the performance information according to client
Second determining module 530, for being determined according to the real-time calculation power of the current network bandwidth and the client cpu The picture compression rate of the picture to be transmitted.
Transmission module 540, for by picture compression to be transmitted and being transmitted to client according to the picture compression rate.
In some embodiments, first determining module 510 further include: sending module, for picture transmission will to be tested To client, and record the sending time of every frame image;Receiving module for receiving the response message of client feedback, and is remembered Record receiving time;Network bandwidth determining module, for determining current network bandwidth according to the sending time and receiving time.
The picture transfer device that this specification embodiment provides, under the conditions of not changing existing hardware, by acquiring in real time Resource information is dynamically completed compression ratio calculating, realizes picture compression, to be optimized to whole image processing and transmission process, The network load in pictorial information transmission process is significantly reduced, and makes full use of cpu computing capability, reduces transmission process Timeliness avoids request timed out.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment it Between the same or similar part may refer to each other, the highlights of each of the examples are it is different from other embodiments it Place.For Installation practice and apparatus embodiments, since it is substantially similar to the method embodiment, so description Fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
Those skilled in the art may not need creative work and expect this specification after reading this specification file It some or all of enumerates embodiment and carries out any combination, these combinations are also in the range of this disclosure and protection.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example, Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit. Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development, And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL (Advanced Boolean Expression Language)、AHDL(AlteraHardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL (Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present Integrated Circuit Hardware Description Language) and Verilog2.Those skilled in the art It will be apparent to the skilled artisan that only needing method flow slightly programming in logic and being programmed into integrated circuit with above-mentioned several hardware description languages In, so that it may it is readily available the hardware circuit for realizing the logical method process.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
As seen through the above description of the embodiments, those skilled in the art can be understood that this specification It can realize by means of software and necessary general hardware platform.Based on this understanding, the technical solution of this specification Substantially the part that contributes to existing technology can be embodied in the form of software products in other words, the computer software Product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes each embodiment of this specification or embodiment Certain parts described in method.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
This specification can be used in numerous general or special purpose computing system environments or configuration.Such as: personal computer, Server computer, handheld device or portable device, laptop device, multicomputer system, microprocessor-based system, Set top box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer including any of the above system are set Standby distributed computing environment etc..
This specification can describe in the general context of computer-executable instructions executed by a computer, such as journey Sequence module.Generally, program module include routines performing specific tasks or implementing specific abstract data types, programs, objects, Component, data structure etc..This specification can also be practiced in a distributed computing environment, in these distributed computing environment In, by executing task by the connected remote processing devices of communication network.In a distributed computing environment, program module It can be located in the local and remote computer storage media including storage equipment.
Although depicting this specification by embodiment, it will be appreciated by the skilled addressee that there are many become for this specification Shape and the spirit changed without departing from this specification, it is desirable to which the attached claims include these deformations and change without departing from this The spirit of specification.

Claims (11)

1. a kind of picture transmission method, which is characterized in that the described method includes:
Picture to be transmitted is obtained, and determines current network bandwidth;
According to the performance information of client, the real-time calculation power of the client cpu is calculated;
The picture compression of the picture to be transmitted is determined according to the real-time calculation power of the current network bandwidth and the client cpu Rate;
By picture compression to be transmitted and client is transmitted to according to the picture compression rate.
2. determining current network bandwidth the method according to claim 1, wherein described and including:
Test picture is sent to client, and records the sending time of every frame image;
The response message of client feedback is received, and records receiving time;
Current network bandwidth is determined according to the sending time and receiving time.
3. according to the method described in claim 2, it is characterized in that, the current network bandwidth calculates according to the following formula It arrives:
RTT=T2-T1
RTTs=(1- α) × RTTp+ α × RTT
Wherein, T1For the sending time of present frame, T2For receiving time, RTT is the round-trip delay of present frame, and RTTp is to have sent The average delay of frame, α are the round-trip delay of the present frame and the weight coefficient of the average delay for having sent frame, and RTTs is Current network bandwidth.
4. the method according to claim 1, wherein the real-time calculation power of the client cpu is according to the following formula It is calculated:
Power=F × A × (1-P)
Wherein, Power is the real-time calculation power of client cpu, and F is client cpu frequency, and A is client cpu number of cores, and P is Client cpu uses accounting.
5. the method according to claim 1, wherein determining the picture of the picture to be transmitted according to the following formula Compression ratio:
T=f (Powera, RTTs, c)
Wherein, Power is the real-time calculation power of the client cpu, and RTTs is current network bandwidth, and c is picture compression rate, and T is Transmit total time-consuming;
The value for determining transmission total time-consuming picture compression rate in minimum is the picture compression rate of the picture to be transmitted.
6. a kind of picture transfer device, which is characterized in that described device includes:
First determining module for obtaining picture to be transmitted, and determines current network bandwidth;
Computing module calculates the real-time calculation power of the client cpu for the performance information according to client;
Second determining module, for according to the real-time calculation power of the current network bandwidth and the client cpu determine it is described to Transmit the picture compression rate of picture;
Transmission module, for by picture compression to be transmitted and being transmitted to client according to the picture compression rate.
7. device according to claim 6, which is characterized in that first determining module further include:
Sending module is sent to client for that will test picture, and records the sending time of every frame image;
Receiving module for receiving the response message of client feedback, and records receiving time;
Network bandwidth determining module, for determining current network bandwidth according to the sending time and receiving time.
8. device according to claim 6, which is characterized in that the current network bandwidth calculates according to the following formula It arrives:
RTT=T2-T1
RTTs=(1- α) × RTTp+ α × RTT
Wherein, T1 is the sending time of present frame, and T2 is receiving time, and RTT is the round-trip delay of present frame, and RTTp is to have sent The average delay of frame, α are the round-trip delay of the present frame and the weight coefficient of the average delay for having sent frame, and RTTs is Current network bandwidth.
9. device according to claim 6, which is characterized in that the real-time calculation power of the client cpu is according to the following formula It is calculated:
Power=F × A × (1-P)
Wherein, Power is the real-time calculation power of client cpu, and F is client cpu frequency, and A is client cpu number of cores, and P is Client cpu uses accounting.
10. device according to claim 6, which is characterized in that determine the figure of the picture to be transmitted according to the following formula Piece compression ratio:
T=f (Powera, RTTs, c)
Wherein, Power is the real-time calculation power of the client cpu, and RTTs is current network bandwidth, and c is picture compression rate, and T is Transmit total time-consuming;
The value for determining transmission total time-consuming picture compression rate in minimum is the picture compression rate of the picture to be transmitted.
11. a kind of computer readable storage medium, is stored thereon with computer program instructions, the computer program instructions are held Row Shi Shixian: picture to be transmitted is obtained, and determines current network bandwidth;According to the performance information of client, the visitor is calculated The real-time calculation power of family end cpu;It is determined according to the real-time calculation power of the current network bandwidth and the client cpu described to be transmitted The picture compression rate of picture;By picture compression to be transmitted and client is transmitted to according to the picture compression rate.
CN201910710808.1A 2019-08-02 2019-08-02 A kind of picture transmission method, device and storage medium Pending CN110299967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910710808.1A CN110299967A (en) 2019-08-02 2019-08-02 A kind of picture transmission method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910710808.1A CN110299967A (en) 2019-08-02 2019-08-02 A kind of picture transmission method, device and storage medium

Publications (1)

Publication Number Publication Date
CN110299967A true CN110299967A (en) 2019-10-01

Family

ID=68032580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910710808.1A Pending CN110299967A (en) 2019-08-02 2019-08-02 A kind of picture transmission method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110299967A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784684A (en) * 2019-10-21 2020-02-11 华中科技大学 Data processing method, device and equipment
CN113315793A (en) * 2021-08-02 2021-08-27 华锐分布式(北京)技术有限公司 Data transmission method, device, equipment and medium based on intelligent compression
CN115208870A (en) * 2022-06-21 2022-10-18 北京快乐茄信息技术有限公司 Compression algorithm determination method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060120406A1 (en) * 2004-12-03 2006-06-08 Chao-Hung Wu Internet A/V data imaging results & transmission rate improvement methodology
CN101493813A (en) * 2008-01-25 2009-07-29 北京新岸线网络技术有限公司 Video search method based on content and implementing method thereof
US20140328401A1 (en) * 2008-12-05 2014-11-06 Motorola Mobility Llc Bi-directional video compression for real-time video streams during transport in a packet switched network
CN104243923A (en) * 2014-09-09 2014-12-24 苏州科达科技股份有限公司 Image processing and previewing method and system
CN105208406A (en) * 2014-06-11 2015-12-30 中兴通讯股份有限公司 Video data providing method and apparatus, video playing method and apparatuses, and video playing system
CN106326326A (en) * 2016-06-07 2017-01-11 武汉科技大学 Picture caching optimization method in Android system
CN108924502A (en) * 2018-07-26 2018-11-30 成都派视科技有限公司 A kind of portable image transmission system and its figure transmission method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060120406A1 (en) * 2004-12-03 2006-06-08 Chao-Hung Wu Internet A/V data imaging results & transmission rate improvement methodology
CN101493813A (en) * 2008-01-25 2009-07-29 北京新岸线网络技术有限公司 Video search method based on content and implementing method thereof
US20140328401A1 (en) * 2008-12-05 2014-11-06 Motorola Mobility Llc Bi-directional video compression for real-time video streams during transport in a packet switched network
CN105208406A (en) * 2014-06-11 2015-12-30 中兴通讯股份有限公司 Video data providing method and apparatus, video playing method and apparatuses, and video playing system
CN104243923A (en) * 2014-09-09 2014-12-24 苏州科达科技股份有限公司 Image processing and previewing method and system
CN106326326A (en) * 2016-06-07 2017-01-11 武汉科技大学 Picture caching optimization method in Android system
CN108924502A (en) * 2018-07-26 2018-11-30 成都派视科技有限公司 A kind of portable image transmission system and its figure transmission method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784684A (en) * 2019-10-21 2020-02-11 华中科技大学 Data processing method, device and equipment
CN113315793A (en) * 2021-08-02 2021-08-27 华锐分布式(北京)技术有限公司 Data transmission method, device, equipment and medium based on intelligent compression
CN113315793B (en) * 2021-08-02 2021-11-23 华锐分布式(北京)技术有限公司 Data transmission method, device, equipment and medium based on intelligent compression
CN115208870A (en) * 2022-06-21 2022-10-18 北京快乐茄信息技术有限公司 Compression algorithm determination method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11228794B2 (en) Method, computer device, and storage medium for media code rate self-adaptation
Liu et al. Dare: Dynamic adaptive mobile augmented reality with edge computing
Raca et al. On leveraging machine and deep learning for throughput prediction in cellular networks: Design, performance, and challenges
CN110299967A (en) A kind of picture transmission method, device and storage medium
CN106791889B (en) A kind of method for processing video frequency and system, distributed objects storage system
US9544346B1 (en) Systems and methods for selecting a node for media streaming
CN105024872B (en) The method and device of applied in network performance test
CN107977371A (en) Requesting method, display methods and the client of page elements
CN110795022A (en) Terminal testing method, system and storage medium
EP3135019B1 (en) Method and system for bandwidth-dependent file transfer
CN111414543B (en) Method, device, electronic equipment and medium for generating comment information sequence
KR101491639B1 (en) Method for determining type of network and method for providing contents by using the same
US20190114989A1 (en) Systems and methods for image optimization
CN109829077A (en) A kind of page display method, device and equipment
CN109729384A (en) The selection method and device of video code conversion
Hong et al. Optimizing cloud-based video crowdsensing
CN100568827C (en) A kind of network pressure testing method of multithreading
CN106331048A (en) Data processing method, apparatus and system, and mobile device
CN108124273A (en) A kind of method of acquisition of information, equipment and medium
CN113867946A (en) Method, device, storage medium and electronic equipment for accessing resources
US20140344338A1 (en) Transmitting information based on reading speed
CN113746685B (en) Stream collection processing method and device based on pulsar log and readable storage medium
CN105471850A (en) Video uploading method and video uploading device
US11552899B2 (en) Automatic scaling for consumer servers in a data processing system
CN110956349B (en) Quality of service analysis method, system, device, server and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191001

RJ01 Rejection of invention patent application after publication