CN110210878A - Commodity source tracing method and device based on two dimension code reading device - Google Patents

Commodity source tracing method and device based on two dimension code reading device Download PDF

Info

Publication number
CN110210878A
CN110210878A CN201910497695.1A CN201910497695A CN110210878A CN 110210878 A CN110210878 A CN 110210878A CN 201910497695 A CN201910497695 A CN 201910497695A CN 110210878 A CN110210878 A CN 110210878A
Authority
CN
China
Prior art keywords
image
reading device
code reading
source
dimension code
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
CN201910497695.1A
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.)
Beijing Inspiry Technology Co Ltd
Original Assignee
Beijing Inspiry 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 Inspiry Technology Co Ltd filed Critical Beijing Inspiry Technology Co Ltd
Priority to CN201910497695.1A priority Critical patent/CN110210878A/en
Publication of CN110210878A publication Critical patent/CN110210878A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • 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

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Electromagnetism (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

Present disclose provides a kind of commodity source tracing methods based on two dimension code reading device, obtain the image for the commodity outer packing pattern that user is shot by electric terminal;When the length and width and picture quality of image meet preset condition, image is handled;By two dimension code reading device, to treated, image carries out two dimensional code identification;If identifying successfully, information of tracing to the source is obtained from two dimensional code, and matched with pre-stored data in server of tracing to the source according to information is traced to the source;If successful match, the information that will trace to the source is sent to user.The method increase commodity trace to the source data transmission high efficiency, stability and accuracy.The disclosure additionally provides a kind of commodity based on two dimension code reading device and traces to the source device.

Description

Commodity source tracing method and device based on two dimension code reading device
Technical field
This disclosure relates to commodity tracing technology field, in particular to a kind of commodity based on two dimension code reading device Source tracing method and device.
Background technique
In the prior art, for convenience of the relevant information for understanding commodity, security code is usually puted up or sprayed in commodity packaging, To which consumer can obtain the relevant information of corresponding goods by scanning security code from association backstage.How a kind of quotient is provided Product are traced to the source scheme, improve data transfer efficiency and stability, and reducing use cost is those skilled in the art's skill urgently to be resolved Art problem.
Summary of the invention
The technical issues of in order to solve in the prior art, the embodiment of the present disclosure provide a kind of based on two dimension code reading device Commodity source tracing method and device, obtain the image of commodity outer packing pattern that user is shot by electric terminal;In image When length and width and picture quality meet preset condition, image is handled;By two dimension code reading device to processing Image afterwards carries out two dimensional code identification;If identifying successfully, obtain and trace to the source information from two dimensional code, and according to trace to the source information with trace back Pre-stored data are matched in source server;If successful match, the information that will trace to the source is sent to user.It improves as a result, Commodity are traced to the source high efficiency, stability and the accuracy of data transmission.
In a first aspect, the embodiment of the present disclosure provides a kind of commodity source tracing method based on two dimension code reading device, including Following steps: the image for the commodity outer packing pattern that user is shot by electric terminal is obtained;In the length and width of described image When degree and picture quality meet preset condition, described image is handled;By two dimension code reading device to treated Image carries out two dimensional code identification;If identifying successfully, information of tracing to the source is obtained from the two dimensional code, and according to the information of tracing to the source It is matched with data pre-stored in server of tracing to the source;If successful match, the information of tracing to the source is sent to user.
The image for obtaining the commodity outer packing pattern that user is shot by electric terminal in one of the embodiments, It before include: that resolution ratio and picture format processing are carried out to the image of two dimensional code to be embedded;According to the figure of given two dimensional code As characteristic information, the image of corresponding two dimensional code is determined;The image that processing is completed is opened in two dimensional code Core Generator, it will The two dimensional code determined is embedded into described image, obtains commodity outer packing pattern design files, wherein the outer packing pattern Design document is for printing commodity outer packing pattern.
It is described in one of the embodiments, that carry out processing to described image include: to believe the image of the two dimensional code Breath is converted to gray level image;Illumination detection is carried out to the gray level image, according to illumination testing result to the institute of the two dimensional code It states gray level image and carries out photo-equilibrium processing;According to the image grayscale transition threshold value of setting to photo-equilibrium treated the grayscale image Every a line pixel of picture is grouped, and determines according to maximum entropy threshold method the gray scale of the pixel of each grouping of every a line Binarization threshold, and according to the binarization threshold to the gray scale of each pixel in each grouping of every a line carry out from Adapt to binary conversion treatment.
In one of the embodiments, it is described according to the binarization threshold to each in each grouping of every a line The gray scale of pixel carry out self-adaption binaryzation processing include: according to the binarization threshold, gray value in preset group group is big It is set as black in the pixel of the binarization threshold, gray value in preset group group is less than to the pixel of the binarization threshold It is set as white;Alternatively, gray value in preset group group to be greater than to the pixel of the binarization threshold according to the binarization threshold It is set as white, the pixel that gray value in preset group group is less than the binarization threshold is set as black.
In one of the embodiments, further include: differential filtering processing is carried out to the gray level image.
In one of the embodiments, further include: be suitable for the configuration for being laid in multiple scenes the camera shooting of bar code reading The two dimension code reading device of head, double screen and the control system based on central processing unit carries out networking, and more to being laid in The support of a scene and input equipment and the two dimension code reading device of printing equipment synergistic application, the control two dimensional code are known The electric terminal of read apparatus and server cluster three are attached, wherein support and the input equipment and the printing The two dimension code reading device of device synergistic application include at least one be suitable for bar code reading camera, described at least one Light of a camera suitable for bar code reading for 360 ° of full angles of real-time perception changes, will pass through the central processing Device triggers the variation operation that liquid crystal display completes display content.
The described pair of support for being laid in multiple scenes is cooperateed with input equipment and printing equipment in one of the embodiments, The two dimension code reading device of application, the electric terminal of the control two dimension code reading device and server cluster three into Row connection includes: at least one the described two dimension code reading device and cloud server cluster that will be laid in multiple scenes by WIFI It is attached;By bluetooth connection by least one the described two dimension code reading device for being laid in multiple scenes and control described two The electric terminal of dimension code reading device is attached.
Second aspect, the embodiment of the present disclosure provide a kind of computer readable storage medium, are stored thereon with computer journey The step of sequence, which realizes above-mentioned method when being executed by processor.
The third aspect, the embodiment of the present disclosure provide a kind of computer equipment, including memory, processor and are stored in On reservoir and the computer program that can run on a processor, the processor realize above-mentioned method when executing described program Step.
Fourth aspect, the embodiment of the present disclosure provides a kind of commodity based on two dimension code reading device and traces to the source device, described Device includes: acquisition module, for obtaining the image for the commodity outer packing pattern that user is shot by electric terminal;Handle mould Block is handled described image when meeting preset condition with width and picture quality for the length in described image;Know Other module, for image to carry out two dimensional code identification to treated by two dimension code reading device;Matching module, if for identifying Success is then obtained from the two dimensional code and is traced to the source information, and according to it is described trace to the source information with it is pre-stored in server of tracing to the source Data are matched;The information of tracing to the source is sent to user if being used for successful match by sending module.
A kind of commodity source tracing method and device based on two dimension code reading device provided by the invention obtains user and passes through electricity The image of the commodity outer packing pattern of sub- terminal shooting;Meet preset condition in the length and width and picture quality of image When, image is handled;By two dimension code reading device, to treated, image carries out two dimensional code identification;If identifying successfully, Information of tracing to the source then is obtained from two dimensional code, and is matched according to information is traced to the source with pre-stored data in server of tracing to the source; If successful match, the information that will trace to the source is sent to user.The method increase commodity trace to the source data transmission high efficiency, stability With accuracy.
Detailed description of the invention
In order to illustrate more clearly of the technical solution of the embodiment of the present disclosure, below to needed in embodiment description Attached drawing is briefly described:
The step of Fig. 1 is commodity source tracing method of one of the one embodiment of the invention based on two dimension code reading device is flowed Journey schematic diagram;And
Fig. 2 is that the trace to the source structure of device of the commodity of one of one embodiment of the invention based on two dimension code reading device is shown It is intended to.
Specific embodiment
The application is further discussed in detail with reference to the accompanying drawings and examples.
In following introductions, term " first ", " second " only for descriptive purposes, and should not be understood as instruction or dark Show relative importance.Following introductions provide multiple embodiments of the disclosure, can replace or merge between different embodiments Combination, therefore the application is it is also contemplated that all possible combinations comprising documented identical and/or different embodiments.Thus, such as Fruit one embodiment include feature A, B, C, another embodiment include feature B, D, then the application also should be regarded as include containing A, the every other possible combined embodiment of one or more of B, C, D, although the embodiment may be in the following contents In have specific literature record.
In order to make the objectives, technical solutions, and advantages of the present invention clearer, by the following examples, it and combines attached Figure carries out a kind of specific embodiment of commodity source tracing method and device based on two dimension code reading device of the present invention further It is described in detail.It should be appreciated that described herein, specific examples are only used to explain the present invention, is not intended to limit the present invention.
As shown in Figure 1, for the process of commodity source tracing method of one of the one embodiment based on two dimension code reading device Schematic diagram, specifically includes the following steps:
Step 102, the image for the commodity outer packing pattern that user is shot by electric terminal is obtained.
In one embodiment, it is necessary to which explanation, obtains the commodity outer packing pattern that user is shot by electric terminal Image before include: that resolution ratio and picture format processing are carried out to the image of two dimensional code to be embedded;According to given two dimension The image feature information of code, determines the image of corresponding two dimensional code;The image that processing is completed is in two dimensional code Core Generator It opens, the two dimensional code determined is embedded into image, obtains commodity outer packing pattern design files, wherein outer packing pattern Design document is for printing commodity outer packing pattern.Technical support is provided as a result, for the feasibility that subsequent article is traced to the source.
Step 104, when the length of image and width and picture quality meet preset condition, image is handled. It should be noted that the length and width of image just facilitate subsequent read operation, it is preferable that image in pre-set dimension Length and width are 1024*768;For picture quality, it is necessary first to images to be recognized is collected, by the images to be recognized of collection It is divided into two training sets of low quality images to be recognized and high quality images to be recognized, the image of two training sets is marked respectively Note;The low quality images to be recognized and high quality images to be recognized complete to label are trained, and construct quality evaluation network mould Type.Further, if the characteristic parameter in the characteristic information of images to be recognized is lower than the quality evaluation network model constructed in advance In images to be recognized characteristic information in characteristic parameter, then network model is enhanced by the quality that constructs in advance and carries out two dimension The quality of code image enhances operation.It should be noted that quality enhancing network model is to learn high quality using TP-GAN technology The low quality images to be recognized that label is completed is carried out the supplement of integrity degree and clarity and is converted by the characteristics of images to be recognized The model that the building of high quality images to be recognized generates, i.e., finally make picture quality meet preset condition, facilitate subsequent recognition Operation.
Specifically, carrying out processing to image includes: that the image information of two dimensional code is converted to gray level image;To gray level image Illumination detection is carried out, photo-equilibrium processing is carried out according to gray level image of the illumination testing result to two dimensional code;According to the image of setting Gray scale transition threshold value is grouped every a line pixel of photo-equilibrium treated gray level image, and according to maximum entropy threshold method Determine the binarization threshold of the gray scale of the pixel of each grouping of every a line, and according to binarization threshold to each of every a line The gray scale of each pixel in grouping carries out self-adaption binaryzation processing.Further, it should be noted that according to binaryzation It includes: according to binaryzation that threshold value, which carries out self-adaption binaryzation processing to the gray scale of each pixel in each grouping of every a line, The pixel that gray value in preset group group is greater than binarization threshold is set as black, gray value in preset group group is less than by threshold value The pixel of binarization threshold is set as white;Alternatively, gray value in preset group group is greater than binaryzation threshold according to binarization threshold The pixel of value is set as white, and the pixel that gray value in preset group group is less than binarization threshold is set as black.In addition, this public affairs Open the commodity source tracing method based on two dimension code reading device being related to further include: differential filtering processing is carried out to gray level image.By This, improves accuracy and ease for use subsequently through two dimension code reading device recognition image.
Step 106, by two dimension code reading device, to treated, image carries out two dimensional code identification.
It should be noted that in one embodiment, this disclosure relates to a kind of commodity based on two dimension code reading device Source tracing method further include: the camera of bar code reading, double screen are suitable for the configuration for being laid in multiple scenes and are based on center The two dimension code reading device of the control system of processor carries out networking, and to the support and input equipment for being laid in multiple scenes and The two dimension code reading device of printing equipment synergistic application, the electric terminal and server cluster three for controlling two dimension code reading device Person is attached, wherein supports that with the two dimension code reading device of input equipment and printing equipment synergistic application include at least one Suitable for the camera of bar code reading, at least one is suitable for the camera of bar code reading for 360 ° of full angles of real-time perception Light variation, will pass through the variation operation that central processing unit triggering liquid crystal display completes display content.Specifically, more to being laid in The support of a scene and input equipment and the two dimension code reading device of printing equipment synergistic application control two dimension code reading device It includes: at least one two dimension that multiple scenes will be laid in by WIFI that electric terminal and server cluster three, which are attached, Code reading device is attached with cloud server cluster;At least one two dimensional code of multiple scenes will be laid in by bluetooth connection The electric terminal of reading device and control two dimension code reading device is attached.Further, it is also possible to will be laid by wired connection It is attached in the electric terminal of at least one two dimension code reading device and control two dimension code reading device of multiple scenes.By This, improves the diversity and multi-selection of networking arrangement.
It should be noted that the camera for being suitable for being not limited to bar code reading, which can perceive front, bar code or two dimensional code When, display content is removed, display screen is become into transparent glass convenient for recognition.The intelligence of two dimension code reading device is enhanced as a result, Property and ease for use.In addition, can also be distinguished while screen display content by being handled based on preset algorithm in central processing unit Bar code or QR code content.The diversity and flexibility that two dimension code reading device uses are improved as a result,.
In addition it is also necessary to which explanation, two dimension code reading device can also be preferable configured with double screen, which is double The asynchronous liquid crystal display panel in face specifically includes first substrate and the first liquid crystal display for being respectively arranged at first substrate two sides With the second liquid crystal display, the first liquid crystal display includes the first electrode layer and successively close to one side surface of first substrate Liquid crystal layer, the second electrode lay and the second substrate in first electrode layer are set;Second liquid crystal display includes close to first The third electrode layer of another side surface of substrate and the bistable liquid crystal layer being successively set on third electrode layer, the 4th electrode layer, Third substrate and backlight module.Specifically, first electrode layer and third electrode layer have phase equipotential.First substrate is equipped with extremely Few one runs through the via hole of first substrate, and first electrode layer and third electrode layer are formed by via hole to be electrically connected.First electrode layer Be equipped with flexible drive circuit board between third electrode layer, first electrode layer and third electrode layer respectively with flexible drive circuit board Form electrical connection.When electric field is null field between third electrode layer and the 4th electrode layer, the second liquid crystal cells are real under ambient Now reflection display;There are when electric field between third electrode layer and the 4th electrode layer, pellucidity is presented in the second liquid crystal cells.Third There are when electric field between electrode layer and the 4th electrode layer, pellucidity is presented in the second liquid crystal cells, and the light in backlight module is worn The second liquid crystal display and first substrate are crossed, the first liquid crystal display is using light as backlight.First electrode layer or It include the first tft array layer in two electrode layers;It include the second tft array layer in third electrode layer or the 4th electrode layer.Second base Plate is equipped with the first polaroid far from the side of liquid crystal layer, and color membrane substrates are additionally provided between the second substrate and the second electrode lay;Third The second polaroid is equipped between substrate and backlight module or between first substrate and first electrode layer.Pass through two-sided asynchronous liquid crystal The setting for showing panel effectively improves the ease for use paid for mobile payment device and high experience property.
It will be appreciated by persons skilled in the art that the control system based on central processing unit mainly incudes mould by barcode scanning Block, backlight module, supplementary lighting module, image capture module, decoder module, main control module composition.Specifically, barcode scanning induction module position In two dimension code reading device, i.e., above barcode scanning box, the barcode scanning movement of user can be perceived, this perception information is transmitted to master control mould Block, i.e. main control chip are handled.After main control chip receives user's barcode scanning signal, control transparence display window is closed all aobvious Show content, transparence display window becomes to complete transparent glass, and image in 2 D code information is allowed to complete across transparency display window Mouth is imaged.Induction module includes but is not limited to one of following several forms or multiple combinations mode: infrared distance perception Answer module;Ultrasonic distance induction module;Light sensing module;Electromagnetic field inducing module.In addition it is also necessary to which explanation, sweeps Also reusable image capture module carries out operation realization to code induction module, monitors mobile variation or light by image capture module Variation, perception barcode scanning movement.Further, transparence display window can show according to the instruction that main control module transmits and mention accordingly Show guidance information, all displays are closed in the instruction that can also be transmitted according to main control module, are become transparent glass window, are allowed two dimensional code Image light in image capture module normal through being imaged.Transparent liquid crystal display, example can be selected in transparence display window Such as transparent TN-LCD, transparent TFT-LCD, transparent OLED display screen, transparent PDP display screen plasma display.
Further, it should be noted that backlight module passes through light guide plate, light using white led lamps as light source The modes such as bowl form uniform white light, obtain clearly as the backlight of transparent video screen, while also as barcode scanning light filling Clear image in 2 D code information.Supplementary lighting module is located at transparence display with image capture module positioned at the top of transparent display screen The two sides of optical window.When distinguishing papery bar code, clearly bar code image information can be obtained as fill-in light photograph.Image capture module The image information in front of equipment can be obtained, collected image in 2 D code information is transmitted to decoder module.Decoder module is to obtaining The image in 2 D code information taken carries out image procossing, and carries out two dimensional code decoding according to decoding algorithm, and decoding result is transmitted to Main control module.Main control module realizes operation, the control of each functional module of equipment.In addition, the use based on two dimension code reading device Before barcode scanning, scanning guidance information, amount of money prompt information or other ad contents are shown on device transparency display window.Work as barcode scanning It when induction module perceives barcode scanning payment movement, closes window and shows information, become fully transparent barcode scanning recognition optical window, image Acquisition module obtains the two-dimensional barcode information in front by transparent optical window, and decoder module obtains image in 2 D code information and is decoded, After completing decoding, transparence display window shows the contents such as result information, advertising information.Subsequent equipment is recycled into next barcode scanning Logic.The diversity and flexibility of the application of two dimension code reading device are increased as a result,.
In addition it is also necessary to explanation, the structure of two dimension code reading device can also be to be configured with LCD screen and leaded light The spine two dimension code reading device of the shared windows of plate form, and including barcode scanning lamp bowl.Specifically, LCD screen and light guide plate The shared windows of form specifically include shared windows main body;Fixed window is provided in main body;Fixed window includes right-angled intersection The fisrt feature window and second feature window of setting;At least one is provided on fisrt feature window and second feature window Fixed device.Fixed device includes grab and card slot;Grab and card slot are separately positioned on fisrt feature window or second feature window The opposite sides of mouth is fixed after capable of being blocked LCD screen or light guide plate form by card slot by grab.In addition, Fixed device includes the grab being arranged in pairs, and each pair of grab is separately positioned on the opposite of fisrt feature window or second feature window Two sides.Grab includes being fixedly connected with portion and clamping portion;Portion is fixedly connected with to be fixedly connected with shared windows main body;Clamping portion fixation is set It sets in the side for being fixedly connected with portion.Clamping portion is provided with slide-in inclined-plane far from the side of main body, can facilitate light guide plate form or The entrance of LCD screen.Clamping portion is close to shared windows, the i.e. side of the side of tabula rasa form or LCD screen main body and fixation Interconnecting piece is vertical.Being fixedly connected with portion is elastic material.On different grabs, the distance between clamping portion and shared windows main body are no Together.Fisrt feature window and the coaxial arrangement of second feature window.It further include third feature window;Third feature window is respectively with One characteristic window is connected to second feature window intersection;It is provided at least one on third feature window and fixes device.
In addition it is also necessary to which explanation, supports the two dimension code reading device with input equipment and printing equipment synergistic application In input equipment be with the input keyboard of desktop computer cooperating or the input keyboard of PC all-in-one machine or have computing function with Assist the digital function keyboard of delivery operation function.Printing equipment is printer, is specifically included: paper feeding entrance is arranged and prints Mouthful body, be provided with thermal printing module in body, it is low to be provided at least one between paper feeding entrance and thermal printing module Warm cooling chamber, thermal printing module and printing outlet between by transmission mechanism be connected in turn overlay film module, be cold-pressed module, Cut module.Specifically, at least one sub-cooled chamber is used to reduce paper surface temperature using cold air;Thermal printing module For printing to paper, printed paper transport is given to overlay film module;Overlay film module is for receiving thermal printing module The paper of transmission, and by paper overlay film, give paper transport coated with film to cold pressing module;Cold pressing module is for receiving overlay film module The paper of transmission is cold-pressed paper on overlay film surface, and gives the paper sheet delivery after cold pressing to cutting module;Module is cut to use In the paper for receiving cold pressing module transfer, paper is cut by specification, and give the paper transport after the completion of cutting to printing outlet.This Outside, sub-cooled chamber is additionally provided between thermal printing module and overlay film module.In addition, being additionally provided on body interconnected Display module, controller, thermal printing module, cold pressing module, cut module and connect with controller and by work overlay film module Working condition is transferred to display module to controller, controller by state transfer.
Step 108, if identifying successfully, information of tracing to the source is obtained from two dimensional code, and according to information and the service of tracing to the source of tracing to the source Pre-stored data are matched in device.It should be noted that the database in server of tracing to the source stores in advance and two dimension Code, the associated binding of user information and merchandise news information, and by merchandise news and return to the webpage of customer mobile terminal Link binding.It improves as a result, and the accuracy and safety that commodity are traced to the source is carried out based on two dimension code reading device.
Step 110, if successful match, the information that will trace to the source is sent to user.Wherein, it should be noted that information of tracing to the source Including marker of tracing to the source, the characteristic information on commodity production date, sequence number information and/or image in 2 D code, by marker of tracing to the source, The characteristic information of commodity production date, sequence number information and/or image in 2 D code is matched with the data in server of tracing to the source Verification returns to commodity to server of tracing to the source and traces to the source successful information if successful match.In addition it is also necessary to explanation, if matching Unsuccessful, then the early warning program for being built in two dimension code reading device is triggered, and is reminded by sound or photoelectricity.It mentions as a result, It is high that the flexibility and ease for use that commodity are traced to the source are carried out based on two dimension code reading device.
A kind of commodity source tracing method based on two dimension code reading device provided by the invention obtains user and passes through electric terminal The image of the commodity outer packing pattern of shooting;When the length and width and picture quality of image meet preset condition, to figure As being handled;By two dimension code reading device, to treated, image carries out two dimensional code identification;If identifying successfully, from two dimension Information of tracing to the source is obtained in code, and is matched according to information is traced to the source with pre-stored data in server of tracing to the source;If matching at Function, the then information that will trace to the source are sent to user.The method increase commodity trace to the source data transmission high efficiency, stability and precisely Property.
Based on the same inventive concept, a kind of commodity based on two dimension code reading device are additionally provided to trace to the source device.Due to this The principle that device solves the problems, such as is similar to a kind of aforementioned commodity source tracing method based on two dimension code reading device, therefore, the device Implementation can realize that overlaps will not be repeated according to the specific steps of preceding method.
As shown in Fig. 2, tracing to the source the structure of device for the commodity of one of one embodiment based on two dimension code reading device Schematic diagram.The commodity based on two dimension code reading device trace to the source device 10 include: obtain module 100, processing module 200, identification Module 300, matching module 400 and sending module 500.
Wherein, the image that module 100 is used to obtain the commodity outer packing pattern that user is shot by electric terminal is obtained;Place Reason module 200 is used to handle image when the length and width and picture quality of image meet preset condition;Identification Module 300 is used to pass through two dimension code reading device, and to treated, image carries out two dimensional code identification;If matching module 400 is for knowing Not Cheng Gong, then obtain and trace to the source information from two dimensional code, and according to pre-stored data in trace to the source information and server of tracing to the source into Row matching;If sending module 500 is used for successful match, the information that will trace to the source is sent to user.
A kind of commodity based on two dimension code reading device provided by the invention are traced to the source device, are passed through and are obtained module and obtain user Pass through the image for the commodity outer packing pattern that electric terminal is shot;Pass through processing module again in the length and width and figure of image When image quality amount meets preset condition, image is handled;After passing through two dimension code reading device to processing by identification module again Image carry out two dimensional code identification;If identify successfully by matching module again, acquisition is traced to the source information from two dimensional code, and according to Information of tracing to the source is matched with pre-stored data in server of tracing to the source;If, will eventually by sending module successful match Information of tracing to the source is sent to user.The arrangement increases commodity trace to the source data transmission high efficiency, stability and accuracy.
The embodiment of the invention also provides a kind of computer readable storage medium, stored on the computer readable storage medium There is computer program, which is executed by processor in Fig. 1.
The embodiment of the invention also provides a kind of computer program products comprising instruction.When the computer program product exists When being run on computer, so that the method that computer executes above-mentioned Fig. 1.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
The basic principle of the disclosure is described in conjunction with specific embodiments above, however, it is desirable to, it is noted that in the disclosure The advantages of referring to, advantage, effect etc. are only exemplary rather than limitation, must not believe that these advantages, advantage, effect etc. are the disclosure Each embodiment is prerequisite.In addition, detail disclosed above is merely to exemplary effect and the work being easy to understand With, rather than limit, it is that must be realized using above-mentioned concrete details that above-mentioned details, which is not intended to limit the disclosure,.
Device involved in the disclosure, device, equipment, system block diagram only as illustrative example and being not intended to It is required that or hint must be attached in such a way that box illustrates, arrange, configure.As those skilled in the art will appreciate that , it can be connected by any way, arrange, configure these devices, device, equipment, system.Such as "include", "comprise", " tool " etc. word be open vocabulary, refer to " including but not limited to ", and can be used interchangeably with it.Vocabulary used herein above "or" and "and" refer to vocabulary "and/or", and can be used interchangeably with it, unless it is not such that context, which is explicitly indicated,.Here made Vocabulary " such as " refers to phrase " such as, but not limited to ", and can be used interchangeably with it.
In addition, as used herein, the "or" instruction separation used in the enumerating of the item started with "at least one" It enumerates, such as enumerating for " at least one of A, B or C " means A or B or C or AB or AC or BC or ABC (i.e. A and B and C). In addition, wording " exemplary " does not mean that the example of description is preferred or more preferable than other examples.
Above description is had been presented for for purposes of illustration and description.In addition, this description is not intended to the reality of the disclosure It applies example and is restricted to form disclosed herein.Although already discussed above multiple exemplary aspects and embodiment, this field skill Its certain modifications, modification, change, addition and sub-portfolio will be recognized in art personnel.

Claims (10)

1. a kind of commodity source tracing method based on two dimension code reading device, which comprises the following steps:
Obtain the image for the commodity outer packing pattern that user is shot by electric terminal;
When the length and width and picture quality of described image meet preset condition, described image is handled;
By two dimension code reading device, to treated, image carries out two dimensional code identification;
If identifying successfully, information of tracing to the source is obtained from the two dimensional code, and according in the trace to the source information and server of tracing to the source Pre-stored data are matched;
If successful match, the information of tracing to the source is sent to user.
2. the commodity source tracing method according to claim 1 based on two dimension code reading device, which is characterized in that the acquisition Include: before the image for the commodity outer packing pattern that user is shot by electric terminal
Resolution ratio and picture format processing are carried out to the image of two dimensional code to be embedded;
According to the image feature information of given two dimensional code, the image of corresponding two dimensional code is determined;
The image that processing is completed is opened in two dimensional code Core Generator, the two dimensional code determined is embedded into described image, Obtain commodity outer packing pattern design files, wherein the outer packing pattern design files are for printing commodity outer packing pattern.
3. the commodity source tracing method according to claim 1 based on two dimension code reading device, which is characterized in that pair It includes: that the image information of the two dimensional code is converted to gray level image that described image, which carries out processing,;
Illumination detection is carried out to the gray level image, is carried out according to the gray level image of the illumination testing result to the two dimensional code Photo-equilibrium processing;
It is carried out according to every a line pixel of the image grayscale transition threshold value of setting to photo-equilibrium treated the gray level image Grouping, and determine according to maximum entropy threshold method the binarization threshold of the gray scale of the pixel of each grouping of every a line, and according to The binarization threshold carries out self-adaption binaryzation processing to the gray scale of each pixel in each grouping of every a line.
4. the commodity source tracing method according to claim 3 based on two dimension code reading device, which is characterized in that the root Self-adaption binaryzation processing packet is carried out according to gray scale of the binarization threshold to each pixel in each grouping of every a line It includes:
According to the binarization threshold, the pixel that gray value in preset group group is greater than the binarization threshold is set as black, The pixel that gray value in preset group group is less than the binarization threshold is set as white;Alternatively, according to the binarization threshold, The pixel that gray value in preset group group is greater than the binarization threshold is set as white, gray value in preset group group is less than institute The pixel for stating binarization threshold is set as black.
5. the commodity source tracing method according to claim 3 based on two dimension code reading device, which is characterized in that further include: Differential filtering processing is carried out to the gray level image.
6. the commodity source tracing method according to claim 1 based on two dimension code reading device, which is characterized in that further include: To the configuration for being laid in multiple scenes be suitable for the camera of bar code reading, double screen with based on the control system of central processing unit The two dimension code reading device carry out networking, and the support for being laid in multiple scenes is cooperateed with input equipment and printing equipment The two dimension code reading device of application, the electric terminal of the control two dimension code reading device and server cluster three into Row connection, wherein support and the two dimension code reading device of the input equipment and the printing equipment synergistic application include At least one is suitable for the camera of bar code reading, at least one described camera for being suitable for bar code reading is used for real-time perception The light variation of 360 ° of full angles, will pass through the variation operation that the central processing unit triggering liquid crystal display completes display content.
7. the two dimensional code self-adaption binaryzation processing method according to claim 6 based on photo-equilibrium, which is characterized in that institute State the two dimension code reading device to the support and input equipment and printing equipment synergistic application that are laid in multiple scenes, control The electric terminal of the two dimension code reading device and server cluster three be attached include: will be laid in by WIFI it is more At least one of a scene two dimension code reading device is attached with cloud server cluster;
By at least one the described two dimension code reading device for being laid in multiple scenes and the two dimensional code is controlled by bluetooth connection The electric terminal of reading device is attached.
8. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The step of any one of claim 1-7 the method is realized when row.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes side described in any one of described claim 1-7 when executing described program The step of method.
The device 10. a kind of commodity based on two dimension code reading device are traced to the source, which is characterized in that described device includes:
Module is obtained, for obtaining the image for the commodity outer packing pattern that user is shot by electric terminal;
Processing module, when meeting preset condition with width and picture quality for the length in described image, to described image It is handled;
Identification module, for image to carry out two dimensional code identification to treated by two dimension code reading device;
Matching module, if acquisition is traced to the source information from the two dimensional code for identify successfully, and according to it is described trace to the source information and Pre-stored data in server of tracing to the source are matched;
The information of tracing to the source is sent to user if being used for successful match by sending module.
CN201910497695.1A 2019-06-10 2019-06-10 Commodity source tracing method and device based on two dimension code reading device Pending CN110210878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910497695.1A CN110210878A (en) 2019-06-10 2019-06-10 Commodity source tracing method and device based on two dimension code reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910497695.1A CN110210878A (en) 2019-06-10 2019-06-10 Commodity source tracing method and device based on two dimension code reading device

Publications (1)

Publication Number Publication Date
CN110210878A true CN110210878A (en) 2019-09-06

Family

ID=67791757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910497695.1A Pending CN110210878A (en) 2019-06-10 2019-06-10 Commodity source tracing method and device based on two dimension code reading device

Country Status (1)

Country Link
CN (1) CN110210878A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112330338A (en) * 2020-11-04 2021-02-05 新华中经信用管理有限公司 Product traceability system based on block chain
CN113627577A (en) * 2021-08-02 2021-11-09 三维码(厦门)网络科技有限公司 Three-dimensional code generation method and anti-counterfeiting traceability system based on three-dimensional code
CN116776909A (en) * 2023-08-28 2023-09-19 四川星点网络技术有限公司 Bottle lid two-dimensional code system of tracing to source

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636118A (en) * 2013-11-10 2015-05-20 航天信息股份有限公司 QR two-dimensional code self-adaptation binarization processing method and device based on light balance
CN105046503A (en) * 2015-06-29 2015-11-11 立德高科(北京)数码科技有限责任公司 Dairy product traceability two-dimension code, traceability method based on two-dimension code and traceability system based on two-dimension code
CN105205676A (en) * 2015-09-30 2015-12-30 立德高科(昆山)数码科技有限责任公司 Label composed of two-dimension code and variable information, source tracing method and source tracing system
CN105260148A (en) * 2015-10-22 2016-01-20 苏州恒盛信息技术有限公司 Printing file authenticating and tracing method and system based on electronic label
CN109165958A (en) * 2018-08-17 2019-01-08 珠海丹德图像技术有限公司 A kind of commodity traceability system and method based on image information safe practice
CN109214376A (en) * 2018-11-22 2019-01-15 济南浪潮高新科技投资发展有限公司 A kind of fingerprint identification method and device based on depth stratification
CN109640346A (en) * 2019-02-17 2019-04-16 北京意锐新创科技有限公司 Data transfer optimization method and system based on two dimension code reading device
CN109658107A (en) * 2019-03-01 2019-04-19 北京意锐新创科技有限公司 Barcode scanning method of payment and device based on biological characteristic identification function
CN109670819A (en) * 2019-02-22 2019-04-23 北京意锐新创科技有限公司 Double vehicle positioning stop fields method of payment and device based on GPS and LBS
CN109753834A (en) * 2019-02-17 2019-05-14 北京意锐新创科技有限公司 Performance test methods and device based on two dimension code reading device
CN109829350A (en) * 2019-02-20 2019-05-31 北京意锐新创科技有限公司 The two dimensional code method of payment and device of compatible for wired and wireless two-channel access public network

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636118A (en) * 2013-11-10 2015-05-20 航天信息股份有限公司 QR two-dimensional code self-adaptation binarization processing method and device based on light balance
CN105046503A (en) * 2015-06-29 2015-11-11 立德高科(北京)数码科技有限责任公司 Dairy product traceability two-dimension code, traceability method based on two-dimension code and traceability system based on two-dimension code
CN105205676A (en) * 2015-09-30 2015-12-30 立德高科(昆山)数码科技有限责任公司 Label composed of two-dimension code and variable information, source tracing method and source tracing system
CN105260148A (en) * 2015-10-22 2016-01-20 苏州恒盛信息技术有限公司 Printing file authenticating and tracing method and system based on electronic label
CN109165958A (en) * 2018-08-17 2019-01-08 珠海丹德图像技术有限公司 A kind of commodity traceability system and method based on image information safe practice
CN109214376A (en) * 2018-11-22 2019-01-15 济南浪潮高新科技投资发展有限公司 A kind of fingerprint identification method and device based on depth stratification
CN109640346A (en) * 2019-02-17 2019-04-16 北京意锐新创科技有限公司 Data transfer optimization method and system based on two dimension code reading device
CN109753834A (en) * 2019-02-17 2019-05-14 北京意锐新创科技有限公司 Performance test methods and device based on two dimension code reading device
CN109829350A (en) * 2019-02-20 2019-05-31 北京意锐新创科技有限公司 The two dimensional code method of payment and device of compatible for wired and wireless two-channel access public network
CN109670819A (en) * 2019-02-22 2019-04-23 北京意锐新创科技有限公司 Double vehicle positioning stop fields method of payment and device based on GPS and LBS
CN109658107A (en) * 2019-03-01 2019-04-19 北京意锐新创科技有限公司 Barcode scanning method of payment and device based on biological characteristic identification function

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112330338A (en) * 2020-11-04 2021-02-05 新华中经信用管理有限公司 Product traceability system based on block chain
CN112330338B (en) * 2020-11-04 2023-09-26 新华中经信用管理有限公司 Product traceability system based on block chain
CN113627577A (en) * 2021-08-02 2021-11-09 三维码(厦门)网络科技有限公司 Three-dimensional code generation method and anti-counterfeiting traceability system based on three-dimensional code
CN113627577B (en) * 2021-08-02 2023-05-23 三维码(厦门)网络科技有限公司 Three-dimensional code generation method and anti-counterfeiting tracing system based on three-dimensional code
CN116776909A (en) * 2023-08-28 2023-09-19 四川星点网络技术有限公司 Bottle lid two-dimensional code system of tracing to source
CN116776909B (en) * 2023-08-28 2023-11-03 四川星点网络技术有限公司 Bottle lid two-dimensional code system of tracing to source

Similar Documents

Publication Publication Date Title
CN106778879B (en) Evaluating images
CN110210878A (en) Commodity source tracing method and device based on two dimension code reading device
JP6503081B2 (en) Four-dimensional code, image identification system based on four-dimensional code, image identification method, four-dimensional code search system, and four-dimensional code search method
CN109670819A (en) Double vehicle positioning stop fields method of payment and device based on GPS and LBS
CN106339648B (en) Scanner comprising an adjustable mirror
TWM519760U (en) A card having a machine-readable image
CN109634646A (en) The method and apparatus of barcode scanning terminal coupling firmware updating based on SFTP
CN109753834A (en) Performance test methods and device based on two dimension code reading device
CN109636405A (en) Barcode scanning method of payment and device based on face identification functions
CN109901865A (en) The method and apparatus of firmware upgrade
CN109614964A (en) Suitable for the fingerprint identification method and device under shielding
CN109886671A (en) Two dimensional code method of payment and device based on double screen
CN109658107A (en) Barcode scanning method of payment and device based on biological characteristic identification function
CN109886672A (en) Two dimensional code method of payment and device based on dual camera
CN109961283A (en) Two dimensional code method of payment and device based on dynamic password and digital certificate
Ichihashi et al. Estimating visibility of annotations for view management in spatial augmented reality based on machine-learning techniques
CN109829350A (en) The two dimensional code method of payment and device of compatible for wired and wireless two-channel access public network
CN109977717A (en) Bar code method of payment and device based on light and shade code
CN109872146A (en) Third party's interface call method and system based on two dimension code reading device
CN109903038A (en) The two dimensional code method of payment and device that multi information is superimposed under complex background
CN109872147A (en) Noninductive method of payment and device based on LBS
CN109886375A (en) The method and system of batch replacement binding two dimension code reading device
CN109903403A (en) Expressway tol lcollection method and device based on LBS
CN111311226A (en) Machine vision-based two-dimensional code reading method and device under complex background
CN109902525A (en) Light-operated coding/decoding method and device based on two dimension code reading device

Legal Events

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

Application publication date: 20190906