CN106022797A - Smart device APP image recognition method - Google Patents

Smart device APP image recognition method Download PDF

Info

Publication number
CN106022797A
CN106022797A CN201610318279.7A CN201610318279A CN106022797A CN 106022797 A CN106022797 A CN 106022797A CN 201610318279 A CN201610318279 A CN 201610318279A CN 106022797 A CN106022797 A CN 106022797A
Authority
CN
China
Prior art keywords
commodity
quick response
information
response code
serial number
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
CN201610318279.7A
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.)
Chengdu Mo Yun Science And Technology Ltd
Original Assignee
Chengdu Mo Yun Science And Technology 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 Chengdu Mo Yun Science And Technology Ltd filed Critical Chengdu Mo Yun Science And Technology Ltd
Priority to CN201610318279.7A priority Critical patent/CN106022797A/en
Publication of CN106022797A publication Critical patent/CN106022797A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • G06K7/10861Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices sensing of data fields affixed to objects or articles, e.g. coded labels

Abstract

The invention provides a smart device APP image recognition method comprising steps of: generating a two-dimension code image according to the commodity serial number of each commodity and printing the corresponding two-dimension code image and the corresponding commodity serial number on each commodity; enabling a user to acquire the two-dimension code image on the commodity by using the camera of a smart device in order to recognize the commodity serial number included in the two-dimension code image, comparing the recognized commodity serial number with the commodity serial number printed on the commodity, and determining the commodity is legal if the recognized commodity serial number is consistent with the commodity serial number printed on the commodity. The smart device APP image recognition method improves a conventional two-dimension code image reading method, is large in information capacity, high in privacy and reliability, and fast in recognition speed, has anti-counterfeit and traceability functions, and can be easily and widely used in the e-commerce field.

Description

Smart machine APP image-recognizing method
Technical field
The present invention relates to electricity business field, particularly to a kind of smart machine APP image-recognizing method.
Background technology
The Internet era of current, the survival and development of enterprise is the most no longer the competition between each enterprise, but Each Joint Enterprises institutes such as commodity raw material supply chain, goods manufacturer, commodity retail trader, commodity retail business Competition between supply chain and the supply chain of composition.Based on RFID or Internet of Things that Quick Response Code is access means The development of technology, has just catered to this market demand.The development of technology of Internet of things has promoted merchandise sales ring The Intelligent logistics management of joint and management of tracing to the source.Existing trace to the source and anti-counterfeiting technology application cost is high, use not Convenient.But existing Quick Response Code coding and application technology are still needed at logistic track, false proof, the aspect such as trace to the source Perfect, show Versatile two-dimension code to be identified as random two-dimensional code software the most recognizable, cause pirate manufacturer to exist After identifying the information in Quick Response Code, information therein is carried out fraudulent copying and makes the interests of user sustain a loss.
Summary of the invention
For solving the problem existing for above-mentioned prior art, the present invention proposes a kind of smart machine APP image Recognition methods, including:
Commodity Quick Response Code service platform commodity serial number according to every commodity before commodity dispatch from the factory generates two dimension Code image, is printed the commodity sequence of corresponding image in 2 D code and correspondence on each commodity by printing device Number;During merchandise sales, user utilizes smart machine photographic head to obtain the image in 2 D code on commodity, Identify the commodity serial number that this image in 2 D code is comprised, commodity serial number that matching identification obtains and printing Commodity serial number on commodity, if unanimously, determines that commodity are legal.
Preferably, described method farther includes:
The private key generation module stochastic generation double secret key of commodity Quick Response Code service platform, including PKI K0And private Key K1, after double secret key generates, by PKI K0Implant in the Quick Response Code identification APP of smart machine, work as intelligence When equipment user downloads this client and is identified the Quick Response Code generated, by PKI K0Will be as Quick Response Code The decrypted private key of coding information is decrypted process;Private key K1As commodity Quick Response Code service platform is encrypted mould The encryption key of block;The encrypting module of commodity Quick Response Code service platform obtains cipher key pair from private key generation module Private key K1, utilize DES algorithm, to data D1It is encrypted, obtains cipher-text information D2, described D1Including production firm's information, trade name, type information, production lot information, date of manufacture information, And the Unique Product serial number ID corresponding with these part commodity;By cipher-text information D2Information is given Quick Response Code and is generated Module, is obtained Quick Response Code coding information D by two-dimensional code generation module coding3;After obtaining Quick Response Code coding information, By this information D3It is sent to printing device, by printing device according to D in the way of serial data file3In correspondence Commodity on print respective two-dimensional code image;Unique Product serial number ID is printed upon on commodity in plain text, when When smart machine user detects commodity true and false, after items scanning Quick Response Code, Quick Response Code identification APP identifies Corresponding cipher-text information D2, obtain data D2After, utilize the most built-in decrypted private key K0, and and DES The decryption function that AES is corresponding is decrypted the cleartext information obtaining comprising Unique Product serial number to information D1;By Unique Product serial number ID and the cleartext information D printed on comparison commodity1In Unique Product sequence Commodity are differentiated by row number..
The present invention compared to existing technology, has the advantage that
The present invention proposes a kind of smart machine APP image-recognizing method, improves traditional Quick Response Code and reading Access method, information capacity is big, secret and reliability is high, recognition speed soon, also has merit that is false proof and that trace to the source Can, it is easy to be widely used in electricity business field.
Accompanying drawing explanation
Fig. 1 is the flow chart of smart machine APP image-recognizing method according to embodiments of the present invention.
Detailed description of the invention
Hereafter provide one or more embodiment of the present invention together with the accompanying drawing of the diagram principle of the invention is detailed Thin description.Describe the present invention in conjunction with such embodiment, but the invention is not restricted to any embodiment.This Bright scope is limited only by the appended claims, and the present invention contains many replacements, amendment and equivalent.? Middle elaboration many detail is described below to provide thorough understanding of the present invention.For exemplary purposes And these details are provided, and can also be according to right without some in these details or all details Claim realizes the present invention.
An aspect of of the present present invention provides a kind of smart machine APP image-recognizing method.Fig. 1 is according to this The smart machine APP image-recognizing method flow chart of bright embodiment.
The present invention achieves commodity Quick Response Code service platform based on Quick Response Code and Internet of Things, by merchandise news and business The management information system such as product Quick Response Code service platform, enterprise ERP carry out integrated, structures Networking industries chain Information platform.
The identification process of Quick Response Code identification APP is as follows.
(1) open the Quick Response Code identification APP that smart machine is installed, smart machine photographic head be directed at Quick Response Code, After system auto-focusing, can fix and get image in 2 D code.
(2) image is carried out preliminary treatment, identify the black and white module in image.
(3) byte code stream therein is got according to image in 2 D code feature.
(4) bytecode stream is decoded, restores the binary system byte code stream of octet one group, added Close byte code stream.
(5) use zlib compression algorithm to decompress, generate the byte code stream after decompression.
(6) bytecode stream is decrypted, restores initial two-dimentional bytecode.
(7) use the decoding algorithm of Quick Response Code to carry out last decoding, byte code stream is reduced into character string.
(8) export last character string, smart machine shows.
Before commodity dispatch from the factory, commodity Quick Response Code service platform is according to the commodity serial number Mass production of every commodity Image in 2 D code, is then sent to printing device, printing device print corresponding two dimension on each commodity Code image and the commodity serial number of correspondence.
During merchandise sales, user utilizes the smart machine photographic head being provided with Quick Response Code identification APP to obtain Take the image in 2 D code on commodity.Quick Response Code identification APP can be recognized accurately this image in 2 D code and be comprised Commodity serial number, so, user just can with the manpower comparing commodity serial number to identifying be printed upon business Commodity serial number on product, if unanimously, then it represents that commodity are legal.
The nucleus module of commodity Quick Response Code service platform include typing module, private key generation module, encrypting module, Two-dimensional code generation module and print module.
Typing module: before commodity dispatch from the factory, the chamber of commerce of factory distribution Unique Product serial number gives every commodity.Record Enter module receive these Unique Product serial numbers and other information (such as production firm's information, date of manufacture, Marque) batch import.Reception mode has two kinds: a kind of is with the data of database file storage;Separately A kind of mode combined for interface input data and database file reception data transmits data.Data are made With the data stream of Program Generating xml document, as the information source of Quick Response Code generation, then it is sent to encrypting module.
Private key generation module: according to each Unique Product serial number, private key generation module is criticized according to random fashion Amount generates the private key corresponding with this Unique Product serial number, compiles as information in variable information Secure processing software The encryption key of code encryption module, and as 2 D code information deciphering module in special Quick Response Code identification APP Decrypted private key.
Encrypting module: the variable information received for typing module, including Unique Product serial number, production Manufacturer's information, date of manufacture, marque, the corresponding private key utilizing private key generation module to generate, add Close process, exports cipher-text information.
Two-dimensional code generation module: the cipher-text information generated according to information coding encrypting module, uses Quick Response Code raw Algorithm is become to generate corresponding two-dimensional code symbol.
Print module: two-dimensional code symbol produced by two-dimensional code generation module is sent to print system by this module System.
Quick Response Code identification APP is decrypted process to the cipher-text information identified.
The private key generation module stochastic generation double secret key K of commodity Quick Response Code service platform0(PKI) and K1(private Key), after double secret key generates, PKI K0In implanted Quick Response Code identification APP, when smart machine user downloads When this client the Quick Response Code to generation are identified, PKI K0Using the deciphering as Quick Response Code coding information Private key is decrypted process;Private key K1As the encryption key of encrypting module in commodity Quick Response Code service platform.
D1For producing manufacturer's information, trade name, type information, production lot information, date of manufacture information Deng optional information, and this essential information of the Unique Product serial number corresponding with these part commodity.
Encrypting module obtains the private key K of cipher key pair from private key generation module1, utilize DES algorithm, logarithm According to D1It is encrypted, obtains cipher-text information D2
Cipher-text information D2Information gives two-dimensional code generation module, two-dimensional code generation module coding obtain two dimension Code coding information D3
After obtaining Quick Response Code coding information, by this information D3It is sent to print in the way of serial data file Equipment, by printing device according to D3Corresponding commodity print respective two-dimensional code image.
Meanwhile, Unique Product serial number ID is printed upon on commodity in plain text, and at this moment, these commodity just can enter Enter market to sell.
When smart machine user needs to detect commodity true and false, after items scanning Quick Response Code, Quick Response Code identification APP In can identify exactly correspondence data D2, information D that at this moment identifies2It it is cipher-text information.
Quick Response Code identification APP obtains data D2After, 2 D code information deciphering module utilizes the most built-in solution Close private key K0, and the decryption function corresponding with des encryption algorithm, information is decrypted and obtains D1
Due to D1It is cleartext information, and has wherein comprised Unique Product serial number, thus 2 D code information Deciphering module can extract Unique Product serial number.
Further, since Unique Product serial number is printed upon on commodity in figure punch mode, smart machine User can be by the way of manpower comparing pair, it is achieved commodity true and false judges.
Use digital imaging devices print, the process of printing includes: print, UV solidification, detection, Inspection rejects.Wherein, the data-interface that Quick Response Code prints between generation system and printing device can set according to printing Standby difference and develop different data-interfaces.In this process Quick Response Code is generated the two dimension that system generates Code together prints on commodity.By covered rearing with plastic film in printed product surface, and use adhesive heated, Form paper after pressurization, mould the process technology of the printed product of unification.Printed product incrustation includes glazing, cross cutting Impression, bind, print after decorate.
The internal network of commodity Quick Response Code service platform is responsible for user and is used Quick Response Code terminal recognition software to business Product carry out the work of the data query after barcode scanning, in order to carry out commodity, trace to the source and fake certification management.By two dimension Code generates in the Quick Response Code input database server 1 that system generates, and Quick Response Code generates application server and number According to storehouse server 1 Hot Spare each other, then transfer data in 2 D code information management system.Simultaneously in enterprise Portion carries out Quick Response Code printing production in the industry.Internal network includes that two-dimension code safe proxy server, Quick Response Code are looked into Ask management server and database server 2.Quick Response Code searching and managing server is mutual with database server 2 For Hot Spare, any of which one station server breaks down, and system automatically switches to transport on another station server OK.Use hardware firewall that query safe proxy server is deployed in data isolation district.
The demand controlled for commodity region, further embodiment of the present invention uses the mode by region coding, Each region is applied different commodity unique encodings, then coding information is generated Quick Response Code.By two dimension code division For single product Quick Response Code and packing crates Quick Response Code, by commodity input database, then for different commerical batches, Different commodity unique encodings is generated, by information by Quick Response Code Mass production Software Create after commodity are processed Two kinds of different Quick Response Codes, are respectively adhered on single product and packing crates.After Quick Response Code identification APP identifies, Data in information and date storehouse are compared.The concrete mode of data loading is: realize the single product of successively scanning Quick Response Code and packing crates Quick Response Code, give production information, and the information that will gather adds two-dimensional code data storehouse letter to In breath, and automatically it is associated with packing crates Quick Response Code after single product collecting quantity reaches packaging quantity, it is achieved Single product bar code anti-counterfeit, packing crates Quick Response Code carry out the tracking in geographical position, data are backuped to data base simultaneously In server 1, then reach in database server 2.
In sum, the present invention proposes a kind of smart machine APP image-recognizing method, improves traditional Quick Response Code and read method, information capacity is big, secret and reliability is high, recognition speed soon, also has false proof With the function traced to the source, it is easy to be widely used in electricity business field.
Obviously, it should be appreciated by those skilled in the art, each module or each step of the above-mentioned present invention are permissible Realizing by general calculating system, they can concentrate in single calculating system, or is distributed in many On the network that individual calculating system is formed, alternatively, they can use the executable program code of calculating system Realize, it is thus possible to be stored in storage system being performed by calculating system.So, this Bright be not restricted to any specific hardware and software combine.
It should be appreciated that the above-mentioned detailed description of the invention of the present invention is used only for exemplary illustration or explains this The principle of invention, and be not construed as limiting the invention.Therefore, without departing from the spirit and scope of the present invention In the case of any modification, equivalent substitution and improvement etc. done, should be included in protection scope of the present invention Within.Additionally, claims of the present invention be intended to fall into scope and border or Whole in the equivalents on this scope of person and border change and modifications example.

Claims (2)

1. commodity are carried out real and fake discrimination for smart machine by smart machine APP image-recognizing method, and it is special Levy and be, including:
Commodity Quick Response Code service platform commodity serial number according to every commodity before commodity dispatch from the factory generates two dimension Code image, is printed the commodity sequence of corresponding image in 2 D code and correspondence on each commodity by printing device Number;During merchandise sales, user utilizes smart machine photographic head to obtain the image in 2 D code on commodity, Identify the commodity serial number that this image in 2 D code is comprised, commodity serial number that matching identification obtains and printing Commodity serial number on commodity, if unanimously, determines that commodity are legal.
Method the most according to claim 1, it is characterised in that described method farther includes:
The private key generation module stochastic generation double secret key of commodity Quick Response Code service platform, including PKI K0And private Key K1, after double secret key generates, by PKI K0Implant in the Quick Response Code identification APP of smart machine, work as intelligence When equipment user downloads this client and is identified the Quick Response Code generated, by PKI K0Will be as Quick Response Code The decrypted private key of coding information is decrypted process;Private key K1As commodity Quick Response Code service platform is encrypted mould The encryption key of block;The encrypting module of commodity Quick Response Code service platform obtains cipher key pair from private key generation module Private key K1, utilize DES algorithm, to data D1It is encrypted, obtains cipher-text information D2, described D1Including production firm's information, trade name, type information, production lot information, date of manufacture information, And the Unique Product serial number ID corresponding with these part commodity;By cipher-text information D2Information is given Quick Response Code and is generated Module, is obtained Quick Response Code coding information D by two-dimensional code generation module coding3;After obtaining Quick Response Code coding information, By this information D3It is sent to printing device, by printing device according to D in the way of serial data file3In correspondence Commodity on print respective two-dimensional code image;Unique Product serial number ID is printed upon on commodity in plain text, when When smart machine user detects commodity true and false, after items scanning Quick Response Code, Quick Response Code identification APP identifies Corresponding cipher-text information D2, obtain data D2After, utilize the most built-in decrypted private key K0, and and DES The decryption function that AES is corresponding is decrypted the cleartext information obtaining comprising Unique Product serial number to information D1;By Unique Product serial number ID and the cleartext information D printed on comparison commodity1In Unique Product sequence Commodity are differentiated by row number.
CN201610318279.7A 2016-05-13 2016-05-13 Smart device APP image recognition method Pending CN106022797A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610318279.7A CN106022797A (en) 2016-05-13 2016-05-13 Smart device APP image recognition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610318279.7A CN106022797A (en) 2016-05-13 2016-05-13 Smart device APP image recognition method

Publications (1)

Publication Number Publication Date
CN106022797A true CN106022797A (en) 2016-10-12

Family

ID=57100095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610318279.7A Pending CN106022797A (en) 2016-05-13 2016-05-13 Smart device APP image recognition method

Country Status (1)

Country Link
CN (1) CN106022797A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108256608A (en) * 2017-03-15 2018-07-06 新华智云科技有限公司 A kind of two dimensional image code and its recognition methods and equipment
CN108734475A (en) * 2017-04-19 2018-11-02 中山大学 A kind of method for anti-counterfeit of tracing to the source based on big data correlation analysis
CN108722882A (en) * 2018-04-28 2018-11-02 江苏华章物流科技股份有限公司 Intelligent sorting packaging system and its sorting packaging method
CN109001530A (en) * 2018-06-21 2018-12-14 日照和川信息技术有限公司 A kind of electric energy meter identification sorting system
CN109242110A (en) * 2018-07-12 2019-01-18 上海常仁信息科技有限公司 Robot based on robot identity card safeguards record system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270294A (en) * 2011-08-12 2011-12-07 华南农业大学 Bar code and two-dimension code hybrid coding and decoding methods and devices
CN103020684A (en) * 2012-12-07 2013-04-03 北京印刷学院 Anti-counterfeiting device, anti-counterfeiting recognition device and system for commodity packaging

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270294A (en) * 2011-08-12 2011-12-07 华南农业大学 Bar code and two-dimension code hybrid coding and decoding methods and devices
CN103020684A (en) * 2012-12-07 2013-04-03 北京印刷学院 Anti-counterfeiting device, anti-counterfeiting recognition device and system for commodity packaging

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
解龙: "基于加密QR码的商品流通管理应用研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108256608A (en) * 2017-03-15 2018-07-06 新华智云科技有限公司 A kind of two dimensional image code and its recognition methods and equipment
CN108734475A (en) * 2017-04-19 2018-11-02 中山大学 A kind of method for anti-counterfeit of tracing to the source based on big data correlation analysis
CN108734475B (en) * 2017-04-19 2022-01-04 中山大学 Traceability anti-counterfeiting method based on big data relevance analysis
CN108722882A (en) * 2018-04-28 2018-11-02 江苏华章物流科技股份有限公司 Intelligent sorting packaging system and its sorting packaging method
CN109001530A (en) * 2018-06-21 2018-12-14 日照和川信息技术有限公司 A kind of electric energy meter identification sorting system
CN109242110A (en) * 2018-07-12 2019-01-18 上海常仁信息科技有限公司 Robot based on robot identity card safeguards record system

Similar Documents

Publication Publication Date Title
CN109598540B (en) Advertisement accurate pushing method and advertisement accurate pushing system
US7770783B2 (en) Method and system to provide security information when authenticating product code
CN106022797A (en) Smart device APP image recognition method
US11418336B2 (en) Digital ledger for unique item IDs with ownership
US20190197562A1 (en) System and method for product authentication
CN107431622A (en) The blocking tracking in supply chain occurs
CN106022187A (en) High-efficient O2O implementation method
CN102004965B (en) Double ant-counterfeiting method and system of product
CN111639734B (en) Novel two-dimensional code encoding and anti-counterfeiting application method embedded with QR code
CN103646331B (en) Wine anti-counterfeit source tracing method based on enciphered bar code mark
US9087225B2 (en) Integraded package authentication system and method thereof
CN105976005A (en) Two-dimensional code encrypting method, two-dimensional code generating device and two-dimensional code scanning device
US10068237B2 (en) Transmit an authentication mark
CN103489086A (en) Authority control system and method of logistics information
CN106067121A (en) A kind of product off-line false distinguishing method based on NFC technique
US20200344046A1 (en) Product Tracking System and Method
CN115511019A (en) Anti-counterfeiting verification method for binding RFID (radio frequency identification) label and article bar code
Mittra et al. A desktop application of QR code for data security and authentication
CN110874749A (en) Certified tracing method based on block chaining
CN104766212A (en) Identification device and method
EA035937B1 (en) Secure item identification based on physical label properties
CN108460606A (en) A kind of method for anti-counterfeit based on two-dimensional code scanning and revene lookup
CN107437188A (en) A kind of method that fake certification is quickly realized using bar code
CN1645409A (en) Mobile wireless network identifying system
CN110472707A (en) Product certification system and product certification method

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: 20161012

RJ01 Rejection of invention patent application after publication