CN103164214A - Calling method and system of browser on camera in mobile terminal - Google Patents
Calling method and system of browser on camera in mobile terminal Download PDFInfo
- Publication number
- CN103164214A CN103164214A CN2011104281091A CN201110428109A CN103164214A CN 103164214 A CN103164214 A CN 103164214A CN 2011104281091 A CN2011104281091 A CN 2011104281091A CN 201110428109 A CN201110428109 A CN 201110428109A CN 103164214 A CN103164214 A CN 103164214A
- Authority
- CN
- China
- Prior art keywords
- camera
- browser
- instruction
- response
- image acquisition
- 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
Links
Images
Abstract
The invention provides a calling method of a browser on a camera in a mobile terminal. The calling method comprises the steps of responding to instructions for image obtaining in the browser and starting the camera; and using the camera to obtain image information. Correspondingly, the invention further provides a system using the method. The calling method and the calling system use the browser installed in the mobile terminal to directly call the camera, the browser can replace a traditional client end relative to the camera, and the existing camera way of the mobile terminal is increased while expanding functions of the browser.
Description
Technical field
The present invention relates to the communications field, relate in particular in a kind of mobile terminal call method and the system of browser to camera.
Background technology
At present, when the user of mobile terminal need to call camera and takes pictures, makes a video recording, reads the operation such as two-dimension code, can only be undertaken by the client software that calls camera that is contained on mobile terminal.Because the mobile terminal kind is numerous, operating system is also had nothing in common with each other, even therefore realize the client of same function, also needs the developer repeatedly to develop to mate different mobile terminals.Increased technician's work fussy degree, and working strength.In addition, when the client who uses different mobile terminal need to carry out operating such as video calling, tend to do not mate and can't realize because call the client software of camera.
Increasing intelligent mobile terminal occurs, and has greatly expanded purposes and the function of mobile terminal.By load different system and client software on mobile terminal, can realize increasing function.For example: electronic dictionary, antivirus software, game client etc.But, realizing many multi-functional whiles, a plurality of client softwares enable the load that has also strengthened the mobile terminal software and hardware.Realize more function if can open less client software, will greatly improve processing speed and the work efficiency of mobile terminal.
In diversified client software, browser almost is absolutely necessary.Initial browser is mainly used in browsing page, and along with the development of science and technology, browser also can be used for playing trivial games, carries out the operations such as message customization.If can call the operation that camera carries out Image Acquisition in browser, just saved the step of the client software of installed and invoking camera, simplified user's operation, simultaneously, also will avoid to the utmost when the multi-mobile-terminal video calling because client software does not mate the conversation failure that causes.
Summary of the invention
Method provided by the invention can directly start camera by the browser in mobile terminal, and obtain image information with this camera.
According to an aspect of the present invention, provide the call method of browser to camera in a kind of mobile terminal, it is characterized in that, comprise the following steps:
A) in response to carry out the instruction of Image Acquisition in browser, start camera;
B) use described camera to obtain image information.
According to another aspect of the present invention, provide a kind of for the mobile terminal browser to the system that camera calls, it is characterized in that, comprising:
Respond module is used for starting camera in response to carry out the instruction of Image Acquisition at browser;
Image collection module is used for using described camera to obtain image information.
Camera calls by direct employing browser client in call method and the system of browser to camera in mobile terminal provided by the invention.When the user just needs to obtain image information under the state in open any browser, can directly call camera by browser, and not need to close or minimize browser, restart afterwards the camera client and call.Reduce user's operation steps, expanded the function of conventional browser.In addition, can effectively reduce program development personnel's working load, the operation that only needs the exploitation browser client can realize calling camera.
Description of drawings
By reading the detailed description that non-limiting example is done of doing with reference to the following drawings, it is more obvious that other features, objects and advantages of the present invention will become:
Fig. 1 illustrates the schematic flow sheet of browser to an embodiment of the call method of camera in a kind of mobile terminal provided by the invention;
Fig. 2 illustrates the schematic flow sheet of an embodiment of the decomposition step that may comprise in step S101 in Fig. 1;
Fig. 3 illustrates the schematic flow sheet of another embodiment of the decomposition step that may comprise in step S101 in Fig. 1;
Fig. 4 illustrates the structural representation of an embodiment of a kind of system of camera being called for the mobile terminal browser provided by the invention;
Fig. 5 illustrates the structural representation of an embodiment of Fig. 4 responding device;
Fig. 6 illustrates the structural representation of another embodiment of Fig. 4 responding device;
Fig. 7 illustrates the structural representation of another embodiment of a kind of system of camera being called for the mobile terminal browser provided by the invention.
In accompanying drawing, same or analogous Reference numeral represents same or analogous parts.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiments of the invention are described in detail.
The below describes embodiments of the invention in detail, and the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or the element with identical or similar functions from start to finish.Be exemplary below by the embodiment that is described with reference to the drawings, only be used for explaining the present invention, and can not be interpreted as limitation of the present invention.
Disclosing hereinafter provides many different embodiment or example to be used for realizing different structure of the present invention.Of the present invention open in order to simplify, hereinafter parts and the setting of specific examples are described.Certainly, they are only example, and purpose does not lie in restriction the present invention.In addition, the present invention can be in different examples repeat reference numerals and/or letter.This repetition is in order to simplify and purpose clearly, itself not indicate the relation between the various embodiment that discuss of institute and/or setting.Should be noted that illustrated parts are not necessarily drawn in proportion in the accompanying drawings.The present invention has omitted description to known assemblies and treatment technology and technique to avoid unnecessarily limiting the present invention.
With reference to figure 1, Fig. 1 is according to the schematic flow sheet of browser to an embodiment of the call method of camera in a kind of mobile terminal of the present invention, comprises step S101~S102, and the below describes method shown in Figure 1.
At first execution in step S101, in response to carry out the instruction of Image Acquisition in browser, start camera.Described browser is a kind of client software that is loaded on mobile terminal.Preferably, described browser is for supporting the browser of html5.Described mobile terminal includes but not limited to: mobile phone, personal digital assistant (PDA), palm PC or panel computer etc.Along with appearance and the fast development of smart mobile phone, due to its, standardized tangible display screen large with powerful operating system and area, for the cellphone subscriber has brought more convenient, abundanter application.The most outstanding characteristics are exactly, and the user can install more application program and third party software, i.e. various clients, such as: browser, QQ client, game client etc.
Along with the development of science and technology, the function of browser no longer has been confined to traditional browsing page, but can satisfy increasing user's request.Increasing user uses browser clearly to listen to the music, see video, play games etc.The browser that the present embodiment loads take smart mobile phone is as example.Undertaken by the smart mobile phone browser as the user in the process of web page browsing or other operations, in the time of need to carrying out Image Acquisition, so just as system sends the instruction of obtaining image, when system receives and respond this instruction, start camera.
For example: when the user is just passing through the browser access one microblogging page, when wanting to edit a microblogging with picture, can be directly select to take pictures in microblogging editor's picture editor or other relevant options, during to photographing instruction, can automatically start the camera of mobile terminal when system responses.Be appreciated that picture or the video captures such as the Image Acquisition instruction is not limited to take pictures, video recording, also comprise the operational order that needs camera to complete of understanding two-dimension code etc.
Optionally, in order accurately to carry out user instruction, still carry out microblogging with the user and be compiled as example, when the user selects the picture editor, might be also to call the existing picture of the machine, and not need to re-start the operation of taking pictures.Therefore, step S101 can also be further divided into two steps and realize, as shown in Figure 2.Step S101-1, in response to carrying out the instruction of Image Acquisition in browser, the display reminding frame, in prompting frame, whether information inquiry user needs to start camera.S101-2 selects whether to start camera according to described information, when selecting to start, starts described camera.
Optionally, for having the situation of a plurality of cameras in present mobile terminal, step S101 can also be further divided into two steps and realize, as shown in Figure 3.Step S101-a in response to carry out the instruction of Image Acquisition in browser, detects camera information.Step S101-b when at least one described camera being detected, according to presetting or current selection, starts selected camera.When a plurality of camera was arranged, the user can preset it, and for example, the highest camera of given resolution when automatically starting camera, just starts main camera as main camera; Except presetting, the user can also select immediately, and when system detected the information of a plurality of cameras, the user can select as required.The information of a plurality of cameras can comprise: the position of camera (preposition or rearmounted), pixel, focal length etc.
Step S101-1, S101-2 can be combined with as required with S101-a, S101-b, for example: can first respond whether start camera, when the user selects to start, then detect camera information; Can certainly first detect, rear prompting user selects.
Optionally, carry out the instruction of Image Acquisition in response to the user in browser, can carry out the Javascript shell script of appointment on browser.Present browser is almost all supported html, but due to the limitation of html itself, so usually understand in webpage embedded part Javascript shell script to realize more function.As a new standard, html5 provides some new element and attributes, for example, provides new function for browsing key element, as<audio〉and<video〉mark.Even so, the language that serves as a mark is when having variable to judge or during the actuating logic statement, will being restricted.Therefore need Java or other programming languages editor's shell script to realize partial function, strengthen user's experience so can carry out the Javascript shell script of appointment on browser.
Too complicated when the Javascript shell script, when perhaps needing a plurality of programs to call, it can be packaged into several storehouses, different functions can be realized in each storehouse; Client provides one or more Javascript interfaces, by connecting an interface, namely can call the Javascript shell script in the storehouse corresponding with this interface, realizes corresponding function.
After starting camera, continue execution in step S102, use described camera to obtain image information.Use the operations such as described camera is taken pictures, video recording, two-dimension code deciphering.Due to the camera that directly uses browser to start, the picture after therefore obtaining can directly apply in the various operations of the page of browser display, for example: issuing microblog, upload pictures, perhaps carry out video calling etc. with other users.
Fig. 4 is the structural representation according to an embodiment of a kind of system 10 of camera being called for the mobile terminal browser of the present invention.System 10 comprises: respond module 11 and image collection module 12.
Respond module 11 is used for starting camera in response to carry out the instruction of Image Acquisition at browser.Described browser is a kind of client software that is loaded on mobile terminal.Preferably, described browser is for supporting the browser of html5.Described mobile terminal includes but not limited to: mobile phone, personal digital assistant (PDA), palm PC or panel computer etc.Along with appearance and the fast development of smart mobile phone, the user can install more application program and third party software, i.e. various clients, such as: browser, QQ client, game client etc.
At present, the function of browser no longer has been confined to traditional browsing page, but can satisfy increasing user's request.Increasing user uses browser clearly to listen to the music, see video, play games etc.The browser that the present embodiment loads take smart mobile phone is as example.Undertaken in the process of web page browsing or other operations by the smart mobile phone browser as the user, need to carry out Image Acquisition, so just send the instruction of obtaining image to system 10, when system 10 got this instruction, respond module 11 can be made corresponding response to start camera.
For example: when the user is just passing through the browser access one microblogging page, when wanting to edit a microblogging with picture, can be directly select to take pictures in microblogging editor's picture editor or other relevant options, when photographing instruction is arrived in respond module 11 responses, can automatically start the camera of mobile terminal.Be appreciated that picture or the video captures such as the Image Acquisition instruction is not limited to take pictures, video recording, also comprise and understand the operational order that two-dimension code etc. needs camera to complete.
Optionally, in order accurately to carry out user instruction, still carry out microblogging with the user and be compiled as example, when the user selects the picture editor, might be also to call the existing picture of the machine, and not need to re-start the operation of taking pictures.Therefore, respond module 11 can further include display unit 111 and the first start unit 112, as shown in Figure 5.Display unit 111 is used in response to carrying out the instruction of Image Acquisition at browser, the display reminding frame, and in prompting frame, whether information inquiry user needs to start camera.The first start unit 112 is used for selecting whether to start camera according to described information, when selecting to start, starts described camera.
Optionally, for having the situation of a plurality of cameras in present mobile terminal, respond module 11 can further include detecting unit 11a and the second start unit 11b, with reference to figure 6.Detecting unit 11a is used for detecting camera information in response to carry out the instruction of Image Acquisition at browser.The second start unit 11b is used for according to presetting or current selection, starting selected camera when at least one described camera being detected.
When a plurality of camera was arranged, the user can preset it, and for example, the highest camera of given resolution when automatically starting camera, just starts main camera as main camera; Except presetting, the user can also select immediately, and when system detected the information of a plurality of cameras, the user can select as required.The information of a plurality of cameras includes but not limited to: the position of camera (preposition or rearmounted), pixel, focal length etc.
Display unit 111, the first start unit 112, detecting unit 11a and the second start unit 11b can be combined with as required.
Optionally, above-mentioned respond module 11 also is used for carrying out the instruction of Image Acquisition at browser in response to the user, carries out the Javascript shell script of appointment on browser.Present browser is almost all supported html, but due to the limitation of html itself, so usually understand in webpage embedded part Javascript shell script to realize more function.As a new standard, html5 provides some new element and attributes, for example, provides new function for browsing key element, as<audio〉and<video〉mark.Even so, the language that serves as a mark is when having variable to judge or during the actuating logic statement, will being restricted.Therefore need Java or other programming languages editor's shell script to realize partial function, strengthen user's experience so can carry out the Javascript shell script of appointment on browser.
Optionally, system 10 comprises that also interface provides module 13, is used for providing the Javascript interface to call for described Javascript shell script.Too complicated when the Javascript shell script, when perhaps needing a plurality of programs to call, it can be packaged into several storehouses, different functions can be realized in each storehouse.And interface provides module 13 that one or more Javascript interfaces are provided, and by connecting an interface, namely can call the Javascript shell script in the storehouse corresponding with this interface, realizes corresponding function.
After starting camera, image collection module 12 will use described camera to obtain image information.Image collection module 12 is used the operations such as described camera includes but not limited to take pictures, video recording, two-dimension code deciphering.Due to the camera that can use system 10 directly to start by browser, therefore the picture after obtaining can directly apply in the various operations of the page of browser display, for example: issuing microblog, upload pictures, perhaps carry out video calling etc. with other users.
Use method and system provided by the invention, can effectively expand the function of conventional browser, and owing to having integrated the operation of enabling camera on browser, effectively improved the work efficiency of mobile terminal, reduced program development personnel's the code amount of writing.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned one exemplary embodiment, and in the situation that do not deviate from spirit of the present invention or essential characteristic, can realize the present invention with other concrete form.Therefore, no matter from which point, all should regard embodiment as exemplary, and be nonrestrictive, scope of the present invention is limited by claims rather than above-mentioned explanation, therefore is intended to be included in the present invention dropping on the implication that is equal to important document of claim and all changes in scope.Any Reference numeral in claim should be considered as limit related claim.In addition, obviously other modules or step do not got rid of in " comprising " word, and odd number is not got rid of plural number.
Claims (14)
1. the call method of browser to camera in a mobile terminal, is characterized in that, comprises the following steps:
A) in response to carry out the instruction of Image Acquisition in browser, start camera;
B) use described camera to obtain image information.
2. method according to claim 1, is characterized in that, described browser is supported html5.
3. method according to claim 1, is characterized in that, in response to carry out the instruction of Image Acquisition in browser, carries out the Javascript script of appointment on described browser.
4. method according to claim 3, is characterized in that, provides the Javascript interface to call for described Javascript shell script.
5. method according to claim 1, is characterized in that, the described image information of obtaining comprises: make a video recording, take pictures or obtain 2 D code information and understand.
6. method according to claim 1, is characterized in that, described step a) also comprises:
In response to carry out the instruction of Image Acquisition, display reminding information in browser;
Select whether to start camera according to described information, when selecting to start, start described camera.
7. method according to claim 1, is characterized in that, described step a) also comprises:
In response to carry out the instruction of Image Acquisition in browser, detect camera information;
When at least one described camera being detected, according to presetting or current selection, start selected camera.
8. one kind is used for the mobile terminal browser to the system that camera calls, and it is characterized in that, comprising:
Respond module is used for starting camera in response to carry out the instruction of Image Acquisition at browser;
Image collection module is used for using described camera to obtain image information.
9. system according to claim 8, is characterized in that, described browser is supported html5.
10. system according to claim 8, is characterized in that, described respond module also is used for carrying out the Javascript script of appointment in response to carry out the instruction of Image Acquisition at browser on described browser.
11. system according to claim 10 is characterized in that, also comprises:
Interface provides module, is used for providing the Javascript interface to call for described Javascript shell script.
12. system according to claim 8 is characterized in that, described image collection module is further used for: make a video recording, take pictures or obtain 2 D code information and understand.
13. system according to claim 8 is characterized in that, described respond module also comprises:
Display unit is used in response to carrying out the instruction of Image Acquisition at browser, display reminding information;
The first start unit is used for starting described camera when selecting to start.
14. system according to claim 8 is characterized in that, described respond module also comprises:
Detecting unit is used for detecting camera information in response to carry out the instruction of Image Acquisition at browser;
The second start unit is used for according to presetting or current selection, starting selected camera when at least one described camera being detected.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104281091A CN103164214A (en) | 2011-12-19 | 2011-12-19 | Calling method and system of browser on camera in mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104281091A CN103164214A (en) | 2011-12-19 | 2011-12-19 | Calling method and system of browser on camera in mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103164214A true CN103164214A (en) | 2013-06-19 |
Family
ID=48587339
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011104281091A Pending CN103164214A (en) | 2011-12-19 | 2011-12-19 | Calling method and system of browser on camera in mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103164214A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103500209A (en) * | 2013-09-30 | 2014-01-08 | 天脉聚源(北京)传媒科技有限公司 | Data collecting and allocating method and device based on browser |
CN103927334A (en) * | 2014-03-24 | 2014-07-16 | 小米科技有限责任公司 | Webpage acquiring method and device |
CN106529366A (en) * | 2016-12-07 | 2017-03-22 | 北京慧眼智行科技有限公司 | Method and system for identifying and detecting code chart |
CN108363590A (en) * | 2018-05-17 | 2018-08-03 | 珠海横琴盛达兆业科技投资有限公司 | A kind of method of webpage version free switching computer camera |
CN108718416A (en) * | 2018-06-15 | 2018-10-30 | 深圳市安佳威视信息技术有限公司 | Embedded video camera audio-visual system and its method is broadcast live in HTML5 |
CN109951643A (en) * | 2019-03-28 | 2019-06-28 | 广州商景网络科技有限公司 | Image display method and apparatus, license image pickup method and device based on web page |
CN111131880A (en) * | 2019-12-30 | 2020-05-08 | 中国银行股份有限公司 | Webpage customized video recording method and device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101431713A (en) * | 2007-11-09 | 2009-05-13 | 中国移动通信集团公司 | Resource access method and equipment |
-
2011
- 2011-12-19 CN CN2011104281091A patent/CN103164214A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101431713A (en) * | 2007-11-09 | 2009-05-13 | 中国移动通信集团公司 | Resource access method and equipment |
Non-Patent Citations (1)
Title |
---|
刘彧等: "互联网终端的关键技术——手机浏览器分析", 《电信技术》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103500209A (en) * | 2013-09-30 | 2014-01-08 | 天脉聚源(北京)传媒科技有限公司 | Data collecting and allocating method and device based on browser |
CN103927334A (en) * | 2014-03-24 | 2014-07-16 | 小米科技有限责任公司 | Webpage acquiring method and device |
CN103927334B (en) * | 2014-03-24 | 2018-04-06 | 小米科技有限责任公司 | Webpage acquisition methods and device |
CN106529366A (en) * | 2016-12-07 | 2017-03-22 | 北京慧眼智行科技有限公司 | Method and system for identifying and detecting code chart |
CN108363590A (en) * | 2018-05-17 | 2018-08-03 | 珠海横琴盛达兆业科技投资有限公司 | A kind of method of webpage version free switching computer camera |
CN108718416A (en) * | 2018-06-15 | 2018-10-30 | 深圳市安佳威视信息技术有限公司 | Embedded video camera audio-visual system and its method is broadcast live in HTML5 |
CN109951643A (en) * | 2019-03-28 | 2019-06-28 | 广州商景网络科技有限公司 | Image display method and apparatus, license image pickup method and device based on web page |
CN111131880A (en) * | 2019-12-30 | 2020-05-08 | 中国银行股份有限公司 | Webpage customized video recording method and device |
CN111131880B (en) * | 2019-12-30 | 2022-04-12 | 中国银行股份有限公司 | Webpage customized video recording method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9122377B2 (en) | Method and system for interworking plurality of applications | |
CN103164214A (en) | Calling method and system of browser on camera in mobile terminal | |
CN102811438B (en) | Information interaction method, relevant device and system | |
CN108496198B (en) | Image processing method and device | |
US9807224B2 (en) | Method and apparatus for accessing services of a device | |
CN102541635A (en) | Extensible system action for sharing while remaining in context | |
KR20060132736A (en) | User interface methods, such as for customer self-support on a mobile device | |
KR20140131546A (en) | Method and apparatus for executing user action commands | |
KR101522345B1 (en) | Method for displaying background pictures in mobile communication apparatus and apparatus the same | |
CN113808016A (en) | Image processing method and device | |
CN103179159A (en) | Method for processing third-party applications and terminal browser | |
CN112256990A (en) | Image processing method and device and computer readable storage medium | |
CN103607454B (en) | The method that android system browser arranges privately owned proxy server | |
CN108933947B (en) | Bullet screen display method and device | |
US20120089895A1 (en) | Mobile terminal device and recording medium | |
WO2023046105A1 (en) | Message sending method and apparatus and electronic device | |
US20130113708A1 (en) | Method and apparatus enabling keystroke acceleration | |
CN101710277B (en) | Script processing method, device of embedded browser | |
CN103167009A (en) | Method and system calling system messages through clients | |
KR20110104885A (en) | Method and apparatus for accessing one or more services of a device | |
CN101378564B (en) | Method and apparatus for implementing multimedia message picture based on touch screen | |
KR101525025B1 (en) | Live capturing method in smartphone | |
JP6213041B2 (en) | Web page takeover system, web page takeover method, communication terminal, web page display method, and program | |
CN102968406A (en) | Showing/hiding method and device for remark column of remark system and presentation equipment | |
CN103167107A (en) | Call method and call system of browser to communication function in mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130619 |