CN105278664B - A kind of method and apparatus executing operation - Google Patents
A kind of method and apparatus executing operation Download PDFInfo
- Publication number
- CN105278664B CN105278664B CN201410354173.3A CN201410354173A CN105278664B CN 105278664 B CN105278664 B CN 105278664B CN 201410354173 A CN201410354173 A CN 201410354173A CN 105278664 B CN105278664 B CN 105278664B
- Authority
- CN
- China
- Prior art keywords
- gray scale
- point
- images
- different
- operating body
- 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
Landscapes
- Image Processing (AREA)
Abstract
The invention discloses a kind of method and apparatus for executing operation, belong to computer field.This method comprises: obtaining to multiple images being continuously shot in front of terminal screen;Obtain the different pixels point between multiple described images;Different pixels point corresponding operating body on the terminal screen is obtained according to the different pixels point;Execute the corresponding operation of the operating body.The device includes: the first acquisition module, the second acquisition module, third acquisition module and execution module.In the present invention when user, which wants triggering terminal, executes operation, it shakes the corresponding position of user's operating body in front of terminal screen, terminal analyzes multiple images being continuously shot in front of terminal screen, obtain operating body, then the corresponding operation of operating body is executed, do not pass through mouse to ensure that even if user or do not contact terminal screen, terminal can also execute the corresponding operation of operating body.
Description
Technical field
The present invention relates to computer field, in particular to a kind of method and apparatus for executing operation.
Background technique
With the development of network technology, the terminals such as computer have become the necessity of people's work, life and amusement.It is counting
A large amount of application program, such as video reproduction program, instant messaging program and games etc. can be run on calculation machine.Work as user
When wanting triggering terminal and executing operation, user needs trigger command to terminal, and it is corresponding that terminal according to the order executes the order
Operation.Such as, when user wants the application program in starting terminal, user needs to trigger start command to terminal, terminal according to
The start command executes the operation for starting the application program.
The mode of traditional terminal trigger action usually requires user and clicks the application program shown in terminal by mouse
Icon, to trigger the order for starting application program to terminal, terminal executes according to the start command and starts the application program
Operation.If application program has been turned on, when user wants the display interface of switching application program, user is needed to click by mouse
The switching display interface button shown in terminal, to trigger switching command to terminal, terminal executes switching according to the switching command
The operation of display interface.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
User needs through mouse trigger command to terminal, when mouse damages or user is inconvenient to take mouse, user
Trigger command be will be unable to terminal, so as to cause operation can not be executed.
Summary of the invention
In order to solve problems in the prior art, the present invention provides a kind of method and apparatus for executing operation.The technology
Scheme is as follows:
On the one hand, the present invention provides a kind of methods for executing operation, comprising:
It obtains to multiple images being continuously shot in front of terminal screen;
Obtain the different pixels point between multiple described images;
Different pixels point corresponding operating body on the terminal screen is obtained according to the different pixels point;
Execute the corresponding operation of the operating body.
On the other hand, the present invention provides a kind of devices for executing operation, comprising:
First obtains module, for obtaining to multiple images being continuously shot in front of terminal screen;
Second obtains module, for obtaining the different pixels point between multiple described images;
Third obtains module, for obtaining the different pixels point in the terminal screen according to the different pixels point
Corresponding operating body;
Execution module, for executing the corresponding operation of the operating body.
In embodiments of the present invention, when user, which wants triggering terminal, executes operation, user operates in front of terminal screen
The corresponding position of body is shaken, and terminal is obtained to multiple images being continuously shot in front of terminal screen;Obtain multiple figures
Different pixels point as between;Different pixels point corresponding operating body on a terminal screen is obtained according to different pixels point;It executes
The corresponding operation of operating body.To user can not by mouse and do not contact terminal screen can trigger command to terminal,
Trigger command is increased to the approach of terminal.Also, terminal can obtain operating body by analyzing image, then execute operating body
Corresponding operation, does not pass through mouse even if user or does not contact terminal screen to ensure that, terminal can also execute operation
The corresponding operation of body.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of method flow diagram for execution operation that the embodiment of the present invention 1 provides;
Fig. 2-1 is a kind of method flow diagram for execution operation that the embodiment of the present invention 2 provides;
Fig. 2-2 is the interface schematic diagram for the setting operating body progress bar that the embodiment of the present invention 2 provides;
Fig. 3 is a kind of apparatus structure schematic diagram for execution operation that the embodiment of the present invention 3 provides;
Fig. 4 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment 1
The embodiment of the invention provides a kind of methods for executing operation, referring to Fig. 1, this method comprises:
Step 101: obtaining to multiple images being continuously shot in front of terminal screen.
Step 102: obtaining the different pixels point between multiple images.
Step 103: different pixels point corresponding operating body on a terminal screen is obtained according to different pixels point.
Step 104: executing the corresponding operation of the operating body.
In embodiments of the present invention, when user, which wants triggering terminal, executes operation, user operates in front of terminal screen
The corresponding position of body is shaken, and terminal is obtained to multiple images being continuously shot in front of terminal screen;Obtain multiple figures
Different pixels point as between;Different pixels point corresponding operating body on a terminal screen is obtained according to different pixels point;It executes
The corresponding operation of operating body.To user can not by mouse and do not contact terminal screen can trigger command to terminal,
Trigger command is increased to the approach of terminal.Also, terminal can obtain operating body by analyzing image, then execute operating body
Corresponding operation, does not pass through mouse even if user or does not contact terminal screen to ensure that, terminal can also execute operation
The corresponding operation of body.
Embodiment 2
The embodiment of the invention provides a kind of method for executing operation, the executing subject of this method can be terminal, referring to
Fig. 2, this method comprises:
Step 201: to being continuously shot in front of terminal screen, obtaining shooting image.
When user, which wants some operating body in triggering terminal, executes operation, user is grasped in front of terminal with default object
Make the corresponding position of body to be shaken with trigger command to terminal, before terminal passes through included image capture device to terminal screen
Fang Jinhang is continuously shot, and obtains shooting image;Alternatively, terminal is carried out by external image capture device in front of terminal screen
It is continuously shot, obtains shooting image.
Operating body can be with the task dispatching in icon, button or taskbar.Default object can be the hand or one of user
Root rod etc.;Image capture device can be camera etc.;Terminal is with image capture device or external image to be supported to adopt
Collect PC (personal computer, personal computer) terminal or tablet computer etc. of equipment.
For example, the screen of terminal shows " starting game " button when user wants starting game, user is existed with default object
" starting game " in front of terminal, the corresponding position of button is shaken with trigger command to terminal, and terminal passes through included camera
To being continuously shot in front of terminal, shooting image is obtained.
Step 202: obtaining multiple images being continuously shot from shooting image.
Specifically, multiple images shot recently are obtained from the image shot, are such as obtained from the image shot
Two images shot recently, alternatively, three images shot recently are obtained from the image shot, alternatively, from having shot
Image in obtain four images etc. shot recently.
Step 203: gray processing processing being carried out to every image in multiple images, obtains multiple grayscale images.
This step can be by realizing the step of following (1) to (2), comprising:
(1): every image in multiple images being compressed, multiple compressed images are obtained;
Every image in multiple images can be compressed using existing any compression algorithm;Of the invention real
It applies in example, compression algorithm is not especially limited.
For example, be illustrated by taking two images as an example, this step can be with are as follows: compresses, is compressed to two images
Two images afterwards.
In this step, every image in multiple images is compressed, obtains multiple compressed images, subsequent step
Multiple compressed images can be handled in rapid, so as to mitigate treating capacity, reduce the processing time, to improve
Treatment effeciency.
(2): gray processing processing being carried out to every image in multiple compressed images, obtains multiple grayscale images;
Wherein, following steps (2-1) are all passed through to every image in multiple compressed images and (2-2) carries out gray scale
Change processing, obtains every grayscale image, comprising:
(2-1), the gradient that each pixel for including in every image is calculated using vertically and horizontally gradient operator, is obtained
The gradient image of every image;
(2-2), binaryzation is carried out according to gradient-norm to the gradient image of every obtained image, obtains the ash of every image
Degree figure;
Specifically, gradient-norm is greater than third and presets threshold by the gradient-norm for calculating each pixel for including in every image
The gradient-norm of the pixel of value is set as 255, and the gradient-norm by gradient-norm no more than the pixel of third predetermined threshold value is set as
0.Therefore, gradient image is converted for grayscale image.
Wherein, it should be noted that third predetermined threshold value, which can according to need, to be configured and change, and is implemented in the present invention
In example, third predetermined threshold value is not especially limited.
Step 204: obtaining gray scale point different in multiple grayscale images, the corresponding pixel of the gray scale point that will acquire is as more
Open the different pixels point between image.
This step can be by realizing the step of following (1) to (3), comprising:
(1): obtaining gray scale point different between multiple grayscale images;
This step can be by realizing the step of following (1-1) to (1-4), comprising:
(1-1): gray scale point different between multiple grayscale images is obtained;
Specifically, the gray value of the co-located gray scale point between any two grayscale images is obtained;If the position
It is different in the gray value of the gray scale point of same position, by the co-located gray scale o'clock as different between two grayscale images
Gray scale point.
For example, being illustrated so that two images and every image include 16 gray scale points as an example, in first grayscale image
The gray value of gray value to the 16th gray scale point of first gray scale point is respectively 0, and 0,0,0,0,1,1,0,0,1,0,1,0,
1,1,0;The gray value of gray value to the 16th gray scale point of first gray scale point is respectively 1 in second grayscale image, and 0,0,
0,0,1,1,0,0,1,1,0,0,1,1,0;The gray value of first gray scale point in first grayscale image is 0, second gray scale
The gray value of first gray scale point in figure is 1, compares the sum of the grayscale values second of first gray scale point in first grayscale image
The gray value for opening first gray scale point in grayscale image determines gray value difference, first gray scale point is obtained, by with top
Method determines that the different gray scale point of gray value is first gray scale point, the 11st gray scale point and the 12nd gray scale point.Cause
This, in this step, obtaining the gray scale point that gray value is different in this two grayscale images is first gray scale point, the 11st gray scale
Point and the 12nd gray scale point.
(1-2): any image in multiple images is divided, the region of multiple area equations is obtained;
An image is arbitrarily selected from multiple images, and horizontal vertical grid division is carried out to the image of selection, is obtained more
The region of a area equation.
For example, selecting first image from multiple images, horizontal vertical grid division is carried out to first image, is obtained
The region of 4 area equations.The gray scale point that first region includes is first gray scale point, second gray scale point, the 5th ash
Degree point and the 6th gray scale point;The gray scale point that Two Areas includes is third gray scale point, the 4th gray scale point, the 7th ash
Degree point and the 8th gray scale point;The gray scale point that third region includes is the 9th gray scale point, the tenth gray scale point, the 13rd
Gray scale point and the 14th gray scale point;The gray scale point that 4th region includes be the 11st gray scale point, the 12nd gray scale point,
15th gray scale point and the 16th gray scale point.
(1-3): selection is greater than the region of the first preset threshold comprising the number of different gray scale points;
The number in each region comprising different gray scale points is counted, selection is greater than first in advance comprising the number of different gray scale points
If the region of threshold value.
Further, the gray scale point in the region of the first preset threshold included will be not more than comprising the number of different gray scale points
It deletes, noise reduction process is carried out to grayscale image to realize.
First preset threshold, which can according to need, to be configured and changes, in embodiments of the present invention, to the first default threshold
Value is not especially limited.
For example, in this two grayscale images the different gray scale point of gray value be first gray scale point, the 11st gray scale point with
And the 12nd gray scale point.First gray scale point is located in first region, the 11st gray scale point and the 12nd gray scale point
In the 4th region, therefore, the number in each region comprising different gray scale points is counted, first region includes different ashes
The number of degree point is 1, and Two Areas includes that the number of different gray scale points is 0, and third region includes of different gray scale points
Number is 0, and the 4th region includes that the number of different gray scale points is 2, is illustrated so that the first preset threshold is 1 as an example, selection packet
Number containing different gray scale points is greater than 1 region, i.e., selects the fourth region in this step.
(1-4): the different gray scale points for including in the region of selection are obtained.
For exclusive PCR, the different gray scale points for including in the region of selection are obtained, only in this step so as to right
Grayscale image carries out noise reduction process.
For example, the region selected is the fourth region, the different gray scale points for including in the fourth region, i.e. the 11st ash are obtained
The degree corresponding gray scale point of point and the corresponding gray scale point of the 12nd gray scale point.
(2): the gray scale point for including out of image that select default object in the gray scale point of acquisition;
In order to reduce error, in this step, only include out of image that select default object in the gray scale point of acquisition
Gray scale point.
Default object is that user's triggering terminal executes used object when operation, and such as default object can be the hand of user
Deng.Namely in this step from the gray scale point for including in the hand of selection user in the gray scale point of acquisition, by parts such as user's arms
The gray scale point deletion for inside including.
For example, the gray scale point for including in default object is the 11st gray scale point, therefore, in this step, the tenth is selected
One gray scale point.
(3): using the corresponding pixel of the gray scale selected point as the different pixels point between multiple images.
The corresponding pixel of gray scale point for obtaining selection, using the corresponding pixel of the gray scale selected point as multiple images it
Between different pixels point.
For example, the corresponding pixel of gray scale point selected is the 11st gray scale point, therefore, in this step, by the tenth
The corresponding pixel of one gray scale point is as the different pixels point between two images.
Step 205: different pixels point corresponding operating body on a terminal screen is obtained according to different pixels point.
This step can be by realizing the step of following (1) and (2), comprising:
(1): different pixels point being mapped on terminal screen, the mapping point of different pixels point on a terminal screen is obtained;
For example, different pixels point is the 11st pixel, the 11st pixel is mapped on terminal screen, is obtained
11st mapping point of pixel on a terminal screen.
(2): the number for obtaining containment mapping point is more than the operating body of the second preset threshold.
The mark for obtaining each operating body for including in the current display interface of terminal screen, according to the mark of each operating body
Know and obtains the corresponding display area of each operating body;Count for the mapping point for including in the corresponding display area of each operating body
Number, the number for obtaining containment mapping point is more than the operating body of the second preset threshold.
Operating body can be the task dispatching in icon, button or taskbar, and the second preset threshold can be according to operating body
Size be configured and change, in embodiments of the present invention, the second preset threshold is not especially limited.
Wherein, the number of containment mapping point is more than that the operating body of the second preset threshold can have one or more.
For example, the corresponding operating body of the 11st mapping point of pixel on a terminal screen is " starting game ";At this
In step, " starting game " corresponding order is obtained.
Step 206: executing the corresponding operation of the operating body.
Wherein, if getting the operating body for the first time, start timing, then continue according to above step 201-205
Obtain operating body.Before the time of timing is more than preset time, if the number for getting the operating body reaches preset times,
Then execute the corresponding operation of the operating body.
When getting the operating body for the first time, activated state is set by the operating body, progress bar is set on the operating body,
The first length is set by the length of progress bar, starts timing at this time, before the time of timing is more than preset time, if the
The length of progress bar on the operating body is increased by the first length, got for the third time by secondary get and operating body
It is also the operating body, the length of progress bar on the operating body is increased by the first length again, the number until obtaining the operating body
Reach preset times, executes the corresponding operation of the operating body;If obtaining the behaviour before the time of timing is more than preset time
The number for making body does not reach preset times, then cancels the activated state of the operating body, cancels the progress bar on operating body, by timing
Device is reset.
Further, if obtain operating body number be it is multiple, get each of multiple operating bodies for the first time
When operating body, activated state is set by each operating body, starts timing at this time, before the time of timing is more than preset time,
If the number for obtaining each operating body reaches preset times, it is corresponding that each operating body can be executed according to certain sequence
Operation, also can be randomly selected an operating body, executes the corresponding operation of operating body of the selection.
First length is the length of operating body and the ratio of preset times.
For example, the length of " starting game " is 2 centimetres, preset times are 4 times, then the first length is 0.5 centimetre.Namely the
When once getting " starting game ", progress bar is set on " the starting game ", sets 0.5 li for the length of progress bar
Rice, in 10 seconds, the operating body got for the second time still " starts game ", by the length of the progress bar on " the starting game "
Increase by 0.5 centimetre, the operating body got for the third time still " starts game ", by the length of the progress bar on " the starting game "
Increase by 0.5 centimetre again, the 4th operating body got still " starts game ", by the progress bar on " the starting game "
Length increases by 0.5 centimetre again, namely the length of progress bar of " starting game " becomes 2 centimetres, executes start game at this time
Operation.As shown in Fig. 2-2.
In embodiments of the present invention, when user, which wants triggering terminal, executes operation, user operates in front of terminal screen
The corresponding position of body is shaken, and terminal is obtained to multiple images being continuously shot in front of terminal screen;Obtain multiple figures
Different pixels point as between;Different pixels point corresponding operating body on a terminal screen is obtained according to different pixels point;It executes
The corresponding operation of operating body.To user can not by mouse and do not contact terminal screen can trigger command to terminal,
Trigger command is increased to the approach of terminal.Also, terminal can obtain operating body by analyzing image, then execute operating body
Corresponding operation, does not pass through mouse even if user or does not contact terminal screen to ensure that, terminal can also execute operation
The corresponding operation of body.
Embodiment 3
The embodiment of the invention provides a kind of devices for executing operation.Referring to Fig. 3, wherein the device includes:
First obtains module 301, for obtaining to multiple images being continuously shot in front of terminal screen;
Second obtains module 302, for obtaining the different pixels point between multiple images;
Third obtains module 303, for obtaining different pixels point corresponding behaviour on a terminal screen according to different pixels point
Make body;
Execution module 304, for executing the corresponding operation of operating body.
Preferably, second module 302 is obtained, comprising:
Processing unit obtains multiple grayscale images for carrying out gray processing processing to every image in multiple images;
First acquisition unit, for obtaining gray scale point different between multiple grayscale images, the gray scale point that will acquire is corresponding
Pixel is as the different pixels point between multiple figures.
Preferably, processing unit, comprising:
It compresses subelement and obtains multiple compressed images for compressing to every image in multiple images;
Subelement is handled, for carrying out gray processing processing to every image in multiple compressed images, obtains multiple
Grayscale image.
Preferably, first acquisition unit, comprising:
First obtains subelement, for obtaining gray scale point different between multiple grayscale images;
Second obtains subelement, the gray scale point for including out of image that select default object in the gray scale of acquisition point;
First is used as subelement, and the corresponding pixel of gray scale point for that will select is as the different pictures between multiple images
Vegetarian refreshments.
Preferably, first acquisition unit, comprising:
Third obtains subelement, for obtaining gray scale point different between multiple grayscale images;
It divides subelement and obtains multiple area equations for dividing to any image in multiple images
Region;
Subelement is selected, for selecting the number comprising different gray scale points to be greater than the region of the first preset threshold;
4th obtains subelement, the different gray scale points for including in the region for obtaining selection.
Preferably, first acquisition unit, comprising:
5th obtains subelement, for obtaining the gray scale of the co-located gray scale point between any two grayscale images
Value;
Second is used as subelement, if the gray value for co-located gray scale point is different, will be located at same position
The gray scale o'clock set is as gray scale point different between two grayscale images.
Preferably, third obtains module 303, comprising:
Map unit obtains different pixels point on a terminal screen for different pixels point to be mapped to terminal screen
Mapping point;
Second acquisition unit, the number for obtaining containment mapping point are more than the operating body of the second preset threshold.
Preferably, execution module 304 start timing, in the time of timing if getting operating body for first time
Before preset time, if the number for obtaining operating body reaches preset times, the corresponding operation of operating body is executed.
In embodiments of the present invention, when user, which wants triggering terminal, executes operation, user operates in front of terminal screen
The corresponding position of body is shaken, and terminal is obtained to multiple images being continuously shot in front of terminal screen;Obtain multiple figures
Different pixels point as between;Different pixels point corresponding operating body on a terminal screen is obtained according to different pixels point;It executes
The corresponding operation of operating body.To user can not by mouse and do not contact terminal screen can trigger command to terminal,
Trigger command is increased to the approach of terminal.Also, terminal can obtain operating body by analyzing image, then execute operating body
Corresponding operation, does not pass through mouse even if user or does not contact terminal screen to ensure that, terminal can also execute operation
The corresponding operation of body.
Embodiment 4
Referring to FIG. 4, it illustrates, with the terminal structure schematic diagram of touch sensitive surface, be somebody's turn to do involved in the embodiment of the present invention
The method for the progress identifying code verifying that terminal can be used for implementing providing in above-described embodiment.Specifically:
Terminal 900 may include RF (Radio Frequency, radio frequency) circuit 110, include one or more meter
The memory 120 of calculation machine readable storage medium storing program for executing, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160,
WiFi (wireless fidelity, Wireless Fidelity) module 170, the processing for including one or more than one processing core
The components such as device 180 and power supply 190.It will be understood by those skilled in the art that terminal structure shown in Fig. 4 is not constituted pair
The restriction of terminal may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.Wherein:
RF circuit 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to
Base station.In general, RF circuit 110 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses
Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex
Device etc..In addition, RF circuit 110 can also be communicated with network and other equipment by wireless communication.The wireless communication can make
With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely
Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code
Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple
Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short
Messaging Service, short message service) etc..
Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation
Software program and module, thereby executing various function application and data processing.Memory 120 can mainly include storage journey
Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function
Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to terminal 900
According to (such as audio data, phone directory etc.) etc..In addition, memory 120 may include high-speed random access memory, can also wrap
Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory
120 access.
Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 130 may include touching
Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used
Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table
Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional
, touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180
The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically,
Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.),
One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 140 can be used for showing information input by user or the information and terminal 900 that are supplied to user
Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.
Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal
Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel
141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on it or nearby
After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing device 180 according to the type of touch event
Corresponding visual output is provided on display panel 141.Although touch sensitive surface 131 and display panel 141 are conducts in Fig. 4
Two independent components realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 and display
Panel 141 is integrated and realizes and outputs and inputs function.
Terminal 900 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings
Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 900 is moved in one's ear
Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally
Three axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely
In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 900 can also configure, herein
It repeats no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 900.Audio
Electric signal after the audio data received conversion can be transferred to loudspeaker 161, be converted to sound by loudspeaker 161 by circuit 160
Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160
Audio data is converted to, then by after the processing of audio data output processor 180, such as another end is sent to through RF circuit 110
End, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earphone jack,
To provide the communication of peripheral hardware earphone Yu terminal 900.
WiFi belongs to short range wireless transmission technology, and terminal 900 can help user's transceiver electronics by WiFi module 170
Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 4 is shown
WiFi module 170, but it is understood that, and it is not belonging to must be configured into for terminal 900, it can according to need completely
Do not change in the range of the essence of invention and omits.
Processor 180 is the control centre of terminal 900, utilizes each portion of various interfaces and connection whole mobile phone
Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120
Interior data execute the various functions and processing data of terminal 900, to carry out integral monitoring to mobile phone.Optionally, processor
180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor,
Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing
Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 900 further includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity
Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system
The functions such as management.Power supply 190 can also include one or more direct current or AC power source, recharging system, power supply event
Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal 900 can also include camera, bluetooth module etc., and details are not described herein.Specifically in this reality
It applies in example, the display unit of terminal 900 is touch-screen display, and terminal 900 further includes having memory and one or one
Above program, one of them perhaps more than one program be stored in memory and be configured to by one or one with
Upper processor execution states one or more than one program includes the instruction for performing the following operation:
It obtains to multiple images being continuously shot in front of terminal screen;
Obtain the different pixels point between multiple described images;
Different pixels point corresponding operating body on the terminal screen is obtained according to the different pixels point;
Execute the corresponding operation of the operating body.
Preferably, the different pixels point between multiple images described in the acquisition, comprising:
Gray processing processing is carried out to every image in multiple described images, obtains multiple grayscale images;
Obtain gray scale point different between multiple described grayscale images, using the corresponding pixel of the gray scale of acquisition point as
Different pixels point between multiple described figures.
Preferably, every image in multiple described images carries out gray processing processing, obtains multiple grayscale images, wraps
It includes:
Every image in multiple described images is compressed, multiple compressed images are obtained;
Gray processing processing is carried out to every image in multiple described compressed images, obtains multiple grayscale images.
Preferably, gray scale point different between multiple grayscale images described in the acquisition, the gray scale point of the acquisition is corresponding
Pixel as the different pixels point between multiple described images, comprising:
Obtain gray scale point different between multiple described grayscale images;
The gray scale point for including out of image that select default object in the gray scale point of the acquisition;
Using the corresponding pixel of the selected gray scale point as the different pixels point between multiple described images.
Preferably, gray scale point different between multiple grayscale images described in the acquisition, comprising:
Obtain gray scale point different between multiple described grayscale images;
Any image in multiple described images is divided, the region of multiple area equations is obtained;
Selection is greater than the region of the first preset threshold comprising the number of different gray scale points;
Obtain the different gray scale points for including in the selected region.
Preferably, which is characterized in that different gray scales point between multiple grayscale images described in the acquisition, comprising:
Obtain the gray value of the co-located gray scale point between any two grayscale images;
If the gray value of the co-located gray scale point is different, the co-located gray scale point is made
The different gray scale point between two grayscale images.
Preferably, described corresponding on the terminal screen according to the different pixels point acquisition different pixels point
Operating body, comprising:
The different pixels point is mapped on the terminal screen, obtains the different pixels point in the terminal screen
On mapping point;
Obtain the operating body that the number comprising the mapping point is more than the second preset threshold.
It is preferably, described to execute the corresponding operation of the operating body, comprising:
If getting the operating body for the first time, start timing, before the time of timing is more than preset time, such as
The number that fruit obtains the operating body reaches preset times, then executes the corresponding operation of the operating body.
In embodiments of the present invention, when user, which wants triggering terminal, executes operation, user operates in front of terminal screen
The corresponding position of body is shaken, and terminal is obtained to multiple images being continuously shot in front of terminal screen;Obtain multiple figures
Different pixels point as between;Different pixels point corresponding operating body on a terminal screen is obtained according to different pixels point;It executes
The corresponding operation of operating body.To user can not by mouse and do not contact terminal screen can trigger command to terminal,
Trigger command is increased to the approach of terminal.Also, terminal can obtain operating body by analyzing image, then execute operating body
Corresponding operation, does not pass through mouse even if user or does not contact terminal screen to ensure that, terminal can also execute operation
The corresponding operation of body.
It should be understood that it is provided by the above embodiment execute operation device execute operation when, only with above-mentioned each function
Can module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different functions
Module is completed, i.e., the internal structure of device is divided into different functional modules, described above all or part of to complete
Function.In addition, the device provided by the above embodiment for executing operation and the embodiment of the method for execution operation belong to same design,
Specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (14)
1. a kind of method for executing operation, which is characterized in that the described method includes:
It obtains to multiple images being continuously shot in front of terminal screen;
Obtain the different pixels point between multiple described images;
The different pixels point is mapped on the terminal screen, obtains the different pixels point on the terminal screen
Mapping point;
Obtain the operating body that the number comprising the mapping point is more than the second preset threshold;
Execute the corresponding operation of the operating body.
2. the method as described in claim 1, which is characterized in that the different pixels point between multiple images described in the acquisition,
Include:
Gray processing processing is carried out to every image in multiple described images, obtains multiple grayscale images;
Gray scale point different between multiple described grayscale images is obtained, using the corresponding pixel of the gray scale of acquisition point as described in
Different pixels point between multiple figures.
3. method according to claim 2, which is characterized in that every image in multiple described images carries out gray scale
Change processing, obtains multiple grayscale images, comprising:
Every image in multiple described images is compressed, multiple compressed images are obtained;
Gray processing processing is carried out to every image in multiple described compressed images, obtains multiple grayscale images.
4. method according to claim 2, which is characterized in that different gray scale between multiple grayscale images described in the acquisition
Point, using the corresponding pixel of the gray scale of acquisition point as the different pixels point between multiple described images, comprising:
Obtain gray scale point different between multiple described grayscale images;
The gray scale point for including out of image that select default object in the gray scale point of the acquisition;
Using the corresponding pixel of the selected gray scale point as the different pixels point between multiple described images.
5. method as claimed in claim 2 or 4, which is characterized in that different ash between multiple grayscale images described in the acquisition
Degree point, comprising:
Obtain gray scale point different between multiple described grayscale images;
Any image in multiple described images is divided, the region of multiple area equations is obtained;
Selection is greater than the region of the first preset threshold comprising the number of different gray scale points;
Obtain the different gray scale points for including in the selected region.
6. method as claimed in claim 2 or 4, which is characterized in that different ash between multiple grayscale images described in the acquisition
Degree point, comprising:
Obtain the gray value of the co-located gray scale point between any two grayscale images;
If the gray value of the co-located gray scale point is different, using the co-located gray scale point as institute
State gray scale point different between two grayscale images.
7. the method as described in claim 1, which is characterized in that described to execute the corresponding operation of the operating body, comprising:
If getting the operating body for the first time, start timing, before the time of timing is more than preset time, if obtained
It takes the number of the operating body to reach preset times, then executes the corresponding operation of the operating body.
8. a kind of device for executing operation, which is characterized in that described device includes:
First obtains module, for obtaining to multiple images being continuously shot in front of terminal screen;
Second obtains module, for obtaining the different pixels point between multiple described images;
Third obtains module, comprising: map unit is obtained for the different pixels point to be mapped to the terminal screen
Mapping point of the different pixels point on the terminal screen;Second acquisition unit includes the mapping point for obtaining
Number is more than the operating body of the second preset threshold;
Execution module, for executing the corresponding operation of the operating body.
9. device as claimed in claim 8, which is characterized in that described second obtains module, comprising:
Processing unit obtains multiple grayscale images for carrying out gray processing processing to every image in multiple described images;
First acquisition unit, for obtaining gray scale point different between multiple described grayscale images, by the gray scale point pair of the acquisition
The pixel answered is as the different pixels point between multiple described figures.
10. device as claimed in claim 9, which is characterized in that the processing unit, comprising:
It compresses subelement and obtains multiple compressed images for compressing to every image in multiple described images;
Subelement is handled, for carrying out gray processing processing to every image in multiple described compressed images, obtains multiple
Grayscale image.
11. device as claimed in claim 9, which is characterized in that the first acquisition unit, comprising:
First obtains subelement, for obtaining gray scale point different between multiple described grayscale images;
Second obtains subelement, the gray scale point for including out of image that select default object in the gray scale of acquisition point;
First is used as subelement, for using the corresponding pixel of the selected gray scale point as described between multiple images not
Same pixel.
12. the device as described in claim 9 or 11, which is characterized in that the first acquisition unit, comprising:
Third obtains subelement, for obtaining gray scale point different between multiple described grayscale images;
It divides subelement and obtains multiple area equations for dividing to any image in multiple described images
Region;
Subelement is selected, for selecting the number comprising different gray scale points to be greater than the region of the first preset threshold;
4th obtains subelement, for obtaining the different gray scale points for including in the selected region.
13. the device as described in claim 9 or 11, which is characterized in that the first acquisition unit, comprising:
5th obtains subelement, for obtaining the gray value of the co-located gray scale point between any two grayscale images;
Second is used as subelement, if the gray value for the co-located gray scale point is different, described will be located at same
The gray scale point of one position is as gray scale point different between two grayscale images.
14. device as claimed in claim 8, which is characterized in that
The execution module starts timing if getting the operating body for first time, is more than pre- in the time of timing
If before the time, if the number for obtaining the operating body reaches preset times, executing the corresponding operation of the operating body.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410354173.3A CN105278664B (en) | 2014-07-24 | 2014-07-24 | A kind of method and apparatus executing operation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410354173.3A CN105278664B (en) | 2014-07-24 | 2014-07-24 | A kind of method and apparatus executing operation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105278664A CN105278664A (en) | 2016-01-27 |
CN105278664B true CN105278664B (en) | 2019-09-27 |
Family
ID=55147829
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410354173.3A Active CN105278664B (en) | 2014-07-24 | 2014-07-24 | A kind of method and apparatus executing operation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105278664B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662460A (en) * | 2012-03-05 | 2012-09-12 | 清华大学 | Non-contact control device of mobile terminal and control method thereof |
CN102722242A (en) * | 2012-05-21 | 2012-10-10 | 奇智软件(北京)有限公司 | Method and device for operating touch screen of electronic equipment |
CN103616950A (en) * | 2013-11-28 | 2014-03-05 | Tcl集团股份有限公司 | Page turning method and device and electronic device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101184460B1 (en) * | 2010-02-05 | 2012-09-19 | 연세대학교 산학협력단 | Device and method for controlling a mouse pointer |
-
2014
- 2014-07-24 CN CN201410354173.3A patent/CN105278664B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662460A (en) * | 2012-03-05 | 2012-09-12 | 清华大学 | Non-contact control device of mobile terminal and control method thereof |
CN102722242A (en) * | 2012-05-21 | 2012-10-10 | 奇智软件(北京)有限公司 | Method and device for operating touch screen of electronic equipment |
CN103616950A (en) * | 2013-11-28 | 2014-03-05 | Tcl集团股份有限公司 | Page turning method and device and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN105278664A (en) | 2016-01-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104636047B (en) | The method, apparatus and touch screen terminal operated to the object in list | |
CN106357897B (en) | The acquisition methods and device of drop information | |
CN105243638B (en) | A kind of method and apparatus uploading image | |
CN104915091B (en) | A kind of method and apparatus for the prompt information that Shows Status Bar | |
CN105808060B (en) | A kind of method and apparatus of playing animation | |
CN104238893B (en) | A kind of method and apparatus that video preview picture is shown | |
CN104036536B (en) | The generation method and device of a kind of stop-motion animation | |
CN103455407A (en) | Mobile terminal CPU (Central Processing Unit) occupation rate monitoring method and device and mobile terminal | |
CN104159140B (en) | A kind of methods, devices and systems of Video processing | |
CN109388304A (en) | A kind of screenshotss method and terminal device | |
CN103455256A (en) | Method and terminal for rotating display picture of screen | |
CN104021129B (en) | Show the method and terminal of group picture | |
CN104991699B (en) | A kind of method and apparatus of video display control | |
CN104820546B (en) | Function information methods of exhibiting and device | |
CN104007887B (en) | The method and terminal that floating layer is shown | |
CN108415641A (en) | A kind of processing method and mobile terminal of icon | |
CN104915625B (en) | A kind of method and device of recognition of face | |
CN104660769B (en) | A kind of methods, devices and systems for adding associated person information | |
CN105739856B (en) | A kind of method and apparatus executing Object Operations processing | |
CN105700620B (en) | A kind of method and apparatus executing control instruction | |
CN105807908B (en) | A kind of method and apparatus of switching working mode | |
CN105120158B (en) | The image pickup method and device of mobile terminal | |
CN105992001B (en) | A kind of pair of picture carries out the method and device of quantification treatment | |
CN107396193B (en) | The method and apparatus of video playing | |
CN107454270B (en) | mobile terminal screen brightness control method, device and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |