CN105898145A - Photographing method and terminal - Google Patents

Photographing method and terminal Download PDF

Info

Publication number
CN105898145A
CN105898145A CN201610284338.3A CN201610284338A CN105898145A CN 105898145 A CN105898145 A CN 105898145A CN 201610284338 A CN201610284338 A CN 201610284338A CN 105898145 A CN105898145 A CN 105898145A
Authority
CN
China
Prior art keywords
pixel
area
target image
sampling interval
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.)
Pending
Application number
CN201610284338.3A
Other languages
Chinese (zh)
Inventor
金妍敏
肖志龙
钟婉平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201610284338.3A priority Critical patent/CN105898145A/en
Publication of CN105898145A publication Critical patent/CN105898145A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention provides a photographing method, and the method comprises the steps: obtaining a target image collected by a camera, and dividing the target image into a first region and a second region; determining the target resolution of the pixels in the first region, and determining a sampling interval corresponding to the first region according to the target resolution of the pixels in the first region, wherein the sampling interval is in negative correlation with the target resolution of the pixels in the first region; screening out the target pixels from the pixels in the first region according to the sampling interval; generating and storing a photographed image according to the pixel values corresponding to the target pixels and the pixel values corresponding to the pixels in the second region. In addition, the invention also provides a terminal correspondingly. According to the embodiment of the invention, the method can reduce the storage space occupied by the photographed image under the condition of guaranteeing the resolution of the photographed image.

Description

A kind of photographic method and terminal
Technical field
The present invention relates to technical field of image processing, particularly relate to a kind of photographic method and terminal.
Background technology
Along with popularization and application and the fast development of smart mobile phone of smart mobile phone, the amusement function of mobile phone is also got over Come the abundantest, as play music, taking pictures, browse webpage, game etc..Due to mobile phone usually with user's shape shadow Accompanying and the continuous upgrading of mobile phone camera hardware, the camera function of mobile phone is more and more perfect, here it is Many times, mobile phone photograph instead of digital camera and taken pictures, to be convenient for people at any time to daily life Scene in work catches and fixes.For the camera of mobile phone, pixel (resolution) is measurement one The most important index of individual camera, general parcel received, pixel is the highest, and the quality of photo is the highest, photo clear Spend the highest;Meanwhile, high pixel also implies that high-quality photo, which results in the needs when photograph taking Take more cpu resource, the more data of computing, need the longer time just can take pictures, expend The more electricity of mobile phone, and take more memory source during photo stores.
In general, user is when using portable equipment such as smart mobile phone etc. to take pictures, and its purpose is mostly In order to reproduce the scene taken pictures at that time, especially for the one-tenth reproducing the targets such as article, personage or building As whether region i.e. object region is clearly, and the certain of non-object image region existence can be ignored Degree background blurring.But in the conventional technology, for non-object image region and the focusing of virtualization When the pixel of object region stores, the mode of process all stores the data of each pixel, this The photo size of processing mode is relatively big, which results in and needs to carry out substantial amounts of data meter during taking pictures Calculating and storage, the speed of imaging is slow.
Therefore, in prior art, taking pictures of photographic head for high pixel exists in computationally intensive, photo takies Depositing excessive technical problem, resource utilization ratio is low.
Summary of the invention
Embodiments provide a kind of photographic method and terminal, the utilization rate to system resource can be improved.
Embodiment of the present invention first aspect provides a kind of photographic method, including:
Obtain the target image of camera collection, described target image divides first area and second area;
Determine the target sharpness of pixel in described first area, according to pixel in described first area Target sharpness determines the sampling interval corresponding with described first area, described sampling interval and described firstth district In territory, the target sharpness of pixel becomes negative correlativing relation;
Pixel in described first area filters out target pixel points according to the described sampling interval;
According to the pixel value corresponding with described target pixel points and corresponding with pixel in described second area Pixel value generates the picture storing of taking pictures.
Embodiment of the present invention second aspect provides a kind of terminal, including:
Area division unit, for obtaining the target image of camera collection, divides in described target image First area and second area;
Sampling interval computing unit, for determining the target sharpness of pixel in described first area, according to In described first area, the target sharpness of pixel determines the sampling interval corresponding with described first area, institute Stating the sampling interval becomes negative correlativing relation with the target sharpness of pixel in described first area;
Pixel screening unit, sieves according to the described sampling interval in the pixel in described first area Select target pixel points;
Take pictures image store, for according to the pixel value corresponding with described target pixel points and with described Pixel value that in second area, pixel is corresponding generates the picture storing of taking pictures.
Implement the embodiment of the present invention, will have the advantages that
After have employed above-mentioned photographic method and terminal, after the image getting camera collection, to figure As whether carrying out region division according to imaging clearly, the region for image blur only stores the portion in this region Dividing the digital signal value of pixel, the image-region for imaging clearly stores all pixels in this region, So that the picture of taking pictures finally obtained is retaining on the premise of original definition, reduce picture of taking pictures Data processing amount, i.e. decreases the amount of calculation of data, reduces the size of the memory space shared by picture of taking pictures, Improve the utilization rate to system resource.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, institute in embodiment being described below The accompanying drawing used is needed to be briefly described, it should be apparent that, the accompanying drawing in describing below is the one of the present invention A little embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, also Other accompanying drawing can be obtained according to these accompanying drawings.
Wherein:
Fig. 1 is the schematic flow sheet of a kind of photographic method in an embodiment;
Fig. 2 is the first area schematic diagram of picture in an embodiment;
Fig. 3 is first area and the division schematic diagram of second area in an embodiment;
Fig. 4 is the screening schematic diagram of the pixel of first area in an embodiment;
Fig. 5 is the structural representation of a kind of terminal in an embodiment;
Fig. 6 is the composition structure chart of the area division unit of Fig. 5 in the embodiment of the present invention;
Fig. 7 is the composition structure chart of the sampling interval computing unit of Fig. 5 in the embodiment of the present invention;
Fig. 8 is the structural representation of the computer equipment running aforementioned photographic method in an embodiment.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, it is fully described by, it is clear that described embodiment is a part of embodiment of the present invention rather than all Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative labor The every other embodiment obtained under dynamic premise, broadly falls into the scope of protection of the invention.
In the present embodiment, it is proposed that a kind of photographic method, the method can be avoided present in the process of taking pictures Computationally intensive problem, and improve the effective rate of utilization of system resource, the realization of the method can be dependent on calculating Machine program, this computer program can be the camera application program in smart mobile phone, it is also possible to be operate in phase Image processing program in machine terminal.This computer program can run on computer based on von Neumann system In system.This computer system can be band photographic head and be provided with camera applications or the intelligence of image procossing application The terminal units such as energy mobile phone, panel computer, palm PC or camera.
Concrete, above-mentioned photographic method is as it is shown in figure 1, include following steps:
Step S102: obtain the target image of camera collection, divide first area and the in the target image Two regions.
Target image is the image of the camera collection being arranged in terminal by setting, and this target figure As can being shown by the display interface in terminal.In the present embodiment, take pictures according to target image The image of instruction acquisition, obtains final picture of taking pictures after this target image is carried out relevant treatment.? In the present embodiment, the acquisition process of target image has been carried out focusing, i.e. determines and need the mesh of focusing Mark thing or focusing, and, the process of above-mentioned focusing can (user manually selects by user's manual focus Need the shooting main body of focusing), it is also possible to carried out auto-focusing by terminal.
Terminal is during taking pictures, and the object of coverage is because the distance of distance photographic head is different (inspired by what one sees Deeply), it is impossible to realize all of shooting object and all fall within the photo-sensitive cell of terminal by camera lens imaging, It is to say, there will be the phenomenon of image blur for not imaging on the photo-sensitive cell of terminal, at this In embodiment, the region of image blur is referred to as first area, namely virtualization region.Further, right Just falling the situation on the photo-sensitive cell of terminal in certain imaging, the imaging in this region is clearly, will The region of its imaging is referred to as second area, namely clear area;Again because the selection of second area is root Determine according to the selection of target image focal length during gathering, say, that this second area institute is right The imaging object answered is user's shooting of interest main body, therefore, in the present embodiment, by clear area also Referred to as target area.
In one embodiment, as in figure 2 it is shown, in the picture that Fig. 2 is shown, shooting main body is picture In people, portrait area is relatively sharp than the region shown in numbering A and B, say, that portrait area It is first area/target area for the region shown in clear area/second area, numbering A and B.
In the present embodiment, target image can be regarded a two-dimensional array being made up of pixel as.Such as Fig. 3 Shown in, in the application scenarios that Fig. 3 shows, one pixel of each point identification.In this figure it is assumed that (i.e. the region of dotted line frame covering or numbering C are identified in region shown in coordinate (2 < X < 7,2 < Y < 10) Region) it is the region that definition is higher, i.e. the region shown in coordinate (2 < X < 7,2 < Y < 10) is the secondth district Territory, then other regions in addition to second area are first area.
It should be noted that in the present embodiment, the shape of second area or first area can be changeable, Such as, second area can be the border circular areas with focusing as the center of circle, it is also possible to be with corresponding to focusing Shooting main body imaging in the target image (this imaging region can be arbitrary shape).
In the present embodiment, the division methods of above-mentioned first area and second area can have multiple, such as, Can carry out dividing according to the second area that user manually selects that (user can determine second by the choosing of finger frame The region at place, region, and frame choosing region shape can also set according to the setting of user or system default Put and determine, such as the shape such as border circular areas, square region), it is also possible to it is that system is true according to the view-finder preset The region at fixed second area place thus complete the division in region (in such as, presetting one in view-finder Heart region, shooting main body is placed in the central area of view-finder by prompting user when taking pictures, and Focusing area in such cases is the central area in view-finder), it is also possible to it is according to every in target image The imaging definition in one region divides, it is also possible to be according in the focus process of the collection of target image Focusing area divide.
Concrete, in one embodiment, above-mentioned divide in the target image first area and second area it Before also include: obtain the definition corresponding with the pixel in target image;Divide first in the target image Region and second area, including: search the definition picture less than the clarity threshold preset in the target image Vegetarian refreshments is as the second pixel, and the regional determination constituted by the second pixel is first area, by target image In the regional determination that constitutes of pixel in addition to the second pixel be second area.
The imaging that definition can be used to weigh in target image is the most clear, and in general, focusing institute is right The definition of the pixel answered is the highest.It should be noted that the calculating of definition can utilize existing Algorithm, such as, in a kind of concrete implementation mode, can be by calculating target pixel points and neighborhood pixels The meansigma methods of the difference of the contrast of point determines this target pixel points definition.In other embodiments, also The available mode such as edge detection method, frequency domain filtering method calculates the definition in each region in target image.
In the present embodiment, all there is the definition of correspondence in all pixels comprised in target image, and, Definition is the highest, and the imaging representing correspondence is the most clear, otherwise, definition is the lowest, and corresponding imaging is the fuzzyyest. In the present embodiment, can arrange a clarity threshold, definition is higher than this threshold value, then represent correspondence The definition of imaging meets requirement.Concrete, when dividing first area with second area, definition is low It is divided into first area in the region at the pixel place of default clarity threshold, otherwise, in target image Except being then second area already divided into other regions of first area.
It should be noted that in the present embodiment, the quantity of second area or first area all can more than one Individual.Such as in the application scenarios shown in Fig. 2, numbering A and the region shown in numbering B are first area.
Optionally, in other embodiments, above-mentioned first area and second area are divided in the target image Step also includes: obtain the focusing focal length corresponding with target image;Obtain the depth map corresponding with target image, Depth map includes the depth value corresponding with the pixel in target image;In the target image search depth value with First pixel as the first pixel, is constituted by the difference of focal length more than the pixel of the difference threshold preset Regional determination be first area, the region that pixel in addition to the first pixel in target image is constituted It is judged to second area.
Concrete, mobile phone camera generally comprise a camera lens and luminous point reforming unit (CCD device or The similar device that can convert optical signal into the signal of telecommunication of other devices of person).Optical fiber pack is mapped to CCD by camera lens On device, optical fiber is converted into digital signal by CCD device, and digital signal is the data storage of picture of taking pictures. When focal length is directional light incidence from optical center of lens to light the distance of the focus of gathering.Also it is in photographing unit, from Center of lens is to the distance of the imaging plane such as egative film or CCD, and briefly focal length is focal point to the center of face mirror Distance between point.In the present embodiment, the focal length that target image is focused when imaging is in the present embodiment The focusing focal length corresponding with target image.
It is to say, if certain object in coverage is when the distance of camera lens is equal to focal length, it is in target Image-region corresponding in image is also clearly;Otherwise, if certain object in coverage is from camera lens When distance is bigger with the difference of focal length, its image-region corresponding in the target image is unsharp, or Say that the definition of its correspondence is relatively low.
In the present embodiment, preset a difference threshold, certain object in coverage from camera lens away from When the difference with focal length is less than or equal to this difference threshold, the regional determination corresponding in the target image by it For second area, otherwise, then it is first area.
Concrete, obtain the depth map corresponding with target image, i.e. obtain the pixel in target image corresponding Depth value.In the present embodiment, the depth value of pixel is the subject corresponding with this pixel and mirror Range information between Tou, and this range information can pass through range sensor, laser, infrared light etc. and obtain.
In the case of depth map and focusing focal length are all known, in calculating target image, each pixel is deep Angle value and the difference of focusing focal length, when difference is less than or equal to the difference threshold preset, by corresponding pixel Point is judged to the pixel that second area is comprised;When difference is more than the difference threshold preset, by correspondence Pixel is judged to the pixel that first area is comprised, thus completes the division of first area and second area.
Step S104: determine the target sharpness of pixel in first area, according to pixel in first area Target sharpness determine the sampling interval corresponding with first area, sampling interval and pixel in first area Target sharpness become negative correlativing relation.
Can be in the way of continuing to use such as front definition acquisition, in acquisition first area, each pixel is clear Degree, or, if in the case of the definition of the pixel in step s 102 in target image obtains, directly Connect the target sharpness reading the pixel being judged to first area.
Definition is the highest, and corresponding image-region is the most clear;Otherwise, definition is the lowest, corresponding image district Territory is the fuzzyyest.For the region of image blur, (deposit according to the storage mode identical with the region of imaging clearly Store up the pixel value of each pixel), the definition improving this regional imaging is not had help.Correspondingly, If reducing the pixel (resolution) in the region of image blur, the definition that also will not reduce this regional imaging is (special It not the human eye difference that cannot be distinguished by between the two).Therefore, for the region (i.e. first area) of image blur Pixel, can only store partial dot therein.In the present embodiment, the sampling interval is for first Pixel in region determines, the sampling interval determines the target picture stored in the picture of taking pictures of final storage The screening of vegetarian refreshments.
Sampling interval corresponding to first area is that the fog-level of the imaging according to this first area determines.? In the present embodiment, the fog-level of imaging can represent with target sharpness.Such as, an embodiment In, this first area can be represented by calculating the meansigma methods of the definition of all pixels in first area Definition, then determine the sampling interval according to the definition of this first area.In general, for first From the point of view of region, definition is the highest, and the pixel needing storage is the most, and the sampling interval is the least;Definition is the least, The pixel needing storage is the least, and correspondingly the sampling interval is the biggest, say, that sampling interval and the firstth district The target sharpness of the pixel in territory becomes negative correlativing relation, becomes negative correlativing relation with the definition of first area.
In one embodiment, above-mentioned determine and first area pair according to the definition of pixel in first area The step in the sampling interval answered also includes: calculate the meansigma methods of the definition of pixel in first area;According to The first function preset, with meansigma methods as independent variable, calculates the virtualization degree value corresponding with first area, virtualization Degree value becomes negative correlativing relation with meansigma methods;According to the second default function with virtualization degree value as independent variable, Calculating the sampling interval corresponding with first area, the sampling interval becomes positive correlation with virtualization degree value.
Concrete, virtualization degree value represents the virtualization degree/fog-level of the imaging of this image-region, virtualization Degree value is the biggest, and virtualization degree/fog-level is the highest, and the sampling interval is the biggest.In the present embodiment, empty Change degree value becomes negative correlativing relation, sampling interval to become positive correlation with virtualization degree value with definition.Specifically , the first function that above-mentioned basis is preset, with meansigma methods as independent variable, calculates the virtualization corresponding with first area In the step of degree value, virtualization degree value becomes negative correlativing relation with meansigma methods, and such as, the first function can be The slope linear function less than 0, it is also possible to be inverse proportion function or other can represent that virtualization degree value is with clear The function of the negative correlativing relation between the meansigma methods of clear degree.Further, the second function that above-mentioned basis is preset With virtualization degree value as independent variable, calculate in the sampling interval corresponding with first area, sampling interval and virtualization Degree value becomes positive correlation, wherein, the second function can be slope be the linear function of positive number, it is also possible to It is direct proportion function or other functions of positive correlation between sampling interval and virtualization degree value can be represented.
Such as, in the application scenarios shown in Fig. 2, the definition in the region shown in numbering A is significantly lower than compiling The definition in number region shown in B, the virtualization degree value in the region as shown in numbering A is 2, numbering B The virtualization degree value in region is 4, and sampling interval and the linear (sampling interval=virtualization of virtualization degree value Degree value-1), then the sampling interval of the first area shown in numbering A is 1 (i.e. to carry out every 1 sampled point Once sampling), the sampling interval of the first area shown in numbering B is 3, (i.e. carries out one every 3 sampled points Secondary sampling).
Step S106: filter out target pixel points according to the sampling interval in pixel in the first region.
The not all pixel of pixel in first area is required for storing, in the present embodiment, According to the sampling interval calculated in step S104, the pixel in first area is screened, screening Go out the pixel needing storage in first area in final picture of taking pictures.Concrete, above-mentioned object pixel In the screening of point, in pixel in the first region, sample according to sampling interval interlacing and/or every row, Such as, when the sampling interval is 1, in every line pixel is sampled.
In the application scenarios shown in Fig. 4, the region shown in numbering C is second area, and other regions are One region, and the sampling interval of correspondence be that 3 (i.e. taking a point every 3 pixels is target pixel points, also It is target pixel points that the most every 4 pixels take a point).In the diagram, for the pixel of first area, Pixel can be screened first interlacing, every row, pixel is screened the most again, draw last mesh Mark pixel, i.e. pixel as shown in Fig. 4 middle twill, be equivalent to each square dotted line frame comprised 4 Individual pixel takes a pixel as target pixel points.
Step S108: according to the pixel value corresponding with target pixel points and corresponding with pixel in second area Pixel value generate the picture storing of taking pictures.
In the present embodiment as, target image can be regarded a two-dimensional array being made up of pixel, and All there is the pixel value of correspondence in each pixel, this pixel value is its occurrence in two Dimension Numerical Value, Such as, pixel value can be the color component represented such as (R, G, B).At will be to target image When storing after reason, for all pixels in second area, storage and the institute of each pixel There are data (pixel value), to ensure the definition of shooting main body that user the is concerned about imaging in image of taking pictures, Relative, for the pixel in first area, only store the related data of the target pixel points screened (pixel value), to reduce the size of picture of taking pictures.It is to say, final picture of taking pictures is by first area The target pixel points screened and all pixels composition of second area.
Additionally, in the present embodiment, as shown in Figure 5, it is also proposed that a kind of terminal, divide single including region Unit 102, sampling interval computing unit 104, pixel screening unit 106 and image store of taking pictures, Wherein:
Area division unit 102, for obtaining the target image of camera collection, divides the in the target image One region and second area;
Sampling interval computing unit 104, for determining the target sharpness of pixel in first area, according to the In one region, the target sharpness of pixel determines the sampling interval corresponding with first area, the sampling interval and the In one region, the target sharpness of pixel becomes negative correlativing relation;
Pixel screening unit 106, filters out mesh according to the sampling interval in pixel in the first region Mark pixel;
Take pictures image store 108, for according to the pixel value corresponding with target pixel points and with the secondth district Pixel value that in territory, pixel is corresponding generates the picture storing of taking pictures.
Optionally, wherein in an embodiment, as shown in Figure 6, above-mentioned zone division unit 102 is also wrapped Include focusing focal length acquiring unit 1022, depth map acquiring unit 1024 and regional determination unit 1026, its In:
Focusing focal length acquiring unit 1022 is for obtaining the focusing focal length corresponding with target image;
Depth map acquiring unit 1024 is for obtaining the depth map corresponding with target image, and depth map includes and mesh The depth value that pixel in logo image is corresponding;
Regional determination unit 1026 is for searching the difference of depth value and focal length in the target image more than presetting The pixel of difference threshold is as the first pixel, and the regional determination constituted by the first pixel is first area, The regional determination constituted by pixel in addition to the first pixel in target image is second area.
Optionally, wherein in an embodiment, as it is shown in figure 5, above-mentioned terminal also includes that definition obtains Unit 110, for obtaining the definition corresponding with the pixel in target image;Above-mentioned zone division unit 102 are additionally operable to search the definition pixel less than the clarity threshold preset in the target image as second Pixel, the regional determination constituted by the second pixel is first area, will remove the second pixel in target image The regional determination that pixel outside Dian is constituted is second area.
Optionally, wherein in an embodiment, as it is shown in fig. 7, above-mentioned sampling interval computing unit 104 Obtain including definition average calculation unit 1042, virtualization degree value computing unit 1044 and sampling interval Unit 1046, wherein: definition average calculation unit 1042 is for calculating the clear of pixel in first area The meansigma methods of clear degree;Virtualization degree value computing unit 1044 is for according to the first function preset with meansigma methods being Independent variable, calculates the virtualization degree value corresponding with first area, and virtualization degree value becomes negative correlation to close with meansigma methods System;Sampling interval acquiring unit 1046 is used for according to the second function preset with virtualization degree value as independent variable, Calculating the sampling interval corresponding with first area, the sampling interval becomes positive correlation with virtualization degree value.
Optionally, wherein in an embodiment, above-mentioned pixel screening unit 106 is additionally operable in the firstth district In pixel in territory, according to sampling interval interlacing and/or every column filter target pixel points.
Implement the embodiment of the present invention, will have the advantages that
After have employed above-mentioned photographic method and device, after the image getting camera collection, to figure As whether carrying out region division according to imaging clearly, the region for image blur only stores the portion in this region Dividing the digital signal value of pixel, the image-region for imaging clearly stores all pixels in this region, So that the picture of taking pictures finally obtained is retaining on the premise of original definition, reduce picture of taking pictures Data processing amount, i.e. decreases the amount of calculation of data, reduces the size of the memory space shared by picture of taking pictures, Improve the utilization rate to system resource.
In one embodiment, as shown in Figure 8, Fig. 8 illustrate a kind of run above-mentioned photographic method based on The terminal of the computer system of von Neumann system.This computer system can be smart mobile phone, panel computer, Palm PC, the terminal unit such as notebook computer or PC.Concrete, it may include pass through system bus Outer input interface 1001, processor 1002, memorizer 1003 and the output interface 1004 connected.Wherein, Outer input interface 1001 optionally can at least include network interface 10012.Memorizer 1003 can include external memory Reservoir 10032 (such as hard disk, CD or floppy disk etc.) and built-in storage 10034.Output interface 1004 can At least include display screen 10042 equipment such as grade.
In the present embodiment, the operation of this method is based on computer program, the program file of this computer program Be stored in the external memory 10032 of aforementioned computer system based on von Neumann system, operationally by It is loaded in built-in storage 10034, is transferred to after being then compiled as machine code in processor 1002 perform, So that computer system based on von Neumann system is formed area division unit 102 in logic, adopts Sample interval calculation unit 104, pixel screening unit 106 and image store of taking pictures.And in above-mentioned bat During performing according to method, the parameter of input is all received by outer input interface 1001, and is transferred to storage Device 1003 caches, is then input in processor 1002 process, the result data of process or caching Subsequently process in memorizer 1003, or be passed to output interface 1004 and export.
Step in embodiment of the present invention method can carry out order according to actual needs and adjust, merges and delete.
Unit in embodiment of the present invention terminal can merge according to actual needs, divides and delete.This The terminal that inventive embodiments provides includes but not limited to carryOr its The terminal of its operating system, such as mobile phone.Can also be other terminal, such as there is Touch sensitive surface (example As, touch-screen display and/or Trackpad) laptop computer or panel computer or desk computer.
In the following discussion, a kind of terminal including display and Touch sensitive surface is described.But should manage Solving, terminal can include other physical user-interface device one or more, such as physical keyboard, mouse and/ Or action bars.
Terminal generally supports multiple application program, such as following in one or more: picture application program, Present application program, word-processing application, webpage establishment application program, dish editor's application program, electricity Sub-table application program, game application, telephony application, videoconference application, electronics postal Application program, photograph management application program, number are supported in part application program, instant message application program, exercise Word camera application program, digital video camcorder application program, network browsing application program, digital music are broadcast Put device application program and/or video frequency player application program.
The various application programs that can perform in terminal can use at least one physical user-interface device shared, Such as Touch sensitive surface.One or more functions of Touch sensitive surface and display corresponding information in terminal can be from A kind of application program adjusts and/or is changed to lower a kind of application program and/or is adjusted in corresponding application programs And/or change.So, the shared physical structure (such as Touch sensitive surface) of terminal is available the most straight See clearly user interface to support various application program.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, Can be by computer program and complete to instruct relevant hardware, described program can be stored in a calculating In machine read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method. Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, Or random store-memory body (Random Access Memory, RAM) etc. ROM).
Above disclosed be only present pre-ferred embodiments, certainly can not with this limit the present invention it Interest field, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is contained.

Claims (10)

1. a photographic method, it is characterised in that including:
Obtain the target image of camera collection, described target image divides first area and second area;
Determine the target sharpness of pixel in described first area, according to pixel in described first area Target sharpness determines the sampling interval corresponding with described first area, described sampling interval and described firstth district In territory, the target sharpness of pixel becomes negative correlativing relation;
Pixel in described first area filters out target pixel points according to the described sampling interval;
According to the pixel value corresponding with described target pixel points and corresponding with pixel in described second area Pixel value generates the picture storing of taking pictures.
Photographic method the most according to claim 1, it is characterised in that described in described target image Divide first area and second area, including:
Obtain the focusing focal length corresponding with described target image;
Obtain the depth map corresponding with described target image, described depth map include with in described target image The depth value that pixel is corresponding;
The difference picture more than the difference threshold preset of depth value and described focal length is searched in described target image Vegetarian refreshments is as the first pixel, and the regional determination constituted by described first pixel is first area, by described The regional determination that in target image, pixel in addition to described first pixel is constituted is second area.
Photographic method the most according to claim 1, it is characterised in that described in described target image Also include before dividing first area and second area:
Obtain the definition corresponding with the pixel in described target image;
Described division first area and second area in described target image, including:
The definition pixel less than the clarity threshold preset is searched as the second picture in described target image Vegetarian refreshments, the regional determination constituted by described second pixel is first area, will remove institute in described target image The regional determination stating the pixel composition outside the second pixel is second area.
4. according to the photographic method described in claim 1 or 3, it is characterised in that described according to described first In region, the target sharpness of pixel determines the sampling interval corresponding with described first area, including:
Calculate the meansigma methods of the definition of pixel in described first area;
According to the first default function with described meansigma methods as independent variable, calculate corresponding with described first area Virtualization degree value, described virtualization degree value becomes negative correlativing relation with described meansigma methods;
According to the second default function with described virtualization degree value as independent variable, calculate and described first area pair In the sampling interval answered, the described sampling interval becomes positive correlation with described virtualization degree value.
Photographic method the most according to claim 1, it is characterised in that described in described first area Pixel in filter out target pixel points according to the described sampling interval, including:
In pixel in described first area, according to described sampling interval interlacing and/or every described in column filter Target pixel points.
6. a terminal, it is characterised in that including:
Area division unit, for obtaining the target image of camera collection, divides in described target image First area and second area;
Sampling interval computing unit, for determining the target sharpness of pixel in described first area, according to In described first area, the target sharpness of pixel determines the sampling interval corresponding with described first area, institute Stating the sampling interval becomes negative correlativing relation with the target sharpness of pixel in described first area;
Pixel screening unit, sieves according to the described sampling interval in the pixel in described first area Select target pixel points;
Take pictures image store, for according to the pixel value corresponding with described target pixel points and with described Pixel value that in second area, pixel is corresponding generates the picture storing of taking pictures.
Terminal the most according to claim 6, it is characterised in that it is right that described area division unit also includes Burnt focal length acquiring unit, depth map acquiring unit and regional determination unit, wherein:
Described focusing focal length acquiring unit is for obtaining the focusing focal length corresponding with described target image;
Described depth map acquiring unit is for obtaining the depth map corresponding with described target image, described depth map Including the depth value corresponding with the pixel in described target image;
Described regional determination unit is big with the difference of described focal length for searching depth value in described target image In the pixel of default difference threshold as the first pixel, the region that described first pixel is constituted is sentenced It is set to first area, the region constituted by pixel in addition to described first pixel in described target image It is judged to second area.
Terminal the most according to claim 6, it is characterised in that described device also includes that definition obtains Unit, for obtaining the definition corresponding with the pixel in described target image;
Described area division unit is additionally operable in described target image search definition less than the definition preset The pixel of threshold value is as the second pixel, and the regional determination constituted by described second pixel is first area, The regional determination constituted by pixel in addition to described second pixel in described target image is second area.
9. according to the terminal described in claim 6 or 8, it is characterised in that described sampling interval computing unit Including definition average calculation unit, virtualization degree value computing unit and sampling interval acquiring unit, its In:
Described definition average calculation unit is for calculating the flat of the definition of pixel in described first area Average;
Described virtualization degree value computing unit is used for according to the first function preset with described meansigma methods as independent variable, Calculating the virtualization degree value corresponding with described first area, described virtualization degree value becomes negative with described meansigma methods Pass relation;
Described sampling interval acquiring unit is used for according to the second function preset with described virtualization degree value for from becoming Amount, calculates the sampling interval corresponding with described first area, and the described sampling interval becomes with described virtualization degree value Positive correlation.
Terminal the most according to claim 6, it is characterised in that described pixel screening unit is also used In the pixel in described first area, according to described sampling interval interlacing and/or every mesh described in column filter Mark pixel.
CN201610284338.3A 2016-05-03 2016-05-03 Photographing method and terminal Pending CN105898145A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610284338.3A CN105898145A (en) 2016-05-03 2016-05-03 Photographing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610284338.3A CN105898145A (en) 2016-05-03 2016-05-03 Photographing method and terminal

Publications (1)

Publication Number Publication Date
CN105898145A true CN105898145A (en) 2016-08-24

Family

ID=56702059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610284338.3A Pending CN105898145A (en) 2016-05-03 2016-05-03 Photographing method and terminal

Country Status (1)

Country Link
CN (1) CN105898145A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277354A (en) * 2017-07-03 2017-10-20 努比亚技术有限公司 One kind virtualization photographic method, virtualization photo terminal and computer-readable recording medium
CN112099217A (en) * 2020-08-18 2020-12-18 宁波永新光学股份有限公司 Automatic focusing method for microscope
CN116233394A (en) * 2022-11-30 2023-06-06 武汉极动智能科技有限公司 Focusing method and device of imaging device, computer device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080002961A1 (en) * 2006-06-29 2008-01-03 Sundstrom Robert J Method and system for providing background blurring when capturing an image using an image capture device
CN101505423B (en) * 2009-02-25 2011-01-05 西安交通大学 Non-uniform sampling method for video image
CN102348116A (en) * 2010-08-03 2012-02-08 株式会社理光 Video processing method, video processing device and video processing system
CN104333700A (en) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 Image blurring method and image blurring device
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, apparatus and terminal
CN105227838A (en) * 2015-09-28 2016-01-06 广东欧珀移动通信有限公司 A kind of image processing method and mobile terminal
CN105389780A (en) * 2015-10-28 2016-03-09 维沃移动通信有限公司 Image processing method and mobile terminal
CN105451019A (en) * 2015-11-25 2016-03-30 中国地质大学(武汉) Image compression transmission method facing wireless video sensor network

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080002961A1 (en) * 2006-06-29 2008-01-03 Sundstrom Robert J Method and system for providing background blurring when capturing an image using an image capture device
CN101505423B (en) * 2009-02-25 2011-01-05 西安交通大学 Non-uniform sampling method for video image
CN102348116A (en) * 2010-08-03 2012-02-08 株式会社理光 Video processing method, video processing device and video processing system
CN104333700A (en) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 Image blurring method and image blurring device
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, apparatus and terminal
CN105227838A (en) * 2015-09-28 2016-01-06 广东欧珀移动通信有限公司 A kind of image processing method and mobile terminal
CN105389780A (en) * 2015-10-28 2016-03-09 维沃移动通信有限公司 Image processing method and mobile terminal
CN105451019A (en) * 2015-11-25 2016-03-30 中国地质大学(武汉) Image compression transmission method facing wireless video sensor network

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277354A (en) * 2017-07-03 2017-10-20 努比亚技术有限公司 One kind virtualization photographic method, virtualization photo terminal and computer-readable recording medium
CN107277354B (en) * 2017-07-03 2020-04-28 瑞安市智造科技有限公司 Virtual photographing method, virtual photographing terminal and computer readable storage medium
CN112099217A (en) * 2020-08-18 2020-12-18 宁波永新光学股份有限公司 Automatic focusing method for microscope
CN116233394A (en) * 2022-11-30 2023-06-06 武汉极动智能科技有限公司 Focusing method and device of imaging device, computer device and storage medium
CN116233394B (en) * 2022-11-30 2023-11-07 武汉极动智能科技有限公司 Focusing method and device of imaging device, computer device and storage medium

Similar Documents

Publication Publication Date Title
CN108898567B (en) Image noise reduction method, device and system
CN104618640B (en) A kind of photographic method and device
CN108401112B (en) Image processing method, device, terminal and storage medium
CN108777767A (en) Photographic method, device, terminal and computer readable storage medium
CN105227857B (en) A kind of method and apparatus of automatic exposure
CN106233329A (en) 3D draws generation and the use of east image
WO2022127225A1 (en) Image stitching method and apparatus, and device and storage medium
CN103533228B (en) Method and system for generating a perfect shot image from multiple images
CN109285136A (en) A kind of Multiscale Fusion method, apparatus, storage medium and the terminal of image
CN103297699A (en) Method and terminal for shooting images
CN110324532A (en) A kind of image weakening method, device, storage medium and electronic equipment
CN106231200B (en) A kind of photographic method and device
CN107302666A (en) Photographic method, mobile terminal and computer-readable recording medium
CN105578023A (en) Image quick photographing method and device
CN103188434A (en) Method and device of image collection
CN104767938A (en) Photo shooting method and device
CN112017137B (en) Image processing method, device, electronic equipment and computer readable storage medium
CN112749613A (en) Video data processing method and device, computer equipment and storage medium
CN104867125A (en) Image obtaining method and image obtaining device
CN105898145A (en) Photographing method and terminal
CN111741214A (en) Image processing method and device and electronic equipment
CN110505397B (en) Camera selection method, device and computer storage medium
WO2015196681A1 (en) Picture processing method and electronic device
CN116055607A (en) Zoom smoothness evaluation method and device and electronic equipment
CN107155000B (en) Photographing behavior analysis method and device and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160824

WD01 Invention patent application deemed withdrawn after publication