CN109426755A - A kind of barcode scanning method, system and a kind of device for barcode scanning - Google Patents

A kind of barcode scanning method, system and a kind of device for barcode scanning Download PDF

Info

Publication number
CN109426755A
CN109426755A CN201710778306.3A CN201710778306A CN109426755A CN 109426755 A CN109426755 A CN 109426755A CN 201710778306 A CN201710778306 A CN 201710778306A CN 109426755 A CN109426755 A CN 109426755A
Authority
CN
China
Prior art keywords
barcode scanning
application
encoding
graphs
scanning
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
CN201710778306.3A
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 Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201710778306.3A priority Critical patent/CN109426755A/en
Publication of CN109426755A publication Critical patent/CN109426755A/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/14Methods 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/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps
    • G06K7/1473Methods for optical code recognition the method including quality enhancement steps error correction
    • 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/14Methods 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/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (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)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a kind of barcode scanning method, system and a kind of devices for barcode scanning, which comprises monitors the barcode scanning operation of the first barcode scanning application scanning encoding of graphs;Detect the barcode scanning result of the barcode scanning operation;The second barcode scanning application belonging to the encoding of graphs is identified according to the barcode scanning result;Business operation is carried out to second barcode scanning application.User is assisted to identify correct barcode scanning application, user carries out barcode scanning after scanning patter coding malfunctions, without searching and starting the application of the second barcode scanning belonging to encoding of graphs manually, realizes automatic barcode scanning of correcting and malfunctions, improves the simplicity for correcting barcode scanning error.

Description

A kind of barcode scanning method, system and a kind of device for barcode scanning
Technical field
The present invention relates to the technical fields of communication, more particularly to a kind of barcode scanning method, a kind of scan code system and a kind of use In the device of barcode scanning.
Background technique
Mobile technology is fast-developing, and mobile terminal is quickly popularized, and user usually installs various applications, example in the terminal Such as, browser, communication applications, news application, Video Applications, shared bicycle application, etc..
In order to mobile terminal using these application, the encoding of graphs such as two dimensional code assume responsibility under line with linked on line, equipment Between the role of important entrance that links, encoded by scanning patter, network address can be opened, payment, addition good friend, hired a car, etc. Deng.
Under normal circumstances, user searches the corresponding application of the encoding of graphs after viewing encoding of graphs manually, opens The application simultaneously starts barcode scanning function, scans the encoding of graphs.
But installation application it is more in the case where, especially encoding of graphs do not indicate it is corresponding application, there are it is multiple to When the encoding of graphs of scanning, user may use the application scanning encoding of graphs of mistake, and barcode scanning is caused to malfunction, at this point, user needs It manually to check wrong reason, then go to find manually and carry out barcode scanning using correct application, it is relatively complicated to correct barcode scanning error.
Summary of the invention
In view of the above problems, in order to solve the problems, such as that it is relatively complicated that above-mentioned correction barcode scanning malfunctions, the embodiment of the present invention is proposed A kind of barcode scanning method and a kind of corresponding scan code system, a kind of device for barcode scanning.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of barcode scanning methods, comprising:
Monitor the barcode scanning operation of the first barcode scanning application scanning encoding of graphs;
Detect the barcode scanning result of the barcode scanning operation;
The second barcode scanning application belonging to the encoding of graphs is identified according to the barcode scanning result;
Business operation is carried out to second barcode scanning application.
The embodiment of the invention also discloses a kind of scan code systems, comprising:
Module is monitored in barcode scanning operation, and the barcode scanning for monitoring the first barcode scanning application scanning encoding of graphs operates;
Barcode scanning result detection module, for detecting the barcode scanning result of the barcode scanning operation;
Barcode scanning application recognition module, for identifying that the second barcode scanning belonging to the encoding of graphs is answered according to the barcode scanning result With;
Service operation module, for carrying out business operation to second barcode scanning application.
The embodiment of the invention also discloses a kind of devices for barcode scanning, include memory and one or one Above program, one of them perhaps more than one program be stored in memory and be configured to by one or one with It includes the instruction for performing the following operation that upper processor, which executes the one or more programs:
Monitor the barcode scanning operation of the first barcode scanning application scanning encoding of graphs;
Detect the barcode scanning result of the barcode scanning operation;
The second barcode scanning application belonging to the encoding of graphs is identified according to the barcode scanning result;
Business operation is carried out to second barcode scanning application.
The embodiment of the invention also discloses one or more machine readable medias, are stored thereon with instruction, when by one or When multiple processors execute, so that processor executes methods one or more among the above.
The embodiment of the present invention includes following advantages:
The embodiment of the present invention monitors the barcode scanning operation of the first barcode scanning application scanning encoding of graphs on backstage, and detects its barcode scanning As a result, according to the second barcode scanning application belonging to barcode scanning result identification encoding of graphs, and relevant business operation is carried out to it, it assists User identifies correct barcode scanning application, and user is after scanning patter coding error, without searching manually and starting encoding of graphs Affiliated the second barcode scanning application carries out barcode scanning, realizes automatic barcode scanning of correcting and malfunctions, improves the simplicity for correcting barcode scanning error.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of barcode scanning method of one embodiment of the invention;
Fig. 2 is a kind of exemplary diagram at barcode scanning interface of one embodiment of the invention;
Fig. 3 is a kind of exemplary diagram of training image data of one embodiment of the invention;
Fig. 4 A- Fig. 4 C is a kind of exemplary diagram of barcode scanning mistake of one embodiment of the invention;
Fig. 5 is the step flow chart of another barcode scanning method of one embodiment of the invention;
Fig. 6 is a kind of structural block diagram of scan code system of one embodiment of the invention;
Fig. 7 is the structural block diagram of another scan code system of one embodiment of the invention;
Fig. 8 is a kind of block diagram of device for barcode scanning shown according to an exemplary embodiment.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
Referring to Fig.1, a kind of step flow chart of barcode scanning method of one embodiment of the invention is shown, can specifically include Following steps:
Step 101, the barcode scanning operation of the first barcode scanning application scanning encoding of graphs is monitored.
In the concrete realization, the embodiment of the present invention can be applied in the terminal, for example, mobile phone, tablet computer, individual Digital assistants, wearable device (such as glasses, wrist-watch) etc..
The operating system of these mobile terminals may include Android (Android), IOS, Windows Phone, Windows Etc..
In an operating system, it will usually preset system application, with for users to use, in order to meet study, work, amusement etc. Other demands, user would generally install other third-party applications in an operating system, for example, browser, communication applications, news are answered With, Video Applications, etc..
For providing the application (including system application and third-party application) of scanning patter encoding function, can be referred to as to sweep Code application, wherein the first barcode scanning is applied and the second barcode scanning application belongs to barcode scanning application.
In embodiments of the present invention, it can star one and apply the detection components applied with the second barcode scanning independently of the first barcode scanning (such as a process in management application), resides backstage, to operate out in the barcode scanning of the first barcode scanning application scanning encoding of graphs It staggers the time and is corrected.
Wherein, encoding of graphs refers to certain specific geometric figure according to certain rules in the figure of plane distribution, for remembering Data symbol information is recorded, can specifically include bar code, two dimensional code, etc..
Bar code includes a kind of EAN (European Article Number, commodity bar code) code, 39 yards, intersection 25 Code, UPC code (Universal Product Code, a kind of commodity bar code), 128 yards, 93 yards, ISBN (International Standard Book Number, International Standard Book Number) code, Codabar (Ku Deba code), etc..
Two dimensional code may include stack two dimensional code, row row's formula two dimensional code, matrix two-dimensional code.
Further, stack/row row's formula two dimensional code includes Code 16K, 49 Code, PDF417, etc.;Matrix form two Tieing up code includes Aztec, Maxi Code, QR Code, Data Matrix, etc..
In one embodiment of the invention, step 101 may include following sub-step:
Sub-step S11 monitors the message that camera acquisition barcode scanning image data is called in the application of the first barcode scanning.
In the concrete realization, the first barcode scanning is applied in barcode scanning encoding of graphs, it will usually camera acquisition be called to include figure The barcode scanning image data of shape coding, therefore, the detection components can monitor the application of the first barcode scanning and call camera acquisition barcode scanning figure As the message of data.
For example, in android system a radio receiver (BroadcastReceiver) can be created, when first When camera acquisition barcode scanning image data is called in barcode scanning application, android system can issue a broadcast, the radio receiver (BroadcastReceiver) this broadcast is received, then it represents that listen to the application of the first barcode scanning and call camera acquisition barcode scanning figure As the message of data.
Sub-step S12, if recognizing barcode scanning frame in the user interface of first barcode scanning application, it is determined that listen to the The barcode scanning of one barcode scanning application scanning encoding of graphs operates.
In embodiments of the present invention, if the detection components listen to the application of the first barcode scanning and call camera acquisition barcode scanning image The message of data, the then UI (User Interface, user interface) that can be applied to the first barcode scanning are parsed.
In the concrete realization, since the user interface of the first barcode scanning application is normally at the most upper of mobile terminal median surface Layer, therefore, which can carry out screenshotss, pass through specified feature (such as rectangle region in the image data that screenshotss obtain Domain) identification barcode scanning frame (i.e. the frame of barcode scanning encoding of graphs).
If recognizing barcode scanning frame, confirmation listens to the barcode scanning operation of the first barcode scanning application scanning encoding of graphs.
For example, as shown in Fig. 2, in the user interface 200 of the first barcode scanning application, it, can be with if recognizing barcode scanning frame 201 Confirmation listens to the barcode scanning operation of the first barcode scanning application scanning encoding of graphs.
Step 102, the barcode scanning result of the barcode scanning operation is detected.
If the detection components listen to barcode scanning operation, the first barcode scanning application scanning encoding of graphs can be continued to test and obtained The barcode scanning result obtained.
In one embodiment of the invention, step 102 may include following sub-step:
Sub-step S21 obtains first barcode scanning and applies the barcode scanning picture number acquired before scanning the encoding of graphs According to.
As shown in figure 3, since there are corresponding application identities, such as product in the encoding of graphs of certain barcode scannings application or around it Board Logo (logo or trade mark), Apply Names etc., therefore, when acquiring barcode scanning image data to its encoding of graphs, it will usually The application identities are also acquired together.
In embodiments of the present invention, the first barcode scanning of detection components acquisition applies what is acquired before scanning patter coding to sweep Code image data, the barcode scanning operation anticipation barcode scanning result that the first barcode scanning is applied by application identities.
For example, the data that can be transmitted by intent (intention) are parsed in android system, swept with obtaining The position of code image data, because the barcode scanning image data of shooting can be in a ContentProviders of android system In generate its corresponding database information, so, ContentResolver can be used and parsed.
Sub-step S22 detects the application identities of the first barcode scanning application in the barcode scanning image data.
Using the embodiment of the present invention, training image data can be acquired for the encoding of graphs of different barcode scannings application in advance.
Therefore, the application mark that can there is the first barcode scanning to apply for record for the first barcode scanning application, the training image data The image data of knowledge, as Positive training sample.
Certainly, for the first barcode scanning application, which may be not record answering for the first barcode scanning application With the image data of mark, as negative training sample.
Pass through CNN (Convolutional Neural Network, convolutional neural networks), DNN (Deep Neural Networks, deep neural network), the machine learning such as RNN (Recurrent Neural Networks, Recognition with Recurrent Neural Network) Method, using the training image data as training sample, the automatic feature for learning application identities, to training application identities mould Type.
In embodiments of the present invention, barcode scanning image data can be input to the application mark using the training of training image data Model is known, to export the result for the application identities whether applied with the first barcode scanning.
It should be noted that if the deployment of application identities model is in the server, then the detection components can be by barcode scanning image Data are sent to server, and barcode scanning image data is input in application identities model by server, and return to whether have first Barcode scanning application application identities as a result, then the detection components can receive server return whether have the first barcode scanning answer The result of application identities.
In addition, the detection components can detecte to be installed in mobile terminal in order to reduce flow and accelerate the speed of identification Barcode scanning application, and download mounted barcode scanning from server and apply corresponding application identities model, thus by barcode scanning image data It is input in local application identities model, and obtains the result for the application identities whether applied with the first barcode scanning.
Sub-step S23, if not having the application identities of first barcode scanning application, the barcode scanning result of the barcode scanning operation For barcode scanning mistake.
If the application identities of the first barcode scanning application are not detected in barcode scanning image data, wrapped in the barcode scanning image data The larger encoding of graphs contained may not be to belong to what the first barcode scanning was applied, therefore, can prejudge the barcode scanning behaviour of the first barcode scanning application The barcode scanning result of work is barcode scanning mistake.
In another embodiment of the present invention, step 102 may include following sub-step:
Sub-step S31 obtains first barcode scanning and applies in scanning institute in the user interface of first barcode scanning application State the barcode scanning error message generated after encoding of graphs.
Sub-step S32 determines that the barcode scanning result of the barcode scanning operation is barcode scanning mistake according to the barcode scanning error message.
In the concrete realization, after certain first barcode scanning application barcode scanning mistakes, barcode scanning mistake letter can be generated in its UI Breath.
It should be noted that barcode scanning error message is the information of generation after the first barcode scanning application barcode scanning mistake, it may be possible to Prompt the information of barcode scanning mistake, it may be possible to which the information, etc. directly after parsing encoding of graphs, this is not added in the embodiment of the present invention With limitation.
For example, as shown in Figure 4 A, the first barcode scanning is applied after scanning the encoding of graphs of application of entitled " small P ", solution Encoding of graphs error is analysed, barcode scanning error message 411 is generated in user interface 410, " is not yet pacified if please be swept using small P and sweep you Small P is filled, please be previously toward downloading ".
In another example as shown in Figure 4 B, the first barcode scanning is applied after the encoding of graphs of other application, parsing encoding of graphs goes out Mistake generates barcode scanning error message 421 in user interface 420, " if you need to browse, is visited after asking long-pressing network address to replicate using browser Ask https: //abc.***.com ".
In another example as shown in Figure 4 C, the first barcode scanning is applied after the encoding of graphs of other application, parsing encoding of graphs goes out Mistake generates barcode scanning error message 431, " 123456789012345678 " in user interface 430.
In the concrete realization, since the user interface of the first barcode scanning application is normally at the most upper of mobile terminal median surface Layer, therefore, which can carry out screenshotss, pass through OCR (Optical in the image data that screenshotss obtain Character Recognition, optical character identification) etc. modes identify barcode scanning error message.
If identifying barcode scanning error message, it can determine that the barcode scanning result of the barcode scanning operation of the first barcode scanning application is to sweep Code mistake.
In another embodiment of the present invention, step 102 may include following sub-step:
Sub-step S41, monitoring first barcode scanning apply the user interface after scanning the encoding of graphs.
Sub-step S42, if the user interface does not change within a preset time period, it is determined that the barcode scanning operation Barcode scanning result be barcode scanning mistake.
In the concrete realization, if first barcode scanning application barcode scanning its encoding of graphs, parsing is normal, turns to skip to the progress of other interfaces Relevant business processing, user interface switching are very fast.
And the encoding of graphs of certain first barcode scanning application barcode scanning other applications, parsing error, a certain user interface is rested on, Wait user's processing.
For example, the first barcode scanning is applied after barcode scanning error such as Fig. 4 A- Fig. 4 C, display barcode scanning error message is rested on Interface.
Since the user interface of the first barcode scanning application is normally at the top layer of mobile terminal median surface, the detection Component can carry out screenshotss, compare the image data that screenshotss in a period obtain, if not changing, can determine the The barcode scanning result of the barcode scanning operation of one barcode scanning application is barcode scanning mistake.
It should be noted that application identities (sub-step S21- sub-step S23), barcode scanning error message (sub-step S31- Step S32) and user interface (sub-step S41- sub-step S42) these conditions may be used alone, can also be used in combination (meet all conditions and then determine that the barcode scanning result of barcode scanning operation is barcode scanning mistake), for example, after sub-step S22, if not having There are the application identities of the first barcode scanning application, then can execute the detection of sub-step S31- sub-step S32 further progress, etc. Deng the embodiments of the present invention are not limited thereto.
Certainly, the detection method of above-mentioned barcode scanning result is intended only as example, in implementing the embodiments of the present invention, can basis The detection method of other barcode scanning results is arranged in actual conditions, and the embodiments of the present invention are not limited thereto.In addition, being swept in addition to above-mentioned Outside the detection method of code result, those skilled in the art can also use the detection side of other barcode scanning results according to actual needs Method, the embodiment of the present invention are also without restriction to this.
Step 103, the second barcode scanning application belonging to the encoding of graphs is identified according to the barcode scanning result.
If the application of the first barcode scanning is not application belonging to encoding of graphs, barcode scanning result is generally barcode scanning mistake, should Detection components can then identify the second barcode scanning application belonging to encoding of graphs, carry out barcode scanning error correction.
In one embodiment of the invention, step 103 may include following sub-step:
Sub-step S51 is searched and the matched barcode scanning mistake mould of the barcode scanning error message in preset error database Plate.
Sub-step S52 determines that the corresponding first object of the barcode scanning mistake template is applied as belonging to the encoding of graphs Second barcode scanning application.
Using the embodiment of the present invention, can be believed with the barcode scanning mistake generated when the encoding of graphs of acquisition applications A sweep application B Breath, to generate barcode scanning mistake template, is stored in error database.
For example, barcode scanning error message 411 shown in Fig. 4 A " is not yet installed small P if please be swept using small P and sweep you, is asked Previously toward downloading ", it can be using barcode scanning error message 411 as barcode scanning mistake template.
In another example for barcode scanning error message 421 shown in Fig. 4 B, " if you need to browse, using clear after asking long-pressing network address to replicate Device of looking at access https: //abc.***.com " still, belongs to some and applies corresponding domain name since link is different, therefore, Can be generated barcode scanning mistake template " if you need to browse, ask long-pressing network address replicate after using browser access regular expression A ", In, regular expression A is used to match the link of the domain name.
In another example for barcode scanning error message 431 shown in Fig. 4 C, " 123456789012345678 " be can be generated just Then expression formula B is as barcode scanning mistake template, wherein regular expression B is for matching 18 digital character strings.
Certainly, the generation method of above-mentioned barcode scanning mistake template is intended only as example, in implementing the embodiments of the present invention, can be with The generation method of other barcode scanning mistake templates is set according to the actual situation, and the embodiments of the present invention are not limited thereto.In addition, removing Outside the generation method of above-mentioned barcode scanning mistake template, those skilled in the art can also be wrong using other barcode scannings according to actual needs Accidentally the generation method of template, the embodiment of the present invention are also without restriction to this.
A is applied for scanning patter coding, is properly termed as the application of the first source, for applying B belonging to encoding of graphs, is claimed For first object application.
So, for the first barcode scanning application, which is, using the first source application scanning first object application Encoding of graphs when generate barcode scanning error message training made of template.
It, can be to the application of barcode scanning mistake template mark corresponding first source and first object application in error database.
Therefore, can be searched in error database with the matched barcode scanning mistake template of barcode scanning error message, corresponded to First object application be set as the second barcode scanning application belonging to encoding of graphs.
It should be noted that if error database deployment is in the server, then the detection components can believe barcode scanning mistake Breath is sent to server, and server returns to corresponding second barcode scanning application, then the detection components after wrong data storehouse matching It can receive the second barcode scanning application of server return.
In addition, the detection components can detecte to be installed in mobile terminal in order to reduce flow and accelerate the speed of identification Barcode scanning application, and the error database applied as the first source is applied from server downloading using mounted barcode scanning, to incite somebody to action this It is matched in the error database on ground, and obtains corresponding second barcode scanning application.
In another embodiment of the present invention, step 103 may include following sub-step:
Sub-step S61 is matched in the barcode scanning error message using preset key application word.
Sub-step S62, if successful match, it is determined that the application of the key application vocabulary sign is belonging to the encoding of graphs The second barcode scanning application.
(i.e. the second barcode scanning application) is applied since certain barcode scanning error messages may write out correct barcode scanning, application The embodiment of the present invention, can be in advance to different barcode scanning application setting one or more application keywords, for example, the name of application Title, Business Name of development and application, etc..
The detection components can be matched in barcode scanning error message using these key application words, if matching at Function, then can be using the corresponding application of key application word as the second barcode scanning application belonging to encoding of graphs.
For example, barcode scanning error message 411 shown in Fig. 4 A " is not yet installed small P if please be swept using small P and sweep you, is asked Previously toward downloading ", matching and successful match are carried out using key application word " small P ", confirms that the application of entitled " small P " is second Barcode scanning application.
In another embodiment of the present invention, step 103 may include following sub-step:
Sub-step S71 is searched in preset switch data library and is applied with first barcode scanning using matched second source.
Sub-step S72 determines that second source using corresponding second target application is the belonging to the encoding of graphs Two barcode scanning applications.
In the concrete realization, due to certain use habits, user habitual may use the figure for applying C barcode scanning application D Coding, after barcode scanning mistake, user switches to from application C and scans the encoding of graphs using D.
For example, it is the application of Third-party payment that payment, which applies N using M and payment, in the cabinet of the retail shops such as food and drink, convenience store On platform, the encoding of graphs that N is applied in payment using M and payment is put, user's barcode scanning is facilitated to pay, still, due to pendulum It puts together, user may mistakenly apply the encoding of graphs of N using payment using M scanning payment, alternatively, mistakenly using branch Pay the encoding of graphs that M is applied using N scanning payment.
Using the embodiment of the present invention, it can be directed to such situation, can recorde same using D scanning from being switched to using C The information of a encoding of graphs is stored as handover operation into switch data library.
In order to improve accuracy rate, the validity of other conditions verifying handover operation can also be added, for effectively switching Operation, then apply, for invalid handover operation, then do not apply.
For example, time of the same encoding of graphs is scanned less than a preset time threshold using D from switching to using C, Then handover operation is effective, and otherwise, handover operation is invalid, deletes the handover operation.
In another example being higher than a preset frequency threshold using the frequency that D scans the same encoding of graphs from switching to using C Value, then handover operation is effective, and otherwise, handover operation is invalid, but can continue to retain, statistic frequency.
C is applied for barcode scanning encoding of graphs, being properly termed as the application of the second source can for applying D belonging to encoding of graphs To be known as the second target application.
So, there is from the same figure volume of the second source application switching to the second target application scanning record in switch data library The information of code.
It should be noted that switch data library can be a general number of the generation of the handover operation based on the whole network user According to library, personalization modification, the present invention can also be carried out using the handover operation of active user on the basis of general database Embodiment is without restriction to this.
In embodiments of the present invention, it can search in switch data library and be answered with the first barcode scanning using matched second source With setting the second barcode scanning application belonging to encoding of graphs using corresponding second target application for the second source.
Step 104, business operation is carried out to second barcode scanning application.
After identifying the application of the second barcode scanning belonging to encoding of graphs, detection components can be directed to different business scenes Relevant business operation is carried out to second barcode scanning application.
In one embodiment of the invention, step 104 may include following sub-step:
Sub-step S81 determines the barcode scanning interface in the second barcode scanning application for encoding of graphs described in barcode scanning;
Sub-step S82 calls the second barcode scanning application, opens the barcode scanning interface.
In embodiments of the present invention, business operation is the opening operation of the second barcode scanning application.
In the concrete realization, detection components can inquire in second barcode scanning application, for sweeping for the barcode scanning encoding of graphs Code interface, and call the second barcode scanning application, opens the barcode scanning interface, realizes that a key goes directly barcode scanning interface, reduces user's starting the Two barcode scanning applications open the operation such as barcode scanning interface, improve the simplicity of barcode scanning operation.
In another embodiment of the present invention, step 104 may include following sub-step:
Sub-step S91 generates barcode scanning prompt information to second barcode scanning application.
In embodiments of the present invention, business operation is the prompt operation of the second barcode scanning application.
In the concrete realization, corresponding prompt information can be generated in detection components, and correct second barcode scanning of user is prompted to answer With.
User browses to after the prompt information, can open the second barcode scanning application barcode scanning encoding of graphs manually, can also To click the prompt information, the second barcode scanning application barcode scanning encoding of graphs, etc., the embodiment of the present invention pair are opened by detection components This is without restriction.
Certainly, above-mentioned business operation is intended only as example, in implementing the embodiments of the present invention, can set according to the actual situation Other business operations are set, the embodiments of the present invention are not limited thereto.In addition, other than above-mentioned business operation, art technology Personnel can also use other business operations according to actual needs, and the embodiment of the present invention is also without restriction to this.
The embodiment of the present invention monitors the barcode scanning operation of the first barcode scanning application scanning encoding of graphs on backstage, and detects its barcode scanning As a result, according to the second barcode scanning application belonging to barcode scanning result identification encoding of graphs, and relevant business operation is carried out to it, it assists User identifies correct barcode scanning application, and user is after scanning patter coding error, without searching manually and starting encoding of graphs Affiliated the second barcode scanning application carries out barcode scanning, realizes automatic barcode scanning of correcting and malfunctions, improves the simplicity for correcting barcode scanning error.
Referring to Fig. 5, the step flow chart of another barcode scanning method of one embodiment of the invention is shown, specifically can wrap Include following steps:
Step 501, the barcode scanning operation of the first barcode scanning application scanning encoding of graphs is monitored.
Step 502, the barcode scanning result of the barcode scanning operation is detected.
Step 503, the second barcode scanning application belonging to the encoding of graphs is identified according to the barcode scanning result.
Step 504, business operation is carried out to second barcode scanning application.
Step 505, safety detection is carried out to the encoding of graphs, obtains testing result.
Step 506, safety instruction information is generated according to the testing result.
Step 507, if testing result is dangerous, interception the first barcode scanning application or the second barcode scanning application scanning The barcode scanning of the encoding of graphs operates.
In embodiments of the present invention, if detection components listen to the barcode scanning operation of the first barcode scanning application scanning encoding of graphs, On the one hand, the barcode scanning result that can be applied according to the first barcode scanning identifies the second barcode scanning application belonging to encoding of graphs, on the other hand, Available first barcode scanning applies the barcode scanning image data of acquisition, has encoding of graphs in the barcode scanning graph data, to the figure Coding carries out safety detection, unsafe encoding of graphs such as prevention swindle, fee suction.
In a kind of embodiment of safety detection, encoding of graphs can be put into sandbox, emulated system environment, mould Quasi- scanning patter coding.
The relevant behavioural information that monitoring pattern encodes in sandbox, and threat level, example are generated based on behavior information Such as, network behavior information, local behavioural information, developer's information, plugin information, running background information on services, self-starting mode, Authority information, embedded the file information, the recalls information for being associated with URL, API etc..
The threat level of comprehensive Graphics coding and the operation information (such as whether abnormal) of sandbox, determine the safety of encoding of graphs Information, as testing result.
At this point it is possible to generate safety instruction information for the testing result, prompt user's encoding of graphs whether safe.
If encoding of graphs is dangerous, figure described in the application of the first barcode scanning or the second barcode scanning application scanning can be intercepted and compiled The barcode scanning operation of code, improves the safety of barcode scanning operation.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Referring to Fig. 6, show a kind of structural block diagram of scan code system of one embodiment of the invention, can specifically include as Lower module:
Module 601 is monitored in barcode scanning operation, and the barcode scanning for monitoring the first barcode scanning application scanning encoding of graphs operates;
Barcode scanning result detection module 602, for detecting the barcode scanning result of the barcode scanning operation;
Barcode scanning application recognition module 603, for identifying belonging to the encoding of graphs that second sweeps according to the barcode scanning result Code application;
Service operation module 604, for carrying out business operation to second barcode scanning application.
In one embodiment of the invention, the barcode scanning operation monitoring module 601 includes:
Camera message monitors submodule, calls camera acquisition barcode scanning image data for monitoring the application of the first barcode scanning Message;
Barcode scanning, which operates, determines submodule, if for recognizing barcode scanning frame in the user interface that first barcode scanning is applied, Then determine the barcode scanning operation for listening to the first barcode scanning application scanning encoding of graphs.
In one embodiment of the invention, the barcode scanning result detection module 602 includes:
Barcode scanning image data acquisition submodule is applied before scanning the encoding of graphs for obtaining first barcode scanning The barcode scanning image data of acquisition;
Application identities detection sub-module, for detecting the application of the first barcode scanning application in the barcode scanning image data Mark;
First barcode scanning mistake determines submodule, described if the application identities for not having first barcode scanning application The barcode scanning result of barcode scanning operation is barcode scanning mistake.
In one embodiment of the invention, the application identities detection sub-module includes:
Application identities model recognition unit, for being input to the barcode scanning image data using the training of training image data Application identities model, with export whether with first barcode scanning application application identities result.
In one embodiment of the invention, the barcode scanning result detection module 602 includes:
Barcode scanning error message acquisition submodule obtains described the in the user interface that first barcode scanning is applied One barcode scanning applies the barcode scanning error message generated after scanning the encoding of graphs;
Second barcode scanning mistake determines submodule, for determining the barcode scanning of the barcode scanning operation according to the barcode scanning error message It as a result is barcode scanning mistake.
In one embodiment of the invention, the barcode scanning application recognition module 603 includes:
Barcode scanning mistake template searches submodule, for searching and the barcode scanning error message in preset error database Matched barcode scanning mistake template, the barcode scanning mistake template are to be compiled using the figure of the first source application scanning first object application Template made of the barcode scanning error message training generated when code;
First object application determines submodule, for determining that the corresponding first object of the barcode scanning mistake template is applied as institute State the second barcode scanning application belonging to encoding of graphs.
In one embodiment of the invention, the barcode scanning application recognition module 603 includes:
Keywords matching submodule, for using the progress of preset key application word in the barcode scanning error message Match;
Characterization application determines submodule, if being used for successful match, it is determined that the application of the key application vocabulary sign is institute State the second barcode scanning application belonging to encoding of graphs.
In one embodiment of the invention, the barcode scanning result detection module 602 includes:
User interface monitors submodule, applies use after scanning the encoding of graphs for monitoring first barcode scanning Family interface;
Third barcode scanning mistake determines submodule, if not changing within a preset time period for the user interface, The barcode scanning result for then determining the barcode scanning operation is barcode scanning mistake.
In one embodiment of the invention, the barcode scanning result detection module 603 includes:
Submodule is searched in the application of second source, for searching in preset switch data library and first barcode scanning application The second source matched is applied, and record has same from the scanning of the second source application switching to the second target application in the switch data library The information of encoding of graphs;
Second target application determines submodule, is described for determining second source using corresponding second target application Second barcode scanning application belonging to encoding of graphs.
In one embodiment of the invention, the service operation module 604 includes:
Barcode scanning interface determines submodule, for determining sweeping for encoding of graphs described in barcode scanning in the second barcode scanning application Code interface;
It opens submodule and opens the barcode scanning interface for calling the second barcode scanning application in barcode scanning interface.
In one embodiment of the invention, the service operation module 604 includes:
Barcode scanning prompt information generates submodule, for generating barcode scanning prompt information to second barcode scanning application.
The embodiment of the present invention monitors the barcode scanning operation of the first barcode scanning application scanning encoding of graphs on backstage, and detects its barcode scanning As a result, according to the second barcode scanning application belonging to barcode scanning result identification encoding of graphs, and relevant business operation is carried out to it, it assists User identifies correct barcode scanning application, and user is after scanning patter coding error, without searching manually and starting encoding of graphs Affiliated the second barcode scanning application carries out barcode scanning, realizes automatic barcode scanning of correcting and malfunctions, improves the simplicity for correcting barcode scanning error.
Referring to Fig. 7, the structural block diagram of another scan code system of one embodiment of the invention is shown, can specifically include Following module:
Module 701 is monitored in barcode scanning operation, and the barcode scanning for monitoring the first barcode scanning application scanning encoding of graphs operates;
Barcode scanning result detection module 702, for detecting the barcode scanning result of the barcode scanning operation;
Barcode scanning application recognition module 703, for identifying belonging to the encoding of graphs that second sweeps according to the barcode scanning result Code application;
Service operation module 704, for carrying out business operation to second barcode scanning application;
Safety detection module 705 obtains testing result for carrying out safety detection to the encoding of graphs;
Safety instruction information generating module 706, for generating safety instruction information according to the testing result;
Barcode scanning operation intercepting module 707, if for testing result being dangerous, interception the first barcode scanning application or described The barcode scanning of encoding of graphs described in second barcode scanning application scanning operates.
About the system in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 8 is a kind of block diagram of device 800 for barcode scanning shown according to an exemplary embodiment.For example, device 800 It can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, Body-building equipment, personal digital assistant etc..
Referring to Fig. 8, device 800 may include following one or more components: processing component 802, memory 804, power supply Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing element 802 may include that one or more processors 820 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 808 includes a front camera and/or rear camera.When equipment 800 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor module 814 can detecte the state that opens/closes of equipment 800, and the relative positioning of component, for example, it is described Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of device 800 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device executes, so that mobile terminal is able to carry out a kind of barcode scanning method, which comprises
Monitor the barcode scanning operation of the first barcode scanning application scanning encoding of graphs;
Detect the barcode scanning result of the barcode scanning operation;
The second barcode scanning application belonging to the encoding of graphs is identified according to the barcode scanning result;
Business operation is carried out to second barcode scanning application.
Optionally, it is described monitor the first barcode scanning application scanning encoding of graphs barcode scanning operation the step of include:
Monitor the message that camera acquisition barcode scanning image data is called in the application of the first barcode scanning;
If recognizing barcode scanning frame in the user interface of first barcode scanning application, it is determined that listen to the first barcode scanning application The barcode scanning operation of scanning patter coding.
Optionally, the step of barcode scanning result of the detection barcode scanning operation includes:
It obtains first barcode scanning and applies the barcode scanning image data acquired before scanning the encoding of graphs;
The application identities of the first barcode scanning application are detected in the barcode scanning image data;
If not having the application identities of first barcode scanning application, the barcode scanning result of the barcode scanning operation is that barcode scanning is wrong Accidentally.
Optionally, the step of application identities that the first barcode scanning application is detected in barcode scanning image data packet It includes:
By the barcode scanning image data be input to using training image data training application identities model, with output whether The result of application identities with first barcode scanning application.
Optionally, the step of barcode scanning result of the detection barcode scanning operation includes:
In the user interface of first barcode scanning application, obtains first barcode scanning and apply in the scanning encoding of graphs The barcode scanning error message generated later;
The barcode scanning result that the barcode scanning operation is determined according to the barcode scanning error message is barcode scanning mistake.
Optionally, the step of identifying the application of the second barcode scanning belonging to the encoding of graphs according to barcode scanning result packet It includes:
It is searched in preset error database and the matched barcode scanning mistake template of the barcode scanning error message, the barcode scanning Mistake template is, the barcode scanning error message training that when encoding of graphs applied using the first source application scanning first object is generated and At template;
It determines that the corresponding first object of the barcode scanning mistake template is applied to answer for the second barcode scanning belonging to the encoding of graphs With.
Optionally, the step of identifying the application of the second barcode scanning belonging to the encoding of graphs according to barcode scanning result packet It includes:
It is matched in the barcode scanning error message using preset key application word;
If successful match, it is determined that the application of the key application vocabulary sign is the second barcode scanning belonging to the encoding of graphs Using.
Optionally, the step of barcode scanning result of the detection barcode scanning operation includes:
It monitors first barcode scanning and applies user interface after scanning the encoding of graphs;
If the user interface does not change within a preset time period, it is determined that the barcode scanning result of the barcode scanning operation For barcode scanning mistake.
Optionally, the step of identifying the application of the second barcode scanning belonging to the encoding of graphs according to barcode scanning result packet It includes:
It searches in preset switch data library and is applied with first barcode scanning using matched second source, the switching number There is the information that the same encoding of graphs is scanned from the second source application switching to the second target application according to record in library;
Determining that corresponding second target application is applied in second source is the second barcode scanning application belonging to the encoding of graphs.
Optionally, described the step of carrying out business operation to second barcode scanning application, includes:
Determine the barcode scanning interface in the second barcode scanning application for encoding of graphs described in barcode scanning;
The second barcode scanning application is called, the barcode scanning interface is opened.
Optionally, described the step of carrying out business operation to second barcode scanning application, includes:
Barcode scanning prompt information is generated to second barcode scanning application.
Optionally, further includes:
Safety detection is carried out to the encoding of graphs, obtains testing result;
Safety instruction information is generated according to the testing result;
If testing result is dangerous, figure described in interception the first barcode scanning application or the second barcode scanning application scanning The barcode scanning of coding operates.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
The embodiment of the invention discloses A1, a kind of barcode scanning method, comprising:
Monitor the barcode scanning operation of the first barcode scanning application scanning encoding of graphs;
Detect the barcode scanning result of the barcode scanning operation;
The second barcode scanning application belonging to the encoding of graphs is identified according to the barcode scanning result;
Business operation is carried out to second barcode scanning application.
The step of A2, method according to a1, the barcode scanning operation for monitoring the first barcode scanning application scanning encoding of graphs Include:
Monitor the message that camera acquisition barcode scanning image data is called in the application of the first barcode scanning;
If recognizing barcode scanning frame in the user interface of first barcode scanning application, it is determined that listen to the first barcode scanning application The barcode scanning operation of scanning patter coding.
The step of A3, method according to a1, the barcode scanning result of detection barcode scanning operation includes:
It obtains first barcode scanning and applies the barcode scanning image data acquired before scanning the encoding of graphs;
The application identities of the first barcode scanning application are detected in the barcode scanning image data;
If not having the application identities of first barcode scanning application, the barcode scanning result of the barcode scanning operation is that barcode scanning is wrong Accidentally.
A4, method according to a3, it is described that answering for the first barcode scanning application is detected in the barcode scanning image data Include: with the step of mark
By the barcode scanning image data be input to using training image data training application identities model, with output whether The result of application identities with first barcode scanning application.
The step of A5, method according to a1, the barcode scanning result of detection barcode scanning operation includes:
In the user interface of first barcode scanning application, obtains first barcode scanning and apply in the scanning encoding of graphs The barcode scanning error message generated later;
The barcode scanning result that the barcode scanning operation is determined according to the barcode scanning error message is barcode scanning mistake.
A6, method according to a5, it is described to identify belonging to the encoding of graphs that second sweeps according to the barcode scanning result Code application the step of include:
It is searched in preset error database and the matched barcode scanning mistake template of the barcode scanning error message, the barcode scanning Mistake template is, the barcode scanning error message training that when encoding of graphs applied using the first source application scanning first object is generated and At template;
It determines that the corresponding first object of the barcode scanning mistake template is applied to answer for the second barcode scanning belonging to the encoding of graphs With.
A7, method according to a5, it is described to identify belonging to the encoding of graphs that second sweeps according to the barcode scanning result Code application the step of include:
It is matched in the barcode scanning error message using preset key application word;
If successful match, it is determined that the application of the key application vocabulary sign is the second barcode scanning belonging to the encoding of graphs Using.
The step of A8, method according to a1, the barcode scanning result of detection barcode scanning operation includes:
It monitors first barcode scanning and applies user interface after scanning the encoding of graphs;
If the user interface does not change within a preset time period, it is determined that the barcode scanning result of the barcode scanning operation For barcode scanning mistake.
A9, the method according to A1 or A3 or A5 or A8, it is described to identify the encoding of graphs according to the barcode scanning result The step of affiliated second barcode scanning application includes:
It searches in preset switch data library and is applied with first barcode scanning using matched second source, the switching number There is the information that the same encoding of graphs is scanned from the second source application switching to the second target application according to record in library;
Determining that corresponding second target application is applied in second source is the second barcode scanning application belonging to the encoding of graphs.
A10, according to the described in any item methods of A1-A8, the step that business operation is carried out to second barcode scanning application Suddenly include:
Determine the barcode scanning interface in the second barcode scanning application for encoding of graphs described in barcode scanning;
The second barcode scanning application is called, the barcode scanning interface is opened.
A11, according to the described in any item methods of A1-A8, the step that business operation is carried out to second barcode scanning application Suddenly include:
Barcode scanning prompt information is generated to second barcode scanning application.
A12, according to the described in any item methods of A1-A8, further includes:
Safety detection is carried out to the encoding of graphs, obtains testing result;
Safety instruction information is generated according to the testing result;
If testing result is dangerous, figure described in interception the first barcode scanning application or the second barcode scanning application scanning The barcode scanning of coding operates.
The embodiment of the invention also discloses B13, a kind of scan code system, comprising:
Module is monitored in barcode scanning operation, and the barcode scanning for monitoring the first barcode scanning application scanning encoding of graphs operates;
Barcode scanning result detection module, for detecting the barcode scanning result of the barcode scanning operation;
Barcode scanning application recognition module, for identifying that the second barcode scanning belonging to the encoding of graphs is answered according to the barcode scanning result With;
Service operation module, for carrying out business operation to second barcode scanning application.
B14, system according to b13, the barcode scanning operation monitor module and include:
Camera message monitors submodule, calls camera acquisition barcode scanning image data for monitoring the application of the first barcode scanning Message;
Barcode scanning, which operates, determines submodule, if for recognizing barcode scanning frame in the user interface that first barcode scanning is applied, Then determine the barcode scanning operation for listening to the first barcode scanning application scanning encoding of graphs.
B15, system according to b13, the barcode scanning result detection module include:
Barcode scanning image data acquisition submodule is applied before scanning the encoding of graphs for obtaining first barcode scanning The barcode scanning image data of acquisition;
Application identities detection sub-module, for detecting the application of the first barcode scanning application in the barcode scanning image data Mark;
First barcode scanning mistake determines submodule, described if the application identities for not having first barcode scanning application The barcode scanning result of barcode scanning operation is barcode scanning mistake.
B16, the system according to B15, the application identities detection sub-module include:
Application identities model recognition unit, for being input to the barcode scanning image data using the training of training image data Application identities model, with export whether with first barcode scanning application application identities result.
B17, system according to b13, the barcode scanning result detection module include:
Barcode scanning error message acquisition submodule obtains described the in the user interface that first barcode scanning is applied One barcode scanning applies the barcode scanning error message generated after scanning the encoding of graphs;
Second barcode scanning mistake determines submodule, for determining the barcode scanning of the barcode scanning operation according to the barcode scanning error message It as a result is barcode scanning mistake.
B18, the system according to B17, the barcode scanning application recognition module include:
Barcode scanning mistake template searches submodule, for searching and the barcode scanning error message in preset error database Matched barcode scanning mistake template, the barcode scanning mistake template are to be compiled using the figure of the first source application scanning first object application Template made of the barcode scanning error message training generated when code;
First object application determines submodule, for determining that the corresponding first object of the barcode scanning mistake template is applied as institute State the second barcode scanning application belonging to encoding of graphs.
B19, the system according to B17, the barcode scanning application recognition module include:
Keywords matching submodule, for using the progress of preset key application word in the barcode scanning error message Match;
Characterization application determines submodule, if being used for successful match, it is determined that the application of the key application vocabulary sign is institute State the second barcode scanning application belonging to encoding of graphs.
B20, system according to b13, the barcode scanning result detection module include:
User interface monitors submodule, applies use after scanning the encoding of graphs for monitoring first barcode scanning Family interface;
Third barcode scanning mistake determines submodule, if not changing within a preset time period for the user interface, The barcode scanning result for then determining the barcode scanning operation is barcode scanning mistake.
B21, the system according to B13 or B15 or B17 or B20, the barcode scanning result detection module include:
Submodule is searched in the application of second source, for searching in preset switch data library and first barcode scanning application The second source matched is applied, and record has same from the scanning of the second source application switching to the second target application in the switch data library The information of encoding of graphs;
Second target application determines submodule, is described for determining second source using corresponding second target application Second barcode scanning application belonging to encoding of graphs.
B22, according to the described in any item systems of B13-B20, the service operation module includes:
Barcode scanning interface determines submodule, for determining sweeping for encoding of graphs described in barcode scanning in the second barcode scanning application Code interface;
It opens submodule and opens the barcode scanning interface for calling the second barcode scanning application in barcode scanning interface.
B23, according to the described in any item systems of B13-B20, the service operation module includes:
Barcode scanning prompt information generates submodule, for generating barcode scanning prompt information to second barcode scanning application.
B24, according to the described in any item systems of B13-B20, further includes:
Safety detection module obtains testing result for carrying out safety detection to the encoding of graphs;
Safety instruction information generating module, for generating safety instruction information according to the testing result;
Barcode scanning operation intercepting module, if for testing result be it is dangerous, intercept first barcode scanning application or described the The barcode scanning of encoding of graphs described in two barcode scanning application scannings operates.
The embodiment of the invention also discloses C25, a kind of device for barcode scanning, include memory and one or More than one program, perhaps more than one program is stored in memory and is configured to by one or one for one of them It includes the instruction for performing the following operation that a above processor, which executes the one or more programs:
Monitor the barcode scanning operation of the first barcode scanning application scanning encoding of graphs;
Detect the barcode scanning result of the barcode scanning operation;
The second barcode scanning application belonging to the encoding of graphs is identified according to the barcode scanning result;
Business operation is carried out to second barcode scanning application.
C26, the device according to C25, the one or more programs also include for performing the following operation Instruction:
Monitor the message that camera acquisition barcode scanning image data is called in the application of the first barcode scanning;
If recognizing barcode scanning frame in the user interface of first barcode scanning application, it is determined that listen to the first barcode scanning application The barcode scanning operation of scanning patter coding.
C27, the device according to C25, the one or more programs also include for performing the following operation Instruction:
It obtains first barcode scanning and applies the barcode scanning image data acquired before scanning the encoding of graphs;
The application identities of the first barcode scanning application are detected in the barcode scanning image data;
If not having the application identities of first barcode scanning application, the barcode scanning result of the barcode scanning operation is that barcode scanning is wrong Accidentally.
C28, the device according to C27, the one or more programs also include for performing the following operation Instruction:
By the barcode scanning image data be input to using training image data training application identities model, with output whether The result of application identities with first barcode scanning application.
C29, the device according to C25, the one or more programs also include for performing the following operation Instruction:
In the user interface of first barcode scanning application, obtains first barcode scanning and apply in the scanning encoding of graphs The barcode scanning error message generated later;
The barcode scanning result that the barcode scanning operation is determined according to the barcode scanning error message is barcode scanning mistake.
C30, the device according to C29, the one or more programs also include for performing the following operation Instruction:
It is searched in preset error database and the matched barcode scanning mistake template of the barcode scanning error message, the barcode scanning Mistake template is, the barcode scanning error message training that when encoding of graphs applied using the first source application scanning first object is generated and At template;
It determines that the corresponding first object of the barcode scanning mistake template is applied to answer for the second barcode scanning belonging to the encoding of graphs With.
C31, the device according to C29, the one or more programs also include for performing the following operation Instruction
It is matched in the barcode scanning error message using preset key application word;
If successful match, it is determined that the application of the key application vocabulary sign is the second barcode scanning belonging to the encoding of graphs Using.
C32, the device according to C25, the one or more programs also include for performing the following operation Instruction
It monitors first barcode scanning and applies user interface after scanning the encoding of graphs;
If the user interface does not change within a preset time period, it is determined that the barcode scanning result of the barcode scanning operation For barcode scanning mistake.
C33, the device according to C25 or C27 or C29 or C32, the one or more programs also include use In the instruction performed the following operation
It searches in preset switch data library and is applied with first barcode scanning using matched second source, the switching number There is the information that the same encoding of graphs is scanned from the second source application switching to the second target application according to record in library;
Determining that corresponding second target application is applied in second source is the second barcode scanning application belonging to the encoding of graphs.
C34, according to the described in any item devices of C25-C32, the one or more programs also include for into The following instruction operated of row:
Determine the barcode scanning interface in the second barcode scanning application for encoding of graphs described in barcode scanning;
The second barcode scanning application is called, the barcode scanning interface is opened.
C35, according to the described in any item devices of C25-C32, the one or more programs also include for into The following instruction operated of row:
Barcode scanning prompt information is generated to second barcode scanning application.
C36, according to the described in any item devices of C25-C32, the one or more programs also include for into The following instruction operated of row:
Safety detection is carried out to the encoding of graphs, obtains testing result;
Safety instruction information is generated according to the testing result;
If testing result is dangerous, figure described in interception the first barcode scanning application or the second barcode scanning application scanning The barcode scanning of coding operates.
The embodiment of the invention also discloses D37, one or more machine readable medias, instruction are stored thereon with, when by one When a or multiple processors execute, so that processor is executed such as method one or more in A1-A12.

Claims (10)

1. a kind of barcode scanning method characterized by comprising
Monitor the barcode scanning operation of the first barcode scanning application scanning encoding of graphs;
Detect the barcode scanning result of the barcode scanning operation;
The second barcode scanning application belonging to the encoding of graphs is identified according to the barcode scanning result;
Business operation is carried out to second barcode scanning application.
2. the method according to claim 1, wherein described monitor sweeping for the first barcode scanning application scanning encoding of graphs Code operation the step of include:
Monitor the message that camera acquisition barcode scanning image data is called in the application of the first barcode scanning;
If recognizing barcode scanning frame in the user interface of first barcode scanning application, it is determined that listen to the first barcode scanning application scanning The barcode scanning of encoding of graphs operates.
3. the method according to claim 1, wherein the step of barcode scanning result of the detection barcode scanning operation Include:
It obtains first barcode scanning and applies the barcode scanning image data acquired before scanning the encoding of graphs;
The application identities of the first barcode scanning application are detected in the barcode scanning image data;
If not having the application identities of first barcode scanning application, the barcode scanning result of the barcode scanning operation is barcode scanning mistake.
4. according to the method described in claim 3, it is characterized in that, described detect described first in the barcode scanning image data Barcode scanning application application identities the step of include:
The barcode scanning image data is input to the application identities model using the training of training image data, whether is had with output The result of the application identities of the first barcode scanning application.
5. the method according to claim 1, wherein the step of barcode scanning result of the detection barcode scanning operation Include:
In the user interface of first barcode scanning application, obtains first barcode scanning and apply after scanning the encoding of graphs The barcode scanning error message of generation;
The barcode scanning result that the barcode scanning operation is determined according to the barcode scanning error message is barcode scanning mistake.
6. according to the method described in claim 5, it is characterized in that, described identify the encoding of graphs according to the barcode scanning result The step of affiliated second barcode scanning application includes:
It is searched in preset error database and the matched barcode scanning mistake template of the barcode scanning error message, the barcode scanning mistake Template is, made of the barcode scanning error message training generated when the encoding of graphs of the first source application scanning first object application Template;
Determine that the corresponding first object of the barcode scanning mistake template is applied as the second barcode scanning application belonging to the encoding of graphs.
7. according to the method described in claim 5, it is characterized in that, described identify the encoding of graphs according to the barcode scanning result The step of affiliated second barcode scanning application includes:
It is matched in the barcode scanning error message using preset key application word;
If successful match, it is determined that the application of the key application vocabulary sign is that the second barcode scanning belonging to the encoding of graphs is answered With.
8. a kind of scan code system characterized by comprising
Module is monitored in barcode scanning operation, and the barcode scanning for monitoring the first barcode scanning application scanning encoding of graphs operates;
Barcode scanning result detection module, for detecting the barcode scanning result of the barcode scanning operation;
Barcode scanning application recognition module, for identifying the second barcode scanning application belonging to the encoding of graphs according to the barcode scanning result;
Service operation module, for carrying out business operation to second barcode scanning application.
9. a kind of device for barcode scanning, which is characterized in that it include memory and one or more than one program, Perhaps more than one program is stored in memory and is configured to be executed by one or more than one processor for one of them The one or more programs include the instruction for performing the following operation:
Monitor the barcode scanning operation of the first barcode scanning application scanning encoding of graphs;
Detect the barcode scanning result of the barcode scanning operation;
The second barcode scanning application belonging to the encoding of graphs is identified according to the barcode scanning result;
Business operation is carried out to second barcode scanning application.
10. one or more machine readable medias, are stored thereon with instruction, when executed by one or more processors, so that Processor is executed such as method one or more in claim 1-7.
CN201710778306.3A 2017-09-01 2017-09-01 A kind of barcode scanning method, system and a kind of device for barcode scanning Pending CN109426755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710778306.3A CN109426755A (en) 2017-09-01 2017-09-01 A kind of barcode scanning method, system and a kind of device for barcode scanning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710778306.3A CN109426755A (en) 2017-09-01 2017-09-01 A kind of barcode scanning method, system and a kind of device for barcode scanning

Publications (1)

Publication Number Publication Date
CN109426755A true CN109426755A (en) 2019-03-05

Family

ID=65512841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710778306.3A Pending CN109426755A (en) 2017-09-01 2017-09-01 A kind of barcode scanning method, system and a kind of device for barcode scanning

Country Status (1)

Country Link
CN (1) CN109426755A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111444737A (en) * 2020-03-25 2020-07-24 维沃移动通信有限公司 Graphic code identification method and electronic equipment
CN114282558A (en) * 2020-10-01 2022-04-05 上海商米科技集团股份有限公司 Code scanning method and device for intelligent code scanning equipment, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050150958A1 (en) * 2002-06-28 2005-07-14 Isao Iwaguchi Bar-code reader and computer product
CN105117256A (en) * 2015-08-31 2015-12-02 联想(北京)有限公司 Information processing method and electronic device
CN106372893A (en) * 2016-08-26 2017-02-01 维沃移动通信有限公司 Code scanning interface switching method and apparatus
CN106851006A (en) * 2017-02-28 2017-06-13 努比亚技术有限公司 A kind of apparatus and method for recognizing Quick Response Code

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050150958A1 (en) * 2002-06-28 2005-07-14 Isao Iwaguchi Bar-code reader and computer product
CN105117256A (en) * 2015-08-31 2015-12-02 联想(北京)有限公司 Information processing method and electronic device
CN106372893A (en) * 2016-08-26 2017-02-01 维沃移动通信有限公司 Code scanning interface switching method and apparatus
CN106851006A (en) * 2017-02-28 2017-06-13 努比亚技术有限公司 A kind of apparatus and method for recognizing Quick Response Code

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
华天财经: "《玩转二维码营销实战手册》", 30 April 2014, 中国铁道出版社 *
郑宏达等: "《人工智能视频分析 智能终端的崛起》", 31 August 2017, 浙江工商大学出版社 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111444737A (en) * 2020-03-25 2020-07-24 维沃移动通信有限公司 Graphic code identification method and electronic equipment
CN114282558A (en) * 2020-10-01 2022-04-05 上海商米科技集团股份有限公司 Code scanning method and device for intelligent code scanning equipment, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN105488112B (en) Information-pushing method and device
CN104079962B (en) A kind of method and device for pushing recommendation information
CN104270404B (en) A kind of login method and device based on terminal iidentification
CN104980580B (en) Short message inspection method and device
CN104469714B (en) Note transmission method and device
CN104580637B (en) Telephone number labeling method, terminal and Cloud Server
CN107527059A (en) Character recognition method, device and terminal
CN107370772A (en) Account login method, device and computer-readable recording medium
CN107230137A (en) Merchandise news acquisition methods and device
CN106170004A (en) Process the method and device of identifying code
CN105263126B (en) Short-message verification method, apparatus and system
CN106020587A (en) Method and device for message display
CN108021932A (en) Data detection method, device and electronic equipment
CN103870551B (en) The method and apparatus that a kind of cross-domain data obtains
CN106209604A (en) Add the method and device of good friend
CN109426755A (en) A kind of barcode scanning method, system and a kind of device for barcode scanning
CN105787726A (en) Order payment method and apparatus
CN104899059B (en) Operating system update method and device
CN109815744A (en) Detection method, device and the storage medium of webpage tamper
CN106028297B (en) Carry the SMS processing method and device of network address
CN105635414A (en) Method and device for screening incoming calls
CN106960026A (en) Searching method, search engine and electronic equipment
CN104994151B (en) information issuing method and device
CN110177284A (en) Information displaying method, device, electronic equipment and storage medium
CN116342940A (en) Image approval method, device, medium and equipment

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