CN105022594B - A kind of method that retail business POS print signal is reduced into graphic file - Google Patents

A kind of method that retail business POS print signal is reduced into graphic file Download PDF

Info

Publication number
CN105022594B
CN105022594B CN201410160183.3A CN201410160183A CN105022594B CN 105022594 B CN105022594 B CN 105022594B CN 201410160183 A CN201410160183 A CN 201410160183A CN 105022594 B CN105022594 B CN 105022594B
Authority
CN
China
Prior art keywords
computing device
print
subgraph
pos
print signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410160183.3A
Other languages
Chinese (zh)
Other versions
CN105022594A (en
Inventor
高鹏
张博文
庾良建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING COUNECT INTERNATIONAL TECHNOLOGY Co Ltd
Original Assignee
BEIJING COUNECT INTERNATIONAL TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING COUNECT INTERNATIONAL TECHNOLOGY Co Ltd filed Critical BEIJING COUNECT INTERNATIONAL TECHNOLOGY Co Ltd
Priority to CN201410160183.3A priority Critical patent/CN105022594B/en
Publication of CN105022594A publication Critical patent/CN105022594A/en
Application granted granted Critical
Publication of CN105022594B publication Critical patent/CN105022594B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of method that retail business POS print signal is reduced into graphic file, it is characterised in that comprises the following steps:101st, the computing device of data processing and store function and the printout mouth of businessman's POS will are connected equipped with application program.102nd, computing device obtains businessman's POS to printer output print signal, and the print signal includes printer control instruction, graphic printing instructs, N number of spirte is spliced into the mode of full graphics;103rd, computing device block searches the print control instruction set character carried in database, and enter line character comparison with the print signal obtained, therefrom the printer control instruction appeared in this print signal is deleted in filtering, retains the mode that graphic printing instruction is spliced into full graphics with N number of spirte.The present invention starts with from POS outside, i.e. print data, without carrying out complicated interface differential technique with POS system, while has also prevented the hidden danger that system invades to POS.

Description

A kind of method that retail business POS print signal is reduced into graphic file
Technical field
The present invention relates to field of computer technology, and retail business POS print signal is reduced into figure more particularly, to one kind The method of shape files.
Background technology
" big data " has substantial amounts of application as vocabulary most burning hot at present in industry-by-industry.Thing followed number Industry people is increasingly becoming according to the utilization of warehouse, data safety, data analysis, data mining etc. around the commercial value of big data Scholar falls over each other the profit focus pursued." big data " very important basis is exactly reliable data source, i.e. initial data is adopted Collection.
Retail service industry on line, all consumption datas are all stored by server, for being divided in the future Analysis.But online under retail service industry, the amount of money of sales data, such as sale, single product, classification etc. of sale typically all protect In POS (computer) system that retailer be present.These data are allowed to supply the application of POS outside, such as:Marketing activity, member System etc., then need the system docking of complexity, and there are potential risks hidden danger, such as:Data from outside are stolen, and are usurped Change.So the consumption data under current line, especially cash sales, what can not still be unified collects with accurately analyzing.
The content of the invention
The purpose of the present invention is exactly from POS outside, i.e., starts with from print data, by retail business POS print signal also Original is analyzed into graphic file, reaches the risk hidden danger for reducing POS system.
A kind of method that retail business POS print signal is reduced into graphic file, it is characterised in that including following step Suddenly:
101st, will there are the computing device of data processing and store function and the printing of businessman's POS defeated equipped with application program Outlet connection;
102nd, computing device obtains print signal of businessman's POS to printer output, and the print signal includes printing Machine control instruction, graphic printing instruction, N number of spirte are spliced into the mode of full graphics;
103rd, computing device block searches the print control instruction set character carried in database, and believes with the printing obtained Number enter line character comparison, the printer control instruction appeared in this print signal is deleted in therefrom filtering, is retained figure and is beaten Print instruction and N number of spirte are spliced into the mode of full graphics;
104th, graphic printing instruction is identified computing device, and single subgraph print command is a description, that is, is provided Whether transverse and longitudinal coordinate prints for some position of (X, Y) in two dimensional surface;
105th, computing device forms dot array data by whether corresponding coordinate prints preservation, if the position prints, the position The value put is 1;If the position does not print, the value of the position is 0;
106th, computing device forms the graphic file of N number of subgraph to N number of subgraph repeat step 105;
107th, computing device using N number of spirte be spliced into the mode of full graphics N number of subgraph be spliced into one it is complete Big figure;
108th, computing device will scheme greatly to add bitmap images header, specifically include document size, size and resolution, i.e., Final graphic file can be generated.
Described step 107 comprises the following steps:
201st, computing device obtains the mode that N number of spirte in print signal is spliced into full graphics;
If the 202, connecting method is in same coordinates regional, prints twice, then the subgraph file printed twice is existed repeatedly Same coordinate position does ' position or ' computing, generates last complete big figure;
If the 203, connecting method is has newline after subgraph, the upper left position for setting the subgraph after newline is:It is horizontal Coordinate:The upper left corner abscissa of subgraph before newline, ordinate:The ordinate+1 in the subgraph lower left corner before newline;
If the 204th, vertically continue to print under subgraph without any splicing mark, acquiescence.
Specifically, heretofore described computing device can use known schemes of the prior art, it is relevant above-mentioned known Technical scheme, those skilled in the art have appreciated that, will not be repeated here.
The effect of the present invention is actively obvious:The present invention start with from POS outside, i.e. print data, without with POS systems System carries out complicated interface differential technique, while has also prevented the hidden danger that system invades to POS, because data flow is single during printout To, can only be that POS can not write data by print.er port to printer output, printer to POS.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention 1.
Fig. 2 is flow chart of the method for the present invention 2.
Fig. 3 is that 8 single densities print schematic diagram.
Fig. 4 is that 24 single densities print schematic diagram.
Embodiment
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.
Embodiment 1
A kind of as shown in figure 1, method that retail business POS print signal is reduced into graphic file, it is characterised in that bag Include following steps:
101st, will there are the computing device of data processing and store function and the printing of businessman's POS defeated equipped with application program Outlet connection;
102nd, computing device obtains print signal of businessman's POS to printer output, and the print signal includes Printer control instruction, graphic printing instruction, 2 sub- graphic joinings into full graphics mode;
103rd, computing device block, which is searched, carries print control instruction set character in database, and and the print signal that obtains Enter line character comparison, the printer control instruction character appeared in this print signal is deleted in therefrom filtering, is left figure Mode of the print command with 2 sub- graphic joinings into full graphics;
104th, graphic printing instruction is identified computing device, and single subgraph print command is a description, that is, is provided Whether transverse and longitudinal coordinate prints for some position of (X, Y) in two dimensional surface.
The graphic printing instruction of printer output is 1B, 2A, m, nL, nH, d1...dk.Then computing device solves as follows Analyse the print command:
105th, computing device forms dot array data by whether corresponding coordinate prints preservation, if the position prints, the position The value put is 1;If the position does not print, the value of the position is 0;
In the present embodiment, the shape print command of subgraph 1 is 1B, 2A, 0,3,0,0x81,0x42,0x24, then as shown in figure 3, Computing device generation two-dimensional lattice data be:
100
100
100
010
010
010
001
001
001
000
000
000
000
000
000
001
001
001
010
010
010
100
100
100
106th, computing device is to 2 subgraph repeat steps 105, the graphic file of 2 subgraphs of formation;
The shape print command of subgraph 2 is 1B, 2A, 0,3,0,0x81,0x42,0x24, then as shown in figure 3, computing device generates Two-dimensional lattice data be:
100
100
100
010
010
010
001
001
001
000
000
000
000
000
000
001
001
001
010
010
010
100
100
100
107th, 2 subgraphs are spliced into one completely by computing device using the mode of 2 sub- graphic joinings into full graphics Big figure;
108th, computing device will scheme greatly to add bitmap images header, specifically include document size, size and resolution, i.e., Final graphic file can be generated.
As shown in Fig. 2 described step 107 comprises the following steps:
201st, computing device obtains the mode that N number of spirte in print signal is spliced into full graphics;
If the 202, connecting method is in same coordinates regional, prints twice, then the subgraph file printed twice is existed repeatedly Same coordinate position does ' position or ' computing, generates last complete big figure;
If the 203, connecting method is has newline after subgraph, the upper left position for setting the subgraph after newline is:It is horizontal Coordinate:The upper left corner abscissa of subgraph before newline, ordinate:The ordinate+1 in the subgraph lower left corner before newline;
If the 204th, continue to print without any splicing mark, acquiescence level after subgraph.
There is newline in the present embodiment after subgraph, the two-dimensional lattice data of a complete big 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
A kind of as shown in figure 1, method that retail business POS print signal is reduced into graphic file, it is characterised in that bag Include following steps:
101st, will there are the computing device of data processing and store function and the printing of businessman's POS defeated equipped with application program Outlet connection;
102nd, computing device obtains businessman's POS to printer output print signal, and the print signal includes beating Print machine control instruction, graphic printing instruction, 3 sub- graphic joinings into full graphics mode;
103rd, computing device searches the print control instruction set character carried in database, and enters with the print signal obtained Line character is compared, and therefrom the printer control instruction character appeared in this print signal is deleted in filtering, remaining figure is beaten Mode of the print instruction with 3 sub- graphic joinings into full graphics;
104th, graphic printing instruction is identified computing device, and single subgraph print command is a description, that is, is provided Whether transverse and longitudinal coordinate prints for some position of (X, Y) in two dimensional surface.
The graphic printing instruction of printer output is 1B, 2A, m, nL, nH, d1...dk.Then computing device solves as follows Analyse the print command:
105th, computing device forms dot array data by whether corresponding coordinate prints preservation, if the position prints, the position The value put is 1;If the position does not print, the value of the position is 0;
In the present embodiment, the shape print command of subgraph 1 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 of computing device generation 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
106th, computing device is to 2 subgraph repeat steps 104, the graphic file of 2 subgraphs of formation;
The shape print command of subgraph 2 is 1B, 2A, 0,3,0,0x81,0x42,0x24, then as shown in figure 3, computing device generates Two-dimensional lattice data be:
100
100
100
010
010
010
001
001
001
000
000
000
000
000
000
001
001
001
010
010
010
100
100
100
107th, 2 subgraphs are spliced into one completely by computing device using the mode of 2 sub- graphic joinings into full graphics Big figure;
108th, computing device will scheme greatly to add bitmap images header, specifically include document size, size and resolution, i.e., Final graphic file can be generated.
As shown in Fig. 2 described step 107 comprises the following steps:
201st, computing device obtains the mode that N number of spirte in print signal is spliced into full graphics;
If the 202, connecting method is in same coordinates regional, prints twice, then the subgraph file printed twice is existed repeatedly Same coordinate position does ' position or ' computing, generates last complete big figure;
If the 203, connecting method is has newline after subgraph, the upper left position for setting the subgraph after newline is:It is horizontal Coordinate:The upper left corner abscissa of subgraph before newline, ordinate:The ordinate+1 in the subgraph lower left corner before newline;
If the 204th, vertically continue to print under subgraph without any splicing mark, acquiescence.
Need in same position printing twice, to be manually configured to each two subgraph and do position or computing, one complete in this example The two-dimensional lattice data of the big figure of whole position 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, described above is not limitation of the present invention, and the present invention is also not limited to the example above, this technology neck The variations, modifications, additions or substitutions that the those of ordinary skill in domain makes in the essential scope of the present invention, it should also belong to the present invention Protection domain.

Claims (2)

  1. A kind of 1. method that retail business POS print signal is reduced into graphic file, it is characterised in that comprise the following steps:
    101st, by the printout mouth for having the computing device of data processing and store function and businessman's POS equipped with application program Connection;
    102nd, computing device obtains print signal of businessman's POS to printer output, and the print signal includes printer control System instruction, graphic printing instruction, N number of spirte are spliced into the mode of full graphics;
    103rd, computing device block searches the print control instruction set character carried in database, and is carried out with the print signal obtained Character is compared, and the printer control instruction appeared in this print signal is deleted in therefrom filtering, retains graphic printing instruction The mode of full graphics is spliced into N number of spirte;
    104th, graphic printing instruction is identified computing device, and single subgraph print command is a description, that is, provides two dimension Whether transverse and longitudinal coordinate prints for some position of (X, Y) in plane;
    105th, computing device forms dot array data by whether corresponding coordinate prints preservation, if the position prints, the position It is worth for 1;If the position does not print, the value of the position is 0;
    106th, computing device forms the graphic file of N number of subgraph to N number of subgraph repeat step 105;
    107th, computing device using N number of spirte be spliced into the mode of full graphics N number of subgraph is spliced into it is one complete big Figure;
    108th, computing device will scheme greatly to add bitmap images header, specifically include document size, size and resolution, you can raw Into final graphic file.
  2. 2. a kind of method that retail business POS print signal is reduced into graphic file as described in claim one, its feature It is, described step 107 comprises the following steps:
    201st, computing device obtains the mode that N number of spirte in print signal is spliced into full graphics;
    If the 202, connecting method is in same coordinates regional, print repeatedly twice, then the subgraph file printed twice same Coordinate position does ' position or ' computing, generates last complete big figure;
    If the 203, connecting method is has newline after subgraph, the upper left position for setting the subgraph after newline is:Abscissa: The upper left corner abscissa of subgraph before newline, ordinate:The ordinate+1 in the subgraph lower left corner before newline;
    If the 204th, vertically continue to print under subgraph without any splicing mark, acquiescence.
CN201410160183.3A 2014-04-21 2014-04-21 A kind of method that retail business POS print signal is reduced into graphic file Expired - Fee Related CN105022594B (en)

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 CN105022594A (en) 2015-11-04
CN105022594B true 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
CN105022594A (en) 2015-11-04

Similar Documents

Publication Publication Date Title
US10621727B1 (en) Label and field identification without optical character recognition (OCR)
CA3017647C (en) Optical character recognition in structured documents
US20190318189A1 (en) Method, System and Computer Readable Storage Medium for Identifying Information Carried on Sheet
US10423827B1 (en) Image text recognition
US11017230B2 (en) Systems and methods for depicting vehicle information in augmented reality
US20160063322A1 (en) Method and system of extracting label:value data from a document
CN104603833B (en) Method and system for linking printing object with digital content
US9111140B2 (en) Identification and separation of form and feature elements from handwritten and other user supplied elements
Bataineh et al. A novel statistical feature extraction method for textual images: Optical font recognition
JP2014106692A (en) Image processing apparatus, image processing method, image processing system, and program
KR102114369B1 (en) Online shopping mall banner design generation method, apparatus and system
JP6760419B2 (en) Printer model recommendation mechanism
EP2884425B1 (en) Method and system of extracting structured data from a document
Zheng et al. A system for identifying an anti-counterfeiting pattern based on the statistical difference in key image regions
CN105022594B (en) A kind of method that retail business POS print signal is reduced into graphic file
US20220292548A1 (en) System and method for generating a modified design creative
Wickramaarachchi et al. Multi-layer framed offline signature recognition algorithm
Amin et al. Touchy feely: An emotion recognition challenge
US20210110149A1 (en) Information processing apparatus and non-transitory computer readable medium
WO2022029874A1 (en) Data processing device, data processing method, and data processing program
US20220358571A1 (en) System and method for extracting product information from low resolution photos for updating product master
Liao et al. Federated hierarchical hybrid networks for clickbait detection
Sharma et al. A Review on Character Segmentation of Touching and Half Character in Handwritten Hindi Text.
JP7470264B1 (en) LAYOUT ANALYSIS SYSTEM, LAYOUT ANALYSIS METHOD, AND PROGRAM
CN205405609U (en) Platform is synthesized in people's mediation

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

Addressee: Wang Hong

Document name: Notification of Passing Examination on Formalities

DD01 Delivery of document by public notice
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180119

CF01 Termination of patent right due to non-payment of annual fee