CN105827900A - Data processing method and electronic device - Google Patents
Data processing method and electronic device Download PDFInfo
- Publication number
- CN105827900A CN105827900A CN201610201362.6A CN201610201362A CN105827900A CN 105827900 A CN105827900 A CN 105827900A CN 201610201362 A CN201610201362 A CN 201610201362A CN 105827900 A CN105827900 A CN 105827900A
- Authority
- CN
- China
- Prior art keywords
- view data
- instruction
- image
- obtaining
- electronic equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4307—Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/432—Content retrieval operation from a local storage medium, e.g. hard-disk
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The invention relates to the field of image acquisition, and discloses a data processing method and an electronic device, for solving the technical problem of incapability of obtaining shooting materials before a user starts operation of recording a video in the prior art. The method comprises the following steps: obtaining a first instruction which indicates to carry out image acquisition; in response to the first instruction, executing the image acquisition and obtaining first image data, and storing the first image data in a first storage space; obtaining a second instruction which indicates to obtain second image data; and in response to the second instruction, obtaining the second image data from the first image data through interception, wherein the second image data at least comprises at least one image obtained before the electronic device obtains the second instruction. According to the invention, the technical effect of obtaining the second image data by use of the shooting materials before the second instruction is obtained can be realized.
Description
Technical field
The present invention relates to image acquisition field, particularly relate to a kind of data processing method and electronic equipment.
Background technology
Along with the development of science and technology, electronic technology have also been obtained development at full speed, and the kind of electronic product gets more and more, and people have also enjoyed the various facilities that development in science and technology brings.People can pass through various types of electronic equipments now, enjoys the comfortable life brought along with development in science and technology.Such as, the electronic equipments such as notebook computer, desktop computer, smart mobile phone, panel computer have become as an important ingredient in people's life, user can use the electronic equipment such as mobile phone, panel computer to listen music, to play game etc., lives the pressure brought alleviating modern fast pace.
In prior art, major part electronic equipment all comprises photographic head, thus possesses video record function.During video record, comprise the following steps: detection obtains user and starts the operation of recorded video, and electronic equipment starts recorded video;Then detection acquisition user terminates the operation of recorded video, and electronic equipment terminates recorded video.The video recorded is by starting the recorded video time and terminating the video data comprised between the recorded video time, but, in prior art there is techniques below problem in video record process: electronic equipment starts to record after acquisition user starts the operation of recorded video, and the video data after the operation that user starts recorded video can only be obtained, but, under many circumstances, shooting material before user starts the operation of recorded video is the most valuable to user, and prior art cannot obtain the shooting material before the operation that user starts recorded video.
Summary of the invention
The present invention provides a kind of data processing method and electronic equipment, to solve cannot to obtain in prior art the shooting material technical problem before the operation that user starts recorded video.
First aspect, the embodiment of the present invention provides a kind of data processing method, is applied to electronic equipment, and described method includes:
Obtaining the first instruction, described first instruction instruction carries out image acquisition;
Respond described first instruction, perform image acquisition and obtain the first view data, described first view data is saved in the first memory space;
Obtaining the second instruction, described second instruction instruction obtains the second view data;
Respond described second instruction, intercept from described first view data and obtain the second view data, wherein, described second view data at least including, described electronic equipment is obtaining at least one image obtained before described second instruction.
Optionally, described second view data includes:
At least one view data that described electronic equipment is obtained in the first preset time period before obtaining described second instruction;Or,
At least one view data that described electronic equipment is obtained in the first preset time period before obtaining described second instruction, and, at least one view data that described electronic equipment is obtained in the second preset time period after obtaining described second instruction.
Optionally, described from the first view data intercept obtain the second view data after, described method also includes:
Obtaining the 3rd instruction, described 3rd instruction instruction is extracted from described second view data and is met the view data of first condition and preserve;
Respond described 3rd instruction, from described second view data, extract the view data meeting described first condition, the described view data meeting first condition is saved in the second memory space as the 3rd view data.
Optionally, described extraction from the second view data meets the view data of described first condition, including:
Based on the first gesture obtained, intercepting the video data of correspondence from described second view data, described video data is described 3rd view data.
Optionally, described first gesture includes the first sub-gesture and the second sub-gesture, described first gesture based on acquisition, intercepts the video data of correspondence from the second view data, including:
Detection obtains the distance value between described first sub-gesture and the second sub-gesture;
According to the mapping relations between described distance value and default distance value and video progress bar length, determine the length corresponding to the progress bar of described video.
Optionally, described first gesture based on acquisition, from the second view data, intercept the video data of correspondence, including:
First hand the first of the detection described user of acquisition moves operation, using the described first end position starting point as video intercepting moving operation;
Second-hand the second of the detection described user of acquisition moves operation, using the described second end position end point as video intercepting moving operation;
The view data between described starting point and described end point is intercepted out as described video data from described second view data.
Optionally, after first hand the first of the described detection described user of acquisition moves operation, described method also includes: if be detected that first tangentially operating for described second view data, using the position corresponding on the progress bar of described second view data described first tangentially operation as the described first end position moving operation, described first tangentially operation for the described first-hand display unit relative to described electronic equipment from far near or from top to bottom move operation;And/or
After second-hand the second of the described detection described user of acquisition moves operation, described method also includes: if be detected that second tangentially operating for described second view data, using the position corresponding on the progress bar of described second view data described second tangentially operation as the described second end position moving operation, described second tangentially operation for described second-hand relative to the mobile operation from far near or from top to bottom of the display unit of described electronic equipment.
Optionally, described extraction from the second view data meets the view data of described first condition, including:
Described second view data is decomposed at least one image;
In at least one image described in judgement, whether each image comprises default feature;
Based on judged result, obtain from least one image and comprise the image of described default feature as described 3rd view data.
Optionally, instructing in described response second, intercept after obtaining the second view data from described first view data, described method also includes:
Delete the view data that described first memory space is preserved.
Optionally, the view data that described deletion the first memory space is preserved, including:
Delete all images data that described first memory space is preserved;Or
Delete described second view data being intercepted in described first memory space;Or
Delete the view data preserved in described first memory space before described electronic equipment obtains described first instruction.
Second aspect, the embodiment of the present invention provides a kind of electronic equipment, including:
First obtains module, and for obtaining the first instruction, described first instruction instruction carries out image acquisition;
First respond module, is used for responding described first instruction, performs image acquisition and obtain the first view data, described first view data is saved in the first memory space;
Second obtains module, and for obtaining the second instruction, described second instruction instruction obtains the second view data;
Second respond module, for responding described second instruction, intercept from described first view data and obtain the second view data, wherein, described second view data at least including, described electronic equipment is obtaining at least one image obtained before described second instruction.
Optionally, described electronic equipment also includes:
3rd obtains module, and for obtaining the 3rd instruction, described 3rd instruction instruction is extracted from described second view data and met the view data of first condition and preserve;
3rd respond module, is used for responding described 3rd instruction, extracts the view data meeting described first condition, as the 3rd view data, the described view data meeting first condition is saved in the second memory space from described second view data.
Optionally, described 3rd respond module, it is used for: based on the first gesture obtained, intercepting the video data of correspondence from described second view data, described video data is described 3rd view data.
Optionally, described 3rd respond module, including:
Resolving cell, for being decomposed at least one image by described second view data;
Judging unit, be used for judging described at least one image each image whether comprise default feature;
Acquiring unit, for based on judged result, obtains from least one image and comprises the image of described default feature as described 3rd view data.
The present invention has the beneficial effect that:
Due in embodiments of the present invention, it is thus achieved that the first instruction, described first instruction instruction carries out image acquisition;Respond described first instruction, perform image acquisition and obtain the first view data, described first view data is saved in the first memory space;Obtaining the second instruction, described second instruction instruction obtains the second view data;Respond described second instruction, intercept from described first view data and obtain the second view data, wherein, described second view data at least including, described electronic equipment is obtaining at least one image obtained before described second instruction.In other words, when the second instruction for obtaining the second view data being detected, the second view data can be obtained based on the first view data gathering before and preserving, thus reach the technique effect that the shooting material before obtaining the second instruction can be utilized to obtain the second view data.
Accompanying drawing explanation
Fig. 1 is the flow chart of data processing method in the embodiment of the present invention;
Fig. 2 be the embodiment of the present invention data processing method in obtain the 3rd view data flow chart;
Fig. 3 be the embodiment of the present invention data processing method in obtained the flow chart of first kind of way of the 3rd view data by first gesture;
Fig. 4 be the embodiment of the present invention data processing method in obtained the flow chart of the second way of the 3rd view data by first gesture;
The data processing method of Fig. 5 embodiment of the present invention obtains the flow chart of the another way of the 3rd view data;
Fig. 6 is the flow chart of the data processing method being applied to balance car in the embodiment of the present invention;
Fig. 7 is the structure chart of the electronic equipment in the embodiment of the present invention.
Detailed description of the invention
The present invention provides a kind of data processing method and electronic equipment, to solve cannot to obtain in prior art the shooting material technical problem before the operation that user starts recorded video.
Technical scheme in the embodiment of the present invention is to solve above-mentioned technical problem, and general thought is as follows:
Obtaining the first instruction, described first instruction instruction carries out image acquisition;Respond described first instruction, perform image acquisition and obtain the first view data, described first view data is saved in the first memory space;Obtaining the second instruction, described second instruction instruction obtains the second view data;Respond described second instruction, intercept from described first view data and obtain the second view data, wherein, described second view data at least including, described electronic equipment is obtaining at least one image obtained before described second instruction.In other words, when the second instruction for obtaining the second view data being detected, the second view data can be obtained based on the first view data gathering before and preserving, thus reach the technique effect that the shooting material before obtaining the second instruction can be utilized to obtain the second view data.
In order to be better understood from technique scheme, below by accompanying drawing and specific embodiment, technical solution of the present invention is described in detail, the specific features being to be understood that in the embodiment of the present invention and embodiment is the detailed description to technical solution of the present invention, rather than the restriction to technical solution of the present invention, in the case of not conflicting, the technical characteristic in the embodiment of the present invention and embodiment can be mutually combined.
First aspect, the embodiment of the present invention provides a kind of data processing method, refer to Fig. 1, including:
Step S101: obtain the first instruction, described first instruction instruction carries out image acquisition;
Step S102: respond described first instruction, perform image acquisition and obtain the first view data, described first view data is saved in the first memory space;
Step S103: obtain the second instruction, described second instruction instruction obtains the second view data;
Step S104: respond described second instruction, intercept and obtain the second view data from described first view data, wherein, at least includes in described second view data that described electronic equipment is obtaining at least one image obtained before described second instruction.
For example, the program is applied to possess in the electronic equipment of image collecting function, this electronic equipment can carry out image acquisition by the photographic head carried, data acquisition can also be carried out by there is the photographic head of data cube computation with this electronic equipment, this electronic equipment is for example: mobile phone, panel computer, notebook computer, balance car, unmanned plane etc., the embodiment of the present invention is not restricted.
In step S101, the first instruction can be triggered in several ways, such as: prearranged gesture, predetermined button etc., wherein, often when the control operation controlling the electronic equipment specific use state of entrance being detected, electronic equipment obtains the first corresponding instruction, specific use state for example: open state, open the state of photographic head, start the state of APP (Application: application program) of taking pictures, the state starting video recording APP etc..In such a case it is not necessary to the trigger action that user is other, it is possible to automatically gather the first view data.
In step S102, the first view data such as includes: video, image etc..If the first view data is video, then can continue Record and Save video after response the first instruction;If the first view data is image, then can be after response the first instruction, every prefixed time interval (such as: 0.001s, 0.002s, 1s, 5s etc.), just gather and obtain image and preserve, certainly, can also gather acquisition the first view data by other means, the embodiment of the present invention no longer itemizes, and is not restricted.
Wherein, when preserving the first view data, the first view data can be preserved by cache way, it is also possible to the first view data is directly stored in the hard disk of electronic equipment, and to this, the embodiment of the present invention is not restricted.Preferably, the first view data is saved in the caching of electronic equipment.
As a kind of optional embodiment, when performing image acquisition based on step S102 and obtain the first view data, described method also includes: point out for gathering the first view data.
In specific implementation process, can point out in several ways, such as: by display lamp flicker, by voice message etc., on the one hand can protect the privacy of user based on this, prevent user by typing the first view data by mistake;On the other hand, successful acquisition can be pointed out the first view data again, to prevent from there is equipment fault, the situation not having successful acquisition the first view data that causes.
In step S103, second instruction can obtain in several ways, such as: the default gesture, the pre-set button clicking on electronic equipment that produce for electronic equipment, receive the second instruction etc. that other electronic equipments send, for using which kind of mode to obtain the second instruction, the embodiment of the present invention no longer itemizes, and is not restricted.
In step S104, the second view data is equally image or video, and the embodiment of the present invention is not restricted.Second view data can comprise plurality of kinds of contents, is set forth below two kinds therein and is introduced, certainly, in specific implementation process, is not limited to following two situation.
The first, described second view data includes: at least one view data that described electronic equipment is obtained in the first preset time period before obtaining described second instruction.
For example, the first preset time period for example: 1min, 2min etc., wherein it is possible to by electronic equipment default setting, it is also possible to manually being arranged by the user of electronic equipment, the embodiment of the present invention is not restricted.
Assume at 14:00, electronic equipment detects that controlling electronic equipment is in the control instruction of opening, electronic equipment responds this control instruction and enters opening, electronic equipment produces the first instruction simultaneously, start automatic recording the first view data, electronic equipment detects the second instruction at 14:15, in this case, the second acquired view data is the view data collected before 14:15, such as: 14:14~14:15, at least one view data between 14:10~14:15 etc., certainly, above time point and time period are as just citing, the embodiment of the present invention is not restricted.
The program is often applied to image acquisition process, such as: user wishes to gather current image date at 14:14, however, it was found that mobile phone is the most at one's side, or mobile phone is not in image acquisition state, or handset response duration is longer etc., thus cause electronic equipment to obtain the second instruction and can there is a time delay, although that is to say that likely user is that 14:15 just produces the second instruction, but user wishes that gather is the view data of 14:14, in prior art, due to be can only acquisition testing to second instruction after view data, so may result in acquired image data and existing delayed, and in the embodiment of the present invention, then can collect the desired view data gathered of user accurately.
The second, described second view data includes: at least one view data that described electronic equipment is obtained in the first preset time period before obtaining described second instruction, and, at least one view data that described electronic equipment is obtained in the second preset time period after obtaining described second instruction.
For example, first preset time period is for example: 1min, 2min etc., second preset time period is for example: 2min, 5min etc., wherein, the first preset time period and the second preset time period the most both can be set by system default, it is also possible to manually set by user, and, second preset time period can not regular time section, but based on when obtaining the second view data, the operation of user and determine.
Assume at 14:00, electronic equipment detects that controlling electronic equipment is in the control instruction of opening, electronic equipment responds this control instruction and enters opening, electronic equipment produces the first instruction simultaneously, start automatic recording the first view data, electronic equipment detects the second instruction at 14:15, in this case, the second acquired view data had both comprised the view data before 14:15, also the view data after 14:15 is comprised, such as: the view data between 14:10~14:20, view data between 14:12~14:17 etc., certainly above time point and time period are also as just citing, the embodiment of the present invention is not restricted.
During the program is often applied to continuous image shooting or video acquisition, such as: user wishes continuous shooting view data at 14:14, then can there is a time delay owing to electronic equipment obtains the second instruction, the second instruction may be just obtained at 14:15, so in this case, in addition to needing to obtain the view data in the second preset time period after the second instruction, in addition it is also necessary to obtain the view data in the first preset time period before the second instruction.Based on the program, it is possible to preventing owing to acquisition the second instruction exists time delay, the second view data gathered caused is not accurate enough.
As a kind of optional embodiment, in order to save the memory space of electronic equipment, based on step S104 response the second instruction, intercepting after obtaining the second view data from described first view data, described method also includes: delete the view data that described first memory space is preserved.
In specific implementation process, the multiple view data included in the first memory space can be deleted, be set forth below three kinds therein and be introduced, certainly, in specific implementation process, be not limited to following three kinds of situations.
The first, the view data that described deletion the first memory space is preserved, including: delete all images data that described first memory space is preserved.The program can maximum possible release electronic equipment memory space.
The second, the view data that described deletion the first memory space is preserved, including: delete described second view data being intercepted in described first memory space.Owing to the second view data has been intercepted and has preserved, then follow-up this part image data of will not using again is described, thus deletes this part image data stored in the first memory space.The program ensure that electronic equipment storage has the first the most complete view data, to facilitate the follow-up use of user while the memory space of release electronic equipment.
The third, the view data that described deletion the first memory space is preserved, including: delete the view data preserved in described first memory space before described electronic equipment obtains described first instruction.Owing to the second instruction is used for obtaining and preserving the second view data, then, before explanation the second instruction, the user of electronic equipment is not intended to obtain and preserve view data, therefore can delete the part image data before the second instruction.The program, can either reduce electronic equipment as far as possible and store the memory space of the first view data, ensure that again the demand that disclosure satisfy that electronic equipment gathers view data simultaneously.
As a kind of optional embodiment, after intercepting from the first view data based on step S104 and obtaining the second view data, refer to Fig. 2, described method also includes:
Step S201: obtain the 3rd instruction, described 3rd instruction instruction is extracted from described second view data and is met the view data of first condition and preserve;
Step S202: respond described 3rd instruction, extracts the view data meeting described first condition from described second view data, as the 3rd view data, the described view data meeting first condition is saved in the second memory space.
In step S201, the view data meeting first condition can be the view data of various ways, is set forth below two kinds therein and is introduced, certainly, in specific implementation process, is not limited to following two situation.
The first, the view data meeting first condition is the view data corresponding with first gesture, in the case of this group, the 3rd view data can be obtained in the following manner: based on the first gesture obtained, intercepting the video data of correspondence from described second view data, described video data is described 3rd view data.
Wherein, first gesture can be the gesture of various ways, and then the mode intercepting the video data of correspondence from the second view data is the most different, two of which is set forth below and is introduced, certainly, in specific implementation process, be not limited to following two situation.
The most described first gesture includes the first sub-gesture and the second sub-gesture, described first gesture based on acquisition, intercepts the video data of correspondence, refer to Fig. 3 from the second view data, including:
Step S301: detection obtains the distance value between described first sub-gesture and the second sub-gesture;
Step S302: according to the mapping relations between described distance value and default distance value and video progress bar length, determine the length corresponding to the progress bar of described video.
In step S301, first sub-gesture is for example: gesture that the either hand of user produces, the second sub-gesture for example: gesture produced by the another hands of user, thus the distance value between two handss of user is the distance value between the first sub-gesture and the second sub-gesture;Or, gesture produced by two fingers of the first sub-gesture and the same hand that the second sub-gesture is user, thus the distance value between the two of the same hand of user fingers is distance value between the first sub-gesture and the second sub-gesture etc., certain first sub-gesture and the second sub-gesture can also be other gestures, the most different based on this distance value determined, the embodiment of the present invention no longer itemizes, and is not restricted.
Wherein it is possible to obtain the image corresponding to the first sub-gesture and the second sub-gesture by electronic equipment collection, thus determine the distance value between the first sub-gesture and the second sub-gesture by this image.
In step S302, the corresponding relation between distance value and the video progress bar length preset, for example: the corresponding relation between distance value scope and the video progress bar preset, as shown in table 1;This object relation can also be a linear formula, such as formula [1], and certainly, table 1 can also be other relations with the corresponding relation of formula [1] as just a citing, this corresponding relation, and the embodiment of the present invention no longer itemizes, and is not restricted.
Table 1
T=k*l ... ... ... ... ... ... ... ... [1]
Wherein, T represents the length (min) corresponding to the progress bar of video, and this length can also be other long measures, and the embodiment of the present invention is not restricted;
L represents the distance value (cm) between the first sub-gesture and the second sub-gesture, and this distance value unit can also be other unit, and the embodiment of the present invention is not restricted;
K expression linear coefficient, can set according to the actual requirements.
After the distance value obtained based on step S301 between the first sub-gesture and the second sub-gesture, directly in this corresponding relation, search the length corresponding to the progress bar being obtained with video by this distance value, such as: if this distance value is 13cm, a length of 2min corresponding to the progress bar obtaining video can be searched by the corresponding relation of table 1;The a length of 13k (min) corresponding to the progress bar obtaining video is calculated by formula [1], certainly, length corresponding to the progress bar of above video is as just citing,, distance value difference different based on this corresponding relation, the length of the progress bar of the video finally determined is the most different, the embodiment of the present invention no longer itemizes, and is not restricted.
2. described first gesture based on acquisition, intercepts the video data of correspondence from the second view data, refer to Fig. 4, including:
Step S401: first hand the first of the detection described user of acquisition moves operation, using the described first end position starting point as video intercepting moving operation;
Step S402: second-hand the second of the detection described user of acquisition moves operation, using the described second end position end point as video intercepting moving operation;
Step S403: intercept out the view data between described starting point and described end point from described second view data as described video data.
nullIn step S401,Either hand in the both hands of the first-hand for example, user of user,The first end position moving operation can be determined in several ways,Such as: after first hand the first of the described detection described user of acquisition moves operation,Described method also includes: if be detected that first tangentially operating for described second view data,Using the position corresponding on the progress bar of described second view data described first tangentially operation as the described first end position moving operation,Described first tangentially operation for the described first-hand display unit relative to described electronic equipment from far near or from top to bottom move operation,Wherein,Can be detected first-hand relative to display unit mobile operation from far near by depth camera、Detected first-hand relative to display unit mobile operation from top to bottom by photographic head.Or, detecting that first-hand stopping moves position as first end position moving operation etc..
In step S402, the second-hand of user for example: the either hand of user, second-hand with first-hand can be identical, it is also possible to different, the embodiment of the present invention is not restricted.
Again may be by various ways and determine the second end position moving operation, such as: after second-hand the second of the described detection described user of acquisition moves operation, described method also includes: if be detected that second tangentially operating for described second view data, using the position corresponding on the progress bar of described second view data described second tangentially operation as the described second end position moving operation, described second tangentially operation for described second-hand relative to the mobile operation from far near or from top to bottom of the display unit of described electronic equipment;Or, move operation using second and stop mobile position as second end position moving operation etc..
In step S403, if the 3rd instruction instructs for video extraction, then can be supplied to user as video extraction result by obtained video data;If the 3rd instruction instructs for image zooming-out, then after obtaining video data, it is also possible to this video data is decomposed at least one image, then as image zooming-out result, at least one image is supplied to user.
The second, the view data meeting first condition is the view data comprising default feature, in this case, refer to Fig. 5, can obtain the 3rd view data in the following manner:
Step S501: described second view data is decomposed at least one image;
Step S502: at least one image described in judgement, whether each image comprises default feature;
Step S503: based on judged result, obtains from least one image and comprises the image of described default feature as described 3rd view data.
In step S501, if the second view data is video, then using every frame picture of this video can as an image, it addition, using every frame picture all as after an image, can be by it directly as step S502 carries out at least one image processing;Can also therefrom every preset (such as: 3,5 etc.) just extract an image as step S502 in carry out the image that processes.If the second view data is image, then can be by this image directly as step S502 carries out the image that processes, can also in the case of it comprises multiple images, every preset (such as: 3,5 etc.) extract one as step S502 in the image that carries out processing.
In step S502, default feature for example: face, particular animals, specific landscape etc., the embodiment of the present invention is not restricted.Wherein it is possible to prestore the feature database of the image corresponding to default feature, then every image at least one image is all mated with feature database, to judge whether it comprises default feature.Can be automatically set by system it addition, preset feature, it is also possible to being manually set by user, the embodiment of the present invention is not restricted.
In step S503, the image that the image comprising default feature often collects desired by user, so can gather acquisition view data more accurately based on the program.
In specific implementation process, second memory space is for example: the local spatial of electronic equipment, the memory space etc. of other equipment, such as: electronic equipment is after obtaining the 3rd view data, this locality can be stored in, send it to high in the clouds, be sent to other electronic equipments etc., wherein, if the 3rd view data is sent to other equipment by electronic equipment, in order to ensure the safety of the 3rd view data, the 3rd view data can be taked certain encryption mechanism.
In order to enable those skilled in the art further to understand the data processing method that the embodiment of the present invention is introduced, as a example by balance car being applied in this way below, it is introduced.
Refer to Fig. 6, this data processing method being applied to balance car comprises the following steps:
Step S601: balance car detects that user controls the operation of its motion, responds this operation and then moves according to desired guiding trajectory, and balance car produces the first instruction based on this operation simultaneously;
Step S602: balance car responds this first instruction, and then records the first view data by the photographic head of balance car, and caches the first view data.Simultaneously corresponding on balance car LED lamp starts flicker, to point out recording the first view data;
Step S603: balance car detects that user opens video recording application program, and click on the operation of record button, then initial time based on video recording operation and end time produce the second instruction;
Step S604: balance car response the second instruction, and then obtain the first view data from caching, and from the first view data, intercept out the second view data;
Step S605: the second view data is supplied to user by display unit by balance car;
Step S606: balance car detects the first gesture that the right hand of user produces at display unit, determine based on first gesture and intercept the starting point corresponding to the 3rd view data and end point, first gesture includes: first the right hand of user moves and produce the first tangentially operation (the first sub-gesture) before display unit, then the right hand of user moves and produces the second tangentially operation (the second sub-gesture) before display unit, first position that tangentially operation is corresponding is starting point, and the second position that tangentially operation is corresponding is end point;
Step S607: balance car, based on first gesture, produces the 3rd instruction;
Step S608: balance car response the 3rd instruction, extracts the video data between starting point and end point from the second view data, and this video data is the 3rd view data.
Second aspect, based on same inventive concept, the embodiment of the present invention provides a kind of electronic equipment, refer to Fig. 7, including:
First obtains module 70, and for obtaining the first instruction, described first instruction instruction carries out image acquisition;
First respond module 71, is used for responding described first instruction, performs image acquisition and obtain the first view data, described first view data is saved in the first memory space;
Second obtains module 72, and for obtaining the second instruction, described second instruction instruction obtains the second view data;
Second respond module 73, for responding described second instruction, intercept from described first view data and obtain the second view data, wherein, described second view data at least including, described electronic equipment is obtaining at least one image obtained before described second instruction.
Optionally, described second view data includes:
At least one view data that described electronic equipment is obtained in the first preset time period before obtaining described second instruction;Or,
At least one view data that described electronic equipment is obtained in the first preset time period before obtaining described second instruction, and, at least one view data that described electronic equipment is obtained in the second preset time period after obtaining described second instruction.
Optionally, described electronic equipment also includes:
3rd obtains module, and for obtaining the 3rd instruction, described 3rd instruction instruction is extracted from described second view data and met the view data of first condition and preserve;
3rd respond module, is used for responding described 3rd instruction, extracts the view data meeting described first condition, as the 3rd view data, the described view data meeting first condition is saved in the second memory space from described second view data.
Optionally, described 3rd respond module, it is used for: based on the first gesture obtained, intercepting the video data of correspondence from described second view data, described video data is described 3rd view data.
Optionally, described first gesture includes the first sub-gesture and the second sub-gesture, described 3rd respond module, including:
First detector unit, for detecting the distance value obtained between described first sub-gesture and the second sub-gesture;
Determine unit, for according to the mapping relations between described distance value and default distance value and video progress bar length, determining the length corresponding to the progress bar of described video.
Optionally, described 3rd respond module, including:
Second detector unit, moves operation, using the described first end position starting point as video intercepting moving operation for detecting first hand the first of the described user of acquisition;
3rd detector unit, moves operation, using the described second end position end point as video intercepting moving operation for detecting second-hand the second of the described user of acquisition;
Interception unit, for intercepting out the view data between described starting point and described end point as described video data from described second view data.
Optionally, described second detector unit, it is additionally operable to: if be detected that first tangentially operating for described second view data, using the position corresponding on the progress bar of described second view data described first tangentially operation as the described first end position moving operation, described first tangentially operation for the described first-hand display unit relative to described electronic equipment from far near or from top to bottom move operation;And/or
Described 3rd detector unit, it is additionally operable to: if be detected that second tangentially operating for described second view data, using the position corresponding on the progress bar of described second view data described second tangentially operation as the described second end position moving operation, described second tangentially operation for described second-hand relative to the mobile operation from far near or from top to bottom of the display unit of described electronic equipment.
Optionally, described 3rd respond module, including:
Resolving cell, for being decomposed at least one image by described second view data;
Judging unit, be used for judging described at least one image each image whether comprise default feature;
Acquiring unit, for based on judged result, obtains from least one image and comprises the image of described default feature as described 3rd view data.
Optionally, described electronic equipment also includes:
Removing module, in response the second instruction, intercepting after obtaining the second view data, delete the view data that described first memory space is preserved from described first view data.
Optionally, described removing module, it is used for:
Delete all images data that described first memory space is preserved;Or
Delete described second view data being intercepted in described first memory space;Or
Delete the view data preserved in described first memory space before described electronic equipment obtains described first instruction.
The electronic equipment introduced due to second aspect present invention; the electronic equipment that the data processing method introduced by implementing embodiment of the present invention first aspect is used; the data processing method introduced based on embodiment of the present invention first aspect; those skilled in the art will appreciate that concrete structure and the deformation of electronic equipment; so not repeating them here; the electronic equipment that this data processing method of every enforcement is used, broadly falls into the scope that the embodiment of the present invention to be protected.
The one or more embodiment of the present invention, at least has the advantages that
Due in embodiments of the present invention, it is thus achieved that the first instruction, described first instruction instruction carries out image acquisition;Respond described first instruction, perform image acquisition and obtain the first view data, described first view data is saved in the first memory space;Obtaining the second instruction, described second instruction instruction obtains the second view data;Respond described second instruction, intercept from described first view data and obtain the second view data, wherein, described second view data at least including, described electronic equipment is obtaining at least one image obtained before described second instruction.In other words, when the second instruction for obtaining the second view data being detected, the second view data can be obtained based on the first view data gathering before and preserving, thus reach the technique effect that the shooting material before obtaining the second instruction can be utilized to obtain the second view data.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program.Therefore, the form of the embodiment in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware.And, the present invention can use the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.
The present invention is to describe with reference to method, equipment (system) and the flow chart of computer program according to embodiments of the present invention and/or block diagram.It should be understood that can be by the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the equipment of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces the manufacture including commander equipment, and this commander equipment realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to perform sequence of operations step on computer or other programmable devices to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides the step of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame for realization.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creative concept, then these embodiments can be made other change and amendment.So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification without departing from the spirit and scope of the present invention to the present invention.So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (14)
1. a data processing method, is applied to electronic equipment, it is characterised in that described method includes:
Obtaining the first instruction, described first instruction instruction carries out image acquisition;
Respond described first instruction, perform image acquisition and obtain the first view data, described first view data is saved in the first memory space;
Obtaining the second instruction, described second instruction instruction obtains the second view data;
Respond described second instruction, intercept from described first view data and obtain the second view data, wherein, described second view data at least including, described electronic equipment is obtaining at least one image obtained before described second instruction.
2. the method for claim 1, it is characterised in that described second view data includes:
At least one view data that described electronic equipment is obtained in the first preset time period before obtaining described second instruction;Or,
At least one view data that described electronic equipment is obtained in the first preset time period before obtaining described second instruction, and, at least one view data that described electronic equipment is obtained in the second preset time period after obtaining described second instruction.
3. the method for claim 1, it is characterised in that described from the first view data intercept obtain the second view data after, described method also includes:
Obtaining the 3rd instruction, described 3rd instruction instruction is extracted from described second view data and is met the view data of first condition and preserve;
Respond described 3rd instruction, from described second view data, extract the view data meeting described first condition, the described view data meeting first condition is saved in the second memory space as the 3rd view data.
Method the most according to claim 3, it is characterised in that described extraction from the second view data meets the view data of described first condition, including:
Based on the first gesture obtained, intercepting the video data of correspondence from described second view data, described video data is described 3rd view data.
5. method as claimed in claim 4, it is characterised in that described first gesture includes the first sub-gesture and the second sub-gesture, described first gesture based on acquisition, intercepts the video data of correspondence from the second view data, including:
Detection obtains the distance value between described first sub-gesture and the second sub-gesture;
According to the mapping relations between described distance value and default distance value and video progress bar length, determine the length corresponding to the progress bar of described video.
6. method as claimed in claim 4, it is characterised in that described first gesture based on acquisition, intercepts the video data of correspondence from the second view data, including:
First hand the first of the detection described user of acquisition moves operation, using the described first end position starting point as video intercepting moving operation;
Second-hand the second of the detection described user of acquisition moves operation, using the described second end position end point as video intercepting moving operation;
The view data between described starting point and described end point is intercepted out as described video data from described second view data.
7. method as claimed in claim 6, it is characterized in that, after first hand the first of the described detection described user of acquisition moves operation, described method also includes: if be detected that first tangentially operating for described second view data, using the position corresponding on the progress bar of described second view data described first tangentially operation as the described first end position moving operation, described first tangentially operation for the described first-hand display unit relative to described electronic equipment from far near or from top to bottom move operation;And/or
After second-hand the second of the described detection described user of acquisition moves operation, described method also includes: if be detected that second tangentially operating for described second view data, using the position corresponding on the progress bar of described second view data described second tangentially operation as the described second end position moving operation, described second tangentially operation for described second-hand relative to the mobile operation from far near or from top to bottom of the display unit of described electronic equipment.
8. method as claimed in claim 3, it is characterised in that described extract the view data meeting described first condition from the second view data, including:
Described second view data is decomposed at least one image;
In at least one image described in judgement, whether each image comprises default feature;
Based on judged result, obtain from least one image and comprise the image of described default feature as described 3rd view data.
9. the method as described in claim 1-8 is arbitrary, it is characterised in that instruct in described response second, intercepts after obtaining the second view data from described first view data, and described method also includes:
Delete the view data that described first memory space is preserved.
10. method as claimed in claim 9, it is characterised in that the view data that described deletion the first memory space is preserved, including:
Delete all images data that described first memory space is preserved;Or
Delete described second view data being intercepted in described first memory space;Or
Delete the view data preserved in described first memory space before described electronic equipment obtains described first instruction.
11. 1 kinds of electronic equipments, it is characterised in that including:
First obtains module, and for obtaining the first instruction, described first instruction instruction carries out image acquisition;
First respond module, is used for responding described first instruction, performs image acquisition and obtain the first view data, described first view data is saved in the first memory space;
Second obtains module, and for obtaining the second instruction, described second instruction instruction obtains the second view data;
Second respond module, for responding described second instruction, intercept from described first view data and obtain the second view data, wherein, described second view data at least including, described electronic equipment is obtaining at least one image obtained before described second instruction.
12. electronic equipments as claimed in claim 11, it is characterised in that described electronic equipment also includes:
3rd obtains module, and for obtaining the 3rd instruction, described 3rd instruction instruction is extracted from described second view data and met the view data of first condition and preserve;
3rd respond module, is used for responding described 3rd instruction, extracts the view data meeting described first condition, as the 3rd view data, the described view data meeting first condition is saved in the second memory space from described second view data.
13. electronic equipments according to claim 12, it is characterised in that described 3rd respond module, are used for: based on the first gesture obtained, intercepting the video data of correspondence from described second view data, described video data is described 3rd view data.
14. electronic equipments as claimed in claim 12, it is characterised in that described 3rd respond module, including:
Resolving cell, for being decomposed at least one image by described second view data;
Judging unit, be used for judging described at least one image each image whether comprise default feature;
Acquiring unit, for based on judged result, obtains from least one image and comprises the image of described default feature as described 3rd view data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610201362.6A CN105827900A (en) | 2016-03-31 | 2016-03-31 | Data processing method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610201362.6A CN105827900A (en) | 2016-03-31 | 2016-03-31 | Data processing method and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105827900A true CN105827900A (en) | 2016-08-03 |
Family
ID=56525520
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610201362.6A Pending CN105827900A (en) | 2016-03-31 | 2016-03-31 | Data processing method and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105827900A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106951090A (en) * | 2017-03-29 | 2017-07-14 | 北京小米移动软件有限公司 | Image processing method and device |
CN107741781A (en) * | 2017-09-01 | 2018-02-27 | 中国科学院深圳先进技术研究院 | Flight control method, device, unmanned plane and the storage medium of unmanned plane |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002271673A (en) * | 2001-03-09 | 2002-09-20 | Fuji Photo Film Co Ltd | Electronic camera and static image recording method |
CN1501695A (en) * | 2002-11-18 | 2004-06-02 | 矽峰光电科技股份有限公司 | Method for amending internal delay in digital camera imaging |
CN101309365A (en) * | 2007-05-14 | 2008-11-19 | 索尼株式会社 | Imaging device, method of processing captured image signal and computer program |
CN102982557A (en) * | 2012-11-06 | 2013-03-20 | 桂林电子科技大学 | Method for processing space hand signal gesture command based on depth camera |
CN103747362A (en) * | 2013-12-30 | 2014-04-23 | 广州华多网络科技有限公司 | Method and device for cutting out video clip |
CN104038705A (en) * | 2014-05-30 | 2014-09-10 | 无锡天脉聚源传媒科技有限公司 | Video producing method and device |
CN104506937A (en) * | 2015-01-06 | 2015-04-08 | 三星电子(中国)研发中心 | Method and system for sharing processing of audios and videos |
-
2016
- 2016-03-31 CN CN201610201362.6A patent/CN105827900A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002271673A (en) * | 2001-03-09 | 2002-09-20 | Fuji Photo Film Co Ltd | Electronic camera and static image recording method |
CN1501695A (en) * | 2002-11-18 | 2004-06-02 | 矽峰光电科技股份有限公司 | Method for amending internal delay in digital camera imaging |
CN101309365A (en) * | 2007-05-14 | 2008-11-19 | 索尼株式会社 | Imaging device, method of processing captured image signal and computer program |
CN102982557A (en) * | 2012-11-06 | 2013-03-20 | 桂林电子科技大学 | Method for processing space hand signal gesture command based on depth camera |
CN103747362A (en) * | 2013-12-30 | 2014-04-23 | 广州华多网络科技有限公司 | Method and device for cutting out video clip |
CN104038705A (en) * | 2014-05-30 | 2014-09-10 | 无锡天脉聚源传媒科技有限公司 | Video producing method and device |
CN104506937A (en) * | 2015-01-06 | 2015-04-08 | 三星电子(中国)研发中心 | Method and system for sharing processing of audios and videos |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106951090A (en) * | 2017-03-29 | 2017-07-14 | 北京小米移动软件有限公司 | Image processing method and device |
CN107741781A (en) * | 2017-09-01 | 2018-02-27 | 中国科学院深圳先进技术研究院 | Flight control method, device, unmanned plane and the storage medium of unmanned plane |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108089788B (en) | Thumbnail display control method and mobile terminal | |
WO2019137429A1 (en) | Picture processing method and mobile terminal | |
CN108108114B (en) | A kind of thumbnail display control method and mobile terminal | |
US20140085495A1 (en) | Methods and devices for controlling camera image capture | |
KR20170076553A (en) | An apparatus for providinng privacy protection and method thereof | |
CN106165430A (en) | Net cast method and device | |
CN103019554A (en) | Command recognition method and electronic device using same | |
EP3182265B1 (en) | Mobile terminal and method for controlling the same | |
CN105549814B (en) | Photographing method based on mobile terminal and mobile terminal | |
CN109684110A (en) | Multimedia resource sharing method, device and storage medium | |
EP4109878A1 (en) | Content operation method and device, terminal, and storage medium | |
EP3641295B1 (en) | Shooting interface switching method and apparatus, and device and storage medium thereof | |
CN111159449B (en) | Image display method and electronic equipment | |
CN111669495B (en) | Photographing method, photographing device and electronic equipment | |
CN103873759B (en) | A kind of image pickup method and electronic equipment | |
CN109831704A (en) | Video clipping method, device, computer equipment and storage medium | |
CN103795910A (en) | Method and apparatus for acquiring image | |
CN107277364B (en) | Shooting method, mobile terminal and computer readable storage medium | |
CN105827900A (en) | Data processing method and electronic device | |
CN104980722A (en) | Data processing method, device and electronic device | |
CN104936003B (en) | A kind of screenshot method and device | |
CN104021215B (en) | Picture sorting method and device | |
CA2825342C (en) | Methods and devices for controlling camera image capture | |
CN112204943B (en) | Photographing method, apparatus, system, and computer-readable storage medium | |
CN110163036B (en) | Image recognition method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160803 |
|
RJ01 | Rejection of invention patent application after publication |