CN104915704A - Generation method of commodity two-dimensional code and application of commodity two-dimensional code - Google Patents

Generation method of commodity two-dimensional code and application of commodity two-dimensional code Download PDF

Info

Publication number
CN104915704A
CN104915704A CN201510368702.XA CN201510368702A CN104915704A CN 104915704 A CN104915704 A CN 104915704A CN 201510368702 A CN201510368702 A CN 201510368702A CN 104915704 A CN104915704 A CN 104915704A
Authority
CN
China
Prior art keywords
commodity
quick response
response code
dimensional code
zxing
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.)
Pending
Application number
CN201510368702.XA
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201510368702.XA priority Critical patent/CN104915704A/en
Publication of CN104915704A publication Critical patent/CN104915704A/en
Pending legal-status Critical Current

Links

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Abstract

The invention relates to a generation method of a commodity two-dimensional code and an application of the commodity two-dimensional code. The generation method comprises the following steps that Android source codes of an open source two-dimensional code scanning library ZXing are imported to a project so that a two-dimensional interface provided by the two-dimensional code scanning library ZXing is obtained; Android items are simplified; Zxing codes in the simplified Android items are embedded in a two-dimensional code generation and identification project so that a two-dimensional code generation and identification interface is obtained; and commodity information is edited in the interface so that a two-dimensional code carrying the commodity information is obtained. The application process of the commodity two-dimensional code is that the commodity two-dimensional code is arranged on the external packing of a commodity; the commodity two-dimensional code is scanned by adopting a mobile terminal with a scanning function so as to enter the commodity information interface; and a purchasing and paying interface is entered so that payment is completed. The beneficial effects of the generation method of the commodity two-dimensional code and the application of the commodity two-dimensional code are that consumers are enabled to complete onsite and self-service commodity purchasing so that time and labor can be further saved.

Description

A kind of generation method of commodity Quick Response Code and the application of commodity Quick Response Code
Technical field
The invention belongs to computer information technology field, be specifically related to a kind of generation method of commodity Quick Response Code and the application of commodity Quick Response Code.
Background technology
Bar code is the multiple secret note and blank that are not waited by width, according to the arrangement of certain coding rule, in order to express the graphical identifier of one group of information.One-dimensional bar code is according to the different in width of one group of horizontal direction secret note, and secret note and blank are weaved into a series of characters be made up of " 0 " and " 1 ", this binary-coded character is encoded according to certain rule.Two-dimensional bar stores information with the two-dimensional space of vertical direction in the horizontal direction, and according to coding principle, two-dimensional bar is divided into capable row's formula two-dimensional bar and matrix type two-dimension bar code.Two-dimensional bar has that information capacity is large, reliability is high and the advantage such as strong security.
At present, the commodity in market or supermarket only have one-dimensional bar code, the quantity of information that this one-dimensional bar code stores is little, and can only show the information of these commodity.In addition, consumer needs first to download corresponding scanning software before this bar code of scanning, operates loaded down with trivial details, inconvenient.Although consumer can pass through Quick Response Code on-line purchase commodity now, there is certain risk in shopping online after all, probably occurs commodity picture and situation about not being inconsistent in kind.
Summary of the invention
In order to solve the problems referred to above that prior art exists, the invention provides a kind of generation method of commodity Quick Response Code and the application of commodity Quick Response Code.
The technical solution adopted in the present invention is: a kind of generation method of commodity Quick Response Code, it is characterized in that, comprise the following steps: 1) the Android source code of the Quick Response Code scan base ZXing increased income is imported CaptureActivity engineering, obtain the Quick Response Code interface that Quick Response Code scan base ZXing provides; 2) Android project is simplified; The class view that Android project after simplification comprises take pictures the class Activity found a view, the class camera relevant to camera, the class decoding that decoding is relevant, the relevant class encoding that encodes are correlated with view-finder; 3) by step 2) the ZXing code simplified in the Android project that obtains embeds Quick Response Code and generates and recognitive engineering, obtain Quick Response Code and generate and identify interface; 4) generate at Quick Response Code and identify interface inediting merchandise news, obtaining the Quick Response Code with merchandise news.
Further, described step 1) in the Android source code of the Quick Response Code scan base ZXing increased income is imported in CaptureActivity engineering, it specifically comprises: 1. in Integrated Development Environment Eclipse, create Android project; 2. the source code under core file in Quick Response Code scan base ZXing is compiled, obtain core bag core.jar, and core bag core.jar is imported in Android project; 3. the strings.xml file in Android project is revised.
Further, described step 3) in obtain Quick Response Code and generate and identify interface, its detailed process is: 1. generate at Quick Response Code and arrange the ZXing code of simplification, values file and raw file in recognitive engineering; 2. the topology file capture.xml of CaptureActivity.java is set up; 3. core bag core.jar is imported; 4. AndrodMainfest.xml file is revised.
An application for the commodity Quick Response Code adopting the generation method of commodity Quick Response Code to obtain, it is characterized in that, detailed process is: 1) be arranged in the external packing of commodity by commodity Quick Response Code; 2) consumer selects required commodity as required, adopts the mobile terminal with scan function to scan commodity Quick Response Code, enters merchandise news interface; 3) enter purchase payment interface, complete payment.
Further, described step 1) in, subsidiary Merchant ID information in commodity Quick Response Code, in the account can directly offered in bank to businessman by reimbursement of expense when consumer pays the bill.
Beneficial effect of the present invention is: simple, convenient, and security is high, can make consumer complete commodity on the spot, self-service purchase, thus eliminate consumer queue up payment buy link, save time further and manpower.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the generation method of commodity Quick Response Code of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in detail.
Along with the development of market economy and the raising of people's living standard, the consumption concept of people is also in continuous lifting.But existing consumption pattern can not meet the purchasing demand of consumer, therefore sellers have needed to seek a kind of new marketing model.Along with the develop rapidly of computer technology and infotech, Quick Response Code is as a kind of new information carrier, and the connected applications of itself and client terminal such as mobile phone has expanded to the every field of human lives.Research and develop and a kind ofly carry out the system of commodity purchasing based on commodity Quick Response Code or method will provide a kind of new consumption experience to consumer, provide a kind of new marketing model to sellers.In market or supermarket, consumer just can obtain the details of these commodity by the Quick Response Code on terminal scanning commodity and can carry out commodity payment, complete commodity on the spot, self-service purchase, thus eliminate consumer queue up payment buy link, save time further and manpower.
As shown in Figure 1, the invention provides a kind of generation method of commodity Quick Response Code, it comprises the following steps:
1) the Android source code of the Quick Response Code scan base ZXing increased income is imported CaptureActivity engineering, obtain the Quick Response Code interface that Quick Response Code scan base ZXing provides, its detailed process is:
1. in Integrated Development Environment Eclipse, Android project is created;
2. the source code under core file in Quick Response Code scan base ZXing is compiled, obtain core bag core.jar, and core bag core.jar is imported in Android project;
3. the strings.xml file in Android project is revised.
2) Android project is simplified; The class view that Android project after simplification comprises take pictures the class Activity found a view, the class camera relevant to camera, the class decoding that decoding is relevant, the relevant class encoding that encodes are correlated with view-finder.
3) by step 2) the ZXing code simplified in the Android project that obtains embeds Quick Response Code and generates and recognitive engineering, and obtain Quick Response Code and generate and identify interface, its detailed process is:
1. generate at Quick Response Code and the ZXing code of simplification, values file and raw file are set in recognitive engineering.
2. the topology file capture.xml of CaptureActivity.java is set up.
3. core bag core.jar is imported.
4. AndrodMainfest.xml file is revised.
4) generate at Quick Response Code and identify interface inediting merchandise news, obtaining the Quick Response Code with merchandise news.
The commodity Quick Response Code generated can be applied in the commodity in market or supermarket, and to facilitate user's inquiring information of goods and to carry out self-service purchase, its detailed process is:
1) commodity Quick Response Code is arranged in the external packing of commodity.
2) consumer selects required commodity as required, adopts the mobile terminal with scan function to scan commodity Quick Response Code, enters merchandise news interface.
3) enter purchase payment interface, complete payment.
Above-mentioned steps 1) in, subsidiary Merchant ID information in commodity Quick Response Code, in the account can directly offered in bank to businessman by reimbursement of expense when consumer's payment, one side can facilitate consumer to buy commodity like this, and another aspect also can help businessman to carry out sales promotion.
When user pays the bill again, due to real bank account can not be adopted, so need to simulate payment program, first need the simulated data setting up oneself, simulated bank's account.Set up a database purchase simulation account, each account of simulation has four attributes, and they are account, user name, password, remaining sum respectively.When consumer pays the bill, need input account, a username and password; Then, detect account from background data base, whether username and password is correct, if incorrect, display account, user name or code error, if correctly, query the balance and whether can buy current commodity, if Sorry, your ticket has not enough value, display is bought unsuccessfully, if remaining sum is enough, display is bought successfully, and the remaining sum then in database deducts the remaining remaining sum of commodity price and re-writes database.
The present invention is not limited to above-mentioned preferred forms; anyone can draw other various forms of products under enlightenment of the present invention; no matter but any change is done in its shape or structure; every have identical with the application or akin technical scheme, all drops within protection scope of the present invention.

Claims (5)

1. a generation method for commodity Quick Response Code, is characterized in that, comprise the following steps:
1) the Android source code of the Quick Response Code scan base ZXing increased income is imported CaptureActivity engineering, obtain the Quick Response Code interface that Quick Response Code scan base ZXing provides;
2) Android project is simplified; The class view that Android project after simplification comprises take pictures the class Activity found a view, the class camera relevant to camera, the class decoding that decoding is relevant, the relevant class encoding that encodes are correlated with view-finder;
3) by step 2) the ZXing code simplified in the Android project that obtains embeds Quick Response Code and generates and recognitive engineering, obtain Quick Response Code and generate and identify interface;
4) generate at Quick Response Code and identify interface inediting merchandise news, obtaining the Quick Response Code with merchandise news.
2. the generation method of a kind of commodity Quick Response Code as claimed in claim 1, is characterized in that: described step 1) in the Android source code of Quick Response Code scan base ZXing of increasing income is imported in CaptureActivity engineering, it specifically comprises:
1. in Integrated Development Environment Eclipse, Android project is created;
2. the source code under core file in Quick Response Code scan base ZXing is compiled, obtain core bag core.jar, and core bag core.jar is imported in Android project;
3. the strings.xml file in Android project is revised.
3. the generation method of a kind of commodity Quick Response Code as claimed in claim 1 or 2, is characterized in that: described step 3) in obtain Quick Response Code generate and identify interface, its detailed process is:
1. generate at Quick Response Code and the ZXing code of simplification, values file and raw file are set in recognitive engineering;
2. the topology file capture.xml of CaptureActivity.java is set up;
3. core bag core.jar is imported;
4. AndrodMainfest.xml file is revised.
4. an application for the commodity Quick Response Code adopting the generation method of the commodity Quick Response Code as described in any one of claims 1 to 3 to obtain, it is characterized in that, detailed process is:
1) commodity Quick Response Code is arranged in the external packing of commodity;
2) consumer selects required commodity as required, adopts the mobile terminal with scan function to scan commodity Quick Response Code, enters merchandise news interface;
3) enter purchase payment interface, complete payment.
5. the application of a kind of commodity Quick Response Code as claimed in claim 4, is characterized in that: described step 1) in, subsidiary Merchant ID information in commodity Quick Response Code, in the account can directly offered in bank to businessman by reimbursement of expense when consumer pays the bill.
CN201510368702.XA 2015-06-26 2015-06-26 Generation method of commodity two-dimensional code and application of commodity two-dimensional code Pending CN104915704A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510368702.XA CN104915704A (en) 2015-06-26 2015-06-26 Generation method of commodity two-dimensional code and application of commodity two-dimensional code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510368702.XA CN104915704A (en) 2015-06-26 2015-06-26 Generation method of commodity two-dimensional code and application of commodity two-dimensional code

Publications (1)

Publication Number Publication Date
CN104915704A true CN104915704A (en) 2015-09-16

Family

ID=54084753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510368702.XA Pending CN104915704A (en) 2015-06-26 2015-06-26 Generation method of commodity two-dimensional code and application of commodity two-dimensional code

Country Status (1)

Country Link
CN (1) CN104915704A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106875251A (en) * 2016-12-28 2017-06-20 张家口国玉陶瓷文化发展有限公司 Based on the online 3D ceramics commodity personalization customization method in internet and system architecture
CN107358431A (en) * 2017-06-27 2017-11-17 高波 Self-help settlement method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338409A (en) * 2013-06-20 2013-10-02 深圳市同洲电子股份有限公司 Method of device discovery and digital television terminal
CN103679440A (en) * 2013-12-14 2014-03-26 福建省优艾迪网络信息有限公司 Financial receipt and payment method with two-dimension code being used as carrier
CN103942589A (en) * 2014-04-22 2014-07-23 浙江大学 Voice paper recording method based on two-dimensional code recognition of mobile terminal
CN104202745A (en) * 2014-09-16 2014-12-10 腾讯科技(深圳)有限公司 Wireless network configuration information sharing method, terminal and communication system
CN104239925A (en) * 2013-06-21 2014-12-24 广州市人民印刷厂股份有限公司 Printing and recognition method for invisible and encrypted two-dimension code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103338409A (en) * 2013-06-20 2013-10-02 深圳市同洲电子股份有限公司 Method of device discovery and digital television terminal
CN104239925A (en) * 2013-06-21 2014-12-24 广州市人民印刷厂股份有限公司 Printing and recognition method for invisible and encrypted two-dimension code
CN103679440A (en) * 2013-12-14 2014-03-26 福建省优艾迪网络信息有限公司 Financial receipt and payment method with two-dimension code being used as carrier
CN103942589A (en) * 2014-04-22 2014-07-23 浙江大学 Voice paper recording method based on two-dimensional code recognition of mobile terminal
CN104202745A (en) * 2014-09-16 2014-12-10 腾讯科技(深圳)有限公司 Wireless network configuration information sharing method, terminal and communication system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TING1047705349: "《基于Android的二维码的生成与识别系统的设计与实现》", 15 January 2015 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106875251A (en) * 2016-12-28 2017-06-20 张家口国玉陶瓷文化发展有限公司 Based on the online 3D ceramics commodity personalization customization method in internet and system architecture
CN107358431A (en) * 2017-06-27 2017-11-17 高波 Self-help settlement method and system

Similar Documents

Publication Publication Date Title
US10311424B2 (en) Indicia encoding system with integrated purchase and payment information
CN103414687B (en) Method for using bar code image to carry out communication, device thereof and wearable part with embedded sensing core engine
US20180075498A1 (en) Merchant ordering system using optical machine readable image representation of invoice information
US9336520B2 (en) System and method for processing funds transfer between entities based on received optical machine readable image information
US9367841B2 (en) Facilitating mobile device payments using product code scanning
US9076140B2 (en) Image embedding apparatus and method
CN105654368A (en) Two-dimension code interactive sale system
CN105913101A (en) Commodity information generation method and terminal equipment
CN104715391A (en) Merchandise sales data processing apparatus
CN108182575A (en) A kind of realization system and method for the multi-party income real time settlement of internet electric business
CN111062768A (en) Commodity recommendation method and commodity recommendation system for online shopping mall
CN110096916A (en) Mthods, systems and devices for point of sale (pos) transactions
WO2013062481A1 (en) Anonymous collection, presentment and reverse auction of payment receipt items
CN108573377A (en) Dynamic two-dimension code generates display device and method
Viswanadha et al. Smart shopping cart
CN109242505A (en) A kind of commodity tracing method and its system based on body, two-dimensional code
Hossain et al. Role of Internet of Things (IoT) in retail business and enabling smart retailing experiences
EP2953084A1 (en) Social network messaging with integrated advertising
CA2805264C (en) Product pricing in e-commerce
CA3147930A1 (en) Build and update a virtual store based on a physical store
CN104915704A (en) Generation method of commodity two-dimensional code and application of commodity two-dimensional code
CN107481120A (en) E-commerce system based on Internet of things
CN106991191A (en) Commodity screening technique and device, storage medium, electronic equipment
CN107194725A (en) Merchandising different geographical pricing method and system
CN107153979A (en) The method and system of card two-dimensional code scanning shopping

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150916

RJ01 Rejection of invention patent application after publication