CN104580884A - Shooting method and terminal - Google Patents

Shooting method and terminal Download PDF

Info

Publication number
CN104580884A
CN104580884A CN201410724772.XA CN201410724772A CN104580884A CN 104580884 A CN104580884 A CN 104580884A CN 201410724772 A CN201410724772 A CN 201410724772A CN 104580884 A CN104580884 A CN 104580884A
Authority
CN
China
Prior art keywords
camera
state
image
physical button
terminal
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.)
Granted
Application number
CN201410724772.XA
Other languages
Chinese (zh)
Other versions
CN104580884B (en
Inventor
吴磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410724772.XA priority Critical patent/CN104580884B/en
Publication of CN104580884A publication Critical patent/CN104580884A/en
Application granted granted Critical
Publication of CN104580884B publication Critical patent/CN104580884B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The embodiment of the invention discloses a shooting method. The shooting method comprises the following steps: starting a camera when a detection result shows that target clicking is conducted on a default entity keystroke, wherein the default entity keystroke comprises an entity keystroke or the combination of a plurality of entity keystrokes; shooting a current view-finding picture through the camera to obtain a target image; saving the target image obtained according to the view-finding picture into a local default route; outputting prompt information. The embodiment of the invention further discloses a terminal. The method and the terminal provided by embodiment of the invention are simple to operate, fast in shooting, and capable of improving the shooting efficiency.

Description

A kind of image pickup method and terminal
Technical field
The present invention relates to field of terminal technology, particularly relate to a kind of image pickup method and terminal.
Background technology
Along with the development of terminal technology, the terminal such as mobile phone, IPAD is widely used, and such as, mobile phone has become a requisite part in people's life; Meanwhile, along with popularizing of various terminal, end product also more and more trends towards intellectuality, and the expectation of user to terminal is also more and more higher.
Wherein, shooting is a critical function in terminal, and at present, most of terminal is all built-in, and take softwares, and user can realize shooting by these shooting softwares, and its shooting process is generally: user's triggering terminal bright screen, and unlocks terminal; Search the shortcut icon of shooting software, and start shooting software, shooting software shows picture of finding a view on a terminal screen; Click shooting push button and complete shooting.As can be seen here, complex operation, actual to complete the time that shooting spends longer from needing to photograph for user, and user is easy to miss the key picture of really wanting to capture, and cannot take fast.
Summary of the invention
The embodiment of the present invention provides a kind of image pickup method and terminal, simple to operate, can take fast, improves shooting efficiency.
First aspect, the embodiment of the present invention provides a kind of image pickup method, comprising:
When the target click action that default physical button occurs being detected, start camera; Wherein, described default physical button comprises the combination of a physical button or multiple physical button;
By the picture of finding a view that described camera shooting is current, obtain target image;
The target image obtained for described picture of finding a view is stored in local preset path;
Export information.
In conjunction with first aspect, in the first possible implementation of first aspect, before described startup camera, described method also comprises:
Load the first thread and the second thread;
Described when the target trigger event that default physical button occurs being detected, start camera, comprising:
When monitoring by described first thread the target click action that default physical button occurs, the content update in preset state being identified is the first identification information; Wherein, described preset state mark is used to indicate and whether starts described camera execution shooting operation;
When the content in being monitored described preset state by described second thread and identifying is the first identification information, start camera.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, described the find a view picture current by described camera shooting, after obtaining target image, described method also comprises:
Described camera is closed by described second thread;
Content update in described preset state being identified is the second identification information.
In conjunction with any one possible implementation above-mentioned of first aspect or first aspect, in the third possible implementation of first aspect, before described startup camera, described method also comprises:
The current residing operating state of sense terminals, described operating state comprises screen lock state and non-screen lock state;
If described operating state is screen lock state, perform the step of described startup camera.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, after the current residing operating state of described sense terminals, described method also comprises:
If described operating state is non-screen lock state, obtain the using state of described camera, described using state comprises idle condition and busy condition;
If described using state is idle condition, perform the step of described startup camera.
In conjunction with first aspect, in the 5th kind of possible implementation of first aspect, described the find a view picture current by described camera shooting, obtains target image, comprising:
Image is opened for the picture photographing N that finds a view in described camera;
Delete the front M that described N opens in image and open image, obtaining target image is that described N opens remaining N-M in image and opens image; Wherein N>M.
Second aspect, the embodiment of the present invention provides a kind of terminal, comprising:
Starting module, for when the target click action that default physical button occurs being detected, starting camera; Wherein, described default physical button comprises the combination of a physical button or multiple physical button;
Taking module, for taking current picture of finding a view by described camera, obtains target image;
Memory module, for being stored in local preset path by the target image obtained for described picture of finding a view;
Output module, for exporting information.
In conjunction with second aspect, in the first possible implementation of second aspect, described terminal also comprises:
Load-on module, for loading the first thread and the second thread;
Described startup module specifically for:
When monitoring by described first thread the target click action that default physical button occurs, the content update in preset state being identified is the first identification information; Wherein, described preset state mark is used to indicate and whether starts described camera execution shooting operation;
When the content in being monitored described preset state by described second thread and identifying is the first identification information, start camera.
In conjunction with the first possible implementation of second aspect, in the implementation that the second of first aspect is possible, described terminal also comprises:
Closing module, for closing described camera by described second thread;
Update module is the second identification information for the content update in described preset state being identified.
In conjunction with any one possible implementation above-mentioned of second aspect or second aspect, in the third possible implementation of second aspect, described terminal also comprises:
Detection module, for when the target click action that default physical button occurs being detected, the current residing operating state of sense terminals, described operating state comprises screen lock state and non-screen lock state;
Described startup module, if be screen lock state for described operating state, starts camera.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect, described terminal also comprises:
Acquisition module, if be non-screen lock state for described operating state, obtain the using state of described camera, described using state comprises idle condition and busy condition;
Described startup module, if be idle condition for described using state, starts camera.
In conjunction with the first possible implementation of second aspect, in the 5th kind of possible implementation of second aspect, described taking module specifically for:
Image is opened for the picture photographing N that finds a view in described camera;
Delete the front M that described N opens in image and open image, obtaining target image is that described N opens remaining N-M in image and opens image; Wherein N>M.
Implement the embodiment of the present invention, by sense terminals being preset the click action that physical button occurs, if detect and target click action occur default physical button, then start camera to take current picture of finding a view, and automatically the captured target image obtained is stored in preset path, take rear output information, to inform that user terminal is successfully completed candid photograph.Known, adopt the embodiment of the present invention, in whole shooting process, user intervention is few, simple to operate, can in case of emergency take fast, can improve shooting efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of image pickup method that the embodiment of the present invention provides;
Fig. 2 is another schematic flow sheet of a kind of image pickup method that the embodiment of the present invention provides;
Fig. 3 is the another schematic flow sheet of a kind of image pickup method that the embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of terminal that the embodiment of the present invention provides;
Fig. 5 is another structural representation of a kind of terminal that the embodiment of the present invention provides;
Fig. 6 is the another structural representation of a kind of terminal that the embodiment of the present invention provides;
Fig. 7 is a structural representation again of a kind of terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments providing a kind of image pickup method and terminal, when the target click action that default physical button occurs being detected, starting camera; By the picture of finding a view that described camera shooting is current, obtain target image; The target image obtained for described picture of finding a view is stored in local preset path; Export information, to inform user terminal for the current shooting of having found a view of camera.Adopt the embodiment of the present invention, in whole shooting process, user only need trigger default physical button, simple to operate, can in case of emergency take fast, can improve shooting efficiency.
What deserves to be explained is, the terminal that the embodiment of the present invention is mentioned to can comprise the miscellaneous equipments such as mobile phone, IPAD, filming apparatus, concrete, the embodiment of the present invention is not restricted, and every equipment possessing camera and shoot function all can as the terminal in the embodiment of the present invention.A kind of image pickup method provided below in conjunction with accompanying drawing 1-accompanying drawing 7 pairs of embodiment of the present invention and terminal describe in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of image pickup method that the embodiment of the present invention provides, and in embodiments of the present invention, the method can comprise the following steps.
S101: when the target click action that default physical button occurs being detected, starts camera; Wherein, described default physical button comprises the combination of a physical button or multiple physical button.
In specific implementation, default physical button can be any one or more physical button in terminal, and such as, volume increases key, volume reduces key or power key etc., and concrete, the embodiment of the present invention is not restricted.User can produce different click action by clicking physical button, as single is clicked, double-clicks, clicked for continuous three times; When terminal detects and physical button occurs click action, identify the particular type of click action, if the click action that physical button occurs is default target click action, then illustrate that user wishes that terminal is taken fast, therefore, starts camera automatically.
For convenience of understanding, suppose that presetting physical button is the combination that volume increases key and volume minimizing key, target click action is that described two buttons are simultaneously clicked, then when user presses volume increase key and volume reduces key simultaneously, or when in preset duration, volume increase key and volume minimizing key are pressed, terminal detects and target click action occurs default physical button, thus starts camera.What deserves to be explained is, at present, there is dual camera in a lot of terminal, such as, mobile phone, mobile phone generally includes front-facing camera and post-positioned pick-up head, therefore, in specific implementation, can arrange one of them camera is the camera that acquiescence starts, be assumed to be post-positioned pick-up head, then, when terminal detects the target click action that default physical button occurs, automatically start post-positioned pick-up head.
S102: by the picture of finding a view that described camera shooting is current, obtain target image.
After starting camera, this camera performs shooting action at least one times for current picture of finding a view, thus, the target image after taking for current picture of finding a view can be obtained fast.In specific implementation, consider the situation that may there is black frame after camera just starts, as a kind of optimal way of the embodiment of the present invention, after camera starts, camera can open image with preset frame rate for the current picture photographing N that finds a view, and deletes the front M that described N opens in image and opens image, wherein, N>M, so obtaining target image is that described N to open in image remaining N-M and opens image.Such as, suppose that preset frame rate is 20fps (Frames PerSecond, transmission frame number per second), N=20, M=17, after then starting camera, 20 images can be obtained for current picture photographing of finding a view in 1 second, for avoiding obtained target image to be entirely black invalid frame, delete front 17 images, therefore, 3 can be obtained to open one's eyes wide logo image.What deserves to be explained is, in specific implementation, preset frame rate, N, M can need to set in conjunction with self, and the embodiment of the present invention is not restricted this.
What deserves to be explained is, because whole shooting process only needs user to trigger default physical button, therefore, the preview window is generated without the need to the picture of finding a view for camera in specific implementation, like this, when terminal is in screen lock state, carries out unblock get final product snapshots without the need to lighting screen; When terminal is in non-screen lock state, without the need to taking screen display the preview window, the operation of user to other interface in terminal in whole shooting process, can not be affected.
S103: the target image obtained for described picture of finding a view is stored in local preset path.
After carrying out shooting acquisition target image for the picture of finding a view that camera is current, automatically target image is stored in local preset path, when user expects to consult these target images, can directly goes to search in preset path.Known, whole shooting process carries out preview without the need to lighting screen or taking the picture of finding a view of screen to camera, can take fast.
S104: export information.
After having taken, export information, reminding subscriber terminal completes shooting.In specific implementation, can export information by modes such as vibration, sound and light, concrete, the embodiment of the present invention is not restricted.
In the image pickup method that the embodiment of the present invention describes, when the target clicking operation that default physical button occurs being detected, start camera; By the picture of finding a view that described camera shooting is current, obtain target image; The target image obtained for described picture of finding a view is stored in local preset path; Export information, to inform that user's camera completes shooting for current picture of finding a view.Adopt the embodiment of the present invention, in whole shooting process, user only need trigger default physical button, simple to operate, can in case of emergency take fast, can improve shooting efficiency.
Refer to Fig. 2, Fig. 2 is another schematic flow sheet of a kind of image pickup method that the embodiment of the present invention provides, and in embodiments of the present invention, the method can comprise the following steps.
S201: load the first thread and the second thread.
In the embodiment of the present invention, adopt on the default physical button in the first thread detection sense terminals whether target click action occurs, adopt the second thread to start camera; In specific implementation, can be that terminal loads the first thread and the second thread when starting shooting or when terminal receives a certain instruction, concrete, the embodiment of the present invention be restricted.In specific implementation, if detected by the first thread and target click action occur default physical button, then inform the second thread by the communication mode of cross-thread, second thread is known when default physical button occurs target click action, start camera, to perform shooting operation for current picture of finding a view in the camera very first time.
Usually, the communication means of cross-thread usually can three kinds: 1) use global variable to realize inter-thread communication; 2) message is used to realize inter-thread communication; 3) CEvent class is used to realize inter-thread communication.The embodiment of the present invention is not restricted this, but as one preferred embodiment, adopt internal memory sharing mode to realize communicating of the first thread and the second cross-thread, i.e. a pre-defined global variable, different cross-threads can be communicated by the value revising global variable.
S202: when monitoring by described first thread the target click action that default physical button occurs, the content update in preset state being identified is the first identification information; Wherein, described preset state mark is used to indicate and whether starts described camera execution shooting operation.
The embodiment of the present invention pre-sets a status indicator in shared drive, and this mark is used to indicate whether start camera execution shooting operation, when this status indicator is the first default identification information, starts camera, otherwise, do not start camera.In specific implementation, the first identification information mark can be adopted to need to start camera and to take, adopt the second identification information mark not need to start camera.
In specific implementation, when monitoring by the first thread the target click action that default physical button occurs, the content update in preset state being identified by the first thread is the first identification information.Such as, suppose that the first identification information represents with " 1 ", second identification information " 0 " mark, then preset state mark adopts " 0 " and " 1 " mark whether to start camera and performs shooting operation, wherein, the second identification information " 0 " expression does not start camera, and the first identification information " 1 " represents startup camera, known, be " 0 " under the content default situations of this preset state mark.When monitoring by the first thread the target click action that default physical button occurs, the content update in preset state being identified is the first identification information, and such as, the content in preset state being identified is updated to " 1 " from " 0 ".
S203: when the content in being monitored described preset state by described second thread and identifying is the first identification information, start camera.
The mode shared by internal memory due to the first thread and the second thread is communicated, and therefore, once the first thread have updated the content in preset state mark, then the second thread immediately can know this lastest imformation.In specific implementation, when the content in being monitored preset state by the second thread and identifying is the first identification information, start camera.Such as, when the content that the second thread is known in preset state mark is " 1 ", camera is started.
S204: by the picture of finding a view that described camera shooting is current, obtain target image.
After starting camera, make camera perform shooting operation according to the shooting rule preset for current picture of finding a view, thus obtain target image.Such as, the shooting rule preset can be perform single shooting operation, and also can be perform repeatedly shooting operation according to prefixed time interval, concrete, the embodiment of the present invention be restricted.
But as one preferred embodiment, after camera starts, image is opened for the current picture photographing N that finds a view with preset frame rate, and delete the front M that described N opens in image and open image, wherein, N>M, so obtaining target image is that described N to open in image remaining N-M and opens image.
What deserves to be explained is, because whole shooting process only needs user to trigger default physical button, therefore, the preview window is generated without the need to the picture of finding a view for camera in specific implementation, like this, when terminal is in screen lock state, carries out unblock get final product snapshots without the need to lighting screen; When terminal is in non-screen lock state, without the need to taking screen display the preview window, the operation of user to other interface in terminal in whole shooting process, can not be affected.
S205: the target image obtained for described picture of finding a view is stored in local preset path.
S206: export information.
Such as, information can be exported by any one or various ways of vibrations, sound and breath light flicker.What deserves to be explained is, in specific implementation, after detecting that target that default physical button occurs clicks the complete shooting operation of action executing, can also comprise the following steps at every turn, close camera and content update in preset state being identified is the second identification information.
S207: close described camera by described second thread.
After obtaining target image by camera, in specific implementation, described camera can also be closed by the second thread, thus, reduce power consumption.
S208: the content update in described preset state being identified is the second identification information.
Such as, the content in preset state being identified is updated to " 0 " from " 1 ".
In the image pickup method that the embodiment of the present invention describes, when the target clicking operation that default physical button occurs being detected, start camera; By the picture of finding a view that described camera shooting is current, obtain target image; The target image obtained for described picture of finding a view is stored in local preset path; Export information, to inform that user's camera completes shooting for current picture of finding a view.Adopt the embodiment of the present invention, in whole shooting process, user only need trigger default physical button, simple to operate, can in case of emergency take fast, can improve shooting efficiency.
Refer to Fig. 3, Fig. 3 is the another schematic flow sheet of a kind of image pickup method that the embodiment of the present invention provides, and in embodiments of the present invention, the method can comprise the following steps.
S301: when the target click action that default physical button occurs being detected, the current residing operating state of sense terminals, described operating state comprises screen lock state and non-screen lock state.
Usually, the operating state of terminal comprises screen lock state and non-screen lock state, wherein, when terminal is in screen lock state, directly can determine that the camera in terminal is in idle condition, now, can directly start camera and take pictures; If terminal is in non-screen lock state, illustrate that user is current and handle terminal, the camera namely in terminal is likely in busy condition, and in the embodiment of the present invention, the using state of camera comprises idle condition and busy condition.Such as, user is current when using terminal to carry out the operations such as video, and camera is in busy condition.Therefore, when detecting that terminal is in non-screen lock state, needing to detect camera further and whether being in idle condition, if camera is in idle condition, then starting camera.
In specific implementation, can be detected to preset on physical button whether target click action occurs by the thread loaded, if detect and target click action occurs default physical button, the current residing operating state of sense terminals, described operating state comprises screen lock state and non-screen lock state.
S302: if described operating state is non-screen lock state, obtain the using state of described camera, described using state comprises idle condition and busy condition.
When detect default physical button there is target click action time, if the current residing operating state of terminal is non-screen lock state, then for avoiding camera conflict to use the situation causing program to be made mistakes, improve compatibility.In the embodiment of the present invention, after detecting that terminal is in non-screen lock state, can obtain the using state of camera further, wherein, the using state of camera comprises idle condition and busy condition.Such as, when camera is unoccupied, be in idle condition, when camera is occupied, be in busy condition, as terminal is running the application program that need load camera.
S303: if described using state is idle condition, starts camera.
When detect default physical button there is target click action time, if the current residing operating state of terminal is non-screen lock state, and the using state getting camera is idle condition, and explanation can start camera and take, and therefore, starts camera
S304: if described operating state is screen lock state, starts camera.
When detect default physical button there is target click action time, if the current residing operating state of terminal is screen lock state, illustrates that camera is unoccupied, can directly start camera and take.
S305: by the picture of finding a view that described camera shooting is current, obtain target image.
After starting camera, make camera perform shooting operation according to the shooting rule preset for current picture of finding a view, thus obtain target image.Such as, the shooting rule preset can be perform single shooting operation, and also can be perform repeatedly shooting operation according to prefixed time interval, concrete, the embodiment of the present invention be restricted.
But as one preferred embodiment, after camera starts, image is opened for the current picture photographing N that finds a view with preset frame rate, and delete the front M that described N opens in image and open image, wherein, N>M, so obtaining target image is that described N to open in image remaining N-M and opens image.
What deserves to be explained is, because whole shooting process only needs user to trigger default physical button, therefore, the preview window is generated without the need to the picture of finding a view for camera in specific implementation, like this, when terminal is in screen lock state, carries out unblock get final product snapshots without the need to lighting screen; When terminal is in non-screen lock state, without the need to taking screen display the preview window, the operation of user to other interface in terminal in whole shooting process, can not be affected.
S306: the target image obtained for described picture of finding a view is stored in local preset path.
S307: export information.
Such as, information can be exported by any one or various ways of vibrations, sound and breath light flicker.What deserves to be explained is, in specific implementation, after detecting that the target that default physical button occurs clicks the complete shooting operation of action executing, can also camera be closed at every turn, thus, reduce power consumption.
In the image pickup method that the embodiment of the present invention describes, when the target clicking operation that default physical button occurs being detected, start camera; By the picture of finding a view that described camera shooting is current, obtain target image; The target image obtained for described picture of finding a view is stored in local preset path; Export information, to inform that user's camera completes shooting for current picture of finding a view.Adopt the embodiment of the present invention, in whole shooting process, user only need trigger default physical button, simple to operate, can in case of emergency take fast, can improve shooting efficiency.
Be apparatus of the present invention embodiment below, apparatus of the present invention embodiment and the inventive method embodiment belong to same design, for performing the method described in the inventive method embodiment.For convenience of explanation, apparatus of the present invention embodiment only illustrates the part relevant to apparatus of the present invention embodiment, and concrete ins and outs do not disclose, and please refer to the description of the inventive method embodiment, repeats no longer one by one herein.
Refer to Fig. 4, Fig. 4 is the structural representation of a kind of terminal that the embodiment of the present invention provides, and in embodiments of the present invention, this terminal can comprise: start module 101, taking module 102, memory module 103 and output module 104.
Starting module 101, for when the target click action that default physical button occurs being detected, starting camera; Wherein, described default physical button comprises the combination of a physical button or multiple physical button.
Taking module 102, for taking current picture of finding a view by described camera, obtains target image.
Memory module 103, for being stored to the target image obtained for described picture of finding a view in local preset path.
Output module 104, for exporting information.
Wherein in a kind of implementation, taking module 102 specifically for:
Image is opened for the picture photographing N that finds a view in described camera;
Delete the front M that described N opens in image and open image, obtaining target image is that described N opens remaining N-M in image and opens image; Wherein N>M.
In the terminal that the embodiment of the present invention describes, when the target clicking operation that default physical button occurs being detected, start camera; By the picture of finding a view that described camera shooting is current, obtain target image; The target image obtained for described picture of finding a view is stored in local preset path; Export information, to inform that user's camera completes shooting for current picture of finding a view.Adopt the embodiment of the present invention, in whole shooting process, user only need trigger default physical button, simple to operate, can in case of emergency take fast, can improve shooting efficiency.
Refer to Fig. 5, Fig. 5 is another structural representation of a kind of terminal that the embodiment of the present invention provides, in embodiments of the present invention, this terminal can comprise: start module 201, taking module 202, memory module 203, output module 204, load-on module 205, closing module 206 and update module 207.
Starting module 201, for when the target click action that default physical button occurs being detected, starting camera; Wherein, described default physical button comprises the combination of a physical button or multiple physical button.
Taking module 202, for taking current picture of finding a view by described camera, obtains target image.
Memory module 203, for being stored to the target image obtained for described picture of finding a view in local preset path.
Output module 204, for exporting information.
Wherein in a kind of implementation, described terminal also comprises load-on module 205, for loading the first thread and the second thread;
In above-mentioned implementation, start module 201 specifically for:
When monitoring by described first thread the target click action that default physical button occurs, the content update in preset state being identified is the first identification information; Wherein, described preset state mark is used to indicate and whether starts described camera execution shooting operation;
When the content in being monitored described preset state by described second thread and identifying is the first identification information, start camera.
In another kind of implementation, described terminal also comprises closing module 206 and update module 207, and closing module 206 is for closing described camera by described second thread; Update module 207 is for being the second identification information by the content update in described preset state mark.
In another kind of implementation, taking module 202 specifically for:
Image is opened for the picture photographing N that finds a view in described camera;
Delete the front M that described N opens in image and open image, obtaining target image is that described N opens remaining N-M in image and opens image; Wherein N>M.
In the terminal that the embodiment of the present invention describes, when the target clicking operation that default physical button occurs being detected, start camera; By the picture of finding a view that described camera shooting is current, obtain target image; The target image obtained for described picture of finding a view is stored in local preset path; Export information, to inform that user's camera completes shooting for current picture of finding a view.Adopt the embodiment of the present invention, in whole shooting process, user only need trigger default physical button, simple to operate, can in case of emergency take fast, can improve shooting efficiency.
Refer to Fig. 6, Fig. 6 is the another structural representation of a kind of terminal that the embodiment of the present invention provides, in embodiments of the present invention, this terminal can comprise: start module 301, taking module 302, memory module 303, output module 304, detection module 305 and acquisition module 306.
Starting module 301, for when the target click action that default physical button occurs being detected, starting camera; Wherein, described default physical button comprises the combination of a physical button or multiple physical button.
Taking module 302, for taking current picture of finding a view by described camera, obtains target image.
Memory module 303, for being stored to the target image obtained for described picture of finding a view in local preset path.
Output module 304, for exporting information.
Wherein in a kind of implementation, described terminal can also comprise detection module 305, for when the target click action that default physical button occurs being detected, the current residing operating state of sense terminals, described operating state comprises screen lock state and non-screen lock state;
In above-mentioned implementation, if starting module 301 is screen lock state for described operating state, start camera.
In another kind of implementation, described terminal can also comprise acquisition module 306, for when the target click action that default physical button occurs being detected, if described operating state is non-screen lock state, obtain the using state of described camera, described using state comprises idle condition and busy condition;
In above-mentioned implementation, if starting module 301 is idle condition for described using state, start camera.
In another kind of implementation, taking module 302 specifically for:
Image is opened for the picture photographing N that finds a view in described camera;
Delete the front M that described N opens in image and open image, obtaining target image is that described N opens remaining N-M in image and opens image; Wherein N>M.
In the terminal that the embodiment of the present invention describes, when the target clicking operation that default physical button occurs being detected, start camera; By the picture of finding a view that described camera shooting is current, obtain target image; The target image obtained for described picture of finding a view is stored in local preset path; Export information, to inform that user's camera completes shooting for current picture of finding a view.Adopt the embodiment of the present invention, in whole shooting process, user only need trigger default physical button, simple to operate, can in case of emergency take fast, can improve shooting efficiency.
Refer to Fig. 7, Fig. 7 is a structural representation again of a kind of terminal that the embodiment of the present invention provides.Terminal described in the present embodiment can comprise: at least one input equipment 100; At least one output equipment 200; At least one processor 300, such as CPU; With memory 400, above-mentioned input equipment 100, output equipment 200, processor 300 are connected by bus 500 with memory 400.
Wherein, input equipment 100 is specifically as follows the contact panel of terminal, comprises touch-screen and touch screen, the operational order on sense terminals contact panel; Input equipment 100 can also be the physical button in terminal, for receiving the target click action occurred for physical button of user's input; Input equipment 100 can also be the camera in terminal, for obtaining current picture of finding a view.
Output equipment 200 specifically can be the display screen of terminal, for output, display image data; Can also be flashing lamp, loudspeaker, the shaking device of terminal, for exporting information.
Memory 400 can be high-speed RAM memory, also can be non-labile memory (non-volatilememory), such as magnetic disc store.Above-mentioned memory 400 is for storing batch processing code, and above-mentioned input equipment 100, output equipment 200 and processor 300, for calling the program code stored in memory 400, perform and operate as follows:
When the target click action that default physical button occurs being detected, start camera; Wherein, described default physical button comprises the combination of a physical button or multiple physical button;
By the picture of finding a view that described camera shooting is current, obtain target image;
The target image obtained for described picture of finding a view is stored in local preset path;
Export information.
Wherein in a kind of implementation, processor 300 also comprises before starting camera:
Load the first thread and the second thread;
Described when the target trigger event that default physical button occurs being detected, start camera, comprising:
When monitoring by described first thread the target click action that default physical button occurs, the content update in preset state being identified is the first identification information; Wherein, described preset state mark is used to indicate and whether starts described camera execution shooting operation;
When the content in being monitored described preset state by described second thread and identifying is the first identification information, start camera.
In another kind of implementation, input equipment 100 takes current picture of finding a view by described camera, after obtaining target image, also comprises:
Described camera is closed by described second thread;
Content update in described preset state being identified is the second identification information.
In another kind of implementation, processor 300 also comprises before starting camera:
The current residing operating state of processor 300 sense terminals, described operating state comprises screen lock state and non-screen lock state;
If described operating state is screen lock state, start camera.
In another kind of implementation, after the current residing operating state of processor 300 sense terminals, also comprise:
If described operating state is non-screen lock state, obtain the using state of described camera, described using state comprises idle condition and busy condition;
If described using state is idle condition, start camera.
In another kind of implementation, input equipment 100 takes current picture of finding a view by described camera, obtains target image, comprising:
Image is opened for the picture photographing N that finds a view in described camera;
Delete the front M that described N opens in image and open image, obtaining target image is that described N opens remaining N-M in image and opens image; Wherein N>M.
In the technical scheme that the embodiment of the present invention describes, when the target clicking operation that default physical button occurs being detected, start camera; By the picture of finding a view that described camera shooting is current, obtain target image; The target image obtained for described picture of finding a view is stored in local preset path; Export information, to inform that user's camera completes shooting for current picture of finding a view.Adopt the embodiment of the present invention, in whole shooting process, user only need trigger default physical button, simple to operate, can in case of emergency take fast, can improve shooting efficiency.
In the description of this specification, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, not necessarily must for identical embodiment or example to the schematic representation of above-mentioned term.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this specification or example and different embodiment or example can carry out combining and combining by those skilled in the art.
The feature of the different embodiment described in this specification and different embodiment can carry out combining and combining by those skilled in the art.Module in all embodiments of the present invention or unit, universal integrated circuit can be passed through, such as CPU (Central Processing Unit, central processing unit), or realized by ASIC (ApplicationSpecific Integrated Circuit, application-specific integrated circuit (ASIC)).
Step in all embodiment methods of the present invention can be carried out order according to actual needs and be adjusted, merges and delete; Module in all embodiment device of the present invention or unit can carry out merging, divide and deleting according to actual needs.
Describe and can be understood in flow chart or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this specification, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasablely edit read-only memory (EPROM or flash memory), fiber device, and portable optic disk read-only memory (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanner to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer storage.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.
Above disclosedly be only preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (12)

1. an image pickup method, is characterized in that, comprising:
When the target click action that default physical button occurs being detected, start camera; Wherein, described default physical button comprises the combination of a physical button or multiple physical button;
By the picture of finding a view that described camera shooting is current, obtain target image;
The target image obtained for described picture of finding a view is stored in local preset path;
Export information.
2. the method for claim 1, is characterized in that, before described startup camera, described method also comprises:
Load the first thread and the second thread;
Described when the target trigger event that default physical button occurs being detected, start camera, comprising:
When monitoring by described first thread the target click action that default physical button occurs, the content update in preset state being identified is the first identification information; Wherein, described preset state mark is used to indicate and whether starts described camera execution shooting operation;
When the content in being monitored described preset state by described second thread and identifying is the first identification information, start camera.
3. method as claimed in claim 2, is characterized in that, described the find a view picture current by described camera shooting, and after obtaining target image, described method also comprises:
Described camera is closed by described second thread;
Content update in described preset state being identified is the second identification information.
4. the method as described in any one of claim 1-3, is characterized in that, before described startup camera, described method also comprises:
The current residing operating state of sense terminals, described operating state comprises screen lock state and non-screen lock state;
If described operating state is screen lock state, perform the step of described startup camera.
5. method as claimed in claim 4, is characterized in that, after the current residing operating state of described sense terminals, described method also comprises:
If described operating state is non-screen lock state, obtain the using state of described camera, described using state comprises idle condition and busy condition;
If described using state is idle condition, perform the step of described startup camera.
6. the method for claim 1, is characterized in that, described the find a view picture current by described camera shooting, obtains target image, comprising:
Image is opened for the picture photographing N that finds a view in described camera;
Delete the front M that described N opens in image and open image, obtaining target image is that described N opens remaining N-M in image and opens image; Wherein N>M.
7. a terminal, is characterized in that, comprising:
Starting module, for when the target click action that default physical button occurs being detected, starting camera; Wherein, described default physical button comprises the combination of a physical button or multiple physical button;
Taking module, for taking current picture of finding a view by described camera, obtains target image;
Memory module, for being stored in local preset path by the target image obtained for described picture of finding a view;
Output module, for exporting information.
8. terminal as claimed in claim 7, it is characterized in that, described terminal also comprises:
Load-on module, for loading the first thread and the second thread;
Described startup module specifically for:
When monitoring by described first thread the target click action that default physical button occurs, the content update in preset state being identified is the first identification information; Wherein, described preset state mark is used to indicate and whether starts described camera execution shooting operation;
When the content in being monitored described preset state by described second thread and identifying is the first identification information, start camera.
9. terminal as claimed in claim 8, it is characterized in that, described terminal also comprises:
Closing module, for closing described camera by described second thread;
Update module is the second identification information for the content update in described preset state being identified.
10. the terminal as described in any one of claim 7-9, is characterized in that, described terminal also comprises:
Detection module, for when the target click action that default physical button occurs being detected, the current residing operating state of sense terminals, described operating state comprises screen lock state and non-screen lock state;
Described startup module, if be screen lock state for described operating state, starts camera.
11. terminals as claimed in claim 10, it is characterized in that, described terminal also comprises:
Acquisition module, if be non-screen lock state for described operating state, obtain the using state of described camera, described using state comprises idle condition and busy condition;
Described startup module, if be idle condition for described using state, starts camera.
12. terminals as claimed in claim 7, is characterized in that, described taking module specifically for:
Image is opened for the picture photographing N that finds a view in described camera;
Delete the front M that described N opens in image and open image, obtaining target image is that described N opens remaining N-M in image and opens image; Wherein N>M.
CN201410724772.XA 2014-12-03 2014-12-03 A kind of image pickup method and terminal Active CN104580884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410724772.XA CN104580884B (en) 2014-12-03 2014-12-03 A kind of image pickup method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410724772.XA CN104580884B (en) 2014-12-03 2014-12-03 A kind of image pickup method and terminal

Publications (2)

Publication Number Publication Date
CN104580884A true CN104580884A (en) 2015-04-29
CN104580884B CN104580884B (en) 2018-03-27

Family

ID=53095982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410724772.XA Active CN104580884B (en) 2014-12-03 2014-12-03 A kind of image pickup method and terminal

Country Status (1)

Country Link
CN (1) CN104580884B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120158A (en) * 2015-08-25 2015-12-02 广东欧珀移动通信有限公司 Shooting method and apparatus for mobile terminal
CN105472171A (en) * 2016-01-15 2016-04-06 广东欧珀移动通信有限公司 Shooting method and device
CN105516495A (en) * 2015-12-11 2016-04-20 惠州Tcl移动通信有限公司 Method for quickly starting camera and mobile terminal
CN105824522A (en) * 2015-09-24 2016-08-03 维沃移动通信有限公司 Photographing method and mobile terminal
CN106572297A (en) * 2015-10-09 2017-04-19 佳能株式会社 Electronic apparatus and control method thereof
CN106791436A (en) * 2017-01-20 2017-05-31 深圳天珑无线科技有限公司 A kind of control method and its system of quick shooting
EP3288254A1 (en) * 2016-08-25 2018-02-28 Lg Electronics Inc. Mobile terminal and method for controlling the same
CN108418946A (en) * 2017-12-01 2018-08-17 王可 A kind of quick photographic method of mobile phone based on external interrupt and mobile phone photograph shortcut key
CN108777767A (en) * 2018-08-22 2018-11-09 Oppo广东移动通信有限公司 Photographic method, device, terminal and computer readable storage medium
CN109155817A (en) * 2016-09-14 2019-01-04 华为技术有限公司 A kind of photographic method and terminal
CN110319905A (en) * 2019-06-24 2019-10-11 厦门四信通信科技有限公司 A kind of water conservancy monitoring device, method and system
CN110351600A (en) * 2019-01-21 2019-10-18 福州友宝电子科技有限公司 A kind of method and device playing video
CN112261489A (en) * 2020-10-20 2021-01-22 北京字节跳动网络技术有限公司 Method, device, terminal and storage medium for generating video
CN115150550A (en) * 2022-06-20 2022-10-04 湖北星纪时代科技有限公司 Photographing processing method and device for terminal, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626631A (en) * 2008-07-08 2010-01-13 深圳富泰宏精密工业有限公司 System employing video calling function and method thereof
CN102594984A (en) * 2012-02-06 2012-07-18 深圳桑菲消费通信有限公司 Mobile terminal, and system and method for quickly photographing mobile terminal
CN103002152A (en) * 2012-12-06 2013-03-27 广东欧珀移动通信有限公司 Method and device for continuous shooting of mobile terminal
CN103312876A (en) * 2012-03-13 2013-09-18 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and rapid photographing realization method thereof
CN103475818A (en) * 2013-09-03 2013-12-25 小米科技有限责任公司 Shooting method and device and terminal device
CN103533161A (en) * 2013-10-08 2014-01-22 锤子科技(北京)有限公司 Rapid shooting method and device based on mobile equipment and mobile equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626631A (en) * 2008-07-08 2010-01-13 深圳富泰宏精密工业有限公司 System employing video calling function and method thereof
CN102594984A (en) * 2012-02-06 2012-07-18 深圳桑菲消费通信有限公司 Mobile terminal, and system and method for quickly photographing mobile terminal
CN103312876A (en) * 2012-03-13 2013-09-18 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and rapid photographing realization method thereof
CN103002152A (en) * 2012-12-06 2013-03-27 广东欧珀移动通信有限公司 Method and device for continuous shooting of mobile terminal
CN103475818A (en) * 2013-09-03 2013-12-25 小米科技有限责任公司 Shooting method and device and terminal device
CN103533161A (en) * 2013-10-08 2014-01-22 锤子科技(北京)有限公司 Rapid shooting method and device based on mobile equipment and mobile equipment

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120158B (en) * 2015-08-25 2018-05-04 广东欧珀移动通信有限公司 The image pickup method and device of mobile terminal
CN105120158A (en) * 2015-08-25 2015-12-02 广东欧珀移动通信有限公司 Shooting method and apparatus for mobile terminal
CN105824522A (en) * 2015-09-24 2016-08-03 维沃移动通信有限公司 Photographing method and mobile terminal
CN106572297A (en) * 2015-10-09 2017-04-19 佳能株式会社 Electronic apparatus and control method thereof
CN105516495A (en) * 2015-12-11 2016-04-20 惠州Tcl移动通信有限公司 Method for quickly starting camera and mobile terminal
CN105472171B (en) * 2016-01-15 2019-06-14 Oppo广东移动通信有限公司 A kind of image pickup method and device
CN105472171A (en) * 2016-01-15 2016-04-06 广东欧珀移动通信有限公司 Shooting method and device
EP3288254A1 (en) * 2016-08-25 2018-02-28 Lg Electronics Inc. Mobile terminal and method for controlling the same
US10834318B2 (en) 2016-09-14 2020-11-10 Huawei Technologies Co., Ltd. Automatic photographing method and terminal based on use posture
CN109155817A (en) * 2016-09-14 2019-01-04 华为技术有限公司 A kind of photographic method and terminal
CN106791436A (en) * 2017-01-20 2017-05-31 深圳天珑无线科技有限公司 A kind of control method and its system of quick shooting
CN108418946A (en) * 2017-12-01 2018-08-17 王可 A kind of quick photographic method of mobile phone based on external interrupt and mobile phone photograph shortcut key
CN108777767A (en) * 2018-08-22 2018-11-09 Oppo广东移动通信有限公司 Photographic method, device, terminal and computer readable storage medium
CN110351600A (en) * 2019-01-21 2019-10-18 福州友宝电子科技有限公司 A kind of method and device playing video
CN110319905A (en) * 2019-06-24 2019-10-11 厦门四信通信科技有限公司 A kind of water conservancy monitoring device, method and system
CN110319905B (en) * 2019-06-24 2021-01-22 厦门四信通信科技有限公司 Water conservancy monitoring equipment, method and system
CN112261489A (en) * 2020-10-20 2021-01-22 北京字节跳动网络技术有限公司 Method, device, terminal and storage medium for generating video
CN115150550A (en) * 2022-06-20 2022-10-04 湖北星纪时代科技有限公司 Photographing processing method and device for terminal, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104580884B (en) 2018-03-27

Similar Documents

Publication Publication Date Title
CN104580884A (en) Shooting method and terminal
CN108463799B (en) Flexible display of electronic device and operation method thereof
WO2019128923A1 (en) Method for controlling displaying selected object in application interface, and terminal device
WO2017005085A1 (en) Data compression method, apparatus, and terminal
CN104780316A (en) Camera starting detection method and camera starting detection device
CN107402625B (en) Touch screen scanning method and device, terminal and computer readable storage medium
RU2663709C2 (en) Method and device for data processing
CN114095776B (en) Screen recording method and electronic equipment
CN106095248A (en) A kind of application program based on mobile terminal is searched and is started method and system
JP4366746B2 (en) Information processing apparatus and method, and recording medium
US20150199058A1 (en) Information processing method and electronic device
CN104035673A (en) Object control method and relevant device
CN106879263A (en) A kind of image pickup method and mobile device
CN104410790A (en) Information processing method and electronic equipment
JP2015095219A (en) Information processor, information processing method and storage medium
CN105827834A (en) Mobile device application method and device
CN105786321A (en) Function switching method and device
CN104486553A (en) Method and terminal for taking panoramic photos
CN108958824A (en) Starting method, apparatus, electronic equipment and the storage medium of application program
EP2849058A1 (en) Method and device for displaying a message associated with an application
CN110417931B (en) Domain name resolution record acquisition method and device, computer equipment and storage medium
CN110968237B (en) Control method and device for application program, mobile terminal and storage medium
CN105488119A (en) Process finding method and device
CN116048349B (en) Picture display method and device and terminal equipment
CN104239244B (en) The method and apparatus that data to be visited are carried out with display management

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder