CN105022594A - Method for restoring print signal of POS machine in retail industry into graphic file - Google Patents
Method for restoring print signal of POS machine in retail industry into graphic file Download PDFInfo
- Publication number
- CN105022594A CN105022594A CN201410160183.3A CN201410160183A CN105022594A CN 105022594 A CN105022594 A CN 105022594A CN 201410160183 A CN201410160183 A CN 201410160183A CN 105022594 A CN105022594 A CN 105022594A
- Authority
- CN
- China
- Prior art keywords
- subgraph
- computing equipment
- print signal
- pos
- 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
Landscapes
- Record Information Processing For Printing (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention discloses a method for restoring a print signal of a POS machine in the retail industry into a graphic file. The method is characterized by comprising the following steps of: 101, a computing device which is provided with applications and has data processing and storage functions is connected to a print output port of the POS machine of a merchant; 102, the computing device acquires the print signal output to a printer by the POS machine of the merchant, wherein the print signal comprises a printer control instruction, a graph printing instruction and a mode of splicing N sub-graphs into a complete graph; and 103, a computing device block searches for a print control instruction set characters in a self-carried database, carries out character comparison between the print control instruction set characters and the acquired print signal, filters and cancels the printer control instruction appearing in the print signal from the print control instruction set character and reserving the graph print instruction and the mode of splicing the N sub-graphs into the complete graph. According to the method for restoring the print signal of the POS machine in the retail industry into the graphic file, starting from the exterior of the POS, i.e. print data, complex technical connection to a POS system is not required, and meanwhile, the hidden danger of invading of the system to the POS is avoided.
Description
Technical field
The present invention relates to field of computer technology, especially relate to a kind of method retail trade POS print signal being reduced into graphic file.
Background technology
" large data ", as vocabulary burning the hotest at present, have a large amount of application at industry-by-industry.Thing followed data warehouse, data security, data analysis, data mining etc. become around the utilization of the commercial value of large data the profit focus that industry personage falls over each other to pursue gradually." large data " very important basis is exactly reliable Data Source, i.e. the collection of raw data.
Retail service industry on line, all consumption datas are all stored by server, for analyzing in the future.But online lower retail service industry, sales data, as the amount of money of sale, single product of sale, classification etc. is generally all kept in POS (computing machine) system of retailer.Allow these data for the application of the outside of POS, as: marketing activity, member system etc., then need complicated system docking, and have potential risks hidden danger, as: the data from outside are stolen, and distort.So the consumption data at present under line, especially cash sales, that still can not carry out unifying gathers and accurate analysis.
Summary of the invention
Object of the present invention is exactly the outside from POS, namely starts with from print data, retail trade POS print signal is reduced into graphic file, and analyzes, and reaches the risk hidden danger reducing POS system.
Retail trade POS print signal is reduced into a method for graphic file, it is characterized in that, comprise the following steps:
101, the computing equipment of data processing and memory function that has that application program is housed is connected with the printout mouth of businessman POS;
102, computing equipment obtains the businessman POS print signal to printer output, the mode that this print signal comprises printer control instruction, graphic printing instruction, N number of spirte are spliced into full graphics;
103, computing equipment block searches the Print Control instruction set character carried in database, and carry out character comparison with the print signal obtained, therefrom filter and delete the printer control instruction appeared in this print signal, reservation graphic printing instruction and N number of spirte are spliced into the mode of full graphics;
104, computing equipment identifies graphic printing instruction, and single subgraph print command is a description, and namely providing transverse and longitudinal coordinate in two dimensional surface is whether certain position of (X, Y) prints;
105, whether corresponding coordinate prints to preserve and forms dot array data by computing equipment, if this position prints, then the value of this position is 1; If this position does not print, then the value of this position is 0;
106, computing equipment repeats step 105 to N number of subgraph, forms the graphic file of N number of subgraph;
107, the computing equipment mode that utilizes N number of spirte to be spliced into full graphics is spliced into a complete large figure N number of subgraph;
108, large figure is added bitmap images header by computing equipment, specifically comprises document size, size and resolution, can generate final graphic file.
Described step 107 comprises the following steps:
201, computing equipment obtains N number of spirte in print signal and is spliced into the mode of full graphics;
If 202 connecting methods are in same coordinates regional, repeatedly print twice, then the subgraph file of twice printing is done ' position or ' computing at same coordinate position, generate last complete large figure;
If 203 connecting methods are have newline after subgraph, then the upper left position arranging the subgraph after newline is: horizontal ordinate: the upper left corner horizontal ordinate of the subgraph before newline, ordinate: the ordinate+1 in the subgraph lower left corner before newline;
If 204 identify without any splicing, then give tacit consent to and vertically continue to print under subgraph.
Concrete, the computing equipment described in the present invention can adopt known schemes of the prior art, and relevant above-mentioned known solution, those skilled in the art understands all, does not repeat them here.
Effect of the present invention is actively significantly: the present invention is from the outside of POS, namely print data is started with, without the need to carrying out complicated interface differential technique with POS system, also stopped the hidden danger that system invades to POS simultaneously, because data stream is unidirectional during printout, can only be POS to printer output, printer cannot write data by print.er port to POS.
Accompanying drawing explanation
Fig. 1 is method flow Fig. 1 of the present invention.
Fig. 2 is method flow Fig. 2 of the present invention.
Fig. 3 is 8 single point density prints schematic diagram.
Fig. 4 is 24 single point density prints schematic diagram.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment 1
As shown in Figure 1, a kind of method retail trade POS print signal being reduced into graphic file, is characterized in that, comprise the following steps:
101, the computing equipment of data processing and memory function that has that application program is housed is connected with the printout mouth of businessman POS;
102, computing equipment obtains the businessman POS print signal to printer output, the mode that this print signal comprises printer control instruction, graphic printing instruction, 2 sub-graphic joinings become full graphics;
103, computing equipment block searches the Print Control instruction set character carried in database, and carry out character comparison with the print signal obtained, therefrom filter and delete the printer control instruction character appeared in this print signal, remaining graphic printing instruction becomes the mode of full graphics with 2 sub-graphic joinings;
104, computing equipment identifies graphic printing instruction, and single subgraph print command is a description, and namely providing transverse and longitudinal coordinate in two dimensional surface is whether certain position of (X, Y) prints.
The graphic printing instruction of printer output is 1B, 2A, m, nL, nH, d
1... d
k.Then computing equipment resolves this print command as follows:
105, whether corresponding coordinate prints to preserve and forms dot array data by computing equipment, if this position prints, then the value of this position is 1; If this position does not print, then the value of this position is 0;
In the present embodiment, the print command of subgraph 1 shape is 1B, 2A, 0,3,0,0x81,0x42,0x24, then as shown in Figure 3, the two-dimensional lattice data that computing equipment generates are:
100
100
100
010
010
010
001
001
001
000
000
000
000
000
000
001
001
001
010
010
010
100
100
100
106, computing equipment repeats step 105 to 2 subgraphs, forms the graphic file of 2 subgraphs;
The print command of subgraph 2 shape is 1B, 2A, 0,3,0,0x81,0x42,0x24, then as shown in Figure 3, the two-dimensional lattice data that computing equipment generates are:
100
100
100
010
010
010
001
001
001
000
000
000
000
000
000
001
001
001
010
010
010
100
100
100
107, computing equipment utilizes 2 sub-graphic joinings to become the mode of full graphics that 2 subgraphs are spliced into a complete large figure;
108, large figure is added bitmap images header by computing equipment, specifically comprises document size, size and resolution, can generate final graphic file.
As shown in Figure 2, described step 107 comprises the following steps:
201, computing equipment obtains N number of spirte in print signal and is spliced into the mode of full graphics;
If 202 connecting methods are in same coordinates regional, repeatedly print twice, then the subgraph file of twice printing is done ' position or ' computing at same coordinate position, generate last complete large figure;
If 203 connecting methods are have newline after subgraph, then the upper left position arranging the subgraph after newline is: horizontal ordinate: the upper left corner horizontal ordinate of the subgraph before newline, ordinate: the ordinate+1 in the subgraph lower left corner before newline;
If 204 identify without any splicing, then give tacit consent to level after subgraph and continue to print.
Have newline after subgraph in the present embodiment, the two-dimensional lattice data of a complete large figure are:
100
100
100
010
010
010
001
001
001
000
000
000
000
000
000
001
001
001
010
010
010
100
100
100
100
100
100
010
010
010
001
001
001
000
000
000
000
000
000
001
001
001
010
010
010
100
100
100
Embodiment 2
As shown in Figure 1, a kind of method retail trade POS print signal being reduced into graphic file, is characterized in that, comprise the following steps:
101, the computing equipment of data processing and memory function that has that application program is housed is connected with the printout mouth of businessman POS;
102, computing equipment obtains businessman POS to printer output print signal, the mode that this print signal comprises printer control instruction, graphic printing instruction, 3 sub-graphic joinings become full graphics;
103, computing equipment searches the Print Control instruction set character carried in database, and carry out character comparison with the print signal obtained, therefrom filter and delete the printer control instruction character appeared in this print signal, be left graphic printing instruction becomes full graphics mode with 3 sub-graphic joinings;
104, computing equipment identifies graphic printing instruction, and single subgraph print command is a description, and namely providing transverse and longitudinal coordinate in two dimensional surface is whether certain position of (X, Y) prints.
The graphic printing instruction of printer output is 1B, 2A, m, nL, nH, d
1... d
k.Then computing equipment resolves this print command as follows:
105, whether corresponding coordinate prints to preserve and forms dot array data by computing equipment, if this position prints, then the value of this position is 1; If this position does not print, then the value of this position is 0;
In the present embodiment, the print command of subgraph 1 shape is 1B, 2A, 32,3,0,0x80,0x24,0x01,0x40,0x42,0x02,0x20,0x81,0x04, then as shown in Figure 4, the two-dimensional lattice data that computing equipment generates are:
100
010
001
000
000
000
000
000
001
010
100
000
000
100
010
001
000
000
000
000
000
001
010
100
106, computing equipment repeats step 104 to 2 subgraphs, forms the graphic file of 2 subgraphs;
The print command of subgraph 2 shape is 1B, 2A, 0,3,0,0x81,0x42,0x24, then as shown in Figure 3, the two-dimensional lattice data that computing equipment generates are:
100
100
100
010
010
010
001
001
001
000
000
000
000
000
000
001
001
001
010
010
010
100
100
100
107, computing equipment utilizes 2 sub-graphic joinings to become the mode of full graphics that 2 subgraphs are spliced into a complete large figure;
108, large figure is added bitmap images header by computing equipment, specifically comprises document size, size and resolution, can generate final graphic file.
As shown in Figure 2, described step 107 comprises the following steps:
201, computing equipment obtains N number of spirte in print signal and is spliced into the mode of full graphics;
If 202 connecting methods are in same coordinates regional, repeatedly print twice, then the subgraph file of twice printing is done ' position or ' computing at same coordinate position, generate last complete large figure;
If 203 connecting methods are have newline after subgraph, then the upper left position arranging the subgraph after newline is: horizontal ordinate: the upper left corner horizontal ordinate of the subgraph before newline, ordinate: the ordinate+1 in the subgraph lower left corner before newline;
If 204 identify without any splicing, then give tacit consent to and vertically continue to print under subgraph.
Need in this example to print twice at same position, be manually configured to every two subgraphs and do position or computing, the two-dimensional lattice data of the large figure of a full location are:
100
110
101
010
010
010
001
001
001
010
100
000
000
100
010
001
001
001
010
010
010
101
110
100
Certainly; above-mentioned explanation is not limitation of the present invention; the present invention is also not limited in above-mentioned citing, the change that those skilled in the art make in essential scope of the present invention, remodeling, interpolation or replacement, also should belong to protection scope of the present invention.
Claims (2)
1. retail trade POS print signal is reduced into a method for graphic file, it is characterized in that, comprise the following steps:
101, the computing equipment of data processing and memory function that has that application program is housed is connected with the printout mouth of businessman POS;
102, computing equipment obtains the businessman POS print signal to printer output, the mode that this print signal comprises printer control instruction, graphic printing instruction, N number of spirte are spliced into full graphics;
103, computing equipment block searches the Print Control instruction set character carried in database, and carry out character comparison with the print signal obtained, therefrom filter and delete the printer control instruction appeared in this print signal, reservation graphic printing instruction and N number of spirte are spliced into the mode of full graphics;
104, computing equipment identifies graphic printing instruction, and single subgraph print command is a description, and namely providing transverse and longitudinal coordinate in two dimensional surface is whether certain position of (X, Y) prints;
105, whether corresponding coordinate prints to preserve and forms dot array data by computing equipment, if this position prints, then the value of this position is 1; If this position does not print, then the value of this position is 0;
106, computing equipment repeats step 105 to N number of subgraph, forms the graphic file of N number of subgraph;
107, the computing equipment mode that utilizes N number of spirte to be spliced into full graphics is spliced into a complete large figure N number of subgraph;
108, large figure is added bitmap images header by computing equipment, specifically comprises document size, size and resolution, can generate final graphic file.
2. a kind of method retail trade POS print signal being reduced into graphic file as described in claim one, it is characterized in that, described step 107 comprises the following steps:
201, computing equipment obtains N number of spirte in print signal and is spliced into the mode of full graphics;
If 202 connecting methods are in same coordinates regional, repeatedly print twice, then the subgraph file of twice printing is done ' position or ' computing at same coordinate position, generate last complete large figure;
If 203 connecting methods are have newline after subgraph, then the upper left position arranging the subgraph after newline is: horizontal ordinate: the upper left corner horizontal ordinate of the subgraph before newline, ordinate: the ordinate+1 in the subgraph lower left corner before newline;
If 204 identify without any splicing, then give tacit consent to and vertically continue to print under subgraph.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410160183.3A CN105022594B (en) | 2014-04-21 | 2014-04-21 | A kind of method that retail business POS print signal is reduced into graphic file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410160183.3A CN105022594B (en) | 2014-04-21 | 2014-04-21 | A kind of method that retail business POS print signal is reduced into graphic file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105022594A true CN105022594A (en) | 2015-11-04 |
CN105022594B CN105022594B (en) | 2018-01-19 |
Family
ID=54412589
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410160183.3A Expired - Fee Related CN105022594B (en) | 2014-04-21 | 2014-04-21 | A kind of method that retail business POS print signal is reduced into graphic file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105022594B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1588276A (en) * | 2004-09-21 | 2005-03-02 | 清华大学 | Method for realizing picture and text carving using virtual printing technology for computer |
CN101930578A (en) * | 2009-12-14 | 2010-12-29 | 庾良建 | Method and system for information popularization directional exchange |
CN102609838A (en) * | 2011-12-15 | 2012-07-25 | 北京互帮国际技术有限公司 | Paperless transaction receipt equipment and system |
CN102968282A (en) * | 2012-11-29 | 2013-03-13 | 北京风驰韦尔科技有限公司 | Method for achieving electronization of any bill and receipt by intercepting print data |
-
2014
- 2014-04-21 CN CN201410160183.3A patent/CN105022594B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1588276A (en) * | 2004-09-21 | 2005-03-02 | 清华大学 | Method for realizing picture and text carving using virtual printing technology for computer |
CN101930578A (en) * | 2009-12-14 | 2010-12-29 | 庾良建 | Method and system for information popularization directional exchange |
CN102609838A (en) * | 2011-12-15 | 2012-07-25 | 北京互帮国际技术有限公司 | Paperless transaction receipt equipment and system |
CN102968282A (en) * | 2012-11-29 | 2013-03-13 | 北京风驰韦尔科技有限公司 | Method for achieving electronization of any bill and receipt by intercepting print data |
Also Published As
Publication number | Publication date |
---|---|
CN105022594B (en) | 2018-01-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10977513B2 (en) | Method, system and computer readable storage medium for identifying information carried on sheet | |
KR102279456B1 (en) | Optical Character Recognition Techniques in Documents | |
US10423827B1 (en) | Image text recognition | |
CN112016438B (en) | Method and system for identifying certificate based on graph neural network | |
US11017230B2 (en) | Systems and methods for depicting vehicle information in augmented reality | |
US20200273078A1 (en) | Identifying key-value pairs in documents | |
JPWO2014087725A1 (en) | Product information processing apparatus, data processing method thereof, and program | |
CN109241857A (en) | A kind of recognition methods and system of document information | |
CN114170482B (en) | Document pre-training model training method, device, equipment and medium | |
CN110945537B (en) | Training device, recognition device, training method, recognition method, and program | |
CN113627411A (en) | Super-resolution-based commodity identification and price matching method and system | |
JP2022501713A (en) | Motion recognition methods and devices, electronic devices, and storage media | |
CN106537423A (en) | Adaptive featurization as service | |
JP2023073432A (en) | Information processor, method for processing information, and program | |
CN101833546A (en) | Method and device for extracting form from portable electronic document | |
Schaeferling et al. | Object recognition and pose estimation on embedded hardware: SURF‐based system designs accelerated by FPGA logic | |
JP2016004419A (en) | Print inspection device, print inspection method and program | |
CN105022594A (en) | Method for restoring print signal of POS machine in retail industry into graphic file | |
CN111311244A (en) | Passive code scanning method and device based on QR (quick response) code | |
US20220358571A1 (en) | System and method for extracting product information from low resolution photos for updating product master | |
US20220129821A1 (en) | Retail traffic analysis statistics to actionable intelligence | |
WO2022029874A1 (en) | Data processing device, data processing method, and data processing program | |
Mohsin et al. | Convolutional neural networks for real-time wood plank detection and defect segmentation | |
CN111144438A (en) | Method and device for detecting commodities in advertisement bill | |
US20190019339A1 (en) | Systems and methods for dynamically displaying information about an object using augmented reality |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
DD01 | Delivery of document by public notice | ||
DD01 | Delivery of document by public notice |
Addressee: Wang Hong Document name: Notification of Passing Examination on Formalities |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180119 |