CN108765281A - A kind of method, apparatus and computer storage media generating thumbnail - Google Patents

A kind of method, apparatus and computer storage media generating thumbnail Download PDF

Info

Publication number
CN108765281A
CN108765281A CN201810367406.1A CN201810367406A CN108765281A CN 108765281 A CN108765281 A CN 108765281A CN 201810367406 A CN201810367406 A CN 201810367406A CN 108765281 A CN108765281 A CN 108765281A
Authority
CN
China
Prior art keywords
image data
thumbnail
group
super
image
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.)
Pending
Application number
CN201810367406.1A
Other languages
Chinese (zh)
Inventor
李小朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810367406.1A priority Critical patent/CN108765281A/en
Publication of CN108765281A publication Critical patent/CN108765281A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4053Scaling of whole images or parts thereof, e.g. expanding or contracting based on super-resolution, i.e. the output image resolution being higher than the sensor resolution

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention discloses it is a kind of generate thumbnail method, apparatus and computer storage media, the method includes:One group of image data is obtained, one group of image data is used for the reconstruction of super-resolution image;A pending image data is chosen from one group of image data;The thumbnail of the super-resolution image is generated based on the pending image data;So as to during super-resolution image generates thumbnail, save cpu resource, reduce CPU short time consumptions, improve the efficiency of thumbnail generation, and then avoid and super-resolution image is directly subjected to resize processing to generate the interim card problem caused by thumbnail, improve the experience of user.

Description

A kind of method, apparatus and computer storage media generating thumbnail
Technical field
The present invention relates to technical field of image processing more particularly to a kind of method, apparatus generating thumbnail and calculating Machine storage medium.
Background technology
In electronic image application field, we often it is expected to obtain full resolution pricture.High-resolution means in image Pixel density is high, is capable of providing more details, and these details are indispensable in numerous applications.With the hair of smart mobile phone Exhibition, in order to provide better experience, we introduce the concept of super-resolution, such as the image of 50,000,000,8000W resolution ratio. Super-resolution is that the resolution ratio of original image is improved by the method for hardware or software at present, and principle is by a series of low points Resolution image rebuilds to obtain a preferable super-resolution image.Since the pixel of super-resolution is very high so that super-resolution The formation speed of image is very slow, while can also occupy more cpu resource so that the processing of other images lacks CPU for a long time Resource;In addition, thumbnail is generated based on super-resolution image, when super-resolution image processing procedure can consume a large amount of Between, and then cause thumbnail updated slow, Caton phenomenon is easily caused in preview image, seriously affects the experience of user.
Invention content
In view of this, the main purpose of the present invention is to provide a kind of method, apparatus and computer generating thumbnail Storage medium can save cpu resource, reduce CPU short time consumptions during super-resolution image generates thumbnail, The efficiency of thumbnail generation is improved, and then avoids and super-resolution image is directly subjected to resize processing to generate thumbnail Caused interim card problem, improves the experience of user.
In order to achieve the above objectives, the technical proposal of the invention is realized in this way:
In a first aspect, an embodiment of the present invention provides a kind of method generating thumbnail, the method includes:
One group of image data is obtained, one group of image data is used for the reconstruction of super-resolution image;
A pending image data is chosen from one group of image data;
The thumbnail of the super-resolution image is generated based on the pending image data.
In the above scheme, one group of image data of the acquisition, specifically includes:
Based on photographing instruction, one group of realtime graphic is obtained by camera within the preset period;
After being pre-processed according to preset processing strategy to the realtime graphic, one group of image data is obtained.
In the above scheme, it is described the realtime graphic is pre-processed according to preset processing strategy after, obtain one Group image data, specifically includes:
After being pre-processed according to preset processing strategy to the realtime graphic, pretreated realtime graphic number is obtained According to;
According to preset amount of images, one group of picture number is chosen from the pretreated realtime image data According to.
In the above scheme, after one group of image data of the acquisition, the method further includes:
One group of image data is stored according to the sequencing of acquisition.
In the above scheme, described that a pending image data is chosen from one group of image data, it specifically includes:
From one group of image data, the highest image data of clarity is chosen;
Using the highest image data of the clarity as the pending image data.
In the above scheme, described that a pending image data is chosen from one group of image data, it specifically includes:
Based on the storage order of one group of image data, the image data obtained at first is chosen;
Using the image data obtained at first as the pending image data.
In the above scheme, the thumbnail that the super-resolution image is generated based on the pending image data, It specifically includes:
Obtain preset thumbnail dimensions;
Based on the preset thumbnail dimensions, the pending image data is generated into the super-resolution image and is corresponded to Thumbnail.
In the above scheme, in the thumbnail for generating the super-resolution image based on the pending image data Later, the method further includes:
The thumbnail is stored;
Establish the mapping relations between the super-resolution image and the thumbnail.
Second aspect, an embodiment of the present invention provides a kind of devices generating thumbnail, which is characterized in that the generation contracting The device of sketch map includes:Network interface, memory and processor;Wherein,
The network interface, during for being received and sent messages between other ext nal network elements, the reception of signal and It sends;
The memory, for storing the computer program that can be run on the processor;
The processor, for when running the computer program, executing the generation contracting of any one of first aspect The step of method of sketch map.
The third aspect, an embodiment of the present invention provides a kind of computer storage medias, which is characterized in that the computer is deposited Storage media is stored with the program for generating thumbnail, and the program for generating thumbnail realizes the when being executed by least one processor The step of method of any one of the one side generation thumbnail.
An embodiment of the present invention provides a kind of method, apparatus and computer storage media generating thumbnail, by obtaining One group of image data, one group of image data is taken to be used for the reconstruction of super-resolution image;It is selected from one group of image data Take a pending image data;The thumbnail of the super-resolution image is generated based on the pending image data;To It can save cpu resource during super-resolution image generates thumbnail, reduce CPU short time consumptions, improve breviary Scheme the efficiency generated, and then avoids and super-resolution image is directly subjected to resize processing to generate the card caused by thumbnail Problem, improves the experience of user.
Description of the drawings
Fig. 1 is a kind of method flow schematic diagram generating thumbnail provided in an embodiment of the present invention;
Fig. 2 is a kind of hardware architecture diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 3 is a kind of method detailed process schematic diagram generating thumbnail provided in an embodiment of the present invention;
Fig. 4 is a kind of composed structure schematic diagram to one group of scan picture provided in an embodiment of the present invention;
Fig. 5 is a kind of composed structure schematic diagram to realtime graphic scaling processing provided in an embodiment of the present invention;
Fig. 6 is a kind of composed structure schematic diagram to thumbnail preview provided in an embodiment of the present invention;
Fig. 7 is a kind of device composition schematic diagram generating thumbnail provided in an embodiment of the present invention;
Fig. 8 is another device composition schematic diagram for generating thumbnail provided in an embodiment of the present invention;
Fig. 9 is the device composition schematic diagram of another generation thumbnail provided in an embodiment of the present invention;
Figure 10 is a kind of device particular hardware structural schematic diagram generating thumbnail provided in an embodiment of the present invention;
Figure 11 is a kind of composed structure schematic diagram of mobile terminal system provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes.
It takes pictures and has become the thing that people can do whenever and wherever possible, mobile terminal is stored in will produce a large amount of image On.Target image is found from a large amount of image in order to facilitate user, mobile terminal is user often through the mode of thumbnail Image preview function is provided.Thumbnail, as its name suggests, be represent original digital image data by compression of images mode handle after it is small Figure usually will also include the hyperlink for being directed toward original image.Since thumbnail is more small and exquisite, loading velocity is very fast, thus can be with For fast browsing;That is, thumbnail is equivalent to image preview and catalogue effect.
With the rapid development of the technologies such as HD digital TV, satellite remote sensing imaging, medical imaging, people are to high-resolution Rate imaging requirements are higher and higher.It is to increase the focal length or reduction CCD pixel list of optical system to improve resolution ratio most straightforward approach Elemental size.However increases system focal length and will increase the volume of imaging system, improve cost;Figure can be introduced by reducing CCD pixel size As noise etc., therefore, it is the super-resolution rebuilding technology using image to improve the most common method of resolution ratio, it can not increase On the basis of adding complex hardware equipment, single width height is obtained by corresponding image processing algorithm by the image of several low resolution Quality, high-resolution super-resolution image.
In existing technical solution, corresponding thumbnail, the method for generally use are generated for super-resolution image It is that resize processing directly is carried out to super-resolution image, to obtain corresponding thumbnail.But on the one hand obtain super-resolution The process of rate image needs to occupy more cpu resource, and time-consuming for whole process;The picture of another aspect super-resolution image Element is very high, such as 50,000,000 pixels, 80,000,000 pixels, and data volume is also very big, is based on above-mentioned both sides reason, thus In resize processing procedures, lack for a long time cpu resource and the stand-by period it is long due to, it may appear that thumbnail preview When interim card problem.In order to avoid the generation of the problem, the application generates the technical solution of thumbnail for super-resolution image Propose following embodiment.
Embodiment one
Referring to Fig. 1, it illustrates a kind of method generating thumbnail provided in an embodiment of the present invention, this method can wrap It includes:
S101:One group of image data is obtained, one group of image data is used for the reconstruction of super-resolution image;
S102:A pending image data is chosen from one group of image data;
S103:The thumbnail of the super-resolution image is generated based on the pending image data.
Based on technical solution shown in FIG. 1, one group of image data for super-resolution image reconstruction is obtained, from described one A pending image data is chosen in group image data, and the super-resolution figure is generated based on the pending image data The thumbnail of picture;It can solve at present using the method institute for directly carrying out resize processing generation thumbnails to super-resolution image Caused by interim card problem improve the experience of user so that thumbnail can be shown quickly;In addition, and super-resolution Image is compared, and the data volume of a selected pending image is few, and resolution ratio is low, can greatly reduce CPU short time consumptions, Cpu resource is saved, the efficiency of thumbnail generation is improved, effectively prevents the interim card problem of thumbnail.
For technical solution shown in FIG. 1, in one possible implementation, one group of image data of the acquisition, tool Body includes:
Based on photographing instruction, one group of realtime graphic is obtained by camera within the preset period;
After being pre-processed according to preset processing strategy to the realtime graphic, one group of image data is obtained.
It should be noted that the preset processing strategy refers to carrying out pretreated mode to realtime graphic;In order to obtain Take the image data of high-resolution and high quality, can by linearity rectification, noise reduction, go the modes such as bad point, interpolation and white balance Any one of realtime graphic is pre-processed.
It should also be noted that, within the preset period after receiving photographing instruction, can be obtained by camera Multiple realtime graphics.Wherein, the realtime graphic quantity of preset period and acquisition can be that internal system is pre-set, Can be that photographer is pre-set;Such as in 0.5 second preset time period, passes through camera and obtain 15 realtime graphics.
But all images that not camera obtains all are used in the reconstruction of super-resolution image, usually, weight The demand amount of images for building super-resolution image is less than within the preset period through the amount of images acquired in camera, At this time need the reconstruction for choosing suitable one group of image data for super-resolution image;Therefore, in above-mentioned realization method, Specifically, it is described the realtime graphic is pre-processed according to preset processing strategy after, obtain one group of image data, packet It includes:
After being pre-processed according to preset processing strategy to the realtime graphic, pretreated realtime graphic number is obtained According to;
According to preset amount of images, one group of picture number is chosen from the pretreated realtime image data According to.
For example, it after receiving photographing instruction, in 0.5 second preset time period, can be obtained by camera 15 realtime graphics;It, then can be with after being pre-processed to realtime graphic in order to obtain the image data of high-resolution and high quality It obtains taking 15 realtime image datas;But, it is assumed that the demand amount of images that super-resolution image is rebuild is 8, namely Preset amount of images is 8, at this time is just needed to choose 8 image datas from 15 image datas to be formed for oversubscription One group of image data that resolution is rebuild.In general, the process for choosing one group of image data is:It is highest that clarity is chosen first On the basis of one image data, then chosen respectively into Line Continuity in the front-rear direction of the image data;Wherein, quantity is chosen Determine with reference to as follows, when preset amount of images is odd number, the quantity that front-rear direction is chosen respectively is (preset picture number Amount/2);When preset amount of images is even number, the quantity that front-rear direction is chosen respectively is (preset amount of images/2-1) Or (preset amount of images/2);For example preset amount of images is 8, then using the highest image data of clarity as base Standard chooses forward 3 image datas, chooses 4 image datas backward, and choose in total 8 image datas are used for forming institute The one group of image data stated.
After one group of image data of the acquisition, in order to enable subsequent calls are convenient, it can temporarily be delayed It deposits;Therefore, for technical solution shown in FIG. 1, in one possible implementation, after obtaining one group of image data, The method further includes:
One group of image data is stored according to the sequencing of acquisition.
It should be noted that one group of image data can be in the form of data queue, or with the shape of data link table Formula is stored according to the sequencing of acquisition.
Since the embodiment of the present invention is to generate thumbnail using the pending image chosen from one group of image data, this Sample using super-resolution image it is possible to prevente effectively from directly carry out resize processing to generate the Caton phenomenon caused by thumbnail Generation.Wherein, the Selection Strategy of pending image can be determined according to practical situations.Based on this, for Fig. 1 institutes The technical solution shown is directed to step S102 in the embodiment of the present invention, proposes following possible realization method.
Realization method 1
Since in one group of acquired image data, the clarity for being not every image data is all best, and The image quality of every image data is also variant;Based on this, for described in step S102 from one group of image data A pending image data is chosen, is specifically included:
From one group of image data, the highest image data of clarity is chosen;
Using the highest image data of the clarity as the pending image data.
For example, in conjunction with examples detailed above, 8 image datas selected by above-mentioned basis formed one group of image data it Afterwards, in this group of image data, the image quality of every image data is different, can exist quality point, clearly with obscure Point;Since the pending image data of selection is to carry out preview image for generating thumbnail convenient for user, thus can select The highest image data of clarity is taken to be used as the pending image data;In this way, the thumbnail being subsequently generated will not There is larger distortion phenomenon.
Realization method 2
Since in one group of acquired image data, the acquisition time of every image data is different, have successively suitable Point of sequence is also beneficial to further increase the efficiency of thumbnail generation in this way to quickly choose pending image data; Usually, it is more desirable to the image data obtained at first being used as pending image data;Based on this, described in step S102 From one group of image data choose a pending image data, specifically include:
Based on the storage order of one group of image data, the image data obtained at first is chosen;
Using the image data obtained at first as the pending image data.
For example, in conjunction with examples detailed above, 8 image datas selected by above-mentioned basis formed one group of image data it Afterwards, in this group of image data, the acquisition time of every image data has point of priority, pending in order to quickly choose Image data, thus the image data obtained at first can be used as pending image data;In this way, being subsequently also beneficial into one Step improves the efficiency that thumbnail generates, and improves the experience of user.
After selecting pending image data in one group of image data, in order to obtain the breviary of desired size Figure, it is in one possible implementation, described based on the pending image data life for technical solution shown in FIG. 1 At the thumbnail of the super-resolution image, specifically include:
Obtain preset thumbnail dimensions;
Based on the preset thumbnail dimensions, the pending image data is generated into the super-resolution image and is corresponded to Thumbnail.
It should be noted that preset thumbnail dimensions can be set according to actual demand;Wherein, preset thumbnail ruler Very little can be the size for showing screen, institute's pre-set size when can also be preview image;Such as preset thumbnail ruler Very little is 180*120, can thus generate the thumbnail of 180*120 sizes.
After the generation of above-mentioned thumbnail, all in-time generatin new thumbnail when in order to avoid asking thumbnail every time And the problem of increasing cpu resource demand and memory operating load, the embodiment of the present invention can be by the thumbnails of the generation It is stored;In addition, in order to rapidly obtain corresponding super-resolution image in preview thumbnail, the present invention is implemented Example can also be established and the mapping relations of corresponding super-resolution image;Therefore, for technical solution shown in FIG. 1, in one kind In possible realization method, the method further includes:
The thumbnail is stored;
Establish the mapping relations between the super-resolution image and the thumbnail.
It should be noted that in order to enable subsequent calls conveniently, can apply the thumbnail storage of generation in photograph album In caching;When needing that the corresponding thumbnail of super-resolution image is called to carry out image preview, can be postponed by file identification It is directly read in depositing;Alternatively, a preset thumbnail file folder can also be established, after thumbnail generates, stored In being pressed from both sides to preset thumbnail file;When needing that the corresponding thumbnail of super-resolution image is called to carry out image preview, first The preset thumbnail file folder is accessed according to the address of preset thumbnail file folder, then in the preset breviary picture and text In part folder, searched for according to the filename of super-resolution image, here the file of the filename of super-resolution image and thumbnail Name is the same.
It should also be noted that, after above-mentioned thumbnail generates and stores, in thumbnail previews, when choosing certain , can be by the mapping relations between the super-resolution image and thumbnail established when a thumbnail is checked, and then obtain It gets corresponding super-resolution image and is shown, so that user can also look at clearer super-resolution figure Picture.
A kind of method generating thumbnail is present embodiments provided, by obtaining one group of image data, one group of image Data are used for the reconstruction of super-resolution image;A pending image data is chosen from one group of image data;Based on institute State the thumbnail that pending image data generates the super-resolution image;So as to generate thumbnail in super-resolution image In the process, cpu resource is saved, CPU short time consumptions are reduced, improves the efficiency of thumbnail generation, and then is avoided directly Super-resolution image is subjected to resize processing to generate the interim card problem caused by thumbnail, improves the experience of user.
Embodiment two
Based on the identical inventive concept of previous embodiment, referring to Fig. 2, it illustrates one kind can be applied to previous embodiment The mobile terminal structure example of technical solution, the mobile terminal 200 have camera function and display function, can be, but not limited to be Mobile phone, tablet computer, personal digital assistant, E-book reader, multimedia play equipment and wearable device etc. are portable Electronic equipment.As shown in Fig. 2, the structure of the mobile terminal 200 may include:Radio frequency (Radio Frequency, RF) unit 210, memory 220, input unit 230, display unit 240, camera 250, sensor 260, processor 270 and power supply 280 equal components;Wherein, the major function of all parts of mobile terminal shown in Fig. 2 is described below:
Radio frequency unit 210 be used to receive and send messages or communication process in signal send and receive;Radio frequency unit 210 include but It is not limited to antenna, at least one amplifier, transceiver, duplexer etc.;Specifically, by the downlink information of base station (such as high in the clouds The data information of server) receive after, be sent to processor 270 processing;In addition, the data of uplink are sent to cloud by base station Hold server;
Memory 220 includes mainly storing program area and deposits for storing software program and various data, memory 220 Store up data field, wherein storing program area can storage program area, the application program needed at least one function (for example broadcast by image Playing function, camera function etc.) etc.;Storage data field can store according to mobile terminal use created data (such as in real time Image, image data, thumbnail etc.) etc.;
Input unit 230 is used to receive the number or character information of input, and generates the user setting with mobile terminal And the related push button signalling input of function control;Specifically, input unit 230 may include that touch panel 231 (also referred to as touches Touch screen) and other input equipments 232 (include but not limited to physical keyboard, function button (such as volume control button, switch Button etc.), mouse etc.).
Display unit 240 is for showing information input by user or being supplied to the information of user, display unit 240 to include Display panel 241, touch panel 231 can cover display panel 241;Although in fig. 2, touch panel 231 and display panel 241 It is input and the input function of mobile terminal to be realized as two independent components, but in some embodiments it is possible to incite somebody to action Touch panel 231 and display panel 241 are integrated and that realizes mobile terminal output and input function;
Camera 250 be used for static images, continuous shooting function or shorter video capture, camera 250 divide for it is built-in with it is outer It sets, built-in camera refers to camera inside mobile terminal, using more convenient;External camera passes through data line or movement The interface of terminal is connected to complete shooting function with external camera, can mitigate the weight of mobile terminal;Camera it is main Parameter of measurement is resolution ratio, and resolution ratio is higher, and captured image is more clear, and effect is also better;
Mobile terminal further includes at least one sensor 260, for example, optical sensor, gravity sensor, gyroscope and its His sensor;It, can when gravity sensor or gyroscope inside mobile terminal detect that mobile terminal is in dither state It is executed in a manner of corresponding image preprocessing by by processor 270, for example stabilization function can be opened.
Processor 270 is the control centre of mobile terminal, utilizes each portion of various interfaces and connection mobile terminal Point, by running or execute the software program and/or module that are stored in memory 220, and calls and be stored in memory 220 Interior data execute the various functions and processing data of mobile terminal, integral monitoring are carried out to mobile terminal to realize;Its In, processor 270 includes at least image processor 271, locates in advance for carrying out image to the realtime graphic captured by camera 250 The operations such as reason.
Mobile terminal further includes the power supply 280 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 270 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
It will be understood by those skilled in the art that mobile terminal structure shown in Figure 2 does not constitute the limit to mobile terminal Fixed, mobile terminal may include either combining certain components or different component cloth than illustrating more or fewer components It sets.
Based on the topology example of above-mentioned mobile terminal 20, referring to Fig. 3, it illustrates a kind of lifes provided in an embodiment of the present invention At the detailed process of the method for thumbnail, which may include:
S301:Receive photographing instruction;
S302:Based on the photographing instruction, one group of realtime graphic is obtained by camera within the preset period;
For example, by taking mobile terminal 200 shown in Fig. 2 as an example, when mobile terminal 200 is taken pictures, it is necessary first to Start the camera function of mobile terminal, that is, passes through the input unit of mobile terminal 230 (such as physical button or touch panel Push button of taking pictures on 231) input a photographing instruction;In addition, the processor 270 inside mobile terminal 200 is set in advance It is equipped with:In the preset time period of 0.5s, 15 realtime graphics can be obtained by camera;When mobile terminal 200 receives After photographing instruction, camera function instruction can be issued to camera 250 by processor 270, in the preset time period of 0.5s Interior, mobile terminal can obtain 15 realtime graphics by camera 250.
S303:After being pre-processed according to preset processing strategy to the realtime graphic, obtain pretreated real-time Image data;
S304:According to preset amount of images, a group picture is chosen from the pretreated realtime image data As data;
For example, by taking mobile terminal shown in Fig. 2 as an example, in conjunction with examples detailed above, when mobile terminal 200 passes through camera After 250 obtain 15 realtime graphics, in order to obtain the image data of high-resolution and high quality, mobile terminal 200 can pass through Image processor 271 carries out image preprocessings to this 15 realtime graphics, for example, linearity rectification, noise reduction, go bad point, interpolation and The pretreatment modes such as white balance, to obtain 15 pretreated image datas, such as one group of beauty shown in Fig. 4 (a) Realtime image data.In this group of beauty's realtime image data, it can also be handled as follows by processor 270:It chooses The highest image data of clarity, then using this image data as benchmark, in the front-rear direction of the image data, respectively connect Continuous property is chosen, for example chooses 3 image datas forward, 4 image datas is chosen backward, by choose in total 8 images Data are used for forming one group of image data, and memory is stored temporarily in as shown in Fig. 4 (b), and by this group of image data In 220;In addition, image processor 271 can also carry out this 8 image datas the reconstruction of super-resolution image, obtained Shown in super-resolution image such as Fig. 4 (c), which can be stored in memory 220, can also pass through radio frequency mould Block 210 is sent to cloud server and is stored.
S305:One group of image data is stored according to the sequencing of acquisition;
S306:Based on the storage order of one group of image data, the image data obtained at first is chosen;
S307:Using the image data obtained at first as a pending image data;
For example, by taking mobile terminal shown in Fig. 2 as an example, in conjunction with examples detailed above, when for rebuilding super resolution image One group of image data acquisition after, such as above-mentioned one be stored temporarily in memory 220 group image data, such as Fig. 4 (b) institutes Show;In storing process, one group of image data is to be stored in deposit in the form of data queue according to the sequencing of acquisition In reservoir 220;In order to quickly choose pending image data, can also be handled as follows by processor 270:It reads The image data to rank the first in data queue is used as pending image data with this, namely selects the figure obtained at first Picture data are used as pending image data, as shown in Fig. 5 (a);In this way, mobile terminal is used as with the image data obtained at first Pending image data can further promote the efficiency of thumbnail generation, improve the experience of user.
S308:Obtain preset thumbnail dimensions;
S309:Based on the preset thumbnail dimensions, the pending image data is generated into the super-resolution figure As corresponding thumbnail;
For example, by taking mobile terminal shown in Fig. 2 as an example, in conjunction with examples detailed above, when pending as shown in Fig. 5 (a) After image data is selected, in order to generate suitable thumbnail, the processor 270 inside mobile terminal 200 is previously provided with: Preset thumbnail dimensions are 180*120;It can be handled as follows by processor 270:According to the preset thumbnail ruler It is very little, resize processing is carried out to pending image data, then shown in thumbnail such as Fig. 5 (b) acquired in mobile terminal 200.
S310:The thumbnail is stored;
S311:Establish the mapping relations between the super-resolution image and the thumbnail.
For example, by taking mobile terminal shown in Fig. 2 as an example, in conjunction with examples detailed above, mobile terminal 200 can pass through processing Device 270 establishes preset thumbnail file folder;Wherein, preset thumbnail file folder can establish depositing in mobile terminal 200 220 the inside of reservoir can also be established the preset thumbnail file folder in server beyond the clouds by radio frequency unit 210 Face.After above-mentioned thumbnail generates, it can be handled as follows by processor 270:The compression figure is stored in default Thumbnail file folder in, in this way, effectively preventing asking when thumbnail all new thumbnails of in-time generatin every time and increasing The problem of having added cpu resource demand and memory operating load, having reduced the efficiency of thumbnail generation.In addition, due to the contracting Sketch map is generated for super-resolution image, after thumbnail generation, can be located as follows by processor 270 Reason:Establish super-resolution image and Fig. 5 shown in mapping relations namely Fig. 4 (c) between super-resolution image and thumbnail (b) mapping relations between thumbnail shown in;In this way, mobile terminal 200 carries out thumbnail preview by display unit 240, As shown in fig. 6, when user is checked by the selection of input unit 230 to the thumbnail as shown in Fig. 5 (b), can also lead to Established mapping relations are crossed, and then gets the super-resolution image as shown in Fig. 4 (c) and is carried out by display unit 240 It has been shown that, so that user can also look at clearer high-definition picture.
By above-described embodiment, the specific implementation of previous embodiment is elaborated, there it can be seen that passing through The technical solution of previous embodiment, so as to during super-resolution image generates thumbnail, save cpu resource, subtract Small CPU short time consumptions, improve the efficiency of thumbnail generation, and then avoid and super-resolution image is directly carried out resize It handles to generate the interim card problem caused by thumbnail, improves the experience of user.
Embodiment three
Based on the identical inventive concept of previous embodiment, referring to Fig. 7, it illustrates a kind of lifes provided in an embodiment of the present invention At the composition of the device 70 of thumbnail, may include:Fetching portion 701, selected part 702 and generating portion 703;Wherein,
The fetching portion 701 is configured to obtain one group of image data, and one group of image data is used for super-resolution figure The reconstruction of picture;
The selected part 702 is configured to choose a pending image data from one group of image data;
The generating portion 703 is configured to the contracting that the pending image data generates the super-resolution image Sketch map.
In the above scheme, the fetching portion 701, concrete configuration are:
Based on photographing instruction, one group of realtime graphic is obtained by camera within the preset period;
After being pre-processed according to preset processing strategy to the realtime graphic, one group of image data is obtained.
In the above scheme, the fetching portion 701, concrete configuration are:
After being pre-processed according to preset processing strategy to the realtime graphic, pretreated realtime graphic number is obtained According to;
According to preset amount of images, one group of picture number is chosen from the pretreated realtime image data According to.
In the above scheme, referring to Fig. 8, the device for generating thumbnail further includes the first storage section 704, configuration For:
One group of image data is stored according to the sequencing of acquisition.
In the above scheme, the selected part 702, concrete configuration are:
From one group of image data, the highest image data of clarity is chosen;
Using the highest image data of the clarity as the pending image data.
In the above scheme, the selected part 702, concrete configuration are:
Based on the storage order of one group of image data, the image data obtained at first is chosen;
Using the image data obtained at first as the pending image data.
In the above scheme, the generating portion 703, concrete configuration are:
Obtain preset thumbnail dimensions;
Based on the preset thumbnail dimensions, the pending image data is generated into the super-resolution image and is corresponded to Thumbnail.
In the above scheme, referring to Fig. 9, the device for generating thumbnail further includes the second storage section 705, configuration For:
The thumbnail is stored;
Establish the mapping relations between the super-resolution image and the thumbnail.
It is to be appreciated that in the present embodiment, " part " can be partial circuit, segment processor, subprogram or soft Part etc., naturally it is also possible to be unit, can also be that module can also be non-modularization.
In addition, each component part in the present embodiment can be integrated in a processing unit, can also be each list Member physically exists alone, can also be during two or more units are integrated in one unit.Above-mentioned integrated unit both can be with It is realized, can also be realized in the form of software function module in the form of hardware.
If the integrated unit realizes that being not intended as independent product is sold in the form of software function module Or in use, can be stored in a computer read/write memory medium, based on this understanding, the technical side of the present embodiment Substantially all or part of the part that contributes to existing technology or the technical solution can be produced case with software in other words The form of product embodies, which is stored in a storage medium, including some instructions are used so that one Platform computer equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute sheet The all or part of step of embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD Etc. the various media that can store program code.
Therefore, a kind of computer storage media is present embodiments provided, which is stored with generation breviary The program of figure, the program for generating thumbnail is realized when being executed by least one processor generates contracting described in above-described embodiment one The step of method of sketch map.
The composition and computer storage media of device 70 based on above-mentioned generation thumbnail, referring to Figure 10, it illustrates It is provided in an embodiment of the present invention generate thumbnail device 70 particular hardware structure, may include:Network interface 1001, storage Device 1002 and processor 1003;Various components are coupled by bus system 1004.It is understood that bus system 1004 is used for Realize the connection communication between these components.Bus system 1004 further includes power bus, control in addition to including data/address bus Bus and status signal bus in addition.But for the sake of clear explanation, various buses are all designated as bus system 1004 in Fig. 10. Wherein, network interface 1001, during for being received and sent messages between other ext nal network elements, the reception of signal and hair It send;
Memory 1002, for storing the computer program that can be run on processor 1003;
Processor 1003, for when running the computer program, executing:
One group of image data is obtained, one group of image data is used for the reconstruction of super-resolution image;
A pending image data is chosen from one group of image data;
The thumbnail of the super-resolution image is generated based on the pending image data.
It is appreciated that the memory 1002 in the embodiment of the present invention can be volatile memory or non-volatile memories Both device, or may include volatile and non-volatile memory.Wherein, nonvolatile memory can be read-only memory (Read-Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), erasable programmable are only Read memory (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, ) or flash memory EEPROM.Volatile memory can be random access memory (Random Access Memory, RAM), use Make External Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random-access Memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random-access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), it is enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronous Connect dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 1002 of system and method described herein be intended to including but not limited to this A little and any other suitable type memory.
And processor 1003 may be a kind of IC chip, the processing capacity with signal.During realization, on Stating each step of method can be completed by the integrated logic circuit of the hardware in processor 1003 or the instruction of software form. Above-mentioned processor 1003 can be general processor, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate Array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or crystal Pipe logical device, discrete hardware components.It may be implemented or execute the disclosed each method in the embodiment of the present invention, step and patrol Collect block diagram.General processor can be microprocessor or the processor can also be any conventional processor etc..In conjunction with this The step of method disclosed in inventive embodiments, can be embodied directly in hardware decoding processor and execute completion, or at decoding Hardware and software module combination in reason device execute completion.Software module can be located at random access memory, flash memory, read-only storage In the storage medium of this fields such as device, programmable read only memory or electrically erasable programmable memory, register maturation.It should Storage medium is located at memory 1002, and processor 1003 reads the information in memory 1002, and above-mentioned side is completed in conjunction with its hardware The step of method.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its It combines to realize.For hardware realization, processing unit may be implemented in one or more application-specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or It is realized outside processor.
Optionally, as another embodiment, processor 1003 is additionally configured to when running the computer program, is executed The step of method of thumbnail is generated described in above-described embodiment one.
Referring to Figure 11, it illustrates a kind of mobile terminal 110 provided in an embodiment of the present invention, the mobile terminal 110 to Include the device 70 of any one generation thumbnail involved in previous embodiment less.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of method generating thumbnail, the method includes:
One group of image data is obtained, one group of image data is used for the reconstruction of super-resolution image;
A pending image data is chosen from one group of image data;
The thumbnail of the super-resolution image is generated based on the pending image data.
2. according to the method described in claim 1, it is characterized in that, one group of image data of the acquisition, specifically includes:
Based on photographing instruction, one group of realtime graphic is obtained by camera within the preset period;
After being pre-processed according to preset processing strategy to the realtime graphic, one group of image data is obtained.
3. according to the method described in claim 2, it is characterized in that, described tactful according to preset processing to the realtime graphic After being pre-processed, one group of image data is obtained, is specifically included:
After being pre-processed according to preset processing strategy to the realtime graphic, pretreated realtime image data is obtained;
According to preset amount of images, one group of image data is chosen from the pretreated realtime image data.
4. according to the method described in claim 1, it is characterized in that, after one group of image data of the acquisition, the method Further include:
One group of image data is stored according to the sequencing of acquisition.
5. according to the method described in claim 1, it is characterized in that, described from selection one waits in one group of image data Image data is managed, is specifically included:
From one group of image data, the highest image data of clarity is chosen;
Using the highest image data of the clarity as the pending image data.
6. according to the method described in claim 1, it is characterized in that, described from selection one waits in one group of image data Image data is managed, is specifically included:
Based on the storage order of one group of image data, the image data obtained at first is chosen;
Using the image data obtained at first as the pending image data.
7. according to the method described in claim 1, it is characterized in that, described generate described surpass based on the pending image data The thumbnail of image in different resolution, specifically includes:
Obtain preset thumbnail dimensions;
Based on the preset thumbnail dimensions, the pending image data is generated into the corresponding contracting of the super-resolution image Sketch map.
8. according to the method described in claim 1, it is characterized in that, described based on described in the pending image data generation After the thumbnail of super-resolution image, the method further includes:
The thumbnail is stored;
Establish the mapping relations between the super-resolution image and the thumbnail.
9. it is a kind of generate thumbnail device, which is characterized in that it is described generate thumbnail device include:Network interface, storage Device and processor;Wherein,
The network interface, during for being received and sent messages between other ext nal network elements, signal sends and receivees;
The memory, for storing the computer program that can be run on the processor;
The processor, for when running the computer program, perform claim to require any one of 1 to the 8 generation breviary The step of method of figure.
10. a kind of computer storage media, which is characterized in that the computer storage media is stored with the journey for generating thumbnail Sequence, the program for generating thumbnail realize the generation contracting of any one of claim 1 to 8 when being executed by least one processor The step of method of sketch map.
CN201810367406.1A 2018-04-23 2018-04-23 A kind of method, apparatus and computer storage media generating thumbnail Pending CN108765281A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810367406.1A CN108765281A (en) 2018-04-23 2018-04-23 A kind of method, apparatus and computer storage media generating thumbnail

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810367406.1A CN108765281A (en) 2018-04-23 2018-04-23 A kind of method, apparatus and computer storage media generating thumbnail

Publications (1)

Publication Number Publication Date
CN108765281A true CN108765281A (en) 2018-11-06

Family

ID=64011386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810367406.1A Pending CN108765281A (en) 2018-04-23 2018-04-23 A kind of method, apparatus and computer storage media generating thumbnail

Country Status (1)

Country Link
CN (1) CN108765281A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276718A (en) * 2019-06-28 2019-09-24 Oppo广东移动通信有限公司 Image processing method, image processor, filming apparatus and electronic equipment
CN111710171A (en) * 2020-06-11 2020-09-25 北京筑梦园科技有限公司 License plate recognition method, server and parking management system
WO2021159679A1 (en) * 2020-02-10 2021-08-19 北京百度网讯科技有限公司 Method for processing cover image of multimedia information, and client and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103534727A (en) * 2011-05-17 2014-01-22 苹果公司 Panorama processing
US20140132735A1 (en) * 2012-11-15 2014-05-15 Jeehong Lee Array camera, mobile terminal, and methods for operating the same
TW201608523A (en) * 2014-08-29 2016-03-01 鴻海精密工業股份有限公司 Method and system for generating thumbnails of images
WO2017034060A1 (en) * 2015-08-27 2017-03-02 전자부품연구원 Image processing system and method capable of acquiring real-time super-resolution image and providing preview
CN106657765A (en) * 2016-10-19 2017-05-10 上海传英信息技术有限公司 Thumbnail generation method and user terminal
CN107509038A (en) * 2017-10-16 2017-12-22 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN107566739A (en) * 2017-10-18 2018-01-09 维沃移动通信有限公司 A kind of photographic method and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103534727A (en) * 2011-05-17 2014-01-22 苹果公司 Panorama processing
US20140132735A1 (en) * 2012-11-15 2014-05-15 Jeehong Lee Array camera, mobile terminal, and methods for operating the same
TW201608523A (en) * 2014-08-29 2016-03-01 鴻海精密工業股份有限公司 Method and system for generating thumbnails of images
WO2017034060A1 (en) * 2015-08-27 2017-03-02 전자부품연구원 Image processing system and method capable of acquiring real-time super-resolution image and providing preview
CN106657765A (en) * 2016-10-19 2017-05-10 上海传英信息技术有限公司 Thumbnail generation method and user terminal
CN107509038A (en) * 2017-10-16 2017-12-22 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN107566739A (en) * 2017-10-18 2018-01-09 维沃移动通信有限公司 A kind of photographic method and mobile terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276718A (en) * 2019-06-28 2019-09-24 Oppo广东移动通信有限公司 Image processing method, image processor, filming apparatus and electronic equipment
WO2020259250A1 (en) * 2019-06-28 2020-12-30 Oppo广东移动通信有限公司 Image processing method, image processor, photographing apparatus, and electronic device
WO2021159679A1 (en) * 2020-02-10 2021-08-19 北京百度网讯科技有限公司 Method for processing cover image of multimedia information, and client and electronic device
US11526545B2 (en) 2020-02-10 2022-12-13 Beijing Baidu Netcom Science Technology Co., Ltd. Method of processing cover page image of multimedia information, client and electronic device
CN111710171A (en) * 2020-06-11 2020-09-25 北京筑梦园科技有限公司 License plate recognition method, server and parking management system
CN111710171B (en) * 2020-06-11 2022-08-30 北京筑梦园科技有限公司 License plate recognition method, server and parking management system

Similar Documents

Publication Publication Date Title
US7418673B2 (en) Thumbnail image browsing method in an embedded system
JP4177713B2 (en) Imaging device
TWI705695B (en) System and method for foveated compression of image frames in a system on a chip
JP5431775B2 (en) Portable imaging device for offloading image processing work
US20130057549A1 (en) Tiling Process For Digital Image Retrieval
US9082205B2 (en) Image processing apparatus for processing image data to produce compressed image data and display data
CN108765281A (en) A kind of method, apparatus and computer storage media generating thumbnail
CN103957416B (en) Partial expansion method of encoded images and image processing apparatus
JP2010205252A (en) Information display
US9076239B2 (en) Method and systems for thumbnail generation, and corresponding computer program product
US20070104360A1 (en) System and method for capturing 3D face
CN110930467A (en) Image processing method, electronic device and readable storage medium
CN106453572A (en) Method and system for synchronizing images based on cloud server
JP2007312240A (en) Portable terminal dynamic image display system
KR101050662B1 (en) Wireless communication terminal and method thereof having editing image composition and composition
JP2005150985A (en) Image information processing system and image information processing method
CN101420504A (en) Image viewing system and method
CN107564084B (en) Method and device for synthesizing motion picture and storage equipment
CN112347049A (en) File information display method, terminal device and computer-readable storage medium
WO2023125217A1 (en) Image processing circuit and method, and electronic device
US20080278606A9 (en) Image compositing
US20090167961A1 (en) Image processing device
JP4030014B2 (en) Image display device and program thereof
US20080007648A1 (en) Real time scaling and rotating decoded image data
CN114338874A (en) Image display method of electronic device, image processing circuit and electronic 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181106

RJ01 Rejection of invention patent application after publication