[go: up one dir, main page]

CN107302659B - A kind of data compression method for network transmission - Google Patents

A kind of data compression method for network transmission Download PDF

Info

Publication number
CN107302659B
CN107302659B CN201710464923.6A CN201710464923A CN107302659B CN 107302659 B CN107302659 B CN 107302659B CN 201710464923 A CN201710464923 A CN 201710464923A CN 107302659 B CN107302659 B CN 107302659B
Authority
CN
China
Prior art keywords
data
unit
sent
image
component
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.)
Expired - Fee Related
Application number
CN201710464923.6A
Other languages
Chinese (zh)
Other versions
CN107302659A (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.)
Chengdu Youfuda Information Technology Co Ltd
Original Assignee
Chengdu Youfuda Information 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 Chengdu Youfuda Information Technology Co Ltd filed Critical Chengdu Youfuda Information Technology Co Ltd
Priority to CN201710464923.6A priority Critical patent/CN107302659B/en
Publication of CN107302659A publication Critical patent/CN107302659A/en
Application granted granted Critical
Publication of CN107302659B publication Critical patent/CN107302659B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

A kind of data compression method for network transmission includes: that imaging unit is ordered based on the received, captures the image of object at predetermined intervals, generates image data;The image data is sent data processing module by imaging unit;Data processing module carries out ciphered compressed to received image data, and is sent to discrimination module;Discrimination module reads received data, determines whether received data meet differentiation and require;If meet differentiate require if data are handled, and by the result of processing in conjunction with other results after be sent to receiving module;If be unsatisfactory for differentiate require if by data directly in conjunction with other results after be sent to receiving module.A kind of corresponding device is also disclosed.This method and device can be improved valid data transmission bandwidth, reduce the cost of equipment and transmission line, the data volume for reducing actual transmissions, effectively improves the communication efficiency of communication system, and guarantees the image data of acquisition after being compressed by the safety of whole net transmission.

Description

A kind of data compression method for network transmission
Technical field
The present invention relates generally to data-signal process fields, more specifically, are related to a kind of data for network transmission Compression method and its device.
Background technique
With the development of computer and the communication technology, need to transmit the data of magnanimity by communication system, such as text, Image, voice data etc., however, the data value of transmission often all has a degree of duplicate message or redundancy or non-master Want information, it is therefore desirable to just carry out data encoding transmission after carrying out compression processing to data such as text, image, voice datas.And And with the continuous development of the communication technology, broadband signal becomes the mainstream situation of current communication industry data transmission technology development, It is required that there is higher rate on transmission link.Particularly, the process of compression is exactly that the information between deletion and reduction data is superfluous The remaining process for realizing coding.Due to above, needed in the prior art using data compression technique, can same hardware at Transmission capacity is greatly improved under this, increases number of users;Or under the premise of same subscriber number, reduces data transmission link or set The quantity of standby data processing unit, it may therefore be assured that using number in a communications system while user obtains valid data Valid data transmission bandwidth can be improved according to compress technique, or under the premise of identical valid data transmission bandwidth is provided, reduces The cost of equipment and transmission line;The data volume for reducing actual transmissions, effectively improves the communication efficiency of communication system.In addition, In network transmission, due to being related to secrecy, public safety, public interest, business secret, individual privacy etc., need to guarantee The image data of acquisition passes through the safety of whole net transmission after being compressed, it is therefore desirable to reinforce its cryptographic operation.
For a large amount of consumption passed through caused by network transmission to bandwidth in the prior art, and guarantee the safety of data No doubt there is segmentation scheme in aspect, but have not been able to effectively while solving these problems at present, obtain apparent technology effect Fruit.
Summary of the invention
An object of the present invention is to provide a kind of data compression method and its device for network transmission, can mention High valid data transmission bandwidth reduces the cost of equipment and transmission line, reduces the data volume of actual transmissions, effectively improve logical The communication efficiency of letter system, and guarantee the image data of acquisition after being compressed by the safety of whole net transmission.
A kind of technical solution that the present invention takes to solve above-mentioned technical problem are as follows: data compression for network transmission Method, comprising: in step sl, imaging unit is ordered based on the received, captures the image of object at predetermined intervals, with Generate image data;In step s 2, the image data is sent data processing module by imaging unit;In step s3, number Ciphered compressed is carried out to the received image data according to processing module, and is sent to discrimination module;In step s 4, discrimination module Received data are read, determine whether received data meet differentiation and require;In step s 5, it is required if meeting and differentiating, Data are handled, and by the result of processing in conjunction with other results after be sent to receiving module;And in step s 6, such as Fruit be unsatisfactory for differentiate require, then by data directly in conjunction with other results after be sent to receiving module.
According to another aspect of the present invention, the imaging unit in step S1 is can to generate the electronics of image data to set It is standby, selected from any of camera, camera, video recorder, mobile terminal;Order is issued by central processing unit or controller With acquisition mode selection or acquisition mode parameter setting instruction;And in step S2 imaging unit by the image data Data processing module being sent to using wirelessly or non-wirelessly link, Radio Link includes long haul communication and short haul connection, wherein Long haul communication includes long term evolution (LTE), advanced LTE (LTE-A), CDMA (CDMA), wideband CDMA (WCDMA), leads to With mobile communication system (UMTS), WiMAX (WiBro), global system for mobile communications (GSM);Short haul connection includes wireless Fidelity (WiFi), BLUETOOTH (BT), near-field communication (NFC), magnetic safe transmission (MST) and Global Navigation Satellite System (GNSS)。
According to another aspect of the present invention, in step s3, data processing module carries out the received image data Ciphered compressed obtains the image with A*B pixel the following steps are included: step S31, and wherein A, B indicate positive integer;Step S32, by the color images with color component at the M unit with C*D pixel, wherein C, D indicate positive integer;Step Rapid S33, the M unit with C*D pixel divided using the first random integers random alignment, first random integers are originated from The rule of the first component, the first component is all identical for all color components;Step S34, it is random whole using second Number rotation and reversion each unit, second random integers are originated from second component, and the rule of the second component is for all colors Color component is all identical;Step S35 converts each unit using third random integers, which is originated from third The rule of component, the third member is all identical for all color components;Step S36 is become using the 4th random integers The order of color component in each unit is changed, the 4th random integers are originated from the 4th component;Step S37, after transformation order Each unit combines to form new image;New image is divided into the unit of E F*F by step S38, and wherein E, F are indicated just whole Number;Each of E*F unit is converted into column vector by step S39, is denoted as Ui (i=1,2 ..., E), is meant i-th The column vector of unit calculates Wi=VB*Ui, VB is j*F according to the first matrix V2The matrix of size, wherein " E is only needed j in this way Handle j*F2The matrix of size, and successively group is combined into the data flow of subsequent processing by data therein.
According to another aspect of the present invention, in step S4, S5, discrimination module reads received data, determines and receives Data whether meet differentiation and require, require, data handled, and by the result of processing and other if meeting and differentiating As a result it includes: that discrimination module reads received data flow that receiving module is sent to after combining, and determines numerical order therein, determines Wherein with one or more data slots of identical value, if in one or more segment each segment identical data digit Not less than critical value, it is determined that it, which meets, differentiates requirement to be further processed;If each in one or more segments The data bits of section is less than critical value, it is determined that it is unsatisfactory for differentiating and require, then enters step in S6, and the data slot is straight Receiving module is sent to after connecing in conjunction with other results;Be further processed includes: that will meet to differentiate that desired data slot carries out Further compression, and beginning flag position, value bit, numerical value digit are at least set, beginning flag position shows to carry out the segment Compression can use nonnumeric character, be value bit after beginning flag position, show the number of continuous data position in data slot Value, value bit are later numerical value digit, and numerical value digit shows the quantity of the numerical value of continuous data position;It will meet later and differentiate requirement Data slot with differentiation requirement is unsatisfactory for, is combined according to original sequence, is sent to reception by wired or wireless link Module;In step s 6, required if being unsatisfactory for differentiating, by the data slot directly in conjunction with other results after be sent to and connect Receive module include: according in step S4-S5 discrimination module read and determine numerical order and one or more The sequence of data slot will meet the data slot for differentiating and requiring and be unsatisfactory for differentiate requirement, be combined according to original sequence, Receiving module is sent to by wired or wireless link.
According to another aspect of the present invention, in step S31 and S32, the image with A*B pixel of acquisition is divided It is cut into M unit, in which: Expression goes the rounding-off of a method to operate, i.e., by the fractional part of the numerical value of calculating Divide the integer part obtained after removing;In step S34, being rotated using the second random integers and inverting each unit includes: rotation Turning to refer to and each unit is rotated 0 °, 90 °, 180 ° or 270 °, reversion is symmetrically moved along horizontally or vertically direction, And the unit component having the same in the unit and initial image of each rotation and reversion;In step S35, using third with Machine integer transform each unit includes: for each unit, the pixel value of transformation are as follows: when the corresponding third random integers of the unit When being 0, which is the pixel value in former step S32 in the unit of image;When the corresponding third random integers of the unit are 1 When, which is the difference of 255 with the pixel value in the unit of image in former step S32.
According to another aspect of the present invention, for any that the data compression method of network transmission includes in following two It is a: to further include detection operation after step S39, comprising: detect the data flow in step S39, according to pre-defined rule G bit value therein is read, even-odd check detection is carried out, wherein there are mistakes if even-odd check does not pass through;If odd even It upchecks, then further determines prediction rule, meet then inerrancy, otherwise there is mistake;Or it is also wrapped after step S39 Decision is included, includes determining whether the prediction result P for intercepting and calculating in the data flow in step S39 and the interception in data flow The original value of position and O whether meet the following conditions: 2P-1≤O≤2P, wherein P and O is integer;Meet and mistake is then not present; Otherwise there is mistake, need further to be corrected.Further comprise after step S6: receiving module will pass through wired or wireless chain The data that road is sent, which further pass through, to be locally stored or cloud storage reinforces storage and final-period management to data, and for subsequent step Carry out data is decompressed and decrypted by operation.
Accordingly, this disclosure relates to a kind of corresponding data compression device for network transmission, comprising: imaging unit, It is configured to: ordering based on the received, the image of object is captured at predetermined intervals, to generate image data, by the figure As data are sent to data processing module;Data processing module is configured to: carrying out encryption pressure to the received image data Contracting, and it is sent to discrimination module;Discrimination module is configured to: being read received data, is determined whether received data meet and sentence It does not require;If meet differentiate require, data are handled, and by the result of processing in conjunction with other results after be sent to Receiving module;If be unsatisfactory for differentiate require, by data directly in conjunction with other results after be sent to receiving module.
Detailed description of the invention
In the accompanying drawings by way of example rather than the embodiment of the present invention is shown by way of limitation, wherein phase Same appended drawing reference indicates identical element, in which:
According to an exemplary embodiment of the invention, Fig. 1 illustrates a kind of process of data compression method for network transmission Figure.
According to an exemplary embodiment of the invention, Fig. 2 illustrates a kind of data compression device for network transmission.
Specific embodiment
In the following description, several specific embodiments with reference to attached drawing and are diagrammatically shown.It will be appreciated that It is contemplated that and other embodiments can be made without departing from the scope of the present disclosure or spirit.Therefore, described in detail below should not be by Think in a limiting sense.
According to an exemplary embodiment of the invention, Fig. 1 illustrates a kind of process of data compression method for network transmission Figure.This method comprises:
In step sl, imaging unit is ordered based on the received, captures the image of object, at predetermined intervals with life At image data;
In step s 2, the image data is sent data processing module by imaging unit;
In step s3, data processing module carries out ciphered compressed to the received image data, and is sent to differentiation mould Block;
In step s 4, discrimination module reads received data, determines whether received data meet differentiation and require;
In step s 5, it requires, data is handled, and by the result of processing and other results if meeting and differentiating Receiving module is sent in conjunction with after;And
In step s 6, if be unsatisfactory for differentiate require, by data directly in conjunction with other results after be sent to reception Module.
Specifically, in step sl, imaging unit can be the electronic equipment that can generate image data, such as and unlimited In camera, camera, video recorder, mobile terminal.Order can be to be captured by central processing unit or having for controller sending Model selection or the instruction of acquisition mode parameter setting.
Specifically, in step s 2, imaging unit by the image data be sent to data processing module can be used it is wireless or Wire link, this depends on the type of imaging unit.For example, when imaging unit is mobile terminal, it can be by wireless communication Link sends image data, including long haul communication, such as long term evolution (LTE), advanced LTE (LTE-A), CDMA (CDMA), wideband CDMA (WCDMA), Universal Mobile Telecommunications System (UMTS), WiMAX (WiBro), global mobile communication system It unites (GSM);It may also comprise short haul connection, such as Wireless Fidelity (WiFi), BLUETOOTH (BT), near-field communication (NFC), magnetic Safe transmission (MST) and Global Navigation Satellite System (GNSS).
Specifically, in step s3, it includes following that data processing module, which carries out ciphered compressed to the received image data, Step:
Step S31 obtains the image with A*B pixel, and wherein A, B indicate positive integer;
Step S32, by the color images with color component at the M unit with C*D pixel, wherein C, D Indicate positive integer;
Step S33, using the first random integers random alignment divide the M unit with C*D pixel, this first with Machine integer is originated from the first component, and the rule of the first component is all identical for all color components;
Step S34, rotates using the second random integers and inverts each unit, which is originated from second The rule of part, the second component is all identical for all color components;
Step S35 converts each unit using third random integers, which is originated from third member, this The rule of three components is all identical for all color components;
Step S36 converts the order of color component in each unit, the 4th random integers source using the 4th random integers From the 4th component;
Step S37 combines each unit after transformation order to form new image;
New image is divided into the unit of E F*F by step S38, and wherein E, F indicate positive integer;
Each of E*F unit is converted into column vector by step S39, is denoted as Ui (i=1,2 ..., E), is meant The column vector of i-th of unit calculates Wi=VB*Ui according to the first matrix V, in which:
VB is j*F2The matrix of size, wherein " E only needs to handle j*F in this way j2Greatly Small matrix, and successively group is combined into the data flow of subsequent processing by data therein.
Specifically, in step S31 and S32, the image with A*B pixel of acquisition is divided into M unit, In:
Expression goes the rounding-off of a method to operate, i.e., after removing the fractional part of the numerical value of calculating Obtained integer part.
Specifically, in step S34, being rotated using the second random integers and inverting each unit includes: that rotation refers to will be every A unit rotates 0 °, 90 °, 180 ° or 270 °, and reversion is symmetrically moved along horizontally or vertically direction, and each rotation Turn and reversion unit and initial image in unit component having the same.
Specifically, in step S35, using third random integers convert each unit include: for each unit, transformation Pixel value are as follows: when the corresponding third random integers of the unit are 0, which is in former step S32 in the unit of image Pixel value;When the corresponding third random integers of the unit are 1, the pixel value be 255 in the unit of image in former step S32 Pixel value difference.
It preferably, further include detection operation after step S39, comprising: the data flow in step S39 is detected, G bit value therein is read according to pre-defined rule, even-odd check detection is carried out, wherein existing if even-odd check does not pass through Mistake;If odd-even check passes through, prediction rule is further determined, meet then inerrancy, otherwise there is mistake;
Alternatively, further include decision after step S39, include determining whether to intercept simultaneously in the data flow in step S39 The original value of the position of interception in the prediction result P and data flow of calculating and O whether meet the following conditions: 2P-1≤O≤2P, Wherein P and O is integer;Meet and mistake is then not present;Otherwise there is mistake, need further to be corrected.
Specifically, in step S4, S5, discrimination module reads received data, determines whether received data meet and sentences Do not require, if meet differentiate require, data are handled, and by the result of processing in conjunction with other results after be sent to Receiving module includes: that discrimination module reads received data flow, determines numerical order therein, determining wherein has identical value One or more data slots, if the identical data digit of each segment is not less than critical value in one or more segments, Determining that it meets differentiates requirement to be further processed;If the data bits of each segment is less than in one or more segments Critical value, it is determined that it is unsatisfactory for differentiating and require, then enters step in S6, by the data slot directly in conjunction with other results After be sent to receiving module;Being further processed includes: that will meet to differentiate that desired data slot is further compressed, and extremely Beginning flag position, value bit, numerical value digit are set less, and beginning flag position shows to compress the segment, can use non- Numerical character, beginning flag position are later value bit, show the numerical value of continuous data position in data slot, are several after value bit It is worth digit, numerical value digit shows the quantity of the numerical value of continuous data position;It will meet later and differentiate that requiring and be unsatisfactory for differentiation requires Data slot, be combined according to original sequence, be sent to receiving module by wired or wireless link.
In step s 6, if be unsatisfactory for differentiate require, by the data slot directly in conjunction with other results after send To receiving module include: according in step S4-S5 discrimination module read and determine numerical order and one of those or The sequence of multiple data slots will meet the data slot for differentiating and requiring and be unsatisfactory for differentiate requirement, carry out according to original sequence Combination, is sent to receiving module by wired or wireless link.
Specifically, after step S6, further comprise: the data that receiving module will be sent by wired or wireless link Further by being locally stored or cloud storage reinforces storage and final-period management to data, and the solution of data is carried out for subsequent step Compression and decryption oprerations.
Above-mentioned each technical term is the routine techniques term with common meaning in this field, in order not to obscure this The emphasis of invention, is not further explained it herein.
Accordingly, a kind of data compression device for network transmission is also disclosed in the application, comprising:
Imaging unit is configured to: being ordered based on the received, is captured the image of object, at predetermined intervals with life At image data, data processing module is sent by the image data;
Data processing module is configured to: being carried out ciphered compressed to the received image data, and is sent to differentiation mould Block;
Discrimination module is configured to: being read received data, is determined whether received data meet differentiation and require;If Meet differentiate require, then data are handled, and by the result of processing in conjunction with other results after be sent to receiving module;Such as Fruit be unsatisfactory for differentiate require, then by data directly in conjunction with other results after be sent to receiving module.
Specifically, which can be the electronic equipment that can generate image data, such as and is not limited to camera, takes the photograph As head, video recorder, mobile terminal.Order can be by central processing unit or controller sending with acquisition mode selection or The instruction of person's acquisition mode parameter setting.
Specifically, the image data is sent data processing module by imaging unit can be used wirelessly or non-wirelessly link, this Type depending on imaging unit.For example, when imaging unit is mobile terminal image can be sent by link by wireless communication Data, including long haul communication, such as long term evolution (LTE), advanced LTE (LTE-A), CDMA (CDMA), wideband CDMA (WCDMA), Universal Mobile Telecommunications System (UMTS), WiMAX (WiBro), global system for mobile communications (GSM);It may also comprise Short haul connection, such as Wireless Fidelity (WiFi), BLUETOOTH (BT), near-field communication (NFC), magnetic safe transmission (MST) and complete Ball navigational satellite system (GNSS).
Data processing module further comprises:
Component is obtained, is configured to: obtaining the image with A*B pixel, wherein A, B indicate positive integer;
Split component is configured to: the color images with color component are single at M with C*D pixel Member, wherein C, D indicate positive integer;
First random alignment component, is configured to: having C*D pixel using what the first random integers random alignment was divided M unit, first random integers be originated from the first component, the rule of the first component is all phase for all color components With;
Second random alignment component, is configured to: using the second random integers rotate and invert each unit, this second with Machine integer is originated from second component, and the rule of the second component is all identical for all color components;
Third random alignment component, is configured to: converting each unit using third random integers, the third random integers From third member, the rule of the third member is all identical for all color components;
4th random alignment component, is configured to: time of color component in each unit is converted using the 4th random integers Sequence, the 4th random integers are originated from the 4th component;
Combined member is configured to: combining each unit after transformation order to form new image;
Component is divided, is configured to: new image is divided into the unit of E F*F, wherein E, F indicate positive integer;
Translation building block is configured to: each of E*F unit is converted into column vector, be denoted as Ui (i=1,2 ..., E), the column vector for meaning i-th of unit calculates Wi=VB*Ui according to the first matrix V, in which:
VB is j*F2The matrix of size, wherein " E only needs to handle j*F in this way j2Greatly Small matrix, and successively group is combined into the data flow of subsequent processing by data therein.
Obtain component to be further configured to: the image with A*B pixel of acquisition is divided into M unit, in which:
Expression goes the rounding-off of a method to operate, i.e., after removing the fractional part of the numerical value of calculating Obtained integer part.
Second random alignment component is further configured to: each unit packet is rotated and inverted using the second random integers Include: rotation refer to by each unit rotate 0 °, 90 °, 180 ° or 270 °, reversion be along horizontally or vertically direction symmetrically It is mobile, and the unit component having the same in the unit and initial image of each rotation and reversion.
Third random alignment component is further configured to: using third random integers convert each unit include: for Each unit, the pixel value of transformation are as follows: when the corresponding third random integers of the unit are 0, which is the list of original image Pixel value in member;When the corresponding third random integers of the unit are 1, the pixel value be 255 in the unit of original image The difference of pixel value.
Data processing module further comprises:
Detection means are configured to: pair data flow detect, G bit value therein is read according to pre-defined rule, into Row even-odd check detection, wherein there are mistakes if even-odd check does not pass through;If odd-even check passes through, further sentence Determine prediction rule, meets then inerrancy, otherwise there is mistake;
Or include: determination means, in the prediction result P and data flow for being configured to: intercepting in a stream and calculate Interception position original value and O whether meet the following conditions: 2P-1≤O≤2P, wherein P and O is integer;Meet then not There are mistakes;Otherwise there is mistake, need further to be corrected.
Discrimination module is further configured to: received data read, determine whether received data meet differentiation and require, If meet differentiate require, data are handled, and by the result of processing in conjunction with other results after be sent to reception mould Block includes: that discrimination module reads received data flow, determines numerical order therein, determine wherein one with identical value or Multiple data slots, if the identical data digit of each segment is not less than critical value in one or more segments, it is determined that its Meet and differentiates requirement to be further processed;If the data bits of each segment is less than critical in one or more segments Value, it is determined that its be unsatisfactory for differentiate require, by the data slot directly in conjunction with other results after be sent to receiving module;Into one Step processing includes: that will meet to differentiate that desired data slot is further compressed, and beginning flag position, numerical value is at least arranged Position, numerical value digit, beginning flag position shows to compress the segment, can use nonnumeric character, beginning flag position it Afterwards it is value bit, shows the numerical value of continuous data position in data slot, be numerical value digit after value bit, numerical value digit shows to connect The quantity of the numerical value of continuous data bit;It will meet later and differentiate and require and be unsatisfactory for differentiate desired data slot, according to original suitable Sequence is combined, and is sent to receiving module by wired or wireless link;It is required if being unsatisfactory for differentiating, by the data slot Be sent to after directly in conjunction with other results receiving module include: according to discrimination module read and determine numerical order and The sequence of one or more of data slots will meet the data slot for differentiating and requiring and be unsatisfactory for differentiate requirement, according to original The sequence come is combined, and is sent to receiving module by wired or wireless link.
To sum up, in the inventive solutions, by using a kind of data compression method for network transmission and Its device can be improved valid data transmission bandwidth, reduces the cost of equipment and transmission line, reduces the data of actual transmissions Amount, effectively improves the communication efficiency of communication system, and guarantees that the image data of acquisition passes through whole net transmission after being compressed Safety.
It will be appreciated that example and reality of the invention can be realized in the form of the combination of hardware, software or hardware and software Apply example.As described above, any main body for executing this method can be stored, in the form of volatility or non-volatile holographic storage, such as Equipment is stored, as ROM, whether no matter can erasing or is rewritable, or in the form of a memory, such as RAM, storage core Piece, equipment or integrated circuit or on the readable medium of light or magnetic, such as CD, DVD, disk or tape.It will be appreciated that Storage equipment and storage medium are suitable for storing the example of the machine readable storage of one or more programs, upon being performed, One or more of programs realize example of the invention.Via any medium, such as it is loaded with by wired or wireless coupling Signal of communication can electronically transmit example of the invention, and example suitably includes identical content.
It is to be noted that reducing equipment and transmission line because the present invention, which solves, improves valid data transmission bandwidth Cost, reduce the data volume of actual transmissions, effectively improve the communication efficiency of communication system, and guarantee acquisition picture number It the technical issues of according to the safety transmitted after being compressed by whole net, is being read using technical staff in field of computer technology Technological means to understand is instructed according to it after reader specification, and obtains advantageous effects, so in appended power Claimed scheme belongs to the technical solution on patent law purposes in benefit requirement.In addition, because appended claims require to protect The technical solution of shield can be made or used in industry, therefore the program has practicability.
The above, preferable specific embodiment only of the invention, but protection scope of the present invention is not limited to This, anyone skilled in the art in the technical scope disclosed by the present invention, the variation that can readily occur in or replaces It changes, should all forgive within protection scope of the present invention.Unless be otherwise expressly recited, otherwise disclosed each feature is only It is equivalent or similar characteristics a example for general series.Therefore, protection scope of the present invention should be with claims Subject to protection scope.

Claims (8)

1. a kind of data compression method for network transmission, it is characterised in that the following steps are included:
In step sl, imaging unit is ordered based on the received, captures the image of object, at predetermined intervals to generate figure As data;
In step s 2, the image data is sent data processing module by imaging unit;
In step s3, data processing module carries out ciphered compressed to the received image data, and is sent to discrimination module;
In step s 4, discrimination module reads received data, determines whether received data meet differentiation and require;
In step s 5, it requires, data is handled, and by the result of processing in conjunction with other results if meeting and differentiating After be sent to receiving module;And
In step s 6, if be unsatisfactory for differentiate require, by data directly in conjunction with other results after be sent to receiving module;
Wherein: in step S4, S5, discrimination module reads received data, determines whether received data meet differentiation and require, If meet differentiate require, data are handled, and by the result of processing in conjunction with other results after be sent to reception mould Block includes: that discrimination module reads received data flow, determines numerical order therein, determine wherein one with identical value or Multiple data slots, if the identical data digit of each segment is not less than critical value in one or more segments, it is determined that its Meet and differentiates requirement to be further processed;Face if the identical data digit of each segment is less than in one or more segments Dividing value, it is determined that its be unsatisfactory for differentiate require, then enter step in S6, by the data slot directly in conjunction with other results after It is sent to receiving module;Being further processed includes: that will meet to differentiate that desired data slot is further compressed, and at least Beginning flag position, value bit, numerical value digit are set, and beginning flag position shows to compress the segment, can use non-number Word character, beginning flag position are later value bit, show the numerical value of continuous data position in data slot, are numerical value after value bit Digit, numerical value digit show the quantity of the numerical value of continuous data position;It will meet later and differentiate requirement and be unsatisfactory for differentiating requirement Data slot is combined according to original sequence, is sent to receiving module by wired or wireless link;In step s 6, such as Fruit is unsatisfactory for differentiating and require, then by the data slot directly in conjunction with other results after to be sent to receiving module include: according to step The sequence of discrimination module reads and determines in rapid S4-S5 numerical order and one or more of data slots, will Meet the data slot for differentiating and requiring and be unsatisfactory for differentiate requirement, is combined according to original sequence, by wired or wireless chain Road is sent to receiving module.
2. the data compression method according to claim 1 for network transmission, comprising:
Imaging unit in step S1 is the electronic equipment that can generate image data, is selected from camera, camera, video recorder, shifting Any of dynamic terminal;Order is issued by central processing unit or controller with acquisition mode selection or capture mould The instruction of formula parameter setting;And
Imaging unit sends data processing module using wirelessly or non-wirelessly link, Radio Link for the image data in step S2 Including long haul communication and short haul connection, wherein long haul communication includes long term evolution (LTE), advanced LTE (LTE-A), code Divide multiple access (CDMA), wideband CDMA (WCDMA), Universal Mobile Telecommunications System (UMTS), WiMAX (WiBro), the whole world mobile Communication system (GSM);Short haul connection includes that Wireless Fidelity (WiFi), BLUETOOTH (BT), near-field communication (NFC), abampere are complete Transmit (MST) and Global Navigation Satellite System (GNSS).
3. the data compression method according to claim 2 for network transmission, in which:
In step s3, data processing module to the received image data carry out ciphered compressed the following steps are included:
Step S31 obtains the image with A*B pixel, and wherein A, B indicate positive integer;
Step S32, by the color images with color component at the M unit with C*D pixel, wherein C, D are indicated Positive integer;
Step S33, using the first random integers random alignment divide the M unit with C*D pixel, this first at random it is whole Number is originated from the first component, and the rule of the first component is all identical for all color components;
Step S34 rotates using the second random integers and inverts each unit, which is originated from second component, should The rule of second component is all identical for all color components;
Step S35 converts each unit using third random integers, which is originated from third member, the third portion The rule of part is all identical for all color components;
Step S36, converts the order of color component in each unit using the 4th random integers, and the 4th random integers are originated from the Four components;
Step S37 combines each unit after transformation order to form new image;
New image is divided into the unit of E F*F by step S38, and wherein E, F indicate positive integer;
Each of E*F unit is converted into column vector by step S39, is denoted as Ui (i=1,2 ..., E), is meant i-th The column vector of unit calculates Wi=VB*Ui according to the first matrix V, in which:
VB is j*F2The matrix of size, wherein " E only needs to handle j*F in this way j2Size Matrix, and successively group is combined into the data flow of subsequent processing by data therein.
4. the data compression method according to claim 3 for network transmission, in which:
In step S31 and S32, the image with A*B pixel of acquisition is divided into M unit, in which: Expression goes the rounding-off of a method to operate, i.e., what is obtained after removing the fractional part of the numerical value of calculating is whole Number part;
In step S34, being rotated using the second random integers and inverting each unit includes: that rotation refers to and rotates each unit 0 °, 90 °, 180 ° or 270 °, reversion be symmetrically moved along horizontally or vertically direction, and it is each rotation and reversion Unit component having the same in unit and initial image;
In step S35, converting each unit using third random integers includes: for each unit, the pixel value of transformation are as follows: when When the corresponding third random integers of the unit are 0, which is the pixel value in former step S32 in the unit of image;When this When the corresponding third random integers of unit are 1, which is 255 and the pixel value in the unit of image in former step S32 Difference.
5. the data compression method according to claim 4 for network transmission, including any of following two:
It further include detection operation after step S39, comprising: detect the data flow in step S39, according to pre-defined rule G bit value therein is read, even-odd check detection is carried out, wherein there are mistakes if even-odd check does not pass through;If odd even It upchecks, is then further determined according to prediction rule, meet then inerrancy, otherwise there is mistake;
Or after step S39 further include decision, include determining whether P and O meets the following conditions, wherein P is step The prediction result for intercepting and calculating in data flow in S39, and O is the sum of the original value of the position of the interception in P and data flow: 2P -1≤O≤2P, wherein P and O is integer;Meet and mistake is then not present;Otherwise there is mistake, need further to be corrected.
6. the data compression method according to claim 5 for network transmission, in which:
Further comprise after step S6: the data sent by wired or wireless link are further passed through this by receiving module Ground storage or cloud storage reinforce storage and final-period management to data, and are decompressed and decrypted by behaviour for subsequent step progress data Make.
7. a kind of data compression device for network transmission, comprising:
Imaging unit is configured to: being ordered based on the received, is captured the image of object, at predetermined intervals to generate figure As data, data processing module is sent by the image data;
Data processing module is configured to: being carried out ciphered compressed to the received image data, and is sent to discrimination module;With And
Discrimination module is configured to: being read received data, is determined whether received data meet differentiation and require;If met Differentiate require, then data are handled, and by the result of processing in conjunction with other results after be sent to receiving module;If no Meet differentiate require, then by data directly in conjunction with other results after be sent to receiving module;
Wherein discrimination module is further configured to: received data are read, determine whether received data meet differentiation and require, If meet differentiate require, data are handled, and by the result of processing in conjunction with other results after be sent to reception mould Block includes: that discrimination module reads received data flow, determines numerical order therein, determine wherein one with identical value or Multiple data slots, if the identical data digit of each segment is not less than critical value in one or more segments, it is determined that its Meet and differentiates requirement to be further processed;Face if the identical data digit of each segment is less than in one or more segments Dividing value, it is determined that its be unsatisfactory for differentiate require, by the data slot directly in conjunction with other results after be sent to receiving module;Into The processing of one step includes: that will meet to differentiate that desired data slot is further compressed, and beginning flag position, number is at least arranged It is worth position, numerical value digit, beginning flag position shows to compress the segment, can use nonnumeric character, beginning flag position Later it is value bit, shows the numerical value of continuous data position in data slot, be numerical value digit after value bit, numerical value digit shows The quantity of the numerical value of continuous data position;The data slot for differentiating and requiring and be unsatisfactory for differentiate requirement will be met later, according to original Sequence is combined, and is sent to receiving module by wired or wireless link;It is required if being unsatisfactory for differentiating, by the data slice Section directly with other results ining conjunction with after be sent to receiving module include: according to discrimination module read and determination numerical order with And the sequence of one or more of data slots, the data slot for differentiating and requiring and be unsatisfactory for differentiate requirement will be met, according to Sequence originally is combined, and is sent to receiving module by wired or wireless link.
8. the data compression device according to claim 7 for network transmission, in which:
Imaging unit is the electronic equipment that can generate image data, including in camera, camera, video recorder, mobile terminal Any one;Order is issued by central processing unit or controller with acquisition mode selection or acquisition mode parameter setting Instruction;
Imaging unit sends data processing module using wirelessly or non-wirelessly link for the image data, Radio Link include it is long away from From communication and short haul connection, wherein long haul communication includes long term evolution (LTE), advanced LTE (LTE-A), CDMA (CDMA), wideband CDMA (WCDMA), Universal Mobile Telecommunications System (UMTS), WiMAX (WiBro), global mobile communication system It unites (GSM);Short haul connection includes Wireless Fidelity (WiFi), BLUETOOTH (BT), near-field communication (NFC), magnetic safe transmission (MST) and Global Navigation Satellite System (GNSS);
Data processing module further comprises:
Component is obtained, is configured to: obtaining the image with A*B pixel, wherein A, B indicate positive integer;
Split component is configured to: by the color images with color component at the M unit with C*D pixel, Middle C, D indicate positive integer;
First random alignment component, is configured to: the M with C*D pixel divided using the first random integers random alignment A unit, first random integers are originated from the first component, and the rule of the first component is all identical for all color components 's;
Second random alignment component, is configured to: each unit is rotated and inverted using the second random integers, this is second random whole Number is originated from second component, and the rule of the second component is all identical for all color components;
Third random alignment component, is configured to: converting each unit using third random integers, which is originated from The rule of third member, the third member is all identical for all color components;
4th random alignment component, is configured to: the order of color component in each unit is converted using the 4th random integers, it should 4th random integers are originated from the 4th component;
Combined member is configured to: combining each unit after transformation order to form new image;
Component is divided, is configured to: new image is divided into the unit of E F*F, wherein E, F indicate positive integer;
Translation building block is configured to: each of E*F unit is converted into column vector, is denoted as Ui (i=1,2 ..., E), It means the column vector of i-th of unit, according to the first matrix V, calculates Wi=VB*Ui, in which:
VB is j*F2The matrix of size, wherein " E only needs to handle j*F in this way j2Size Matrix, and successively group is combined into the data flow of subsequent processing by data therein,
Obtain component to be further configured to: the image with A*B pixel of acquisition is divided into M unit, in which: Expression goes the rounding-off of a method to operate, i.e., what is obtained after removing the fractional part of the numerical value of calculating is whole Number part,
Second random alignment component is further configured to: being rotated using the second random integers and inverting each unit includes: rotation Turning to refer to and each unit is rotated 0 °, 90 °, 180 ° or 270 °, reversion is symmetrically moved along horizontally or vertically direction, And the unit component having the same in the unit and initial image of each rotation and reversion,
Third random alignment component is further configured to: converting each unit using third random integers includes: for each Unit, the pixel value of transformation are as follows: when the corresponding third random integers of the unit are 0, which is in the unit of original image Pixel value;When the corresponding third random integers of the unit are 1, which is 255 and the pixel in the unit of original image The difference of value,
Data processing module further comprises any of following two:
Detection means are configured to: pair data flow detect, G bit value therein is read according to pre-defined rule, is carried out odd Even parity check detection, wherein there are mistakes if even-odd check does not pass through;If odd-even check passes through, further according to pre- Gauge then determines, meets then inerrancy, otherwise there is mistake;
Or include: determination means, it is configured to: determining whether P and O meets the following conditions, wherein P is the number in step S39 According to the prediction result for intercepting and calculating in stream, and O is the sum of the original value of the position of the interception in P and data flow: 2P-1≤O≤2P, Wherein P and O is integer;Meet and mistake is then not present;Otherwise there is mistake, need further to be corrected.
CN201710464923.6A 2017-06-19 2017-06-19 A kind of data compression method for network transmission Expired - Fee Related CN107302659B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710464923.6A CN107302659B (en) 2017-06-19 2017-06-19 A kind of data compression method for network transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710464923.6A CN107302659B (en) 2017-06-19 2017-06-19 A kind of data compression method for network transmission

Publications (2)

Publication Number Publication Date
CN107302659A CN107302659A (en) 2017-10-27
CN107302659B true CN107302659B (en) 2019-10-25

Family

ID=60134857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710464923.6A Expired - Fee Related CN107302659B (en) 2017-06-19 2017-06-19 A kind of data compression method for network transmission

Country Status (1)

Country Link
CN (1) CN107302659B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109348286A (en) * 2018-10-12 2019-02-15 北京凯视达科技有限公司 Crash detection method, device, play system and computer readable storage medium
CN109788160A (en) * 2018-12-13 2019-05-21 平安科技(深圳)有限公司 Image transfer method, device, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000106680A (en) * 1998-09-28 2000-04-11 Nec Eng Ltd Image compressing and expanding device
JP2000152212A (en) * 1998-11-16 2000-05-30 Nippon Telegr & Teleph Corp <Ntt> Digital compression encoding image signal encryption method and apparatus
JP2001008042A (en) * 1999-06-22 2001-01-12 Canon Inc Coder and decoder for image data and image forming device using them
CN1433636A (en) * 1999-12-02 2003-07-30 高通股份有限公司 Appamtus and method for decoding digital image and audio signals
CN1531209A (en) * 2003-03-11 2004-09-22 佳能株式会社 Coding method and coder, computer programm and memory medium
CN1536769A (en) * 2003-03-19 2004-10-13 О Random sequence production equipment, encryption/deeneryption equipment and its method and program
JP2006087056A (en) * 2004-09-17 2006-03-30 Ricoh Co Ltd Image forming apparatus
JP2009077183A (en) * 2007-09-20 2009-04-09 Fujitsu Ltd Data compression apparatus, data compression / decompression system, and data compression method
CN101594537A (en) * 2009-06-04 2009-12-02 京北方科技股份有限公司 Massive image data compression method
CN102137439A (en) * 2010-09-17 2011-07-27 上海华为技术有限公司 Compression control method, device and system
CN106534868A (en) * 2015-09-15 2017-03-22 三星电子株式会社 Image processing device and image processing method performing selective image encryption

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040109565A1 (en) * 2002-12-06 2004-06-10 Takeyuki Uehara Method and system for encrypting or decrypting an image code block

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000106680A (en) * 1998-09-28 2000-04-11 Nec Eng Ltd Image compressing and expanding device
JP2000152212A (en) * 1998-11-16 2000-05-30 Nippon Telegr & Teleph Corp <Ntt> Digital compression encoding image signal encryption method and apparatus
JP2001008042A (en) * 1999-06-22 2001-01-12 Canon Inc Coder and decoder for image data and image forming device using them
CN1433636A (en) * 1999-12-02 2003-07-30 高通股份有限公司 Appamtus and method for decoding digital image and audio signals
CN1531209A (en) * 2003-03-11 2004-09-22 佳能株式会社 Coding method and coder, computer programm and memory medium
CN1536769A (en) * 2003-03-19 2004-10-13 О Random sequence production equipment, encryption/deeneryption equipment and its method and program
JP2006087056A (en) * 2004-09-17 2006-03-30 Ricoh Co Ltd Image forming apparatus
JP2009077183A (en) * 2007-09-20 2009-04-09 Fujitsu Ltd Data compression apparatus, data compression / decompression system, and data compression method
CN101594537A (en) * 2009-06-04 2009-12-02 京北方科技股份有限公司 Massive image data compression method
CN102137439A (en) * 2010-09-17 2011-07-27 上海华为技术有限公司 Compression control method, device and system
CN106534868A (en) * 2015-09-15 2017-03-22 三星电子株式会社 Image processing device and image processing method performing selective image encryption

Also Published As

Publication number Publication date
CN107302659A (en) 2017-10-27

Similar Documents

Publication Publication Date Title
US8746568B2 (en) Data transfer using barcodes
US10154014B2 (en) Method and system for efficient encryption, transmission, and decryption of video data
US10467427B2 (en) Method and apparatus for providing secure image encryption and decryption
DE102019129622A1 (en) EXTENDABLE INTEGRITY-PROTECTED CONNECTION FOR SECURE ACCELERATOR COMMUNICATION
EP3185466B1 (en) Encrypted communications method and communications terminal, and computer storage medium
CN102821279A (en) Picture compression method keeping with alpha channel
CN101763397B (en) Device and method for processing expanding information in image file
CN107645511A (en) A kind of electronic evidence curing, system and equipment
CN102868923A (en) Method, equipment and system applied to special-effect cloud treatment of videos of mobile terminal
US20150350486A1 (en) System and method for hiding reversible information
CN116432244B (en) An image processing method, device, equipment and system
CN107302659B (en) A kind of data compression method for network transmission
CN117439736A (en) Data encryption method, system, electronic equipment and data tracing method
CN116680706A (en) Data operation and maintenance management platform based on data encryption
Li et al. Reversible data hiding in block compressed sensing images
KR20190036328A (en) Frame selective encryption method for video data
EP3811626B1 (en) Face-based frame packing for video calls
CN107087213A (en) A system and method for video chaos secure communication
CN107124559B (en) A kind of communication data compression method
CN116756758A (en) Data encryption and decryption method and device, computer equipment and storage medium
CN116192948A (en) Data transmission method, system and storage medium based on two-dimension code
CN111815723B (en) Data encryption method and device
CN111353133B (en) Image processing method, device and readable storage medium
CN114302178A (en) Image model file transmission method and device
WO2017035018A1 (en) Method and system for efficient encryption, transmission, and decryption of video data

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191025

Termination date: 20210619