CN113259540A - Processing method, device and equipment for scanning image data and storage medium - Google Patents
Processing method, device and equipment for scanning image data and storage medium Download PDFInfo
- Publication number
- CN113259540A CN113259540A CN202011508128.0A CN202011508128A CN113259540A CN 113259540 A CN113259540 A CN 113259540A CN 202011508128 A CN202011508128 A CN 202011508128A CN 113259540 A CN113259540 A CN 113259540A
- Authority
- CN
- China
- Prior art keywords
- writing
- data
- preset
- image data
- area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title abstract description 11
- 238000004806 packaging method and process Methods 0.000 claims abstract description 35
- 238000000034 method Methods 0.000 claims abstract description 32
- 238000012545 processing Methods 0.000 claims abstract description 25
- 238000004590 computer program Methods 0.000 claims description 11
- 230000009191 jumping Effects 0.000 claims description 10
- 238000012856 packing Methods 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000012546 transfer Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007429 general method Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/32—Circuits 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/32358—Circuits 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 using picture signal storage, e.g. at transmitter
- H04N1/32363—Circuits 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 using picture signal storage, e.g. at transmitter at the transmitter or at the receiver
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Storing Facsimile Image Data (AREA)
- Facsimiles In General (AREA)
Abstract
The invention relates to the technical field of data processing application, and discloses a processing method of scanned image data, which comprises the following steps: firstly writing acquired image data into a preset data writing area, writing a preset interface rule into a preset interface rule area, then packaging the image data in the data writing area and the rule data in the interface rule area, and finally writing a packaged data packet into a preset frame format for packaging and then transmitting the packaged data packet to a PC terminal. The method saves the time for writing the interface rule by synchronously writing the interface rule when writing the image data, realizes the direct transfer and copying of the image data to the interface and transmits the image data to the PC terminal, reduces the two transfer and copying processes which take longer time into one time, and improves the efficiency of scanning data processing.
Description
Technical Field
The present invention relates to the field of data processing application technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing scanned image data.
Background
Nowadays, various types of image scanning systems and devices are widely used in the financial industry, such as various hardware devices including high-speed cameras, a4 scanners, bill machines, and the like. The devices establish physical connection with a computer (PC terminal) to acquire data and realize electronic recording and uploading of paper materials.
With the development of intelligent banks and the increase of services, the amount of data to be collected and processed is increasing, and therefore higher requirements are put forward on the efficiency of scanning equipment. At present, the process of collecting data by a scanning device and transmitting the data to a PC terminal needs to be processed by a plurality of steps, so that the time consumption is long, and the scanning efficiency is low.
Disclosure of Invention
Therefore, it is necessary to provide a method, an apparatus, a device and a storage medium for processing scanned image data to solve the problems of complicated processing procedure and long time consumption of scanned data, and to improve the scanning efficiency.
The embodiment of the invention provides a processing method of scanned image data, which comprises the following steps:
writing the scanned image data into a plurality of data writing areas preset in a memory;
writing a preset interface rule into a plurality of preset interface rule areas in a memory;
packing the image data of the data writing area and the regular data of the interface regular area;
writing the packed data packet into a preset frame format and packaging;
and transmitting the packaged data packet to a PC terminal.
A processing apparatus for scanning image data, the apparatus comprising:
the first writing module is used for writing the scanned image data into a plurality of data writing areas preset in the memory;
the second writing module is used for writing the preset interface rule into a plurality of preset interface rule areas in the memory;
the packaging module is used for packaging the image data of the data writing area and the regular data of the interface regular area;
the packaging module is used for packaging the data packet after the group packet is finished by writing a preset frame format;
and the transmission module is used for transmitting the packaged data packet to the PC terminal.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
writing the scanned image data into a plurality of data writing areas preset in a memory;
writing a preset interface rule into a plurality of preset interface rule areas in a memory;
packing the image data of the data writing area and the regular data of the interface regular area;
writing the packed data packet into a preset frame format and packaging;
and transmitting the packaged data packet to a PC terminal.
An apparatus comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
writing the scanned image data into a plurality of data writing areas preset in a memory;
writing a preset interface rule into a plurality of preset interface rule areas in a memory;
packing the image data of the data writing area and the regular data of the interface regular area;
writing the packed data packet into a preset frame format and packaging;
and transmitting the packaged data packet to a PC terminal.
The processing method and the device for scanning the image data write the acquired image data into a preset data writing area, write a preset interface rule into a preset interface rule area, package the image data in the data writing area and the rule data in the interface rule area, write a packaged data packet into a preset frame format, package and transmit the packaged data packet to a PC terminal. The method saves the time for writing the interface rule by synchronously writing the interface rule when writing the image data, realizes the direct transfer and copying of the image data to the interface and transmits the image data to the PC terminal, reduces the two transfer and copying processes which take longer time into one time, and improves the efficiency of scanning data processing.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow diagram illustrating an implementation of a process for scanning image data according to one embodiment;
FIG. 2 is a diagram illustrating a storage area of an interface rule area and a data writing area divided in a memory according to an embodiment;
FIG. 3 is a flowchart of a method for processing scanned image data in a general method;
FIG. 4 is a flowchart illustrating a method for processing scanned image data according to another embodiment;
FIG. 5 is a block diagram showing a configuration of a processing apparatus for scanning image data according to an embodiment;
fig. 6 is a block diagram of a scanning apparatus in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a processing method of scanned image data is proposed, the method comprising:
The method is suitable for most devices with scanning modules, including but not limited to: high-speed cameras, a4 scanners, ticket machines, etc.; meanwhile, the sensor is suitable for various image sensors, including CCD (charge coupled device), CIS (contact image sensor) and COMS (complementary metal oxide semiconductor) and other image sensors.
The processor writes image data output by the image sensor into the memory, and the processor may be a CPU with different architectures such as ARM or x86, or may be an FPGA (field programmable gate array). In practical application, the writing effect of the image data by using the FPGA is better, the FPGA has the characteristic of high-speed parallelism, the image data output by the image sensor can be collected and written into the memory, the collection and the writing are realized, and the scanning efficiency is improved. In addition, the FPGA can meet some high-speed requirements of the image sensor, for example, the CIS image sensor of the bill machine module requires 12us to collect one line of data, and the FPGA can also well finish the operation.
The data writing area is a storage area which is divided in the memory in advance and is used for storing the image data written by the CPU or the FPGA.
And 104, writing the preset interface rule into a plurality of preset interface rule areas in the memory.
The preset interface rule is an interface rule meeting the connection requirement of the current equipment and the PC terminal, and comprises information such as communication standards, related protocols and the like; the interface rule area is a storage area which is divided in the memory in advance and is used for storing the rule data written by the CPU or the FPGA.
And 106, packaging the image data of the data writing area and the regular data of the interface regular area.
Please refer to fig. 2, which is a schematic diagram of the memory area of the interface rule area and the data writing area divided in the memory. The preset interface rule area and the data writing area are arranged in sequence, such as the interface rule area 1, the data writing area 1, the interface rule area 2, the data writing area 2, the interface rule area 3, the data writing area 3, and so on. Specifically, the interface rule area is always in front of the corresponding data writing area, and when the interface rule area and the corresponding data writing area are full of data, the arranged rule data and the image data automatically form a data packet meeting the packaging requirement, so that the rapid packaging can be performed.
And step 108, writing the data packet after the grouping into a preset frame format and packaging.
The packed data packet can be directly stored in an interface memory according to the requirement of the interface rule, and the corresponding preset frame format is packaged according to different service requirements, so that the corresponding service can be directly processed after the data packet is transmitted to the PC terminal.
And step 110, transmitting the packaged data packet to a PC terminal.
Referring to fig. 3 and 4, fig. 3 is a flowchart illustrating a general scanned image data processing method, and fig. 4 is a flowchart illustrating another embodiment of a scanned image data processing method. As shown in fig. 3, in a general processing method, after writing image data into a memory, a processor needs to move and copy the image data into a CPU to perform frame format writing of an interface rule and a service rule, and after meeting the requirements of the interface rule, the processor can move and copy the image data into the interface memory again, and finally transmit the encapsulated data to a PC terminal; in the embodiment shown in fig. 4, the interface rule is synchronously written when the image data is written, so that the time for writing the interface rule when the image data is moved and copied to the CPU is saved, the image data can be directly moved and copied to the interface and then transmitted to the PC terminal, the two moving and copying processes which take a long time are reduced to one, and the efficiency of scanning data processing is improved.
The processing method and the device for scanning the image data write the acquired image data into a preset data writing area, write a preset interface rule into a preset interface rule area, package the image data in the data writing area and the rule data in the interface rule area, write a packaged data packet into a preset frame format, package and transmit the packaged data packet to a PC terminal. The method saves the time for writing the interface rule by synchronously writing the interface rule when writing the image data, realizes the direct transfer and copying of the image data to the interface and transmits the image data to the PC terminal, reduces the two transfer and copying processes which take longer time into one time, and improves the efficiency of scanning data processing.
In one embodiment, writing the scanned image data into a plurality of data writing areas preset in a memory includes: writing data according to a preset data writing area, and jumping to the next data writing area for writing when one data writing area is full; the data writing areas are preset continuous storage line spaces, and one interface rule area is arranged between every two data writing areas.
The preset data writing area is a continuous storage line space, an interface rule area is spaced between the two data writing areas, the interface rule area is also a continuous storage line space, and illustratively, the processor skipping writing of the image data may be: skipping 1-5 lines of interface rule area, writing image data in 6-15 lines; after 15 lines are written, the interface rule area of 16-20 lines is skipped, and the image data is written in 21-30 lines, and so on.
The data in each data writing area is a data packet, and other data packets are fully written except for the situation that the last data packet may not be fully written. And after the regular data in the interface regular area is written, quickly packaging.
In one embodiment, writing the scanned image data into a plurality of data writing areas preset in the memory further includes: writing the scanned image data into a data writing area with a preset line number of 3N in a memory, and sequentially writing RGB channel information of the image data according to the line, wherein N is a positive integer.
In the scanning process, the processor collects image data line by line, and writes the RGB information of each line of image data into the data writing area in sequence according to line, wherein the writing sequence of the R, G, B information is unlimited. Furthermore, each data packet contains RGB information corresponding to partial image data and is classified in advance according to rows, so that the scanned image data can be spliced directly after the data packets are unpacked at the PC terminal conveniently, the time for classifying, sequencing and copying the data at the PC terminal is saved, and the efficiency of processing the scanned data is improved.
In one embodiment, writing a preset interface rule into a plurality of preset interface rule areas in a memory includes: writing the interface rule according to a preset rule writing area, and jumping to the next interface rule area for writing when the interface rule is written in one interface rule area; the interface regular areas are preset continuous storage line spaces, and a data writing area is arranged between the two interface regular areas at an interval.
The processor can be a CPU or an FPGA; after the CPU informs the FPGA of the specific line number of the image data to be written in the skipping way, the processor writes a preset interface rule into a preset storage line space in the memory, and after the interface rule is completely written, the FPGA writes in the skipping way of the image data. It can be understood that there is no limitation on the writing sequence of the image data and the interface rule data, and the skipping writing of the interface rule can be performed by the processor after the skipping writing of the image data is completed by the FPGA.
In an embodiment, the writing the preset interface rule into a plurality of preset interface rule areas in the memory further includes: writing preset interface rules into a plurality of preset interface rule areas in the memory, and writing part or all of the interface rule areas in parallel.
The processor is an FPGA, and the parallel writing of the interface rules is performed on part or all of the preset interface rule areas by utilizing the characteristic that the FPGA can perform high-speed parallel writing. Specifically, the CPU informs the FPGA of the specific number of lines and the interface rule to be subjected to the line skip writing of the image data, the FPGA performs the line skip writing of the interface rule and the image data, and the writing sequence is not limited. It can be understood that the writing interface rule is preferably written by taking the FPGA as the processor, because the FPGA can write the interface rule in parallel, and the image data can be packed in parallel after being written, the efficiency is higher.
In an embodiment, the writing the preset interface rule into a plurality of preset interface rule areas in the memory further includes: and writing the interface rule meeting the requirement of transmitting to the PC terminal into a preset interface rule area in a memory as the preset interface rule so that the data packet can be directly transmitted to the PC terminal.
The preset interface rule is determined according to an interface mode of connecting the actual scanning device with the PC terminal, such as scsi (small Computer Standard interface), USB, IEEE1394, and the like, which are common in the market, and a communication protocol and a Standard corresponding to the interface are used as the preset interface rule. In a general flow, a writing interface rule is a step which is performed when image data is moved and copied to a CPU for packaging after the image data is completely written into a memory; when the image data is written in, the interface rule is written in, the packed data packet meets the rule requirement of the interface, and can be directly moved and copied to the interface memory, so that the step of moving and copying to the CPU is omitted, and a large amount of time is saved.
In an embodiment, the encapsulating the writing of the data packet after the completion of the grouping into a preset frame format includes: after the packaging is finished, the data packet is moved to an interface connected with a PC terminal; and packaging the data packet by adopting the preset frame format which meets the service requirement, so that the data packet can be directly subjected to service processing after being transmitted to the PC terminal.
After the package is finished, the data packet is moved and copied to a memory area in charge of an interface connected with the PC terminal, wherein the area can be a preset memory area or a memory area divided by a CPU instruction according to the application of the interface after the package is finished. And writing and packaging the final frame format in an interface memory, wherein the frame format is determined according to service requirements, for example, the final combined file at the PC terminal can be a JPG format image file, and can also be a file in other formats such as PNG, PDF and the like. And finally, unpacking the packaged data packet at the PC terminal, combining the arranged image RGB data into a complete image, and outputting a corresponding image file according to different frame formats so as to meet different service requirements.
As shown in fig. 5, there is provided a processing apparatus for scanning image data, the apparatus comprising:
a first writing module 10, configured to write the scanned image data into a plurality of data writing areas preset in a memory;
a second writing module 20, configured to write the preset interface rule into a plurality of interface rule areas preset in the memory;
a packaging module 30 for packaging the image data of the data writing area and the regular data of the interface regular area;
the encapsulating module 40 is configured to encapsulate the data packet after the completion of the packet by writing the data packet into a preset frame format;
and the transmission module 50 is used for transmitting the packaged data packet to the PC terminal.
In one embodiment, writing the scanned image data into a plurality of data writing areas preset in a memory includes: writing data according to a preset data writing area, and jumping to the next data writing area for writing when one data writing area is full; the data writing areas are preset continuous storage line spaces, and one interface rule area is arranged between every two data writing areas.
In one embodiment, writing the scanned image data into a plurality of data writing areas preset in the memory further includes: writing the scanned image data into a data writing area with a preset line number of 3N in a memory, and sequentially writing RGB channel information of the image data according to the line, wherein N is a positive integer.
In one embodiment, writing a preset interface rule into a plurality of preset interface rule areas in a memory includes: writing the interface rule according to a preset rule writing area, and jumping to the next interface rule area for writing when the interface rule is written in one interface rule area; the interface regular areas are preset continuous storage line spaces, and a data writing area is arranged between the two interface regular areas at an interval.
In an embodiment, the writing the preset interface rule into a plurality of preset interface rule areas in the memory further includes: writing preset interface rules into a plurality of preset interface rule areas in the memory, and writing part or all of the interface rule areas in parallel.
In an embodiment, the writing the preset interface rule into a plurality of preset interface rule areas in the memory further includes: and writing the interface rule meeting the requirement of transmitting to the PC terminal into a preset interface rule area in a memory as the preset interface rule so that the data packet can be directly transmitted to the PC terminal.
In an embodiment, the encapsulating the writing of the data packet after the completion of the grouping into a preset frame format includes: after the packaging is finished, the data packet is moved to an interface connected with a PC terminal; and packaging the data packet by adopting the preset frame format which meets the service requirement, so that the data packet can be directly subjected to service processing after being transmitted to the PC terminal.
Fig. 6 shows an internal structural diagram of the scanning device in one embodiment. As shown in fig. 6, the scanning device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the scanning device stores an operating system and may also store a computer program which, when executed by the processor, causes the processor to implement the method of processing scanned image data as described above. The internal memory may also store a computer program, and when the computer program is executed by the processor, the computer program may cause the processor to execute the processing method for scanning the image data. It will be appreciated by those skilled in the art that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration relevant to the present application, and does not constitute a limitation on the scanning device to which the present application is applied, and a particular scanning device may include more or less components than those shown in the drawings, or combine certain components, or have a different arrangement of components.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
writing the scanned image data into a plurality of data writing areas preset in a memory; writing a preset interface rule into a plurality of preset interface rule areas in a memory; packing the image data of the data writing area and the regular data of the interface regular area; writing the packed data packet into a preset frame format and packaging; and transmitting the packaged data packet to a PC terminal.
In one embodiment, writing the scanned image data into a plurality of data writing areas preset in a memory includes: writing data according to a preset data writing area, and jumping to the next data writing area for writing when one data writing area is full; the data writing areas are preset continuous storage line spaces, and one interface rule area is arranged between every two data writing areas.
In one embodiment, writing the scanned image data into a plurality of data writing areas preset in the memory further includes: writing the scanned image data into a data writing area with a preset line number of 3N in a memory, and sequentially writing RGB channel information of the image data according to the line, wherein N is a positive integer.
In one embodiment, writing a preset interface rule into a plurality of preset interface rule areas in a memory includes: writing the interface rule according to a preset rule writing area, and jumping to the next interface rule area for writing when the interface rule is written in one interface rule area; the interface regular areas are preset continuous storage line spaces, and a data writing area is arranged between the two interface regular areas at an interval.
In an embodiment, the writing the preset interface rule into a plurality of preset interface rule areas in the memory further includes: writing preset interface rules into a plurality of preset interface rule areas in the memory, and writing part or all of the interface rule areas in parallel.
In an embodiment, the writing the preset interface rule into a plurality of preset interface rule areas in the memory further includes: and writing the interface rule meeting the requirement of transmitting to the PC terminal into a preset interface rule area in a memory as the preset interface rule so that the data packet can be directly transmitted to the PC terminal.
In an embodiment, the encapsulating the writing of the data packet after the completion of the grouping into a preset frame format includes: after the packaging is finished, the data packet is moved to an interface connected with a PC terminal; and packaging the data packet by adopting the preset frame format which meets the service requirement, so that the data packet can be directly subjected to service processing after being transmitted to the PC terminal.
A scanning device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
writing the scanned image data into a plurality of data writing areas preset in a memory; writing a preset interface rule into a plurality of preset interface rule areas in a memory; packing the image data of the data writing area and the regular data of the interface regular area; writing the packed data packet into a preset frame format and packaging; and transmitting the packaged data packet to a PC terminal.
In one embodiment, writing the scanned image data into a plurality of data writing areas preset in a memory includes: writing data according to a preset data writing area, and jumping to the next data writing area for writing when one data writing area is full; the data writing areas are preset continuous storage line spaces, and one interface rule area is arranged between every two data writing areas.
In one embodiment, writing the scanned image data into a plurality of data writing areas preset in the memory further includes: writing the scanned image data into a data writing area with a preset line number of 3N in a memory, and sequentially writing RGB channel information of the image data according to the line, wherein N is a positive integer.
In one embodiment, writing a preset interface rule into a plurality of preset interface rule areas in a memory includes: writing the interface rule according to a preset rule writing area, and jumping to the next interface rule area for writing when the interface rule is written in one interface rule area; the interface regular areas are preset continuous storage line spaces, and a data writing area is arranged between the two interface regular areas at an interval.
In an embodiment, the writing the preset interface rule into a plurality of preset interface rule areas in the memory further includes: writing preset interface rules into a plurality of preset interface rule areas in the memory, and writing part or all of the interface rule areas in parallel.
In an embodiment, the writing the preset interface rule into a plurality of preset interface rule areas in the memory further includes: and writing the interface rule meeting the requirement of transmitting to the PC terminal into a preset interface rule area in a memory as the preset interface rule so that the data packet can be directly transmitted to the PC terminal.
In an embodiment, the encapsulating the writing of the data packet after the completion of the grouping into a preset frame format includes: after the packaging is finished, the data packet is moved to an interface connected with a PC terminal; and packaging the data packet by adopting the preset frame format which meets the service requirement, so that the data packet can be directly subjected to service processing after being transmitted to the PC terminal.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile 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), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express one implementation mode of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method of processing scanned image data, the method comprising:
writing the scanned image data into a plurality of data writing areas preset in a memory;
writing a preset interface rule into a plurality of preset interface rule areas in a memory;
packing the image data of the data writing area and the regular data of the interface regular area;
writing the packed data packet into a preset frame format and packaging;
and transmitting the packaged data packet to a PC terminal.
2. The method according to claim 1, wherein writing the scanned image data into a plurality of data writing areas preset in a memory comprises:
writing data according to a preset data writing area, and jumping to the next data writing area for writing when one data writing area is full; the data writing areas are preset continuous storage line spaces, and one interface rule area is arranged between every two data writing areas.
3. The method according to claim 2, wherein the writing the scanned image data into a plurality of data writing areas preset in the memory further comprises:
writing the scanned image data into a data writing area with a preset line number of 3N in a memory, and sequentially writing RGB channel information of the image data according to the line, wherein N is a positive integer.
4. The method according to claim 1, wherein writing the predetermined interface rule into a plurality of predetermined interface rule areas in the memory comprises:
writing the interface rule according to a preset rule writing area, and jumping to the next interface rule area for writing when the interface rule is written in one interface rule area; the interface regular areas are preset continuous storage line spaces, and a data writing area is arranged between the two interface regular areas at an interval.
5. The method according to claim 1, wherein writing the predetermined interface rule into a plurality of predetermined interface rule areas in the memory further comprises:
writing preset interface rules into a plurality of preset interface rule areas in the memory, and writing part or all of the interface rule areas in parallel.
6. The method according to claim 4 or 5, wherein writing the predetermined interface rule into a plurality of predetermined interface rule areas in the memory further comprises:
and writing the interface rule meeting the requirement of transmitting to the PC terminal into a preset interface rule area in a memory as the preset interface rule so that the data packet can be directly transmitted to the PC terminal.
7. The method of claim 1, wherein encapsulating the packed data packet write in a predetermined frame format comprises:
after the packaging is finished, the data packet is moved to an interface connected with a PC terminal;
and packaging the data packet by adopting the preset frame format which meets the service requirement, so that the data packet can be directly subjected to service processing after being transmitted to the PC terminal.
8. A processing apparatus for scanning image data, the apparatus comprising:
the first writing module is used for writing the scanned image data into a plurality of data writing areas preset in the memory;
the second writing module is used for writing the preset interface rule into a plurality of preset interface rule areas in the memory;
the packaging module is used for packaging the image data of the data writing area and the regular data of the interface regular area;
the packaging module is used for packaging the data packet after the group packet is finished by writing a preset frame format;
and the transmission module is used for transmitting the packaged data packet to the PC terminal.
9. A computer-readable storage medium, characterized in that a computer program is stored which, when being executed by a processor, causes the processor to carry out the steps of the method of processing scanned image data according to any one of claims 1 to 7.
10. A scanning device, characterized by comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to carry out the steps of the method of processing scanned image data according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011508128.0A CN113259540B (en) | 2020-12-18 | 2020-12-18 | Processing method, device, equipment and storage medium for scanning image data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011508128.0A CN113259540B (en) | 2020-12-18 | 2020-12-18 | Processing method, device, equipment and storage medium for scanning image data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113259540A true CN113259540A (en) | 2021-08-13 |
CN113259540B CN113259540B (en) | 2024-04-02 |
Family
ID=77180647
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011508128.0A Active CN113259540B (en) | 2020-12-18 | 2020-12-18 | Processing method, device, equipment and storage medium for scanning image data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113259540B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1571467A (en) * | 2003-03-28 | 2005-01-26 | 兄弟工业株式会社 | Data processing device, facsimile machine having data processing function, data managing device associated with the data processing device and computer program |
CN101060628A (en) * | 2006-04-17 | 2007-10-24 | 松下电器产业株式会社 | Image data transfer method, image processing device, and imaging system |
CN101118568A (en) * | 2007-09-19 | 2008-02-06 | 中国科学院上海技术物理研究所 | Device and method for outputting signal of emulation infrared detector |
US20080239359A1 (en) * | 2007-03-30 | 2008-10-02 | Brother Kogyo Kabushiki Kaisha | Image Forming Device |
US20140280248A1 (en) * | 2013-03-14 | 2014-09-18 | International Business Machines Corporation | Row-based data filtering at a database level |
CN107464149A (en) * | 2017-09-29 | 2017-12-12 | 深圳怡化电脑股份有限公司 | It is a kind of to be used to service method, apparatus, equipment and the storage medium guided |
CN108228490A (en) * | 2018-01-26 | 2018-06-29 | 武汉精测电子集团股份有限公司 | A kind of driving method based on PCIe card high speed data transfer |
CN108259698A (en) * | 2018-03-22 | 2018-07-06 | 深圳怡化电脑股份有限公司 | Image scan method, system, device and computer readable storage medium |
CN110519497A (en) * | 2019-08-28 | 2019-11-29 | 中国大恒(集团)有限公司北京图像视觉技术分公司 | A kind of zero-copy triggering collection device and method based on VDMA |
CN111953517A (en) * | 2020-07-09 | 2020-11-17 | 北京思特奇信息技术股份有限公司 | Method and system for realizing hot loading of business rules |
-
2020
- 2020-12-18 CN CN202011508128.0A patent/CN113259540B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1571467A (en) * | 2003-03-28 | 2005-01-26 | 兄弟工业株式会社 | Data processing device, facsimile machine having data processing function, data managing device associated with the data processing device and computer program |
CN101060628A (en) * | 2006-04-17 | 2007-10-24 | 松下电器产业株式会社 | Image data transfer method, image processing device, and imaging system |
US20080239359A1 (en) * | 2007-03-30 | 2008-10-02 | Brother Kogyo Kabushiki Kaisha | Image Forming Device |
CN101118568A (en) * | 2007-09-19 | 2008-02-06 | 中国科学院上海技术物理研究所 | Device and method for outputting signal of emulation infrared detector |
US20140280248A1 (en) * | 2013-03-14 | 2014-09-18 | International Business Machines Corporation | Row-based data filtering at a database level |
CN107464149A (en) * | 2017-09-29 | 2017-12-12 | 深圳怡化电脑股份有限公司 | It is a kind of to be used to service method, apparatus, equipment and the storage medium guided |
CN108228490A (en) * | 2018-01-26 | 2018-06-29 | 武汉精测电子集团股份有限公司 | A kind of driving method based on PCIe card high speed data transfer |
CN108259698A (en) * | 2018-03-22 | 2018-07-06 | 深圳怡化电脑股份有限公司 | Image scan method, system, device and computer readable storage medium |
CN110519497A (en) * | 2019-08-28 | 2019-11-29 | 中国大恒(集团)有限公司北京图像视觉技术分公司 | A kind of zero-copy triggering collection device and method based on VDMA |
CN111953517A (en) * | 2020-07-09 | 2020-11-17 | 北京思特奇信息技术股份有限公司 | Method and system for realizing hot loading of business rules |
Non-Patent Citations (2)
Title |
---|
S. W. KIM ET AL.: "Learning to Simulate Dynamic Environments With GameGAN", 《2020 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR)》, pages 1228 - 1237 * |
徐益: "基于FPGA的高速串行CMOS工业相机", 《中国优秀硕士学位论文全文数据库信息科技辑(月刊)》, no. 2016 * |
Also Published As
Publication number | Publication date |
---|---|
CN113259540B (en) | 2024-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11003891B2 (en) | Image processing method and apparatus, and electronic device | |
JP5121291B2 (en) | Data transfer system | |
US20230259468A1 (en) | Multi-core processing system and inter-core communication method therefor, and storage medium | |
US8537407B2 (en) | Image reading device, correction method, and image processing method using an image reading device | |
US20100202708A1 (en) | Image processing apparatus and image processing method | |
CN111079858A (en) | Encrypted data processing method and device | |
WO2023197507A1 (en) | Video data processing method, system, and apparatus, and computer readable storage medium | |
CN102750689A (en) | Image processing apparatus and control method thereof | |
US20240265496A1 (en) | Image processing method, apparatus and device | |
CN113259540B (en) | Processing method, device, equipment and storage medium for scanning image data | |
US7529260B2 (en) | Packet transmission apparatus, packet transmission system and packet transmission method | |
CN112765057A (en) | Data transmission method, PCIE system, equipment and storage medium | |
CN116112826B (en) | SENT data acquisition method, computer equipment and storage medium | |
CN111327905A (en) | Preprocessing method and system for realizing similar image compression based on FPGA | |
CN111459879A (en) | Data processing method and system on chip | |
CN113792203B (en) | Method and system for multiplexing annotation data, electronic equipment and readable storage medium | |
CN115955571A (en) | Image storage method, device and system for embedded equipment | |
US9086951B2 (en) | Image reading apparatus | |
CN112712167B (en) | Memory access method and system supporting acceleration of various convolutional neural networks | |
CN109947371B (en) | Data recording method, device, memory and T-BOX | |
CN113253915A (en) | Method and apparatus for processing scanned image data, medium, and scanning device | |
CN114328747A (en) | Data synchronization method, data synchronization device, computer equipment and medium | |
US20050134877A1 (en) | Color image processing device and color image processing method | |
JP2008068547A (en) | Image forming device | |
CN212873459U (en) | System for data compression storage |
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 |