CN107509038B - A kind of image pickup method and mobile terminal - Google Patents
A kind of image pickup method and mobile terminal Download PDFInfo
- Publication number
- CN107509038B CN107509038B CN201710958021.8A CN201710958021A CN107509038B CN 107509038 B CN107509038 B CN 107509038B CN 201710958021 A CN201710958021 A CN 201710958021A CN 107509038 B CN107509038 B CN 107509038B
- Authority
- CN
- China
- Prior art keywords
- image data
- image
- realtime graphic
- data
- target
- 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
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/64—Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
-
- 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/80—Camera processing pipelines; Components thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Studio Devices (AREA)
Abstract
The present invention provides a kind of image pickup method and mobile terminals, and wherein image pickup method includes: to pre-process to the realtime graphic of camera acquisition, generate the first image data and the second image data;According to the second image data, the preview image for generating the thumbnail of realtime graphic and showing on a display screen;According to the first image data, generates the corresponding target of realtime graphic and store image.Technical solution of the present invention, two-way image data is generated by pre-processing to realtime graphic, target, which is generated, according to the first image data stores image, thumbnail and preview image are generated according to the second image data, while the image needed for guaranteeing to obtain, it realizes quickly display thumbnail, shortens the renewal time of thumbnail.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of image pickup methods and mobile terminal.
Background technique
Current Android platform is generally faced with when taking pictures because caused by the reasons such as high resolution, post-processing complexity
The puzzlement of shooting speed decline and poor user experience.In order to guarantee user shooting experience, zero shutter delay technology of camera by
It is widely used in various hand-held mobile terminal cameras, but zero shutter delay technology of camera can only solve asking for fast Acquisition
Topic.Existing Android camera software can only execute in order intake, post-processing and compression the step of, and thumbnail show be
It is carried out after post-processing algorithm, the bottleneck of speed is usually after execution during Processing Algorithm, so if post-processing or calculating
It is updated slow that method overlong time will lead to thumbnail.
As shown in Figure 1, for the shooting process in existing scene are as follows: initialisation image sensor and image processor obtain
Shooting instruction obtains image by imaging sensor and image processor, obtains take pictures data and preview data.For number of taking pictures
For, the data that will take pictures input post-processing module, start the multiframe algorithm for executing post-processing and background processing module correlation behaviour
Make, after obtaining the image handled, updates thumbnail and encoded and stored immediately operation to it.For preview data
It executes, preview data feeding post-processing module is handled, preview data feeding display module is shown by treated.
In the above process, due to the complexity and post-processing operation of algorithm, the plenty of time can be consumed, thumbnail is caused to update
It is very slow, influence the experience of user.
Summary of the invention
The embodiment of the present invention provides a kind of image pickup method and mobile terminal, with when solving that thumbnail updates in the prior art more
New slow-footed problem.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, the embodiment of the present invention provides a kind of image pickup method, comprising:
The realtime graphic of camera acquisition is pre-processed, the first image data and the second image data are generated;
According to the second image data, the preview image for generating the thumbnail of realtime graphic and showing on a display screen;
According to the first image data, generates the corresponding target of realtime graphic and store image.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, comprising:
First generation module, for being pre-processed to the realtime graphic that camera acquires, generate the first image data and
Second image data;
Second generation module, for generating the thumbnail of realtime graphic and showing on a display screen according to the second image data
The preview image shown;
Third generation module, for generating the corresponding target of realtime graphic and storing image according to the first image data.
The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, including processor, memory and are stored in storage
On device and the computer program that can run on a processor, above-mentioned image pickup method is realized when computer program is executed by processor
The step of.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, computer readable storage medium
Upper storage computer program, the step of above-mentioned image pickup method is realized when computer program is executed by processor.
In embodiments of the present invention, by pre-processing to the realtime graphic that camera acquires, the first picture number is generated
According to the second image data, according to the second image data generate realtime graphic thumbnail and preview image, according to the first image
Data generate the corresponding target of realtime graphic and store image, can realize quickly display while guaranteeing to obtain required image
Thumbnail shortens the renewal time of thumbnail.
Detailed description of the invention
Fig. 1 shows the shooting flow diagrams of the prior art;
The image pickup method schematic diagram of Fig. 2 expression embodiment of the present invention;
The corresponding module frame chart one of image pickup method of Fig. 3 expression embodiment of the present invention;
The shooting flow diagram one of Fig. 4 expression embodiment of the present invention;
The corresponding module frame chart two of image pickup method of Fig. 5 expression embodiment of the present invention;
The shooting flow diagram two of Fig. 6 expression embodiment of the present invention;
The mobile terminal schematic diagram one of Fig. 7 a expression embodiment of the present invention;
The mobile terminal schematic diagram two of Fig. 7 b expression embodiment of the present invention;
Fig. 8 shows the hardware structural diagrams of the mobile terminal of the embodiment of the present invention.
Specific embodiment
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 description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of image pickup method, as shown in Figure 2, comprising:
After the realtime graphic for obtaining camera acquisition, the realtime graphic of acquisition is pre-processed, is completed in pretreatment
Two-way image data, respectively the first image data and the second image data are produced afterwards.Wherein the first image data is to take pictures
Data, the second image data are preview data.
The step of realtime graphic of camera acquisition is pre-processed, obtains the first image data and the second image data
It include: that linearity rectification, noise reduction are carried out to the realtime graphic of camera acquisition, remove bad point, interpolation, Bai Ping by image processor
Weighing apparatus and color conversion at least one of processing;According to treated realtime graphic, the first image data and the second figure are generated
As data.
Specifically: mobile terminal acquires realtime graphic by the imaging sensor of camera, after obtaining realtime graphic,
Realtime graphic is transmitted to image processor, image processor is right after the realtime graphic for receiving imaging sensor transmission
The realtime graphic of acquisition is pre-processed.Pretreated process wherein is carried out to realtime graphic are as follows: carry out to realtime graphic linear
Correction, noise reduction, go bad point, interpolation, white balance and color conversion at least one of processing.After the completion of pretreatment, according to
By pretreated the first image data of real time image generation and the second image data, wherein corresponding to same realtime graphic
The first image data and the second image data frame identification having the same, corresponding to the first image data and the second image data
Content it is identical, but the resolution ratio of the two and size different from.Furthermore, it is understood that the first image data is data of taking pictures,
Second image data is preview data.Wherein the size of the first image data is the full-size of camera sensor, the second image
The size of data is identical as screen size, the resolution ratio of the resolution ratio of the second image data less than the first image data.
By image processor to the realtime graphic of acquisition carry out linearity rectification, noise reduction, go bad point, interpolation, white balance with
And typical ISP (image Signal process, the image signal process) pretreatment of at least one of color conversion, Ke Yisheng
At the corresponding two-way image data of realtime graphic, convenient for carrying out subsequent processing to the two-way image data of acquisition, to carry out breviary
The update of figure and preview image, and obtain the storage image of target required for user.It is real while the image needed for guaranteeing to obtain
It now quickly shows thumbnail, shortens the renewal time of thumbnail.Generate the first image data and the second image data it
Afterwards, step 202 is executed.
After obtaining the first image data and the second image data, need to generate realtime graphic according to the second image data
Corresponding thumbnail, while the preview graph shown on a display screen according to corresponding to the second image data generation realtime graphic
Picture.
In embodiments of the present invention, it according to the second image data, generates the thumbnail of realtime graphic and shows on a display screen
The step of preview image shown includes: the post-processing that at least one of noise reduction, sharpening and rotation are carried out to the second image data;
According to the second image data after post treatment, the display of thumbnail and preview image is updated.
It after obtaining the second image data, needs to post-process the second image data, wherein to the second picture number
When according to being post-processed, need for the second image data to be transmitted to post-processing module, post-processing module is to the second figure received
As the post-processing operation of at least one of data progress noise reduction, sharpening and rotation, after the completion of post-processing operation, according to process
Second image data of post-processing updates the display of thumbnail and preview image.
It,, will after obtaining the second image data using preview data as the second image data in technical solution of the present invention
Second image data carries out the post-processing of at least one of noise reduction, sharpening and rotation, according to the second image after post treatment
Data update the display of thumbnail and preview image, since the resolution ratio of preview data is small, post-process the required time compared with
It is short, while preview data does not need to carry out calculation processing using default processing mode, therefore updates thumbnail using preview data
Time it is shorter, may be implemented quickly to show thumbnail, shorten the renewal time of thumbnail.
It should be noted that while updating thumbnail according to the second image data after post treatment, it can basis
The second image data after post treatment is shown to generate a preview image, that is, by the second image data after post treatment
It is transmitted to image display system, carries out the display of preview image.
It after obtaining the first image data, needs to handle the first image data, to obtain target storage image.
Wherein the processing of the first image data and the second image data can be while carry out, but the second image data is as pre-
Look at data, compared with the first image data, treatment process is relatively easy and time-consuming shorter.
In embodiments of the present invention, according to the first image data, the step of the corresponding target storage image of realtime graphic is generated
It suddenly include: photographed scene information when obtaining acquisition realtime graphic;Determine default processing mode corresponding with photographed scene information;
At least one of according to default processing mode, the first image data is handled, and executes noise reduction, sharpen and rotate
Post-processing operation generates target image;Target image is encoded, target is generated and stores image.
Wherein during shooting preview, by the data of ISP analysis imaging sensor to obtain photographed scene information,
Middle photographed scene information includes current environment and site attribute, after obtaining photographed scene information, according to photographed scene information
Judge whether need to carry out multiframe using corresponding default processing mode in this scene to take pictures, for example, high dynamic range scene,
It needs to take pictures using corresponding default processing mode to carry out multiframe under night scene or shake scene.
If the corresponding photographed scene information of realtime graphic is shake when the imaging sensor of camera acquires realtime graphic
When state, then need to determine corresponding default processing mode for dither state, after obtaining the first image data, according to true
At least one of fixed default processing mode, handles the first image data, and execute noise reduction, sharpen and rotate
Post-processing operation is completed to generate target image after operation.
When wherein handling according to default processing mode the first image data, in order to obtain satisfactory image,
The part for meeting preset requirement can be intercepted respectively in corresponding multiple image using default processing mode, by the part of interception
Image is spliced and combined, and the image after combination is carried out to the post-processing operation of at least one of noise reduction, sharpening, rotation, is obtained
Target image.
Such as gravity sensor inside mobile terminal or gyroscope need when detecting that mobile terminal is in dither state
It determines corresponding default processing mode, i.e., can open anti-shaking module at this time, interception meets respectively in corresponding multiple image
The parts of images of static photographing request splices and combines the multiple portions image of interception, the image after obtaining combination, to group
Image after conjunction carries out the post-processing operation of at least one of noise reduction, sharpening, rotation, obtains target image.
After obtaining target image, target image is transmitted to encoder, compression volume is carried out to the target image of acquisition
Code obtains target and stores image, and target storage image transmitting to storage equipment is stored.
During generation user required target storage image, the corresponding default processing of photographed scene information is determined
Mode is handled the first image data according to default processing mode, and is carried out at least one in noise reduction, sharpening and rotation
The post-processing operation of item, it is ensured that by the display effect of the first image data target image generated, and then guarantee user
The display effect of required target storage image.
In the technical solution of the present invention, according to the second image data, the thumbnail of realtime graphic is generated and in display screen
During the preview image of upper display, further includes:
Obtain corresponding first image data of current second image data;The first image data that will acquire is cached to data
In queue;Wherein, each first image data and the second image data all have frame identification, the first picture number of identical frame identification
According to there are corresponding relationships between the second image data.
Second image data in the process of processing, is being needed to obtain corresponding to the second currently processed image data
The first image data cached after obtaining the first corresponding image data into data queue.Wherein for every
For one realtime graphic, the first corresponding image data and the second image data frame identification having the same, due to the two
Frame identification is identical, there is corresponding relationship between the two.Obtaining the first image corresponding to the second currently processed image data
When data, search procedure is executed according to corresponding relationship to obtain the first corresponding image data.
By caching the first image data, the first image data can be led to avoid due to accidentally exiting photographing program
The problem of loss, guarantees being normally carried out for treatment process.
In embodiments of the present invention, it is pre-processed to the realtime graphic that camera acquires, generates the first image data
After the step of the second image data, further includes: establish first image data and the second picture number with identical frame identification
Corresponding relationship between.
After obtaining the first image data and the second image data, had according to the first image data and the second image data
The identical frame identification having, establishes the corresponding relationship of the first image data Yu the second image data.It is directed to a realtime graphic, due to
Realtime graphic the first image data generated is identical with the frame identification of the second image data, can be built according to identical frame identification
Both vertical corresponding relationship, convenient for finding corresponding second image data according to the first image data, or according to the second figure
As data search to corresponding first image data.
Since the corresponding frame identification of every frame realtime graphic uniquely determines, by utilizing identical frame identification, the is established
Corresponding relationship between one image data and the second image data, can be in order to searching corresponding first image data or second
Image data simplifies search procedure, improves the accuracy of lookup.
In embodiments of the present invention, after the thumbnail for generating realtime graphic according to the second image data, this method is also wrapped
It includes:
Whether detection currently runs photographing program;It is not currently running photographing program if detecting, in data queue, root
According to the frame identification of current second image data, corresponding first image data is searched;Determine the photographed scene of the first image data
The corresponding default processing mode of information;According to default processing mode, the first image data is handled, and executes noise reduction, sharp
Change and rotation at least one of post-processing operation, generate target image;Target image is encoded, target is generated and deposits
Store up image.
Specifically, being needed after generating thumbnail according to the second image data to mobile terminal in the embodiment of the present invention
The operating status of photographing program detected, if current mobile terminal exits photographing program, need to search in data queue
Corresponding first image data of current second image data, wherein current second image data is the second figure for generating thumbnail
As data.When searching the first image data, searched using the corresponding relationship of frame identification.
After obtaining the first image data, according to the shooting of the corresponding realtime graphic of the first image data obtained in advance
Scene information determines corresponding default processing mode, handles according to corresponding default processing mode the first image data,
And the post-processing operation of at least one of noise reduction, sharpening, rotation is executed, generate target image.It will after obtaining target image
Target image is transmitted to encoder, carries out compressed encoding to the target image of acquisition, obtains target and store image, target is stored
Image transmitting to storage equipment is stored.
By being cached to the first image data, can cause to avoid backed off after random photographing program is updated successfully in thumbnail
The problem of first image data is lost.And during generating target storage image, by determining that photographed scene information is corresponding
Default processing mode, the first image data is handled according to default processing mode, and carry out noise reduction, sharpening, Yi Jixuan
The post-processing operation at least one of turned, it is ensured that by the display effect of the first image data target image generated, into
And guarantee the display effect of the required target storage image of user.
The embodiment of the present invention, by being pre-processed to the realtime graphic that camera acquires, generate the first image data and
Second image data generates the thumbnail and preview image of realtime graphic according to the second image data, according to the first image data
It generates the corresponding target of realtime graphic and stores image, can realize quickly display breviary while guaranteeing to obtain required image
Figure, shortens the renewal time of thumbnail.Further, by the way that data are cached and can be updated successfully to avoid in thumbnail
The problem of backed off after random photographing program causes the first image data to be lost.
The corresponding module frame chart one of image pickup method provided in an embodiment of the present invention is referring to shown in Fig. 3:
The imaging sensor 301 of camera obtains realtime graphic for acquiring picture signal;Imaging sensor 301 and figure
As the connection of processor 302, after obtaining realtime graphic, realtime graphic is transmitted to image processor 302, image processor
302 pairs of realtime graphics received pre-process, and the first image data and the second image data are generated, wherein the first image
Data are data of taking pictures, and the second image data is preview data.Image processor 302 is connect with image post processor 303, image
Preprocessor 303 carries out the post-processing of at least one of noise reduction, sharpening and rotation to the second image data, is located later according to warp
Second image data of reason updates the display of thumbnail and preview image.According to default processing mode, to the first image data into
Row processing, and execute noise reduction, sharpen and rotation at least one of post-processing operation, generate target image.By preview image
It is transmitted to image display system 304 to be shown, the target image generated according to the first image data is transmitted to encoder 305
Data compression coding is carried out, target is generated in the completed and stores image, and be transmitted to image storage system 306 and saved.Its
Middle image processor 302, image post processor 303 and encoder 305 belong to image software system, and image software system is by grasping
Make system 300 to be controlled.
Wherein, the embodiment of the present invention also provides a kind of implementing procedure, as shown in Figure 4:
In previews of taking pictures, vision sensor data is analyzed by image processor, to obtain photographed scene information,
And judge whether need to carry out multiframe using corresponding default processing mode in this scene to take pictures, such as in high dynamic range enveloping field
It needs to take pictures using corresponding default processing mode to carry out multiframe under scape, night scene or shake scene.
Step 402 obtains photographing instruction.
The photographing instruction for receiving user's input executes photographing operation according to photographing instruction.
Step 403 obtains realtime graphic and is pre-processed by image processor, generates the first image data and second
Image data.
After obtaining photographing command, image pixel information is acquired first with the imaging sensor in mobile terminal, then will
Acquired image Pixel Information is sent to image processor, removed by image processor progress linearity rectification, noise reduction, bad point,
The processing of at least one of interpolation, white balance, color conversion, due to using zero shutter delay technology of camera, by image procossing
Two paths of data can be separated after device, be take pictures data (i.e. the first image data, for finally obtaining target storage image) all the way, separately
One circuit-switched data is preview data (i.e. the second image data, for being shown).And every circuit-switched data has frame identification, only frame mark
Know identical preview data and be just considered that content is identical with data of taking pictures, but the resolution ratio of the two and size difference.
Wherein it can be found in step 404~step 406 for the processing of the first image data, for the place of the second image data
Reason can be found in step 407~409.
First image data is inputted post-processing module by step 404.
After obtaining the first image data, the first image data is inputted in post-processing module and executes operation.
After the first image data is inputted post-processing module, determine that the photographed scene information of the first image data is corresponding
Default processing mode;According to default processing mode, the first image data is handled, and executes noise reduction, sharpen and rotate
At least one of post-processing operation, generate target image.
Step 406 encodes target image, generates target storage image and is stored.
After generating target image, the target image of generation is subjected to data compression coding, generates target in the completed
Storage image is simultaneously saved.
Second image data is inputted post-processing module by step 407.
After obtaining the second image data, the second image data is inputted in post-processing module and executes operation.
Step 408 post-processes the second image data, updates breviary according to the second image data after post treatment
The display of figure and preview image.
After the second image data is inputted post-processing module, the second image data is subjected to noise reduction, sharpening and rotation
At least one of post-processing, the second image data after post treatment is transmitted to using being updated thumbnail, according to warp
Later the second image data handled generates a preview image.
Preview image is transmitted to image display system and shows by step 409.
After obtaining the preview image generated according to treated the second image data, image display system is transmitted it to
System, shows preview image by image display system.
Above-mentioned implementation process obtains the identical preview data of content by the characteristic using zero shutter delay technology of camera
Thumbnail is updated using preview data after obtaining preview data with data of taking pictures, quickly display thumbnail is realized, shortens
The renewal time of thumbnail.
The corresponding module frame chart two of image pickup method provided in an embodiment of the present invention is referring to Figure 5:
The imaging sensor 301 of camera obtains realtime graphic for acquiring picture signal;Imaging sensor 301 and figure
As the connection of processor 302, after obtaining realtime graphic, realtime graphic is transmitted to image processor 302, image processor
302 pairs of realtime graphics received pre-process, and the first image data and the second image data are generated, wherein the first image
Data are data of taking pictures, and the second image data is preview data.Image processor 302 is connect with image post processor 303, image
After preprocessor 303 obtains the second image data, at least one of noise reduction, sharpening and rotation are carried out to the second image data
Post-processing updates the display of thumbnail and preview image, then by preview image according to the second image data after post treatment
Image display system 304 is transmitted to be shown.
During image post processor 303 updates the display of thumbnail and preview image according to the second image data,
The first image data that image processor 302 can also be generated is transmitted to buffer 307 and caches, and is transmitted to after caching
Image post processor 303 determines the corresponding default processing mode of the first image data, according to default processing mode, to the first figure
It as data are handled, and executes noise reduction, sharpen and the post-processing operation of at least one of rotation, generate target image.It will
Target image is transmitted to encoder 305 and carries out data compression coding, is transmitted to image storage system 306 in the completed and is protected
It deposits.The interface of the first image data of transmission of image processor 302 is connect with buffer 307 at this time, transmits the second image data
Interface connect with image post processor 303, the output end of buffer 307 is connect with image post processor 303, post processing of image
The output end of device 303 is connect with encoder 305 and image display system 304, the output end and image storage system of encoder 305
306 connections.For the ease of subsequent explanation, such connection type is referred to as the first connection type.
Wherein image processor 302, image post processor 303, buffer 307 and encoder 305 belong to image software
System, image software system are controlled by operating system 300.
It should be noted that the embodiment of the present invention can also have another embodiment, in 303 basis of image post processor
While the display of second image data update thumbnail and preview image, the corresponding default processing side of the first image data is determined
At least one of formula is handled the first image data according to default processing mode, and execute noise reduction, sharpen and rotate
Post-processing operation, generate target image.Preview image is transmitted to image display system 304 to show, by the mesh of generation
Logo image is transmitted to the buffer 307 connecting with image post processor 303 and is cached, and the target image after caching is transmitted to
Encoder 305 carries out data compression coding, is transmitted to image storage system 306 in the completed and is saved.Image procossing at this time
Device 302 is connect with image post processor 303, the output end and buffer 307 and image display system of image post processor 303
304 connections.Buffer 307 is connect with encoder 305, and the output end of encoder 305 is connect with image storage system 306.It is such
Connection type is referred to as second of connection type.Wherein second of connection type does not show that in the accompanying drawings, those skilled in the art
Member should be understood that in conjunction with associated description.
Wherein, the embodiment of the present invention also provides a kind of implementing procedure, as shown in Figure 6:
In previews of taking pictures, vision sensor data is analyzed by image processor, to obtain photographed scene information,
And judge whether need to carry out multiframe using corresponding default processing mode in this scene to take pictures, such as in high dynamic range enveloping field
It needs to take pictures using corresponding default processing mode to carry out multiframe under scape, night scene or shake scene.
Step 602 obtains photographing instruction.
The photographing instruction for receiving user's input executes photographing operation according to photographing instruction.
Step 603 obtains realtime graphic and is pre-processed by image processor, generates the first image data and second
Image data.
After obtaining photographing command, image pixel information is acquired first with the imaging sensor in mobile terminal, then will
Acquired image Pixel Information is sent to image processor, carries out linearity rectification, noise reduction, bad point by image-signal processor and goes
Remove, interpolation, white balance, color conversion at least one of processing, due to use zero shutter delay technology of camera, at image
Two paths of data can be separated after reason device, is take pictures data (i.e. the first image data, for finally obtaining target storage image) all the way,
Another circuit-switched data is preview data (i.e. the second image data, for being shown).And every circuit-switched data has frame identification, only frame
It identifies identical preview and is just considered that content is identical with data of taking pictures, but the resolution ratio of the two and size difference.
Wherein it can be found in step 604~step 606 for the processing of the second image data, for the place of the first image data
Reason can be found in step 607~611.
Second image data of current realtime graphic is inputted post-processing module by step 604.
After obtaining the second image data, the second image data is inputted in post-processing module and executes operation.
Step 605 post-processes the second image data, updates breviary according to the second image data after post treatment
The display of figure and preview image.
After the second image data is inputted post-processing module, the second image data is subjected to noise reduction, sharpening and rotation
At least one of post-processing, the second image data after post treatment is transmitted to using being updated thumbnail, according to warp
Later the second image data handled generates a preview image.
Preview image is transmitted to image display system and shows by step 606.
After obtaining preview image, image display system is transmitted it to, by image display system to preview image
It is shown.
It, will be with current second image data pair while the second image data is transmitted to post-processing module being handled
The first image data answered is cached.
Step 608 judges whether to exit photographing program.If it is executing, step 609 is no to then follow the steps 610.
After by the first image data caching, it is understood that for the contracting for generating realtime graphic according to the second image data
After sketch map, whether judgement currently exits photographing program.If having exited photographing program executes step 609, no to then follow the steps
610。
Current first image data in step 609, reading buffer.Then step 610 is executed.
When mobile terminal exits photographing program, the is obtained in buffer corresponding to current second image data that caches
One image data.
After the first image data is inputted post-processing module, determine that the photographed scene information of the first image data is corresponding
Default processing mode;According to default processing mode, the first image data is handled, and executes noise reduction, sharpen and rotate
At least one of post-processing operation, generate target image.
After generating target image, the target image of generation is subjected to data compression coding, generates target in the completed
Storage image is simultaneously saved.
Wherein implementing procedure shown in fig. 6 is corresponding with the first connection structure in Fig. 5.Above-mentioned implementation process, passes through
Using the characteristic of zero shutter delay technology of camera, the identical preview data of content and data of taking pictures are obtained, preview data is being obtained
Afterwards, thumbnail is generated using preview data, realizes quickly display thumbnail, shortens thumbnail renewal time.
The case where updating backed off after random photographing program for thumbnail simultaneously, due to taking pictures, data do not handle completion, at this time
The case where will lead to loss of data of taking pictures, being put into buffer by the data that will take pictures, data can be saved, prevent loss of data.
The embodiment of the present invention also provides a kind of mobile terminal, as shown in Figure 7a, comprising:
Wherein, as shown in Figure 7b, the first generation module 10 includes:
First generates submodule 12, for generating the first image data and the second image according to treated realtime graphic
Data.
Wherein, the second generation module 20 includes:
Wherein, third generation module 30 includes:
Second generates submodule 33, for handling the first image data, and execute drop according to default processing mode
The post-processing operation at least one of making an uproar, sharpening and rotating generates target image;
Third generates submodule 34, for encoding to target image, generates target and stores image.
Wherein, mobile terminal further include:
Wherein, each first image data and the second image data all have frame identification, the first image of identical frame identification
There are corresponding relationships between data and the second image data.
Wherein, mobile terminal further include:
Searching module 70, if being not currently running photographing program for detecting, in data queue, according to current second
The frame identification of image data searches corresponding first image data;
Wherein, mobile terminal further include:
It is real that the mobile terminal of the embodiment of the present invention can be realized mobile terminal in the embodiment of the method for Fig. 2, Fig. 4 and Fig. 6
Existing each process, to avoid repeating, which is not described herein again.
In this way, generating the first image data and the second image by pre-processing to the realtime graphic that camera acquires
Data generate the thumbnail and preview image of realtime graphic according to the second image data, are generated according to the first image data real-time
The corresponding target of image stores image, can realize quickly display thumbnail while guaranteeing to obtain required image, shorten
The renewal time of thumbnail.Further, by the way that data are cached and can be clapped to avoid backed off after random is updated successfully in thumbnail
Take the photograph the problem of program causes the first image data to be lost.
A kind of hardware structural diagram of Fig. 8 mobile terminal of each embodiment to realize the present invention, the mobile terminal 800
Including but not limited to: radio frequency unit 801, audio output unit 803, input unit 804, sensor 805, is shown network module 802
Show the components such as unit 806, user input unit 807, interface unit 808, memory 809, processor 810 and power supply 811.
It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 8 does not constitute the restriction to mobile terminal, it is mobile whole
End may include perhaps combining certain components or different component layouts than illustrating more or fewer components.In the present invention
In embodiment, mobile terminal includes but is not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, can wear
Wear equipment and pedometer etc..
Wherein, the realtime graphic of camera acquisition is pre-processed, generates the first image data and the second image data
When, processor 810 is also used to execute following steps: by image processor, carrying out to the realtime graphic of camera acquisition linear
Correction, noise reduction, go bad point, interpolation, white balance and color conversion at least one of processing;Scheme in real time according to treated
Picture generates the first image data and the second image data.
Wherein, according to the second image data, the preview image for generating the thumbnail of realtime graphic and showing on a display screen
When, processor 810 is also used to execute following steps: carrying out at least one of noise reduction, sharpening and rotation to the second image data
Post-processing;According to the second image data after post treatment, the display of thumbnail and preview image is updated.
Wherein, according to the first image data, when the corresponding target of generation realtime graphic stores image, processor 810 is also used
In execution following steps: obtaining photographed scene information when acquisition realtime graphic;It determines corresponding with photographed scene information default
Processing mode;According to default processing mode, the first image data is handled, and is executed in noise reduction, sharpening and rotation extremely
The post-processing operation of one item missing generates target image;Target image is encoded, target is generated and stores image.
Wherein, according to the second image data, the preview image for generating the thumbnail of realtime graphic and showing on a display screen
During, processor 810 is also used to execute following steps: obtaining corresponding first image data of current second image data;
The first image data that will acquire is cached into data queue;Wherein, each first image data and the second image data have
There is frame identification, there are corresponding relationships between the first image data and the second image data of identical frame identification.
Wherein, after the thumbnail for generating realtime graphic according to the second image data, processor 810 is also used to execute following
Step: whether detection currently runs photographing program;It is not currently running photographing program if detecting, in data queue, according to
The frame identification of current second image data searches corresponding first image data;Determine the photographed scene letter of the first image data
Cease corresponding default processing mode;According to default processing mode, the first image data is handled, and execute noise reduction, sharpening,
And the post-processing operation of at least one of rotation, generate target image;Target image is encoded, target storage figure is generated
Picture.
Wherein, the realtime graphic of camera acquisition is pre-processed, generates the first image data and the second image data
The step of after, processor 810 is also used to execute following steps: establishing first image data and second with identical frame identification
Corresponding relationship between image data.
In this way, generating the first image data and the second image by pre-processing to the realtime graphic that camera acquires
Data generate the thumbnail and preview image of realtime graphic according to the second image data, are generated according to the first image data real-time
The corresponding target of image stores image, can realize quickly display thumbnail while guaranteeing to obtain required image, shorten
The renewal time of thumbnail.Further, by the way that data are cached and can be clapped to avoid backed off after random is updated successfully in thumbnail
Take the photograph the problem of program causes the first image data to be lost.
It should be understood that the embodiment of the present invention in, radio frequency unit 801 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 810 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 801 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 801 can also by wireless communication system and network and other set
Standby communication.
Mobile terminal provides wireless broadband internet by network module 802 for user and accesses, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Further, touch panel 8071 can be covered on display panel 8061, when touch panel 8071 is detected at it
On or near touch operation after, send processor 810 to determine the type of touch event, be followed by subsequent processing device 810 according to touching
The type for touching event provides corresponding visual output on display panel 8061.Although in fig. 8, touch panel 8071 and display
Panel 8061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments
In, can be integrated by touch panel 8071 and display panel 8061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place is without limitation.
In addition, mobile terminal 800 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 810, and memory 809 is stored in
On memory 809 and the computer program that can run on the processor 810, the computer program are executed by processor 810
Each process of the above-mentioned image pickup method embodiment of Shi Shixian, and identical technical effect can be reached, to avoid repeating, here no longer
It repeats.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned image pickup method embodiment when being executed by processor, and can reach
Identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium is deposited Ru read-only
Reservoir (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM),
Magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include 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 being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a 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 to 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 belongs within protection of the invention.
Claims (12)
1. a kind of image pickup method characterized by comprising
The realtime graphic of camera acquisition is pre-processed, the first image data and the second image data are generated;
According to second image data, the preview image for generating the thumbnail of the realtime graphic and showing on a display screen;
According to the first image data, the corresponding target storage image of the realtime graphic is generated;
It is described according to second image data, the preview graph for generating the thumbnail of the realtime graphic and showing on a display screen
As during, the method also includes:
Obtain the corresponding the first image data of presently described second image data;
The first image data buffer storage that will acquire is into data queue;
Wherein, each the first image data and second image data all have frame identification, identical frame identification it is described
There are corresponding relationships between first image data and second image data;
After generating the thumbnail of the realtime graphic according to second image data, further includes:
Whether detection currently runs photographing program;
It is not currently running photographing program if detecting, in data queue, according to the frame mark of presently described second image data
Know, searches corresponding the first image data;
Determine the corresponding default processing mode of the photographed scene information of the first image data;
According to default processing mode, the first image data are handled, and are executed in noise reduction, sharpening and rotation extremely
The post-processing operation of one item missing generates target image;
The target image is encoded, the target storage image is generated.
2. image pickup method according to claim 1, which is characterized in that the realtime graphic to camera acquisition carries out pre-
The step of processing, the first image data of generation and the second image data, comprising:
By image processor, linearity rectification, noise reduction are carried out to the realtime graphic of camera acquisition, go bad point, interpolation, white
Balance and color conversion at least one of processing;
The realtime graphic according to treated generates the first image data and second image data.
3. image pickup method according to claim 1, which is characterized in that it is described according to second image data, generate institute
State the thumbnail of realtime graphic and show on a display screen preview image the step of, comprising:
The post-processing of at least one of noise reduction, sharpening and rotation is carried out to second image data;
According to second image data after post treatment, the display of thumbnail and preview image is updated.
4. image pickup method according to claim 1, which is characterized in that it is described according to the first image data, generate institute
State the step of corresponding target of realtime graphic stores image, comprising:
Obtain photographed scene information when acquiring the realtime graphic;
Determine default processing mode corresponding with the photographed scene information;
According to default processing mode, the first image data are handled, and are executed in noise reduction, sharpening and rotation extremely
The post-processing operation of one item missing generates target image;
The target image is encoded, the target storage image is generated.
5. image pickup method according to claim 1, which is characterized in that the realtime graphic to camera acquisition carries out pre-
After the step of processing, the first image data of generation and the second image data, further includes:
Establish the corresponding relationship between the first image data and second image data with identical frame identification.
6. a kind of mobile terminal characterized by comprising
First generation module generates the first image data and second for pre-processing to the realtime graphic that camera acquires
Image data;
Second generation module, for generating the thumbnail of the realtime graphic and in display screen according to second image data
The preview image of upper display;
Third generation module, for generating the corresponding target storage image of the realtime graphic according to the first image data;
The mobile terminal further include:
Module is obtained, for, according to second image data, generating the contracting of the realtime graphic in second generation module
During sketch map and the preview image shown on a display screen, presently described second image data corresponding described first is obtained
Image data;
Memory module, the first image data buffer storage for will acquire is into data queue;
Wherein, each the first image data and second image data all have frame identification, identical frame identification it is described
There are corresponding relationships between first image data and second image data;
The mobile terminal further include:
Detection module, for generating the breviary of the realtime graphic according to second image data in second generation module
After figure, whether detection currently runs photographing program;
Searching module, if being not currently running photographing program for detecting, in data queue, according to presently described second figure
As the frame identification of data, corresponding the first image data are searched;
Processing module determines that the photographed scene information of the first image data is corresponding for controlling the third generation module
Default processing mode is handled the first image data according to default processing mode, and execute noise reduction, sharpen and
The post-processing operation of at least one of rotation generates target image, encodes to the target image, generate the target and deposit
Store up image.
7. mobile terminal according to claim 6, which is characterized in that first generation module includes:
First processing submodule, the realtime graphic progress linearity rectification for being used to, by image processor, acquire camera,
Noise reduction, go bad point, interpolation, white balance and color conversion at least one of processing;
First generates submodule, for according to treated the realtime graphic, generating the first image data and described the
Two image datas.
8. mobile terminal according to claim 6, which is characterized in that second generation module includes:
Second processing submodule, after carrying out at least one of noise reduction, sharpening and rotation to second image data
Processing;
Submodule is updated, for according to second image data after post treatment, updating the aobvious of thumbnail and preview image
Show.
9. mobile terminal according to claim 6, which is characterized in that the third generation module includes:
Acquisition submodule acquires the photographed scene information when realtime graphic for obtaining;
Submodule is determined, for determining default processing mode corresponding with the photographed scene information;
Second generates submodule, for handling the first image data, and execute drop according to default processing mode
The post-processing operation at least one of making an uproar, sharpening and rotating generates target image;
Third generates submodule, for encoding to the target image, generates the target storage image.
10. mobile terminal according to claim 6, which is characterized in that the mobile terminal further include:
Module is established, the realtime graphic for acquiring in first generation module to camera pre-processes, and generates first
After image data and the second image data, the first image data with identical frame identification and second image are established
Corresponding relationship between data.
11. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor
Any one of described in image pickup method the step of.
12. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium
Sequence realizes the step of the image pickup method as described in any one of claims 1 to 5 when the computer program is executed by processor
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710958021.8A CN107509038B (en) | 2017-10-16 | 2017-10-16 | A kind of image pickup method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710958021.8A CN107509038B (en) | 2017-10-16 | 2017-10-16 | A kind of image pickup method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107509038A CN107509038A (en) | 2017-12-22 |
CN107509038B true CN107509038B (en) | 2019-10-15 |
Family
ID=60701814
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710958021.8A Active CN107509038B (en) | 2017-10-16 | 2017-10-16 | A kind of image pickup method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107509038B (en) |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108765281A (en) * | 2018-04-23 | 2018-11-06 | Oppo广东移动通信有限公司 | A kind of method, apparatus and computer storage media generating thumbnail |
CN110896465A (en) * | 2018-09-12 | 2020-03-20 | 北京嘉楠捷思信息技术有限公司 | Image processing method and device and computer readable storage medium |
US11477385B2 (en) | 2019-05-15 | 2022-10-18 | Asustek Computer Inc. | Electronic device with rotatable camera for protecting privacy |
US11375125B2 (en) | 2019-05-15 | 2022-06-28 | Asustek Computer Inc. | Electronic device |
US11546451B2 (en) | 2019-05-15 | 2023-01-03 | Asustek Computer Inc. | Electronic device |
US10911593B2 (en) | 2019-05-15 | 2021-02-02 | Asustek Computer Inc. | Electronic device having a rotatable camera module |
US11240357B2 (en) | 2019-05-15 | 2022-02-01 | Asustek Computer Inc. | Electronic device |
CN110300240B (en) * | 2019-06-28 | 2021-08-13 | Oppo广东移动通信有限公司 | Image processor, image processing method, photographing device and electronic equipment |
CN112672035B (en) * | 2019-10-16 | 2022-02-22 | 青岛海信移动通信技术股份有限公司 | Thumbnail generation method and terminal |
CN113763255A (en) * | 2020-06-05 | 2021-12-07 | Oppo广东移动通信有限公司 | Image processing method, image processing device, storage medium and electronic equipment |
CN113781288A (en) * | 2020-06-09 | 2021-12-10 | Oppo广东移动通信有限公司 | Electronic device and image processing method |
CN114500821B (en) * | 2020-10-26 | 2024-02-27 | 北京小米移动软件有限公司 | Photographing method and device, terminal and storage medium |
CN112565603B (en) * | 2020-11-30 | 2022-05-10 | 维沃移动通信有限公司 | Image processing method and device and electronic equipment |
CN112954216A (en) * | 2021-02-19 | 2021-06-11 | 迅镭智能(广州)科技有限公司 | Image processing method based on high-speed shooting instrument and related equipment |
CN114285957A (en) * | 2021-12-28 | 2022-04-05 | 维沃移动通信有限公司 | Image processing circuit and data transmission method |
CN114546558A (en) * | 2022-02-21 | 2022-05-27 | 金蝶云科技有限公司 | Drawing processing method and device, computer equipment and storage medium |
CN116668837B (en) * | 2022-11-22 | 2024-04-19 | 荣耀终端有限公司 | Method for displaying thumbnail images and electronic device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015183447A2 (en) * | 2014-05-31 | 2015-12-03 | General Electric Company | Systems and methods for menu directed inspection |
CN105915791A (en) * | 2016-05-03 | 2016-08-31 | 广东欧珀移动通信有限公司 | Electronic device control method and device, and electronic device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102640486B (en) * | 2009-10-27 | 2015-10-21 | Nec卡西欧移动通信株式会社 | Image capturing device and image capturing method |
TWI519155B (en) * | 2012-02-24 | 2016-01-21 | 宏達國際電子股份有限公司 | Burst image capture method and image capture system thereof |
US8879858B1 (en) * | 2013-10-01 | 2014-11-04 | Gopro, Inc. | Multi-channel bit packing engine |
-
2017
- 2017-10-16 CN CN201710958021.8A patent/CN107509038B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015183447A2 (en) * | 2014-05-31 | 2015-12-03 | General Electric Company | Systems and methods for menu directed inspection |
CN105915791A (en) * | 2016-05-03 | 2016-08-31 | 广东欧珀移动通信有限公司 | Electronic device control method and device, and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN107509038A (en) | 2017-12-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107509038B (en) | A kind of image pickup method and mobile terminal | |
CN110149552A (en) | A kind of processing method and terminal of video flowing frame data | |
CN107566748A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
CN109445894A (en) | A kind of screenshot method and electronic equipment | |
CN108989672A (en) | A kind of image pickup method and mobile terminal | |
CN108320263A (en) | A kind of method, device and mobile terminal of image procossing | |
CN107888728A (en) | A kind of mobile terminal and the image pickup method based on the mobile terminal | |
CN110213440A (en) | A kind of images share method and terminal | |
CN108833709A (en) | A kind of the starting method and mobile terminal of camera | |
CN110213485A (en) | A kind of image processing method and terminal | |
CN108881719A (en) | A kind of method and terminal device switching style of shooting | |
CN109803087A (en) | A kind of image generating method and terminal device | |
CN108848309A (en) | A kind of camera programm starting method and mobile terminal | |
CN108564613A (en) | A kind of depth data acquisition methods and mobile terminal | |
CN109005355A (en) | A kind of image pickup method and mobile terminal | |
CN109033913A (en) | A kind of recognition methods of identification code and mobile terminal | |
CN107959755A (en) | A kind of photographic method and mobile terminal | |
CN108156386B (en) | Panoramic photographing method and mobile terminal | |
CN107800968B (en) | A kind of image pickup method and mobile terminal | |
CN110225250A (en) | A kind of photographic method and terminal device | |
CN109547700A (en) | Photographic method and terminal | |
CN109358913A (en) | A kind of the starting method and terminal device of application program | |
CN109274957A (en) | A kind of depth image image pickup method and mobile terminal | |
CN109327568A (en) | A kind of method and mobile terminal switching camera | |
CN109005337A (en) | A kind of photographic method and 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 |