CN104580884B - A kind of image pickup method and terminal - Google Patents

A kind of image pickup method and terminal Download PDF

Info

Publication number
CN104580884B
CN104580884B CN201410724772.XA CN201410724772A CN104580884B CN 104580884 B CN104580884 B CN 104580884B CN 201410724772 A CN201410724772 A CN 201410724772A CN 104580884 B CN104580884 B CN 104580884B
Authority
CN
China
Prior art keywords
camera
thread
finding
terminal
view
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410724772.XA
Other languages
Chinese (zh)
Other versions
CN104580884A (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 kind of image pickup method, including:When detecting the target click action occurred on default physical button, start camera;Wherein, the default physical button includes the combination of a physical button or multiple physical buttons;By the current picture of finding a view of camera shooting, target image is obtained;The target image obtained for the picture of finding a view is stored into the preset path of local;Export prompt message.The embodiment of the invention also discloses a kind of terminal.It is simple to operate using the embodiment of the present invention, it can quickly be shot, improve shooting efficiency.

Description

A kind of image pickup method and terminal
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of image pickup method and terminal.
Background technology
With the development of terminal technology, the terminal such as mobile phone, IPAD is widely used, for example, mobile phone turns into people Live in an essential part;At the same time, as the popularization of various terminals, end product are also increasingly intended to intelligence Energyization, expectation of the user to terminal also more and more higher.
Wherein, shooting is a critical function in terminal, at present, some all built-in shooting softwares of most of terminals, User can realize shooting by these shooting softwares, and its shooting process is generally:User's triggering terminal bright screen, and terminal is entered Row unblock;The shortcut icon of shooting software is searched, and starts shooting software, shooting software shows picture of finding a view on a terminal screen Face;Click on shooting push button and complete shooting.As can be seen here, cumbersome, user photographs to actually accomplish to shoot from needs and spent Time it is longer, and user is easy to miss the key picture for really wanting to capture, and can not be rapidly performed by shooting.
The content of the invention
The embodiment of the present invention provides a kind of image pickup method and terminal, simple to operate, can quickly be shot, and improves shooting Efficiency.
In a first aspect, the embodiment of the present invention provides a kind of image pickup method, including:
When detecting the target click action occurred on default physical button, start camera;Wherein, the default reality Body button includes the combination of a physical button or multiple physical buttons;
By the current picture of finding a view of camera shooting, target image is obtained;
The target image obtained for the picture of finding a view is stored into the preset path of local;
Export prompt message.
With reference in a first aspect, in the first possible implementation of first aspect, before the startup camera, institute Stating method also includes:
Load first thread and the second thread;
It is described to start camera when detecting the target trigger event occurred on default physical button, including:
When the target click action for monitoring to occur on default physical button by the first thread, by preset state Content update in mark is the first identification information;Wherein, the preset state mark is used to indicate whether to start the shooting Head performs shooting operation;
When it is the first identification information that the content in the preset state mark is monitored by second thread, start Camera.
With reference to the first possible implementation of first aspect, in second of possible implementation of first aspect In, described that current picture of finding a view is shot by the camera, after obtaining target image, methods described also includes:
The camera is closed by second thread;
Content update during the preset state is identified is the second identification information.
With reference to first aspect or any one above-mentioned possible implementation of first aspect, in the third of first aspect In possible implementation, before the startup camera, methods described also includes:
The working condition that detection terminal is presently in, the working condition include screen lock state and non-screen lock state;
If the working condition is screen lock state, described the step of starting camera is performed.
With reference to the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect In, after the working condition that the detection terminal is presently in, methods described also includes:
If the working condition is non-screen lock state, the use state of the camera is obtained, the use state includes Idle condition and busy condition;
If the use state is idle condition, described the step of starting camera is performed.
It is described to be clapped by the camera with reference in a first aspect, in the 5th kind of possible implementation of first aspect Current picture of finding a view is taken the photograph, obtains target image, including:
For N images of picture photographing of finding a view in the camera;
Preceding M images in the N images are deleted, it is remaining N-M figures in the N images to obtain target image Picture;Wherein N>M.
Second aspect, the embodiment of the present invention provide a kind of terminal, including:
Starting module, for when detecting the target click action occurred on default physical button, starting camera;Its In, the default physical button includes the combination of a physical button or multiple physical buttons;
Taking module, for shooting current picture of finding a view by the camera, obtain target image;
Memory module, for the target image obtained for the picture of finding a view to be stored to the preset path of local In;
Output module, for exporting prompt message.
With reference to second aspect, in the first possible implementation of second aspect, the terminal also includes:
Load-on module, for loading first thread and the second thread;
The starting module is specifically used for:
When the target click action for monitoring to occur on default physical button by the first thread, by preset state Content update in mark is the first identification information;Wherein, the preset state mark is used to indicate whether to start the shooting Head performs shooting operation;
When it is the first identification information that the content in the preset state mark is monitored by second thread, start Camera.
With reference to the first possible implementation of second aspect, in second of possible implementation of first aspect In, the terminal also includes:
Closedown module, for closing the camera by second thread;
Update module, it is the second identification information for the content update during the preset state is identified.
With reference to second aspect or any one above-mentioned possible implementation of second aspect, in the third of second aspect In possible implementation, the terminal also includes:
Detection module, for when detecting the target click action occurred on default physical button, detection terminal to be current Residing working condition, the working condition include screen lock state and non-screen lock state;
The starting module, if being screen lock state for the working condition, start camera.
With reference to the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect In, the terminal also includes:
Acquisition module, if being non-screen lock state for the working condition, the use state of the camera is obtained, it is described Use state includes idle condition and busy condition;
The starting module, if being idle condition for the use state, start camera.
With reference to the first possible implementation of second aspect, in the 5th kind of possible implementation of second aspect In, the taking module is specifically used for:
For N images of picture photographing of finding a view in the camera;
Preceding M images in the N images are deleted, it is remaining N-M figures in the N images to obtain target image Picture;Wherein N>M.
Implement the embodiment of the present invention, by presetting the click action occurred on physical button in detection terminal, if detecting Target click action occurs on default physical button, then starts camera and current picture of finding a view is shot, and automatically will Captured target image is stored into preset path, and prompt message is exported after the completion of shooting, with inform user terminal into Work(is completed to capture.Understand, using the embodiment of the present invention, user intervention is few in whole shooting process, simple to operate, can be tight Quickly shot in the case of urgency, shooting efficiency can be improved.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is a kind of schematic flow sheet of image pickup method provided in an embodiment of the present invention;
Fig. 2 is a kind of another schematic flow sheet of image pickup method provided in an embodiment of the present invention;
Fig. 3 is a kind of another schematic flow sheet of image pickup method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of terminal provided in an embodiment of the present invention;
Fig. 5 is a kind of another structural representation of terminal provided in an embodiment of the present invention;
Fig. 6 is a kind of another structural representation of terminal provided in an embodiment of the present invention;
Fig. 7 is a kind of another structural representation of terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only the part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
The embodiments of the invention provide a kind of image pickup method and terminal, when detecting the target that occurs on default physical button During click action, start camera;By the current picture of finding a view of camera shooting, target image is obtained;Institute will be directed to The target image that picture of finding a view is obtained is stated to store into the preset path of local;Prompt message is exported, to inform user terminal For the current completion shooting of finding a view of camera.Using the embodiment of the present invention, in whole shooting process, user only needs to trigger Default physical button, it is simple to operate, it in case of emergency can quickly be shot, shooting efficiency can be improved.
What deserves to be explained is the terminal that the embodiment of the present invention is mentioned to can be other including mobile phone, IPAD, filming apparatus etc. Equipment, specifically, the embodiment of the present invention is not restricted, every possess camera and the equipment of shoot function and can be used as this hair Terminal in bright embodiment.Below in conjunction with accompanying drawing 1- accompanying drawings 7 to a kind of image pickup method provided in an embodiment of the present invention and terminal Describe in detail respectively.
Fig. 1 is referred to, Fig. 1 is a kind of schematic flow sheet of image pickup method provided in an embodiment of the present invention, of the invention real Apply in example, this method may comprise steps of.
S101:When detecting the target click action occurred on default physical button, start camera;Wherein, it is described Default physical button includes the combination of a physical button or multiple physical buttons.
In the specific implementation, default physical button can be any one or more physical buttons in terminal, for example, volume increases Plus key, volume reduce key or power key etc., specifically, the embodiment of the present invention is not restricted.User can by clicking on physical button To produce different click actions, such as single click on, double-click, continuous click three times;Terminal detects to be occurred on physical button During click action, the particular type of click action is identified, if the click action occurred on physical button is clicked on for default target Action, then illustrate that user wishes that terminal is quickly shot, therefore, automatic start camera.
For convenience of understanding, it is assumed that default physical button is the combination that volume increases key and volume reduces key, and target is clicked on dynamic Be clicked simultaneously as described two buttons, then when user presses volume increase key simultaneously and volume reduces key, or When volume increase key and volume reduction key are pressed in preset duration, terminal detects that target occurs on default physical button to be clicked on Action, so as to start camera.What deserves to be explained is at present, there is dual camera in many terminals, for example, mobile phone, mobile phone is usual Including front camera and rear camera, therefore, in the specific implementation, can set what one of camera started for acquiescence Camera, it is assumed that be rear camera, then when terminal detects the target click action occurred on default physical button, open automatically Dynamic rear camera.
S102:By the current picture of finding a view of camera shooting, target image is obtained.
After starting camera, the camera performs shooting action at least once for current picture of finding a view, it is thus possible to The quick target image obtained after being shot for current picture of finding a view.In the specific implementation, just start in view of camera Black frame afterwards may be present, as a kind of preferred embodiment of the embodiment of the present invention, after camera starts, camera can be with With preset frame rate for current N images of picture photographing of finding a view, the preceding M deleted in the N images opens images, wherein, N> M, it is remaining N-M images in the N images then to obtain target image.For example, it is assumed that preset frame rate is 20fps (Frames Per Second, transmission frame number per second), N=20, M=17, then after starting camera, it can be directed to and work as in 1 second Preceding picture photographing of finding a view obtains 20 images, is completely black invalid frame to avoid obtained target image, 17 figures before deletion Picture, therefore, 3 target images can be obtained.What deserves to be explained is in the specific implementation, preset frame rate, N, M can combine itself needs Set, the embodiment of the present invention is not restricted to this.
What deserves to be explained is because whole shooting process only needs the default physical button of user's triggering, it is therefore, specific real The preview window need not be generated for the picture of finding a view of camera in existing, so, when terminal is in screen lock state, without a bright screen Curtain is unlocked can snapshots;It is whole to clap without taking screen display the preview window when terminal is in non-screen lock state Operation of the user to other interfaces in terminal is not interfered with during taking the photograph.
S103:The target image obtained for the picture of finding a view is stored into the preset path of local.
After carrying out shooting acquisition target image for the current picture of finding a view of camera, target image is stored to this automatically In the preset path on ground, when user it is expected to consult these target images, it can directly go to search in preset path.Understand, entirely Shooting process need not light screen or take screen carries out preview to the picture of finding a view of camera, can be rapidly performed by shooting.
S104:Export prompt message.
After the completion of shooting, prompt message is exported, prompts user terminal to complete to shoot.In the specific implementation, can be by shaking The mode such as dynamic, sound and light exports prompt message, specifically, the embodiment of the present invention is not restricted.
In the image pickup method of description of the embodiment of the present invention, grasped when detecting that the target occurred on default physical button is clicked on When making, start camera;By the current picture of finding a view of camera shooting, target image is obtained;Described find a view will be directed to The target image that picture is obtained is stored into the preset path of local;Prompt message is exported, to inform user's camera pin Shooting is completed to current picture of finding a view.Using the embodiment of the present invention, user need to only trigger default reality in whole shooting process Body button, it is simple to operate, it in case of emergency can quickly be shot, shooting efficiency can be improved.
Fig. 2 is referred to, Fig. 2 is a kind of another schematic flow sheet of image pickup method provided in an embodiment of the present invention, in this hair In bright embodiment, this method may comprise steps of.
S201:Load first thread and the second thread.
In the embodiment of the present invention, detect whether target occurs on the default physical button in detection terminal using first thread Click action, camera is started using the second thread;In the specific implementation, can be that terminal either terminal in start receives First thread and the second thread are loaded during a certain instruction, specifically, the embodiment of the present invention is not restricted.It is if in the specific implementation, logical Cross first thread and detect generation target click action on default physical button, then inform second by the communication mode of cross-thread Thread, the second thread is known when target click action occurring on default physical button, starts camera, during so as to camera the first It is interior to perform shooting operation for current picture of finding a view.
Generally, the communication means of cross-thread generally can be with three kinds:1) inter-thread communication is realized using global variable;2) use Message realizes inter-thread communication;3) inter-thread communication is realized using CEvent classes.The embodiment of the present invention is not restricted to this, but is made For a kind of preferred embodiment, the communication of first thread and the second cross-thread is realized using memory sharing mode, i.e., it is fixed in advance An adopted global variable, different cross-threads can be communicated by changing the value of global variable.
S202:, will be pre- when the target click action for monitoring to occur on default physical button by the first thread If the content update in status indicator is the first identification information;Wherein, the preset state mark is used to indicate whether to start institute State camera and perform shooting operation.
The embodiment of the present invention pre-sets a status indicator in shared drive, and the mark is used to indicate whether that startup is taken the photograph As head execution shooting operation, when the status indicator is default first identification information, starts camera, taken the photograph conversely, not starting As head.In the specific implementation, the first identification information mark can be used to need startup camera to be shot, believed using the second mark Breath mark need not start camera.
In the specific implementation, when the target click action for monitoring to occur on default physical button by first thread, lead to The content update crossed during first thread identifies preset state is the first identification information.For example, it is assumed that the first identification information uses " 1 " Represent, the second identification information is identified with " 0 ", then preset state mark identifies whether that starting camera performs bat using " 0 " and " 1 " Operation is taken the photograph, wherein, the second identification information " 0 " represents not start camera, and the first identification information " 1 " represents to start camera, can Know, be " 0 " under the content default situations of preset state mark.Occur when monitoring to preset by first thread on physical button Target click action when, the content update during preset state is identified is the first identification information, for example, preset state is identified In content be updated to " 1 " from " 0 ".
S203:Content in monitoring that the preset state identifies by second thread is the first identification information When, start camera.
Because first thread and the second thread are communicated by way of memory sharing, therefore, once first thread is more Content in new preset state mark, then the second thread immediately would know that the fresh information.In the specific implementation, when passing through the Two threads monitor content in preset state mark when be the first identification information, startup camera.For example, when the second thread obtains The content in preset state mark is known when be " 1 ", startup camera.
S204:By the current picture of finding a view of camera shooting, target image is obtained.
After starting camera, camera is set to perform shooting behaviour for current picture of finding a view according to default shooting rule Make, so as to obtain target image.For example, default shooting rule can perform single shot operation or according to pre- If time interval performs multiple shooting operation, specifically, the embodiment of the present invention is not restricted.
But as a preferred embodiment, after camera starts, clapped with preset frame rate for current picture of finding a view N images are taken the photograph, and delete preceding M images in the N images, wherein, N>M, it is the N figures then to obtain target image The remaining N-M images as in.
What deserves to be explained is because whole shooting process only needs the default physical button of user's triggering, it is therefore, specific real The preview window need not be generated for the picture of finding a view of camera in existing, so, when terminal is in screen lock state, without a bright screen Curtain is unlocked can snapshots;It is whole to clap without taking screen display the preview window when terminal is in non-screen lock state Operation of the user to other interfaces in terminal is not interfered with during taking the photograph.
S205:The target image obtained for the picture of finding a view is stored into the preset path of local.
S206:Export prompt message.
For example, prompt message can be exported by any one or more mode that vibrations, sound and breath light flash.Value It must illustrate, in the specific implementation, for detecting that the target occurred on default physical button clicks on the complete bat of action executing every time After taking the photograph operation, it can also comprise the following steps, the content update in closing camera and identifying preset state is the second mark Information.
S207:The camera is closed by second thread.
After target image being obtained by camera, in the specific implementation, the camera can also be closed by the second thread, So as to reduce power consumption.
S208:Content update during the preset state is identified is the second identification information.
For example, the content during preset state is identified is updated to " 0 " from " 1 ".
In the image pickup method of description of the embodiment of the present invention, grasped when detecting that the target occurred on default physical button is clicked on When making, start camera;By the current picture of finding a view of camera shooting, target image is obtained;Described find a view will be directed to The target image that picture is obtained is stored into the preset path of local;Prompt message is exported, to inform user's camera pin Shooting is completed to current picture of finding a view.Using the embodiment of the present invention, user need to only trigger default reality in whole shooting process Body button, it is simple to operate, it in case of emergency can quickly be shot, shooting efficiency can be improved.
Fig. 3 is referred to, Fig. 3 is a kind of another schematic flow sheet of image pickup method provided in an embodiment of the present invention, in this hair In bright embodiment, this method may comprise steps of.
S301:When detecting the target click action occurred on default physical button, work that detection terminal is presently in Make state, the working condition includes screen lock state and non-screen lock state.
Generally, the working condition of terminal includes screen lock state and non-screen lock state, wherein, when terminal is in screen lock state When, it can directly determine that the camera in terminal is in idle condition, be taken pictures at this point it is possible to directly initiate camera;If Terminal is in non-screen lock state, illustrates that user currently manipulates terminal, i.e., the camera in terminal is likely to be in busy shape State, in the embodiment of the present invention, the use state of camera includes idle condition and busy condition.For example, user currently makes When carrying out the operation such as video with terminal, camera is in busy condition.Therefore, when detecting that terminal is in non-screen lock state, It need to further detect whether camera is in idle condition, if camera is in idle condition, start camera.
Moved in the specific implementation, can be detected by the thread loaded and target click whether occurs on default physical button Make, if detecting generation target click action, the working condition that detection terminal is presently in, the work on default physical button State includes screen lock state and non-screen lock state.
S302:If the working condition is non-screen lock state, the use state of the camera, the use state are obtained Including idle condition and busy condition.
When detecting generation target click action on default physical button, if the working condition that terminal is presently in is non- Screen lock state, then to avoid camera conflict from using the situation for causing program to malfunction, improve compatibility.In the embodiment of the present invention, After detecting that terminal is in non-screen lock state, the use state of camera can be further obtained, wherein, camera uses shape State includes idle condition and busy condition.For example, being in idle condition when camera is unoccupied, it is in when camera is occupied Busy condition, the application program of camera need to be loaded as terminal is currently running.
S303:If the use state is idle condition, start camera.
When detecting generation target click action on default physical button, if the working condition that terminal is presently in is non- Screen lock state, and the use state for getting camera is idle condition, explanation can start camera and be shot, therefore, Start camera
S304:If the working condition is screen lock state, start camera.
When detecting generation target click action on default physical button, if the working condition that terminal is presently in is lock Screen state, illustrate that camera is unoccupied, camera can be directly initiated and shot.
S305:By the current picture of finding a view of camera shooting, target image is obtained.
After starting camera, camera is set to perform shooting behaviour for current picture of finding a view according to default shooting rule Make, so as to obtain target image.For example, default shooting rule can perform single shot operation or according to pre- If time interval performs multiple shooting operation, specifically, the embodiment of the present invention is not restricted.
But as a preferred embodiment, after camera starts, clapped with preset frame rate for current picture of finding a view N images are taken the photograph, and delete preceding M images in the N images, wherein, N>M, it is the N figures then to obtain target image The remaining N-M images as in.
What deserves to be explained is because whole shooting process only needs the default physical button of user's triggering, it is therefore, specific real The preview window need not be generated for the picture of finding a view of camera in existing, so, when terminal is in screen lock state, without a bright screen Curtain is unlocked can snapshots;It is whole to clap without taking screen display the preview window when terminal is in non-screen lock state Operation of the user to other interfaces in terminal is not interfered with during taking the photograph.
S306:The target image obtained for the picture of finding a view is stored into the preset path of local.
S307:Export prompt message.
For example, prompt message can be exported by any one or more mode that vibrations, sound and breath light flash.Value It must illustrate, in the specific implementation, for detecting that the target occurred on default physical button clicks on the complete bat of action executing every time After taking the photograph operation, camera can also be closed, so as to reduce power consumption.
In the image pickup method of description of the embodiment of the present invention, grasped when detecting that the target occurred on default physical button is clicked on When making, start camera;By the current picture of finding a view of camera shooting, target image is obtained;Described find a view will be directed to The target image that picture is obtained is stored into the preset path of local;Prompt message is exported, to inform user's camera pin Shooting is completed to current picture of finding a view.Using the embodiment of the present invention, user need to only trigger default reality in whole shooting process Body button, it is simple to operate, it in case of emergency can quickly be shot, shooting efficiency can be improved.
It is apparatus of the present invention embodiment below, apparatus of the present invention embodiment belongs to same structure with the inventive method embodiment Think, for performing the method described in the inventive method embodiment.For convenience of description, apparatus of the present invention embodiment only show with The related part of apparatus of the present invention embodiment, particular technique details do not disclose, refer to the description of the inventive method embodiment, No longer repeat one by one herein.
Fig. 4 is referred to, Fig. 4 is a kind of structural representation of terminal provided in an embodiment of the present invention, in the embodiment of the present invention In, the terminal can include:Starting module 101, taking module 102, memory module 103 and output module 104.
Starting module 101, for when detecting the target click action occurred on default physical button, starting shooting Head;Wherein, the default physical button includes the combination of a physical button or multiple physical buttons.
Taking module 102, for shooting current picture of finding a view by the camera, obtain target image.
Memory module 103, for the target image obtained for the picture of finding a view to be stored to the default road of local In footpath.
Output module 104, for exporting prompt message.
In wherein a kind of implementation, taking module 102 is specifically used for:
For N images of picture photographing of finding a view in the camera;
Preceding M images in the N images are deleted, it is remaining N-M figures in the N images to obtain target image Picture;Wherein N>M.
In the terminal of description of the embodiment of the present invention, when detecting the target clicking operation that occurs on default physical button When, start camera;By the current picture of finding a view of camera shooting, target image is obtained;The picture of finding a view will be directed to The target image that face is obtained is stored into the preset path of local;Prompt message is exported, to inform that user's camera has been directed to Current picture of finding a view completes shooting.Using the embodiment of the present invention, user need to only trigger default entity in whole shooting process Button, it is simple to operate, it in case of emergency can quickly be shot, shooting efficiency can be improved.
Fig. 5 is referred to, Fig. 5 is a kind of another structural representation of terminal provided in an embodiment of the present invention, of the invention real Apply in example, the terminal can include:Starting module 201, taking module 202, memory module 203, output module 204, loading mould Block 205, closedown module 206 and update module 207.
Starting module 201, for when detecting the target click action occurred on default physical button, starting shooting Head;Wherein, the default physical button includes the combination of a physical button or multiple physical buttons.
Taking module 202, for shooting current picture of finding a view by the camera, obtain target image.
Memory module 203, for the target image obtained for the picture of finding a view to be stored to the default road of local In footpath.
Output module 204, for exporting prompt message.
In wherein a kind of implementation, the terminal also includes load-on module 205, for loading first thread and second Thread;
In above-mentioned implementation, starting module 201 is specifically used for:
When the target click action for monitoring to occur on default physical button by the first thread, by preset state Content update in mark is the first identification information;Wherein, the preset state mark is used to indicate whether to start the shooting Head performs shooting operation;
When it is the first identification information that the content in the preset state mark is monitored by second thread, start Camera.
In another implementation, the terminal also includes closedown module 206 and update module 207, closedown module 206 For closing the camera by second thread;Update module 207 is used for the content during the preset state is identified It is updated to the second identification information.
In another implementation, taking module 202 is specifically used for:
For N images of picture photographing of finding a view in the camera;
Preceding M images in the N images are deleted, it is remaining N-M figures in the N images to obtain target image Picture;Wherein N>M.
In the terminal of description of the embodiment of the present invention, when detecting the target clicking operation that occurs on default physical button When, start camera;By the current picture of finding a view of camera shooting, target image is obtained;The picture of finding a view will be directed to The target image that face is obtained is stored into the preset path of local;Prompt message is exported, to inform that user's camera has been directed to Current picture of finding a view completes shooting.Using the embodiment of the present invention, user need to only trigger default entity in whole shooting process Button, it is simple to operate, it in case of emergency can quickly be shot, shooting efficiency can be improved.
Fig. 6 is referred to, Fig. 6 is a kind of another structural representation of terminal provided in an embodiment of the present invention, of the invention real Apply in example, the terminal can include:Starting module 301, taking module 302, memory module 303, output module 304, detection mould Block 305 and acquisition module 306.
Starting module 301, for when detecting the target click action occurred on default physical button, starting shooting Head;Wherein, the default physical button includes the combination of a physical button or multiple physical buttons.
Taking module 302, for shooting current picture of finding a view by the camera, obtain target image.
Memory module 303, for the target image obtained for the picture of finding a view to be stored to the default road of local In footpath.
Output module 304, for exporting prompt message.
In wherein a kind of implementation, the terminal can also include detection module 305, for default real when detecting During the target click action occurred on body button, working condition that detection terminal is presently in, the working condition includes screen locking State and non-screen lock state;
In above-mentioned implementation, if starting module 301 is screen lock state for the working condition, start camera.
In another implementation, the terminal can also include acquisition module 306, and default entity is detected for working as During the target click action occurred on button, if the working condition is non-screen lock state, obtain the camera uses shape State, the use state include idle condition and busy condition;
In above-mentioned implementation, if starting module 301 is idle condition for the use state, start camera.
In another implementation, taking module 302 is specifically used for:
For N images of picture photographing of finding a view in the camera;
Preceding M images in the N images are deleted, it is remaining N-M figures in the N images to obtain target image Picture;Wherein N>M.
In the terminal of description of the embodiment of the present invention, when detecting the target clicking operation that occurs on default physical button When, start camera;By the current picture of finding a view of camera shooting, target image is obtained;The picture of finding a view will be directed to The target image that face is obtained is stored into the preset path of local;Prompt message is exported, to inform that user's camera has been directed to Current picture of finding a view completes shooting.Using the embodiment of the present invention, user need to only trigger default entity in whole shooting process Button, it is simple to operate, it in case of emergency can quickly be shot, shooting efficiency can be improved.
Fig. 7 is referred to, Fig. 7 is a kind of another structural representation of terminal provided in an embodiment of the present invention.In the present embodiment Described terminal can include: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 and memory 400 pass through Bus 500 connects.
Wherein, input equipment 100 is specifically as follows the contact panel of terminal, including touch-screen and touch screen, for detecting Operational order in terminal touch panel;Input equipment 100 can also be the physical button in terminal, for receiving user's input For physical button occur target click action;Input equipment 100 can also be the camera in terminal, work as obtaining Preceding picture of finding a view.
The display screen of the concretely terminal of output equipment 200, for exporting, display image data;It can also be terminal Flashing lamp, loudspeaker, shaking device, for exporting prompt message.
Memory 400 can be high-speed RAM memory, or non-labile memory (non-volatile ), such as magnetic disk storage memory.Above-mentioned memory 400 is used to store batch processing code, above-mentioned input equipment 100, output Equipment 200 and processor 300 are used to call the program code stored in memory 400, perform following operation:
When detecting the target click action occurred on default physical button, start camera;Wherein, the default reality Body button includes the combination of a physical button or multiple physical buttons;
By the current picture of finding a view of camera shooting, target image is obtained;
The target image obtained for the picture of finding a view is stored into the preset path of local;
Export prompt message.
In wherein a kind of implementation, before processor 300 starts camera, in addition to:
Load first thread and the second thread;
It is described to start camera when detecting the target trigger event occurred on default physical button, including:
When the target click action for monitoring to occur on default physical button by the first thread, by preset state Content update in mark is the first identification information;Wherein, the preset state mark is used to indicate whether to start the shooting Head performs shooting operation;
When it is the first identification information that the content in the preset state mark is monitored by second thread, start Camera.
In another implementation, input equipment 100 shoots current picture of finding a view by the camera, obtains mesh After logo image, in addition to:
The camera is closed by second thread;
Content update during the preset state is identified is the second identification information.
In another implementation, before processor 300 starts camera, in addition to:
The working condition that the detection terminal of processor 300 is presently in, the working condition include screen lock state and non-screen locking State;
If the working condition is screen lock state, start camera.
In another implementation, after the working condition that the detection terminal of processor 300 is presently in, in addition to:
If the working condition is non-screen lock state, the use state of the camera is obtained, the use state includes Idle condition and busy condition;
If the use state is idle condition, start camera.
In another implementation, input equipment 100 shoots current picture of finding a view by the camera, obtains mesh Logo image, including:
For N images of picture photographing of finding a view in the camera;
Preceding M images in the N images are deleted, it is remaining N-M figures in the N images to obtain target image Picture;Wherein N>M.
In the technical scheme of description of the embodiment of the present invention, grasped when detecting that the target occurred on default physical button is clicked on When making, start camera;By the current picture of finding a view of camera shooting, target image is obtained;Described find a view will be directed to The target image that picture is obtained is stored into the preset path of local;Prompt message is exported, to inform user's camera pin Shooting is completed to current picture of finding a view.Using the embodiment of the present invention, user need to only trigger default reality in whole shooting process Body button, it is simple to operate, it in case of emergency can quickly be shot, shooting efficiency can be improved.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Must must be directed to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be Combined in an appropriate manner in any one or more embodiments or example.In addition, in the case of not conflicting, this area Technical staff can be carried out the different embodiments or example and the feature of different embodiments or example described in this specification With reference to and combination.
Those skilled in the art can be by the different embodiments and the feature of different embodiments described in this specification It is combined and combines.Module or unit in all embodiments of the invention, universal integrated circuit, such as CPU can be passed through (Central Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, application specific integrated circuit) realize.
Step in all embodiments of the invention method can be sequentially adjusted, merged and deleted according to actual needs; Module or unit in all embodiments of the invention device can be combined, divided and deleted according to actual needs.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include Module, fragment or the portion of the code of the executable instruction of one or more the step of being used to realize specific logical function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries Suddenly it is that by program the hardware of correlation can be instructed to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention Type.
The above disclosed right for being only presently preferred embodiments of the present invention, the present invention can not being limited with this certainly Scope, one of ordinary skill in the art will appreciate that all or part of flow of above-described embodiment is realized, and according to right of the present invention It is required that the equivalent variations made, still fall within and invent covered scope.

Claims (8)

  1. A kind of 1. image pickup method, it is characterised in that including:
    When detecting the target click action occurred on default physical button, working condition that detection terminal is presently in, institute Stating working condition includes screen lock state and non-screen lock state;
    When the working condition is screen lock state, start camera;Wherein, the default physical button is pressed including multiple entities The combination of key;
    When the working condition is non-screen lock state, the use state of the camera is obtained, the use state includes sky Not busy state and busy condition, if the use state is idle condition, start camera;
    By the current picture of finding a view of camera shooting, target image is obtained;
    The target image obtained for the picture of finding a view is stored into the preset path of local;
    Prompt message is exported, to inform that camera described in user completes shooting for current picture of finding a view.
  2. 2. the method as described in claim 1, it is characterised in that before the startup camera, methods described also includes:
    First thread and the second thread are loaded, wherein, between the first thread and the second thread by way of memory sharing Realize communication;
    It is described to start camera when detecting the target trigger event occurred on default physical button, including:
    When the target click action for monitoring to occur on default physical button by the first thread, preset state is identified In content update be the first identification information;Wherein, the preset state mark is used to indicate whether that starting the camera holds Row shooting operation;
    When it is the first identification information that the content in the preset state mark is monitored by second thread, start shooting Head.
  3. 3. method as claimed in claim 2, it is characterised in that it is described that current picture of finding a view is shot by the camera, After obtaining target image, methods described also includes:
    The camera is closed by second thread;
    Content update during the preset state is identified is the second identification information.
  4. 4. the method as described in claim 1, it is characterised in that it is described that current picture of finding a view is shot by the camera, Target image is obtained, including:
    For N images of picture photographing of finding a view in the camera;
    Preceding M images in the N images are deleted, it is remaining N-M images in the N images to obtain target image; Wherein N>M.
  5. A kind of 5. terminal, it is characterised in that including:
    Detection module, for when detecting the target click action occurred on default physical button, detection terminal to be presently in Working condition;Wherein, the working condition includes screen lock state and non-screen lock state;
    Starting module, for when the working condition is screen lock state, starting camera;Wherein, the default physical button Include the combination of multiple physical buttons;
    Acquisition module, if being non-screen lock state for the working condition, obtain the use state of the camera, the use State includes idle condition and busy condition;Wherein, it is sky that the starting module, which is additionally operable in the use state of the camera, During not busy state, start camera;
    Taking module, for shooting current picture of finding a view by the camera, obtain target image;
    Memory module, for the target image obtained for the picture of finding a view to be stored into the preset path of local;
    Output module, for exporting prompt message, to inform that camera described in user is completed for current picture of finding a view Shooting.
  6. 6. terminal as claimed in claim 5, it is characterised in that the terminal also includes:
    Load-on module, for loading first thread and the second thread, wherein, by interior between the first thread and the second thread Deposit shared mode and realize communication;
    The starting module is specifically used for:
    When the target click action for monitoring to occur on default physical button by the first thread, preset state is identified In content update be the first identification information;Wherein, the preset state mark is used to indicate whether that starting the camera holds Row shooting operation;
    When it is the first identification information that the content in the preset state mark is monitored by second thread, start shooting Head.
  7. 7. terminal as claimed in claim 6, it is characterised in that the terminal also includes:
    Closedown module, for closing the camera by second thread;
    Update module, it is the second identification information for the content update during the preset state is identified.
  8. 8. terminal as claimed in claim 5, it is characterised in that the taking module is specifically used for:
    For N images of picture photographing of finding a view in the camera;
    Preceding M images in the N images are deleted, it is remaining N-M images in the N images to obtain target 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 CN104580884A (en) 2015-04-29
CN104580884B true 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)

Families Citing this family (14)

* 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
CN105824522A (en) * 2015-09-24 2016-08-03 维沃移动通信有限公司 Photographing method and mobile terminal
JP6700708B2 (en) * 2015-10-09 2020-05-27 キヤノン株式会社 Electronic device, control method thereof, program, and storage medium
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
KR20180023310A (en) * 2016-08-25 2018-03-07 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN109155817B (en) * 2016-09-14 2020-08-07 华为技术有限公司 Photographing 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
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

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

Also Published As

Publication number Publication date
CN104580884A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104580884B (en) A kind of image pickup method and terminal
CN114205522B (en) Method for long-focus shooting and electronic equipment
CN113093968B (en) Shooting interface display method and device, electronic equipment and medium
US9451159B2 (en) Photographing starting apparatus and method for built-in camera of portable data processing device
CN114095776B (en) Screen recording method and electronic equipment
CN112770059B (en) Photographing method and device and electronic equipment
CN110418000A (en) Terminal control method, device, mobile terminal and storage medium
CN107479710B (en) Intelligent mirror and control method, device, equipment and storage medium thereof
CN108737739A (en) A kind of preview screen acquisition method, preview screen harvester and electronic equipment
CN111953900B (en) Picture shooting method and device and electronic equipment
CN112954212B (en) Video generation method, device and equipment
CN113794834B (en) Image processing method and device and electronic equipment
CN106303234A (en) Take pictures processing method and processing device
CN111866392A (en) Shooting prompting method and device, storage medium and electronic equipment
CN111669495B (en) Photographing method, photographing device and electronic equipment
CN106879263A (en) A kind of image pickup method and mobile device
CN112911147A (en) Display control method, display control device and electronic equipment
CN113824886A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113473007A (en) Shooting method and device
CN106303235A (en) Take pictures processing method and processing device
CN104486553B (en) A kind of distant view photograph image pickup method and terminal
CN106851052B (en) Control method and electronic equipment
CN108664891A (en) A kind of image pickup method and terminal based on fingerprint recognition
CN112734661A (en) Image processing method and device
CN113794833B (en) Shooting method and device and electronic equipment

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