CN116132431B - Data transmission method and system - Google Patents

Data transmission method and system Download PDF

Info

Publication number
CN116132431B
CN116132431B CN202310416388.2A CN202310416388A CN116132431B CN 116132431 B CN116132431 B CN 116132431B CN 202310416388 A CN202310416388 A CN 202310416388A CN 116132431 B CN116132431 B CN 116132431B
Authority
CN
China
Prior art keywords
image
data
compression processing
region
template
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.)
Active
Application number
CN202310416388.2A
Other languages
Chinese (zh)
Other versions
CN116132431A (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.)
Tenor Beijing Technology Co ltd
Original Assignee
Tenor Beijing 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 Tenor Beijing Technology Co ltd filed Critical Tenor Beijing Technology Co ltd
Priority to CN202310416388.2A priority Critical patent/CN116132431B/en
Publication of CN116132431A publication Critical patent/CN116132431A/en
Application granted granted Critical
Publication of CN116132431B publication Critical patent/CN116132431B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32101Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N1/32144Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
    • H04N1/32149Methods relating to embedding, encoding, decoding, detection or retrieval operations
    • H04N1/32267Methods relating to embedding, encoding, decoding, detection or retrieval operations combined with processing of the image
    • H04N1/32277Compression
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention is applicable to the technical field of data processing, and provides a data transmission method and a data transmission system, wherein the method comprises the following steps: receiving a data acquisition instruction, and obtaining an acquisition data form according to the data acquisition instruction, wherein the acquisition data form comprises a form number, a project name and acquisition contents, and the acquisition contents are numerical values or images; the corresponding form template is called according to the form number, and the name compression processing is carried out on the acquired data form according to the form template; determining image attributes according to the form numbers, wherein the image attributes comprise image positions and image compression schemes, and the image positions and the image compression schemes are in one-to-one correspondence; and carrying out image compression processing on the acquired data form subjected to the name compression processing according to the image attribute, and transmitting the acquired data form subjected to the image compression processing to a server. In this way, data can be compressed twice, and the data transmission amount is reduced.

Description

Data transmission method and system
Technical Field
The invention relates to the technical field of data processing, in particular to a data transmission method and system.
Background
The intelligent equipment and the Internet of things equipment are widely applied in intelligent factories at present, in order to realize remote monitoring and storage of data generated by various intelligent equipment, all operation data, inspection data, processing data and the like generated by various intelligent equipment are transmitted to a server, in the prior art, the intelligent equipment basically transmits the data to the server for backup storage through a wireless communication module through a telecom operator network, the data often contains image information, the data transmission quantity is large, the transmission cost is high, and the operation cost of the factory is unfavorable to be reduced. Accordingly, there is a need to provide a data transmission method and system, which aims to solve or alleviate the above-mentioned problems.
Disclosure of Invention
Aiming at the defects existing in the prior art, the invention aims to provide a data transmission method and a data transmission system so as to solve or alleviate the problems existing in the background art.
The invention is realized in that a data transmission method comprises the steps of:
receiving a data acquisition instruction, and obtaining an acquisition data form according to the data acquisition instruction, wherein the acquisition data form comprises a form number, a project name and acquisition contents, and the acquisition contents are numerical values or images;
the corresponding form template is called according to the form number, and the name compression processing is carried out on the acquired data form according to the form template;
determining image attributes according to the form numbers, wherein the image attributes comprise image positions and image compression schemes, and the image positions and the image compression schemes are in one-to-one correspondence;
carrying out image compression processing on the acquired data form subjected to the name compression processing according to the image attribute, and transmitting the acquired data form subjected to the image compression processing to a server;
and receiving the acquired data form, and restoring the acquired data form according to the form number, wherein the restored acquired data form contains the project name.
As a further scheme of the invention: the step of calling the corresponding form template according to the form number and carrying out name compression processing on the acquired data form according to the form template specifically comprises the following steps:
inputting the form numbers into a number template library, and outputting corresponding form templates, wherein the number template library comprises a plurality of form numbers and form templates, and the form numbers and the form templates are in one-to-one correspondence;
and comparing the literal characters on the form template with the literal characters on the collected data form, and deleting the literal characters which are the same in position and the literal characters on the collected data form and the form template.
As a further scheme of the invention: the step of performing image compression processing on the acquired data form after name compression processing according to the image attribute specifically comprises the following steps:
retrieving key area information, general area information and background area information in an image compression scheme, wherein the key area information and the general area information form a main body pattern;
determining key areas, general areas and background areas of images in the acquired data form;
and carrying out lossless compression treatment on the key region, carrying out lossy compression treatment on the general region, and carrying out clipping treatment on the background region.
As a further scheme of the invention: the step of determining the key area, the general area and the background area of the image in the acquired data form specifically comprises the following steps:
identifying a background area in the image according to background area information, wherein the background area information is background color;
the background area is subtracted to obtain a shooting subject, and the shooting subject is rotated and zoomed according to the subject pattern;
and carrying out region division on the shooting subject according to the key region information and the general region information to obtain a key region and a general region, wherein the key region information comprises key region positions, and the general region information comprises general region positions.
As a further scheme of the invention: the step of recovering the collected data form according to the form number specifically comprises the following steps:
the corresponding form template is called according to the form number, and the item names in the acquired data form are restored according to the form template;
and restoring the image subjected to lossless compression processing in the acquired data form.
Another object of the present invention is to provide a data transmission system, the system comprising:
the data acquisition module is used for receiving the data acquisition instruction, and obtaining an acquisition data form according to the data acquisition instruction, wherein the acquisition data form comprises a form number, a project name and acquisition contents, and the acquisition contents are numerical values or images;
the name compression processing module is used for calling a corresponding form template according to the form number and carrying out name compression processing on the acquired data form according to the form template;
the image attribute determining module is used for determining image attributes according to the form numbers, wherein the image attributes comprise image positions and image compression schemes, and the image positions and the image compression schemes are in one-to-one correspondence;
the image compression processing module is used for carrying out image compression processing on the acquired data form subjected to the name compression processing according to the image attribute and transmitting the acquired data form subjected to the image compression processing to the server;
the compressed data reduction module is used for receiving the collected data form, reducing the collected data form according to the form number, and the reduced collected data form contains project names.
As a further scheme of the invention: the name compression processing module comprises:
the form template output unit is used for inputting the form numbers into the number template library and outputting corresponding form templates, wherein the number template library comprises a plurality of form numbers and form templates, and the form numbers and the form templates are in one-to-one correspondence;
and the text character deleting unit is used for comparing the text characters on the form template with the text characters on the collected data form and deleting the text characters which are the same in position and the text characters on the collected data form and the form template.
As a further scheme of the invention: the image compression processing module includes:
the regional information retrieving unit is used for retrieving key regional information, general regional information and background regional information in the image compression scheme, wherein the key regional information and the general regional information form a main body pattern;
the image area determining unit is used for determining an important area, a general area and a background area of the image in the acquired data form;
the region compression processing unit is used for carrying out lossless compression processing on the key region, lossy compression processing on the general region and cutting processing on the background region.
As a further scheme of the invention: the image area determination unit includes:
a background area identification subunit, configured to identify a background area in an image according to background area information, where the background area information is background color;
the shooting main body processing subunit is used for deducting the background area to obtain a shooting main body, and rotating and zooming the shooting main body according to the main body pattern;
the region dividing subunit is used for dividing the region of the shooting main body according to the key region information and the general region information to obtain a key region and a general region, wherein the key region information comprises key region positions, and the general region information comprises general region positions.
As a further scheme of the invention: the compressed data recovery module includes:
the item name reduction unit is used for calling a corresponding form template according to the form number and reducing the item name in the acquired data form according to the form template;
and the image part restoring unit is used for restoring the image subjected to lossless compression processing in the acquired data form.
Compared with the prior art, the invention has the beneficial effects that:
the invention can call the corresponding form template according to the form number, and the name compression processing is carried out on the acquired data form according to the form template, so that the data is compressed to a certain extent; and then determining the image attribute according to the form number, carrying out image compression processing on the acquired data form subjected to the name compression processing according to the image attribute, and transmitting the acquired data form subjected to the image compression processing to a server, so that the data is further compressed, and the data transmission quantity is reduced.
Drawings
Fig. 1 is a flow chart of a data transmission method.
Fig. 2 is a flowchart of a name compression process in a data transmission method.
Fig. 3 is a flowchart of image compression processing in a data transmission method.
Fig. 4 is a flowchart for determining an important area, a general area and a background area of an image in a collected data form in a data transmission method.
Fig. 5 is a flowchart for recovering an acquired data form in a data transmission method.
Fig. 6 is a schematic diagram of a data transmission system.
Fig. 7 is a schematic diagram of a name compression processing module in a data transmission system.
Fig. 8 is a schematic diagram of an image compression processing module in a data transmission system.
Fig. 9 is a schematic diagram of the structure of an image area determining unit in a data transmission system.
Fig. 10 is a schematic structural diagram of a compressed data recovery module in a data transmission system.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clear, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Specific implementations of the invention are described in detail below in connection with specific embodiments.
As shown in fig. 1, an embodiment of the present invention provides a data transmission method, which includes the following steps:
s100, receiving a data acquisition instruction, and obtaining an acquisition data form according to the data acquisition instruction, wherein the acquisition data form comprises a form number, a project name and acquisition contents, and the acquisition contents are numerical values or images;
s200, calling a corresponding form template according to the form number, and performing name compression processing on the acquired data form according to the form template;
s300, determining image attributes according to form numbers, wherein the image attributes comprise image positions and image compression schemes, the image positions and the image compression schemes are in one-to-one correspondence, and the form numbers are in one-to-one correspondence with the image attributes;
s400, performing image compression processing on the acquired data form subjected to the name compression processing according to the image attribute, and transmitting the acquired data form subjected to the image compression processing to a server;
s500, receiving the collected data form, and restoring the collected data form according to the form number, wherein the restored collected data form contains item names.
It should be noted that, at present, intelligent devices and devices of internet of things are widely applied in intelligent factories, basically, the intelligent devices send data to a server for backup storage through a wireless communication module via a telecom operator network, the data often contains image information, the data transmission amount is large, the transmission cost is high, and the operation cost of the factories is not reduced.
In the embodiment of the invention, when a user needs intelligent equipment to collect operation data, test data or processing data, the user needs to input corresponding data collection instructions, each data collection instruction corresponds to a form number, the intelligent equipment can obtain a collection data form according to the data collection instructions, the collection data form comprises a form number, a project name and collection contents, and the collection contents are numerical values or images; then, a corresponding form template is called according to the form number, the acquired data form is subjected to name compression according to the form template, the form template only contains project names, and the acquired content part is empty, so that the project names in the acquired data form can be deleted, and the data volume is compressed; further, according to the embodiment of the invention, the image attribute can be determined according to the form number, wherein the image attribute comprises an image position and an image compression scheme, the image position is used for reflecting the specific position of the image in the acquired data form, the image compression scheme is a compression processing means of the image at the position, one image attribute possibly comprises a plurality of image positions and a plurality of image compression schemes, the content of the image attribute is possibly empty, and the corresponding acquired data form does not comprise the image; and then carrying out image compression processing on the acquired data form subjected to the name compression processing according to the image attribute, further compressing the data volume, transmitting the acquired data form subjected to the image compression processing to a server, and reducing the data transmission volume. After receiving the collected data form, the server restores the collected data form according to the form number, and the restored collected data form contains the project name, so that the integrity of the collected data form is ensured, and the follow-up traceability work is convenient.
As shown in fig. 2, as a preferred embodiment of the present invention, the step of retrieving a corresponding form template according to a form number and performing name compression processing on the collected data form according to the form template specifically includes:
s201, inputting the form numbers into a number template library, and outputting corresponding form templates, wherein the number template library comprises a plurality of form numbers and form templates, and the form numbers and the form templates are in one-to-one correspondence;
s202, comparing the literal characters on the form template with the literal characters on the collected data form, and deleting the literal characters which are the same in position and the literal characters on the collected data form and the form template.
In the embodiment of the invention, a numbering template library is established in advance, the numbering template library comprises a plurality of form numbers and form templates, the form numbers are input into the numbering template library, the corresponding form templates are automatically output, the form templates comprise the text characters of the project names and the text characters of other fixed contents, the text characters on the form templates and the text characters on the acquired data form are subjected to comparison analysis, and the text characters which are the same in position and the text characters on the acquired data form are deleted, so that the character quantity can be compressed.
As shown in fig. 3, as a preferred embodiment of the present invention, the step of performing image compression processing on the acquired data form after the name compression processing according to the image attribute specifically includes:
s401, key area information, general area information and background area information in an image compression scheme are called, and the key area information and the general area information form a main body pattern;
s402, determining key areas, general areas and background areas of images in an acquired data form;
s403, performing lossless compression processing on the heavy-point region, performing lossy compression processing on the general region, and performing clipping processing on the background region.
In the embodiment of the invention, each image compression scheme consists of key area information, general area information and background area information, wherein the key area information and the general area information form a main pattern, and the key area, the general area and the background area of the corresponding image can be determined according to the image compression scheme; dividing an image into a key region, a general region and a background region, carrying out lossless compression treatment on the key region, carrying out lossy compression treatment on the general region, deleting the background region, and splicing the compressed key region and the general region into a whole to form a transmissible image, wherein the compression degree of the lossy compression treatment is higher than that of the lossless compression treatment.
As shown in fig. 4, as a preferred embodiment of the present invention, the step of determining a key area, a general area and a background area of an image in the acquired data form specifically includes:
s4021, identifying a background area in an image according to background area information, wherein the background area information is background color;
s4022, deducting the background area to obtain a shooting subject, and rotating and zooming the shooting subject according to the subject pattern;
s4023, carrying out region division on the shooting subject according to key region information and general region information to obtain key regions and general regions, wherein the key region information comprises key region positions, and the general region information comprises general region positions.
In the embodiment of the invention, the background area information is background color, preferably, the background color and the product color have larger difference, so that the background area in the image can be easily and accurately identified, a shooting main body can be obtained after the background area is subtracted, the shooting main body is rotated and zoomed according to the main body pattern, so that the shooting main body and the positions of all parts in the main body pattern can be corresponding, the key area information comprises key area positions, and the general area information comprises general area positions, so that the key area and the general area in the main body pattern can be determined.
As shown in fig. 5, as a preferred embodiment of the present invention, the step of recovering the collected data form according to the form number specifically includes:
s501, a corresponding form template is called according to the form number, and item names in the acquired data form are restored according to the form template;
s502, restoring the image subjected to lossless compression processing in the acquired data form.
In the embodiment of the invention, after the server receives the acquired data form, the acquired data form is restored according to the form number, the corresponding form template is firstly called, the item names in the acquired data form are restored according to the text characters in the form template, the image subjected to lossless compression processing in the acquired data form is restored, the resolution of the image of the key area is restored, and the subsequent processing process is convenient.
As shown in fig. 6, an embodiment of the present invention further provides a data transmission system, where the system includes:
the data acquisition form module 100 is configured to receive a data acquisition instruction, and obtain an acquisition data form according to the data acquisition instruction, where the acquisition data form includes a form number, a project name, and acquisition content, and the acquisition content is a numerical value or an image;
the name compression processing module 200 is used for calling a corresponding form template according to the form number and performing name compression processing on the acquired data form according to the form template;
an image attribute determining module 300, configured to determine an image attribute according to a form number, where the image attribute includes an image position and an image compression scheme, and the image position corresponds to the image compression scheme one by one;
the image compression processing module 400 is configured to perform image compression processing on the acquired data form after the name compression processing according to the image attribute, and transmit the acquired data form after the image compression processing to the server;
the compressed data restoring module 500 is configured to receive the collected data form, restore the collected data form according to the form number, and include the project name in the restored collected data form.
In the embodiment of the invention, when a user needs intelligent equipment to collect operation data, test data or processing data, the user needs to input corresponding data collection instructions, each data collection instruction corresponds to a form number, the intelligent equipment can obtain a collection data form according to the data collection instructions, the collection data form comprises a form number, a project name and collection contents, and the collection contents are numerical values or images; then, a corresponding form template is called according to the form number, the acquired data form is subjected to name compression according to the form template, the form template only contains project names, and the acquired content part is empty, so that the project names in the acquired data form can be deleted, and the data volume is compressed; further, according to the embodiment of the invention, the image attribute can be determined according to the form number, wherein the image attribute comprises an image position and an image compression scheme, the image position is used for reflecting the specific position of the image in the acquired data form, the image compression scheme is a compression processing means of the image at the position, one image attribute possibly comprises a plurality of image positions and a plurality of image compression schemes, the content of the image attribute is possibly empty, and the corresponding acquired data form does not comprise the image; and then carrying out image compression processing on the acquired data form subjected to the name compression processing according to the image attribute, further compressing the data volume, transmitting the acquired data form subjected to the image compression processing to a server, and reducing the data transmission volume. After receiving the collected data form, the server restores the collected data form according to the form number, and the restored collected data form contains the project name, so that the integrity of the collected data form is ensured, and the follow-up traceability work is convenient.
As shown in fig. 7, as a preferred embodiment of the present invention, the name compression processing module 200 includes:
the form template output unit 201 is configured to input a form number into a number template library, and output a corresponding form template, where the number template library includes a plurality of form numbers and form templates, and the form numbers and the form templates are in one-to-one correspondence;
the text character deleting unit 202 is configured to compare the text characters on the form template with the text characters on the collected data form, and delete the text characters on the collected data form, which are identical in position and identical in text characters on the form template.
As shown in fig. 8, as a preferred embodiment of the present invention, the image compression processing module 400 includes:
a region information retrieving unit 401, configured to retrieve key region information, general region information, and background region information in an image compression scheme, where the key region information and the general region information form a main body pattern;
an image region determining unit 402, configured to determine an important region, a general region, and a background region of an image in the acquired data form;
the region compression processing unit 403 is configured to perform lossless compression processing on the key region, lossy compression processing on the general region, and clipping processing on the background region.
As shown in fig. 9, as a preferred embodiment of the present invention, the image area determining unit 402 includes:
a background region identifying subunit 4021, configured to identify a background region in an image according to background region information, where the background region information is a background color;
a shooting subject processing subunit 4022, configured to subtract the background area to obtain a shooting subject, and perform rotation and scaling processing on the shooting subject according to the subject pattern;
the region dividing sub-unit 4023 is configured to divide a region of the photographing subject according to the key region information and the general region information, to obtain a key region and a general region, where the key region information includes a key region position, and the general region information includes a general region position.
As shown in fig. 10, as a preferred embodiment of the present invention, the compressed data recovery module 500 includes:
the item name reduction unit 501 is configured to retrieve a corresponding form template according to a form number, and reduce an item name in the collected data form according to the form template;
and the image part restoring unit 502 is used for restoring the image subjected to lossless compression processing in the acquired data form.
The foregoing description of the preferred embodiments of the present invention should not be taken as limiting the invention, but rather should be understood to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (4)

1. A method of data transmission, the method comprising the steps of:
receiving a data acquisition instruction, and obtaining an acquisition data form according to the data acquisition instruction, wherein the acquisition data form comprises a form number, a project name and acquisition contents, and the acquisition contents are numerical values or images;
the corresponding form template is called according to the form number, and the name compression processing is carried out on the acquired data form according to the form template;
determining image attributes according to the form numbers, wherein the image attributes comprise image positions and image compression schemes, and the image positions and the image compression schemes are in one-to-one correspondence;
carrying out image compression processing on the acquired data form subjected to the name compression processing according to the image attribute, and transmitting the acquired data form subjected to the image compression processing to a server;
receiving an acquisition data form, and restoring the acquisition data form according to the form number, wherein the restored acquisition data form contains item names;
the method specifically comprises the steps of calling a corresponding form template according to a form number, and performing name compression processing on the acquired data form according to the form template, wherein the method specifically comprises the following steps of: inputting the form numbers into a number template library, and outputting corresponding form templates, wherein the number template library comprises a plurality of form numbers and form templates, and the form numbers and the form templates are in one-to-one correspondence; comparing the literal characters on the form template with the literal characters on the collected data form, and deleting the literal characters which are the same in position and the literal characters on the collected data form and the form template;
the step of performing image compression processing on the acquired data form after name compression processing according to the image attribute specifically comprises the following steps: retrieving key area information, general area information and background area information in an image compression scheme, wherein the key area information and the general area information form a main body pattern; determining key areas, general areas and background areas of images in the acquired data form; performing lossless compression treatment on the key region, performing lossy compression treatment on the general region, and performing cutting treatment on the background region;
the step of determining the key area, the general area and the background area of the image in the acquired data form specifically comprises the following steps: identifying a background area in the image according to background area information, wherein the background area information is background color; the background area is subtracted to obtain a shooting subject, and the shooting subject is rotated and zoomed according to the subject pattern; and carrying out region division on the shooting subject according to the key region information and the general region information to obtain a key region and a general region, wherein the key region information comprises key region positions, and the general region information comprises general region positions.
2. The method for transmitting data according to claim 1, wherein the step of recovering the collected data form according to the form number specifically comprises:
the corresponding form template is called according to the form number, and the item names in the acquired data form are restored according to the form template;
and restoring the image subjected to lossless compression processing in the acquired data form.
3. A data transmission system, the system comprising:
the data acquisition module is used for receiving the data acquisition instruction, and obtaining an acquisition data form according to the data acquisition instruction, wherein the acquisition data form comprises a form number, a project name and acquisition contents, and the acquisition contents are numerical values or images;
the name compression processing module is used for calling a corresponding form template according to the form number and carrying out name compression processing on the acquired data form according to the form template;
the image attribute determining module is used for determining image attributes according to the form numbers, wherein the image attributes comprise image positions and image compression schemes, and the image positions and the image compression schemes are in one-to-one correspondence;
the image compression processing module is used for carrying out image compression processing on the acquired data form subjected to the name compression processing according to the image attribute and transmitting the acquired data form subjected to the image compression processing to the server;
the compressed data reduction module is used for receiving the collected data form, reducing the collected data form according to the form number, wherein the reduced collected data form contains project names;
wherein, the name compression processing module includes: the form template output unit is used for inputting the form numbers into the number template library and outputting corresponding form templates, wherein the number template library comprises a plurality of form numbers and form templates, and the form numbers and the form templates are in one-to-one correspondence; the text character deleting unit is used for comparing the text characters on the form template with the text characters on the collected data form and deleting the text characters which are the same in position and the text characters on the collected data form and the form template;
wherein, the image compression processing module includes: the regional information retrieving unit is used for retrieving key regional information, general regional information and background regional information in the image compression scheme, wherein the key regional information and the general regional information form a main body pattern; the image area determining unit is used for determining an important area, a general area and a background area of the image in the acquired data form; the region compression processing unit is used for carrying out lossless compression processing on the key region, carrying out lossy compression processing on the general region and carrying out clipping processing on the background region;
wherein the image area determining unit includes: a background area identification subunit, configured to identify a background area in an image according to background area information, where the background area information is background color; the shooting main body processing subunit is used for deducting the background area to obtain a shooting main body, and rotating and zooming the shooting main body according to the main body pattern; the region dividing subunit is used for dividing the region of the shooting main body according to the key region information and the general region information to obtain a key region and a general region, wherein the key region information comprises key region positions, and the general region information comprises general region positions.
4. A data transmission system according to claim 3, wherein the compressed data recovery module comprises:
the item name reduction unit is used for calling a corresponding form template according to the form number and reducing the item name in the acquired data form according to the form template;
and the image part restoring unit is used for restoring the image subjected to lossless compression processing in the acquired data form.
CN202310416388.2A 2023-04-19 2023-04-19 Data transmission method and system Active CN116132431B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310416388.2A CN116132431B (en) 2023-04-19 2023-04-19 Data transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310416388.2A CN116132431B (en) 2023-04-19 2023-04-19 Data transmission method and system

Publications (2)

Publication Number Publication Date
CN116132431A CN116132431A (en) 2023-05-16
CN116132431B true CN116132431B (en) 2023-06-30

Family

ID=86303118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310416388.2A Active CN116132431B (en) 2023-04-19 2023-04-19 Data transmission method and system

Country Status (1)

Country Link
CN (1) CN116132431B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101755461A (en) * 2007-07-20 2010-06-23 富士胶片株式会社 Image processing apparatus, image processing method and program
CN103369317A (en) * 2012-03-23 2013-10-23 马维尔国际贸易有限公司 Method and apparatus for image data compression
CN109661779A (en) * 2016-12-06 2019-04-19 奥斯佩普尔有限公司 Method and system for compressed data
CN109784235A (en) * 2018-12-29 2019-05-21 广东益萃网络科技有限公司 Method for automatically inputting, device, computer equipment and the storage medium of paper form

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8674856B2 (en) * 2012-08-16 2014-03-18 International Business Machines Corporation Data compression utilizing longest common subsequence template
CN104484391B (en) * 2014-12-11 2017-11-21 北京国双科技有限公司 The computational methods and device of similarity of character string
CN105979224A (en) * 2016-06-23 2016-09-28 青岛歌尔声学科技有限公司 Head mount display, video output device and video processing method and system
CN109982085A (en) * 2017-12-28 2019-07-05 新岸线(北京)科技集团有限公司 A kind of method of high precision image mixing compression
CN108763350B (en) * 2018-05-15 2021-02-02 Oppo广东移动通信有限公司 Text data processing method and device, storage medium and terminal
CN113962211A (en) * 2021-10-27 2022-01-21 北京百度网讯科技有限公司 Multi-text difference identification method and device and electronic equipment
CN114501021A (en) * 2021-12-24 2022-05-13 国网山东省电力公司无棣县供电公司 Image compression transmission method and device for power system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101755461A (en) * 2007-07-20 2010-06-23 富士胶片株式会社 Image processing apparatus, image processing method and program
CN103369317A (en) * 2012-03-23 2013-10-23 马维尔国际贸易有限公司 Method and apparatus for image data compression
CN109661779A (en) * 2016-12-06 2019-04-19 奥斯佩普尔有限公司 Method and system for compressed data
CN109784235A (en) * 2018-12-29 2019-05-21 广东益萃网络科技有限公司 Method for automatically inputting, device, computer equipment and the storage medium of paper form

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于对象的静态图像压缩研究";田勇;《中国优秀硕士学位论文全文数据库》(第第03期期);第13-24页 *

Also Published As

Publication number Publication date
CN116132431A (en) 2023-05-16

Similar Documents

Publication Publication Date Title
CN108491367B (en) Report document generation method and device, computer equipment and storage medium
CN110266752B (en) Block chain information pushing method and device, computer equipment and storage medium
CN109726983A (en) Examine method for allocating tasks, device, computer equipment and storage medium
CN115776438B (en) Industrial control data transmission method and system
CN117391544B (en) Decoration project management method and system based on BIM
CN112613271A (en) Data paging method and device, computer equipment and storage medium
CN111104542B (en) Part identification management method and device
CN114817230A (en) Data stream filtering method and system
CN116132431B (en) Data transmission method and system
CN112948504B (en) Data acquisition method and device, computer equipment and storage medium
CN110265104B (en) Diagnostic report conformity detection method, device, computer equipment and storage medium
CN111858726A (en) Data processing method and device for data adapter, computer equipment and storage medium
CN115455266A (en) Automatic electronic file acquisition and archiving method and system
CN112732819A (en) ETL-based data processing method, device, equipment and storage medium
CN113806359A (en) Calendar data storage method and device, computer equipment and storage medium
CN113762155A (en) Land dynamic supervision method and device based on satellite remote sensing image
CN110718285B (en) Data archiving method, system, device and storage medium
CN112836033A (en) Business model management method, device, equipment and storage medium
CN108959486B (en) Audit field information acquisition method and device, computer equipment and storage medium
CN115297182B (en) Remote transmission method and system for control cabinet running state data
JP2020150509A (en) Digital Evidence Management Method and Digital Evidence Management System
EP3624023A1 (en) Method for data acquisition and combining
CN116244590B (en) Data acquisition method and system for army training effect evaluation
CN114519560A (en) Electronic document management system, method, computer device and storage medium
CN115100753B (en) Offline attendance checking method and device, computer equipment and storage medium

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