CN103838553B - Display control method and electronic equipment - Google Patents
Display control method and electronic equipment Download PDFInfo
- Publication number
- CN103838553B CN103838553B CN201210473372.7A CN201210473372A CN103838553B CN 103838553 B CN103838553 B CN 103838553B CN 201210473372 A CN201210473372 A CN 201210473372A CN 103838553 B CN103838553 B CN 103838553B
- Authority
- CN
- China
- Prior art keywords
- data
- control
- described image
- electronic equipment
- application program
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/986—Document structures and storage, e.g. HTML extensions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Abstract
The embodiments of the invention provide display control method and electronic equipment.The display control method is applied in electronic equipment, and the electronic equipment includes an image collecting device and is provided with an application program, and this method includes:Obtain a trigger action;The trigger action is responded, starts the application program;One script information is parsed by the application program, an interaction page, the first data that acquisition described image harvester is gathered and the second data for obtaining network-side are built, wherein, the script information is mutually corresponding with the network-side;First data and the second data are shown with the interaction page based on the application program., can be in the load networks page by display control method and electronic equipment according to embodiments of the present invention, the display image harvester acquired image content on the page, so as to promote the facility of user and improve the performance of system.
Description
Technical field
The present invention relates to display control method and electronic equipment.
Background technology
With the development of electronic equipment, the various applications used in the electronic device are generated, wherein, browser application is just
It is one of important application in electronic equipment, user can use browser application to browse net on the display screen of electronic equipment
Page.
Now, when user browses webpage using browser application, may wish to can be not only in browser application
Webpage is browsed, and other functions can be used, while being not that deactivation is other again in the case where exiting browser application
Corresponding application.For example, when user browses similar microblogging website, it may be desirable under the current state of oneself is shot
Come, so as to upload to microblogging up.In the current situation, when user wishes so to do, it has to which browser application is switched
To system background, then start camera application, shoot the current state of oneself, then switch back into browser application, read this
Photo, is then uploaded among the webpage browsed.It can be seen that, an only simple operation for uploading live-pictures, just
So many operation bidirectional can be brought to user, therefore, this not only brings great inconvenience to user, is also brought to system
Very big expense.
But in the primary browser of android system not in supported web page display and control camera function, when
It is preceding also to solve this problem without any scheme.It is therefore desirable to be able to page mode display image harvester
The scheme of acquired image content
The content of the invention
Therefore, the present invention is made for above-mentioned problems of the prior art and demand.
The purpose of the embodiment of the present invention is to provide a kind of display control method and electronic equipment, and it can be in load networks page
During face, the display image harvester acquired image content on the page.
One side according to embodiments of the present invention is there is provided a kind of display control method, applied in electronic equipment, institute
Stating electronic equipment includes an image collecting device, and the electronic equipment is provided with an application program, and methods described includes:Obtain one
Trigger action;The trigger action is responded, starts the application program;One script information, structure are parsed by the application program
An interaction page, the first data that acquisition described image harvester is gathered and the second data for obtaining network-side are built, its
In, the script information is mutually corresponding with the network-side;And, based on the application program by first data and second
Data are shown with the interaction page.
In above-mentioned display control method, the interaction page further comprises:Control, for controlling described image to adopt
Acquisition means.
In above-mentioned display control method, the application program includes an analytics engine;It is described to pass through the application program
A script information is parsed, an interaction page is built, obtains the first data and acquisition net that described image harvester is gathered
The step of second data at network end, further comprises:By parsing the script information with the analytics engine, so as to build one
IMAQ object.
In above-mentioned display control method, it is described structure IMAQ object the step of specifically include:Produce a label, institute
Stating label is used to determine a viewing area in the interaction page, wherein, the viewing area is used to show that described image is adopted
First data that acquisition means are gathered.
In above-mentioned display control method, described image acquisition target includes the first control object and the second control object;
First control object is used to interact with the IMAQ service routine corresponding to described image harvester, to control
Described image harvester;And, second control object is used to create a storage region, and the storage region is provided
Gather and service to described image, so that described image gathers described first that service routine is gathered described image harvester
Data are written in the storage region.
In above-mentioned display control method, first control object is in response to the control instruction produced by the control.
In above-mentioned display control method, first control object has in response to the control instruction produced by the control
Body includes:The control instruction is exported and gathers service routine to described image by first control object, wherein, described image
The first data that collection service routine control described image harvester is gathered, and notification message is sent to first control
Object processed, the notification message is had been written into the storage region for characterizing first data;And, first control
The notification message is sent to the application program by object processed, by the application program according to a mark, from the memory block
Domain determines first data and is plotted on the viewing area.
Another aspect according to embodiments of the present invention is there is provided a kind of electronic equipment, and the electronic equipment includes an image
Harvester and a control unit, the electronic equipment further comprise:Receiving unit, for obtaining a trigger action;Start
Unit, for responding the trigger action, starts described control unit;Wherein, described control unit is believed by parsing a script
Breath, builds an interaction page, the first data that acquisition described image harvester is gathered and the second number for obtaining network-side
According to, wherein, the script information is mutually corresponding with the network-side;And, described control unit is used for first data
Shown with the second data with the interaction page.
In above-mentioned electronic equipment, described control unit is further used for including a control in interaction page, for controlling
Described image harvester processed.
In above-mentioned electronic equipment, described control unit includes a resolution unit, and the resolution unit is described by parsing
Script information, so as to build an IMAQ object.
In above-mentioned electronic equipment, the resolution unit builds described image acquisition target, institute by producing a label
Stating label is used to determine a viewing area in the interaction page, wherein, the viewing area is used to show that described image is adopted
First data that acquisition means are gathered.
In above-mentioned electronic equipment, described image acquisition target includes the first control object and the second control object;It is described
First control object is used to interact with the IMAQ service routine corresponding to described image harvester, described to control
Image collecting device;And, second control object is used to create a storage region, and the storage region is supplied into institute
IMAQ service is stated, so that first data that described image collection service routine is gathered described image harvester
It is written in the storage region.
In above-mentioned electronic equipment, first control object is in response to the control instruction produced by the control.
In above-mentioned electronic equipment, first control object is specifically wrapped in response to the control instruction produced by the control
Include:The control instruction is exported and gathers service routine to described image by first control object, wherein, described image collection
The first data that service routine control described image harvester is gathered, and notification message is sent to first control pair
As the notification message is had been written into the storage region for characterizing first data;And, first control pair
It is true from the storage region by described control unit according to a mark as the notification message is sent into described control unit
Fixed first data are simultaneously plotted on the viewing area.
Another aspect according to embodiments of the present invention is there is provided a kind of electronic equipment, and the electronic equipment includes an image
Harvester simultaneously runs an application program, and the electronic equipment further comprises:Receiving unit, for obtaining a trigger action;
Start unit, for responding the trigger action, starts the application program;Wherein, the application program is by parsing a pin
This information, builds an interaction page, obtains the first data for being gathered of described image harvester and obtains the of network-side
Two data, wherein, the script information is mutually corresponding with the network-side;And, the application program is used for described first
Data and the second data are shown with the interaction page.
By display control method and electronic equipment according to embodiments of the present invention, can in the load networks page,
Display image harvester acquired image content on the page, so as to promote the facility of user and improve the performance of system.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is the indicative flowchart for showing display control method according to embodiments of the present invention;
Fig. 2 is the schematic diagram of establishment IMAQ object in display control method according to embodiments of the present invention;
Fig. 3 and Fig. 4 are the data acquisitions of control image collecting device in display control method according to embodiments of the present invention
Schematic diagram;
Fig. 5 is the schematic diagram of data display in display control method according to embodiments of the present invention;
Fig. 6 is the schematic diagram of the specific example of response control instruction in display control method according to embodiments of the present invention;
Fig. 7 is the schematic block diagram of electronic equipment according to embodiments of the present invention;
Fig. 8 is the example for showing the JavaScript script informations that electronic equipment according to embodiments of the present invention is recorded.
Embodiment
Below, it will be described in detail with reference to accompanying drawings display control method and electronic equipment according to embodiments of the present invention.
One side according to embodiments of the present invention is there is provided a kind of display control method, applied in electronic equipment, institute
Stating electronic equipment includes an image collecting device, and the electronic equipment is provided with an application program, and methods described includes:Obtain one
Trigger action;The trigger action is responded, starts the application program;One script information, structure are parsed by the application program
An interaction page is built, the first data and the second data of acquisition network-side that acquisition described image harvester is gathered, its
In, the script information is mutually corresponding with the network-side;And, based on the application program by first data and second
Data are shown with the interaction page.
By display control method according to embodiments of the present invention, it can be shown in the form of interaction page by scheming to user
Both first data and the second data of network-side for being gathered as harvester, so that user need not be in IMAQ
The application of device and the application of network-side are switched between the two, it is possible to image collecting device institute is seen in interaction page
The content of the image of collection, which enhance user is using image collecting device and watches the data that image collecting device is gathered
Convenience, improves the overall performance of electronic equipment.
Fig. 1 is the indicative flowchart for showing display control method according to embodiments of the present invention.As shown in figure 1, according to
The display control method of the embodiment of the present invention is applied in an electronic equipment, and the electronic equipment includes an image collecting device, and
The electronic equipment is provided with an application program, and method includes:S1, obtains a trigger action;S2, in response to the trigger action, is opened
Dynamic application program;S3, a script information is parsed by application program, builds an interaction page, is obtained image collecting device and is adopted
First data of collection and the second data for obtaining network-side, wherein, the script information is mutually corresponding with network-side;And, base
The first data and the second data are shown with the interaction page in the application program.
In an embodiment of the present invention, for example, above-mentioned electronic equipment is notebook computer, above-mentioned image collecting device is to take the photograph
As head, and above-mentioned application program is browser.When user opens the webpage of certain Internet with browser, browser passes through
The script information of the webpage is parsed, an interaction page can be built based on the webpage when front opening, also, user is in the interaction page
On face, the view data that the content and camera of the webpage are collected can be browsed to simultaneously.Certainly, people in the art
Member is it is appreciated that the display control method of the embodiment of the present invention is not limited to above-mentioned specific example, for example, above-mentioned electronic equipment
Can also be the portable mobile terminals such as mobile phone, and above-mentioned application program can be microblogging client, and corresponding network
End is the server of microblogging.
In display control method according to embodiments of the present invention, the interaction page further comprises:Control, is used for
Control described image harvester.
In an embodiment of the present invention, from image collecting device the first data and the second data from network-side with
Interaction page shows, wherein, application program is by parsing the script information corresponding with network-side, with interaction page display network
Second data at end.In an embodiment of the present invention, further comprise in interaction page for controlling image collecting device
Control.For example, when showing camera acquired image on the page, user may need to control camera to enter on the page
Row, which is taken pictures, image etc., to be operated.
In above-mentioned display control method, it is necessary to after the completion of the second data from network-side, such as webpage loading, structure
Make the control for controlling image collecting device.For example, in the case where carrying out IMAQ using camera, constructing camera object
To control camera in page script, also, in interaction page, such as it is used to control pressing for image collecting device defined in webpage
Button, and further the corresponding event after button is clicked in definition, for example, taking pictures, imaging.So, when button receives user
During to the clicking operation of the control, the initialization procedure of image collecting device is called.
In display control method according to embodiments of the present invention, the application program includes an analytics engine;It is described logical
Cross the application program and parse a script information, build an interaction page, obtain described image harvester is gathered first
The step of second data of data and acquisition network-side, further comprises:Believed by parsing the script with the analytics engine
Breath, so as to build an IMAQ object.
Fig. 2 is the schematic diagram of establishment IMAQ object in display control method according to embodiments of the present invention.Fig. 2's
In example, the script information of webpage is HTML5, and browser in the script information of HTML5 forms by inserting corresponding generation
Code realizes display control method according to embodiments of the present invention.In an embodiment of the present invention, when with interaction page show come
From the first data of image collecting device when, it is necessary first to create be used in script information control image collecting device control
Object, for example, controlling the camera object of camera in page script.As shown in Fig. 2 during concrete implementation, application
Program, such as browser hand over one section of JavaScript code for creating IMAQ object, i.e. JavaScript scripts
To JavaScript engine(V8 or JavaScriptCore)To compile and perform, so, performed in javascript scripts
When, Navigator can be passed through(Javascript global objects)Camera object is created according to Navigator.idl files(Example
Such as, DOMCamera).Here, it will be understood by those skilled in the art that in the script information of other forms, class can also be utilized
Corresponding IMAQ object is built like mode, the embodiment of the present invention is not intended to this any limitation of progress.
In display control method according to embodiments of the present invention, it is described structure IMAQ object the step of specifically wrap
Include:A label is produced, the label is used to determine a viewing area in the interaction page, wherein, the viewing area is used
First data gathered in display described image harvester.
Equally it is described with above-mentioned example, after DomCamera is constructed, by initializing the IMAQ object
DOMCamera, can be by the application program, and for example browser generates a canvas sheet, also, browser can be by image collecting device
The content of collection is plotted to this canvas sheet up.Meanwhile, by initializing IMAQ object DOMCamera, in webpage
One HTML of upper establishment DIV labels, for carrying the canvas sheet of above-mentioned generation, it is substantially exactly with this element of DIV, to picture
Cloth accounts for a position, also, after DIV generations, can add it into the dom tree of webpage.So, equivalent in display
The label of the first data gathered for display image harvester is determined in interaction page, so as to show by image
The first data that harvester is gathered.
The step of by above-mentioned structure IMAQ object and generation label, actually have been built up from IMAQ pair
As to the path for the label being shown in interaction page, below, when description specifically is gathered into view data by image collecting device,
By IMAQ object acquisition by image collecting device acquired image data process.
In display control method according to embodiments of the present invention, described image acquisition target include the first control object and
Second control object;First control object is used to enter with the IMAQ service routine corresponding to described image harvester
Row interaction, to control described image harvester;And, second control object is used to create a storage region, and by institute
State storage region and be supplied to described image collection service, so that described image gathers service routine by described image harvester institute
First data of collection are written in the storage region.
Fig. 3 and Fig. 4 are the data acquisitions of control image collecting device in display control method according to embodiments of the present invention
Schematic diagram.As shown in figure 3, still by taking the script information of HTML5 forms as an example, in the above-mentioned implementation process of application program, point
Two code spaces have been cut, for example, the C++ layers in Fig. 3 and Android Runtime layers of Java, in C++ layers, IMAQ
Object DOMCamera creates two internal control objects based on the code as depicted for being used to start preview, i.e. by
First control object of Android CameraPrivateAndroid Object Creations Android Java layers
HTML5CameraProxy and the second control object HTML5CameraView, then, is created and CameraService
(The camera service provided in Android)Relation, wherein, HTML5CameraProxy be used for interacted with CameraService,
Reach the purpose of the image collecting device in control Android device.Also, as shown in figure 4, HTML5CameraView is created
One memory field, for example, SurfaceTexture, and this block memory field is supplied to CameraService, to cause
The first data for gathering out by the image collecting device of hardware are written in this block memory field by CameraService.
Equally, although it will be understood by those skilled in the art that above-mentioned example with the script information of HTML5 forms and
The electronic equipment of Android operation system(It has browser and camera service based on Android operation system)Exemplified by enter
Go description, but the display control method of the embodiment of the present invention can also be applied to the script information of other forms and operation is
System, embodiments of the invention are not intended to this any limitation of progress.
Here, the step of above-mentioned generation label adopted to build from image as described above, in an embodiment of the present invention
Collect object to the path for the label being shown in interaction page, and the number of reference picture 3 and the control image collecting device described in Fig. 4
It is to build by IMAQ object to the path by image collecting device acquired image data according to the process of collection.
In the display control method of the embodiment of the present invention, after completion IMAQ object is built, the two processes can and be advanced
OK, and mutual sequencing need not be limited.
In display control method according to embodiments of the present invention, first control object is produced in response to the control
Raw control instruction.
In display control method according to embodiments of the present invention, first control object is produced in response to the control
Raw control instruction is specifically included:The control instruction is exported and gives described image collection service journey by first control object
Sequence, wherein, the first data for being gathered of described image collection service routine control described image harvester, and by notification message
First control object is sent to, the notification message has been written into the storage region for characterizing first data
In;The notification message is sent to the application program by first control object, by the application program according to a mark,
First data are determined from the storage region and are plotted on the viewing area.
As described above, user can control image collecting device to perform a series of behaviour using the control in interaction page
Make, for example, take pictures, shooting etc..Fig. 5 is the schematic diagram of data display in display control method according to embodiments of the present invention, such as
Shown in Fig. 5, when the first control object HTML5CameraProxy is in response to such as photographing instruction, and sent out to CameraService
When going out photographing instruction, a frame data have been put into SurfaceTexture by CameraService, and are notified
HTML5CameraProxy data have been written into, so, and HTML5CameraProxy is notified that application program is browsed at C++ layers
Device kernel, the content of this frame data stored in memory field is plotted in the viewing area defined in interaction page.Fig. 6 is
The schematic diagram for the specific example that response control is instructed in display control method according to embodiments of the present invention.As shown in Figure 6, it is assumed that
User have issued photographing instruction by the space in interaction page, for example, clicking on the button of taking pictures shown in the page, then by such as
Code shown in figure so that browser calls the takePicture functions defined in DOMCamera, starts flow of taking pictures, such as
In the structure of two code spaces shown in Fig. 3, program flow calls Runtime layers of Java's always
HTML5CameraProxy objects, so that photographing instruction is sent from HTML5CameraProxy objects to CameraService, with
Taken pictures by CameraService control cameras.
So, in an embodiment of the present invention, for example, working as in the electronic equipment based on Android operation system with clear
When device of looking at accesses the webpage based on HTML5, by the way that the preview of camera and some other control functions are put into webpage, open
Originator only needs simply to call several JavaScript interfaces, it is possible to user is used camera while webpage is browsed
Function, eliminate using switching trouble.
Another aspect according to embodiments of the present invention is there is provided a kind of electronic equipment, and the electronic equipment includes an image
Harvester and a control unit, the electronic equipment further comprise:Receiving unit, for obtaining a trigger action;Start
Unit, for responding the trigger action, starts the application program;Wherein, described control unit is believed by parsing a script
Breath, builds an interaction page, the first data that acquisition described image harvester is gathered and the second number for obtaining network-side
According to, wherein, the script information is mutually corresponding with the network-side;And, described control unit is used for first data
Shown with the second data with the interaction page.
Fig. 7 is the schematic block diagram of electronic equipment according to embodiments of the present invention.As shown in fig. 7, according to present invention implementation
The electronic equipment 100 of example includes an image collecting device 101 and a control unit 102, and the electronic equipment further comprises:Connect
Unit 103 is received, for obtaining a trigger action;Start unit 104, in response to the trigger action, starting control unit
102;Wherein, control unit 102 builds an interaction page, acquisition image collecting device 101 and adopted by parsing a script information
First data of collection and the second data for obtaining network-side, wherein, the script information is mutually corresponding with network-side;And, control
Unit 102 processed is used to be shown the first data and the second data with interaction page.
Here, it will be understood by those skilled in the art that the control unit 102 in Fig. 7 electronic equipment 100 can be included
The hardware module of the repertoire of the application program of foregoing display control method, to be realized by parsing script information according to this
The display control method of inventive embodiments.For example, being accessed in the electronic equipment based on Android operation system as described above
In the example of the webpage of HTML5 forms, control unit 102 can have the repertoire of the browser of Android operation system,
It is inserted into JavaScript script informations simultaneously to call several JavaScript interfaces so that user is browsing webpage
Simultaneously using the function of camera.Fig. 8 is to show the JavaScript scripts that electronic equipment according to embodiments of the present invention is recorded
The example of information.
In above-mentioned electronic equipment, described control unit is further used for including a control in interaction page, for controlling
Described image harvester processed.
In above-mentioned electronic equipment, described control unit includes a resolution unit, and the resolution unit is described by parsing
Script information, so as to build an IMAQ object.
In above-mentioned electronic equipment, the resolution unit builds described image acquisition target, institute by producing a label
Stating label is used to determine a viewing area in the interaction page, wherein, the viewing area is used to show that described image is adopted
First data that acquisition means are gathered.
In above-mentioned electronic equipment, described image acquisition target includes the first control object and the second control object;It is described
First control object is used to interact with the IMAQ service routine corresponding to described image harvester, described to control
Image collecting device;And, second control object is used to create a storage region, and the storage region is supplied into institute
IMAQ service is stated, so that first data that described image collection service routine is gathered described image harvester
It is written in the storage region.
In above-mentioned electronic equipment, first control object is in response to the control instruction produced by the control.
In above-mentioned electronic equipment, first control object is specifically wrapped in response to the control instruction produced by the control
Include:The control instruction is exported and gathers service routine to described image by first control object, wherein, described image collection
The first data that service routine control described image harvester is gathered, and notification message is sent to first control pair
As the notification message is had been written into the storage region for characterizing first data;And, first control pair
It is true from the storage region by described control unit according to a mark as the notification message is sent into described control unit
Fixed first data are simultaneously plotted on the viewing area.
Here, the specific object in the control unit of the electronic equipment of the embodiment of the present invention and the operating system of electronic equipment
Interaction previously with regards to the application program and operating system described in display control method according to embodiments of the present invention
In specific object interaction it is essentially identical, herein in order to avoid redundancy is just repeated no more.
Another aspect according to embodiments of the present invention is there is provided a kind of electronic equipment, and the electronic equipment includes an image
Harvester simultaneously runs an application program, and the electronic equipment further comprises:Receiving unit, for obtaining a trigger action;
Start unit, for responding the trigger action, starts the application program;Wherein, the application program is by parsing a pin
This information, builds an interaction page, obtains the first data for being gathered of described image harvester and obtains the of network-side
Two data, wherein, the script information is mutually corresponding with the network-side;And, the application program is used for described first
Data and the second data are shown with the interaction page.
Equally, the function performed by the application program in above-mentioned electronic equipment can be previously with regards to according to present invention implementation
The function performed by application program described in the display control method of example is identical, herein in order to avoid redundancy is just no longer gone to live in the household of one's in-laws on getting married
State.
By display control method and electronic equipment according to embodiments of the present invention, when user operates the electronic equipment,
For example, either microblogging client or user operate specially the browser for operating to start electronic equipment by the user received
Start the function using image collecting device while webpage is browsed for the hardware button of the embodiment of the present invention, pass through solution
The browsed Web content of analysis, the script information of such as webpage or microblog page, to build an interaction page as to user
The page of display, also, on this page, display image harvester, such as camera acquired image and acquisition net
The related content of page or microblogging.Also, on this page, show for by for example virtual of user's control image collecting device
Button.
As described above, when parsing script unit, IMAQ object is constructed by producing a label, and the label exists
Determine that one is used for the viewing area of display image harvester acquired image data in the page.Also, the image is built to adopt
Collecting object includes the first control object and the second control object, wherein, the first control object is used for right with image collecting device institute
The IMAQ service routine answered is interacted, to control image collecting device, and the second control object is used for establishment one and deposited
Storage area domain, and storage region is supplied to IMAQ service, to cause IMAQ service routine by image collecting device institute
First data of collection are written in storage region.Certainly, aforesaid operations be by application program according to embodiments of the present invention or
What person's control unit was realized by the interacting for operating system with electronic equipment on backstage, user can't perceive above-mentioned behaviour
Make process.
When user clicks on such as virtual push button shown on the page, so that when sending control instruction, first control
Control instruction is exported and gives IMAQ service routine by object, wherein, IMAQ service routine control image collecting device institute
First data of collection, and notification message is sent to the first control object, the notification message is used to characterize the first data
Write in the storage region;And, notification message is sent to application program or control unit by the first control object, by applying
The mark for the view data that program or control unit are shown as needed, determines the first data from the storage region and is plotted in
On viewing area.So, in the viewing area for image collecting device of user just on the page, it is seen that by IMAQ
The image that device is collected.
In addition, it will be understood by those skilled in the art that in an embodiment of the present invention, could be arranged to when application program or
When person's control unit acquiescence starts, just obtain image collecting device acquired image and be shown in the viewing area on the page
In, i.e. it is used as the preview mode of image collecting device.Afterwards, to receive user other on what is for example taken pictures or image
After control command, operated according still further to corresponding modes.
By display control method and electronic equipment according to embodiments of the present invention, can in the load networks page,
Display image harvester acquired image content on the page, so as to promote the facility of user and improve the performance of system.
The present invention is described in detail by reference to specific embodiment.It may be evident, however, that in the essence without departing substantially from the present invention
In the case of god, those skilled in the art can perform to embodiment and change and replace.In other words, the shape that the present invention illustrates
Formula is disclosed, rather than is explained with being limited.Judge idea of the invention, it is contemplated that appended claim.
Claims (15)
1. a kind of display control method, applied in electronic equipment, the electronic equipment includes an image collecting device, the electricity
Sub- equipment is provided with an application program, and methods described includes:
Obtain a trigger action;
The trigger action is responded, starts the application program;
By the application program parse a script information, build an interaction page, do not switch described image harvester and
In the case of the application program, the first data and the second of acquisition network-side that acquisition described image harvester is gathered
Data, wherein, the script information is mutually corresponding with the network-side;
First data and the second data are shown with the interaction page based on the application program.
2. display control method as claimed in claim 1, wherein, the interaction page further comprises:
Control, for controlling described image harvester.
3. display control method as claimed in claim 2, wherein, the application program includes an analytics engine;
It is described that a script information is parsed by the application program, an interaction page is built, is not switching described image collection dress
In the case of putting with the application program, the first data and obtain network-side that acquisition described image harvester is gathered
The step of second data, further comprises:
By parsing the script information with the analytics engine, so as to build an IMAQ object.
4. display control method as claimed in claim 3, wherein, one IMAQ object of the structure is specifically included:
A label is produced, the label is used to determine a viewing area in the interaction page, wherein, the viewing area is used
First data gathered in display described image harvester.
5. display control method as claimed in claim 3, wherein, described image acquisition target includes the first control object and the
Two control objects;
First control object is used to interact with the IMAQ service routine corresponding to described image harvester, with
Control described image harvester;And
Second control object is used to create a storage region, and the storage region is supplied into described image collection service
Program so that described image gather service routine first data that described image harvester is gathered are written to it is described
In storage region.
6. display control method as claimed in claim 5, wherein, first control object is in response to produced by the control
Control instruction.
7. display control method as claimed in claim 6, wherein, first control object is in response to produced by the control
Control instruction specifically include:
The control instruction is exported and gathers service routine to described image by first control object, wherein, described image is adopted
The first data that collection service routine control described image harvester is gathered, and notification message is sent to first control
Object, the notification message is had been written into the storage region for characterizing first data;
The notification message is sent to the application program by first control object, by the application program according to a mark
Know, determine first data from the storage region and draw on the display region.
8. a kind of electronic equipment, the electronic equipment includes an image collecting device and a control unit, the electronic equipment enters
One step includes:
Receiving unit, for obtaining a trigger action;
Start unit, for responding the trigger action, starts described control unit;
Wherein, described control unit builds an interaction page by parsing a script information, is not switching described image collection dress
In the case of putting with described control unit, the first data and obtain network-side that acquisition described image harvester is gathered
Second data, wherein, the script information is mutually corresponding with the network-side;
Described control unit is used to be shown first data and the second data with the interaction page.
9. electronic equipment as claimed in claim 8, wherein, described control unit is further used for including one in interaction page
Control, for controlling described image harvester.
10. electronic equipment as claimed in claim 9, wherein, described control unit includes a resolution unit, the resolution unit
By parsing the script information, so as to build an IMAQ object.
11. electronic equipment as claimed in claim 10, wherein, the resolution unit builds the figure by producing a label
As acquisition target, the label is used to determine a viewing area in the interaction page, wherein, the viewing area is used to show
Show first data that described image harvester is gathered.
12. electronic equipment as claimed in claim 10, wherein, described image acquisition target includes the first control object and second
Control object;
First control object is used to interact with the IMAQ service routine corresponding to described image harvester, with
Control described image harvester;And
Second control object is used to create a storage region, and the storage region is supplied into described image collection service
Program so that described image gather service routine first data that described image harvester is gathered are written to it is described
In storage region.
13. electronic equipment as claimed in claim 12, wherein, first control object is in response to produced by the control
Control instruction.
14. electronic equipment as claimed in claim 13, wherein, first control object is in response to produced by the control
Control instruction is specifically included:
The control instruction is exported and gathers service routine to described image by first control object, wherein, described image is adopted
The first data that collection service routine control described image harvester is gathered, and notification message is sent to first control
Object, the notification message is had been written into the storage region for characterizing first data;
The notification message is sent to described control unit by first control object, by described control unit according to a mark
Know, determine first data from the storage region and draw on the display region.
15. a kind of electronic equipment, the electronic equipment includes an image collecting device and runs an application program, the electronics is set
It is standby to further comprise:
Receiving unit, for obtaining a trigger action;
Start unit, for responding the trigger action, starts the application program;
Wherein, the application program builds an interaction page by parsing a script information, is not switching described image collection dress
In the case of putting with the application program, the first data and obtain network-side that acquisition described image harvester is gathered
Second data, wherein, the script information is mutually corresponding with the network-side;
The application program is used to be shown first data and the second data with the interaction page.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210473372.7A CN103838553B (en) | 2012-11-20 | 2012-11-20 | Display control method and electronic equipment |
CN201711084595.3A CN107783810A (en) | 2012-11-20 | 2012-11-20 | Display control method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210473372.7A CN103838553B (en) | 2012-11-20 | 2012-11-20 | Display control method and electronic equipment |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711084595.3A Division CN107783810A (en) | 2012-11-20 | 2012-11-20 | Display control method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103838553A CN103838553A (en) | 2014-06-04 |
CN103838553B true CN103838553B (en) | 2017-11-03 |
Family
ID=50802096
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210473372.7A Active CN103838553B (en) | 2012-11-20 | 2012-11-20 | Display control method and electronic equipment |
CN201711084595.3A Pending CN107783810A (en) | 2012-11-20 | 2012-11-20 | Display control method and electronic equipment |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711084595.3A Pending CN107783810A (en) | 2012-11-20 | 2012-11-20 | Display control method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN103838553B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105611102A (en) * | 2015-11-18 | 2016-05-25 | 北京中电普华信息技术有限公司 | Method and device for collecting electronic image via browser |
CN106569830B (en) * | 2016-11-10 | 2019-11-29 | 北京小鸟看看科技有限公司 | Virtual reality device and wherein realizing the method that shows of message notifying frame and plug-in unit |
CN107239287B (en) * | 2017-06-07 | 2021-03-02 | 福建中金在线信息科技有限公司 | Webpage display method and device, electronic equipment and storage medium |
CN112734876A (en) * | 2021-01-08 | 2021-04-30 | 卓望数码技术(深圳)有限公司 | Graph drawing method, graph drawing device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101415151A (en) * | 2007-10-19 | 2009-04-22 | Lg电子株式会社 | Mobile terminal and data uploading method thereof |
CA2675657A1 (en) * | 2009-08-24 | 2009-11-05 | Ibm Canada Limited - Ibm Canada Limitee | Graphic editor |
CN102685213A (en) * | 2012-04-09 | 2012-09-19 | 广州市动景计算机科技有限公司 | Data uploading method and device based on mobile terminal and mobile terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201499174U (en) * | 2009-07-30 | 2010-06-02 | 升东网络科技发展(上海)有限公司 | Network real-time image generation system and device |
CN101773378A (en) * | 2010-01-07 | 2010-07-14 | 江周平 | Method for on-line vision test based on webpage application |
CN101751648A (en) * | 2010-01-07 | 2010-06-23 | 江周平 | Online try-on method based on webpage application |
-
2012
- 2012-11-20 CN CN201210473372.7A patent/CN103838553B/en active Active
- 2012-11-20 CN CN201711084595.3A patent/CN107783810A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101415151A (en) * | 2007-10-19 | 2009-04-22 | Lg电子株式会社 | Mobile terminal and data uploading method thereof |
CA2675657A1 (en) * | 2009-08-24 | 2009-11-05 | Ibm Canada Limited - Ibm Canada Limitee | Graphic editor |
CN102685213A (en) * | 2012-04-09 | 2012-09-19 | 广州市动景计算机科技有限公司 | Data uploading method and device based on mobile terminal and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103838553A (en) | 2014-06-04 |
CN107783810A (en) | 2018-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103269396B (en) | The method and system that a kind of pair of mobile terminal is managed | |
CN110399064B (en) | Display interface switching method and device, storage medium and electronic device | |
JP6025991B2 (en) | Information processing method, apparatus, terminal, and server | |
US20130329060A1 (en) | Overlay image providing system, server and method | |
CN103838553B (en) | Display control method and electronic equipment | |
CN102811438B (en) | Information interaction method, relevant device and system | |
CN103631630B (en) | Dynamic skin loading method for browser and browser device | |
CN101072122A (en) | Method, system and user end device for obtaining access amount statistical data | |
CN106572139A (en) | Multi-terminal control method and system, terminal, and server | |
CN106878361A (en) | A kind of adjustment method of the terminal applies page, device and client | |
CN107040584A (en) | The method and device of client downloads picture | |
CN103246699A (en) | Method and device for data access control based on browser | |
US20170257438A1 (en) | Increased interoperability between web-based applications and hardware functions | |
CN110263070A (en) | Event report method and device | |
CN108959595A (en) | Based on virtual and real Website construction and experiential method and its device | |
CN103607454B (en) | The method that android system browser arranges privately owned proxy server | |
CN103164214A (en) | Calling method and system of browser on camera in mobile terminal | |
CN111813629A (en) | Method, device and equipment for generating monitoring data of Web page | |
CN107203470A (en) | Page adjustment method and device | |
CN112256990A (en) | Image processing method and device and computer readable storage medium | |
WO2017156986A1 (en) | Full-picture image display method and system for mobile terminal | |
JP2019021272A (en) | Information processing system, information processing method, information processing program and retrieval terminal | |
CN103207725A (en) | Icon conversion method and device | |
CN103902635A (en) | Method, browser, multimedia equipment and mobile terminal for obtaining real-time data | |
CN109240664A (en) | A kind of method and terminal acquiring user behavior information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |