CN113259540B - Processing method, device, equipment and storage medium for scanning image data - Google Patents
Processing method, device, equipment and storage medium for scanning image data Download PDFInfo
- Publication number
- CN113259540B CN113259540B CN202011508128.0A CN202011508128A CN113259540B CN 113259540 B CN113259540 B CN 113259540B CN 202011508128 A CN202011508128 A CN 202011508128A CN 113259540 B CN113259540 B CN 113259540B
- Authority
- CN
- China
- Prior art keywords
- writing
- data
- preset
- area
- rule
- 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
Links
- 238000003672 processing method Methods 0.000 title abstract description 10
- 238000000034 method Methods 0.000 claims abstract description 33
- 238000012545 processing Methods 0.000 claims abstract description 24
- 238000004806 packaging method and process Methods 0.000 claims abstract description 17
- 238000005538 encapsulation Methods 0.000 claims description 13
- 230000009191 jumping Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000007429 general method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
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)
- Facsimiles In General (AREA)
- Storing Facsimile Image Data (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: writing the acquired image data into a preset data writing area, writing a preset interface rule into a preset interface rule area, packaging the image data of the data writing area and the rule data of the interface rule area, and finally writing the packaged data package into a preset frame format for packaging and then transmitting to a PC terminal. According to the method, the interface rule is synchronously written when the image data is written, so that the time for carrying out interface rule writing by carrying and copying the image data into the CPU in a general scheme is saved, the image data can be directly carried and copied to the interface to be transmitted to the PC terminal, the carrying and copying process with long time consumption for two times is shortened to one time, and the scanning data processing efficiency is improved.
Description
Technical Field
The present invention relates to the field of data processing applications, 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 applied to various hardware devices in the financial industry, such as high-speed cameras, A4 scanners, bill machines, and the like. The devices are in physical connection with a computer (PC terminal) to acquire data, so that the electronic recording and uploading of paper materials are realized.
With the development of intelligent banks, the data volume required to be collected and processed is increasing, so that higher requirements are also put on the efficiency of scanning equipment. At present, the process from the data acquisition of the scanning device to the transmission to the PC terminal needs to be processed in a plurality of steps, which takes a long time, and results in low scanning efficiency.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a method, apparatus, device and storage medium for processing scanned image data, which aims to solve the problems of complicated process and long time consumption of scanned data processing and improve 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 interface rule areas preset in the memory;
packaging the image data of the data writing area and the rule data of the interface rule area;
writing the data packet after the completion of the packet grouping into a preset frame format for encapsulation;
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 a preset interface rule into a plurality of interface rule areas preset in the memory;
the grouping module is used for grouping the image data of the data writing area and the rule data of the interface rule area;
the packaging module is used for writing the data packet after the completion of the grouping into a preset frame format for packaging;
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 interface rule areas preset in the memory;
packaging the image data of the data writing area and the rule data of the interface rule area;
writing the data packet after the completion of the packet grouping into a preset frame format for encapsulation;
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 interface rule areas preset in the memory;
packaging the image data of the data writing area and the rule data of the interface rule area;
writing the data packet after the completion of the packet grouping into a preset frame format for encapsulation;
and transmitting the packaged data packet to a PC terminal.
The processing method and the processing device for the scanned image data are characterized in that firstly, the acquired image data are written into a preset data writing area, a preset interface rule is written into a preset interface rule area, then, the image data in the data writing area and the rule data in the interface rule area are packed, and finally, the packed data packet is written into a preset frame format for packaging and then is transmitted to the PC terminal. According to the method, the interface rule is synchronously written when the image data is written, so that the time for carrying out interface rule writing by carrying and copying the image data into the CPU in a general scheme is saved, the image data can be directly carried and copied to the interface to be transmitted to the PC terminal, the carrying and copying process with long time consumption for two times is shortened to one time, and the scanning data processing efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
FIG. 1 is a flow chart of an implementation of a method of processing scanned image data in one embodiment;
FIG. 2 is a schematic diagram of a memory area of an interface rule area and a data writing area divided in a memory according to an embodiment;
FIG. 3 is a flow chart of an implementation of a method for processing scanned image data in a general method;
FIG. 4 is a flowchart showing an implementation of a method for processing scanned image data in yet another embodiment;
FIG. 5 is a block diagram of a processing device for scanning image data in one embodiment;
fig. 6 is a block diagram of a scanning device in one embodiment.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, a processing method of scanned image data is proposed, the method comprising:
step 102, writing the scanned image data into a plurality of data writing areas preset in the memory.
The method is suitable for most devices with scanning modules, including but not limited to: high-speed scanner, A4 scanner, bill machine, etc.; meanwhile, the method is suitable for various image sensors, including CCD (charge coupled device), CIS (contact image sensor), COMS and other image sensors.
The processor writes the 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 (FieldProgrammable GateArray ). In practical application, the writing effect of the image data is better by using the FPGA, the FPGA has the characteristic of high-speed parallelism, and the image data output by the image sensor can be collected and written into the memory at the same time, so that the image data can be collected and written at the same time, 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 is required to acquire one line of data by 12us, and the FPGA can be well completed.
The data writing area is a storage area which is divided in the memory in advance and is used for storing image data written by the CPU or the FPGA.
Step 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 conforming to the connection requirement of the current equipment and the PC terminal, and comprises information such as a communication standard, a related protocol and the like; the interface rule area is a storage area which is divided in the memory in advance and is used for storing rule data written by the CPU or the FPGA.
And 106, packaging the image data of the data writing area and the rule data of the interface rule area.
Referring to fig. 2, a schematic diagram of a storage area of an interface rule area and a data writing area divided in a memory is shown. The preset interface rule area and the data writing area are sequentially arranged, such as an interface rule area 1, a data writing area 1, an interface rule area 2, a data writing area 2, an interface rule area 3, a data writing area 3, and the like. Specifically, the interface rule area is always in front of the corresponding data writing area, and after the interface rule area and the corresponding data writing area are fully written, the arranged rule data and the image data automatically form a data packet meeting the packet-forming requirement, so that fast packet forming can be performed.
And step 108, writing the data packet after the completion of the grouping into a preset frame format for encapsulation.
The data packet after being packed meets the requirement of interface rule, and may be stored directly into interface memory to complete the package of corresponding preset frame format based on different service requirement, so that the corresponding service may be processed directly after being transmitted to PC terminal.
And 110, transmitting the packaged data packet to a PC terminal.
Referring to fig. 3 and 4, fig. 3 is a flowchart illustrating an implementation of a general scanned image data processing method, and fig. 4 is a flowchart illustrating an implementation of a scanned image data processing method according to another embodiment. As shown in fig. 3, in a general processing method, after the processor writes the image data into the memory, the processor needs to move and copy the image data into the CPU to perform frame format writing of interface rules and service rules, and after meeting the requirements of the interface rules, the processor can move and copy the image data into the interface memory again, and finally, the packaged data is transmitted to the PC terminal; in the embodiment shown in fig. 4, by synchronously writing the interface rules when writing the image data, the time for carrying out interface rule writing when originally carrying out moving copying of the image data into the CPU is saved, the effect that the image data can be directly moved and copied to the interface and then transmitted to the PC terminal is realized, the moving copying process with long time consumption for two times is reduced to one time, and the efficiency of scanning data processing is improved.
The processing method and the processing device for the scanned image data are characterized in that firstly, the acquired image data are written into a preset data writing area, a preset interface rule is written into a preset interface rule area, then, the image data in the data writing area and the rule data in the interface rule area are packed, and finally, the packed data packet is written into a preset frame format for packaging and then is transmitted to the PC terminal. According to the method, the interface rule is synchronously written when the image data is written, so that the time for carrying out interface rule writing by carrying and copying the image data into the CPU in a general scheme is saved, the image data can be directly carried and copied to the interface to be transmitted to the PC terminal, the carrying and copying process with long time consumption for two times is shortened to one time, and the scanning data processing efficiency is improved.
In one embodiment, writing 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 the two data writing areas.
The preset data writing area is a continuous storage line space, an interface rule area is arranged between the two data writing areas, the interface rule area is also a continuous storage line space, and the processor skipping writing of the image data can be: skipping 1-5 lines of interface rule areas, and writing image data in 6-15 lines; after 15 lines are written, the interface rule area of 16-20 lines is skipped, the image data is written in 21-30 lines, and so on.
The data of each data writing area is a data packet, and other data packets are full except the situation that the last data packet may not be full. And after the rule data of the interface rule area is written, fast packing can be performed.
In one embodiment, writing the scanned image data into a plurality of data writing areas preset in the memory, further includes: and writing the scanned image data into a data writing area with the preset line number of 3N in a memory, and sequentially writing RGB channel information of the image data according to lines, wherein N is a positive integer.
In the scanning process, the processor collects image data line by line, and writes RGB information of each line of image data into the data writing area in sequence according to lines, wherein the writing sequence of R, G, B information is unlimited. Furthermore, each data packet contains RGB information corresponding to part of image data and is classified in advance according to the progress, so that the splicing of the scanning image data can be directly carried out after the PC terminal unpacks, the time for classifying, sorting and copying the data at the PC terminal is saved, and the efficiency of scanning data processing is improved.
In one embodiment, writing a preset interface rule into a plurality of preset interface rule areas in the memory includes: writing the interface rules according to a preset rule writing area, and jumping to the next interface rule area for writing when the interface rules are written in one interface rule area; the interface rule areas are preset continuous storage line spaces, and a data writing area is arranged between the two interface rule areas at intervals.
The processor may be a CPU or an FPGA; after the CPU informs the FPGA of the specific line number to be subjected to line skipping writing of the image data, the processor writes the preset interface rule into the preset storage line space in the memory, and after the interface rule is completely written, the FPGA performs line skipping writing of the image data. It can be understood that the writing sequence of the image data and the interface rule data is not limited, or the image data can be written by the FPGA in a skip mode, and then the processor performs the skip writing of the interface rule.
In one embodiment, the writing the preset interface rule into the preset interface rule areas in the memory further includes: writing a preset interface rule into a plurality of preset interface rule areas in a memory, and writing part or all of the interface rule areas in parallel.
The processor is an FPGA, and parallel writing of interface rules is performed on a 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 specific line numbers and interface rules for performing skip writing of the image data, and the FPGA performs the interface rules and the skip writing of the image data, so that the writing sequence is unlimited. It can be understood that the FPGA is used as a writing interface rule of the processor to be more preferable, because the FPGA can write the interface rule in parallel, and can also perform the grouping in parallel after the writing of the image data is completed, so that the efficiency is higher.
In one embodiment, the writing the preset interface rule into the preset interface rule areas in the memory further includes: and writing the interface rule meeting the requirement of being transmitted to the PC terminal into a preset interface rule area in the 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, etc. which are common in the market, and a communication protocol and standard corresponding to the interface are used as the preset interface rule. In a general flow, the writing interface rule is a step performed when the image data is moved and copied to a CPU for packaging after the image data is completely written into a memory; the interface rule is written while the image data is written, and the data packet after the packet is assembled accords with the rule requirement of the interface, so that the data packet can be directly moved and copied to the interface memory, the step of moving and copying to the CPU is omitted, and a large amount of time is saved.
In one embodiment, the writing the data packet after the completion of the grouping into the preset frame format for encapsulation includes: after the package is completed, the data package is moved to an interface connected with the PC terminal; and encapsulating the data packet by adopting the preset frame format meeting the service requirement, so that the data packet can be directly processed after being transmitted to a PC terminal.
After the package is completed, the data package is moved and copied to a memory area in charge of an interface connected with the PC terminal, wherein the memory area can be a preset memory area or a memory area divided by a CPU instruction according to an interface application after the package is completed. 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 frame format can be a JPG format image file or a PNG, PDF and other format files which are finally combined in a PC terminal. And finally, after unpacking the packed data packet, the PC terminal combines the arranged image RGB data into a complete image, and outputs corresponding image files according to different frame formats 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 scanned image data into a plurality of data writing areas preset in the memory;
the second writing module 20 is configured to write a preset interface rule into a plurality of preset interface rule areas in the memory;
the package assembly module 30 packages the image data of the data writing area and the rule data of the interface rule area;
the encapsulation module 40 is configured to write the data packet after the completion of the packetization into a preset frame format for encapsulation;
and the transmission module 50 is used for transmitting the packaged data packet to the PC terminal.
In one embodiment, writing 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 the 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: and writing the scanned image data into a data writing area with the preset line number of 3N in a memory, and sequentially writing RGB channel information of the image data according to lines, wherein N is a positive integer.
In one embodiment, writing a preset interface rule into a plurality of preset interface rule areas in the memory includes: writing the interface rules according to a preset rule writing area, and jumping to the next interface rule area for writing when the interface rules are written in one interface rule area; the interface rule areas are preset continuous storage line spaces, and a data writing area is arranged between the two interface rule areas at intervals.
In one embodiment, the writing the preset interface rule into the preset interface rule areas in the memory further includes: writing a preset interface rule into a plurality of preset interface rule areas in a memory, and writing part or all of the interface rule areas in parallel.
In one embodiment, the writing the preset interface rule into the preset interface rule areas in the memory further includes: and writing the interface rule meeting the requirement of being transmitted to the PC terminal into a preset interface rule area in the memory as the preset interface rule, so that the data packet can be directly transmitted to the PC terminal.
In one embodiment, the writing the data packet after the completion of the grouping into the preset frame format for encapsulation includes: after the package is completed, the data package is moved to an interface connected with the PC terminal; and encapsulating the data packet by adopting the preset frame format meeting the service requirement, so that the data packet can be directly processed after being transmitted to a PC terminal.
Fig. 6 shows an internal structural diagram of the scanning apparatus 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. The memory includes a nonvolatile 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 that, when executed by a processor, causes the processor to implement the above-described method of processing scanned image data. The internal memory may also store a computer program which, when executed by the processor, causes the processor to perform a method of processing scanned image data as described above. It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the scanning device to which the present application is applied, and that a particular scanning device may include more or fewer components than shown, or may 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 interface rule areas preset in the memory; packaging the image data of the data writing area and the rule data of the interface rule area; writing the data packet after the completion of the packet grouping into a preset frame format for encapsulation; and transmitting the packaged data packet to a PC terminal.
In one embodiment, writing 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 the 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: and writing the scanned image data into a data writing area with the preset line number of 3N in a memory, and sequentially writing RGB channel information of the image data according to lines, wherein N is a positive integer.
In one embodiment, writing a preset interface rule into a plurality of preset interface rule areas in the memory includes: writing the interface rules according to a preset rule writing area, and jumping to the next interface rule area for writing when the interface rules are written in one interface rule area; the interface rule areas are preset continuous storage line spaces, and a data writing area is arranged between the two interface rule areas at intervals.
In one embodiment, the writing the preset interface rule into the preset interface rule areas in the memory further includes: writing a preset interface rule into a plurality of preset interface rule areas in a memory, and writing part or all of the interface rule areas in parallel.
In one embodiment, the writing the preset interface rule into the preset interface rule areas in the memory further includes: and writing the interface rule meeting the requirement of being transmitted to the PC terminal into a preset interface rule area in the memory as the preset interface rule, so that the data packet can be directly transmitted to the PC terminal.
In one embodiment, the writing the data packet after the completion of the grouping into the preset frame format for encapsulation includes: after the package is completed, the data package is moved to an interface connected with the PC terminal; and encapsulating the data packet by adopting the preset frame format meeting the service requirement, so that the data packet can be directly processed after being transmitted to a PC terminal.
A scanning device comprising a memory and a processor, the memory storing a computer program which, 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 interface rule areas preset in the memory; packaging the image data of the data writing area and the rule data of the interface rule area; writing the data packet after the completion of the packet grouping into a preset frame format for encapsulation; and transmitting the packaged data packet to a PC terminal.
In one embodiment, writing 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 the 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: and writing the scanned image data into a data writing area with the preset line number of 3N in a memory, and sequentially writing RGB channel information of the image data according to lines, wherein N is a positive integer.
In one embodiment, writing a preset interface rule into a plurality of preset interface rule areas in the memory includes: writing the interface rules according to a preset rule writing area, and jumping to the next interface rule area for writing when the interface rules are written in one interface rule area; the interface rule areas are preset continuous storage line spaces, and a data writing area is arranged between the two interface rule areas at intervals.
In one embodiment, the writing the preset interface rule into the preset interface rule areas in the memory further includes: writing a preset interface rule into a plurality of preset interface rule areas in a memory, and writing part or all of the interface rule areas in parallel.
In one embodiment, the writing the preset interface rule into the preset interface rule areas in the memory further includes: and writing the interface rule meeting the requirement of being transmitted to the PC terminal into a preset interface rule area in the memory as the preset interface rule, so that the data packet can be directly transmitted to the PC terminal.
In one embodiment, the writing the data packet after the completion of the grouping into the preset frame format for encapsulation includes: after the package is completed, the data package is moved to an interface connected with the PC terminal; and encapsulating the data packet by adopting the preset frame format meeting the service requirement, so that the data packet can be directly processed after being transmitted to a PC terminal.
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.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent one embodiment of the present application, which is described in more detail and detail, but are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.
Claims (9)
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 interface rule areas preset in the memory;
packaging the image data of the data writing area and the rule data of the interface rule area;
writing the data packet after the completion of the packet grouping into a preset frame format for encapsulation;
transmitting the packaged data packet to a PC terminal;
the writing the preset interface rule into a plurality of preset interface rule areas in the memory comprises the following steps: writing interface rules meeting the requirements of being transmitted to the PC terminal into a preset interface rule area in the memory as the preset interface rules, so that the data packet can be directly transmitted to the PC terminal;
the grouping the image data of the data writing area and the rule data of the interface rule area comprises the following steps:
the interface rule area is always in front of the corresponding data writing area, and after the interface rule area and the corresponding data writing area are fully written, the arranged rule data and the image data automatically form a data packet meeting the packet grouping requirement, so that quick packet grouping can be performed.
2. The method according to claim 1, wherein writing the scanned image data into a plurality of data writing areas preset in the 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 the 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:
and writing the scanned image data into a data writing area with the preset line number of 3N in a memory, and sequentially writing RGB channel information of the image data according to lines, wherein N is a positive integer.
4. The method of claim 1, wherein writing the preset interface rule into the preset interface rule areas in the memory further comprises:
writing the interface rules according to a preset rule writing area, and jumping to the next interface rule area for writing when the interface rules are written in one interface rule area; the interface rule areas are preset continuous storage line spaces, and a data writing area is arranged between the two interface rule areas at intervals.
5. The method of claim 1, wherein writing the preset interface rule into the preset interface rule areas in the memory further comprises:
writing a preset interface rule into a plurality of preset interface rule areas in a memory, and writing part or all of the interface rule areas in parallel.
6. The method of claim 1, wherein the encapsulating the data packet written after the completion of the grouping into the predetermined frame format includes:
after the package is completed, the data package is moved to an interface connected with the PC terminal;
and encapsulating the data packet by adopting the preset frame format meeting the service requirement, so that the data packet can be directly processed after being transmitted to a PC terminal.
7. 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 a preset interface rule into a plurality of interface rule areas preset in the memory;
the grouping module is used for grouping the image data of the data writing area and the rule data of the interface rule area;
the packaging module is used for writing the data packet after the completion of the grouping into a preset frame format for packaging;
the transmission module is used for transmitting the packaged data packet to the PC terminal;
the second writing module is specifically configured to: writing interface rules meeting the requirements of being transmitted to the PC terminal into a preset interface rule area in the memory as the preset interface rules, so that the data packet can be directly transmitted to the PC terminal;
the package module is specifically configured to:
the interface rule area is always in front of the corresponding data writing area, and after the interface rule area and the corresponding data writing area are fully written, the arranged rule data and the image data automatically form a data packet meeting the packet grouping requirement, so that quick packet grouping can be performed.
8. A computer-readable storage medium, characterized in that a computer program is stored, which, when being executed by a processor, causes the processor to perform the steps of the method of processing scanned image data as claimed in any one of claims 1 to 6.
9. A scanning device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the method of processing scanned image data as claimed in any one of claims 1 to 6.
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 CN113259540A (en) | 2021-08-13 |
CN113259540B true 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 (8)
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 |
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 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4518095B2 (en) * | 2007-03-30 | 2010-08-04 | ブラザー工業株式会社 | Image forming apparatus |
US9165078B2 (en) * | 2013-03-14 | 2015-10-20 | International Business Machines Corporation | Row-based data filtering at a database level |
-
2020
- 2020-12-18 CN CN202011508128.0A patent/CN113259540B/en active Active
Patent Citations (8)
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 |
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 |
---|
Learning to Simulate Dynamic Environments With GameGAN;S. W. Kim et al.;《2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)》;1228-1237 * |
基于FPGA的高速串行CMOS工业相机;徐益;《中国优秀硕士学位论文全文数据库信息科技辑(月刊)》(2016年第02期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113259540A (en) | 2021-08-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11003891B2 (en) | Image processing method and apparatus, and electronic device | |
US11429852B2 (en) | Convolution acceleration and computing processing method and apparatus, electronic device, and storage medium | |
JP5121291B2 (en) | Data transfer system | |
US20100202708A1 (en) | Image processing apparatus and image processing method | |
CN102789454A (en) | Immediate storage method and system for content in input box of browser webpage | |
CN113259540B (en) | Processing method, device, equipment and storage medium for scanning image data | |
EP1434419A3 (en) | Image processing apparatus and image processing method | |
CN105468412A (en) | Dynamic packaging method and dynamic packaging device | |
CN114612414A (en) | Image processing method, model training method, device, equipment and storage medium | |
CN109460229A (en) | Code file generation method, device, computer equipment and storage medium | |
CN106293542B (en) | Method and device for decompressing file | |
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 | |
CN112712167B (en) | Memory access method and system supporting acceleration of various convolutional neural networks | |
US9800759B2 (en) | Image processing apparatus and image forming apparatus | |
CN113722623B (en) | Data processing method, device, electronic equipment and storage medium | |
CN117216459A (en) | Convolution operation method, convolution operation device, electronic device, and storage medium | |
US20220044370A1 (en) | Image processing methods | |
CN114328747A (en) | Data synchronization method, data synchronization device, computer equipment and medium | |
US11093150B2 (en) | Image processing apparatus | |
JP2007030353A (en) | Image forming device | |
JP2008068547A (en) | Image forming device | |
CN115456858B (en) | Image processing method, device, computer equipment and computer readable storage medium | |
CN114925026B (en) | Electronic file utilization method and device, storage medium and electronic equipment | |
CN113568578B (en) | Picture processing method and device, electronic equipment and readable 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 |