CN105744153B - A kind of photo acquisition methods and terminal - Google Patents
A kind of photo acquisition methods and terminal Download PDFInfo
- Publication number
- CN105744153B CN105744153B CN201610055107.5A CN201610055107A CN105744153B CN 105744153 B CN105744153 B CN 105744153B CN 201610055107 A CN201610055107 A CN 201610055107A CN 105744153 B CN105744153 B CN 105744153B
- Authority
- CN
- China
- Prior art keywords
- frame data
- terminal
- screenshot
- finder
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the invention discloses a kind of photo acquisition methods, comprising: when terminal is in low electricity condition, obtains the frame data and the corresponding view-finder screenshot of the frame data of the terminal camera;When the terminal re-powers, according to the frame data and the view-finder screenshot, the corresponding photo of the view-finder screenshot is obtained.Further, the embodiment of the invention discloses a kind of terminals.Compared to the prior art, it can guarantee before terminal automatic shutdown, the frame data and view-finder screenshot of present terminal camera can be got, after terminal powers on again, according to the frame data of storage and view-finder screenshot, the photo that terminal has not enough time to shooting can be redrawn out, is avoided under low electricity condition, have little time the case where obtaining the photo that camera needs to shoot caused by terminal automatic shutdown, improves user experience.
Description
Technical field
The present invention relates to the image acquisition technology of field of terminal more particularly to a kind of photo acquisition methods and terminals.
Background technique
With the development of communication network, the application of mobile terminal is also more and more extensive, and mobile phone has become the daily life of people
Indispensable tool in work.
In the prior art, in order to meet the needs of users, the function of mobile phone is also stronger and stronger, and people not only can be by hand
Machine regards the tool kept in touch with other people, can also use mobile phone as camera.
But the function of the mobile phone power consumption for leading to mobile phone also bigger more, usually when being not within one day,
Mobile phone has just been in low electricity condition.At this time if user uses camera function, it is possible that just adjusting camera
Parameter prepare shooting when, mobile phone causes user that can not obtain the photo admired just due to electricity exhausts the case where automatic shutdown,
User experience is bad.
Summary of the invention
In order to solve the above technical problems, can be kept away an embodiment of the present invention is intended to provide a kind of photo acquisition methods and terminal
Exempt under low electricity condition, terminal has little time the case where obtaining the photo that camera needs to shoot, and improves user experience.
One aspect of the present invention provides a kind of photo acquisition methods, comprising:
When terminal is in low electricity condition, the frame data and the corresponding view-finder of the frame data of the terminal camera are obtained
Screenshot;
When the terminal re-powers, according to the frame data and the view-finder screenshot, obtains the view-finder and cut
Scheme corresponding photo.
Optionally, described when terminal is in low electricity condition, obtain the frame data and the frame data of the terminal camera
Corresponding view-finder screenshot includes:
When terminal is in low electricity condition, the frame data and the frame of the terminal camera are repeatedly obtained according to the acquisition period
The corresponding view-finder screenshot of data;
It is described when the terminal re-powers, according to the frame data and the view-finder screenshot, find a view described in acquisition
The corresponding photo of frame screenshot includes:
When the terminal re-powers, the frame data of period acquisition are obtained according to terminal first and the frame data correspond to
View-finder screenshot, obtain it is described first obtain the period the corresponding photo of view-finder screenshot.
Optionally, in the frame data and frame data correspondence for repeatedly obtaining the terminal camera according to the acquisition period
View-finder screenshot after, the method also includes:
The frame data and the corresponding view-finder of the frame data for storing the terminal camera that each acquisition period obtains are cut
Figure;
Determine whether the number of the frame data of presently described terminal storage is greater than or equal to preset threshold;
If the number of the frame data of presently described terminal storage is greater than or equal to the preset threshold, the terminal is deleted most
The corresponding view-finder screenshot of frame data and the frame data early stored.
Optionally, described when the terminal re-powers, according to terminal first obtain the period obtain frame data and
The corresponding view-finder screenshot of the frame data, before obtaining the corresponding photo of view-finder screenshot that described first obtains the period, institute
State method further include:
When the terminal re-powers, shows all frame data of the terminal storage and the frame data are corresponding takes
Scape frame screenshot;
The first user instruction is received, the first user instruction is for determining the described first frame data for obtaining period acquisition
View-finder screenshot corresponding with the frame data.
Optionally, which is characterized in that described when terminal is in low electricity condition, obtain the frame data of the terminal camera
Before view-finder screenshot corresponding with the frame data, the method also includes:
Second user instruction is received, the second user instruction is used to indicate the terminal and opens acquisition frame data and find a view
The function of frame screenshot.
Another aspect of the present invention provides a kind of terminal, comprising:
First acquisition unit obtains the frame data of the terminal camera and described for when terminal is in low electricity condition
The corresponding view-finder screenshot of frame data;
Second acquisition unit, for when the terminal re-powers, according to the frame data and the view-finder screenshot,
Obtain the corresponding photo of the view-finder screenshot.
Optionally, the first acquisition unit is specifically used for:
When terminal is in low electricity condition, the frame data and the frame of the terminal camera are repeatedly obtained according to the acquisition period
The corresponding view-finder screenshot of data;
The second acquisition unit is specifically used for:
When the terminal re-powers, the frame data of period acquisition are obtained according to terminal first and the frame data correspond to
View-finder screenshot, obtain it is described first obtain the period the corresponding photo of view-finder screenshot.
Optionally, the terminal further include:
Storage unit, for storing the frame data and the frame data pair of the terminal camera that each acquisition period obtains
The view-finder screenshot answered;
Determination unit, for determining whether the number of frame data of presently described terminal storage is greater than or equal to default threshold
Value;
Unit is deleted, if the number of the frame data for presently described terminal storage is greater than or equal to the preset threshold,
Delete the frame data and the corresponding view-finder screenshot of the frame data of the terminal oldest stored.
Optionally, the terminal further include:
Display unit, for when the terminal re-powers, showing the frame data and the frame number of the terminal storage
According to corresponding view-finder screenshot;
First receiving unit, for receiving the first user instruction, the first user instruction is for determining that described first obtains
The frame data and the corresponding view-finder screenshot of the frame data for taking the period to obtain.
Optionally, the terminal further include:
Second receiving unit, for receiving second user instruction, the second user instruction is used to indicate the terminal and opens
Open the function of obtaining frame data and view-finder screenshot.
The embodiment of the present invention provides a kind of photo acquisition methods and terminal, and the photo acquisition methods include: at terminal
When low electricity condition, the frame data and the corresponding view-finder screenshot of the frame data of the terminal camera are obtained;When the terminal
When re-powering, according to the frame data and the view-finder screenshot, the corresponding photo of the view-finder screenshot is obtained.Compared to
The prior art, it is smaller than the data processing amount for directly generating photo due to saving frame data and view-finder screenshot, save frame
The power consumption of data and view-finder screenshot is smaller, it is ensured that before terminal automatic shutdown, can get present terminal phase
The frame data and view-finder screenshot of machine, after terminal powers on again, according to the frame data of storage and view-finder screenshot
The photo that terminal has not enough time to shooting is redrawn out, avoids under low electricity condition, has little time to obtain caused by terminal automatic shutdown
The case where photo that camera needs to shoot, improve user experience.
Detailed description of the invention
The hardware structural diagram of Fig. 1 optional mobile terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of flow diagram 1 of photo acquisition methods provided in an embodiment of the present invention;
Fig. 3 is the interface schematic diagram that a kind of setting provided in an embodiment of the present invention obtains the period;
Fig. 4 is a kind of schematic diagram for storing interface provided in an embodiment of the present invention;
Fig. 5 is a kind of flow diagram 2 of photo acquisition methods provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of quick control panel provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation Fig. 1 of terminal provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation Fig. 2 of terminal provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation Fig. 3 of terminal provided in an embodiment of the present invention;
Figure 10 is a kind of structural representation Fig. 4 of terminal provided in an embodiment of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use
For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself
There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving
It is phone, smart phone, laptop, digit broadcasting receiver, personal digital assistant (PDA), tablet computer (PAD), portable
The fixation of the mobile terminal of formula multimedia player (PMP), navigation device etc. and such as number TV, desktop computer etc.
Terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for mobile mesh
Element except, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the mobile terminal of each embodiment optional hardware configuration signal.
A/V input unit 120 is for receiving vision signal.A/V input unit 120 may include camera 121, camera 121
Image data to the static images or video that are obtained in video acquisition mode or image capture mode by image capture apparatus
It is handled.Treated, and picture frame may be displayed on display unit 151.Through camera 121, treated that picture frame can be deposited
Storage can provide two or more cameras 121 in memory 160 (or other storage mediums) according to the construction of mobile terminal.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal
Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch
Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc.
Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape
State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal
100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100
The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone
The sliding-type phone is to open or close.In addition, sensing unit 140 be able to detect power supply unit 190 whether provide electric power or
Whether person's interface unit couples with external device (ED).Output unit 150 is configured to the offer of vision, audio and/or tactile manner
Output signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 may include showing
Show unit 151.
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity
When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file
Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode
Or when image capture mode, display unit 151 can show captured image and/or received image, show video or figure
Picture and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit
151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving
Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch
Input pressure and touch input position and touch input area.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke
Temporarily to store the data that has exported or will export (for example, telephone directory, message, still image, video etc.).And
And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen
Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more
Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection
The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data
Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers
The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or can be structured as and control
Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or picture
It draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member
Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof
Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor
At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180.
For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations
Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai
Implement, software code can store in memory 160 and be executed by controller 180.
So far, mobile terminal is described according to its function.In the following, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Based on above-mentioned mobile terminal hardware configuration, in conjunction with the attached drawing in the embodiment of the present invention, in the embodiment of the present invention
Technical solution is clearly and completely described.
Embodiment one
The embodiment of the present invention provides a kind of photo acquisition methods, is applied to terminal, and the terminal includes mobile phone, plate electricity
Brain and other terminal devices with camera function.The embodiment of the present invention, which takes the mobile phone as an example, to be illustrated, as shown in Fig. 2, institute
Stating photo acquisition methods includes:
Step 201, when terminal is in low electricity condition, frame data and the frame data for obtaining the terminal camera are corresponding
View-finder screenshot.
Exemplary, in order to meet the diversified demand of user, the higher camera of pixel usually can be all arranged in existing mobile phone,
Although the higher high definition photo of clarity can be shot, the experience of taking pictures of user is improved.But due to being clapped using high pixel
The data for needing to acquire when taking the photograph every photo are larger, therefore one photo of every shooting will expend more electricity.At terminal
It when low electricity condition, if user wants shooting photo, needs first to open the camera of mobile phone, then adjusts the shooting ginseng of camera
Number shoots photo using the acquisition parameters adjusted, this process used time is longer, may just adjust acquisition parameters in user
When, just as electricity exhausts and automatic shutdown, user will be unable to get the photo for wanting shooting mobile phone at this time, it is likely that can give
User causes the sorry of all one's life.Therefore frame data and the institute of the terminal camera can be obtained when terminal is in low electricity condition
The corresponding view-finder screenshot of frame data is stated, when the view-finder screenshot is that camera is found a view using current frame data, view-finder is current
The screenshot of shown image.It can be smaller very than directly generating picture data treating capacity due to saving frame data or view-finder screenshot
It is more, so even if when terminal is in low electricity condition, it still is able to have enough time obtaining frame data of the terminal camera and described
The corresponding view-finder screenshot of frame data redraws photo convenient for user according to frame data and view-finder screenshot.
Exemplary, as long as being not when terminal is in low electricity condition, the photo of shooting cannot necessarily be saved, and terminal only has
Just photo can not be saved when closing on automatic shutdown, if only obtaining frame data and view-finder when terminal closes on automatic shutdown
Screenshot then can not judge the time of specific automatic shutdown due to terminal, and cause terminal to be missed and obtain frame data and find a view
The opportunity of frame screenshot, and then terminal is caused to power on the case where rear user can not obtain photo.Therefore when terminal is in low electricity condition
When, a frame data and view-finder screenshot can be obtained at regular intervals, wherein the time interval between obtaining twice can be with
It is identical, it can also be different, the embodiment of the present invention is not construed as limiting this.It is exemplary, it, can be according to when terminal is in low electricity condition
The frame data and the corresponding view-finder screenshot of the frame data of the acquisition terminal camera of period repeatedly are obtained, so,
When terminal is in low electricity condition, terminal can obtain a frame data and view-finder screenshot in each acquisition period, will not go out
Now miss the case where obtaining frame data and view-finder screenshot opportunity, wherein obtain it twice according to when obtaining period multi collect
Between time interval be to obtain the period, the acquisition period can set according to the actual situation by user in practical applications
It sets.This option of period is obtained as shown in figure 3, can be set on the setting column of camera, and is to set in the acquisition cycle options
The different acquisition periods is set, such as 1 second (s), 2s, 2s etc., user can select according to the actual situation, if mobile phone has been located
In the low electricity condition long period, the lesser acquisition period can choose, for example, the acquisition period selected can be 1s;If hand
Machine just enters low electricity condition, then can choose the biggish acquisition period, economize on resources, for example, the acquisition period of selection can be with
For 3s.
It is exemplary, when terminal is in low electricity condition, can not be saved although there is the photo of shooting, or can not clap in time
The risk of photo is taken the photograph, but if user considers for energy saving or memory space, it is also possible that terminal is in low electric shape
Acquisition when state, without frame data and view-finder screenshot.Such as.Protective switch of taking pictures can be set in terminal, when user needs
When terminal opens acquisition frame data and view-finder screenshot, the protective switch of taking pictures is opened, opens acquisition when user does not need terminal
When frame data and view-finder screenshot, the protective switch of taking pictures can be closed.When terminal is in low electricity condition, can detect first
Whether the protective switch of taking pictures is opened, if the protective switch unlatching of taking pictures, obtains the frame data and view-finder screenshot of camera,
In order to redraw photo;If the protective switch closing of taking pictures, does not need the frame data and view-finder screenshot that obtain camera.
Step 202, when the terminal re-powers, according to the frame data and the view-finder screenshot, described in acquisition
The corresponding photo of view-finder screenshot.
It is exemplary, when terminal again socket power or terminal are fully charged and when being switched on again, illustrate that terminal re-powers,
At this time if the frame number of terminal storage can be searched when user prepares the image obtained when wanting to reacquire terminal automatic shutdown
According to view-finder screenshot, the corresponding photo of view-finder screenshot, the frame number are then redrawn according to frame data and view-finder screenshot
According to including but not limited to pixel AWB data, exposed frame value of finding a view, the time for exposure, ISO etc. redraws view-finder by frame data
The corresponding photo of screenshot belongs to the prior art, and this will not be repeated here for the embodiment of the present invention.
It is illustrated so that terminal repeatedly obtains frame data and view-finder screenshot according to the acquisition period as an example, terminal can be successively
Terminal can be consulted and deposit when user needs to redraw photo by storing frame data and view-finder screenshot that each acquisition period obtains
All frame data and view-finder screenshot of storage, what then the selection of the view-finder screenshot according to shown in terminal was redrawn finds a view
Frame screenshot, after terminal determines view-finder screenshot selected by user and the view-finder screenshot corresponding frame data, can should
The corresponding frame data of view-finder screenshot redraw the view-finder screenshot, photo needed for getting user.Specifically, can be with
As shown in figure 4, when user needs to redraw photo, the storage interface that can be opened a terminal successively is shown on the storage interface
It the time that the thumbnail and each view-finder screenshot of the corresponding view-finder screenshot of all frame data of terminal storage obtain, uses
Family obtains the view-finder screenshot of period acquisition according to the thumbnail of view-finder screenshot selection first, i.e. user needs the view-finder
Screenshot redraws into photo, then clicks selection, and terminal determines the view-finder screenshot that user selects according to the click of user, then root
The view-finder screenshot is redrawn according to the view-finder screenshot corresponding frame data, photo needed for getting user, wherein institute
Stating for the first acquisition period is that any one obtains the period.
It is exemplary, in order to save the storage resource of terminal, preset threshold can also be set in the terminal, to limit terminal
The number of several most frame data can be enough deposited, if the number of the frame data of presently described terminal storage is more than or equal to described pre-
If threshold value, illustrates that the number of the currently stored frame data of terminal is larger, occupy too many memory space, delete the terminal most
The corresponding view-finder screenshot of frame data and the frame data early stored.
The embodiment of the present invention provides a kind of photo acquisition methods, comprising: when terminal is in low electricity condition, obtains the end
Hold the frame data and the corresponding view-finder screenshot of the frame data of camera;When the terminal re-powers, according to the frame number
According to the view-finder screenshot, obtain the corresponding photo of the view-finder screenshot.Compared to the prior art, due to saving frame data
And view-finder screenshot is smaller than the data processing amount for directly generating photo, therefore saves the power consumption of frame data and view-finder screenshot
It measures smaller, it is ensured that before terminal automatic shutdown, the frame data and view-finder screenshot of present terminal camera can be got,
After terminal powers on again, according to the frame data of storage and view-finder screenshot, terminal can be redrawn out and have not enough time to shooting
Photo avoids under low electricity condition, has little time the case where obtaining the photo that camera needs to shoot caused by terminal automatic shutdown,
Improve user experience.
Embodiment two
The embodiment of the present invention provides a kind of photo acquisition methods, is applied to terminal, and the terminal includes mobile phone, plate electricity
Brain and other terminal devices with camera function.The embodiment of the present invention, which takes the mobile phone as an example, to be illustrated.As shown in figure 5, institute
Stating photo acquisition methods includes:
Step 501 receives second user instruction, and the second user instruction is used to open protective switch of taking pictures, executes step
Rapid 502.
It is exemplary, as shown in fig. 6, protective switch of taking pictures described in being arranged on the quick control panel 601 of mobile phone
602, when user, which needs to open, takes pictures protective switch, control panel can be pulled up, protective switch of taking pictures then is clicked, makes its dozen
It opens, second user instruction can be inputted.
Step 502, when terminal is in low electricity condition, according to obtain the period repeatedly obtain camera frame data and the phase
The view-finder screenshot of machine executes step 503.
It is exemplary, it, can be every one if user opens camera when taking pictures when mobile phone source is when low electricity condition
The section time obtains a camera frame data and view-finder screenshot, is then stored, the time interval one between acquisition two-by-two
When cause, show as repeatedly obtaining the frame data of camera and the view-finder screenshot of the camera according to the acquisition period, in use process
In, user can as the case may be adjusted the acquisition period, for example, when mobile phone is in the low electricity condition long period,
The time for obtaining period setting can be shorter, and when mobile phone has just enter into low electricity condition, the time for obtaining period setting can be longer, with
Exempt to cause the waste of resource.
The frame data and the view-finder screenshot that step 503, storage obtain, execute step 504.
Exemplary, mobile phone can successively store all frame data and view-finder screenshot of acquisition according to the time of acquisition, with
The photo redrawn is selected convenient for user.
Step 504 determines whether the currently stored frame data number of terminal is greater than or equal to preset threshold;If terminal is current
The frame data number of storage is greater than or equal to the preset threshold, executes step 505;The currently stored frame data number of terminal is small
In the preset threshold, step 508 is executed.
It is exemplary, due to the limited storage space of mobile phone, cannot unconfined storing data therefore, can in initialization
Preset threshold is arranged, the preset threshold indicates the maximum number for the frame data that mobile phone can store, the preset threshold
It can be configured, not only die in a twinkle beautiful scenery if user needs to record according to the actual situation, but also not know most beautiful when which moment
, frame data several times and view-finder screenshot can be obtained more and stored, then choosing most beautiful moment is redrawn, at this point, in advance
If threshold value can be set larger;If user shoots beautiful scenery under duration shorter situation, only worry to have not recording
The moment arrived carries out leakage detection by the way of obtaining frame data and view-finder screenshot and fills a vacancy, and preset threshold can be set at this time
It is smaller.
Step 505, the frame data and the corresponding view-finder screenshot of the frame data for deleting terminal oldest stored execute step
506。
It is exemplary, when the number of the currently stored frame data of mobile phone is greater than or equal to preset threshold, illustrate that mobile phone stores
Frame number data bulk it is too many, the earliest frame data of the acquisition time that mobile phone is saved may store the long period, will not
It is chosen and redraw by user, therefore the frame data that can delete mobile phone oldest stored view-finder corresponding with the frame data is cut
Figure, saves the memory space of mobile phone.
Step 506 receives the first user instruction, and the first user instruction is for determining that described first obtains period acquisition
Frame data and the corresponding view-finder screenshot of the frame data.
It is exemplary, after mobile phone re-powers, the storage interface of mobile phone can be opened, is successively shown on the storage interface
All frame data of terminal storage and the thumbnail of view-finder screenshot are shown, refering to what is shown in Fig. 4, frame data and view-finder screenshot
The corresponding display of thumbnail, user can select the photo for wanting to redraw according to the thumbnail of view-finder screenshot.
Step 507, the frame data and the corresponding view-finder screenshot of the frame data for obtaining period acquisition according to first, obtain
Described first obtains the corresponding photo of view-finder screenshot in period.
It is exemplary, after the photo that user selects according to the thumbnail of view-finder screenshot, it can be selected according to user
Photo needed for the view-finder screenshot of frame data and the frame data redraws out user.
Step 508 continues to store frame data and the corresponding view-finder screenshot of the frame data that the terminal obtains.
It is exemplary, when the currently stored frame data of mobile phone number be less than preset threshold, illustrate the currently stored frame of mobile phone
Data bulk is smaller, in order to guarantee that user carries out selection diversity when photo is redrawn, can continue the frame of memory mobile phone acquisition
Data and view-finder screenshot.
The embodiment of the present invention provides a kind of photo acquisition methods, compared to the prior art, due to saving frame data and taking
Scape frame screenshot is smaller than the data processing amount for directly generating photo, thus save the power consumption of frame data and view-finder screenshot compared with
It is small, it is ensured that before terminal automatic shutdown, the frame data and view-finder screenshot of present terminal camera can be got, work as end
After end powers on again, according to the frame data of storage and view-finder screenshot, the photo that terminal has not enough time to shooting can be redrawn out,
It avoids under low electricity condition, has little time the case where obtaining the photo that camera needs to shoot caused by terminal automatic shutdown, improve
User experience.
Embodiment three
The embodiment of the present invention provides a kind of terminal 70, as shown in fig. 7, the terminal 70 includes:
First acquisition unit 701, for obtaining frame data and the institute of the terminal camera when terminal is in low electricity condition
State the corresponding view-finder screenshot of frame data.
Second acquisition unit 702, for being cut according to the frame data and the view-finder when the terminal re-powers
Figure, obtains the corresponding photo of the view-finder screenshot.
So, smaller than the data processing amount for directly generating photo due to saving frame data and view-finder screenshot, because
This saves frame data and the power consumption of view-finder screenshot is smaller, it is ensured that before terminal automatic shutdown, terminal can pass through
First acquisition unit gets the frame data and view-finder screenshot of present terminal camera, and after terminal powers on again, second is obtained
Unit is taken according to the frame data and view-finder screenshot of storage, the photo that terminal has not enough time to shooting can be redrawn out, avoided
Under low electricity condition, has little time the case where obtaining the photo that camera needs to shoot caused by terminal automatic shutdown, improve user
Experience.
Optionally, the first acquisition unit 701 is specifically used for: when terminal is in low electricity condition, according to the acquisition period
Repeatedly obtain the frame data and the corresponding view-finder screenshot of the frame data of the terminal camera;The second acquisition unit 7021
It is specifically used for: when the terminal re-powers, the frame data and the frame data pair of period acquisition is obtained according to terminal first
The view-finder screenshot answered obtains the described first corresponding photo of view-finder screenshot for obtaining the period.
Optionally, as shown in figure 8, the terminal 70 further include:
Storage unit 703, for storing the frame data and the frame number of the terminal camera that each acquisition period obtains
According to corresponding view-finder screenshot;Determination unit 704, for determining whether the number of frame data of presently described terminal storage is greater than
Or it is equal to preset threshold;Unit 705 is deleted, if the number of the frame data for presently described terminal storage is more than or equal to described
Preset threshold deletes the frame data and the corresponding view-finder screenshot of the frame data of the terminal oldest stored.
Optionally, as shown in figure 9, the terminal 70 further include:
Display unit 706, for when the terminal re-powers, showing the frame data and the frame of the terminal storage
The corresponding view-finder screenshot of data;First receiving unit 707, for receiving the first user instruction, first user indicates to use
In the frame data and the corresponding view-finder screenshot of the frame data that determine the first acquisition period acquisition.
Optionally, as shown in Figure 10, the terminal 70 further include:
Second receiving unit 708, for receiving second user instruction, the second user instruction is used to indicate the terminal
Open the function of obtaining frame data and view-finder screenshot.
The embodiment of the present invention provides a kind of terminal, comprising: and first acquisition unit is used for when terminal is in low electricity condition,
Obtain the frame data and the corresponding view-finder screenshot of the frame data of the terminal camera.Second acquisition unit, for when described
When terminal re-powers, according to the frame data and the view-finder screenshot, the corresponding photo of the view-finder screenshot is obtained.Phase
It is smaller than the data processing amount for directly generating photo due to saving frame data and view-finder screenshot compared with the prior art, it protects
The power consumption for depositing frame data and view-finder screenshot is smaller, it is ensured that before terminal automatic shutdown, terminal can pass through first
Acquiring unit gets the frame data and view-finder screenshot of present terminal camera, and after terminal powers on again, second obtains list
Member can redraw out the photo that terminal has not enough time to shooting, avoid low according to the frame data and view-finder screenshot of storage
Under electricity condition, has little time the case where obtaining the photo that camera needs to shoot caused by terminal automatic shutdown, improve user experience.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
It should be noted that first, it is apparent to those skilled in the art that, for the convenience and letter of description
Clean, the device of foregoing description and the specific work process of unit can refer to corresponding processes in the foregoing method embodiment, herein
It repeats no more.
Second, in practical applications, the first acquisition unit 701, second acquisition unit 702, determination unit 704 and delete
Except unit 705 can be by central processing unit (Central ProcessingUnit, CPU), the microprocessor in terminal 70
(Micro Processor Unit, MPU), digital signal processor (DigitalSignal Processor, DSP) or scene
Programmable gate array (Field Programmable Gate Array, FPGA) etc. realizes that the display unit 706 includes aobvious
Display screen and the hardware for driving the display screen to work, the storage unit 703 include memory, memory and hard disk.This field
Technical staff can be understood that above-described embodiment method can be by means of software and necessary general hardware platform
To realize, naturally it is also possible to only be realized by hardware, but the former is more preferably embodiment in many cases.
Based on this understanding, substantially the part that contributes to existing technology can in other words for technical solution of the present invention
To be expressed in the form of software products, the computer software product be stored in a storage medium (such as ROM/RAM, magnetic disk,
CD) in, it is used including some instructions so that method described in an each embodiment of the mobile terminal execution present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Bright specification and attached drawing wait for equivalent structure or equivalent flow shift made by operation content, are applied directly or indirectly in other phases
The technical field of pass, is included within the scope of the present invention.
Claims (10)
1. a kind of photo acquisition methods characterized by comprising
When terminal is in low electricity condition, the frame data and the corresponding view-finder of the frame data for obtaining the terminal camera are cut
Figure;Wherein, the frame data include at least one of: pixel AWB data, exposed frame value of finding a view, the time for exposure, sensitivity
ISO;
The corresponding view-finder screenshot of the frame data and the frame data to acquisition stores;
When the terminal re-powers, target frame data are determined in the frame data stored, are cut in the view-finder stored
Target view-finder screenshot is determined in figure;
The target frame data and the target view-finder screenshot are redrawn, it is corresponding to obtain the target view-finder screenshot
Photo.
2. obtaining the end the method according to claim 1, wherein described when terminal is in low electricity condition
Hold camera frame data and the corresponding view-finder screenshot of the frame data include:
When terminal is in low electricity condition, the frame data and the frame data of the terminal camera are repeatedly obtained according to the acquisition period
Corresponding view-finder screenshot;
It is described when the terminal re-powers, according in the frame data and the corresponding view-finder of the frame data stored
The view-finder screenshot of the frame data selected in screenshot and selection, the corresponding photo of view-finder screenshot for obtaining selection include:
When the terminal re-powers, the frame data and the frame data are corresponding takes that the period obtains are obtained according to terminal first
Scape frame screenshot obtains the described first corresponding photo of view-finder screenshot for obtaining the period;Wherein, described first the period is obtained to appoint
It anticipates one and obtains the period.
3. according to the method described in claim 2, it is characterized in that, repeatedly obtaining the terminal phase according to the acquisition period described
After the frame data of machine and the corresponding view-finder screenshot of the frame data, the method also includes:
Store the frame data and the corresponding view-finder screenshot of the frame data of the terminal camera that each acquisition period obtains;
Determine whether the number of the frame data of presently described terminal storage is greater than or equal to preset threshold;
If the number of the frame data of presently described terminal storage is greater than or equal to the preset threshold, deletes the terminal and deposit earliest
The frame data of storage and the corresponding view-finder screenshot of the frame data.
4. according to the method described in claim 3, it is characterized in that, described when the terminal re-powers, according to terminal
First obtains the frame data and the corresponding view-finder screenshot of the frame data obtained in the period, obtains taking for the first acquisition period
Before the corresponding photo of scape frame screenshot, the method also includes:
When the terminal re-powers, all frame data and the corresponding view-finder of the frame data of the terminal storage are shown
Screenshot;
The first user instruction is received, the first user instruction is for determining that described first obtains the frame data and institute that the period obtains
State the corresponding view-finder screenshot of frame data.
5. according to claim 1 to method described in 4 any one claims, which is characterized in that described when terminal is in
When low electricity condition, before the frame data and the corresponding view-finder screenshot of the frame data that obtain the terminal camera, the method
Further include:
Second user instruction is received, the second user instruction is used to indicate the terminal unlatching acquisition frame data and view-finder is cut
The function of figure.
6. a kind of terminal characterized by comprising
First acquisition unit, for obtaining the frame data and the frame number of the terminal camera when terminal is in low electricity condition
According to corresponding view-finder screenshot;Wherein, the frame data include at least one of: pixel AWB data, exposed frame of finding a view
Value, time for exposure, sensitivity ISO;
First storage unit, for acquisition the frame data and the corresponding view-finder screenshot of the frame data store;
Second acquisition unit, for determining target frame data in the frame data stored when the terminal re-powers,
Target view-finder screenshot is determined in the view-finder screenshot stored, and to the target frame data and the target view-finder screenshot
It is redrawn, to obtain the corresponding photo of the target view-finder screenshot.
7. terminal according to claim 6, which is characterized in that
The first acquisition unit is specifically used for:
When terminal is in low electricity condition, the frame data and the frame data of the terminal camera are repeatedly obtained according to the acquisition period
Corresponding view-finder screenshot;
The second acquisition unit is specifically used for:
When the terminal re-powers, the frame data and the frame data are corresponding takes that the period obtains are obtained according to terminal first
Scape frame screenshot obtains the described first corresponding photo of view-finder screenshot for obtaining the period;Wherein, described first the period is obtained to appoint
It anticipates one and obtains the period.
8. terminal according to claim 7, which is characterized in that the terminal further include:
Storage unit, the frame data and the frame data for storing the terminal camera that each acquisition period obtains are corresponding
View-finder screenshot;
Determination unit, for determining whether the number of frame data of presently described terminal storage is greater than or equal to preset threshold;
Unit is deleted, if the number of the frame data for presently described terminal storage is greater than or equal to the preset threshold, is deleted
The corresponding view-finder screenshot of frame data and the frame data of the terminal oldest stored.
9. terminal according to claim 8, which is characterized in that the terminal further include:
Display unit, for when the terminal re-powers, showing the frame data and the frame data pair of the terminal storage
The view-finder screenshot answered;
First receiving unit, for receiving the first user instruction, the first user instruction is for determining that described first obtains week
The frame data and the corresponding view-finder screenshot of the frame data that phase obtains.
10. according to terminal described in claim 6 to 9 any one claim, which is characterized in that the terminal further include:
Second receiving unit, for receiving second user instruction, the second user instruction is used to indicate the terminal unlatching and obtains
Take the function of frame data and view-finder screenshot.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610055107.5A CN105744153B (en) | 2016-01-27 | 2016-01-27 | A kind of photo acquisition methods and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610055107.5A CN105744153B (en) | 2016-01-27 | 2016-01-27 | A kind of photo acquisition methods and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105744153A CN105744153A (en) | 2016-07-06 |
CN105744153B true CN105744153B (en) | 2019-04-05 |
Family
ID=56247654
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610055107.5A Active CN105744153B (en) | 2016-01-27 | 2016-01-27 | A kind of photo acquisition methods and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105744153B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111083279A (en) * | 2018-10-22 | 2020-04-28 | 中兴通讯股份有限公司 | Screen capture processing method and device, electronic equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005020452A (en) * | 2003-06-26 | 2005-01-20 | Ricoh Co Ltd | Imaging apparatus |
CN200947643Y (en) * | 2006-09-14 | 2007-09-12 | 华晶科技股份有限公司 | Camera device with battery indication function |
US7342611B2 (en) * | 2003-12-10 | 2008-03-11 | Hewlett-Packard Development Company, L.P. | Method for rapid power-on to first picture in a digital camera |
CN101710923A (en) * | 2009-12-04 | 2010-05-19 | 深圳市五巨科技有限公司 | Method and device for preventing game losses on mobile terminal power failure |
CN101788936A (en) * | 2010-01-08 | 2010-07-28 | 中兴通讯股份有限公司 | Snapshot backup and restoration method and device when in running of mobile terminal |
CN103188438A (en) * | 2011-12-27 | 2013-07-03 | 三洋电机株式会社 | Recording apparatus |
CN103841328A (en) * | 2014-02-27 | 2014-06-04 | 深圳市中兴移动通信有限公司 | Low-speed shutter shooting method and device |
CN104778040A (en) * | 2015-03-26 | 2015-07-15 | 深圳市金立通信设备有限公司 | Photographing device |
CN105163028A (en) * | 2015-09-11 | 2015-12-16 | 青岛海信移动通信技术股份有限公司 | Method and device for controlling two cameras |
-
2016
- 2016-01-27 CN CN201610055107.5A patent/CN105744153B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005020452A (en) * | 2003-06-26 | 2005-01-20 | Ricoh Co Ltd | Imaging apparatus |
US7342611B2 (en) * | 2003-12-10 | 2008-03-11 | Hewlett-Packard Development Company, L.P. | Method for rapid power-on to first picture in a digital camera |
CN200947643Y (en) * | 2006-09-14 | 2007-09-12 | 华晶科技股份有限公司 | Camera device with battery indication function |
CN101710923A (en) * | 2009-12-04 | 2010-05-19 | 深圳市五巨科技有限公司 | Method and device for preventing game losses on mobile terminal power failure |
CN101788936A (en) * | 2010-01-08 | 2010-07-28 | 中兴通讯股份有限公司 | Snapshot backup and restoration method and device when in running of mobile terminal |
CN103188438A (en) * | 2011-12-27 | 2013-07-03 | 三洋电机株式会社 | Recording apparatus |
CN103841328A (en) * | 2014-02-27 | 2014-06-04 | 深圳市中兴移动通信有限公司 | Low-speed shutter shooting method and device |
CN104778040A (en) * | 2015-03-26 | 2015-07-15 | 深圳市金立通信设备有限公司 | Photographing device |
CN105163028A (en) * | 2015-09-11 | 2015-12-16 | 青岛海信移动通信技术股份有限公司 | Method and device for controlling two cameras |
Also Published As
Publication number | Publication date |
---|---|
CN105744153A (en) | 2016-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11348201B2 (en) | Electronic device having rollable display and method of controlling the same | |
US9952681B2 (en) | Method and device for switching tasks using fingerprint information | |
CN113760427B (en) | Method and electronic equipment for displaying page elements | |
US10977491B2 (en) | Device for providing information related to object in image | |
CN107544810B (en) | Method and device for controlling application program | |
US20210357105A1 (en) | Method and apparatus for operating functions of electronic device having flexible display | |
CN115097981B (en) | Method for processing content and electronic device thereof | |
US10599336B2 (en) | Method of displaying content and electronic device adapted to the same | |
CN109791475B (en) | Electronic device with dual-sided display and method for controlling applications | |
US20200192540A1 (en) | Content collection method, apparatus and storage medium | |
CN109582207B (en) | Display method, device, terminal and storage medium of multitask management interface | |
WO2018227618A1 (en) | Application icon movement method and apparatus, terminal, and storage medium | |
US20200257411A1 (en) | Method for providing user interface related to note and electronic device for the same | |
EP3454226B1 (en) | Method and apparatus for displaying a user interface | |
EP3001300B1 (en) | Method and apparatus for generating preview data | |
WO2022262475A1 (en) | Image capture method, graphical user interface, and electronic device | |
US20210165670A1 (en) | Method, apparatus for adding shortcut plug-in, and intelligent device | |
WO2023051511A1 (en) | Icon moving method, related graphical interface, and electronic device | |
WO2017181544A1 (en) | Method and device for managing task of instant messaging application | |
CN105744153B (en) | A kind of photo acquisition methods and terminal | |
KR102584981B1 (en) | Method for Outputting Screen according to Force Input and the Electronic Device supporting the same | |
CN115484390B (en) | Video shooting method and electronic equipment | |
CN115484392B (en) | Video shooting method and electronic equipment | |
WO2024036998A1 (en) | Display method, storage medium, and electronic device | |
WO2024109220A1 (en) | Widget display method, electronic device, and readable storage medium |
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 |