CN106603910B - Photo storage method based on intelligent terminal - Google Patents
Photo storage method based on intelligent terminal Download PDFInfo
- Publication number
- CN106603910B CN106603910B CN201611063544.8A CN201611063544A CN106603910B CN 106603910 B CN106603910 B CN 106603910B CN 201611063544 A CN201611063544 A CN 201611063544A CN 106603910 B CN106603910 B CN 106603910B
- Authority
- CN
- China
- Prior art keywords
- photo
- thumbnail
- saving
- preview frame
- frame data
- 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
- 238000000034 method Methods 0.000 title claims abstract description 19
- 210000003813 thumb Anatomy 0.000 claims description 3
- 230000006870 function Effects 0.000 description 11
- 230000003213 activating effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000003313 weakening effect Effects 0.000 description 1
Images
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/67—Focus control based on electronic image sensor signals
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention provides a photo storage method based on an intelligent terminal, which comprises the following steps: s11: acquiring a photo; s12: presetting a callback function, and acquiring preview frame data of the photo; s13: processing preview frame data; s14, generating a thumbnail corresponding to the photo based on the preview frame data; s15: and saving the photo. After the technical scheme is adopted, the thumbnail generation time can be reduced, and the user experience is improved.
Description
Technical Field
The invention relates to the field of intelligent equipment control, in particular to a photo storage method based on an intelligent terminal.
Background
Under the environment that the intelligent terminal market is changing day by day, the function of shooing of intelligent terminal is more and more abundant in the market, and the user increases to the use degree of dependence of intelligent terminal photo function, and corresponding requirement also increases day by day. In order to facilitate a user to quickly search and locate a required photo in a large number of stored photo files, corresponding thumbnails can be generated for the stored photos, and the photos can be searched according to the thumbnails. However, the generation of the thumbnail at present takes some time after the picture file is saved. With the increase of the photo pixels of the intelligent terminal, the time for generating the thumbnail is prolonged.
Therefore, in order to reduce the generation time of thumbnails and improve the user experience, a method for quickly generating thumbnails is required.
Disclosure of Invention
In order to overcome the technical defects, the invention aims to provide a photo storage method based on an intelligent terminal, which can quickly generate a thumbnail and provide better user experience for a user.
The invention discloses a photo storage method based on an intelligent terminal, which comprises the following steps:
s11: acquiring a photo;
s12: presetting a callback function, and acquiring preview frame data of the photo;
s13: processing preview frame data;
s14, generating a thumbnail corresponding to the photo based on the preview frame data;
s15: and saving the photo.
Preferably, in step S12, the callback function includes an auto focus preview callback function.
Preferably, in step S12, the preview frame data is the frame data for preview generated when the photo is acquired in step S11.
Preferably, the processing of the preview frame data in step S13 includes the following steps:
s21: saving byte data of the preview frame through a temporary storage;
s22: acquiring the resolution ratio of the thumbnail;
s23: converting yuv data of the thumbnail into jpg data;
s24: and converting the jpg data into a bitmap file.
Preferably, the resolution described in step S22 includes a display width and a display height.
Preferably, the generating of the thumbnail corresponding to the photo in step S14 includes an animation of thumbnail generation.
Preferably, saving the photograph as described in step S15 includes generating a thumbnail image by the application and associating with the photograph.
Preferably, the application comprises thumb.
Compared with the prior art, the invention has the technical advantages that:
1. before the photo is stored, the thumbnail of the photo is generated by previewing frame data;
2. the photo generation thumbnail does not increase as the size of the photo becomes larger or the pixels become higher;
3. when a user browses the pictures, the thumbnails can be quickly presented.
Drawings
Fig. 1 is a flowchart illustrating a photo saving method according to an embodiment of the present invention.
Detailed Description
The advantages of the invention are further illustrated in the following description of specific embodiments in conjunction with the accompanying drawings.
Fig. 1 is a schematic flow chart of a method for storing a photo by an intelligent terminal according to an embodiment of the present invention. In the embodiment, the method is used for storing the photos of the intelligent terminal. Specifically, the method comprises the following steps:
s11: the photograph is taken by taking the photograph. For example, a camera application capable of activating a camera in the intelligent terminal is started, and a picture corresponding to a current shooting picture is obtained after a camera button is touched or clicked;
s12: and presetting a callback function, and acquiring preview frame data of the photo. When the picture is shot, the camera is controlled by a callback function preset in the intelligent terminal, and the picture frame at the moment of shooting the picture is recorded and stored as preview frame data. It will be appreciated that the preview frame data may be the same as or different from the actual photograph taken, and that the preview frame and photograph will have different points if there is a gap between when the preview frame is acquired and when the photograph is taken. When the preview frame only provides the function of previewing the photos for the user subsequently, the user can conveniently and quickly know the difference between the photos, and therefore the difference between the preview frame and the photos does not influence the function of the preview frame or the thumbnail in the intelligent terminal.
The callback function used in the above step may be an automatic focusing preview callback function, and after focusing is completed, frame data of the picture is recorded and used as a preview frame.
S13: and processing the preview frame data. Specifically, the method comprises the following steps:
-S21: saving byte data of the preview frame through a preset temporary storage in the intelligent terminal;
-S22: and after byte data of the preview frame is acquired, analyzing the resolution of the thumbnail. Because the preview effect of the thumbnail is influenced by overlarge resolution ratio, a threshold value of the resolution ratio can be set in the temporary storage, and if the resolution ratio is larger than the threshold value, the preview frame is deleted and obtained again;
-S23: converting yuv data in a preview frame in the thumbnail into jpg data so as to reduce the size of a memory space occupied by the thumbnail;
-S24: and finally, converting the jpg data into a bitmap file, further weakening the resolution of the preview frame and providing the speed for opening the thumbnail.
It will be appreciated that the resolution described above, which may include the display width and display height of the preview frames, combine to form the resolution.
And S14, generating a thumbnail corresponding to the photo based on the preview frame data, wherein the thumbnail can be a static photo or an animation generated by the thumbnail.
S15: when the photo is stored, an application program such as thumb.Java installed in the intelligent terminal is generated and associated with the photo, when a user opens a gallery application in the intelligent terminal, a thumbnail formed by a preview frame is directly displayed, and due to the configuration, the obtaining and printing speed of the thumbnail are greatly improved, so that the thumbnail corresponding to the photo can be immediately displayed even if the user slides in the application, and the user can conveniently and quickly find the expected photo or photo.
It should be noted that the embodiments of the present invention have been described in terms of preferred embodiments, and not by way of limitation, and that those skilled in the art can make modifications and variations of the embodiments described above without departing from the spirit of the invention.
Claims (7)
1. A photo storage method based on an intelligent terminal is characterized by comprising the following steps:
s11: acquiring a photo;
s12: presetting a callback function, and acquiring preview frame data of the photo;
s13: processing preview frame data;
s14, generating a thumbnail corresponding to the photo based on the preview frame data;
s15: saving the photo;
the processing of the preview frame data in step S13 includes the following steps:
s21: saving byte data of the preview frame through a temporary storage;
s22: acquiring the resolution of a thumbnail, and when the resolution of the thumbnail is greater than a preset resolution threshold, acquiring a preview frame again;
s23: converting yuv data of the thumbnail into jpg data;
s24: and converting the jpg data into a bitmap file.
2. A method for saving a photograph as claimed in claim 1, wherein in step S12, said callback function comprises an auto focus preview callback function.
3. The picture saving method of claim 1, wherein in step S12, the preview frame data is the frame data for preview generated when the picture was acquired in step S11.
4. The picture saving method as claimed in claim 1, wherein the resolution in step S22 includes a display width and a display height.
5. The photo saving method of claim 1, wherein the generating of the thumbnail corresponding to the photo in step S14 includes an animation of thumbnail generation.
6. The method for saving a photograph as claimed in claim 1, wherein said saving said photograph in step S15 includes generating a thumbnail image by an application program and associating with said photograph.
7. A method for saving photos as recited in claim 6, wherein said application comprises thumb.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611063544.8A CN106603910B (en) | 2016-11-28 | 2016-11-28 | Photo storage method based on intelligent terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611063544.8A CN106603910B (en) | 2016-11-28 | 2016-11-28 | Photo storage method based on intelligent terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106603910A CN106603910A (en) | 2017-04-26 |
| CN106603910B true CN106603910B (en) | 2020-09-04 |
Family
ID=58593590
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611063544.8A Active CN106603910B (en) | 2016-11-28 | 2016-11-28 | Photo storage method based on intelligent terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106603910B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108124099B (en) * | 2017-12-14 | 2021-01-08 | Tcl移动通信科技(宁波)有限公司 | Method for generating camera thumbnail, mobile terminal and storage medium |
| CN112492193B (en) * | 2019-09-12 | 2022-02-18 | 华为技术有限公司 | Method and equipment for processing callback stream |
| CN112672035B (en) * | 2019-10-16 | 2022-02-22 | 青岛海信移动通信技术股份有限公司 | Thumbnail generation method and terminal |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013043472A1 (en) * | 2011-09-23 | 2013-03-28 | Klip, Inc | Rapid preview of remote video content |
| CN103152489A (en) * | 2013-03-25 | 2013-06-12 | 锤子科技(北京)有限公司 | Method and device for displaying selfie images |
| CN103259975A (en) * | 2012-02-15 | 2013-08-21 | 三星电子株式会社 | Image-taking method and camera apparatus |
| CN104980660A (en) * | 2015-07-10 | 2015-10-14 | 成都品果科技有限公司 | Method for mute shooting on Android platform |
| CN105450848A (en) * | 2014-09-19 | 2016-03-30 | Lg电子株式会社 | Mobile terminal and controlling method thereof |
-
2016
- 2016-11-28 CN CN201611063544.8A patent/CN106603910B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013043472A1 (en) * | 2011-09-23 | 2013-03-28 | Klip, Inc | Rapid preview of remote video content |
| CN103259975A (en) * | 2012-02-15 | 2013-08-21 | 三星电子株式会社 | Image-taking method and camera apparatus |
| CN103152489A (en) * | 2013-03-25 | 2013-06-12 | 锤子科技(北京)有限公司 | Method and device for displaying selfie images |
| CN105450848A (en) * | 2014-09-19 | 2016-03-30 | Lg电子株式会社 | Mobile terminal and controlling method thereof |
| CN104980660A (en) * | 2015-07-10 | 2015-10-14 | 成都品果科技有限公司 | Method for mute shooting on Android platform |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106603910A (en) | 2017-04-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9832373B2 (en) | Systems and methods for automatically capturing digital images based on adaptive image-capturing templates | |
| CN102547090B (en) | Digital photographing apparatus and the method that photo is provided thereof | |
| US20120249853A1 (en) | Digital camera for reviewing related images | |
| KR101949832B1 (en) | Picture displaying method, apparatus and terminal device | |
| CN107743191B (en) | Terminal and anti-shake photographing method and storage device thereof | |
| WO2016127478A1 (en) | Image processing method and device, and terminal | |
| CN104125388B (en) | A kind of method and apparatus for shooting and storing photograph | |
| JP6429588B2 (en) | Image processing apparatus and image processing method | |
| CN105657272A (en) | Terminal equipment and photographing method thereof | |
| US20120098946A1 (en) | Image processing apparatus and methods of associating audio data with image data therein | |
| CN108124099A (en) | A kind of method, mobile terminal and the storage medium of the generation of camera thumbnail | |
| CN106603910B (en) | Photo storage method based on intelligent terminal | |
| CN105323484B (en) | Rapid photographing method and electronic equipment | |
| CN110727810B (en) | Image processing method, device, electronic equipment and storage medium | |
| CN105915792A (en) | Method and device for taking pictures | |
| US10042526B2 (en) | Method and apparatus for displaying thumbnail image | |
| US20090136159A1 (en) | Method and system for editing a date of a digital image in an imaging device | |
| JP6230386B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| CN111432121A (en) | Generation method, electronic device and storage medium | |
| CN105681645A (en) | Anti-shake photographing method and device, and mobile terminal | |
| CN116134828B (en) | A photographing method, related equipment and computer readable storage medium | |
| CN106550183A (en) | A kind of image pickup method and device | |
| US9197815B2 (en) | Image management apparatus and image management method | |
| CN108495038A (en) | Image processing method, image processing device, storage medium and electronic equipment | |
| JP7672092B2 (en) | Imaging device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |