CN107613210A - Method for displaying image and device, terminal, storage medium - Google Patents

Method for displaying image and device, terminal, storage medium Download PDF

Info

Publication number
CN107613210A
CN107613210A CN201710923054.9A CN201710923054A CN107613210A CN 107613210 A CN107613210 A CN 107613210A CN 201710923054 A CN201710923054 A CN 201710923054A CN 107613210 A CN107613210 A CN 107613210A
Authority
CN
China
Prior art keywords
image
object scene
single pixel
terminal
depth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710923054.9A
Other languages
Chinese (zh)
Other versions
CN107613210B (en
Inventor
彭波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710923054.9A priority Critical patent/CN107613210B/en
Publication of CN107613210A publication Critical patent/CN107613210A/en
Application granted granted Critical
Publication of CN107613210B publication Critical patent/CN107613210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

The disclosure is directed to a kind of method for displaying image and device, terminal, storage medium, belong to technical field of image processing.Method includes:Double by terminal take the photograph module object scene are shot, and to obtain the two of object scene images, two images include the first image and the second image, and the first image is to unify the image that potting gum technical finesse obtains by N, and N is the integer more than 1;Based on two images, the depth of field of object scene is determined;The depth of field based on object scene, the region in the first image in addition to object scene is blurred to obtain target image;The display target image on the display interface of terminal.The disclosure solves the problems, such as that the image quality of the image shown in correlation technique under low light condition is poor.The disclosure is used for display image.

Description

Method for displaying image and device, terminal, storage medium
Technical field
This disclosure relates to technical field of image processing, more particularly to a kind of method for displaying image and device, terminal, storage are situated between Matter.
Background technology
With the fast development of image processing techniques, increasing mobile terminal configuration have it is double take the photograph module, it is double to take the photograph module Including two cameras, wherein, the image of camera (being referred to as a secondary camera) shooting can be used as output image, another Image of camera (be referred to as main camera) shooting can be used for calculating the depth of field, based on output image and the depth of field being calculated, The image that the virtualization of output image background finally shown can be realized with reference to associated picture treatment technology.
At present, CMOS (English is typically provided with the camera of mobile terminal:Complementary Metal Oxide Semiconductor;Chinese:Complementary metal oxide semiconductor) imaging sensor (chip), single picture that cmos sensor is supported Element is bigger, and the brightness of the image of camera shooting is higher, and the resolution ratio that cmos sensor is supported is higher, the image of camera shooting Background blurring effect it is better.But single pixel is bigger, resolution ratio is higher, and the volume of cmos sensor is bigger, can cause to take the photograph As the camera lens of head protrudes the surface of mobile terminal, the outward appearance of mobile terminal is influenceed.
In correlation technique, in order on the basis of ensureing that mobile terminal is attractive in appearance, realize the ultrahigh resolution (resolution ratio of image Not less than 16,000,000 pixels), the general length of side for use support single pixel is 1 micron of cmos image sensor in secondary camera.
But under low light condition, because the single pixel that cmos image sensor is supported is smaller, therefore secondary camera is shot Image brightness it is relatively low, the edge of each single pixel is more fuzzy, can cause when carrying out blur filter to image on image Noise it is more, so as to cause display image image quality it is poor.
The content of the invention
The embodiment of the present disclosure provides a kind of method for displaying image and device, terminal, storage medium, can solve related skill The problem of in art.The technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method for displaying image, methods described include:
Double by terminal take the photograph module object scene are shot, to obtain the two of the object scene images, institute Stating two images includes the first image and the second image, and described first image is to unify potting gum technical finesse by N to obtain Image, N is integer more than 1;
Based on described two images, the depth of field of the object scene is determined;
Based on the depth of field of the object scene, by the region in described first image in addition to the object scene blur with Obtain target image;
The target image is shown on the display interface of the terminal.
Optionally, the depth of field based on the object scene, by described first image in addition to the object scene Region blur to obtain target image, including:
Based on the depth of field of the object scene, by the region in described first image in addition to the object scene blur with Obtain it is background blurring after the first image;
Demosaicing processing is carried out to described first image, obtains the target image.
Optionally, the depth of field based on the object scene, by described first image in addition to the object scene Region blur to obtain target image, including:
Demosaicing processing is carried out to described first image, obtains the first image after demosaicing;
Based on the depth of field of the object scene, by the first image after the demosaicing in addition to the object scene Region blur to obtain the target image.
Optionally, described first image is the image obtained by four-in-one potting gum technical finesse,
It is described to described first image carry out demosaicing processing, including:
Described first image is divided to obtain multiple single pixel groups, each single pixel group includes the four of rectangular arrangement Individual single pixel;
Pixel reorganization is carried out to each single pixel in each single pixel group using demosaicing algorithms so that pixel Each single pixel after restructuring includes four sub-pixels, and in the arrangement mode of four sub-pixels and the single pixel group Four single pixels arrangement mode it is identical.
Optionally, it is described to take the photograph module by the double of terminal object scene is shot, to obtain the object scene Two images, including:
Object scene is shot to obtain described first image by double first cameras taken the photograph in module, it is described First camera is provided with the imaging sensor for supporting N unification potting gum technologies, the support N unifications potting gum technology The area for the single pixel that imaging sensor is supported is more than 1 square micron.
Optionally, it is described that demosaicing processing is carried out to described first image, the target image is obtained, including:
Demosaicing processing is carried out to described first image, obtains the first image after demosaicing processing;
Processing is sharpened to the first image after demosaicing processing, obtains the target image.
Optionally, the first image after the processing to the demosaicing is sharpened processing, obtains the target figure Picture, including:
Processing is sharpened to the first image after demosaicing processing, obtains the first image after Edge contrast;
Based on multiframe noise reduction algorithm, noise reduction process is carried out to the first image after the Edge contrast, obtains the target Image.
Optionally, the length of side of the single pixel is twice of the length of side of the sub-pixel.
Optionally, it is described to take the photograph module by the double of terminal object scene is shot, to obtain the object scene Two images, including:
In the environment of intensity of illumination is less than 200 luxs, double by terminal take the photograph module object scene are shot, To obtain the two of the object scene images.
Optionally, the depth of field for being based on described two images, determining the object scene, including:
Based on described two images, using the depth of field of the technique of binocular stereoscopic vision calculating object scene.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of image display device, described device include:
It is double to take the photograph module, it is configured as shooting object scene, it is described to obtain the two of the object scene images Two images include the first image and the second image, and described first image is unified potting gum technical finesse by N and obtained Image, N are the integer more than 1;
Determining module, it is configured as being based on described two images, determines the depth of field of the object scene;
Blurring module, the depth of field based on the object scene is configured as, the target scape will be removed in described first image Region beyond thing is blurred to obtain target image;
Display module, it is configured as showing the target image on the display interface of the terminal.
Optionally, the blurring module, is configured as:
Based on the depth of field of the object scene, by the region in described first image in addition to the object scene blur with Obtain it is background blurring after the first image;
Demosaicing processing is carried out to described first image, obtains the target image.
Optionally, the blurring module, is configured as:
Demosaicing processing is carried out to described first image, obtains the first image after demosaicing;
Based on the depth of field of the object scene, by the first image after the demosaicing in addition to the object scene Region blur to obtain the target image.
Optionally, described first image is the image obtained by four-in-one potting gum technical finesse,
The blurring module, is additionally configured to:
Described first image is divided to obtain multiple single pixel groups, each single pixel group includes the four of rectangular arrangement Individual single pixel;
Pixel reorganization is carried out to each single pixel in each single pixel group using demosaicing algorithms so that pixel Each single pixel after restructuring includes four sub-pixels, and in the arrangement mode of four sub-pixels and the single pixel group Four single pixels arrangement mode it is identical.
Optionally, it is described it is double take the photograph module and include the first camera, first camera is configured as:
Object scene is shot to obtain described first image, first camera, which is provided with, supports N unification pixels The imaging sensor of folding, the area of the single pixel of the imaging sensor support of the support N unifications potting gum technology More than 1 square micron.
Optionally, the blurring module, is additionally configured to:
Demosaicing processing is carried out to described first image, obtains the first image after demosaicing processing;
Processing is sharpened to the first image after demosaicing processing, obtains the target image.
Optionally, the blurring module, is additionally configured to:
Processing is sharpened to the first image after demosaicing processing, obtains the first image after Edge contrast;
Based on multiframe noise reduction algorithm, noise reduction process is carried out to the first image after the Edge contrast, obtains the target Image.
Optionally, the length of side of the single pixel is twice of the length of side of the sub-pixel.
Optionally, take the photograph module for described pair, be configured as:
In the environment of intensity of illumination is less than 200 luxs, object scene is shot, to obtain the object scene Two images.
Optionally, the determining module, is configured as:
Based on described two images, using the depth of field of the technique of binocular stereoscopic vision calculating object scene.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of terminal, be provided with the terminal it is double take the photograph module, it is described Terminal includes:
Processor;
For the memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
Double by terminal take the photograph module object scene are shot, to obtain the two of the object scene images, institute Stating two images includes the first image and the second image, and described first image is to unify potting gum technical finesse by N to obtain Image, N is integer more than 1;
Based on described two images, the depth of field of the object scene is determined;
Based on the depth of field of the object scene, by the region in described first image in addition to the object scene blur with Obtain target image;
The target image is shown on the display interface of the terminal.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of storage medium, when the instruction in the storage medium by When the processing component of terminal performs so that the terminal is able to carry out any described method for displaying image of first aspect.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The method for displaying image and device, terminal, storage medium that the embodiment of the present disclosure provides, are shot by double modules of taking the photograph To two images in the first image be output image, due to the first image be by N unify potting gum technical finesse obtain Arrive, carry out handling resulting target image using first image, compared with correlation technique, the area of single pixel is larger, Therefore the brightness of output image is higher, and the definition of the pixel edge in image is higher, it is possible to reduce the noise on image, improves The image quality of the image of display.
It should be appreciated that the general description and following detailed description of the above are only exemplary, this can not be limited It is open.
Brief description of the drawings
In order to illustrate more clearly of embodiment of the disclosure, the required accompanying drawing used is made in being described below to embodiment Simply introduce, it should be apparent that, drawings in the following description are only some embodiments of the present disclosure, common for this area For technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart for method for displaying image that the illustrative examples of the disclosure one provide.
Fig. 2 is the flow chart for another method for displaying image that the illustrative examples of the disclosure one provide.
Fig. 3-1 is a kind of schematic diagram for potting gum processing that the illustrative examples of the disclosure one provide.
Fig. 3-2 is a kind of arrangement schematic diagram for single pixel that the illustrative examples of the disclosure one provide.
Fig. 3-3 is a kind of pixel arrangement schematic diagram for single pixel group that the illustrative examples of the disclosure one provide.
Fig. 3-4 is that the pixel arrangement that the single pixel group shown in Fig. 3-3 is carried out to the single pixel group after demosaicing processing is shown It is intended to.
Fig. 4 is a kind of block diagram of image display device according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of terminal shown for image according to an exemplary embodiment.
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Embodiment
In order that the purpose, technical scheme and advantage of the disclosure are clearer, the disclosure is made below in conjunction with accompanying drawing into One step it is described in detail, it is clear that described embodiment is only disclosure some embodiments, rather than whole implementation Example.Based on the embodiment in the disclosure, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belong to the scope of disclosure protection.
Double modules of taking the photograph in correlation technique include a main camera and a secondary camera, point for the image that main camera is supported Resolution is generally less than the resolution ratio for the image that secondary camera is supported, and the area of the single pixel of main camera support is more than secondary image The area for the single pixel that head is supported.In the image of shooting background virtualization, in order to ensure to shoot the super-resolution of obtained image Rate, output image is used as using the image of secondary camera shooting.
Example, the resolution ratio that the cmos image sensor that a kind of secondary camera in correlation technique uses is supported is 2000 Ten thousand pixels, the length of side of single pixel is 1 micron, using the cmos image sensor while ultrahigh resolution of image is ensured, It can avoid the occurrence of that cmos image sensor volume is excessive, the phenomenon on the surface of secondary camera protruded terminal, to ensure terminal Profile it is attractive in appearance.But under low light condition, because the single pixel that cmos image sensor is supported is smaller, therefore secondary camera The brightness of the image of shooting is relatively low, and the edge of each pixel is more fuzzy, can cause image when carrying out blur filter to image On noise it is more, so as to cause display image image quality it is poor.
The embodiment of the present disclosure provides a kind of method for displaying image, can solve the problems, such as in above-mentioned correlation technique, such as Fig. 1 Shown, this method can include:
Step 101, by the double of terminal take the photograph module object scene is shot, to obtain the two of object scene figures Picture, two images include the first image and the second image, and the first image is the figure obtained by N unification potting gum technical finesses Picture, N are the integer more than 1.
It should be noted that the area of the single pixel in the first image is more than the cmos image sensor branch in correlation technique The area of single pixel in the area for the single pixel held, such as the first image is more than 1 square micron.
Step 102, based on two images, determine the depth of field of object scene.
Step 103, the depth of field based on object scene, the region in the first image in addition to object scene is blurred to obtain Target image.
Step 104, the display target image on the display interface of terminal.
In summary, the method for displaying image that the embodiment of the present disclosure provides, double two figures taken the photograph module and shoot to obtain are passed through The first image as in is output image, and unifying potting gum technical finesse by N due to the first image obtains, using this First image carries out handling resulting target image, and compared with correlation technique, the area of single pixel is larger, therefore output image Brightness it is higher, the definition of the pixel edge in image is higher, it is possible to reduce the noise on image, improves the image of display Image quality.
The embodiment of the present disclosure provides a kind of method for displaying image, applied to terminal, as shown in Fig. 2 this method can wrap Include:
Step 201, by the double of terminal take the photograph module object scene is shot, to obtain the two of object scene figures Picture.
Wherein, two images of the object scene obtained include the first image and the second image.
Optionally, double modules of taking the photograph include the first camera, and the first camera, which is provided with, supports N unification potting gum (English Text:Binning) the imaging sensor of technology, wherein, N is the integer more than 1.
Example, in the embodiment of the present disclosure, support the single pixel of the imaging sensor support of N unification potting gum technologies Area is more than 1 square micron, then is shot the single pixel in obtained the first image to object scene by the first camera Area be more than 1 square micron.
Wherein, binning is a kind of image readout mode, the electric charge that adjacent picture elements sense is added together, with a picture The pattern of element is read.Binning point is horizontal direction binning and vertical direction binning, horizontal direction binning be by The electric charge of adjacent row is added together reading, and vertical direction binning is that the electric charge of adjacent row is added together into reading, The advantages of binning technologies is that multiple pixels can be joined together to use as a pixel.Example, Fig. 3-1 is to use four Unify the schematic diagram that binning technologies carry out potting gum processing, as shown in figure 3-1, to an image for including 8*8 pixel After carrying out potting gum processing using four-in-one binning technologies, output image is to include the image of 4*4 pixel, each picture The size of element is four times of the size of the pixel of before processing.
Therefore, support that the sensitive volume of image substantially increases the imaging sensor of N unification potting gum technologies when obtaining image Add, the brightness of image can be improved.
Optionally, the method for displaying image that the embodiment of the present disclosure provides can carry out the shooting of image under low light condition, Then take the photograph module by the double of terminal object scene is shot, to obtain the two of object scene images, can include:In light In the environment of being less than 200 luxs according to intensity, double by terminal take the photograph module object scene are shot, to obtain the mesh Mark two images of scenery.Due to supporting the brightness of image that the imaging sensor of N unification potting gum technologies obtains higher, improve The definition at the edge of single pixel, therefore the image quality for solving the image shown in correlation technique under low light condition is poor Problem.
Optionally, the imaging sensor in the embodiment of the present disclosure can be cmos image sensor.
Step 202, based on two images, determine the depth of field of object scene.
Wherein, the depth of field of object scene is the air line distance of the double cameras for taking the photograph module of object scene distance.
Optionally, two images can be based on, the depth of field of object scene is calculated using technique of binocular stereoscopic vision.Binocular is stood Body vision is a kind of important form of machine vision, and it is based on principle of parallax and utilizes imaging device from different position acquisitions Two images of testee, by calculating the position deviation between image corresponding points, to obtain the side of object dimensional geological information Method.The method of the specific depth of field for calculating object scene may be referred to prior art, and the embodiment of the present disclosure will not be described here.
Step 203, the depth of field based on object scene, the region in the first image in addition to object scene is blurred to obtain The first image after background blurring.
Optionally, it is determined that after the depth of field of object scene, the background that can be will be greater than in the first image of the depth of field is entered Row virtualization.
Step 204, demosaicing processing is carried out to the first image after background blurring.
Example, it is assumed that the first image is the image obtained by four-in-one potting gum technical finesse, be that is to say, first The imaging sensor set in camera supports four-in-one potting gum technology.Obtained by four-in-one potting gum technical finesse The first image in the size of single pixel be four times of size of single pixel in untreated image, the first image Resolution ratio is a quarter of the resolution ratio of untreated image, can use demosaicing (English:Remosaic) calculate Method improves the resolution ratio of the first image.
Optionally, the method that demosaicing processing is carried out to the first image, can include:
S41, the first image divided to obtain multiple single pixel groups, each single pixel group includes four lists of rectangular arrangement Pixel.
Example, Fig. 3-2 is the arrangement schematic diagram of the part single pixel in the first image, as shown in figure 3-2, each single picture Element group A includes four single pixels of rectangular arrangement, and four single pixels are respectively G, R, B and G.
S42, using demosaicing algorithms in each single pixel group each single pixel carry out pixel reorganization so that pixel Each single pixel after restructuring includes four sub-pixels, and the arrangement mode of four sub-pixels and four in single pixel group The arrangement mode of single pixel is identical.
Optionally, because the first image is the image by being obtained after four-in-one potting gum technical finesse, therefore can be with Each single pixel in first image is divided into four sub-pixels that size identical is in rectangular arrangement, by each single pixel Each single pixel in group carries out pixel reorganization so that each single pixel after pixel reorganization includes four arrangement modes and list The arrangement mode identical sub-pixel of four single pixels in pixel groups.Wherein, the length of side of single pixel is the length of side of sub-pixel Twice.For example, the length of side of single pixel can be 2 microns, then the length of side of sub-pixel is 1 micron.
Example, Fig. 3-3 is the pixel arrangement schematic diagram of a single pixel group in Fig. 3-2, as shown in Fig. 3-3, the list Each single pixel D in pixel groups1Four sub-pixels of size identical can be divided into, using demosaicing algorithms by single pixel After single pixel in group carries out pixel reorganization, obtained single pixel group can as shown in Figure 3-4, each single pixel D2Include Four sub-pixels are respectively G, R, B and G.
In the disclosed embodiments, it is assumed that the resolution ratio of the first image of demosaicing before processing is 5,000,000 pixels, then exists After demosaicing is handled, the resolution ratio of the first image can reach 20,000,000 pixels, the figure in the case where improving low light condition While the brightness of picture, the ultrahigh resolution of output image ensure that.
Step 205, processing is sharpened to the first image after demosaicing.
Because the single pixel in the first image is larger, the analytic ability of image has declined, and can debug (English by image quality Text:Image Quality tunning) increase object scene acutance, that is to say improve object scene edge contrast, To lift the visual effect of the first image.
Wherein, the acutance of increase object scene is debugged by image quality to be included:Improve the contrast at the edge of object scene Degree, and generate a bright line and a concealed wire respectively in the both sides at edge, to improve the image sharpness of object scene.
Step 206, noise reduction process is carried out to the first image after Edge contrast.
Due to that when being sharpened processing to the first image, meeting enlarged drawing noise, may increase in the first image Noise, therefore noise reduction process can be carried out to the first image after Edge contrast.
Optionally, multiframe noise reduction algorithm can be based on, noise reduction process is carried out to the first image after Edge contrast.Due to making an uproar Point is disorderly arranged, and after multiple images are continuously acquired, the same position in multiple images is likely to occur red noise, it is also possible to There is white noise point, it is also possible to green noise occur, or the position does not have noise, and screening can be compared to multiple images, obtain Take the noise position in image;Then carried out guessing that color and pixel replacement are handled according to further algorithm, removal can be reached and made an uproar The effect of point, improve the image quality of image.
In the disclosed embodiments, other noise reduction algorithms can also be used to carry out noise reduction process, such as base to the first image Median filtering algorithm in spatial domain and the wavelet threshold denoising algorithm based on wavelet field etc., embodiment of the present disclosure contrast do not limit It is fixed.
Step 207, the display target image on the display interface of terminal.
It should be noted that the sequencing for the method for displaying image step that the embodiment of the present disclosure provides can be carried out suitably Adjustment, such as step 203 can perform after step 204, that is to say, after the first image is obtained, first the first image is entered The processing of row demosaicing, obtains the first image after demosaicing, then the depth of field based on object scene, by the after demosaicing Region virtualization in one image in addition to object scene;Step according to circumstances can also accordingly be increased and decreased, any to be familiar with this skill The technical staff in art field is in the technical scope that the disclosure discloses, and the method that can readily occur in change should all cover in this public affairs Within the protection domain opened, therefore repeat no more.
In summary, the method for displaying image that the embodiment of the present disclosure provides, double two figures taken the photograph module and shoot to obtain are passed through The first image as in is output image, and unifying potting gum technical finesse by N due to the first image obtains, using this First image carries out handling resulting target image, and compared with correlation technique, the area of single pixel is larger, therefore output image Brightness it is higher, the definition of the pixel edge in image is higher, it is possible to reduce the noise on image, improves the image of display Image quality;Because the first image is obtained by potting gum technical finesse, in later image processing, related calculate can be passed through Method recombinates the single pixel in the first image, to improve image resolution ratio, realizes the ultrahigh resolution of target image.
The embodiment of the present disclosure provides a kind of image display device, as shown in figure 4, the device 40 includes:
It is double to take the photograph module 401, it is configured as shooting object scene, to obtain the two of object scene images, two Image includes the first image and the second image, and the first image is the image obtained by N unification potting gum technical finesses, and N is Integer more than 1.
Determining module 402, it is configured as being based on two images, determines the depth of field of object scene.
Blurring module 403, the depth of field based on object scene is configured as, by the area in the first image in addition to object scene Domain is blurred to obtain target image.
Display module 404, it is configured as the display target image on the display interface of terminal.
In summary, the image display device that the embodiment of the present disclosure provides, double two figures taken the photograph module and shoot to obtain are passed through The first image as in is output image, and unifying potting gum technical finesse by N due to the first image obtains, using this First image carries out handling resulting target image, and compared with correlation technique, the area of single pixel is larger, therefore output image Brightness it is higher, the definition of the pixel edge in image is higher, it is possible to reduce the noise on image, improves the image of display Image quality.
Optionally, blurring module, can be configured as:
The depth of field based on object scene, the region virtualization in the first image in addition to object scene is background blurring to obtain The first image afterwards;Demosaicing processing is carried out to the first image, obtains target image.
Or blurring module, it can be configured as:
Demosaicing processing is carried out to the first image, obtains the first image after demosaicing;Scape based on object scene It is deep, the region in the first image after demosaicing in addition to object scene is blurred to obtain target image.
Optionally, when the first image is the image obtained by four-in-one potting gum technical finesse, blurring module, also It can be configured as:
First image is divided to obtain multiple single pixel groups, each single pixel group includes four single pictures of rectangular arrangement Element;Pixel reorganization is carried out to each single pixel in each single pixel group using demosaicing algorithms so that after pixel reorganization Each single pixel includes four sub-pixels, and the arrangement mode of four sub-pixels and the row of four single pixels in single pixel group Row mode is identical.
Optionally, double modules of taking the photograph include the first camera, and the first camera is configured as:
Object scene is shot to obtain the first image, the first camera, which is provided with, supports N unification potting gum technologies Imaging sensor, support the area of single pixel that the imaging sensor of potting gum technology is supported to be more than 1 square micron.
Further, blurring module, can be additionally configured to:
Demosaicing processing is carried out to the first image, obtains the first image after demosaicing processing;At demosaicing The first image after reason is sharpened processing, obtains target image.
Further, blurring module, can be additionally configured to:
Processing is sharpened to the first image after demosaicing processing, obtains the first image after Edge contrast;It is based on Multiframe noise reduction algorithm, noise reduction process is carried out to the first image after Edge contrast, obtains target image.
Wherein, the length of side of single pixel is twice of the length of side of sub-pixel.
Optionally, it is double to take the photograph module, it can be configured as:
In the environment of intensity of illumination is less than 200 luxs, object scene is shot, to obtain the two of object scene Individual image.
Optionally, determining module, can be configured as:
Based on two images, using the depth of field of technique of binocular stereoscopic vision calculating object scene.
In summary, the image display device that the embodiment of the present disclosure provides, double two figures taken the photograph module and shoot to obtain are passed through The first image as in is output image, and unifying potting gum technical finesse by N due to the first image obtains, using this First image carries out handling resulting target image, and compared with correlation technique, the area of single pixel is larger, therefore output image Brightness it is higher, the definition of the pixel edge in image is higher, it is possible to reduce the noise on image, improves the image of display Image quality;Because the first image is obtained by potting gum technical finesse, in later image processing, related calculate can be passed through Method recombinates the single pixel in the first image, to improve image resolution ratio, realizes the ultrahigh resolution of target image.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
The embodiment of the present disclosure provides a kind of terminal, be provided with terminal it is double take the photograph module, terminal includes:
Processor;
For the memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
Double by terminal take the photograph module object scene are shot, to obtain the two of the object scene images, institute Stating two images includes the first image and the second image, and described first image is to unify potting gum technical finesse by N to obtain Image, N is integer more than 1;
Based on described two images, the depth of field of the object scene is determined;
Based on the depth of field of the object scene, by the region in described first image in addition to the object scene blur with Obtain target image;
The target image is shown on the display interface of the terminal.
Fig. 5 is a kind of block diagram of terminal 500 for display image according to an exemplary embodiment.For example, eventually End 500 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc. are provided with double electronic products for taking the photograph module.
Reference picture 5, terminal 500 can include following one or more assemblies:Processing component 502, memory 504, power supply Component 506, multimedia groupware 508, audio-frequency assembly 510, the interface 512 of input/output (I/O), sensor cluster 514, and Communication component 516.
Processing component 502 generally controls the integrated operation of terminal 500, is such as communicated with display, call, data, phase The operation that machine operates and record operation is associated.Processing component 502 can refer to including one or more processors 520 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 502 can include one or more modules, just Interaction between processing component 502 and other assemblies.For example, processing component 502 can include multi-media module, it is more to facilitate Interaction between media component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in terminal 500.These data are shown Example includes the instruction of any application program or method for being operated in terminal 500, contact data, telephone book data, disappears Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of terminal 500.Power supply module 506 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for terminal 500.
Multimedia groupware 508 is included in the screen of one output interface of offer between the terminal 500 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers Body component 508 includes a front camera and/or rear camera.When terminal 500 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 510 is configured as output and/or input audio signal.For example, audio-frequency assembly 510 includes a Mike Wind (MIC), when terminal 500 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 504 or via communication set Part 516 is sent.In certain embodiments, audio-frequency assembly 510 also includes a loudspeaker, for exports audio signal.
I/O interfaces 512 provide interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 514 includes one or more sensors, and the state for providing various aspects for terminal 500 is commented Estimate.For example, sensor cluster 514 can detect opening/closed mode of terminal 500, and the relative positioning of component, for example, it is described Component is the display and keypad of terminal 500, and sensor cluster 514 can be with 500 1 components of detection terminal 500 or terminal Position change, the existence or non-existence that user contacts with terminal 500, the orientation of terminal 500 or acceleration/deceleration and terminal 500 Temperature change.Sensor cluster 514 can include proximity transducer, be configured to detect in no any physical contact The presence of neighbouring object.Sensor cluster 514 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 514 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between terminal 500 and other equipment.Terminal 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 516 also includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 500 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 504 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 520 of device 500.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
The embodiment of the present disclosure provides a kind of storage medium, when the instruction in the storage medium is by the processing component of terminal During execution so that the terminal is able to carry out above-mentioned method for displaying image.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit will by right Ask and point out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (22)

1. a kind of method for displaying image, it is characterised in that methods described includes:
Double by terminal take the photograph module object scene are shot, to obtain the two of the object scene images, described two Individual image includes the first image and the second image, and described first image is the figure obtained by N unification potting gum technical finesses Picture, N are the integer more than 1;
Based on described two images, the depth of field of the object scene is determined;
Based on the depth of field of the object scene, the region in described first image in addition to the object scene is blurred to obtain Target image;
The target image is shown on the display interface of the terminal.
2. according to the method for claim 1, it is characterised in that the depth of field based on the object scene, by described the Region in one image in addition to the object scene is blurred to obtain target image, including:
Based on the depth of field of the object scene, the region in described first image in addition to the object scene is blurred to obtain The first image after background blurring;
Demosaicing processing is carried out to described first image, obtains the target image.
3. according to the method for claim 1, it is characterised in that the depth of field based on the object scene, by described the Region in one image in addition to the object scene is blurred to obtain target image, including:
Demosaicing processing is carried out to described first image, obtains the first image after demosaicing;
Based on the depth of field of the object scene, by the area in the first image after the demosaicing in addition to the object scene Domain is blurred to obtain the target image.
4. according to the method in claim 2 or 3, it is characterised in that described first image is to pass through four-in-one potting gum The image that technical finesse obtains,
It is described to described first image carry out demosaicing processing, including:
Described first image is divided to obtain multiple single pixel groups, each single pixel group includes four lists of rectangular arrangement Pixel;
Pixel reorganization is carried out to each single pixel in each single pixel group using demosaicing algorithms so that pixel reorganization Each single pixel afterwards includes four sub-pixels, and the arrangement mode of four sub-pixels and four in the single pixel group The arrangement mode of individual single pixel is identical.
5. according to the method for claim 1, it is characterised in that described that object scene is carried out by double modules of taking the photograph of terminal Shooting, to obtain the two of the object scene images, including:
Shot to obtain described first image to object scene by double first cameras taken the photograph in module, described first Camera is provided with the imaging sensor for supporting N unification potting gum technologies, the image of the support N unifications potting gum technology The area for the single pixel that sensor is supported is more than 1 square micron.
6. according to the method in claim 2 or 3, it is characterised in that described that described first image is carried out at demosaicing Reason, obtains the target image, including:
Demosaicing processing is carried out to described first image, obtains the first image after demosaicing processing;
Processing is sharpened to the first image after demosaicing processing, obtains the target image.
7. according to the method for claim 6, it is characterised in that the first image after the processing to the demosaicing enters Row Edge contrast, the target image is obtained, including:
Processing is sharpened to the first image after demosaicing processing, obtains the first image after Edge contrast;
Based on multiframe noise reduction algorithm, noise reduction process is carried out to the first image after the Edge contrast, obtains the target image.
8. according to the method for claim 4, it is characterised in that
The length of side of the single pixel is twice of the length of side of the sub-pixel.
9. according to the method for claim 1, it is characterised in that described that object scene is carried out by double modules of taking the photograph of terminal Shooting, to obtain the two of the object scene images, including:
In the environment of intensity of illumination is less than 200 luxs, double by terminal take the photograph module object scene are shot, with To two images of the object scene.
10. according to the method for claim 1, it is characterised in that it is described to be based on described two images, determine the target scape The depth of field of thing, including:
Based on described two images, using the depth of field of the technique of binocular stereoscopic vision calculating object scene.
11. a kind of image display device, it is characterised in that described device includes:
It is double to take the photograph module, it is configured as shooting object scene, it is described two to obtain the two of the object scene images Image includes the first image and the second image, and described first image is the image obtained by N unification potting gum technical finesses, N is the integer more than 1;
Determining module, it is configured as being based on described two images, determines the depth of field of the object scene;
Blurring module, be configured as the depth of field based on the object scene, will in described first image except the object scene with Outer region is blurred to obtain target image;
Display module, it is configured as showing the target image on the display interface of the terminal.
12. device according to claim 11, it is characterised in that the blurring module, be configured as:
Based on the depth of field of the object scene, the region in described first image in addition to the object scene is blurred to obtain The first image after background blurring;
Demosaicing processing is carried out to described first image, obtains the target image.
13. device according to claim 11, it is characterised in that the blurring module, be configured as:
Demosaicing processing is carried out to described first image, obtains the first image after demosaicing;
Based on the depth of field of the object scene, by the area in the first image after the demosaicing in addition to the object scene Domain is blurred to obtain the target image.
14. the device according to claim 12 or 13, it is characterised in that described first image is to be closed by four-in-one pixel And the image that technical finesse obtains,
The blurring module, is additionally configured to:
Described first image is divided to obtain multiple single pixel groups, each single pixel group includes four lists of rectangular arrangement Pixel;
Pixel reorganization is carried out to each single pixel in each single pixel group using demosaicing algorithms so that pixel reorganization Each single pixel afterwards includes four sub-pixels, and the arrangement mode of four sub-pixels and four in the single pixel group The arrangement mode of individual single pixel is identical.
15. device according to claim 11, it is characterised in that double modules of taking the photograph include the first camera, and described the One camera is configured as:
Object scene is shot to obtain described first image, first camera, which is provided with, supports N unification potting gums The imaging sensor of technology, the area of the single pixel of the imaging sensor support of the support N unifications potting gum technology are more than 1 Square micron.
16. the device according to claim 12 or 13, it is characterised in that the blurring module, be additionally configured to:
Demosaicing processing is carried out to described first image, obtains the first image after demosaicing processing;
Processing is sharpened to the first image after demosaicing processing, obtains the target image.
17. device according to claim 16, it is characterised in that the blurring module, be additionally configured to:
Processing is sharpened to the first image after demosaicing processing, obtains the first image after Edge contrast;
Based on multiframe noise reduction algorithm, noise reduction process is carried out to the first image after the Edge contrast, obtains the target image.
18. device according to claim 14, it is characterised in that
The length of side of the single pixel is twice of the length of side of the sub-pixel.
19. device according to claim 11, it is characterised in that described pair is taken the photograph module, is configured as:
In the environment of intensity of illumination is less than 200 luxs, object scene is shot, to obtain the two of the object scene Individual image.
20. device according to claim 21, it is characterised in that the determining module, be configured as:
Based on described two images, using the depth of field of the technique of binocular stereoscopic vision calculating object scene.
A kind of 21. terminal, it is characterised in that be provided with the terminal it is double take the photograph module, the terminal includes:
Processor;
For the memory for the executable instruction for storing the processor;
Wherein, the processor is configured as:
Double by terminal take the photograph module object scene are shot, to obtain the two of the object scene images, described two Individual image includes the first image and the second image, and described first image is the figure obtained by N unification potting gum technical finesses Picture, N are the integer more than 1;
Based on described two images, the depth of field of the object scene is determined;
Based on the depth of field of the object scene, the region in described first image in addition to the object scene is blurred to obtain Target image;
The target image is shown on the display interface of the terminal.
A kind of 22. storage medium, it is characterised in that when the instruction in the storage medium is performed by the processing component of terminal, So that the terminal is able to carry out any described method for displaying image of claim 1 to 10.
CN201710923054.9A 2017-09-30 2017-09-30 Image display method and device, terminal and storage medium Active CN107613210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710923054.9A CN107613210B (en) 2017-09-30 2017-09-30 Image display method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710923054.9A CN107613210B (en) 2017-09-30 2017-09-30 Image display method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107613210A true CN107613210A (en) 2018-01-19
CN107613210B CN107613210B (en) 2020-12-29

Family

ID=61068096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710923054.9A Active CN107613210B (en) 2017-09-30 2017-09-30 Image display method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107613210B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965704A (en) * 2018-07-19 2018-12-07 维沃移动通信有限公司 A kind of imaging sensor, mobile terminal and image capturing method
CN108965666A (en) * 2018-07-19 2018-12-07 维沃移动通信有限公司 A kind of mobile terminal and image capturing method
CN111355937A (en) * 2020-03-11 2020-06-30 北京迈格威科技有限公司 Image processing method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090457A (en) * 2006-06-16 2007-12-19 三星电子株式会社 Apparatus and method to generate image
CN101242541A (en) * 2007-02-09 2008-08-13 奥林巴斯映像株式会社 Image processing apparatus and method, and electronic camera
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, apparatus and terminal
US9210391B1 (en) * 2014-07-31 2015-12-08 Apple Inc. Sensor data rescaler with chroma reduction
CN106341670A (en) * 2016-11-29 2017-01-18 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN107172363A (en) * 2017-04-07 2017-09-15 深圳市金立通信设备有限公司 A kind of image processing method and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090457A (en) * 2006-06-16 2007-12-19 三星电子株式会社 Apparatus and method to generate image
CN101242541A (en) * 2007-02-09 2008-08-13 奥林巴斯映像株式会社 Image processing apparatus and method, and electronic camera
US9210391B1 (en) * 2014-07-31 2015-12-08 Apple Inc. Sensor data rescaler with chroma reduction
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, apparatus and terminal
CN106341670A (en) * 2016-11-29 2017-01-18 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN107172363A (en) * 2017-04-07 2017-09-15 深圳市金立通信设备有限公司 A kind of image processing method and terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965704A (en) * 2018-07-19 2018-12-07 维沃移动通信有限公司 A kind of imaging sensor, mobile terminal and image capturing method
CN108965666A (en) * 2018-07-19 2018-12-07 维沃移动通信有限公司 A kind of mobile terminal and image capturing method
CN108965704B (en) * 2018-07-19 2020-01-31 维沃移动通信有限公司 image sensor, mobile terminal and image shooting method
CN108965666B (en) * 2018-07-19 2020-10-09 维沃移动通信有限公司 Mobile terminal and image shooting method
CN111355937A (en) * 2020-03-11 2020-06-30 北京迈格威科技有限公司 Image processing method and device and electronic equipment
CN111355937B (en) * 2020-03-11 2021-11-16 北京迈格威科技有限公司 Image processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN107613210B (en) 2020-12-29

Similar Documents

Publication Publication Date Title
CN105323425B (en) Scene motion correction in blending image system
KR101772177B1 (en) Method and apparatus for obtaining photograph
CN104639843B (en) Image processing method and device
WO2017016146A1 (en) Image display method and apparatus
CN104813648B (en) Image processing apparatus, photographic device and image processing method
CN108154465B (en) Image processing method and device
CN106605403A (en) Photographing method and electronic device
CN105959554B (en) Video capture device and method
CN109345485A (en) A kind of image enchancing method, device, electronic equipment and storage medium
CN110992327A (en) Lens contamination state detection method and device, terminal and storage medium
CN105959543A (en) Shooting device and method of removing reflection
CN107798654A (en) Image mill skin method and device, storage medium
CN106778773A (en) The localization method and device of object in picture
CN109118430A (en) Super-resolution image reconstruction method and device, electronic equipment and storage medium
CN106131441A (en) Photographic method and device, electronic equipment
CN107967459A (en) convolution processing method, device and storage medium
CN104933700B (en) A kind of method and apparatus carrying out picture material identification
CN110378312A (en) Image processing method and device, electronic equipment and storage medium
CN107613210A (en) Method for displaying image and device, terminal, storage medium
CN108040204A (en) A kind of image capturing method based on multi-cam, device and storage medium
US11222235B2 (en) Method and apparatus for training image processing model, and storage medium
CN106791339A (en) Imaging system and its control method
CN106339705A (en) Image acquisition method and device
CN109120858A (en) A kind of image capturing method, device, equipment and storage medium
CN113706421B (en) Image processing method and device, electronic equipment and storage medium

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