CN106603910A - Photo saving method based on intelligent terminal - Google Patents

Photo saving method based on intelligent terminal Download PDF

Info

Publication number
CN106603910A
CN106603910A CN201611063544.8A CN201611063544A CN106603910A CN 106603910 A CN106603910 A CN 106603910A CN 201611063544 A CN201611063544 A CN 201611063544A CN 106603910 A CN106603910 A CN 106603910A
Authority
CN
China
Prior art keywords
photo
thumbnail
preview frame
frame data
store method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611063544.8A
Other languages
Chinese (zh)
Other versions
CN106603910B (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.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information Technology Co 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 Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Priority to CN201611063544.8A priority Critical patent/CN106603910B/en
Publication of CN106603910A publication Critical patent/CN106603910A/en
Application granted granted Critical
Publication of CN106603910B publication Critical patent/CN106603910B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control 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 saving method based on an intelligent terminal. The photo saving method comprises the following steps: S11, acquiring a photo; S12, presetting a callback function, and acquiring preview frame data of the photo; S13, processing the preview frame data; S14, generating a thumbnail of the corresponding photo based on the preview frame data; and S15, saving the photo. By adopting the above technical scheme, the generation time of the thumbnail can be reduced, and the use experience of a user can be improved.

Description

A kind of photo store method based on intelligent terminal
Technical field
The present invention relates to smart machine control field, more particularly to a kind of photo store method based on intelligent terminal.
Background technology
Under the environment that intelligent terminal market makes rapid progress, the camera function of intelligent terminal increasingly enriches on market, uses Family increases for the use dependency degree of intelligent terminal's photo function, corresponding to require also increasingly to increase therewith.For the ease of user Photo needed for positioning is quickly sought in a large amount of photo files for preserving, corresponding thumbnail can be generated to the photo for preserving, according to Thumbnail is found.However, current breviary map generalization can expend some times after picture file preservation.With intelligent end The photograph pixel more and more higher at end, the time of required generation thumbnail also lengthens therewith.
Therefore, in order to reduce the breviary map generalization time, improve user experience, need one kind to quickly generate thumbnail Method.
The content of the invention
In order to overcome above-mentioned technological deficiency, it is an object of the invention to provide a kind of photo preservation side based on intelligent terminal Method, can quickly generate thumbnail, give user more preferable Consumer's Experience.
The invention discloses a kind of photo store method based on intelligent terminal, comprises the following steps:
S11:Obtain photo;
S12:Default call back function, obtains the preview frame data of the photo;
S13:Process preview frame data;
S14:Based on the preview frame data, the thumbnail of the correspondence photo is generated;
S15:Preserve the photo.
Preferably, in step S12, described call back function includes auto-focusing preview call back function.
Preferably, in step S12, described preview frame data generate when being and obtaining photo in step S11 for preview Frame data.
Preferably, the process preview frame data described in step S13, comprise the following steps:
S21:The byte data of preview frame is preserved by buffer;
S22:Obtain the resolution of thumbnail;
S23:The yuv data of thumbnail are converted into into jpg data;
S24:The jpg data are converted into into bitmap file.
Preferably, the resolution described in step S22 includes display width and shows height.
Preferably, the animation that the thumbnail of the generation correspondence photo described in step S14 is generated comprising thumbnail.
Preferably, the preservation photo described in step S15, including by application program generate thumbnail, and with institute State photo association.
Preferably, described application program includes Thumb.Java.
Compared with prior art, it is of the invention it is a technical advantage that:
1. the thumbnail of photo photo preservation before, by preview frame data genaration;
2. photo generate thumbnail will not with photo become large-sized or uprising for pixel and increase;
3. in browsing pictures, thumbnail can quickly be presented user.
Description of the drawings
Fig. 1 is the schematic flow sheet for meeting photo store method in the embodiment of the present invention.
Specific embodiment
Advantages of the present invention is expanded on further below in conjunction with accompanying drawing and specific embodiment.
Refering to Fig. 1, to meet the embodiment of the present invention in intelligent terminal's photo store method schematic flow sheet.In the enforcement It is the method for intelligent terminal's photo preservation in example.Specifically, comprise the following steps:
S11:Photo is obtained by shooting the form of photo.For example, the photograph that photographic head can be activated in intelligent terminal is started Using the photo of acquisition correspondence current shooting picture after touch or click photographing button;
S12:Default call back function, obtains the preview frame data of the photo.While photo is shot, photographic head will be received The control of default call back function in intelligent terminal, records and shoots the image frame of photo moment, and is stored as preview frame data. It is understood that preview frame data can with shoot practical photograph it is identical or different, if obtain preview frame when and shooting When there is gap between photo, preview frame and photo will be with differences.When preview frame is only follow-up pre- to user offer photo The effect look at, convenient use person can quickly understand the difference between photo and photo, therefore, the difference between preview frame and photo will not Affect the effect of preview frame or thumbnail in intelligent terminal.
The call back function that above-mentioned steps are used, can be auto-focusing preview call back function, remember after the completion of focusing The frame data of record picture, use as preview frame.
S13:Process preview frame data.Specifically, include in the step:
-S21:The byte data of preview frame is preserved by default buffer in intelligent terminal;
-S22:After obtaining the byte data of preview frame, the resolution of thumbnail is analyzed.Due to the resolution of thumbnail it is excessive Its preview effect will be affected, therefore, the threshold value of a resolution can be set in buffer, more than the threshold value, will delete again Obtain preview frame;
-S23:The yuv data of preview frame in thumbnail are converted into into jpg data, to reduce the internal memory shared by thumbnail Space size;
-S24:Finally, the jpg data are converted into into bitmap file, further the resolution of reduction preview frame, there is provided beat Open speed during thumbnail.
It is understood that resolution mentioned above, it may include the display width and display height of preview frame, Liang Zhejie Conjunction forms resolution.
S14:Based on the preview frame data, the thumbnail of the correspondence photo is generated, the thumbnail can be static Photo or the animation generated by thumbnail.
S15:When preserving the photo, will be generated based on the application program such as Thumb.Java installed in intelligent terminal, and Associate with photo, when user is when the picture library application in intelligent terminal is opened, the breviary that preview frame is formed will be directly displayed Figure, due to through above-mentioned configuration, the acquisition of thumbnail and beats speed and will be greatly improved, therefore, even with person Slide in the application, can immediately show the corresponding thumbnail of picture, convenient use person quickly finds desired picture or photo.
It should be noted that embodiments of the invention have a preferably implementation, and not any type of is made to the present invention Limit, any one skilled in the art changes or be modified to the effective of equivalent possibly also with the technology contents of the disclosure above Embodiment, as long as without departing from the content of technical solution of the present invention, being made to above example according to the technical spirit of the present invention Any modification or equivalent variations and modification, still fall within the range of technical solution of the present invention.

Claims (8)

1. a kind of photo store method based on intelligent terminal, it is characterised in that comprise the following steps:
S11:Obtain photo;
S12:Default call back function, obtains the preview frame data of the photo;
S13:Process preview frame data;
S14:Based on the preview frame data, the thumbnail of the correspondence photo is generated;
S15:Preserve the photo.
2. photo store method as claimed in claim 1, it is characterised in that in step S12, described call back function comprising from Dynamic focusing preview call back function.
3. photo store method as claimed in claim 1, it is characterised in that in step S12, described preview frame data are step The frame data for preview generated when obtaining photo in rapid S11.
4. photo store method as claimed in claim 1, it is characterised in that the process preview frame data described in step S13, Comprise the following steps:
S21:The byte data of preview frame is preserved by buffer;
S22:Obtain the resolution of thumbnail;
S23:The yuv data of thumbnail are converted into into jpg data;
S24:The jpg data are converted into into bitmap file.
5. photo store method as claimed in claim 4, it is characterised in that the resolution described in step S22 includes showing Width and display height.
6. photo store method as claimed in claim 1, it is characterised in that the generation correspondence photograph described in step S14 The animation that the thumbnail of piece is generated comprising thumbnail.
7. photo store method as claimed in claim 1, it is characterised in that the preservation photo described in step S15, bag Include and thumbnail is generated by application program, and associate with the photo.
8. photo store method as claimed in claim 6, it is characterised in that described application program includes Thumb.Java.
CN201611063544.8A 2016-11-28 2016-11-28 Photo storage method based on intelligent terminal Active CN106603910B (en)

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 true CN106603910A (en) 2017-04-26
CN106603910B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108124099A (en) * 2017-12-14 2018-06-05 Tcl移动通信科技(宁波)有限公司 A kind of method, mobile terminal and the storage medium of the generation of camera thumbnail
CN112492193A (en) * 2019-09-12 2021-03-12 华为技术有限公司 Method and equipment for processing callback stream
CN112672035A (en) * 2019-10-16 2021-04-16 青岛海信移动通信技术股份有限公司 Thumbnail generation method and terminal

Citations (5)

* Cited by examiner, † Cited by third party
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 锤子科技(北京)有限公司 Showing method and device for self-shooting image
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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 锤子科技(北京)有限公司 Showing method and device for self-shooting image
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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108124099A (en) * 2017-12-14 2018-06-05 Tcl移动通信科技(宁波)有限公司 A kind of method, mobile terminal and the storage medium of the generation of camera thumbnail
WO2019114724A1 (en) * 2017-12-14 2019-06-20 捷开通讯(深圳)有限公司 Camera thumbnail image generating method, mobile terminal, and storage medium
CN108124099B (en) * 2017-12-14 2021-01-08 Tcl移动通信科技(宁波)有限公司 Method for generating camera thumbnail, mobile terminal and storage medium
CN112492193A (en) * 2019-09-12 2021-03-12 华为技术有限公司 Method and equipment for processing callback stream
CN112492193B (en) * 2019-09-12 2022-02-18 华为技术有限公司 Method and equipment for processing callback stream
US11849213B2 (en) 2019-09-12 2023-12-19 Huawei Technologies Co., Ltd. Parallel preview stream and callback stream processing method and device
CN112672035A (en) * 2019-10-16 2021-04-16 青岛海信移动通信技术股份有限公司 Thumbnail generation method and terminal
CN112672035B (en) * 2019-10-16 2022-02-22 青岛海信移动通信技术股份有限公司 Thumbnail generation method and terminal

Also Published As

Publication number Publication date
CN106603910B (en) 2020-09-04

Similar Documents

Publication Publication Date Title
CN107743191B (en) Terminal, anti-shake photographing method thereof and storage device
US20230217098A1 (en) Shooting method, graphical interface, and related apparatus
WO2016127478A1 (en) Image processing method and device, and terminal
WO2023065884A1 (en) Video processing method and electronic device
US10847073B2 (en) Image display optimization method and apparatus
EP2974272B1 (en) Automatic adjustment of video orientation
CN103905716B (en) The camera installation and method for picture of finding a view dynamically are handled when shooting photo
KR101949832B1 (en) Picture displaying method, apparatus and terminal device
JP2011526013A (en) Image processing
US9426385B2 (en) Image processing based on scene recognition
US9398217B2 (en) Video stabilization using padded margin pixels
US20150373258A1 (en) Systems and Methods for Automatically Capturing Digital Images Based on Adaptive Image-Capturing Templates
WO2022042670A1 (en) Eye state detection-based image processing method and apparatus, and storage medium
CN104580907A (en) Anti-shake photographing method and device
CN106603910A (en) Photo saving method based on intelligent terminal
TWI578782B (en) Image processing based on scene recognition
US10042526B2 (en) Method and apparatus for displaying thumbnail image
CN110727810B (en) Image processing method, device, electronic equipment and storage medium
WO2015196681A1 (en) Picture processing method and electronic device
TWI242126B (en) Method of acquiring multimedia data and apparatus thereof
JP2015103968A (en) Image processing apparatus, image processing method and image processing program
TWI651644B (en) Mobile device, method for mobile device, and non-transitory computer readable storage medium
WO2016019786A1 (en) Object motion trajectory photographing method and system, and computer storage medium
JP2004023656A (en) Image processing device, image processing method, and program
CN113542594B (en) High-quality image extraction processing method and device based on video and mobile terminal

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