CN101964044B - Method and device for acquiring bar code from browser of mobile phone - Google Patents

Method and device for acquiring bar code from browser of mobile phone Download PDF

Info

Publication number
CN101964044B
CN101964044B CN201010278554.XA CN201010278554A CN101964044B CN 101964044 B CN101964044 B CN 101964044B CN 201010278554 A CN201010278554 A CN 201010278554A CN 101964044 B CN101964044 B CN 101964044B
Authority
CN
China
Prior art keywords
bar code
browser
functional part
standards
obtains
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.)
Active
Application number
CN201010278554.XA
Other languages
Chinese (zh)
Other versions
CN101964044A (en
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.)
WOCHACHA INFORMATION TECHNOLOGY (SHANGHAI) Co Ltd
Original Assignee
WOCHACHA INFORMATION TECHNOLOGY (SHANGHAI) 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 WOCHACHA INFORMATION TECHNOLOGY (SHANGHAI) Co Ltd filed Critical WOCHACHA INFORMATION TECHNOLOGY (SHANGHAI) Co Ltd
Priority to CN201010278554.XA priority Critical patent/CN101964044B/en
Publication of CN101964044A publication Critical patent/CN101964044A/en
Application granted granted Critical
Publication of CN101964044B publication Critical patent/CN101964044B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides technology which is simple and convenient to operate and can easily maintain and expand a bar code acquired by a mobile phone and discloses a method and a device for acquiring the bar code from a browser of the mobile phone, wherein the mobile phone comprises a functional part capable of acquiring the bar code. The method comprises the following steps that: a page server sends a page code (S12) to the browser, wherein the page code comprises a command for indicating the browser to call the functional part to acquire the bar code; and the browser receives a page code (S14), judges that the command is triggered (S18), and calls the functional part to acquire a bar code (S20) according to the command. Preferably, the command is realized by a uniform resource identity scheme. According to the method and the device, the related application of the bar code and hypertext markup language (HTML) pages and the like are conveniently and easily developed; adjustment and expansion of application and service functions can be realized by upgrading the page code on the server, so that the maintenance and upgrading of the mobile phone are avoided; and a user directly acquires the bar code by using the browser, the learning threshold is low, the bar code is acquired quickly and conveniently, and the user experience is improved.

Description

In the browser of mobile phone, obtain the method and apparatus of bar code
Technical field
The present invention relates to browser, especially relate to the used browser of mobile phone.
Background technology
Bar code is international standard, and is with a long history, is widely used in all trades and professions such as the manufacturing, transportation logistics, commercial distributions, and data message is abundant.But because traditional bar code to set equipment more expensive, and carry difficultly, so the application of bar code mainly concentrates in the professional domain, at civil area, the application of popular, popularization seldom.
Development along with the camera chip technology, the cost of camera is more and more lower, mobile phone with camera is also more and more universal, this has created favourable condition for exploitation by the application that camera carries out bar code recognition, such as: all kinds of civilian or enterprise's application such as ecommerce, consumption shopping guide, stock control, market survey.Adopt camera and be installed in barcode recognizer in the mobile phone, that realize with software and/or hardware mode, can carry out scanning recognition to the bar code on the materials/goods fast, compare with the mode that needed manual input bar code character string in the past, efficient and convenience improve greatly; In addition extensively popularizing of mobile phone and mobile Internet all provides condition for the practicality of bar code in civil area.
In the prior art, there have been some to carry out the technical scheme of bar code recognition by functional parts such as mobile phone cam and barcode recognizer, wherein mainly comprised following two kinds:
A. be each bar code applications, custom-made mobile phone client software: namely for the demand of each specialized application, design and develop special cell-phone customer terminal, this cell-phone customer terminal calls camera and barcode recognizer catches and the identification bar code, and sends it to server.Adopt this technical scheme, the user interface of software and function setting can meet the singularity of application, but the adjustment of application interface, function and expansion need all to be undertaken by client terminal software updating.This mode relatively is fit to the comparatively complicated specific industry of demand to be used, and individual application huge for number of users, that satisfy the needs of consumers then exists the not problem of easy care, difficult expansion;
B. be each bar code applications, the custom-made mobile phone client software, and the method for invoking web page browser: in the mobile phone client software of customization, realize the bar code recognition function, after obtaining bar code, the built-in browser of calling mobile phone offers server with bar code, and the feedback page that provides of reception server, shows the information relevant with materials/goods, reach other function that realization is associated, as: shopping, comment etc.This method can partly solve the upgrading expansion of information and service, but the user need to be switched between client software and browser back and forth, and the many information of user when using browser is difficult for transmitting back client software usually, therefore the realization of functional sequence is smooth not, and user experience is poor.
Summary of the invention
As seen, prior art or need to relate to when safeguarding expansion is processed mobile phone, perhaps need to switch back and forth between client and browser.Obtain the bar code maintenance and expansion for mobile phone and be relatively easy to if can provide a kind of, and technology easy and simple to handle, can simplify greatly the operation of obtaining bar code with mobile phone so, be beneficial to application.
Basic conception of the present invention is, the page code that the extended mobile phone browser can resolve and process, therein adding is used to indicate browser and calls the instruction that the functional part that obtains bar code obtains bar code, and mobile phone browser directly obtains bar code according to this instruction calls functional part.
According to an aspect of the present invention, provide a kind of method that is used for obtaining bar code in the browser of mobile phone, this mobile phone comprises the functional part that can obtain bar code, and the method comprises the steps:
I. receive page code, contain in the described page code and be used to indicate browser and call the instruction that described functional part obtains bar code;
Ii. judge that described instruction is triggered;
Iii. according to described instruction, call described functional part and obtain described bar code;
Wherein, described instruction comprises a unified resource identification scheme, and this scheme comprises a Scenario Name, and described unified resource identification schemes is placed in the hyperlink;
The method also comprises the steps: before described step I i
-with this scheme title with call described functional part and obtain bar code and be associated;
-present described hyperlink;
Described step I i comprises:
-determine that the described hyperlink that is presented clicked by the user;
The Scenario Name of the unified resource identification schemes that comprises in this hyperlink of-extraction;
-determine that this scheme title obtains bar code and be associated with calling described functional part, judge that then described instruction is triggered.
According to another aspect of the present invention, provide a kind of browser that is used for auxiliary mobile phone in page server to obtain the method for bar code, this mobile phone comprises the functional part that can obtain bar code, and the method comprises the steps:
A. send page code to described browser, contain in the described page code and be used to indicate described browser and call the instruction that described functional part obtains bar code;
Wherein, described instruction comprises a unified resource identification scheme, and described step a sends in this scheme:
-one Scenario Name, this scheme title by described browser with call described functional part and obtain bar code and be associated;
Described step a places described unified resource identification schemes and offers described browser in one hyperlink.
According to these two aspects, the mobile phone terminal browser obtains bar code according to the instruction calls functional part in the page code.At first, so that the exploitation application relevant with bar code becomes convenient and easy as at present very ripe Internet application and development (browser+server).Bar code obtains function can realize browser by writing page code.Second, mobile phone only need have does not need functional part frequent upgrading, that be used for the identification bar code comparatively speaking, the adjustment of application and service function can realize by the upgrading to server software with expansion, avoided that workload is huge, implementation cost is expensive, miscellaneous mobile phone has been carried out the work of client maintenance and upgrading.Adopt this method, can greatly reduce the development and maintenance cost that the relevant mobile phone of bar code is used, shorten the construction cycle.The 3rd, the user uses browser directly to obtain bar code, common web browser is substantially the same with using, use new application and the service relevant with bar code, as other thousands upon thousands existing websites of access, the study threshold is low, efficient and convenient, use flow process complete consistent, improved user's experience.
Preferred embodiment described instruction comprises a unified resource identification scheme according to one, and this scheme comprises a Scenario Name, and described unified resource identification schemes is placed in the hyperlink; The method before described determining step, also comprise the steps: with this scheme title with call described functional part and obtain bar code and be associated; Present described hyperlink; Described determining step comprises: determine that the described hyperlink that is presented clicked by the user; Extract the Scenario Name of the unified resource identification schemes that comprises in this hyperlink; Determine that this scheme title obtains bar code and be associated with calling described functional part, judge that then described instruction is triggered.
According to this preferred embodiment, the user is by clickable hyperlinks, and browser just can automatically obtain bar code, easier should going.
According to another preferred embodiment, described unified resource identification schemes also comprises a request address and bar code parameters name; The method comprises the steps: that also the described bar code that will obtain mails to the described request address as the parameter value corresponding with the bar code parameters name after described invocation step.
According to this preferred embodiment, browser can be realized the bar code query function.
According to another preferred embodiment, described unified resource identification schemes also comprises bar code standards parameter name and bar code standards; Described invocation step is called described functional part and is obtained bar code according to described bar code standards; Described forwarding step also mails to the described request address with described bar code standards as the parameter value corresponding with the bar code standards parameter name.Perhaps, described unified resource identification schemes also comprises the bar code standards parameter name; Described invocation step is called the automatic bar code standards of identifying described bar code of bar code standards that described functional part is supported based on this functional part when obtaining described bar code; Described forwarding step also mails to the described request address with described bar code standards as the parameter value corresponding with the bar code standards parameter name.
According to this preferred embodiment, browser has further been supported to realize obtaining of bar code and standard thereof existing under the multiple bar code standards, has been had more powerful recognition function.
According to another preferred embodiment, described functional part comprises user's input interface and/or imageing sensor and barcode recognizer.
According to this preferred embodiment, according to the hardware configuration situation of equipment (mobile phone, PDA etc.), bar code can be to catch and identify by camera, also can be inputted by the user by user's input interface, has improved the dirigibility of using.
Preferably, described functional part comprises user's input interface, and described step I ii calls described user's input interface and receives the bar code of described user's input and carry out following at least each operation:
-receive the data bit of the bar code of described user's input, and generate the check bit of bar code according to described bar code standards according to data bit;
-limit used character set or the key mapping of input bar code according to described bar code standards;
-limit the figure place of input bar code according to described bar code standards.
Preferably, described unified resource identification schemes also comprises the bar code standards parameter name;
Described step I ii calls the automatic bar code standards of identifying described bar code of bar code standards that described functional part is supported based on this functional part when obtaining described bar code;
Described step also iv mails to the described request address with described bar code standards as the parameter value corresponding with the bar code standards parameter name.
Preferably, described functional part comprises imageing sensor and barcode recognizer, described step I ii calls the image of the described bar code of described image capture sensor and calls described barcode recognizer and obtains described bar code according to described image identification, and described barcode recognizer is realized by following any mode:
-hardware;
-software;
The combination of-hardware and software.
Preferably, described step a also sends in this scheme:
-one request address.
The present invention also provides a kind of device that is used for obtaining bar code in the browser of mobile phone, and this mobile phone comprises the functional part that can obtain bar code, and this device comprises:
-receiving element be used for to receive page code, contains in the described page code to be used to indicate browser and to call the instruction that described functional part obtains bar code;
-judging unit is used for judging that described instruction is triggered;
-call unit is used for calling described functional part and obtains described bar code;
Wherein, described instruction comprises a unified resource identification scheme, and this scheme comprises a Scenario Name, and this scheme is placed in the hyperlink;
This device also comprises:
-storage unit is used for this scheme title of storage and calls the incidence relation that described functional part obtains bar code;
-display unit is used for presenting described hyperlink;
Described judging unit comprises:
-first module is used for determining that the hyperlink that is presented clicked by the user;
-second unit be used for to extract the Scenario Name of the unified resource identification schemes that this hyperlink comprises;
-Di Unit three are used for the incidence relation according to cell stores, determine that this scheme title obtains bar code and be associated with calling described functional part, judge that then described instruction is triggered.
Correspondingly, described unified resource identification schemes also comprises:
-one request address;
-bar code parameters name;
-bar code standards parameter name and bar code standards;
Described call unit calls described functional part and obtains bar code according to described bar code standards;
This device also comprises:
-request unit, the described bar code that is used for obtaining be as the parameter value corresponding with the bar code parameters name, and with bar code standards as parameter value corresponding to bar code standards parameter name, mail to the described request address.
Correspondingly, the present invention also provides a kind of browser that is used for auxiliary mobile phone in page server to obtain the device of bar code, and this mobile phone comprises the functional part that can obtain bar code, and this device comprises:
-transmitting element is used for sending page code to described browser, contains in the described page code to be used to indicate described browser and to call the instruction that described functional part obtains bar code;
Wherein, described instruction comprises a unified resource identification scheme, and described transmitting element sends in this scheme:
-Scenario Name, this scheme title by described browser with call described functional part and obtain bar code and be associated;
-request address is used to indicate described browser and sends bar code and the bar code standards of obtaining to this address;
-bar code parameters name is used to indicate described browser the bar code that obtains is sent to this request address as the parameter value of this bar code parameters name correspondence; With
-bar code standards parameter name is used to indicate described browser the standard of the bar code that obtains is sent to this request address as parameter value corresponding to this bar code standards parameter name;
Described transmitting element places described unified resource identification schemes and sends to described browser in one hyperlink.
Other advantage of the present invention will be described below, perhaps the explanation by hereinafter and being understood by those skilled in the art.
Description of drawings
Fig. 1 is according to an embodiment of the invention, and mobile phone browser obtains the systems approach synoptic diagram of bar code;
Fig. 2 is according to an embodiment of the invention, and a kind of browser that is used for auxiliary mobile phone in page server obtains the block diagram of the device 20 of bar code;
Fig. 3 is according to an embodiment of the invention, a kind ofly is used for obtaining the device 30 of bar code and the block diagram of functional part 32 in the browser of mobile phone.
In the accompanying drawing, same or analogous Reference numeral represents same or analogous steps characteristic or parts (module) feature.
Embodiment
The below is with the page of HTML (HTML (Hypertext Markup Language)), and the html page browser in the mobile phone is example, and an embodiment of the invention are described in detail.This html page browser has parsing and shows the function of html page, and it can realize that in the mode that is installed in the software in the mobile phone certainly, it also can be realized in the mode of hardware.Be appreciated that the present invention is not limited to html page, other are the XML page and resolve accordingly and show that the browser of the XML page also all is within protection scope of the present invention for example.
The realization of the technical program can be divided into three parts:
1) to the expansion of HTML agreement;
2) to the expansion of page server and mobile phone browser;
3) to the realization of bar code inputting interface and bar code input method.
At first, expansion to the HTML agreement is described:
One preferred embodiment in, the applicant is to expanding for the unified resource identification schemes (URI Scheme) in the fields such as HTML, increase the Scenario Name (Scheme Name) that has defined a kind of unified resource identification schemes, the unified resource identification schemes of this scheme title is used for the instruction as indication browser calling function component retrieval bar code.For example, a kind of unified resource identification schemes is:
barcode://www.barcodeinquiry.com/search?bcode=&bstan=
Wherein, barcode is exactly the Scenario Name of definition.This scheme title is not unique, and when each different application of specific implementation, Scenario Name " barcode " can change, and only need to adopt identical agreement to get final product at browser and server end.
The www.barcodeinquiry.com/search of back is that a bar code that is used for getting access to sends request address in the past.Certainly, this request address is just in order to illustrate, and is not unique.
Bcode and bstan are respectively the parameter names of bar code parameters and bar code standards parameter, the coding standard that the bar code that the bstan parameter also can be used for will being scanned to the client browser transmission simultaneously should adopt.Certainly, request address is not unique.When each different application of specific implementation, parameter name " bcode " and " bstan " can change, and only need to adopt identical agreement to get final product at browser and server end.These will be described in more detail below.
Fig. 1 is according to an embodiment of the invention, and mobile phone browser obtains the systems approach synoptic diagram of bar code.Fig. 2 is according to an embodiment of the invention, a kind of browser that is used for auxiliary mobile phone in page server obtains the device 20 of bar code, this device comprises transmitting element 200, be used for sending page code to browser, contain the instruction that is used to indicate browser calling function component retrieval bar code in the page code.Fig. 3 is according to an embodiment of the invention, a kind of device 30 that in the browser of mobile phone, is used for obtaining bar code, this mobile phone comprises the functional part 32 that can obtain bar code, this device 30 comprises: receiving element 302, be used to indicate the instruction that browser calling function parts 32 obtain bar code for receiving page code, containing in the page code; Judging unit 306 is used for decision instruction and is triggered; Call unit 308 is used for calling function parts 32 and obtains bar code.
Below in conjunction with Fig. 1 to 3, to describing in detail according to the systems approach of one embodiment of the present invention and the operation workflow of device.
Preferably, device 30 further comprises a storage unit 300, and the incidence relation that this scheme title barcode and calling function parts 32 obtain bar code is stored in this unit 300 in step S10.Under a concrete embodiment, plug-in unit that this incidence relation can be downloaded in advance by the user, that be used for general mobile phone browser is arranged on device 30; Perhaps, this mobile phone browser has been provided with this incidence relation in inside when writing.
In step S12, the transmitting element 200 of device 20 sends the html page code to mobile phone browser, contains in this page code to be used to indicate the instruction that browser calling function parts 32 obtain bar code.
One preferred embodiment in, instruction comprises unified resource identification schemes barcode as above: //www.barcodeinquiry.com/search? bcode=﹠amp; Bstan=, transmitting element sends in this scheme:
-Scenario Name barcode, the viewed device of this scheme title obtains bar code with calling function parts 32 and is associated;
-request address www.barcodeinquiry.com/search is used to indicate browser and sends the bar code that obtains to this address;
-bar code parameters name bcode is used to indicate browser the bar code that obtains is sent to this request address as the parameter value of this bar code parameters name correspondence; With
-bar code standards parameter name bstan is used to indicate browser the standard of the bar code that obtains is sent to this request address as parameter value corresponding to this bar code standards parameter name;
Preferably, transmitting element 20 places the unified resource identification schemes in one hyperlink of the page and sends to browser, and is as follows:
<a href=" barcode: //www.barcodeinquiry.com/search? bcode=﹠amp; The inquiry of bstan="〉bar code recognition</a 〉
The benefit of using hyperlink to hold this instruction is: at mobile phone terminal, browser detects the user click this hyperlink in this page after, just can determine that the user has triggered this instruction, thereby process accordingly, more convenient.Being appreciated that the present invention is not limited to this instruction is placed on offers mobile phone browser in the hyperlink, other presentation modes also are feasible.
In step S14, the receiving element 302 of device 30 receives this html page code, contains the aforementioned hyperlink of holding this instruction in this code.
In step S16, browser resolves also presents this html page code, and wherein, device 30 preferably also comprises a display unit 304, and this unit 304 presents this hyperlink.
In step S18, judging unit 306 decision instructions of device 30 are triggered.Be placed in this instruction in the situation of above hyperlink, browser can judge that this hyperlink clicked by the user.Judging unit 306 further comprises first module, second unit and Unit the 3rd, wherein, first module determines that this hyperlink clicked by the user, second unit extracts the Scenario Name barcode of the unified resource identification schemes that comprises in this hyperlink, Unit the 3rd is according to the incidence relation of storage unit 300 storages, determine that this scheme title barcode obtains bar code with calling function parts 32 and is associated, judge that then this instruction is triggered by the user.
In step S20, the functional part 32 that call unit 308 calling mobile phones of device 30 are installed obtains bar code.
The below illustrates two kinds of functional parts 32 and obtains the process of bar code.
Situation one
Functional part 32 comprises imageing sensor and barcode recognizer, and barcode recognizer is realized by following any mode:
-hardware;
-software;
The combination of-hardware and software.
Call unit 308 calls the image of image capture sensor bar code, and identification obtains bar code according to the image of bar code to call barcode recognizer.The barcode recognizer of software form has had more prior art at present, does not do at this and gives unnecessary details; Functional part 32 example, in hardware, imageing sensor and barcode recognizer one can be disclosed in 200910247166.2 and 200920273685.1 application for a patent for invention and the utility application such as the application number of the applicant's application.Calling and can being undertaken by the interface between them alternately of information in the present embodiment between browser and the functional part 32, this interface is one of ordinary skill in the art, and needs are creative just can realize that the present invention does not do at this and gives unnecessary details according to its professional knowledge.
When having multiple bar code standards, preferred, the bar code standards that functional part 32 is supported based on this functional part is identified the bar code standards of bar code automatically.For example, functional part 32 is supported 128 yards, 39 yards, UPC code, EAN_13 code and two-dimension code etc., and then it is respectively according to the standard code of those yards, such as the empty quantity of bar etc., attempt the image of the bar code that identification catches, and will identify successful bar code standards and bar code as a result of.For instance, functional part 32 identifies bar code and belongs to the EAN_13 code, and bar code is 6925598710459.
As one preferred embodiment, server can be stipulated bar code standards in the unified resource identification schemes, as follows:
barcode://www.barcodeinquiry.com/search?bcode=&bstan=EAN_13
Like this, call unit 308 extracts EAN_13, and calling function parts 32 identify the image of bar code according to this bar code standards, checks its whether EAN_13 coding standard.If so, then return the successful bar code of identification; If not, can provide relevant information to the user.
In the situation that the bar code on article or the commodity can not be identified because of wearing and tearing, fold, functional part 32 can switch to following situation two described user's input interfaces.Perhaps, when mobile phone did not contain camera or bar code recognition software or hardware, functional part was following situation two described user's input interfaces.
Situation two
Functional part 32 comprises user's input interface, and invocation step S20 invoke user input interface receives the bar code of user's input.
When having multiple bar code standards, preferred, server can be stipulated bar code standards in the unified resource identification schemes, as follows:
barcode://www.barcodeinquiry.com/search?bcode=&bstan=EAN_13
For more automatically input function is provided to the user, user's input interface can carry out following each operation:
-receive the data bit of the bar code of user's input, and generate the check bit of bar code according to bar code standards according to data bit;
-limit used character set or the key mapping of input bar code according to bar code standards EAN_13, such as showing the unnecessary methods such as button on the soft keyboard that only comprises this character set accordingly, the shielding hardware keyboards;
-limit the figure place of input bar code according to bar code standards EAN_13.
For instance, to identify bar code be 6925598710459 to functional part 32.
Getting access to bar code, and after having determined bar code standards, device 30 request unit 310 with the bar code 6925598710459 that obtains as the parameter value corresponding with bar code parameters name bcode, and with bar code standards EAN_13 as parameter value corresponding to bar code standards parameter name bstan, in step S22, mail to request address www.barcodeinquiry.com/search.Concrete, browser with
www.barcodeinquiry.com/search?bcode=6925598710459&bstan=EAN_13
Ask.This request can be sent to the server place of corresponding request address, server extracts bcode corresponding parameter value 6925598710459 as bar code, extract parameter value EAN_13 corresponding to bstan and process accordingly as standard, for example inquiry etc.
Afterwards, this server can send it back the information corresponding with this bar code 6925598710459, for example title of commodity, price etc. to this browser.Be appreciated that the present invention not only can be used for using the merchandise query of bar code, can also be used for using other various uses such as stock-taking of bar code.
In the above embodiment, described and had multiple possible bar code standards, therefore needed browser and functional part to determine real bar code.In the embodiment of a simplification, browser and functional part can be given tacit consent to a kind of standard, and identify according to this standard, and this standard does not need to report the server to request address yet, so bar code standards parameter b stan and parameter value EAN_13 in instruction and the request can be omitted.
Although in accompanying drawing and aforesaid description, illustrate in detail and described the present invention, should think that this is illustrated and describes is illustrative and exemplary, rather than restrictive; The invention is not restricted to above-mentioned embodiment.
The those skilled in the art of those the art can be by research instructions, disclosed content and accompanying drawing and appending claims, and understanding and enforcement are to other changes of the embodiment of disclosure.In the claims, word " comprises " element and the step of not getting rid of other, and wording " one " is not got rid of plural number.In the practical application of invention, the function of a plurality of technical characterictics of quoting during a part possibility enforcement of rights requires.Any Reference numeral in the claim should not be construed as the restriction to scope.

Claims (11)

1. method that in the browser of mobile phone, is used for obtaining bar code, this mobile phone comprises the functional part that can obtain bar code, and the method comprises the steps:
I. receive page code, contain in the described page code and be used to indicate browser and call the instruction that described functional part obtains bar code;
Ii. judge that described instruction is triggered;
Iii. according to described instruction, call described functional part and obtain described bar code;
Wherein, described instruction comprises a unified resource identification scheme, and this scheme comprises a Scenario Name, and described unified resource identification schemes is placed in the hyperlink;
The method also comprises the steps: before described step I i
-with this scheme title with call described functional part and obtain bar code and be associated;
-present described hyperlink;
Described step I i comprises:
-determine that the described hyperlink that is presented clicked by the user;
The Scenario Name of the unified resource identification schemes that comprises in this hyperlink of-extraction;
-determine that this scheme title obtains bar code and be associated with calling described functional part, judge that then described instruction is triggered.
2. method according to claim 1 is characterized in that, described unified resource identification schemes also comprises a request address and bar code parameters name;
The method also comprises the steps: behind described step I ii
Iv. the described bar code that obtains is mail to the described request address as the parameter value corresponding with the bar code parameters name.
3. method according to claim 2 is characterized in that, described unified resource identification schemes also comprises bar code standards parameter name and bar code standards;
Described step I ii calls described functional part and obtains bar code according to described bar code standards;
Described step I v also mails to the described request address with described bar code standards as the parameter value corresponding with the bar code standards parameter name.
4. method according to claim 3 is characterized in that, described functional part comprises user's input interface, and described step I ii calls described user's input interface and receives the bar code of described user's input and carry out following at least each operation:
-receive the data bit of the bar code of described user's input, and generate the check bit of bar code according to described bar code standards according to data bit;
-limit used character set or the key mapping of input bar code according to described bar code standards;
-limit the figure place of input bar code according to described bar code standards.
5. method according to claim 2 is characterized in that, described unified resource identification schemes also comprises the bar code standards parameter name;
Described step I ii calls the automatic bar code standards of identifying described bar code of bar code standards that described functional part is supported based on this functional part when obtaining described bar code;
Described step I v also mails to the described request address with described bar code standards as the parameter value corresponding with the bar code standards parameter name.
6. according to claim 3 or 5 described methods, it is characterized in that, described functional part comprises imageing sensor and barcode recognizer, described step I ii calls the image of the described bar code of described image capture sensor and calls described barcode recognizer and obtains described bar code according to described image identification, and described barcode recognizer is realized by following any mode:
-hardware;
-software;
The combination of-hardware and software.
7. a browser that is used for auxiliary mobile phone in page server obtains the method for bar code, and this mobile phone comprises the functional part that can obtain bar code, and the method comprises the steps:
A. send page code to described browser, contain in the described page code and be used to indicate described browser and call the instruction that described functional part obtains bar code;
Wherein, described instruction comprises a unified resource identification scheme, and described step a sends in this scheme:
-one Scenario Name, this scheme title by described browser with call described functional part and obtain bar code and be associated;
Described step a places described unified resource identification schemes and offers described browser in one hyperlink.
8. method according to claim 7 is characterized in that, described step a also sends in this scheme:
-one request address is used to indicate described browser and sends bar code and the bar code standards of obtaining to this address;
-bar code parameters name is used to indicate described browser the bar code that the obtains parameter value as this bar code parameters name correspondence is sent;
And, in this scheme, also send following each:
-bar code standards parameter name is used to indicate described browser the standard of the bar code that obtains is sent to this request address as parameter value corresponding to this bar code standards parameter name;
-bar code standards parameter name and bar code standards, described bar code standards is used to indicate described browser and obtains bar code according to this standard.
9. device that in the browser of mobile phone, is used for obtaining bar code, this mobile phone comprises the functional part that can obtain bar code, and this device comprises:
-receiving element be used for to receive page code, contains in the described page code to be used to indicate browser and to call the instruction that described functional part obtains bar code;
-judging unit is used for judging that described instruction is triggered;
-call unit is used for calling described functional part and obtains described bar code;
Wherein, described instruction comprises a unified resource identification scheme, and this scheme comprises a Scenario Name, and this scheme is placed in the hyperlink;
This device also comprises:
-storage unit is used for this scheme title of storage and calls the incidence relation that described functional part obtains bar code;
-display unit is used for presenting described hyperlink;
Described judging unit comprises:
-first module is used for determining that the hyperlink that is presented clicked by the user;
-second unit be used for to extract the Scenario Name of the unified resource identification schemes that this hyperlink comprises;
-Di Unit three are used for the incidence relation according to cell stores, determine that this scheme title obtains bar code and be associated with calling described functional part, judge that then described instruction is triggered.
10. device according to claim 9 is characterized in that, described unified resource identification schemes also comprises:
-one request address;
-bar code parameters name;
-bar code standards parameter name and bar code standards;
Described call unit calls described functional part and obtains bar code according to described bar code standards;
This device also comprises:
-request unit, the described bar code that is used for obtaining be as the parameter value corresponding with the bar code parameters name, and with bar code standards as parameter value corresponding to bar code standards parameter name, mail to the described request address.
11. a device that obtains bar code in page server for the browser of auxiliary mobile phone, this mobile phone comprises the functional part that can obtain bar code, and this device comprises:
-transmitting element is used for sending page code to described browser, contains in the described page code to be used to indicate described browser and to call the instruction that described functional part obtains bar code;
Wherein, described instruction comprises a unified resource identification scheme, and described transmitting element sends in this scheme:
-Scenario Name, this scheme title by described browser with call described functional part and obtain bar code and be associated;
-request address is used to indicate described browser and sends bar code and the bar code standards of obtaining to this address;
-bar code parameters name is used to indicate described browser the bar code that obtains is sent to this request address as the parameter value of this bar code parameters name correspondence; With
-bar code standards parameter name is used to indicate described browser the standard of the bar code that obtains is sent to this request address as parameter value corresponding to this bar code standards parameter name;
Described transmitting element places described unified resource identification schemes and sends to described browser in one hyperlink.
CN201010278554.XA 2010-09-10 2010-09-10 Method and device for acquiring bar code from browser of mobile phone Active CN101964044B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010278554.XA CN101964044B (en) 2010-09-10 2010-09-10 Method and device for acquiring bar code from browser of mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010278554.XA CN101964044B (en) 2010-09-10 2010-09-10 Method and device for acquiring bar code from browser of mobile phone

Publications (2)

Publication Number Publication Date
CN101964044A CN101964044A (en) 2011-02-02
CN101964044B true CN101964044B (en) 2013-03-13

Family

ID=43516910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010278554.XA Active CN101964044B (en) 2010-09-10 2010-09-10 Method and device for acquiring bar code from browser of mobile phone

Country Status (1)

Country Link
CN (1) CN101964044B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750505B (en) * 2011-04-19 2015-06-03 中兴通讯股份有限公司 Barcode scanning method, barcode scanning system and barcode scanning device of RF (Radio Frequency) identification reader
CN102609544A (en) * 2012-03-12 2012-07-25 腾讯科技(深圳)有限公司 Method and device for obtaining information as well as mobile terminal
CN102929921A (en) * 2012-09-20 2013-02-13 腾讯科技(深圳)有限公司 Information operational method and client
CN102902761B (en) 2012-09-25 2015-07-15 腾讯科技(深圳)有限公司 Cross-terminal cloud browse method and system
CN103778401A (en) * 2012-10-26 2014-05-07 苏州精易会信息技术有限公司 Method for displaying bar code on Web page by using browser
CN103092479B (en) * 2013-01-16 2015-09-30 广东利为网络科技有限公司 A kind of methods, devices and systems by right button transitional information
CN103218595B (en) * 2013-03-29 2016-05-25 深圳市金立通信设备有限公司 The recognition methods of a kind of terminal and Quick Response Code
CN104281827B (en) 2013-07-02 2018-04-24 腾讯科技(深圳)有限公司 Identify the method and device of Quick Response Code
CN104573597B (en) * 2013-10-10 2018-12-11 腾讯科技(深圳)有限公司 A kind of two-dimensional code identification method and device
CN104200185A (en) * 2014-08-04 2014-12-10 惠州Tcl移动通信有限公司 Method for identifying two-dimensional code and terminal
CN105989344B (en) * 2015-02-26 2019-09-17 阿里巴巴集团控股有限公司 Bar code recognition and device
WO2017049507A1 (en) * 2015-09-23 2017-03-30 深圳还是威健康科技有限公司 Barcode recognition method and smart wristband
CN108345772A (en) * 2018-01-26 2018-07-31 郑州云海信息技术有限公司 A kind of method and system of automatic acquisition Code code on-line testings

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1391755A (en) * 1999-09-21 2003-01-15 艾利森电话股份有限公司 Launching application from embedded indicator in short message service message
CN101360120A (en) * 2007-09-04 2009-02-04 陈龙军 Method for monitoring two-dimension bar-code direct mode network access service

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030101233A1 (en) * 2001-11-28 2003-05-29 Kenneth Liou Browser with barcode input

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1391755A (en) * 1999-09-21 2003-01-15 艾利森电话股份有限公司 Launching application from embedded indicator in short message service message
CN101360120A (en) * 2007-09-04 2009-02-04 陈龙军 Method for monitoring two-dimension bar-code direct mode network access service

Also Published As

Publication number Publication date
CN101964044A (en) 2011-02-02

Similar Documents

Publication Publication Date Title
CN101964044B (en) Method and device for acquiring bar code from browser of mobile phone
CN101061500B (en) The method of dynamic product information, system, equipment and computer program are provided in short-haul connections
CN101218582B (en) Method for searching and browsing URL and URL history
US20090240638A1 (en) Syntactic and/or semantic analysis of uniform resource identifiers
US20060224397A1 (en) Methods, systems, and computer program products for saving form submissions
CN104077286A (en) Commodity information search method and system
CN101124609A (en) Search systems and methods using in-line contextual queries
CN110827112B (en) Deep learning commodity recommendation method and device, computer equipment and storage medium
CN101853467A (en) Executing method displaying commodity price relative information with computer
CN103824104A (en) Two-dimensional code fabrication system and application method thereof
CN103034680A (en) Data interaction method and device for terminal device
CN103020128A (en) Method and device for data interaction with terminal device
CN102193798B (en) Method for automatically acquiring Open application programming interface (API) based on Internet
CN105868225A (en) Data query method, client, server and system
KR101511267B1 (en) Method and system for searchable Web services
CN107291789B (en) Invoice information indexing method and device
CN106464723A (en) Native application content verification
JP2009277026A (en) Form input support system, form input support method, and form input support program
CN101014021B (en) Method, system and client for searching user in instant messaging client
CN110472121B (en) Business card information searching method and device, electronic equipment and computer readable storage medium
CN104239454A (en) Searching method and device
CN104765747A (en) Webpage processing method and device
CN104504070B (en) A kind of method and apparatus of search
KR101229130B1 (en) Real time adaptive information providing method thereof using web browser analysis
CN112989142A (en) Configurable tag processing system, method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant