CN108334798A - Barcode scanning processing method, device, equipment and computer readable storage medium - Google Patents
Barcode scanning processing method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN108334798A CN108334798A CN201810231442.5A CN201810231442A CN108334798A CN 108334798 A CN108334798 A CN 108334798A CN 201810231442 A CN201810231442 A CN 201810231442A CN 108334798 A CN108334798 A CN 108334798A
- Authority
- CN
- China
- Prior art keywords
- barcode scanning
- coordinate
- program
- terminal
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1439—Methods for optical code recognition including a method step for retrieval of the optical code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods 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
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
An embodiment of the present invention provides a kind of barcode scanning processing method, device, equipment and computer readable storage mediums.This method includes:Judge whether terminal is carrying out the barcode scanning program for scanning patter identification code;If terminal is carrying out the barcode scanning program for scanning patter identification code, judge whether the terminal meets preset upload condition;If the terminal meets preset upload condition, the current geographic coordinate when terminal executes the barcode scanning program is obtained as the first barcode scanning coordinate;The first barcode scanning coordinate is uploaded to server, and acquisition request is pre-stored within the barcode scanning result to match with the first barcode scanning coordinate in the server;It obtains and shows the barcode scanning result to match with the first barcode scanning coordinate.Implement the present invention to implement, is conducive to promote barcode scanning recognition speed, and reduce the frequency for the barcode scanning failure caused by barcode scanning environment is bad occur.
Description
Technical field
The present invention relates to field of computer data processing more particularly to a kind of barcode scanning processing method, device, equipment and calculating
Machine readable storage medium storing program for executing.
Background technology
Electronic label technology was developed rapidly in recent years, was widely used in each neck of digitalized city construction
Domain.Presently the most widely known electronic tag is the pattern identifications code such as Quick Response Code, bar code.Wherein, Quick Response Code is again
Claim two-dimensional bar code, be with certain specific geometric figure according to certain rule in plane (two-dimensional directional) at least two colors
The figure of distribution.Since pattern identification code self information storage level is huge, it is not easily susceptible to ectocine, accuracy is higher, therefore
People increasingly tend to generate and transmit information using pattern identification code as carrier.For example, user can use mobile phone
Quick Response Code on printed article is scanned, to log on the website of Quick Response Code expression, or pays close attention to Quick Response Code expression
The public account of wechat etc.;Bar code on commodity can also be identified, to inquiring information of goods.But figure mark
Know generally only 120 ° of the scanning angle of code.When barcode scanning ambient light is insufficient or a large number of users needs while scanning same
When pattern identification code, it is easy to cause and mutually blocks, influences barcode scanning.It is lost so as to cause there is the barcode scanning caused by barcode scanning environment is bad
It loses, the problems such as barcode scanning speed is slow, reduces experience and the efficiency of user's barcode scanning.
Invention content
The present invention provides a kind of barcode scanning processing method, device, equipment and computer readable storage mediums, it is intended to which solution is swept
The problem of code speed is slow, barcode scanning fails.
In a first aspect, the present invention provides a kind of barcode scanning processing methods comprising:
Judge whether terminal is carrying out the barcode scanning program for scanning patter identification code;
If terminal is carrying out the barcode scanning program for scanning patter identification code, it is preset to judge whether the terminal meets
Upload condition;
If the terminal meets preset upload condition, the current geographic when terminal executes the barcode scanning program is obtained
Coordinate is as the first barcode scanning coordinate;
The first barcode scanning coordinate is uploaded to server, and acquisition request be pre-stored in the server with it is described
The barcode scanning result that first barcode scanning coordinate matches;
It obtains and shows the barcode scanning result to match with the first barcode scanning coordinate.
Second aspect, the present invention provides a kind of barcode scanning processing units comprising:
First judging unit, for judging whether terminal is carrying out the barcode scanning program for scanning patter identification code;
Second judgment unit, if being carrying out the barcode scanning program for scanning patter identification code for terminal, described in judgement
Whether terminal meets preset upload condition;
First acquisition unit is obtained and is swept described in the terminal execution if meeting preset upload condition for the terminal
Current geographic coordinate when coded program is as the first barcode scanning coordinate;
First uploading unit, for the first barcode scanning coordinate to be uploaded to server, and acquisition request is pre-stored within
The barcode scanning result to match with the first barcode scanning coordinate in the server;
Display unit, for obtaining and showing the barcode scanning result to match with the first barcode scanning coordinate.
The third aspect invention further provides a kind of computer equipment, including memory, processor and is stored in described deposit
On reservoir and the computer program that can run on the processor, which is characterized in that when the processor executes described program
Realize any one of them barcode scanning processing method that invention provides.
Fourth aspect, the present invention also provides a kind of computer readable storage mediums, wherein the computer-readable storage
It includes program instruction that media storage, which has computer program, the computer program, and described program instructs when being executed by a processor
The processor is set to execute any one of them barcode scanning processing method that invention provides.
A kind of barcode scanning processing method of present invention offer, device, computer equipment and computer readable storage medium.Implement this
Inventive embodiments, by judging whether the terminal meets preset upload condition;If the terminal meets preset upload item
Part obtains the current geographic coordinate when terminal executes the barcode scanning program as the first barcode scanning coordinate;Described first is swept
Code coordinate is uploaded to server, and acquisition request is pre-stored within and matches with the first barcode scanning coordinate in the server
Barcode scanning result;It obtains and shows the barcode scanning result to match with the first barcode scanning coordinate.Be conducive to promote barcode scanning recognition speed,
And reduce the frequency for the barcode scanning failure caused by barcode scanning environment is bad occur.
Description of the drawings
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field
For logical technical staff, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of flow diagram for barcode scanning processing method that one embodiment of the invention provides;
Fig. 2 is a kind of sub-process schematic diagram for barcode scanning processing method that one embodiment of the invention provides;
Fig. 3 is a kind of sub-process schematic diagram for barcode scanning processing method that one embodiment of the invention provides;
Fig. 4 is a kind of sub-process schematic diagram for barcode scanning processing method that one embodiment of the invention provides;
Fig. 5 is a kind of sub-process schematic diagram for barcode scanning processing method that one embodiment of the invention provides;
Fig. 6 is a kind of schematic block diagram for barcode scanning processing unit that one embodiment of the invention provides;
Fig. 7 is the schematic block diagram of second judgment unit in a kind of barcode scanning processing unit that one embodiment of the invention provides;
Fig. 8 is the schematic block diagram of display unit in a kind of barcode scanning processing unit that one embodiment of the invention provides;
Fig. 9 is another schematic frame of second judgment unit in a kind of barcode scanning processing unit that one embodiment of the invention provides
Figure;
Figure 10 is a kind of another schematic block diagram for barcode scanning processing unit that one embodiment of the invention provides;
Figure 11 is a kind of schematic block diagram for computer equipment that one embodiment of the invention provides.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " comprising " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more other spies are not precluded
Sign, entirety, step, operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
Fig. 1 is please referred to, for a kind of flow diagram for barcode scanning processing method that one embodiment of the invention provides.The barcode scanning
Processing method can be applied to server, desktop computer, laptop computer, tablet computer, personal digital assistant (PDA), smart mobile phone
In terminals such as (such as Android phones, IOS mobile phones).Specifically, the method comprising the steps of S110-S150.
S110, judges whether terminal is carrying out the barcode scanning program for scanning patter identification code.
In specific implementation, the pattern identification code includes but not limited to:Bar code, Quick Response Code and others have pre-
If the pattern identification etc. of information, the present embodiment does not make specific limit to the form of pattern identification code.Wherein, Quick Response Code is also known as two
Bar code is tieed up, is the chequered with black and white figure being distributed in plane (two-dimensional directional) according to certain rules with specific geometric figure.Two
It ties up key of the code as information data to be widely used in modern business activities, such as:Product false proof/trace to the source, extensively
Accuse push, web site url, data download, commodity transaction, positioning/navigation, E-business applications, vehicle management, information transmission etc..
Bar code is the multiple secret notes and blank for not waiting width, is arranged according to certain coding rule, to express a group information
Graphical identifier.Bar code can mark the producing country of article, manufacturing firm, trade name, the date of manufacture, book classification number,
Many information such as mail start-stop place, classification, date, thus in commodity circulation, taking care of books, postal management, banking system etc.
Many fields are widely used.
Wherein, the terminal includes probe, and the probe may include:Light pen probe, CCD (Charge
Couple Device, charge coupled cell) probe, laser scanning head, video type feux rouges probe or camera.It is described
Probe can be combined by the software form that either hardware or the two combine with terminal body, be arranged on the terminal body
There are one or multiple barcode scanning programs, the barcode scanning program can be used for by the probe carry out pattern identification code scanning.
Specifically, judge terminal whether be carrying out specifically may include for the barcode scanning program of barcode scanning pattern identification code it is as follows
Step:The application program being currently executing is obtained by ActivityManager.RunningAppProcessInfo classes,
In, the ActivityManager.RunningAppProcessInfo class wrappers progress information being currently running, a process letter
Breath corresponds to an application program, therefore can determine the application program being currently executing into row information by accessed.So
Judge whether the application program being currently executing matches with preset application database afterwards;If the application journey being currently executing
Sequence is matched with preset application database, it is determined that terminal is carrying out the barcode scanning program for barcode scanning pattern identification code.Wherein,
The application database is used to store the title of each barcode scanning program, by by the accessed application program being currently executing
Title be compared with preset application database, if existing in the preset application database and being currently executing
The title of the identical barcode scanning program of application name then judges that the application program being currently executing applies data with preset
Storehouse matching.
S120 judges whether the terminal meets if terminal is carrying out the barcode scanning program for scanning patter identification code
Preset upload condition.
Fig. 2 specifically is please referred to, for a kind of sub-process schematic diagram for barcode scanning processing method that one embodiment of the invention provides.
Further, judge whether the terminal meets preset upload condition and can specifically include step S121- in step S120
S124。
S121, judging the barcode scanning program, whether barcode scanning is successful.
In specific implementation, the corresponding barcode scanning result of pattern identification code can be text message, and network connection etc. passes through judgement
Whether the terminal opens text message or network connection after executing barcode scanning program, so judge the barcode scanning program whether at
Work(gets barcode scanning result.If for example, the terminal opens text message or network connection after executing barcode scanning program, institute is judged
It states barcode scanning program and successfully gets barcode scanning result.If the barcode scanning program gets barcode scanning as a result, judging that the barcode scanning program is swept
Code success;If barcode scanning has not been obtained as a result, judging the barcode scanning program barcode scanning failure in the barcode scanning program.
S122 obtains the barcode scanning program barcode scanning process duration conduct if the barcode scanning program barcode scanning fails
Time To Failure.
In specific implementation, if the barcode scanning program barcode scanning fail, the barcode scanning program barcode scanning process duration into
Row timing, to obtain the Time To Failure.
S123, judges whether the Time To Failure is more than preset time threshold.
In specific implementation, the preset time threshold can be configured according to the difference of practical application scene.Such as it should
Preset time threshold can be 3 seconds.If executing the barcode scanning program lasting barcode scanning time to be more than 3 seconds, described in judgement
Time To Failure is more than preset time threshold.
S124 determines that the terminal meets preset upload condition if the Time To Failure is more than preset time threshold.
In specific implementation, if the Time To Failure is more than preset time threshold, show that terminal executes described program barcode scanning
Fail and the duration is long, and then determines that the terminal meets preset upload condition.
S130 obtains the working as when terminal executes the barcode scanning program if the terminal meets preset upload condition
Preceding geographical coordinate is as the first barcode scanning coordinate.
In specific implementation, the mode for obtaining the current geographic coordinate when terminal executes the barcode scanning program includes but not
It is limited to GPS (Global Positioning System, GPS), shift position base station system (Location
Based Service, LBS) or its combination etc..For example, obtaining the current position when terminal executes the barcode scanning program
Manage coordinate is specially as the first barcode scanning coordinate:Pass through shift position base station system (Location Based Service, LBS)
The current geographic coordinate when terminal executes the barcode scanning program is obtained, and is sat using the current geographical coordinate as the first barcode scanning
Mark.The terminal, which is obtained, by shift position base station system (Location Based Service, LBS) executes the barcode scanning journey
Current geographic coordinate when sequence is N22 ° 26 ' 40.5 ", E114 ° 11 ' 12.2 ", then by N22 ° 26 ' of the current geographic coordinate values
40.5 ", E114 ° 11 ' 12.2 " is used as the first barcode scanning coordinate.
The first barcode scanning coordinate is uploaded to server by S140, and acquisition request is pre-stored in the server
The barcode scanning result to match with the first barcode scanning coordinate.
Implement the embodiment of the present invention, whether barcode scanning is successful by judging the barcode scanning program;If the barcode scanning program barcode scanning
Failure obtains the lasting Time To Failure of the barcode scanning program barcode scanning failure;It is preset to judge whether the Time To Failure is more than
Time threshold;If the Time To Failure is more than preset time threshold, determine that the terminal meets preset upload condition.If institute
Corresponding first barcode scanning is sat when stating terminal and meet preset upload condition, obtain and uploading the terminal execution barcode scanning program
Mark.It realizes and the first barcode scanning coordinate is uploaded to server in the case of the failure of user's barcode scanning, optimize barcode scanning processing
Flow and reduce the upload of the mass data and request instruction pressure caused by server.
S150 is obtained and is shown the barcode scanning result to match with the first barcode scanning coordinate.
Fig. 3 specifically is please referred to, for a kind of sub-process schematic diagram for barcode scanning processing method that one embodiment of the invention provides.
Further, the barcode scanning that the acquisition in step S150 and displaying match with the first barcode scanning coordinate is as a result, include step
S151-S154。
S151 obtains network address corresponding with the barcode scanning result that the first barcode scanning coordinate matches.
Specifically, it can be that market exist to be somebody's turn to do network address corresponding with the barcode scanning result that the first barcode scanning coordinate matches
Network address, Mobile Phone Payments link of line prize drawing etc..
S152 sets the corresponding webpage capture of the network address to web preview figure.
Specifically, it is assumed that the network address is the network address that market is drawn a lottery online, by being drawn a lottery online according to the market
The network address of webpage obtains the market and draws a lottery online the webpage capture of webpage, and sets the webpage capture to web preview
Figure.
S153 generates picture hyperlink according to the network address and the web preview figure.
Specifically, the quantity of the picture hyperlink is identical as the quantity of the scanning result.If for example, the scanning is tied
The quantity of fruit is three, then generates three picture hyperlink according to the network address and the web preview figure, and should
Three picture hyperlink are showed in the display interface of the terminal.
Wherein, the generation of picture hyperlink can be achieved by the steps of:Pass through HTML (HyperText Markup
Language, HyperText Markup Language) it creates<a>Label and<img>Label, by the corresponding URL of the network address
Location (Uniform Resource Locator, uniform resource locator) conduct<a>The corresponding href property parameters of label, and
Using the corresponding addresses URL of the web preview figure as<img>The corresponding src property parameters of label.Wherein,<a>Label corresponds to
Href property parameters be used to specify the addresses URL of hyperlink target;<img>The corresponding src property parameters of label are for executing
The corresponding addresses URL of picture.The picture hyperlink is showed in the display interface of the terminal by S154.
Specifically, if user clicks or touches the picture hyperlink, net in the picture hyperlink can directly be opened
The corresponding webpage of page address.Assuming that the network address is the network address drawn a lottery online of market, it is assumed that even user click or
The picture hyperlink is touched, then can directly open the market and draw a lottery online webpage.
Implement the embodiment of the present invention, by the way that the network address and the web preview figure are generated picture hyperlink,
And the picture hyperlink is showed in the display interface of the terminal;And by judging whether the picture hyperlink is triggered,
If the picture hyperlink is triggered, according to the corresponding network address of picture hyperlink, the corresponding net of the network address is loaded
Page.More intuitively scanning result can be showed in the terminal, while can also promote the convenience of user's operation, be conducive to
Enhance user experience.
Fig. 4 specifically is please referred to, for a kind of sub-process schematic diagram for barcode scanning processing method that one embodiment of the invention provides.
Further, in step S120 judge the terminal whether meet preset upload condition can specifically include step S121 with
And S125.
S121, judging the barcode scanning program, whether barcode scanning is successful.
S125, if barcode scanning program barcode scanning success, determines that the terminal is unsatisfactory for preset upload condition.
In specific implementation, if barcode scanning program barcode scanning success, terminal described in surface executes the barcode scanning program and has succeeded
Get barcode scanning result, it is determined that the terminal is unsatisfactory for preset upload condition.
Fig. 5 specifically is please referred to, for a kind of sub-process schematic diagram for barcode scanning processing method that one embodiment of the invention provides.
Further, in step S120 judge whether the terminal meets preset upload condition after, further include step S210-
S230。
S210 is obtained if the terminal is unsatisfactory for preset upload condition when the terminal executes the barcode scanning program
Current geographic coordinate is as the second barcode scanning coordinate, and obtains the corresponding barcode scanning result of the barcode scanning program barcode scanning success.
Specifically, if the terminal is unsatisfactory for preset upload condition, show the barcode scanning program barcode scanning success.Obtain institute
The mode for stating current geographic coordinate when terminal executes the barcode scanning program includes but not limited to GPS
(Global Positioning System, GPS), shift position base station system (Location Based Service, LBS)
Or its combination etc..
S220 generates mapping relations according to the second barcode scanning coordinate and the barcode scanning result.
Specifically, it is assumed that the barcode scanning result is the network address that market is drawn a lottery online, which is:N22°
26 ' 40.5 ", E114 ° 11 ' 12.2 ".Then generating mapping relations according to the second barcode scanning coordinate and the barcode scanning result is:
Second barcode scanning coordinate " N22 ° 26 ' 40.5 ", E114 ° 11 ' 12.2 " ", are directed toward barcode scanning result " network address that market is drawn a lottery online ".
The mapping relations and the barcode scanning result are uploaded to the server by S230.
Specifically, by the way that the accessed barcode scanning result of each terminal barcode scanning success is constantly uploaded to the service
Device, to be pre-stored within the barcode scanning result in the server described in formation.To wait for that the terminal is meeting preset upload item
After part, the first barcode scanning coordinate is uploaded to server, and acquisition request is pre-stored in the server and described
When the barcode scanning result that one barcode scanning coordinate matches, the barcode scanning result is called.
Implementing the embodiment of the present invention can increase and obtain by the way that barcode scanning result and the mapping relations are uploaded to server
Take barcode scanning result by way of, be conducive to promoted server admin personnel obtain barcode scanning result efficiency.
In other embodiments, the acquisition request in step S140 is pre-stored in the server sweeps with described first
After the barcode scanning result that code coordinate matches, it can also include the following steps:Judge in the server with the presence or absence of with it is described
The barcode scanning result that first barcode scanning coordinate matches;If there is the barcode scanning to match with the first barcode scanning coordinate in the server
As a result, the barcode scanning result to match with the first barcode scanning coordinate is issued to the terminal.
Further, described to judge in the server with the presence or absence of the barcode scanning knot to match with the first barcode scanning coordinate
Fruit can specifically include following steps:Corresponding second barcode scanning of the mapping relations being pre-stored in the server is obtained to sit
Mark;Judge whether the first barcode scanning coordinate matches with the second barcode scanning coordinate;If the first barcode scanning coordinate and described the
The corresponding barcode scanning result of the mapping relations is determined as sweeping with what the first barcode scanning coordinate matched by two barcode scanning coordinate matchings
Code result.
Specifically, this is pre-stored within the mapping relations in the server and can upload or service automatically by terminal
Device administrative staff collect update manually.For example, this be pre-stored within the mapping relations in the server can be by such as step
The mapping relations are uploaded to server and are pre-stored in the server with forming this by the mode described in S210-S220
Mapping relations.
Further, it is described judge the first barcode scanning coordinate whether matched with the second barcode scanning coordinate may include as
Lower step:Calculate the coordinate difference of the first barcode scanning coordinate and the second barcode scanning coordinate;Judge the exhausted of the coordinate difference
Whether preset coordinate difference threshold value is less than to value;If the coordinate difference of the first barcode scanning coordinate and the second barcode scanning coordinate is small
In preset coordinate difference threshold value, the first barcode scanning coordinate and the second barcode scanning coordinate matching are determined.
Wherein, the absolute value of the coordinate difference includes latitude difference and longitude difference;If the absolute value of latitude difference with
And the absolute value of longitude difference is respectively less than preset coordinate difference threshold value, it is determined that the first barcode scanning coordinate and second barcode scanning
Coordinate matching.Preset coordinate difference threshold value can be set according to actual demand.
For example, it is assumed that preset coordinate difference threshold value is 0.5 ", if the first barcode scanning coordinate is N22 ° 26 ' 40.8 ", E114 ° 11 '
12.0 ", the second barcode scanning coordinate is N22 ° 26 ' 40.5 ", E114 ° 11 ' 12.2 ".Be computed can obtain obtain the first barcode scanning coordinate with
The coordinate difference of second barcode scanning coordinate is N0.3 ", E-0.2 ".If the converted absolute value for obtaining the coordinate difference is N0.3 ",
E0.2″.Obviously, the absolute value of the coordinate difference is less than preset coordinate difference threshold value, it is determined that the first barcode scanning coordinate and institute
State the second barcode scanning coordinate matching.
Fig. 6 is please referred to, for a kind of schematic block diagram for barcode scanning processing unit that one embodiment of the invention provides.It is described to sweep
Code processing unit 100 includes the first judging unit 110, second judgment unit 120, first acquisition unit 130, the first uploading unit
140 and display unit 150.
First judging unit 110, for judging whether terminal is carrying out the barcode scanning program for scanning patter identification code.
In specific implementation, the pattern identification code includes but not limited to:Bar code, Quick Response Code and others have pre-
If the pattern identification etc. of information, the present embodiment does not make specific limit to the form of pattern identification code.Wherein, Quick Response Code is also known as two
Bar code is tieed up, is the chequered with black and white figure being distributed in plane (two-dimensional directional) according to certain rules with specific geometric figure.Two
It ties up key of the code as information data to be widely used in modern business activities, such as:Product false proof/trace to the source, extensively
Accuse push, web site url, data download, commodity transaction, positioning/navigation, E-business applications, vehicle management, information transmission etc..
Bar code is the multiple secret notes and blank for not waiting width, is arranged according to certain coding rule, to express a group information
Graphical identifier.Bar code can mark the producing country of article, manufacturing firm, trade name, the date of manufacture, book classification number,
Many information such as mail start-stop place, classification, date, thus in commodity circulation, taking care of books, postal management, banking system etc.
Many fields are widely used.
Wherein, the terminal includes probe, and the probe may include:Light pen probe, CCD (Charge
Couple Device, charge coupled cell) probe, laser scanning head, video type feux rouges probe or camera.It is described
Probe can be combined by the software form that either hardware or the two combine with terminal body, be arranged on the terminal body
There are one or multiple barcode scanning programs, the barcode scanning program can be used for by the probe carry out pattern identification code scanning.
Specifically, the first judging unit 110 is judging whether terminal is carrying out the barcode scanning for barcode scanning pattern identification code
It is answered specifically for what is be currently executing by the acquisition of ActivityManager.RunningAppProcessInfo classes when program
With program, wherein the progress information that is currently running of ActivityManager.RunningAppProcessInfo class wrappers,
One progress information corresponds to an application program, therefore can determine that is be currently executing answers into row information by accessed
Use program.Then judge whether the application program being currently executing matches with preset application database;If currently holding
Capable application program is matched with preset application database, it is determined that terminal is carrying out the barcode scanning for barcode scanning pattern identification code
Program.Wherein, which is used to store the title of each barcode scanning program, by the way that accessed to be currently executing
The title of application program be compared with preset application database, if exist in the preset application database with it is current
The title for the identical barcode scanning program of application name being carrying out, then judge the application program being currently executing and preset
Application database matching.
Second judgment unit 120 judges institute if being carrying out the barcode scanning program for scanning patter identification code for terminal
State whether terminal meets preset upload condition.
Fig. 7 specifically is please referred to, second judgment unit in a kind of barcode scanning processing unit provided for one embodiment of the invention
120 schematic block diagram.Further, the second judgment unit 120 includes third judging unit 121, second acquisition unit
122, the 4th judging unit 123 and the first determination unit 124.
Third judging unit 121, for judging the barcode scanning program, whether barcode scanning is successful.
In specific implementation, the corresponding barcode scanning result of pattern identification code can be text message, and network connection etc. passes through judgement
Whether the terminal opens text message or network connection after executing barcode scanning program, so judge the barcode scanning program whether at
Work(gets barcode scanning result.If for example, the terminal opens text message or network connection after executing barcode scanning program, institute is judged
It states barcode scanning program and successfully gets barcode scanning result.If the barcode scanning program gets barcode scanning as a result, judging that the barcode scanning program is swept
Code success;If barcode scanning has not been obtained as a result, judging the barcode scanning program barcode scanning failure in the barcode scanning program.
Second acquisition unit 122 obtains barcode scanning program barcode scanning process institute if failing for the barcode scanning program barcode scanning
Duration is as Time To Failure.
In specific implementation, if the barcode scanning program barcode scanning fail, the barcode scanning program barcode scanning process duration into
Row timing, to obtain the Time To Failure.
4th judging unit 123, for judging whether the Time To Failure is more than preset time threshold.
In specific implementation, the preset time threshold can be configured according to the difference of practical application scene.Such as it should
Preset time threshold can be 3 seconds.If executing the barcode scanning program lasting barcode scanning time to be more than 3 seconds, described in judgement
Time To Failure is more than preset time threshold.
First determination unit 124 determines that the terminal meets if being more than preset time threshold for the Time To Failure
Preset upload condition.
In specific implementation, if the Time To Failure is more than preset time threshold, show that terminal executes described program barcode scanning
Fail and the duration is long, and then determines that the terminal meets preset upload condition.
First acquisition unit 130 obtains if meeting preset upload condition for the terminal described in the terminal execution
Current geographic coordinate when barcode scanning program is as the first barcode scanning coordinate.
In specific implementation, the mode for obtaining the current geographic coordinate when terminal executes the barcode scanning program includes but not
It is limited to GPS (Global Positioning System, GPS), shift position base station system (Location
Based Service, LBS) or its combination etc..For example, obtaining the current position when terminal executes the barcode scanning program
Manage coordinate is specially as the first barcode scanning coordinate:Pass through shift position base station system (Location Based Service, LBS)
The current geographic coordinate when terminal executes the barcode scanning program is obtained, and is sat using the current geographical coordinate as the first barcode scanning
Mark.The terminal, which is obtained, by shift position base station system (Location Based Service, LBS) executes the barcode scanning journey
Current geographic coordinate when sequence is N22 ° 26 ' 40.5 ", E114 ° 11 ' 12.2 ", then by N22 ° 26 ' of the current geographic coordinate values
40.5 ", E114 ° 11 ' 12.2 " is used as the first barcode scanning coordinate.
First uploading unit 140, for the first barcode scanning coordinate to be uploaded to server, and acquisition request prestores
The barcode scanning result to match with the first barcode scanning coordinate in the server.
Implement the embodiment of the present invention, whether barcode scanning is successful by judging the barcode scanning program;If the barcode scanning program barcode scanning
Failure obtains the lasting Time To Failure of the barcode scanning program barcode scanning failure;It is preset to judge whether the Time To Failure is more than
Time threshold;If the Time To Failure is more than preset time threshold, determine that the terminal meets preset upload condition.If institute
Corresponding first barcode scanning is sat when stating terminal and meet preset upload condition, obtain and uploading the terminal execution barcode scanning program
Mark.It realizes and the first barcode scanning coordinate is uploaded to server in the case of the failure of user's barcode scanning, optimize barcode scanning processing
Flow and reduce the upload of the mass data and request instruction pressure caused by server.
Display unit 150, for obtaining and showing the barcode scanning result to match with the first barcode scanning coordinate.
Fig. 8 specifically is please referred to, display unit 150 in a kind of barcode scanning processing unit provided for one embodiment of the invention
Schematic block diagram.Further, the display unit 150 includes the 4th acquiring unit 151, the generation list of setting unit 152, second
Member 153 and processing unit 154.
4th acquiring unit 151, the corresponding network of barcode scanning result for obtaining with the first barcode scanning coordinate matches
Address.
Specifically, it can be that market exist to be somebody's turn to do network address corresponding with the barcode scanning result that the first barcode scanning coordinate matches
Network address, Mobile Phone Payments link of line prize drawing etc..
Setting unit 152, for setting the corresponding webpage capture of the network address to web preview figure.
Specifically, it is assumed that the network address is the network address that market is drawn a lottery online, by being drawn a lottery online according to the market
The network address of webpage obtains the market and draws a lottery online the webpage capture of webpage, and sets the webpage capture to web preview
Figure.
Second generation unit 153, for generating picture hyperlink according to the network address and the web preview figure.
Specifically, the quantity of the picture hyperlink is identical as the quantity of the scanning result.If for example, the scanning is tied
The quantity of fruit is three, then generates three picture hyperlink according to the network address and the web preview figure, and should
Three picture hyperlink are showed in the display interface of the terminal.
Wherein, the second generation unit 153 generates picture hyperlink according to the network address and the web preview figure
When, it is specifically used for creating by HTML (HyperText Markup Language, HyperText Markup Language)<a>Label with
And<img>Label, by the corresponding addresses URL of the network address (Uniform Resource Locator, unified resource positioning
Symbol) conduct<a>The corresponding href property parameters of label, and using the corresponding addresses URL of the web preview figure as<img>Mark
Sign corresponding src property parameters.Wherein,<a>The corresponding href property parameters of label are with being used to specify the URL of hyperlink target
Location;<img>The corresponding src property parameters of label are for executing the corresponding addresses URL of picture.
The picture hyperlink is showed in the display interface of the terminal by processing unit 154.
Specifically, if user clicks or touches the picture hyperlink, net in the picture hyperlink can directly be opened
The corresponding webpage of page address.Assuming that the network address is the network address drawn a lottery online of market, it is assumed that even user click or
The picture hyperlink is touched, then can directly open the market and draw a lottery online webpage.
Implement the embodiment of the present invention, by the way that the network address and the web preview figure are generated picture hyperlink,
And the picture hyperlink is showed in the display interface of the terminal;And by judging whether the picture hyperlink is triggered,
If the picture hyperlink is triggered, according to the corresponding network address of picture hyperlink, the corresponding net of the network address is loaded
Page.More intuitively scanning result can be showed in the terminal, while can also promote the convenience of user's operation, be conducive to
Enhance user experience.
Fig. 9 specifically is please referred to, second judgment unit in a kind of barcode scanning processing unit provided for one embodiment of the invention
120 another schematic block diagram.Further, the second judgment unit 120 includes that third judging unit 121 and second are true
Order member 125.
Third judging unit 121, for judging the barcode scanning program, whether barcode scanning is successful.
Second determination unit 125 determines that the terminal is unsatisfactory on preset if for barcode scanning program barcode scanning success
Biography condition.
In specific implementation, if barcode scanning program barcode scanning success, terminal described in surface executes the barcode scanning program and has succeeded
Get barcode scanning result, it is determined that the terminal is unsatisfactory for preset upload condition.
Figure 10 specifically is please referred to, for a kind of another schematic frame for barcode scanning processing unit that one embodiment of the invention provides
Figure.Further, described device 100 further includes third acquiring unit 210, the first generation unit 220 and the second uploading unit
230。
Third acquiring unit 210 obtains the terminal and executes institute if being unsatisfactory for preset upload condition for the terminal
Current geographic coordinate when stating barcode scanning program is corresponding as the second barcode scanning coordinate, and the acquisition barcode scanning program barcode scanning success
Barcode scanning result.
Specifically, if the terminal is unsatisfactory for preset upload condition, show the barcode scanning program barcode scanning success.Obtain institute
The mode for stating current geographic coordinate when terminal executes the barcode scanning program includes but not limited to GPS
(Global Positioning System, GPS), shift position base station system (Location Based Service, LBS)
Or its combination etc..
First generation unit 220, for generating mapping relations according to the second barcode scanning coordinate and the barcode scanning result.
Specifically, it is assumed that the barcode scanning result is the network address that market is drawn a lottery online, which is:N22°
26 ' 40.5 ", E114 ° 11 ' 12.2 ".Then generating mapping relations according to the second barcode scanning coordinate and the barcode scanning result is:
Second barcode scanning coordinate " N22 ° 26 ' 40.5 ", E114 ° 11 ' 12.2 " ", are directed toward barcode scanning result " network address that market is drawn a lottery online ".
Second uploading unit 230, for the mapping relations and the barcode scanning result to be uploaded to the server.
Specifically, by the way that the accessed barcode scanning result of each terminal barcode scanning success is constantly uploaded to the service
Device, to be pre-stored within the barcode scanning result in the server described in formation.To wait for that the terminal is meeting preset upload item
After part, the first barcode scanning coordinate is uploaded to server, and acquisition request is pre-stored in the server and described
When the barcode scanning result that one barcode scanning coordinate matches, the barcode scanning result is called.
Implementing the embodiment of the present invention can increase and obtain by the way that barcode scanning result and the mapping relations are uploaded to server
Take barcode scanning result by way of, be conducive to promoted server admin personnel obtain barcode scanning result efficiency.
In other embodiments, the embodiment of the present invention additionally provides a kind of server, which is used for and described device
100 cooperations to handle the Various types of data that described device 100 is uploaded to server, such as the first barcode scanning coordinate, mapping relations, are swept
Code result etc..The server includes result judging unit and result issuance unit.Wherein, as a result judging unit is used to judge
With the presence or absence of the barcode scanning result to match with the first barcode scanning coordinate in the server;If as a result issuance unit is for described
There is the barcode scanning to match with the first barcode scanning coordinate in server as a result, by being swept with what the first barcode scanning coordinate matched
Code result is issued to the terminal.
Further, the result judging unit may include that coordinate acquiring unit, coordinate judging unit and result are true
Order member.Wherein, coordinate acquiring unit is swept for obtaining the mapping relations corresponding second being pre-stored in the server
Code coordinate;Coordinate judging unit is for judging whether the first barcode scanning coordinate matches with the second barcode scanning coordinate;As a result really
If order member is for the first barcode scanning coordinate and the second barcode scanning coordinate matching, by the corresponding barcode scanning knot of the mapping relations
Fruit is determined as the barcode scanning result to match with the first barcode scanning coordinate.
Specifically, this is pre-stored within the mapping relations in the server and can upload or service automatically by terminal
Device administrative staff collect update manually.For example, this be pre-stored within the mapping relations in the server can be by such as Figure 10
Shown in the mode that is provided of device 100 mapping relations be uploaded to server be pre-stored within the service to form this
Mapping relations in device.
Further, the coordinate judging unit may include that difference computational unit, dif ference judgment unit and coordinate are true
Order member.Wherein, difference computational unit is used to calculate the coordinate difference of the first barcode scanning coordinate and the second barcode scanning coordinate;
Dif ference judgment unit is used to judge whether the absolute value of the coordinate difference to be less than preset coordinate difference threshold value;Coordinate determination unit
If being less than preset coordinate difference threshold value for the coordinate difference of the first barcode scanning coordinate and the second barcode scanning coordinate, institute is determined
State the first barcode scanning coordinate and the second barcode scanning coordinate matching.
Wherein, the absolute value of the coordinate difference includes latitude difference and longitude difference;If the absolute value of latitude difference with
And the absolute value of longitude difference is respectively less than preset coordinate difference threshold value, it is determined that the first barcode scanning coordinate and second barcode scanning
Coordinate matching.Preset coordinate difference threshold value can be set according to actual demand.
For example, it is assumed that preset coordinate difference threshold value is 0.5 ", if the first barcode scanning coordinate is N22 ° 26 ' 40.8 ", E114 ° 11 '
12.0 ", the second barcode scanning coordinate is N22 ° 26 ' 40.5 ", E114 ° 11 ' 12.2 ".Be computed can obtain obtain the first barcode scanning coordinate with
The coordinate difference of second barcode scanning coordinate is N0.3 ", E-0.2 ".If the converted absolute value for obtaining the coordinate difference is N0.3 ",
E0.2″.Obviously, the absolute value of the coordinate difference is less than preset coordinate difference threshold value, it is determined that the first barcode scanning coordinate and institute
State the second barcode scanning coordinate matching.
Above-mentioned apparatus 100 can be implemented as a kind of form of computer program, and computer program can be as shown in figure 11
Computer equipment on run.
Please refer to Fig.1 the schematic block diagram that 1, Figure 11 is a kind of computer equipment provided in an embodiment of the present invention.The calculating
500 equipment of machine equipment can be terminal.The terminal can be smart mobile phone, tablet computer, laptop, desktop computer, a
Personal digital assistant and Wearable etc. have the electronic equipment of communication function.
The computer equipment 500 includes processor 520, memory and the network interface connected by system bus 510
550, wherein memory may include non-volatile memory medium 530 and built-in storage 540.
The non-volatile memory medium 530 can storage program area 531 and computer program 532.The computer program 532
It is performed, processor 520 may make to execute a kind of automatic interface testing method.
The processor 520 supports the operation of entire computer equipment 500 for providing calculating and control ability.
The built-in storage 540 provides environment for the operation of the computer program in non-volatile memory medium, the computer
When program is executed by processor 520, processor 520 may make to execute a kind of automatic interface testing method.
The network interface 550 such as sends the task dispatching of distribution for carrying out network communication.Those skilled in the art can manage
Solution, the schematic block diagram of the computer equipment are only the block diagram with the relevant part-structure of the present invention program, composition pair
The restriction for the computer equipment 500 that the present invention program is applied thereon, specific computer equipment 500 may include than in figure
Shown more or fewer components either combine certain components or are arranged with different components.
Wherein, the processor 520 is for running program code stored in memory, to implement function such as:
Judge whether terminal is carrying out the barcode scanning program for scanning patter identification code;
If terminal is carrying out the barcode scanning program for scanning patter identification code, it is preset to judge whether the terminal meets
Upload condition;
If the terminal meets preset upload condition, the current geographic when terminal executes the barcode scanning program is obtained
Coordinate is as the first barcode scanning coordinate;
The first barcode scanning coordinate is uploaded to server, and acquisition request be pre-stored in the server with it is described
The barcode scanning result that first barcode scanning coordinate matches;
It obtains and shows the barcode scanning result to match with the first barcode scanning coordinate.
In one embodiment, processor 520 described judges whether the terminal meets preset upload condition executing
When step, following steps are specifically executed:
Judging the barcode scanning program, whether barcode scanning is successful;
If the barcode scanning program barcode scanning failure, when obtaining the barcode scanning program barcode scanning process duration as failure
Between;
Judge whether the Time To Failure is more than preset time threshold;
If the Time To Failure is more than preset time threshold, determine that the terminal meets preset upload condition.
In one embodiment, processor 520 is executing the barcode scanning knot for showing and matching with the first barcode scanning coordinate
When the step of fruit, following steps are specifically executed:
Obtain network address corresponding with the barcode scanning result that the first barcode scanning coordinate matches;
Set the corresponding webpage capture of the network address to web preview figure;
Picture hyperlink is generated according to the network address and the web preview figure;
The picture hyperlink is showed in the display interface of the terminal.
In one embodiment, processor 520 described judges whether the terminal meets preset upload condition executing
When step, following steps are specifically executed:
Judging the barcode scanning program, whether barcode scanning is successful;
If the barcode scanning program barcode scanning success, determines that the terminal is unsatisfactory for preset upload condition.
In one embodiment, processor 520 described judges whether the terminal meets preset upload condition executing
After step, following steps are specifically executed:
If the terminal is unsatisfactory for preset upload condition, the current position when terminal executes the barcode scanning program is obtained
Coordinate is managed as the second barcode scanning coordinate, and obtains the corresponding barcode scanning result of the barcode scanning program barcode scanning success;
Mapping relations are generated according to the second barcode scanning coordinate and the barcode scanning result;
The mapping relations and the barcode scanning result are uploaded to the server.
It should be appreciated that in embodiments of the present invention, processor 520 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or
Person's processor can also be any conventional processor etc..
It will be understood by those skilled in the art that the schematic block diagram of the computer equipment 500 is not constituted and is set to computer
Standby 500 restriction may include either combining certain components or different component cloth than illustrating more or fewer components
It sets.
A kind of computer readable storage medium is provided in another embodiment of the invention, the computer readable storage medium
It is stored with computer program, wherein computer program includes program instruction.Described program instruction is realized such as when being executed by processor
Lower step:
Judge whether terminal is carrying out the barcode scanning program for scanning patter identification code;
If terminal is carrying out the barcode scanning program for scanning patter identification code, it is preset to judge whether the terminal meets
Upload condition;
If the terminal meets preset upload condition, the current geographic when terminal executes the barcode scanning program is obtained
Coordinate is as the first barcode scanning coordinate;
The first barcode scanning coordinate is uploaded to server, and acquisition request be pre-stored in the server with it is described
The barcode scanning result that first barcode scanning coordinate matches;
It obtains and shows the barcode scanning result to match with the first barcode scanning coordinate.
In one embodiment, described program instruction is executed by processor to realize that described to judge whether the terminal meets pre-
If upload condition step when, be implemented as follows step:
Judging the barcode scanning program, whether barcode scanning is successful;
If the barcode scanning program barcode scanning failure, when obtaining the barcode scanning program barcode scanning process duration as failure
Between;
Judge whether the Time To Failure is more than preset time threshold;
If the Time To Failure is more than preset time threshold, determine that the terminal meets preset upload condition.
In one embodiment, described program instruction is executed by processor to realize the displaying and the first barcode scanning coordinate
When the step of the barcode scanning result to match, it is implemented as follows step:
Obtain network address corresponding with the barcode scanning result that the first barcode scanning coordinate matches;
Set the corresponding webpage capture of the network address to web preview figure;
Picture hyperlink is generated according to the network address and the web preview figure;
The picture hyperlink is showed in the display interface of the terminal.
In one embodiment, described program instruction is executed by processor to realize that described to judge whether the terminal meets pre-
If upload condition step when, be implemented as follows step:
Judging the barcode scanning program, whether barcode scanning is successful;
If the barcode scanning program barcode scanning success, determines that the terminal is unsatisfactory for preset upload condition.
In one embodiment, described program instruction is executed by processor to realize that described to judge whether the terminal meets pre-
If upload condition the step of after, be implemented as follows step:
If the terminal is unsatisfactory for preset upload condition, the current position when terminal executes the barcode scanning program is obtained
Coordinate is managed as the second barcode scanning coordinate, and obtains the corresponding barcode scanning result of the barcode scanning program barcode scanning success;
Mapping relations are generated according to the second barcode scanning coordinate and the barcode scanning result;
The mapping relations and the barcode scanning result are uploaded to the server.
The computer readable storage medium can be USB flash disk, mobile hard disk, read-only memory (ROM, Read-
OnlyMemory), the various media that can store program code such as magnetic disc or CD.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are implemented in hardware or software actually, depend on the specific application and design constraint of technical solution.Specially
Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not
It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the dress of foregoing description
The specific work process with unit is set, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only
Only a kind of division of logic function, formula that in actual implementation, there may be another division manner.Such as more than one unit or component can
To combine or be desirably integrated into another system, or some features can be ignored or not executed.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.This hair
Unit in bright embodiment device can be combined, divided and deleted according to actual needs.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, can also be during two or more units are integrated in one unit.It is above-mentioned integrated
The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product,
It can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention substantially or
Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products
Reveal and, which is stored in a storage medium, including some instructions are with so that a computer is set
Standby (can be personal computer, terminal or the network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace
It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain subject to.
Claims (10)
1. a kind of barcode scanning processing method, which is characterized in that including:
Judge whether terminal is carrying out the barcode scanning program for scanning patter identification code;
If terminal is carrying out the barcode scanning program for scanning patter identification code, judge whether the terminal meets preset upload
Condition;
If the terminal meets preset upload condition, the current geographic coordinate when terminal executes the barcode scanning program is obtained
As the first barcode scanning coordinate;
The first barcode scanning coordinate is uploaded to server, and acquisition request is pre-stored in the server and described first
The barcode scanning result that barcode scanning coordinate matches;
It obtains and shows the barcode scanning result to match with the first barcode scanning coordinate.
2. the method as described in claim 1, which is characterized in that described to judge whether the terminal meets preset upload item
Part, including:
Judging the barcode scanning program, whether barcode scanning is successful;
If the barcode scanning program barcode scanning failure, obtains the barcode scanning program barcode scanning process duration as Time To Failure;
Judge whether the Time To Failure is more than preset time threshold;
If the Time To Failure is more than preset time threshold, determine that the terminal meets preset upload condition.
3. the method as described in claim 1, which is characterized in that the acquisition simultaneously shows and matches with the first barcode scanning coordinate
Barcode scanning as a result, including:
Obtain network address corresponding with the barcode scanning result that the first barcode scanning coordinate matches;
Set the corresponding webpage capture of the network address to web preview figure;
Picture hyperlink is generated according to the network address and the web preview figure;
The picture hyperlink is showed in the display interface of the terminal.
4. the method as described in claim 1, which is characterized in that described to judge whether the terminal meets preset upload item
Part, including:
Judging the barcode scanning program, whether barcode scanning is successful;
If the barcode scanning program barcode scanning success, determines that the terminal is unsatisfactory for preset upload condition.
5. method as claimed in claim 4, which is characterized in that described to judge whether the terminal meets preset upload condition
Later, further include:
If the terminal is unsatisfactory for preset upload condition, obtains the current geographic when terminal executes the barcode scanning program and sit
It is denoted as the second barcode scanning coordinate, and the corresponding barcode scanning result of the acquisition barcode scanning program barcode scanning success;
Mapping relations are generated according to the second barcode scanning coordinate and the barcode scanning result;
The mapping relations and the barcode scanning result are uploaded to the server.
6. a kind of barcode scanning processing unit, which is characterized in that described device includes:
First judging unit, for judging whether terminal is carrying out the barcode scanning program for scanning patter identification code;
Second judgment unit judges the terminal if being carrying out the barcode scanning program for scanning patter identification code for terminal
Whether preset upload condition is met;
First acquisition unit obtains the terminal and executes the barcode scanning journey if meeting preset upload condition for the terminal
Current geographic coordinate when sequence is as the first barcode scanning coordinate;
First uploading unit, for the first barcode scanning coordinate to be uploaded to server, and acquisition request be pre-stored within it is described
The barcode scanning result to match with the first barcode scanning coordinate in server;
Display unit, for obtaining and showing the barcode scanning result to match with the first barcode scanning coordinate.
7. device as claimed in claim 6, which is characterized in that the second judgment unit includes:
Third judging unit, for judging the barcode scanning program, whether barcode scanning is successful;
It is lasting to obtain the barcode scanning program barcode scanning process if failing for the barcode scanning program barcode scanning for second acquisition unit
Time is as Time To Failure;
4th judging unit, for judging whether the Time To Failure is more than preset time threshold;
It is preset to determine that the terminal meets if being more than preset time threshold for the Time To Failure for first determination unit
Upload condition.
8. device as claimed in claim 6, which is characterized in that the display unit includes:
4th acquiring unit, the corresponding network address of barcode scanning result for obtaining with the first barcode scanning coordinate matches;
Setting unit, for setting the corresponding webpage capture of the network address to web preview figure;
Second generation unit, for generating picture hyperlink according to the network address and the web preview figure;
The picture hyperlink is showed in the display interface of the terminal by processing unit.
9. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor
The computer program of operation, which is characterized in that the processor is realized when executing described program as any in claim 1 to 5
The barcode scanning processing method of item.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey
Sequence, the computer program include program instruction, and described program instruction makes the processor execute such as when being executed by a processor
Claim 1-5 any one of them barcode scanning processing methods.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810231442.5A CN108334798B (en) | 2018-03-20 | 2018-03-20 | Code scanning processing method, device and equipment and computer readable storage medium |
PCT/CN2018/100781 WO2019179011A1 (en) | 2018-03-20 | 2018-08-16 | Code scanning processing method and device, apparatus, and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810231442.5A CN108334798B (en) | 2018-03-20 | 2018-03-20 | Code scanning processing method, device and equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108334798A true CN108334798A (en) | 2018-07-27 |
CN108334798B CN108334798B (en) | 2020-10-09 |
Family
ID=62931194
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810231442.5A Active CN108334798B (en) | 2018-03-20 | 2018-03-20 | Code scanning processing method, device and equipment and computer readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108334798B (en) |
WO (1) | WO2019179011A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019179011A1 (en) * | 2018-03-20 | 2019-09-26 | 平安科技(深圳)有限公司 | Code scanning processing method and device, apparatus, and computer readable storage medium |
CN112163654A (en) * | 2020-09-27 | 2021-01-01 | 维沃移动通信(杭州)有限公司 | Graphic code processing method and device, electronic equipment and readable storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10198753A (en) * | 1997-01-07 | 1998-07-31 | Denso Corp | Two-dimensional code reader |
CN102096795A (en) * | 2010-11-25 | 2011-06-15 | 西北工业大学 | Method for recognizing worn two-dimensional barcode image |
CN103078868A (en) * | 2013-01-15 | 2013-05-01 | 广州多益网络科技有限公司 | Application method and system of two-dimension code |
CN104504767A (en) * | 2014-11-26 | 2015-04-08 | 广东安居宝数码科技股份有限公司 | Check-in information verification method and system |
CN104850871A (en) * | 2014-02-19 | 2015-08-19 | 阿里巴巴集团控股有限公司 | Method and device for providing code scanning result information |
AU2015203879A1 (en) * | 2014-07-15 | 2016-02-04 | Security Seals Limited | Tracking system and method |
CN106886812A (en) * | 2017-03-21 | 2017-06-23 | 石家庄魔盒网络科技有限公司 | Dynamic two-dimension code generates equipment and its generation method and advertisement cabinet and trigger |
CN107220578A (en) * | 2017-05-31 | 2017-09-29 | 维沃移动通信有限公司 | A kind of two-dimensional code scanning recognition methods, device, mobile terminal and storage medium |
CN107580064A (en) * | 2017-09-18 | 2018-01-12 | 北京京东尚科信息技术有限公司 | 2 D code information sending method, device and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101437096B (en) * | 2007-11-16 | 2011-01-26 | 深圳富泰宏精密工业有限公司 | System and method for classifying mobile equipment photograph |
JP5684178B2 (en) * | 2012-03-23 | 2015-03-11 | ビッグローブ株式会社 | Information processing system |
CN104484639B (en) * | 2014-12-30 | 2017-03-22 | 北京慧眼智行科技有限公司 | Decoding method and system |
CN108334798B (en) * | 2018-03-20 | 2020-10-09 | 平安科技(深圳)有限公司 | Code scanning processing method, device and equipment and computer readable storage medium |
-
2018
- 2018-03-20 CN CN201810231442.5A patent/CN108334798B/en active Active
- 2018-08-16 WO PCT/CN2018/100781 patent/WO2019179011A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10198753A (en) * | 1997-01-07 | 1998-07-31 | Denso Corp | Two-dimensional code reader |
CN102096795A (en) * | 2010-11-25 | 2011-06-15 | 西北工业大学 | Method for recognizing worn two-dimensional barcode image |
CN103078868A (en) * | 2013-01-15 | 2013-05-01 | 广州多益网络科技有限公司 | Application method and system of two-dimension code |
CN104850871A (en) * | 2014-02-19 | 2015-08-19 | 阿里巴巴集团控股有限公司 | Method and device for providing code scanning result information |
AU2015203879A1 (en) * | 2014-07-15 | 2016-02-04 | Security Seals Limited | Tracking system and method |
CN104504767A (en) * | 2014-11-26 | 2015-04-08 | 广东安居宝数码科技股份有限公司 | Check-in information verification method and system |
CN106886812A (en) * | 2017-03-21 | 2017-06-23 | 石家庄魔盒网络科技有限公司 | Dynamic two-dimension code generates equipment and its generation method and advertisement cabinet and trigger |
CN107220578A (en) * | 2017-05-31 | 2017-09-29 | 维沃移动通信有限公司 | A kind of two-dimensional code scanning recognition methods, device, mobile terminal and storage medium |
CN107580064A (en) * | 2017-09-18 | 2018-01-12 | 北京京东尚科信息技术有限公司 | 2 D code information sending method, device and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019179011A1 (en) * | 2018-03-20 | 2019-09-26 | 平安科技(深圳)有限公司 | Code scanning processing method and device, apparatus, and computer readable storage medium |
CN112163654A (en) * | 2020-09-27 | 2021-01-01 | 维沃移动通信(杭州)有限公司 | Graphic code processing method and device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108334798B (en) | 2020-10-09 |
WO2019179011A1 (en) | 2019-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11303732B2 (en) | Commerce oriented uniform resource locater (URL) shortener | |
US10481763B2 (en) | Mobile stamp creation and management for digital communications | |
CN105009070B (en) | Computer application promotes | |
CN105229485B (en) | Multifactor position verification method | |
CN106528432A (en) | Construction method and apparatus for test scene data, and buried point test method | |
CN106133774A (en) | The automatic checking of the advertiser's identifier in advertisement | |
WO2007100228A1 (en) | A system and method for contents upload using a mobile terminal | |
CN104615731A (en) | Two-dimension code display method and system | |
US10223726B2 (en) | Information provisioning device, method, and medium for evaluating and estimating gift candidates | |
WO2018006765A1 (en) | Keyword verification method and generation apparatus | |
CN106126410A (en) | The reminding method of code conflicts and device | |
CN108040133A (en) | The generation method and equipment of a kind of electronic business card | |
US20220414251A1 (en) | Media recording and playback system employing two-dimensional bar codes | |
CN109324864A (en) | A kind of acquisition methods and device of man-machine interactive operation information | |
CN108334798A (en) | Barcode scanning processing method, device, equipment and computer readable storage medium | |
EP2953084A1 (en) | Social network messaging with integrated advertising | |
CN107580064A (en) | 2 D code information sending method, device and storage medium | |
JP6721314B2 (en) | Network systems, servers, and terminals | |
CN114731366B (en) | Method and system for selectively activating access to a camera by an application | |
CN110007842A (en) | Web page contents choosing method and device | |
CN106104531A (en) | Automatically numerical map is embedded in software application | |
CN110858198B (en) | System, non-transitory computer readable medium and method for retrieving contact information | |
CA2950783A1 (en) | Actionable verifiable micro-crowd sourcing | |
CN108960896A (en) | Data processing method, user terminal and server end | |
CN104243455B (en) | A kind of image processing method and system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |