CN106251388A - Photo processing method and device - Google Patents

Photo processing method and device Download PDF

Info

Publication number
CN106251388A
CN106251388A CN201610620637.XA CN201610620637A CN106251388A CN 106251388 A CN106251388 A CN 106251388A CN 201610620637 A CN201610620637 A CN 201610620637A CN 106251388 A CN106251388 A CN 106251388A
Authority
CN
China
Prior art keywords
image
moving object
pixel
demarcation
taking pictures
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
CN201610620637.XA
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.)
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Mobile Intelligent Information Technology Beijing 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 LeTV Holding Beijing Co Ltd, LeTV Mobile Intelligent Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610620637.XA priority Critical patent/CN106251388A/en
Publication of CN106251388A publication Critical patent/CN106251388A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/802D [Two Dimensional] animation, e.g. using sprites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/14Transformations for image registration, e.g. adjusting or mapping for alignment of images

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a kind of photo processing method and device, relate to technical field of image processing.Wherein, the method includes: in the depth map generated under preview state of taking pictures, and obtains the image information demarcating moving object;According to the image information of demarcation moving object, identify in the base image of user's shooting and demarcate moving object;Base image is divided into moving object region and base area;According to the image information of demarcation moving object, identify in the successive image of user's shooting and demarcate moving object;Moving object region in successive image is merged with the base area of base image, to update successive image.The technical scheme of the embodiment of the present invention achieves in base image and successive image, no matter demarcates whether moving object occurs change in location, can identify demarcation moving object exactly so that the GIF image ultimately generated better meets user and takes pictures demand.

Description

Photo processing method and device
Technical field
The present embodiments relate to image processing techniques, particularly relate to a kind of photo processing method and device.
Background technology
Along with the development of the Internet, computer and communication technology, the function of the intelligent terminal such as such as smart mobile phone is the most more come The most powerful, the degree of dependence of intelligent terminal is also being continuously increased by user, such as inquires about weather forecast, shooting photo etc..
Generally, shooting multiple pictures, when utilizing intelligent terminal to shoot, can be merged and generate image GIF by user The picture of (Graphics Interchange Format, interchange format).If user wants to generate GIF picture, need manually Smear moving region, intelligent terminal moving region generate dynamic GIF effect, to obtain GIF picture.
But, during inventor realizes the present invention, find that the defect of the present invention is: user must manual entering Row is smeared, and, it is difficult to select accurately the profile of the moving object that user needs when smearing.Meanwhile, if user need The position of moving object changes, and after moving out moving region, just cannot generate the GIF picture that user needs accurately, The demand of taking pictures making user cannot be met.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of photo processing method and device, existing to solve intelligent terminal The problem that GIF technology can not meet the actual demand of taking pictures of user.
First aspect, embodiments provides a kind of photo processing method, comprising:
In the depth map generated under preview state of taking pictures, obtain the image information demarcating moving object;
According to the image information of described demarcation moving object, in the base image of user's shooting, identify that described demarcation is moved Object;
Described base image is divided into moving object region and base area;
According to the image information of described demarcation moving object, in the successive image of user's shooting, identify that described demarcation is moved Object;
Moving object region in successive image is merged with the base area of base image, to update successive image.
Second aspect, embodiments provides a kind of picture processing device, including:
Image information acquisition module, in the depth map generated under preview state of taking pictures, obtains and demarcates moving object Image information;
Demarcate object identification module, for the image information according to described demarcation moving object, on the basis of user's shooting Image identifies described demarcation moving object;
Base image divides module, for described base image is divided into moving object region and base area;
Successive image identification module, for according to the image information of described demarcation moving object, follow-up in user's shooting Image identifies described demarcation moving object;
Merge module, for being merged with the base area of base image in the moving object region in successive image, with more New successive image.
The photo processing method of embodiment of the present invention offer and device, obtain in the depth map generated under preview state of taking pictures Label taking determines the image information of moving object, according to image information, identifies demarcation moving object in the base image of user's shooting Body, and base image is divided into moving object region and base area, according to image information, at the successive image of user's shooting In identify demarcation moving object, and the moving object region in successive image is closed with the base area in base image And, to update successive image.By obtaining the image information demarcating moving object in depth map, with in base image and follow-up Image identifies demarcation moving object, and according to demarcating moving object by the fortune of the base area of base image Yu successive image The technological means of animal body region merging technique, it is achieved that accurately obtain the desired moving object of user in the picture, and follow-up In image, even if moving object is subjected to displacement, remains able to identify exactly moving object, and then make the GIF figure generated Take pictures the technique effect of demand as better meeting user, simultaneously, it is not necessary to user manually smears moving object contours, it is also possible to carry Rise the experience of user.
Accompanying drawing explanation
The flow chart of a kind of photo processing method that Fig. 1 provides for the embodiment of the present invention one;
The flow chart of a kind of photo processing method that Fig. 2 a provides for the embodiment of the present invention two;
A kind of flow chart obtaining demarcation moving object method that Fig. 2 b provides for the embodiment of the present invention two;
The flow chart of a kind of photo processing method that Fig. 3 provides for the embodiment of the present invention three;
The flow chart of a kind of photo processing method that Fig. 4 a provides for the embodiment of the present invention four;
The display schematic diagram of the base image that Fig. 4 b provides for the embodiment of the present invention four;
The display schematic diagram of the base area that Fig. 4 c provides for the embodiment of the present invention four;
The flow chart of a kind of photo processing method that Fig. 5 a provides for the embodiment of the present invention five;
The display schematic diagram of the currently processed image that Fig. 5 b provides for the embodiment of the present invention five;
The display schematic diagram of the base image that Fig. 5 c provides for the embodiment of the present invention five;
The pixel that Fig. 5 d provides for the embodiment of the present invention five replace after the display schematic diagram of image;
The structural representation of a kind of picture processing device that Fig. 6 provides for the embodiment of the present invention six.
Detailed description of the invention
The present invention is described in further detail with embodiment below in conjunction with the accompanying drawings.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just Part related to the present invention is illustrate only rather than entire infrastructure in description, accompanying drawing.
It should be mentioned that, some exemplary embodiments are described as before being discussed in greater detail exemplary embodiment The process described as flow chart or method.Although flow chart each step is described as order process, but many of which Step can be implemented concurrently, concomitantly or simultaneously.Additionally, the order of each step can be rearranged.When it operates When completing, described process can be terminated, it is also possible to have the additional step being not included in accompanying drawing.Described process is permissible Corresponding to method, function, code, subroutine, subprogram etc..
Embodiment one
The flow chart of a kind of photo processing method that Fig. 1 provides for the embodiment of the present invention one, the method can be by photo Reason device performs, and wherein this device can be realized by software and/or hardware, typically can be integrated in intelligent terminal.As it is shown in figure 1, The method includes:
In step 110, the depth map generated under preview state of taking pictures, obtain the image information demarcating moving object.
In the present embodiment, after preview state of taking pictures refers to the camera function of unlatching intelligent terminal, user is not being received Before the photographing instruction sent, can be by the state of preview interface preview shooting picture of taking pictures.Wherein, intelligent terminal is chosen as That the users such as smart mobile phone, panel computer or camera hold and that there is camera function smart machine.Preview interface of taking pictures is Refer to that intelligent terminal, when taking pictures preview state, is used in display screen showing the interface that photographic head obtains picture.
Concrete, under preview state of taking pictures, depth map can be generated by the picture that the photographic head of intelligent terminal obtains. Wherein, the depth of field refers to obtain what the imager axis of picture rich in detail was measured at camera lens or other imager forward positions Object distance scope.Depth map refers to the picture with Deep Canvas.
More specifically, depth map is the picture that intelligent terminal backstage generates, and will not show in preview interface of taking pictures.Pass through Depth map can not only obtain subject image pixel coordinates in depth map, moreover it is possible to obtains depth of view information, wherein depth of field letter Breath can include the distance range information etc. of the range information between subject and cam lens and focusing.
Further, when generating depth map, preview interface of taking pictures shows preview image of taking pictures.Wherein, take pictures pre- Image of looking at is the most corresponding with depth map, each image pixel coordinates and each image pixel coordinates in depth map in preview image of i.e. taking pictures One_to_one corresponding, the image slices vegetarian refreshments also one_to_one corresponding that each image pixel coordinates is corresponding.Optionally, preview image of taking pictures can be not There is the image of Deep Canvas.
Optionally, the depth map generated under preview state of taking pictures can be particularly as follows: carry out taking pictures pre-by dual camera Look at, to obtain depth map, and present, in preview interface of taking pictures, preview image of taking pictures.
Typically, intelligent terminal configures dual camera, opens after camera function, utilize dual camera to carry out taking pictures pre- Look at, preview interface of taking pictures shows the preview image of taking pictures that dual camera obtains, and the picture life obtained according to dual camera Become depth map.Wherein, shooting principle and concrete generation depth map rule the present embodiment of dual camera is not construed as limiting.
Further, in the depth map generated, obtain the image information demarcating moving object.Wherein, moving object is demarcated Body is the object presenting kinestate in the living document ultimately generated.In depth map, demarcate the image information of moving object Can be the complete outer surface information demarcating moving object, it is also possible to be the characteristic information etc. demarcating moving object, such as, demarcate The colouring information of moving object or structural information etc..
Concrete, in depth map, according to demarcating the position at moving object place, determine and demarcate corresponding each of moving object Image pixel coordinates.Obtain each image slices vegetarian refreshments that each image pixel coordinates is corresponding.Due to, each image slices vegetarian refreshments associates aobvious Moving object is determined in indicating, therefore, each image slices vegetarian refreshments is identified as demarcating the image information of moving object, and obtains the figure of identification As information.
Step 120, image information according to described demarcation moving object, identify described in the base image of user's shooting Demarcate moving object.
Wherein, after user is performed photographing operation for the first time, image based on the photo of intelligent terminal's shooting.Can also It is image based on the photo that user is selected, it is also possible to first photograph in the multiple pictures obtained that user is taken pictures continuously Image based on sheet.Concrete, base image shows in the display screen of intelligent terminal.
Exemplary, according to the image information of demarcation moving object, base image identifies demarcation moving object.Its In, the recognition methods the present embodiment demarcating moving object is not construed as limiting.
Such as, the image information demarcating moving object is to demarcate each image pixel point set that moving object is corresponding.Specifically , at least one subject can be identified in base image, and at least one subject, select and demarcate The subject that each image pixel point set corresponding to moving object is mated most, as the demarcation fortune identified in base image Animal body.
Step 130, described base image is divided into moving object region and base area.
Exemplary, base image is divided.Concrete partitioning standards can be according to demarcating moving object to base Plinth image divides.
Concrete, by base image, the region identifying demarcation moving object place is divided into moving object region.Its In, moving object region can be follow-up synthesis living document in demarcate moving object place region.In the present embodiment, Each pixel corresponding for moving object region can be replaced with the pixel of same display content, such as replace with blank pixel Point, i.e. moving object region do not show any content, now, region based on the base image after replacing, wherein, base The position demarcating moving object corresponding in plinth region does not show any content.
Step 140, image information according to described demarcation moving object, identify described in the successive image of user's shooting Demarcate moving object.
Exemplary, user continues executing with shooting operation, the multiple image that shooting is obtained by intelligent terminal be identified as based on The successive image of base image.Optionally, it is also possible to be to obtain multiple images when user is continuously shot, by first figure Based on Xiang after image, residual image is as successive image.Optionally, it is also possible to be to obtain several shooting figures that user selects Picture, and be successive image based on base image by the image recognition of taking pictures of acquisition.Wherein, the amount of images of successive image is more than Or equal to 1, and the image resolution ratio of successive image is identical with the image resolution ratio of base image, i.e. each image slices of successive image Element coordinate and each image pixel coordinates one_to_one corresponding of base image, each image slices vegetarian refreshments also one_to_one corresponding.
Further, demarcation moving object can be identified in successive image according to the image information of demarcation moving object Body.Wherein, the recognition methods the present embodiment demarcating moving object is not construed as limiting.Optionally, demarcate the recognition methods of moving object, Can be identical with the recognition methods in step 120.
Optionally, after obtaining whole successive images, in successive image, demarcation moving object is identified successively.Or Person, after often obtaining a width successive image, identifies demarcation moving object in successive image.
Step 150, the moving object region in successive image is merged with the base area of base image, follow-up to update Image.
Exemplary, from successive image, mark off the moving object region of correspondence.Optionally, according in successive image Demarcate moving object, the region demarcating moving object place is divided into moving object region.
Further, the moving object region in successive image is merged with the base area of base image, after merging The image generated is as updating successive image, to be updated existing successive image.Wherein it is possible to be at successive image In, retain moving object region, using other region as replacing region, the content that replacement region shows is changed to base area The content that middle corresponding region shows.
Owing to the moving object region in successive image may not exclusively overlap with the moving object region in base image, Make in merging process, non-blank-white region in base image can be caused to partly overlap with moving object region in successive image, Or the subregion replacing region in successive image is corresponding with the white space in base image so that in the image after merging Blank spot occurs.So, when partly overlapping occurs in image after merging, can only retain moving object district in successive image Territory.When white space occurs in image after merging, can retain and successive image is replaced the display content that region is corresponding, in case There is blank spot in image the most after merging.
Optionally, base image and renewal successive image are processed according to shooting time order, obtain living document, And living document is shown in the display screen of intelligent terminal, user can obtain demarcating fortune by the living document of display The kinestate of animal body.It should be noted that the living document generated in the present embodiment is local dynamic station file, wherein, office Dynamic area, portion is the region demarcating moving object place.
The photo processing method that the present embodiment provides, by obtaining the image information demarcating moving object in depth map, root According to image information, base image identifies demarcation moving object, so base image is divided into moving object region and Base area, identifies demarcation moving object according to image information in successive image, and then by the moving object in successive image Body region merges with the base area of base image, to update successive image, it is achieved that in base image and successive image, nothing Opinion demarcates whether moving object occurs change in location, can identify demarcation moving object exactly so that ultimately generate GIF image better meets user and takes pictures demand, simultaneously, it is not necessary to the profile demarcating moving object is smeared by user, promotes The experience of user.
Embodiment two
The flow chart of a kind of photo processing method that Fig. 2 a provides for the embodiment of the present invention two.The present embodiment is with above-mentioned enforcement Embody based on example.With reference to Fig. 2 a, the method that the present embodiment provides specifically includes:
Step 210, take pictures in preview interface under preview state of taking pictures, obtain the demarcation moving object that user selects, Wherein, in preview interface of taking pictures described in, the preview image of taking pictures of display is corresponding with depth map.
Exemplary, after can showing, in preview interface of taking pictures, preview image of taking pictures, listening to user's specific operation Time, determine and obtain the demarcation moving object that user selects.Such as, listen to user and preview interface of taking pictures is performed double click operation Time, obtain object corresponding with the screen position of double click operation in preview interface of taking pictures for demarcating moving object.For another example, listen to When user performs slide in preview interface of taking pictures, obtain in preview interface of taking pictures corresponding with the screen position of slide Object for demarcate moving object.
Wherein, in preview interface of taking pictures, the preview image of taking pictures of display is corresponding with the depth map that backstage generates.
Further, a kind of flow chart obtaining demarcation moving object method that Fig. 2 b provides for the embodiment of the present invention two. With reference to Fig. 2 b, step 210 can particularly as follows:
Step 211, according to user in preview interface of taking pictures to setting screen position select, obtain with described setting screen The target screen pixel coordinate that position is corresponding.
Exemplary, the screen position that acquisition user selects in preview interface of taking pictures is as setting screen position.Wherein, The setting screen position that user selects is positioned at some subject taken pictures in preview image.
Concrete, one piece of region that acquisition user clicks in preview interface of taking pictures is as setting screen position.Can also It is to obtain user and in preview interface of taking pictures, slide the one piece of region drawn a circle to approve as setting screen position.
Further, according to setting screen position, preview interface of taking pictures obtains the screen corresponding with setting screen position Curtain pixel coordinate is as target screen pixel coordinate.
Concrete, the screen pixels coordinate range of preview interface of taking pictures is relevant with the screen resolution of preview interface of taking pictures, The screen resolution of preview interface of taking pictures is identical with the screen resolution of intelligent terminal's display screen.Such as, take pictures preview interface Screen resolution be 1280x800, then the screen pixels coordinate range of preview interface of taking pictures is (0,0) to (1279,799), and The corresponding screen pixels point of each screen pixels coordinate.
Optionally, in preview interface of taking pictures, according to setting screen position, obtain in screen pixels coordinate range and set Determine the screen pixels coordinate that screen position is corresponding.
Step 212, according to described in take pictures the screen resolution of preview interface and preview image of taking pictures image resolution ratio it Between corresponding relation, take pictures in preview image described in acquisition, the target image pixel corresponding with described target screen pixel coordinate Coordinate.
Exemplary, the image resolution ratio of preview image of taking pictures is relevant with the resolution of photographic head and image size, takes pictures The image pixel coordinates scope of preview image and the image resolution ratio of preview image of taking pictures.Such as, take pictures the image of preview image Resolution can be 1024 × 768, then the image pixel coordinates scope of preview image of taking pictures is (0,0) to (1023,767), and The corresponding image slices vegetarian refreshments of each image pixel coordinates.
Further, if wanting to clearly show that, in preview interface of taking pictures, preview image of taking pictures, then it needs to be determined that take pictures pre- Look at the corresponding relation between screen resolution and the image resolution ratio of preview image of taking pictures at interface.Such as, take pictures preview interface Screen resolution be 1024 × 768, the image resolution ratio of preview image of taking pictures is 1024 × 768, preview image of now taking pictures In each image pixel coordinates and each screen pixels coordinate one_to_one corresponding taken pictures in preview interface.For another example, take pictures preview interface Screen resolution be 1280 × 960, the image of preview image of taking pictures rate respectively is 640 × 480, now, preview interface of taking pictures The corresponding relation of screen resolution and the image resolution ratio of preview image of taking pictures be 4:1, in preview image of will taking pictures one The screen that image slices vegetarian refreshments corresponding to image pixel coordinates four neighboring screens pixel coordinates in preview interface of taking pictures are corresponding Pixel shows.
Exemplary, after determining the target screen pixel coordinate of setting screen position that user selects, pre-according to taking pictures Look at the corresponding relation between screen resolution and the image resolution ratio of preview image of taking pictures at interface, in preview image of taking pictures, Determine the image pixel coordinates corresponding with target screen pixel coordinate, be designated as target image pixel coordinate.
Step 213, photo-object corresponding for the described described target image pixel coordinate taken pictures in preview image is determined The demarcation moving object selected for user.
Exemplary, in preview image of taking pictures, determine the target image pixel that target image pixel coordinate is corresponding, will The demarcation moving object that the photo-object that each target image pixel correspondence shows selects as user.
It should be noted that the setting screen position selected in preview interface of taking pictures due to user be probably one complete Subject, it is also possible to certain part in complete subject, so, the demarcation moving object that now determines may It it is a complete object, it is also possible to some part in complete object.
In step 220, the depth map generated under preview state of taking pictures, obtain the image information demarcating moving object.
Wherein, the image information demarcating moving object of acquisition is the complete image information demarcating moving object.
Concrete, owing to preview image of taking pictures is the most corresponding with depth map, therefore, it can according to demarcating moving object in bat According to the target image pixel coordinate in preview image, determine demarcation moving object image pixel coordinates in depth map, with reality Depth map determines demarcation moving object now, and then determines the image information demarcating moving object.
Step 230, image information according to described demarcation moving object, identify described in the base image of user's shooting Demarcate moving object.
Step 240, described base image is divided into moving object region and base area.
Step 250, image information according to described demarcation moving object, identify described in the successive image of user's shooting Demarcate moving object.
Step 260, the moving object region in successive image is merged with the base area of base image, follow-up to update Image.
The technical scheme of the present embodiment, by obtaining the demarcation moving object that user selects in preview interface of taking pictures, and In depth map, obtain the image information demarcating moving object, in base image, identify demarcation moving object according to image information Body, and then base image is divided into moving object region and base area, identify in successive image according to image information Demarcate moving object, and then the moving object region in successive image is merged with the base area of base image, after updating Continuous image, it is achieved that in base image and successive image, no matter demarcate whether moving object occurs change in location, can be accurate Really identify demarcation moving object so that the GIF image ultimately generated better meets user and takes pictures demand, simultaneously, it is not necessary to The profile demarcating moving object is smeared by user, only need to select one piece of screen position in preview interface of taking pictures, it is possible to Determine demarcation moving object, also improve the experience of user.
Embodiment three
The flow chart of a kind of photo processing method that Fig. 3 provides for the embodiment of the present invention three.The present embodiment is with above-mentioned enforcement Embody based on example.With reference to Fig. 3, the method that the present embodiment provides includes:
Step 310, take pictures in preview interface under preview state of taking pictures, obtain the demarcation moving object that user selects, Wherein, in preview interface of taking pictures described in, the preview image of taking pictures of display is corresponding with depth map.
Concrete, this step may include that and selects setting screen position in preview interface of taking pictures according to user, obtains The target screen pixel coordinate corresponding with setting screen position;Screen resolution according to preview interface of taking pictures and preview graph of taking pictures Corresponding relation between the image resolution ratio of picture, obtains and takes pictures in preview image, corresponding with object pixel screen pixels coordinate Target image pixel coordinate;Photo-object corresponding for the target image pixel coordinate taken pictures in preview image is defined as user's choosing The demarcation moving object selected.
Step 320, obtain the target image pixel corresponding with described target image pixel coordinate.
Concrete, according to demarcating moving object target image pixel coordinate in preview image of taking pictures, obtain correspondence Target image pixel.
Step 330, according to depth of view information corresponding with described target image pixel in depth map, determine described demarcate fortune Animal body arrives the distance of taking pictures of cam lens, and wherein, described depth of view information includes the object that image slices vegetarian refreshments associates Range information between body and described cam lens.
Exemplary, owing to the image slices vegetarian refreshments in depth map is the most right with the image slices vegetarian refreshments taken pictures in preview image Should, therefore, it can, according to demarcating moving object target image pixel in preview image of taking pictures, determine demarcation moving object Target image pixel in depth map.
Further, the depth of view information that in depth map, each target image pixel is corresponding is obtained.In the present embodiment, the depth of field Information includes the range information between subject and the cam lens that image slices vegetarian refreshments associates.According to each target image pixel Range information in some depth of view information, it may be determined that demarcate moving object and arrive the distance of taking pictures of cam lens.
Concrete, owing to each target image pixel broadly falls into the image slices vegetarian refreshments of demarcation moving object, so, each target Range information in image slices vegetarian refreshments depth of view information very close to, therefore, it can be defaulted as each target image pixel depth of view information In range information equal, and this range information is set as demarcate moving object arrive cam lens distance of taking pictures.Can Choosing, can be the meansigma methods asking for range information corresponding to each target image pixel, using the meansigma methods of acquirement as demarcation Moving object arrives the distance of taking pictures of cam lens.Can also be in each target image pixel, confirm same distance letter The number of the target image pixel that breath is corresponding, range information when taking number maximum arrives photographic head as demarcating moving object The distance of taking pictures of camera lens.It is also possible that arbitrarily choose a target image pixel, by corresponding for this target image pixel away from It is to demarcate moving object to arrive the distance of taking pictures of cam lens from information default.
Step 340, by described depth map, range information and the described difference taken pictures between distance meet and set threshold value bar The image slices vegetarian refreshments of part and described target image pixel collect in object pixel is grouped.
In view of in depth map, demarcate range information approximation in each image slices vegetarian refreshments depth of view information that moving object is corresponding Identical, and the target image pixel that determines of above-mentioned steps is not likely to be demarcation moving object all images picture in depth map Vegetarian refreshments, therefore, it can arrive the range information of cam lens according to the subject of each image slices vegetarian refreshments association in depth map, Determine all images pixel demarcating moving object.
Concrete, obtain the depth of view information of all images pixel removed in depth map outside target image pixel, its In, depth of view information includes the range information between subject and the cam lens that image slices vegetarian refreshments associates.Will be apart from letter Breath is poor with the distance of taking pictures determined, and takes the absolute value of difference.The image slices vegetarian refreshments that difference meets preset threshold condition is returned Combine in object pixel packet.
Further, preset threshold condition, when the range information of image slices vegetarian refreshments meets with the difference of distance of taking pictures During threshold condition, illustrate that this image slices vegetarian refreshments arrives the distance of cam lens and arrives cam lens with demarcating moving object Take pictures apart from close, i.e. this image slices vegetarian refreshments may be for demarcating the image slices vegetarian refreshments of moving object.Wherein, preset threshold condition can To be set according to practical situation.Such as, demarcate moving object and arrive when taking pictures close together of cam lens, preset threshold Value condition can be less than or equal to 1cm, i.e. in each image slices vegetarian refreshments, by little to range information and the difference taken pictures between distance In or collect in object pixel is grouped equal to the image slices vegetarian refreshments of 1cm.And for example, demarcate moving object and arrive cam lens When taking pictures distant, preset threshold condition can be less than or equal to 10cm, i.e. in each image slices vegetarian refreshments, by range information And the difference taken pictures between the distance image slices vegetarian refreshments less than or equal to 10cm collects in object pixel is grouped.
Optionally, target image pixel is also collected in object pixel is grouped.Object pixel packet after i.e. collecting In comprise may belong to demarcate moving object all images pixel.
Step 350, by described object pixel be grouped in image pixel coordinates continuous print image slices vegetarian refreshments be identified as described mark Determine the image information of moving object.
In view of in same depth map, same subject image pixel coordinates in depth map is definitely continuous 's.Therefore, it can in object pixel is grouped, be identified as image pixel coordinates continuous print image slices vegetarian refreshments demarcating moving object Image information.
Optionally, in object pixel is grouped, obtains and target image pixel coordinate continuous print image slices vegetarian refreshments, and will obtain The image slices vegetarian refreshments taken and target image pixel coordinate are identified as demarcating the image information of moving object.Or, by object pixel In packet, each image slices vegetarian refreshments that in image pixel coordinates, successive range is maximum, it is identified as demarcating the image information of moving object.
Step 360, image information according to described demarcation moving object, identify described in the base image of user's shooting Demarcate moving object.
Step 370, described base image is divided into moving object region and base area.
Step 380, image information according to described demarcation moving object, identify described in the successive image of user's shooting Demarcate moving object.
Step 390, the moving object region in successive image is merged with the base area of base image, follow-up to update Image.
The technical scheme of the present embodiment, by preview interface of taking pictures, obtains the demarcation moving object that user selects, and Target image pixel is determined, at depth map according to demarcating moving object target image pixel coordinate in preview image of taking pictures In, according to the depth of view information of target image pixel, determine that demarcating moving object arrives the distance of taking pictures of cam lens, and ask Take the range information that in depth map, each image slices vegetarian refreshments is corresponding and the difference taken pictures between distance, difference is met predetermined threshold value bar The image slices vegetarian refreshments of part and target image pixel collect simultaneously and are grouped in object pixel, image slices in being grouped by this object pixel Element coordinate continuous print image slices vegetarian refreshments is identified as demarcating the image information of moving object, it is possible to achieve obtains accurately and demarcates motion The image information of object.According to image information, base image identifies demarcation moving object, and then base image is divided For moving object region and base area, in successive image, identify demarcation moving object according to image information, so will after Moving object region in continuous image merges with the base area of base image, to update successive image, it is achieved that at foundation drawing In picture and successive image, no matter demarcate whether moving object occurs change in location, demarcation moving object can be identified exactly Body so that the GIF image ultimately generated better meets user and takes pictures demand, simultaneously, it is not necessary to user is to demarcating moving object Profile is smeared, and also improves the experience of user.
Embodiment four
The flow chart of a kind of photo processing method that Fig. 4 a provides for the embodiment of the present invention four.The present embodiment is with above-mentioned enforcement Embody based on example.With reference to Fig. 4 a, the method that the present embodiment provides specifically includes:
In step 410, the depth map generated under preview state of taking pictures, obtain the image information demarcating moving object.
Step 420, image information according to described demarcation moving object, identify described in the base image of user's shooting Demarcate moving object.
Step 430, the demarcation pixel coordinate that lookup is corresponding with described demarcation moving object in described base image, make For moving object region.
Concrete, base image identifies demarcation moving object, obtains and demarcate each pixel that moving object is corresponding Coordinate, is designated as demarcating pixel coordinate.Coordinate range corresponding to pixel coordinate will be demarcated as moving object region.
Step 440, by described base image, the pixel corresponding with described demarcation pixel coordinate replaces with blank picture Image after vegetarian refreshments, based on region.
Exemplary, in base image, the pixel demarcating pixel coordinate corresponding is replaced, i.e. changes demarcation The content that pixel coordinate shows.
Optionally, replace, with blank pixel point, the pixel that existing demarcation pixel coordinate is corresponding.It should be noted that The pixel that existing demarcation pixel coordinate is corresponding can also be replaced with the pixel of same color.
Concrete, in the image after having replaced, each pixel in moving object region is blank pixel point.Remove motion Other regions of object area still retain original pixel.
Further, the base area in region based on the image after replacement is completed, i.e. base image.
Such as, the display schematic diagram of the base image that Fig. 4 b provides for the embodiment of the present invention four.With reference to Fig. 4 b, by Fig. 4 b Image based on the shooting picture of display, wherein, object 40 is the demarcation moving object identified in base image 41, then Object 40 region is divided into moving object region.Further, by each mark in the moving object region of object 40 correspondence Fixation vegetarian refreshments coordinate replaces with blank pixel point, and remaining pixel coordinate retains original pixel.With reference to Fig. 4 c after replacement, The display schematic diagram of the base area that Fig. 4 c provides for the embodiment of the present invention four, wherein, white space 42 is original moving object Body region, will comprise the base area in region, i.e. base image based on the image 43 of white space 42.
Step 450, image information according to described demarcation moving object, identify described in the successive image of user's shooting Demarcate moving object.
Step 460, the moving object region in successive image is merged with the base area of base image, follow-up to update Image.
Concrete, the rest of pixels point removing blank pixel point in base area is filled to successive image.
The technical scheme of the present embodiment, by obtaining the image information demarcating moving object, and according to figure in depth map As information identifies demarcation moving object in base image, the region demarcating moving object corresponding in base image is divided into Moving object region, replaces each pixel blank pixel point corresponding to pixel coordinate of demarcating in moving object region, and Region based on image after replacing, by the moving object region identified in successive image and the basic district of base image Territory merges, and to update successive image, it is achieved that in base image and successive image, no matter demarcates whether moving object occurs position Put change, demarcation moving object can be identified exactly so that the GIF image ultimately generated better meets user and takes pictures Demand, and, the moving object region in base image is become white space, it is also possible to when follow-up union operation, improve The accuracy merged.Simultaneously, it is not necessary to the profile demarcating moving object is smeared by user, also improves the use body of user Test.
Embodiment five
The flow chart of a kind of photo processing method that Fig. 5 a provides for the embodiment of the present invention five.The present embodiment is with above-mentioned enforcement Embody based on example.With reference to Fig. 5 a, the method that the present embodiment provides specifically includes:
In step 510, the depth map generated under preview state of taking pictures, obtain the image information demarcating moving object.
Step 520, image information according to described demarcation moving object, identify described in the base image of user's shooting Demarcate moving object.
Step 530, described base image is divided into moving object region and base area.
Concrete, this step can be particularly as follows: search the demarcation pixel corresponding with demarcating moving object in base image Point coordinates, as moving object region;By in base image, the pixel corresponding with demarcating pixel coordinate replaces with blank picture Image after vegetarian refreshments, based on region.
Step 540, image information according to described demarcation moving object, identify described in the successive image of user's shooting Demarcate moving object.
Step 550, in successive image obtain an image as currently processed image.
Concrete, obtain successive image according to shooting time order.
Pending pixel under step 560, the object pixel coordinate obtained in described currently processed image, and judge institute State whether pending pixel belongs to the pixel of described demarcation moving object.If described pending pixel belongs to described mark Determine the pixel of moving object, perform step 570, otherwise, perform step 580.
Concrete, using each image pixel coordinates in currently processed image as object pixel coordinate.Can be according to coordinate The size order of value selects an object pixel coordinate, it is also possible to arbitrarily select an object pixel coordinate.The target that will select Pixel corresponding to pixel coordinate is as pending pixel.
Further, in the present embodiment, it is by the base demarcating moving object and base image in currently processed image Plinth region merging technique, accordingly, it would be desirable to judge whether pending pixel belongs to demarcation moving object picture in currently processed image Vegetarian refreshments.Wherein it is possible to be currently processed image will to be demarcated region corresponding to moving object as moving object region, it is judged that treat Process whether pixel belongs to the pixel in moving object region.
Concrete, if pending pixel belongs to the pixel demarcating moving object, then pending pixel position is described In the moving object region of currently processed image, i.e. need the region retained, now, to perform step 570.If pending pixel Point is not belonging to demarcate the pixel of moving object, then illustrate that pending pixel is positioned at replacement region, now, perform step 580.
Step 570, keep described pending pixel.Redirect execution step 5110.
Exemplary, in currently processed image, keep pending pixel.
Step 580, the basic pixel point obtained in described base image under described object pixel coordinate.
Concrete, according to the object pixel coordinate that pending pixel is corresponding, in base image, obtain object pixel and sit The basic pixel point that mark is corresponding, performs step 590.
Step 590, judge whether described basic pixel point is blank pixel point.If described basic pixel point is blank picture Vegetarian refreshments, performs step 570, otherwise, performs step 5100.
Concrete, it is judged that whether the basic pixel point in base image is blank pixel point.
Further, if basic pixel point is blank pixel point, then explanation base image in moving object region with work as Moving object region in pre-treatment image is not quite identical, i.e. demarcates moving object and there occurs change.Now, if by replacement area The pending pixel in territory replaces with the blank pixel point in base image, can cause occurring in the image after replacing that display is white Point.Therefore, when basic pixel point is blank pixel point, perform step 570, to prevent from the image after replacement occurs display White point.
Further, if basic pixel point is not blank pixel point, then illustrate that pending pixel is in base image The basic pixel point of middle correspondence is positioned at non-moving objects region, the most static region, now, performs step 5100.
Step 5100, described basic pixel point is used to replace the described pending pixel in described currently processed image.
Exemplary, in currently processed image, pending pixel is replaced with basic pixel point.After so processing, So that in currently processed image, remove and other regions, with base image outside moving object region remove moving object The content that other regions outside region show is basically identical.
The most exemplary processing procedure providing a pending pixel.
The display schematic diagram of the currently processed image that Fig. 5 b provides for the embodiment of the present invention five.With reference to Fig. 5 b, at current place Reason image 51 obtains the pending pixel 52 that an object pixel coordinate is corresponding.Confirm that pending pixel 52 is not belonging to mark Determine the pixel of moving object 53.The display schematic diagram of the base image that Fig. 5 c provides for the embodiment of the present invention five, in fig. 5 c, Determine the basic pixel point 55 that object pixel coordinate is corresponding in base image 54.Confirm that basic pixel point 55 is not blank pixel Point, now, uses basic pixel point to replace the pending pixel in currently processed image.Fig. 5 d is that the embodiment of the present invention five carries The display schematic diagram of image after the pixel replacement of confession.With reference to Fig. 5 d, in currently processed image 51, by pending pixel 52 Replace with the basic pixel point 55 of base image.
Step 5110, judge whether the process to pixels whole in described currently processed image.The most then perform Step 5120, otherwise, returns and performs step 560.
Wherein, if not completing the process to whole pixels, then return and perform step 560, to continue pending picture Vegetarian refreshments processes.If completing the process to whole pixels, then explanation completes the moving object district of currently processed image Territory merges with the base area of base image, performs step 5120.
Step 5120, judge whether the process to whole described successive images.The most then perform step 5130, no Then, execution step 550 is returned.
Wherein, without the process completed whole successive images, then can return execution step 550, with to not locating The successive image of reason continues with.If completing the process to whole successive images, then can perform step 5130, to be used The living document that family needs.
Step 5130, all images is processed, to generate living document.
Concrete, generating living document is local dynamic station file, and generating dynamic part in living document is that user selects Demarcate moving object.
Wherein, all images includes base image that user shoots and updates successive image.
Optionally, the form of living document can be local dynamic station motion picture, it is also possible to be local dynamic station video file. The corresponding different merging method of the living document of different-format, specifically can comprise following two class schemes:
Scheme one, all images is packaged as set animated format packaging file, to generate local dynamic station motion picture.
Wherein, if generating local dynamic station motion picture, then all images being carried out packing process, being packaged into setting animation lattice The packaging file of formula, the packaging file obtained is local dynamic station motion picture.Concrete packaging method the present embodiment is not construed as limiting.
Optionally, described setting animated format includes: graphic interchange format.
Optionally, all images is ranked up according to the sequencing of shooting time, carries out beating by the image after sequence Bag processes.
Scheme two, according to set coding rule, all images is carried out Video coding, with generate local dynamic station video literary composition Part.
Concrete, if generating local dynamic station video file, then needing all images is carried out Video coding, generating after coding Local dynamic station video file.Wherein, concrete coding rule the present embodiment is not construed as limiting.
Optionally, all images is ranked up according to the sequencing of shooting time, successively to the whole figures after sequence As carrying out Video coding.
Optionally, the living document obtained is shown in the display screen of intelligent terminal.
The technical scheme that the present embodiment provides, is not belonging to demarcate moving object by the pending pixel in successive image During the pixel of body, obtain basic pixel point corresponding in base image, and when basic pixel point is not blank pixel point, use Basic pixel point replaces corresponding pending pixel, if basic pixel point is blank pixel point, then keeps pending pixel, Achieve and no matter demarcate whether moving object occurs change in location, can be by the moving object region of successive image and foundation drawing The base area of picture merges accurately so that the living document generated after merging meets the shooting demand that user is actual.Meanwhile, nothing Need the profile smearing demarcation moving object that user is manual, it is also possible to promote the experience of user.
Embodiment six
The structural representation of a kind of picture processing device that Fig. 6 provides for the embodiment of the present invention six.As shown in Figure 6, described Device includes: image information acquisition module 61, demarcates object identification module 62, and base image divides module 63, and successive image is known Other module 64 and merging module 65, wherein,
Image information acquisition module 61, in the depth map generated under preview state of taking pictures, obtains and demarcates moving object The image information of body;
Demarcate object identification module 62, for the image information according to described demarcation moving object, at the base of user's shooting Plinth image identifies described demarcation moving object;
Base image divides module 63, for described base image is divided into moving object region and base area;
Successive image identification module 64, for the image information according to described demarcation moving object, after user shoots Continuous image identifies described demarcation moving object;
Merge module 65, for the moving object region in successive image is merged with the base area of base image, with Update successive image.
The picture processing device that the present embodiment provides, by obtaining the image information demarcating moving object in depth map, root According to image information, base image identifies demarcation moving object, so base image is divided into moving object region and Base area, identifies demarcation moving object according to image information in successive image, and then by the moving object in successive image Body region merges with the base area of base image, to update successive image, it is achieved that in base image and successive image, nothing Opinion demarcates whether moving object occurs change in location, can identify demarcation moving object exactly so that ultimately generate GIF image better meets user and takes pictures demand, simultaneously, it is not necessary to the profile demarcating moving object is smeared by user, promotes The experience of user.
On the basis of the various embodiments described above, it is also possible to including:
Demarcating object acquisition module, be used under preview state of taking pictures takes pictures in preview interface, obtains what user selected Demarcate moving object, wherein, described in the preview image of taking pictures of display in preview interface of taking pictures corresponding with depth map.
On the basis of the various embodiments described above, described demarcation object acquisition module may include that
Screen coordinate acquiring unit, for selecting setting screen position in preview interface of taking pictures according to user, obtains The target screen pixel coordinate corresponding with described setting screen position;
Image coordinate acquiring unit, for screen resolution and the preview image of taking pictures of preview interface of taking pictures described in basis Corresponding relation between image resolution ratio, takes pictures in preview image described in acquisition, corresponding with described target screen pixel coordinate Target image pixel coordinate;
Demarcate object and determine unit, for by corresponding for the described described target image pixel coordinate taken pictures in preview image Photo-object is defined as the demarcation moving object that user selects.
On the basis of the various embodiments described above, described image information acquisition module 61 may include that
Image slices vegetarian refreshments acquiring unit, for obtaining the target image pixel corresponding with described target image pixel coordinate Point;
Take pictures distance determining unit, for according to depth of view information corresponding with described target image pixel in depth map, Determining that described demarcation moving object arrives the distance of taking pictures of cam lens, wherein, described depth of view information includes image pixel Range information between subject and the described cam lens of some association;
Grouped element, for by described depth map, range information and the described difference taken pictures between distance meet setting The image slices vegetarian refreshments of threshold condition and described target image pixel collect in object pixel is grouped;
Image information determines unit, image pixel coordinates continuous print image slices vegetarian refreshments in being grouped by described object pixel It is identified as the image information of described demarcation moving object.
On the basis of the various embodiments described above, described base image divides module 63 and may include that
Moving region determines unit, for searching the demarcation corresponding with described demarcation moving object in described base image Pixel coordinate, as moving object region;
Base area determines unit, for by described base image, and the pixel corresponding with described demarcation pixel coordinate Point replaces with the image after blank pixel point, based on region.
On the basis of the various embodiments described above, described merging module 65 may include that
Process image acquisition unit, for obtaining an image in successive image as currently processed image;
Basic pixel point acquiring unit, for obtaining treating under the object pixel coordinate in described currently processed image successively Process pixel, if described pending pixel is not belonging to the pixel of described demarcation moving object, then at described foundation drawing The basic pixel point under described object pixel coordinate is obtained in Xiang;
Blank pixel point judging unit, if being blank pixel point for described basic pixel point, then waits to locate described in holding Reason pixel;Otherwise, described basic pixel point is used to replace the described pending pixel in described currently processed image;
First returns unit, obtains successively under the object pixel coordinate in described currently processed image for returning execution The operation of pending pixel, until completing the process to pixels whole in described currently processed image;
Second returns unit, and in successive image, one image of acquisition is as currently processed image, directly to be used for returning execution To the process completed whole described successive images.
On the basis of the various embodiments described above, described image information acquisition module 61 may include that
Depth map acquiring unit, for carrying out taking pictures preview by dual camera, to obtain depth map, and in preview of taking pictures Interface presents preview image of taking pictures;
Information acquisition unit, in described depth map, obtains the image information demarcating moving object.
On the basis of the various embodiments described above, it is also possible to including:
Packetization module, for all images is packaged as setting the packaging file of animated format, dynamic to generate local dynamic station Picture sheet.
On the basis of the various embodiments described above, described setting animated format may include that graphic interchange format.
On the basis of the various embodiments described above, it is also possible to including:
Coding module, for according to setting coding rule, all images being carried out Video coding, regards generating local dynamic station Frequency file.
The said goods can perform the method that any embodiment of the present invention is provided, and possesses the corresponding functional module of execution method And beneficial effect.
The embodiment of the present invention also provides for a kind of storage medium comprising computer executable instructions, and described computer can perform Instruction is used for when being performed by computer processor performing a kind of photo processing method, and the method includes:
In the depth map generated under preview state of taking pictures, obtain the image information demarcating moving object;
According to the image information of described demarcation moving object, in the base image of user's shooting, identify that described demarcation is moved Object;
Described base image is divided into moving object region and base area;
According to the image information of described demarcation moving object, in the successive image of user's shooting, identify that described demarcation is moved Object;
Moving object region in successive image is merged with the base area of base image, to update successive image.
Optionally, this computer executable instructions can be also used for when being performed by computer processor perform the present invention appoint The technical scheme of the photo processing method that meaning embodiment is provided.
By the description above with respect to embodiment, those skilled in the art it can be understood that arrive, the present invention Can realize by software and required common hardware, naturally it is also possible to realized by hardware, but a lot of in the case of the former is more Good embodiment.Based on such understanding, prior art is contributed by technical scheme the most in other words Part can embody with the form of software product, and this computer software product can be stored in computer-readable recording medium In, such as the floppy disk of computer, read only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions with so that a computer sets Standby (can be personal computer, server, or the network equipment etc.) performs the method described in each embodiment of the present invention.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious change, Readjust and substitute without departing from protection scope of the present invention.Therefore, although by above example, the present invention is carried out It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other Equivalent embodiments more can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (20)

1. a photo processing method, it is characterised in that including:
In the depth map generated under preview state of taking pictures, obtain the image information demarcating moving object;
According to the image information of described demarcation moving object, in the base image of user's shooting, identify described demarcation moving object Body;
Described base image is divided into moving object region and base area;
According to the image information of described demarcation moving object, in the successive image of user's shooting, identify described demarcation moving object Body;
Moving object region in successive image is merged with the base area of base image, to update successive image.
Method the most according to claim 1, it is characterised in that in the depth map generated under preview state of taking pictures, obtains Before demarcating the image information of moving object, also include:
Take pictures in preview interface under preview state of taking pictures, obtain the demarcation moving object that user selects, wherein, described in take pictures In preview interface, the preview image of taking pictures of display is corresponding with depth map.
Method the most according to claim 2, it is characterised in that take pictures in preview interface under preview state of taking pictures, obtains The demarcation moving object taking family selection includes:
In preview interface of taking pictures, setting screen position is selected according to user, obtain the mesh corresponding with described setting screen position Mark screen pixels coordinate;
The corresponding relation between screen resolution and the image resolution ratio of preview image of taking pictures according to described preview interface of taking pictures, Take pictures described in acquisition in preview image, the target image pixel coordinate corresponding with described target screen pixel coordinate;
Photo-object corresponding for the described described target image pixel coordinate taken pictures in preview image is defined as what user selected Demarcate moving object.
Method the most according to claim 3, it is characterised in that in the depth map generated under preview state of taking pictures, obtains The image information demarcating moving object includes:
Obtain the target image pixel corresponding with described target image pixel coordinate;
According to depth of view information corresponding with described target image pixel in depth map, determine that described demarcation moving object arrives and take the photograph As the distance of taking pictures of head mirror head, wherein, described depth of view information includes subject that image slices vegetarian refreshments associates and described shooting Range information between head mirror head;
By in described depth map, range information and the described difference taken pictures between distance meet the image pixel setting threshold condition Point and described target image pixel collect in object pixel is grouped;
In being grouped by described object pixel, image pixel coordinates continuous print image slices vegetarian refreshments is identified as described demarcation moving object Image information.
Method the most according to claim 1, it is characterised in that described base image is divided into moving object region and base Plinth region includes:
The demarcation pixel coordinate corresponding with described demarcation moving object is searched, as moving object district in described base image Territory;
By in described base image, the pixel corresponding with described demarcation pixel coordinate replaces with the figure after blank pixel point Picture, based on region.
Method the most according to claim 5, it is characterised in that by the moving object region in successive image and base image Base area merge, include updating successive image:
An image is obtained as currently processed image in successive image;
Obtain the pending pixel under the object pixel coordinate in described currently processed image successively, if described pending picture Vegetarian refreshments is not belonging to the pixel of described demarcation moving object, then obtain in described base image under described object pixel coordinate Basic pixel point;
If described basic pixel point is blank pixel point, then keep described pending pixel;Otherwise, described basis picture is used The described pending pixel in described currently processed image replaced by vegetarian refreshments;
Return the operation performing to obtain the pending pixel under the object pixel coordinate in described currently processed image successively, directly To the process completed pixels whole in described currently processed image;
In successive image, one image of acquisition is as currently processed image, until completing whole described subsequent figure to return execution The process of picture.
Method the most according to claim 1, it is characterised in that the depth map generated under preview state of taking pictures includes:
Carried out taking pictures preview by dual camera, to obtain depth map, and present, in preview interface of taking pictures, preview image of taking pictures.
Method the most according to claim 1, it is characterised in that by the moving object region in successive image and foundation drawing The base area of picture merges, and after updating successive image, also includes:
All images is packaged as setting the packaging file of animated format, to generate local dynamic station motion picture.
Method the most according to claim 8, it is characterised in that described setting animated format includes: graphic interchange format.
Method the most according to claim 1, it is characterised in that by the moving object region in successive image and basis The base area of image merges, and after updating successive image, also includes:
According to setting coding rule, all images is carried out Video coding, to generate local dynamic station video file.
11. 1 kinds of picture processing devices, it is characterised in that including:
Image information acquisition module, in the depth map generated under preview state of taking pictures, obtains the figure demarcating moving object As information;
Demarcate object identification module, for the image information according to described demarcation moving object, in the base image of user's shooting Middle identification described demarcation moving object;
Base image divides module, for described base image is divided into moving object region and base area;
Successive image identification module, for the image information according to described demarcation moving object, at the successive image of user's shooting Middle identification described demarcation moving object;
Merge module, for being merged with the base area of base image in the moving object region in successive image, after updating Continuous image.
12. devices according to claim 11, it is characterised in that also include:
Demarcating object acquisition module, be used under preview state of taking pictures takes pictures in preview interface, obtains the demarcation that user selects Moving object, wherein, described in the preview image of taking pictures of display in preview interface of taking pictures corresponding with depth map.
13. devices according to claim 12, it is characterised in that described demarcation object acquisition module includes:
Screen coordinate acquiring unit, for selecting setting screen position in preview interface of taking pictures according to user, obtains and institute State the target screen pixel coordinate that setting screen position is corresponding;
Image coordinate acquiring unit, for take pictures described in the basis screen resolution of preview interface and the image of preview image of taking pictures Corresponding relation between resolution, takes pictures in preview image described in acquisition, the target corresponding with described target screen pixel coordinate Image pixel coordinates;
Demarcate object and determine unit, for by described described corresponding the taking pictures of target image pixel coordinate taken pictures in preview image Object is defined as the demarcation moving object that user selects.
14. devices according to claim 13, it is characterised in that described image information acquisition module includes:
Image slices vegetarian refreshments acquiring unit, for obtaining the target image pixel corresponding with described target image pixel coordinate;
Take pictures distance determining unit, for according to depth of view information corresponding with described target image pixel in depth map, determine Described demarcation moving object arrives the distance of taking pictures of cam lens, and wherein, described depth of view information includes that image slices vegetarian refreshments closes Range information between subject and the described cam lens of connection;
Grouped element, for by described depth map, range information and the described difference taken pictures between distance meet setting threshold value The image slices vegetarian refreshments of condition and described target image pixel collect in object pixel is grouped;
Image information determines unit, image pixel coordinates continuous print image slices vegetarian refreshments identification in being grouped by described object pixel Image information for described demarcation moving object.
15. devices according to claim 11, it is characterised in that described base image divides module and includes:
Moving region determines unit, for searching the demarcation pixel corresponding with described demarcation moving object in described base image Point coordinates, as moving object region;
Base area determines unit, and for by described base image, the pixel corresponding with described demarcation pixel coordinate replaces Be changed to the image after blank pixel point, based on region.
16. devices according to claim 15, it is characterised in that described merging module includes:
Process image acquisition unit, for obtaining an image in successive image as currently processed image;
Basic pixel point acquiring unit, pending for obtain under the object pixel coordinate in described currently processed image successively Pixel, if described pending pixel is not belonging to the pixel of described demarcation moving object, then in described base image Obtain the basic pixel point under described object pixel coordinate;
Blank pixel point judging unit, if being blank pixel point for described basic pixel point, then keeps described pending picture Vegetarian refreshments;Otherwise, described basic pixel point is used to replace the described pending pixel in described currently processed image;
First returns unit, obtains treating under the object pixel coordinate in described currently processed image successively locate for returning execution The operation of reason pixel, until completing the process to pixels whole in described currently processed image;
Second returns unit, is used for returning execution and obtains an image in successive image as currently processed image, until complete The process of paired whole described successive image.
17. devices according to claim 11, it is characterised in that described image information acquisition module includes:
Depth map acquiring unit, for carrying out taking pictures preview by dual camera, to obtain depth map, and in preview interface of taking pictures In present preview image of taking pictures;
Information acquisition unit, in described depth map, obtains the image information demarcating moving object.
18. devices according to claim 11, it is characterised in that also include:
Packetization module, for being packaged as setting the packaging file of animated format, to generate local dynamic station animation figure by all images Sheet.
19. devices according to claim 18, it is characterised in that described setting animated format includes: graphic interchange format.
20. devices according to claim 11, it is characterised in that also include:
Coding module, for according to setting coding rule, carrying out Video coding to all images, to generate local dynamic station video literary composition Part.
CN201610620637.XA 2016-08-01 2016-08-01 Photo processing method and device Pending CN106251388A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610620637.XA CN106251388A (en) 2016-08-01 2016-08-01 Photo processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610620637.XA CN106251388A (en) 2016-08-01 2016-08-01 Photo processing method and device

Publications (1)

Publication Number Publication Date
CN106251388A true CN106251388A (en) 2016-12-21

Family

ID=57606672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610620637.XA Pending CN106251388A (en) 2016-08-01 2016-08-01 Photo processing method and device

Country Status (1)

Country Link
CN (1) CN106251388A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991162A (en) * 2017-03-22 2017-07-28 未来电视有限公司 A kind of implementation method of the animation effect of saving Internet resources on webpage
CN107657638A (en) * 2017-10-30 2018-02-02 努比亚技术有限公司 A kind of image processing method, device and computer-readable recording medium
CN107835381A (en) * 2017-10-17 2018-03-23 浙江大华技术股份有限公司 A kind of generation is dynamic to call the roll of the contestants in athletic events as the method and device of preview graph

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0441380B1 (en) * 1990-02-08 1996-09-11 Canon Kabushiki Kaisha Image pick-up device
CN101459857A (en) * 2007-12-10 2009-06-17 深圳华为通信技术有限公司 Communication terminal and information system
CN101739686A (en) * 2009-02-11 2010-06-16 北京智安邦科技有限公司 Moving object tracking method and system thereof
CN104036483A (en) * 2013-03-06 2014-09-10 北京三星通信技术研究有限公司 Image processing system and image processing method
CN104159033A (en) * 2014-08-21 2014-11-19 深圳市中兴移动通信有限公司 Method and device of optimizing shooting effect
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, apparatus and terminal
CN105550999A (en) * 2015-12-09 2016-05-04 西安邮电大学 Video image enhancement processing method based on background reuse

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0441380B1 (en) * 1990-02-08 1996-09-11 Canon Kabushiki Kaisha Image pick-up device
CN101459857A (en) * 2007-12-10 2009-06-17 深圳华为通信技术有限公司 Communication terminal and information system
CN101739686A (en) * 2009-02-11 2010-06-16 北京智安邦科技有限公司 Moving object tracking method and system thereof
CN104036483A (en) * 2013-03-06 2014-09-10 北京三星通信技术研究有限公司 Image processing system and image processing method
CN104159033A (en) * 2014-08-21 2014-11-19 深圳市中兴移动通信有限公司 Method and device of optimizing shooting effect
CN105100615A (en) * 2015-07-24 2015-11-25 青岛海信移动通信技术股份有限公司 Image preview method, apparatus and terminal
CN105550999A (en) * 2015-12-09 2016-05-04 西安邮电大学 Video image enhancement processing method based on background reuse

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991162A (en) * 2017-03-22 2017-07-28 未来电视有限公司 A kind of implementation method of the animation effect of saving Internet resources on webpage
CN107835381A (en) * 2017-10-17 2018-03-23 浙江大华技术股份有限公司 A kind of generation is dynamic to call the roll of the contestants in athletic events as the method and device of preview graph
CN107657638A (en) * 2017-10-30 2018-02-02 努比亚技术有限公司 A kind of image processing method, device and computer-readable recording medium

Similar Documents

Publication Publication Date Title
JP6730690B2 (en) Dynamic generation of scene images based on the removal of unwanted objects present in the scene
EP3104332B1 (en) Digital image manipulation
JP5985910B2 (en) Multi-view video processing method and apparatus using hall rendering
KR20110103409A (en) Image segmentation
CN106663322B (en) The method and apparatus of feature in image for identification
CN105741231B (en) The skin makeup treating method and apparatus of image
CN110443140B (en) Text positioning method, device, computer equipment and storage medium
CN106161945A (en) Take pictures treating method and apparatus
JP2003058894A (en) Method and device for segmenting pixeled image
CN105095842A (en) Method and device for identifying information of bill
CN105825494A (en) Image processing method and mobile terminal
US7054482B2 (en) Smart masking tool for image processing
CN107547803B (en) Video segmentation result edge optimization processing method and device and computing equipment
CN106251388A (en) Photo processing method and device
CN109064525A (en) A kind of picture format conversion method, device, equipment and storage medium
CN108154471A (en) A kind of method and apparatus for remote sensing image splicing
CN111149101B (en) Target pattern searching method and computer readable storage medium
CN112529808A (en) Image color adjusting method, device, equipment and medium
US20120169759A1 (en) Method and apparatus for creating a live artistic sketch of an image
CN109445569A (en) Information processing method, device, equipment and readable storage medium storing program for executing based on AR
CN112419470A (en) Color rendering method, device, equipment and medium for target area
CN112634314A (en) Target image acquisition method and device, electronic equipment and storage medium
CN110751668A (en) Image processing method, device, terminal, electronic equipment and readable storage medium
JP2014099055A (en) Detector, detection method, and program
CN116342519A (en) Image processing method based on machine learning

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: 20161221

WD01 Invention patent application deemed withdrawn after publication