WO2014187265A1 - 一种照片拍摄处理方法、设备和计算机存储介质 - Google Patents

一种照片拍摄处理方法、设备和计算机存储介质 Download PDF

Info

Publication number
WO2014187265A1
WO2014187265A1 PCT/CN2014/077600 CN2014077600W WO2014187265A1 WO 2014187265 A1 WO2014187265 A1 WO 2014187265A1 CN 2014077600 W CN2014077600 W CN 2014077600W WO 2014187265 A1 WO2014187265 A1 WO 2014187265A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
area
repaired
block
boundary
Prior art date
Application number
PCT/CN2014/077600
Other languages
English (en)
French (fr)
Inventor
周凡
张琦
郝伟伟
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to US15/106,068 priority Critical patent/US9992408B2/en
Publication of WO2014187265A1 publication Critical patent/WO2014187265A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30204Marker
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders

Definitions

  • the present invention relates to the field of electronic imaging technology, and in particular, to a photo shooting processing method, a device, and a computer storage medium. Background technique
  • the methods for solving this problem are usually:
  • the photos taken after the shooting are processed by the photo shop (PS, PhotoShop) software, but there are many disadvantages such as cumbersome processes, delays, and no operation by most users.
  • Another method is to use a charge-coupled device (CCD) to perform contour analysis, divide the first shooting area and the second shooting area, and focus on the first image; then, in the unphotographed area again.
  • CCD charge-coupled device
  • Taking a picture to obtain a second image the first shooting area or the second shooting area is removed by overlapping stitching of the two images, thereby removing obstacles in the first shooting area or the second shooting area.
  • the method requires multiple shots, which is cumbersome to operate; and, in general, it is difficult to find a usable non-photographing area, which makes the method difficult. Implementation. Summary of the invention
  • embodiments of the present invention are expected to provide a photo shooting processing method, device, and computer storage medium, which are capable of removing a plurality of obstacles during a photographing process. Moreover, the operation is convenient and the implementation is simple.
  • an embodiment of the present invention provides a photo shooting processing method, where the method includes:
  • the object to be removed in the selected framing image is sequentially removed according to the preset order to obtain a captured image.
  • an embodiment of the present invention provides a photo shooting processing apparatus, including: a receiving unit, configured to receive, according to a preset order, a selection instruction for at least one object to be removed in the framing image;
  • the acquiring unit is configured to obtain the selected framing image
  • the captured image obtaining unit is configured to, after the receiving unit receives a shooting instruction, sequentially remove the object to be removed in the selected framing image according to the preset order to obtain a captured image.
  • an embodiment of the present invention provides a computer storage medium in which a computer program is stored, which is used to execute the photo photographing processing method described above.
  • An embodiment of the present invention provides a photo shooting processing method, device, and computer storage medium.
  • the object to be removed is selected according to a preset order in the framing image; and after receiving a shooting instruction, sequentially according to the preset order
  • the object to be removed in the selected framing image is removed to obtain a captured image.
  • multiple obstacles can be removed during one photographing process, and the operation is convenient and the implementation is simple.
  • FIG. 1 is a schematic flowchart of a photo shooting processing method according to an embodiment of the present invention
  • FIG. 2A is a schematic diagram of a viewfinder image according to an embodiment of the present invention
  • 2B is a schematic diagram of a selected framing image according to an embodiment of the present invention
  • FIG. 2C is a schematic diagram of a first image after dividing a region according to an embodiment of the present invention
  • 2E is a schematic diagram of a third image according to an embodiment of the present invention.
  • 2F is a schematic diagram of a captured image according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of obtaining a captured image according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a repair process according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a photo shooting processing device according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of another photo shooting processing device according to an embodiment of the present invention. detailed description
  • a photo shooting processing method can be applied to a terminal device having a digital shooting function, such as a smart phone, a digital camera, a tablet computer, and the like.
  • a digital shooting function such as a smart phone, a digital camera, a tablet computer, and the like.
  • the method is described by taking a digital camera as an example. It should be noted that the method is not applicable to a digital camera.
  • the method can include:
  • S101 Receive a selection instruction for at least one object to be removed in the framing image according to a preset order, and acquire the selected framing image;
  • the black solid line frame can be regarded as a view image, which includes four objects, the object numbers are eight, B, and 0, respectively, and the object eight, object B, and object C are three.
  • the user can follow the preset order in the framing image
  • the object to be removed is selected, and the digital camera can receive a selection instruction issued by the user for at least one object to be removed in the framing image according to a preset order, and the at least one object to be removed can be selected according to the preset order. Marking is performed separately, so that the selected framing image is obtained, wherein the marked area is not smaller than the corresponding area of the object to be removed.
  • the selection box is used as a mark to select objects to be removed
  • each selection box respectively corresponds to an object to be removed
  • the selection frame may be labeled according to the preset order. That is, the corresponding object to be removed is labeled to represent the preset order, as shown in FIG. 2B, and the dotted line box around the object to be removed represents the selection box corresponding to the object to be removed, in this implementation.
  • the label of each selection box may be consistent with the number of the object to be removed corresponding to itself to indicate such a correspondence.
  • S102 After receiving a shooting instruction, sequentially removing the object to be removed in the selected framing image according to the preset sequence to obtain a captured image.
  • the selected framing image may be saved to a data buffer area, so that the selected framing image can be subsequently processed in the data buffer area, in this embodiment.
  • the image as shown in FIG. 2B can be saved in the data buffer for subsequent processing of the saved image.
  • the at least one object to be removed in the framing image is sequentially removed according to the preset sequence to obtain a captured image.
  • the specific process may be as shown in FIG. 3, and the following steps are included:
  • the image shown in FIG. 2B saved in the data buffer area may be used as the first image.
  • S302 Select, in the first image, an area of the mark corresponding to the first object to be removed according to the preset order, and set the first object to be removed in the marked area by a binary segmentation method. Dividing into a first area, and removing the area other than the first area from the first image The domain is divided into a second area;
  • the preset sequence may be an order of numbers of objects to be removed as shown in FIG. 2B. Therefore, in the first image as shown in FIG. 2B, the selection in the box A may be The object to be removed is the first object to be removed, and the first object to be removed is divided into the first area, and the area except the first object to be removed is divided into the second area, as shown in FIG. 2C. ;
  • the binary segmentation method in this embodiment can implement the segmentation algorithm of the image segmentation technology to implement the segmentation of the first region, and the specific process based on the image segmentation technology is a person skilled in the art. The usual means will not be repeated here.
  • S303 The first area in the first image is removed to obtain a second image.
  • the first area in the image as shown in FIG. 2C may be moved.
  • the second image is obtained as shown in FIG. 2D. It can be understood that after the first region is removed, the first region after the removal in the second image is sure to cause image loss. Therefore, the image is lost.
  • the removed first region is also the region to be repaired in the subsequent step, and in the second image, the removed first region can be represented by a shadow.
  • S304 Perform repairing the first area after the second image is removed to obtain a third image.
  • the removed first region may be repaired to obtain a third image as shown in FIG. 2E.
  • the third image the first area has been repaired in the afternoon.
  • the repair process described in step S304 may include the following steps: S3041: using the first area after the second image is removed as the area to be repaired, and the second image Removing a region other than the first region as a known region;
  • each image block is a preset size, and it can be understood that, since each image block is on the boundary of the area to be repaired, Each of the image blocks is located in the area to be repaired a subset of images and a subset of images each in the known region;
  • S3043 Calculate the priority of each image block, and take the image block with the highest priority as the block to be repaired;
  • step S3044 may specifically include:
  • the square and the smallest matching block of the difference between the color values of the pixel points corresponding to the block to be repaired in the known area are taken as the optimal matching block.
  • the closest to the block to be repaired is selected.
  • a matching block is used as the optimal matching block.
  • S3045 Filling a subset of the image corresponding to the to-be-repaired block in the optimal matching block to the image subset of the to-be-repaired block, and completing the repairing of the to-be-repaired block;
  • step S3046 The boundary of the area to be repaired is updated, and it is determined whether the boundary of the area to be repaired is an empty set. If yes, step S3047 is performed; otherwise, step S3048 is performed;
  • the block to be repaired belongs to the known area and does not belong to the area to be repaired. Therefore, the area to be repaired and its boundary need to be updated.
  • step S3048 When the boundary of the updated to-be-repaired area is not an empty set, step S3042 is performed on the updated boundary of the to-be-repaired area.
  • the third image at this time is a captured image.
  • the third image shown in FIG. 2E further includes the object B to be removed and the object to be removed.
  • the object C is removed, and therefore, the third image needs to be taken as the new first image, and the removal processing operation is repeatedly performed from step S302 to sequentially remove the object to be removed B and the object to be removed C until the end.
  • the captured image is obtained without the object to be removed in the obtained third image, as shown in FIG. 2F.
  • An embodiment of the present invention provides a photo shooting processing method, which selects an object to be removed according to a preset order in a framing image; and after receiving a shooting instruction, sequentially selects the selected one according to the preset order.
  • the object to be removed in the framing image is removed to obtain a captured image; thus, multiple obstacles can be removed during one photographing process, and the operation is convenient and the implementation is simple.
  • a photo shooting processing device 50 according to an embodiment of the present invention can be applied to a terminal device having a digital shooting function, such as a smart phone, a digital camera, a tablet computer, etc., for clarity of description.
  • a digital shooting function such as a smart phone, a digital camera, a tablet computer, etc.
  • the receiving unit 501 may be a storage device, such as a memory, a programmable logic gate array, or the like, configured to receive a selection instruction for at least one object to be removed in the framing image according to a preset order, and receive a shooting instruction;
  • the obtaining unit 502 is configured to obtain the selected framing image
  • the captured image obtaining unit 503 may be a processor, such as a CPU, an image processor, or the like, configured to sequentially sequentially select the selected framing image according to the preset order after receiving the shooting instruction by the receiving unit 501.
  • the object to be removed is removed for removal, and a captured image is obtained.
  • an obstacle that is not required in the photo usually appears in the view image in the finder frame, and these obstacles are called in the embodiment of the present invention.
  • the number of objects to be removed in the framing image may be more than one.
  • object A, object B, and object C can be set as three objects to be removed.
  • the user may select the object to be removed in the framing image according to the preset order, and the receiving unit 501 may receive the selection instruction of the at least one object to be removed in the framing image sent by the user in a preset order, and acquire the unit.
  • the at least one object to be removed may be marked in the preset order to obtain the selected framing image, wherein the marked area is not smaller than the corresponding area of the object to be removed.
  • the obtaining unit 502 may select the object to be removed by using the selection box as a mark, each selection box respectively corresponding to an object to be removed, and the selection box may be in the preset order.
  • Labeling that is, labeling corresponding objects to be removed, for indicating the preset order, as shown in FIG. 2B, a dotted line box around the object to be removed represents a selection box corresponding to the object to be removed,
  • the label of each selection box may be consistent with the number of the object to be removed corresponding to itself to represent such a correspondence.
  • the captured image obtaining unit 503 may The selected framing image is saved to a data buffer area, so that the selected framing image can be processed in the data buffer area.
  • the captured image obtaining unit 503 can be as shown in FIG. 2B.
  • the image is saved in the data buffer for subsequent processing of the saved image.
  • the captured image obtaining unit 503 may include:
  • the image generating module 5031 is configured to use the selected framing image as the first image.
  • the image generating module 5031 may use the image shown in FIG. 2B saved in the data buffer area as the first image. An image.
  • the area dividing module 5032 is configured to select, in the first image obtained by the image generating module 5031, the area of the mark corresponding to the first object to be removed in a preset order, and set the first to be in the marked area by the binary segmentation method.
  • the removed object is divided into the first area, and the area other than the first area in the first image is divided into the second area;
  • the preset sequence may be an order of numbers of objects to be removed as shown in FIG. 2B. Therefore, in the first image as shown in FIG. 2B, the area dividing module 5032 may The object A to be removed in the frame A is selected as the first object to be removed, and the first object to be removed is divided into the first area, and the area except the first object to be removed is divided into the second area. See Figure 2C;
  • the binary segmentation method in this embodiment may be an interactive segmentation algorithm based on a picture segmentation technology to implement partitioning of the first region, and a specific process based on the image segmentation technique is a conventional method used by those skilled in the art. No longer.
  • the removing module 5033 is configured to remove the first area divided by the area dividing module 5032 in the first image to obtain a second image;
  • the removing module 5033 may remove the first area in the image as shown in FIG. 2C, thereby obtaining a second image as shown in FIG. 2D, understandably, removing After the module 5033 removes the first area, the removed first area in the second image is positive The image loss may occur. Therefore, the removed first region is the region to be repaired in the subsequent step, and in the second image, the removed first region may be shaded.
  • the repairing module 5034 is configured to repair the removed first region of the second image obtained by the module 5033 to obtain a third image
  • repair module 5034 can be specifically configured as:
  • Step D1 using the first area after the second image is removed as an area to be repaired, and removing an area other than the first area from the second image as a known area;
  • Step D2 Obtain each image block centered on each point on the boundary of the area to be repaired; wherein each image block is a preset size, and it can be understood that, since each image block is on the boundary of the area to be repaired, Therefore, each image block is composed of a subset of images each in the area to be repaired and a subset of images each in the known area;
  • Step D3 calculating a priority of each image block, and taking the image block with the highest priority as the block to be repaired;
  • Step D4 Search for the optimal matching block of the block to be repaired in the known area
  • the step may specifically include: searching for a matching block in a known area; matching a minimum of a sum of squares of differences between color values of the pixel points corresponding to the block to be repaired in the known area
  • the block acts as the optimal matching block.
  • the closest to the block to be repaired is selected.
  • a matching block is the best matching block.
  • Step D5 Filling a subset of the image corresponding to the to-be-repaired block in the optimal matching block to the image subset of the to-be-repaired block, and completing repairing the to-be-repaired block;
  • Step D6 Update a boundary of the area to be repaired, and when the boundary of the updated area to be repaired is an empty set, obtain the third image; when the boundary of the updated area to be repaired is not an empty set At the time, step D2 is performed on the updated boundary of the area to be repaired. Further, after the repair of the to-be-repaired block is completed, the block to be repaired belongs to the known area and no longer belongs to the area to be repaired.
  • the repairing module 5034 is required to update the area to be repaired and its boundary; and, when the updated area to be repaired When the boundary is an empty set, that is, when there is no point on the boundary of the updated area to be repaired, it can be understood that, at this time, the entire area to be repaired has been repaired, thereby obtaining a third image;
  • the boundary of the updated area to be repaired is not an empty set, that is, when there is a point on the boundary of the updated area to be repaired, it can be understood that, at this time, the entire area to be repaired is not repaired.
  • the repair module 5034 needs to return to the step D2 to continue processing the updated boundary of the area to be repaired until the updated boundary of the area to be repaired is an empty determination module 5035 configured to determine the third image obtained by the repair module 5034. Whether to include the object to be removed;
  • the image generation module 5031 is further configured to: when the determining module 5035 determines that the object to be removed is not included in the third image, using the third image as the captured image; when the determining module 5035 determines that the object to be removed is included in the third image, The third image is generated as a new first image and the new first image is transmitted to the region partitioning module 5032.
  • the third image at this time is a captured image
  • the third image shown in FIG. 2E further includes the object to be removed and the object to be removed. C, therefore, the image generation module 5031 needs to take the third image as a new first image, and the transmission to the region dividing module 5032 removes the object B to be removed until there is no object to be removed in the finally obtained third image. , you can get the captured image, as shown in Figure 2F.
  • An embodiment of the present invention provides a photo shooting processing device 60, which selects an object to be removed according to a preset order in a framing image; and after receiving a shooting instruction, according to the pre-preparation
  • the image to be removed in the selected framing image is sequentially removed to obtain a captured image.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware aspects. Moreover, the invention can take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • an embodiment of the present invention further provides a computer storage medium, wherein a computer program is stored, and the computer program is used to execute a photo shooting processing method according to an embodiment of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Studio Devices (AREA)

Abstract

本发明实施例公开了一种照片拍摄处理方法、设备和计算机存储介质,该方法包括:按照预设顺序接收对取景图像中至少一个待移除对象的选择指令,并获取选择后的取景图像;在接收到一次拍摄指令后,按照所述预设顺序依次将所述选择后的取景图像中的所述待移除对象进行移除,获得拍摄图像。

Description

一种照片拍摄处理方法、 设备和计算机存储介质 技术领域
本发明涉及电子成像技术领域, 尤其涉及一种照片拍摄处理方法、 设 备和计算机存储介质。 背景技术
近年来, 高分辨率、 高像素的手机、 相机得到了广泛应用, 满足了用 户在日常生活中拍摄照片的要求。 但在一些人满为患的拍照景点, 所拍摄 的照片中经常会出现一些陌生人或者障碍物, 严重影响照片的观赏度和景 色的还原度。
目前解决这个问题的方法通常都是: 将拍摄后的照片在后期通过照片 商店 (PS, PhotoShop )软件进行处理, 但这样存在工序繁瑣、 耽误事, 多 数用户不会操作等诸多缺点。
还有一种方法则是利用电荷耦合元件 (CCD, Charge-coupled Device ) 完成轮廓的分析, 划分出第一拍摄区域和第二拍摄区域, 对焦拍照得到第 一图像; 然后, 在未拍摄区域进行再次拍照得到第二图像, 通过对两幅图 像的重叠拼接合成实现第一拍摄区域或者第二拍摄区域的移除, 从而移除 第一拍摄区域或者第二拍摄区域中的障碍物。 但是, 在繁杂的场景下且需 要快速移除多个障碍物时, 该方法需要进行多次拍摄, 操作起来比较繁瑣; 并且, 一般情况下很难找到可用的非拍摄区域, 导致该方法很难实施。 发明内容
为解决现有存在的技术问题, 本发明实施例期望提供一种照片拍摄处 理方法、 设备和计算机存储介质, 能够在一次拍照过程中移除多个障碍物, 而且操作方便, 实施简单。
本发明的技术方案是这样实现的:
第一方面, 本发明实施例提供了一种照片拍摄处理方法, 所述方法包 括:
按照预设顺序接收对取景图像中至少一个待移除对象的选择指令, 并 获取选择后的取景图像;
在接收到一次拍摄指令后, 按照所述预设顺序依次将所述选择后的取 景图像中的所述待移除对象进行移除, 获得拍摄图像。
第二方面, 本发明实施例提供了一种照片拍摄处理设备, 包括: 接收单元, 配置为按照预设顺序接收对取景图像中至少一个待移除对 象的选择指令;
获取单元, 配置为获取选择后的取景图像;
拍摄图像获得单元, 配置为在所述接收单元接收到一次拍摄指令后, 按照所述预设顺序依次将所述选择后的取景图像中的所述待移除对象进行 移除, 获得拍摄图像。
第三方面, 本发明实施例提供了一种计算机存储介质, 其中存储有计 算机程序, 该计算机程序用于执行上述的照片拍摄处理方法。
本发明实施例提供了一种照片拍摄处理方法、 设备和计算机存储介质, 通过在取景图像中按照预设顺序选取待移除对象; 并在接收到一次拍摄指 令后, 按照所述预设顺序依次将所述选择后的取景图像中的待移除对象进 行移除, 获得拍摄图像。 如此, 能实现在一次拍照过程中移除多个障碍物, 而且操作方便, 实施简单。 附图说明
图 1为本发明实施例提供的一种照片拍摄处理方法的流程示意图; 图 2A为本发明实施例提供的一种取景图像示意图; 图 2B为本发明实施例提供的一种选择后的取景图像示意图; 图 2C为本发明实施例提供的一种划分区域后的第一图像示意图; 图 2D为本发明实施例提供的一种第二图像的示意图;
图 2E为本发明实施例提供的一种第三图像的示意图;
图 2F为本发明实施例提供的一种拍摄图像的示意图;
图 3为本发明实施例提供的一种获得拍摄图像的流程示意图; 图 4为本发明实施例提供的一种修复过程的流程示意图;
图 5为本发明实施例提供的一种照片拍摄处理设备的结构示意图; 图 6为本发明实施例提供的另一种照片拍摄处理设备的结构示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述。
参见图 1 所示, 为本发明实施例提供的一种照片拍摄处理方法, 可以 应用于具有数码拍摄功能的终端设备上, 比如: 智能手机、 数码相机、 平 板电脑等。 为了清楚的说明本发明实施例的技术方案, 以数码相机为例对 该方法进行说明, 需要注意的是, 并不表示本方法仅适用于数码相机。 该 方法可以包括:
S101 : 按照预设顺序接收对取景图像中至少一个待移除对象的选择指 令, 并获取选择后的取景图像;
示例性的, 当用户在使用数码相机进行拍摄的时候, 取景框中的取景 图像中通常会出现照片中不需要的障碍物, 这些障碍物在本发明实施例中 称为待移除对象, 可以理解的, 取景图像中的待移除对象的数目可能不止 一个。 如图 2A所示的图像, 黑色实线框内可以看成是一个取景图像, 其中 包括四个对象, 对象编号分别是八、 B、 和0, 假设对象八、 对象 B和对 象 C为三个待移除对象, 那么, 用户可以按照预设的顺序对取景图像中的 待移除对象进行选择, 而数码相机则可以按照预设顺序接收用户发出的对 取景图像中至少一个待移除对象的选择指令, 并且可以按照该预设顺序对 所述至少一个待移除对象分别进行标记, 从而得到选择后的取景图像, 其 中, 标记的区域不小于对应的待移除对象的区域。
在本实施例中, 优选的, 可以将选择框作为标记来框选出待移除对象, 每个选择框分别对应一个待移除对象, 并且可以按照所述预设顺序对选择 框进行标号, 也就是将对应的待移除对象进行标号, 用于表示所述预设顺 序, 如图 2B所示的图像, 待移除对象周围的虚线框表示待移除对象对应的 选择框, 在本实施例中, 各选择框的标号可以与自身对应的待移除对象的 编号一致来表示这种对应关系。
S102: 在接收到一次拍摄指令后, 按照所述预设顺序依次将所述选择 后的取景图像中的所述待移除对象进行移除, 获得拍摄图像。
示例性的, 在接收到一次拍摄指令后, 可以将选择后的取景图像保存 至一个数据缓存区, 以便能够在该数据缓存区内对选择后的取景图像进行 后续的处理, 在本实施例中, 可以将如图 2B所示的图像保存在数据缓存区 中, 以便后续对保存的图像进行处理。
示例性的, 按照所述预设顺序依次将所述取景图像中的所述至少一个 待移除对象进行移除, 获得拍摄图像, 具体过程可以如图 3 所示, 包括如 下步骤:
S301 : 将所述选择后的取景图像作为第一图像;
可选的, 在本实施例中, 可以将保存在数据缓存区内的如图 2B所示的 图像作为第一图像。
S302: 在所述第一图像中按照所述预设顺序选择第一待移除对象对应 的标记的区域, 并通过二元分割法将所述标记的区域中的所述第一待移除 对象划分为第一区域, 并且将所述第一图像中除去所述第一区域以外的区 域划分为第二区域;
可选的, 在本实施例中, 所述预设顺序可以是如图 2B中待移除对象的 编号顺序, 因此, 可以在如图 2B所示的第一图像中, 将选择框 A中的待移 除对象 A作为第一待移除对象, 并将该第一待移除对象划分为第一区域, 将除去第一待移除对象以外的区域划分为第二区域, 参见图 2C所示;
优选的, 本实施例中的二元分割法可以^^于图片分割 ( Graph cuts ) 技术的交互式分割算法来实现第一区域的划分, 而基于图片分割技术的具 体过程为本领域技术人员的惯用手段, 在此不再赘述。
S303: 将所述第一图像中的所述第一区域进行移除, 得到第二图像; 可选的, 在本实施例中, 可以将如图 2C所示的图像中的第一区域进行 移除, 从而得到如图 2D所示的第二图像, 可以理解的, 将第一区域进行移 除后, 第二图像中的移除后的第一区域肯定会发生图像损失的情况, 因此, 该移除后的第一区域也就是后续步骤中的待修复区域, 在第二图像中, 可 以用阴影来表示移除后的第一区域。
S304: 将所述第二图像中移除后的所述第一区域进行修复, 得到第三 图像;
可选的, 对于如图 2D所示的第二图像, 可以将移除后的第一区域进行 修复, 得到如图 2E所示的第三图像。 在第三图像中, 第一区域已经被修复 午。
详细的, 如图 4所示, 步骤 S304所述的修复过程可以包括以下步骤: S3041 : 将所述第二图像中移除后的所述第一区域作为待修复区域, 将 所述第二图像中除去所述第一区域以外的区域作为已知区域;
S3042: 获取所述待修复区域边界上的每一点为中心的各图像块; 其中, 所述各图像块为预设大小, 而且可以理解的, 由于各图像块处 于待修复区域的边界上, 因此所述各图像块均由各自处于所述待修复区域 的图像子集和各自处于所述已知区域的图像子集组成;
S3043 : 计算所述各图像块的优先权, 取优先权最大的图像块作为待修 复块;
S3044: 在所述已知区域中搜索待修复块的最优匹配块;
在本实施例中, 步骤 S3044具体可以包括:
搜索所述已知区域中的匹配块;
将所述已知区域中与所述待修复块对应像素点的颜色值之间的差的平 方和最小的匹配块作为最优匹配块。
进一步的, 当所述已知区域中与所述待修复块对应像素点的颜色值之 间的差的平方和最小的匹配块的个数大于一个的时候, 选取距离所述待修 复块最近的一个匹配块作为最优匹配块。
S3045: 将所述最优匹配块中与所述待修复块对应的图像子集填充至所 述待修复块的图像子集, 完成所述待修复块的修复;
S3046: 更新所述待修复区域的边界, 确定更新后的待修复区域的边界 是否为空集, 如果是, 执行步骤 S3047 ; 否则, 执行步骤 S3048;
需要说明的是, 待修复块修复完成后, 待修复块就属于已知区域而不 再属于待修复区域了, 因此, 需要更新待修复区域及其边界。
S3047: 当更新后的待修复区域的边界为空集时, 得到所述第三图像, 结束当前处理流程。
需要说明的是, 当更新后的待修复区域的边界为空集时, 也就是说, 更新后的待修复区域的边界上没有点的时候, 可以理解的, 此时, 整个待 修复区域都已经修复完毕, 从而得到的第三图像。
S3048: 当更新后的待修复区域的边界不为空集时, 对所述更新后的待 修复区域边界执行步骤 S3042。
需要说明的是, 当更新后的待修复区域的边界不为空集时, 也就是说, 更新后的待修复区域的边界上还有点的时候, 可以理解的, 此时, 整个待 修复区域并没有修复完毕, 因此, 需要返回步骤 S3042 , 继续对更新后的待 修复区域的边界进行处理, 直至更新后的待修复区域的边界为空集。
S305: 确定第三图像是否包括待移除对象, 如果是, 执行步骤 S307; 否则, 执行步骤 S306;
S306: 当确定所述第三图像中不包括所述待移除对象时, 将所述第三 图像作为拍摄图像, 结束当前处理流程;
需要说明的是, 如果取景图像中的待移除对象个数为一个, 那么, 第 三图像中就没有待移除对象, 因此, 此时的第三图像就为拍摄图像。
S307 : 当确定所述第三图像中包括所述待移除对象时, 将所述第三图 像作为新的第一图像, 返回执行步骤 S302。
需要说明的是, 如果取景图像中的待移除对象个数不止一个, 如本实 施例中的图 2A所示, 那么, 图 2E所示的第三图像中还包括待移除对象 B 和待移除对象 C, 因此, 需要将第三图像作为新的第一图像, 并且从步骤 S302开始重复执行移除处理操作来依次将待移除对象 B、 待移除对象 C进 行移除, 直至最后得到的第三图像中没有待移除对象为止, 就可以得出拍 摄图像, 如图 2F所示。
本发明实施例提供了一种照片拍摄处理方法, 通过在取景图像中按照 预设顺序选取待移除对象; 并在接收到一次拍摄指令后, 按照所述预设顺 序依次将所述选择后的取景图像中的所述待移除对象进行移除, 获得拍摄 图像; 如此, 能实现在一次拍照过程中移除多个障碍物, 而且操作方便, 实施简单。 参见图 5, 为本发明实施例提供的一种照片拍摄处理设备 50, 该设备 可以应用在具有数码拍摄功能的终端设备上, 比如: 智能手机、 数码相机、 平板电脑等, 为了清楚的说明本实施例的技术方案, 以数码相机为例对该 设备进行说明, 需要注意的是, 并不表示本设备仅适用于数码相机。 该设 备可以包括:
接收单元 501, 可以是存储设备, 如存储器、 可编程逻辑门阵列等, 配 置为按照预设顺序接收对取景图像中至少一个待移除对象的选择指令, 并 接收拍摄指令;
获取单元 502, 配置为获取选择后的取景图像;
拍摄图像获得单元 503, 可以是处理器, 如 CPU、 图像处理器等, 配 置为在接收单元 501接收到一次拍摄指令后, 按照所述预设顺序依次将所 述选择后的取景图像中的所述待移除对象进行移除, 获得拍摄图像。
示例性的, 当用户在使用包括照片拍摄处理设备 50的数码相机进行拍 摄的时候, 取景框中的取景图像中通常会出现照片中不需要的障碍物, 这 些障碍物在本发明实施例中称为待移除对象, 可以理解的, 取景图像中的 待移除对象的数目可能会不止一个。如图 2A所示的图像,可以设置对象 A、 对象 B和对象 C为三个待移除对象。 用户可以按照预设的顺序对取景图像 中的待移除对象进行选择, 而接收单元 501 则可以按照预设顺序接收用户 发出的对取景图像中至少一个待移除对象的选择指令, 并且获取单元 502 可以按照该预设顺序对所述至少一个待移除对象进行标记, 从而得到选择 后的取景图像, 其中, 标记的区域不小于对应的待移除对象的区域。
在本实施例中, 优选的, 获取单元 502可以将选择框作为标记来框选 出待移除对象, 每个选择框分别对应一个待移除对象, 并且可以按照所述 预设顺序对选择框进行标号, 也就是将对应的待移除对象进行标号, 用于 表示所述预设顺序, 如图 2B所示的图像, 待移除对象周围的虚线框表示待 移除对象对应的选择框, 在本实施例中, 各选择框的标号可以与自身对应 的待移除对象的编号一致来表示这种对应关系。
示例性的, 在接收到一次拍摄指令后, 拍摄图像获得单元 503 可以将 选择后的取景图像保存至一个数据缓存区, 以便能够在该数据缓存区内对 选择后的取景图像进行后续的处理,在本实施例中, 拍摄图像获得单元 503 可以将如图 2B所示的图像保存在数据缓存区中,以便后续对保存的图像进 行处理。
具体的, 如图 6所示, 拍摄图像获得单元 503可以包括:
图像生成模块 5031 , 配置为将选择后的取景图像作为第一图像; 可选的, 在本实施例中, 图像生成模块 5031可以将保存在数据缓存区 内的如图 2B所示的图像作为第一图像。
区域划分模块 5032 ,配置为对图像生成模块 5031得到的第一图像中按 照预设顺序选择第一待移除对象对应的标记的区域, 并通过二元分割法将 标记的区域中的第一待移除对象划分为第一区域, 并且将第一图像中除去 第一区域以外的区域划分为第二区域;
可选的, 在本实施例中, 所述预设顺序可以是如图 2B中待移除对象的 编号顺序, 因此, 可以在如图 2B所示的第一图像中, 区域划分模块 5032 可以将选择框 A中的待移除对象 A作为第一待移除对象, 并将该第一待移 除对象划分为第一区域, 将除去第一待移除对象以外的区域划分为第二区 域, 参见图 2C所示;
优选的, 本实施例中的二元分割法可以是基于图片分割技术的交互式 分割算法来实现第一区域的划分, 而基于图片分割技术的具体过程为本领 域技术人员的惯用手段, 在此不再赘述。
移除模块 5033 ,配置为将第一图像中的由区域划分模块 5032划分的第 一区域进行移除, 得到第二图像;
可选的, 在本实施例中, 移除模块 5033可以将如图 2C所示的图像中 的第一区域进行移除, 从而得到如图 2D所示的第二图像, 可以理解的, 移 除模块 5033将第一区域进行移除后, 第二图像中的移除后的第一区域肯定 会发生图像损失的情况, 因此, 该移除后的第一区域也就是后续步骤中的 待修复区域, 在第二图像中, 可以用阴影来表示移除后的第一区域。
修复模块 5034,配置为将移除模块 5033得到的第二图像中移除后的第 一区域进行修复得到第三图像;
可选的, 修复模块 5034具体可以配置为:
步骤 Dl、 将所述第二图像中移除后的所述第一区域作为待修复区域, 将所述第二图像中除去所述第一区域以外的区域作为已知区域;
步骤 D2、 获取所述待修复区域边界上的每一点为中心的各图像块; 其中, 所述各图像块为预设大小, 而且可以理解的, 由于各图像块处 于待修复区域的边界上, 因此, 各图像块均由各自处于所述待修复区域的 图像子集和各自处于所述已知区域的图像子集组成;
步骤 D3、 计算所述各图像块的优先权, 取优先权最大的图像块作为待 修复块;
步骤 D4、 在所述已知区域中搜索待修复块的最优匹配块;
在本实施例中, 该步骤具体可以包括: 搜索已知区域中的匹配块; 将 所述已知区域中与所述待修复块对应像素点的颜色值之间的差的平方和最 小的匹配块作为最优匹配块。
进一步的, 当所述已知区域中与所述待修复块对应像素点的颜色值之 间的差的平方和最小的匹配块的个数大于一个的时候, 选取距离所述待修 复块最近的一个匹配块为最优匹配块。
步骤 D5、 将所述最优匹配块中与所述待修复块对应的图像子集填充至 所述待修复块的图像子集, 完成所述待修复块的修复;
步骤 D6、 更新所述待修复区域的边界, 当所述更新后的待修复区域的 边界为空集时, 得到所述第三图像; 当所述更新后的待修复区域的边界不 为空集时, 对所述更新后的待修复区域边界执行步骤 D2。 进一步的, 待修复块修复完成后, 待修复块就属于已知区域而不再属 于待修复区域了, 因此, 需要修复模块 5034更新待修复区域及其边界; 而 且, 当更新后的待修复区域的边界为空集时, 也就是说, 当更新后的待修 复区域的边界上没有点的时候, 可以理解的, 此时, 整个待修复区域都已 经修复完毕, 从而得到的第三图像;
进一步的, 当更新后的待修复区域的边界不为空集时, 也就是说, 更 新后的待修复区域的边界上还有点的时候, 可以理解的, 此时, 整个待修 复区域并没有修复完毕, 因此修复模块 5034需要返回步骤 D2, 继续对更 新后的待修复区域的边界进行处理, 直至更新后的待修复区域的边界为空 确定模块 5035 ,配置为确定修复模块 5034得到的第三图像中是否包括 待移除对象;
图像生成模块 5031还配置为, 当确定模块 5035确定第三图像中不包 括待移除对象时, 将第三图像作为拍摄图像; 当确定模块 5035确定第三图 像中包括待移除对象时, 将第三图像生成为新的第一图像, 并将新的第一 图像传输至区域划分模块 5032。
需要说明的是, 如果取景图像中的待移除对象个数为一个, 那么, 第 三图像中就没有待移除对象, 因此, 此时的第三图像就为拍摄图像;
但是, 如果取景图像中的待移除对象个数不止一个, 如本实施例中的 图 2A所示, 那么, 图 2E所示的第三图像中还包括待移除对象 B和待移除 对象 C, 因此图像生成模块 5031需要将第三图像作为新的第一图像, 并且 传输至区域划分模块 5032将待移除对象 B进行移除,直至最后得到的第三 图像中没有待移除对象为止, 就可以得出拍摄图像, 如图 2F所示。
本发明实施例提供了一种照片拍摄处理设备 60, 通过在取景图像中按 照预设顺序选取待移除对象; 并且在接收到一次拍摄指令后, 按照所述预 设顺序依次将所述选择后的取景图像中的所述待移除对象进行移除, 获得 拍摄图像; 如此, 能实现在一次拍照过程中移除多个障碍物, 而且操作方 便, 实施简单。
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明可采用硬件实施例、 软件实施例、 或结 合软件和硬件方面的实施例的形式。 而且, 本发明可采用在一个或多个其 中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程 图和 /或方框图中的每一流程和 /或方框、以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得 通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的步骤。 相应的, 本发明实施例还提供一种计算机存储介质, 其中存储有计算 机程序, 该计算机程序用于执行本发明实施例的照片拍摄处理方法。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。

Claims

权利要求书
1、 一种照片拍摄处理方法, 所述方法包括:
按照预设顺序接收对取景图像中至少一个待移除对象的选择指令, 并 获取选择后的取景图像;
在接收到一次拍摄指令后, 按照所述预设顺序依次将所述选择后的取 景图像中的所述待移除对象进行移除, 获得拍摄图像。
2、 根据权利要求 1所述的方法, 其中, 所述获取选择后的取景图像, 包括:
按照所述预设顺序对所述至少一个待移除对象分别进行标记, 得到所 述选择后的取景图像; 其中, 所述标记的区域不小于对应的待移除对象区 域。
3、根据权利要求 2所述的方法, 其中, 所述在接收到一次拍摄指令后, 按照所述预设顺序依次将所述取景图像中的所述至少一个待移除对象进行 移除, 获得拍摄图像, 包括:
步骤 A、 将所述选择后的取景图像作为第一图像;
步骤 B、 在所述第一图像中按照所述预设顺序选择第一待移除对象对 应的标记的区域, 并通过二元分割法将所述标记的区域中的所述第一待移 除对象划分为第一区域, 将所述第一图像中除去所述第一区域以外的区域 划分为第二区域;
步骤 C、 将所述第一图像中的所述第一区域进行移除, 得到第二图像; 步骤 D、 将所述第二图像中移除后的所述第一区域进行修复, 得到第 三图像;
步骤 E、 当确定所述第三图像中不包括所述待移除对象时,将所述第三 图像作为拍摄图像; 当确定所述第三图像中包括所述待移除对象时, 将所 述第三图像作为新的第一图像, 返回执行步骤 B。
4、 根据权利要求 3所述的方法, 其中, 所述将所述第二图像中移除后 的所述第一区域进行修复得到第三图像, 包括:
步骤 Dl、 将所述第二图像中移除后的所述第一区域作为待修复区域, 将所述第二图像中除去所述第一区域以外的区域作为已知区域;
步骤 D2、 获取所述待修复区域边界上的每一点为中心的各图像块; 步骤 D3、 计算所述各图像块的优先权, 取优先权最大的图像块作为待 修复块;
步骤 D4、 在所述已知区域中搜索待修复块的最优匹配块;
步骤 D5、 将所述最优匹配块中与所述待修复块对应的图像子集填充至 所述待修复块的图像子集, 完成所述待修复块的修复;
步骤 D6、 更新所述待修复区域的边界, 当所述更新后的待修复区域的 边界为空集时, 得到所述第三图像; 当所述更新后的待修复区域的边界不 为空集时, 对所述更新后的待修复区域边界执行步骤 D2。
5、 根据权利要求 4所述的方法, 其中, 所述在所述已知区域中搜索待 修复块的最优匹配块, 包括:
搜索所述已知区域中的匹配块;
将所述已知区域中与所述待修复块对应像素点的颜色值之间的差的平 方和最小的匹配块生成为最优匹配块。
6、 根据权利要求 5所述的方法, 其中, 所述方法还包括:
当所述已知区域中与所述待修复块对应像素点的颜色值之间的差的平 方和最小的匹配块的个数大于一个的时候, 选取距离所述待修复块最近的 一个匹配块为最优匹配块。
7、 一种照片拍摄处理设备, 包括: 接收单元、 获取单元和拍摄图像获 得单元; 其中,
接收单元, 配置为按照预设顺序接收对取景图像中至少一个待移除对 获取单元, 配置为获取选择后的取景图像;
拍摄图像获得单元, 配置为在所述接收单元接收到一次拍摄指令后, 按照所述预设顺序依次将所述选择后的取景图像中的所述待移除对象进行 移除, 获得拍摄图像。
8、 根据权利要求 7所述的设备, 其中, 所述获取单元配置为, 按照所 述预设顺序对所述至少一个待移除对象分别进行标记, 得到所述选择后的 取景图像; 其中, 所述标记的区域不小于对应的待移除对象区域。
9、 根据权利要求 8所述的设备, 其中, 所述拍摄图像获得单元包括, 图像生成模块, 配置为将所述选择后的取景图像作为第一图像; 区域划分模块, 配置为在所述第一图像中按照所述预设顺序选择第一 待移除对象对应的标记的区域, 并通过二元分割法将所述标记的区域中的 所述第一待移除对象划分为第一区域, 并且将所述第一图像中除去所述第 一区域以外的区域划分为第二区域;
移除模块, 配置为将所述第一图像中的所述第一区域进行移除, 得到 第二图像;
修复模块, 配置为将所述移除模块得到的所述第二图像中移除后的所 述第一区域进行修复得到第三图像;
确定模块, 配置为确定所述修复模块得到的所述第三图像中是否包括 所述待移除对象;
所述图像生成模块还配置为, 当确定所述第三图像中不包括所述待移 除对象时, 将所述第三图像作为拍摄图像; 当确定所述第三图像中包括所 述待移除对象时, 将所述第三图像作为新的第一图像, 并将所述新的第一 图像传输至所述区域划分模块。
10、 根据权利要求 9所述的设备, 其中, 所述修复模块配置为: 步骤 Dl、将所述第二图像中移除后的所述第一区域生成为待修复区域, 将所述第二图像中除去所述第一区域以外的区域生成为已知区域;
步骤 D2、 获取所述待修复区域边界上的每一点为中心的各图像块; 步骤 D3、 计算所述各图像块的优先权, 取优先权最大的图像块生成为 待修复块;
步骤 D4、 在所述已知区域中搜索待修复块的最优匹配块;
步骤 D5、 将所述最优匹配块中与所述待修复块对应的图像子集填充至 所述待修复块的图像子集, 完成所述待修复块的修复;
步骤 D6、 更新所述待修复区域的边界, 当所述更新后的待修复区域的 边界为空集时, 得到所述第三图像; 当所述更新后的待修复区域的边界不 为空集时, 对所述更新后的待修复区域边界执行步骤 D2。
11、 根据权利要求 10所述的设备, 其中, 所述修复模块在所述已知区 域中搜索待修复块的最优匹配块包括:
搜索所述已知区域中的匹配块;
将所述已知区域中与所述待修复块对应像素点的颜色值之间的差的平 方和最小的匹配块生成为最优匹配块。
12、 根据权利要求 11所述的设备, 其中, 所述修复模块在所述已知区 域中搜索待修复块的最优匹配块包括:
当所述已知区域中与所述待修复块对应像素点的颜色值之间的差的平 方和最小的匹配块的个数大于一个的时候, 选取距离所述待修复块最近的 一个匹配块为最优匹配块。
13、 一种计算机存储介质, 其中存储有计算机程序, 该计算机程序用 于执行权利要求 1至 6任一项所述的照片拍摄处理方法。
PCT/CN2014/077600 2013-12-19 2014-05-15 一种照片拍摄处理方法、设备和计算机存储介质 WO2014187265A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/106,068 US9992408B2 (en) 2013-12-19 2014-05-15 Photographing processing method, device and computer storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310705814.0 2013-12-19
CN201310705814.0A CN104735364A (zh) 2013-12-19 2013-12-19 一种照片拍摄处理方法和设备

Publications (1)

Publication Number Publication Date
WO2014187265A1 true WO2014187265A1 (zh) 2014-11-27

Family

ID=51932842

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/077600 WO2014187265A1 (zh) 2013-12-19 2014-05-15 一种照片拍摄处理方法、设备和计算机存储介质

Country Status (3)

Country Link
US (1) US9992408B2 (zh)
CN (1) CN104735364A (zh)
WO (1) WO2014187265A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107240068A (zh) * 2017-05-23 2017-10-10 北京小米移动软件有限公司 图片处理方法及装置
EP3354037A4 (en) * 2015-09-21 2019-04-10 Qualcomm Incorporated PREVIEWING VIEWING APPARATUS
CN110533604A (zh) * 2019-07-25 2019-12-03 安徽农业大学 用于复原病猪反光器官图像的方法、系统及存储介质

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9471954B2 (en) * 2015-03-16 2016-10-18 International Business Machines Corporation Video sequence assembly
CN106408534B (zh) * 2016-09-13 2019-07-26 北京金山安全软件有限公司 图像处理方法、装置及电子设备
CN106851098A (zh) * 2017-01-20 2017-06-13 努比亚技术有限公司 一种图像处理方法及移动终端
CN107091800A (zh) * 2017-06-06 2017-08-25 深圳小孚医疗科技有限公司 用于显微成像粒子分析的聚焦系统和聚焦方法
CN107144520B (zh) * 2017-06-06 2020-05-05 深圳小孚医疗科技有限公司 用于显微成像粒子分析的粒子成像室和聚焦系统
CN107395966A (zh) * 2017-07-19 2017-11-24 维沃移动通信有限公司 一种拍照方法、电子设备及计算机可读存储介质
CN109379531B (zh) * 2018-09-29 2021-07-16 维沃移动通信有限公司 一种拍摄方法及移动终端
EP4352687A1 (en) * 2021-06-07 2024-04-17 TCL Research Europe Sp. z o. o. Method for automatic object removal from a photo, processing system and associated computer program product
US20240013351A1 (en) * 2022-07-11 2024-01-11 Qualcomm Incorporated Removal of objects from images

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694963A (zh) * 2012-04-27 2012-09-26 南京航空航天大学 一种获取无阴影目标图像的方法
CN102812490A (zh) * 2010-01-20 2012-12-05 三洋电机株式会社 图像处理装置以及电子设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266685A (zh) * 2007-03-14 2008-09-17 中国科学院自动化研究所 一种基于多幅照片去除无关图像的方法
CN101661613B (zh) * 2009-08-27 2011-11-09 北京交通大学 一种基于图像分割的图像修复方法及系统
CN101783861B (zh) * 2010-02-09 2011-11-23 腾讯科技(深圳)有限公司 一种美化图像的方法和装置
US8660305B2 (en) * 2011-10-11 2014-02-25 Technische Universitaet Ilmenau Method and apparatus for removing a visual object from a visual data stream
US9407674B2 (en) * 2014-03-25 2016-08-02 Shui Yu Chan Method and device for removing objects from a video feed in real-time

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102812490A (zh) * 2010-01-20 2012-12-05 三洋电机株式会社 图像处理装置以及电子设备
CN102694963A (zh) * 2012-04-27 2012-09-26 南京航空航天大学 一种获取无阴影目标图像的方法

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3354037A4 (en) * 2015-09-21 2019-04-10 Qualcomm Incorporated PREVIEWING VIEWING APPARATUS
US10616502B2 (en) 2015-09-21 2020-04-07 Qualcomm Incorporated Camera preview
CN107240068A (zh) * 2017-05-23 2017-10-10 北京小米移动软件有限公司 图片处理方法及装置
CN110533604A (zh) * 2019-07-25 2019-12-03 安徽农业大学 用于复原病猪反光器官图像的方法、系统及存储介质
CN110533604B (zh) * 2019-07-25 2023-05-16 安徽农业大学 用于复原病猪反光器官图像的方法、系统及存储介质

Also Published As

Publication number Publication date
US20160323505A1 (en) 2016-11-03
US9992408B2 (en) 2018-06-05
CN104735364A (zh) 2015-06-24

Similar Documents

Publication Publication Date Title
WO2014187265A1 (zh) 一种照片拍摄处理方法、设备和计算机存储介质
CN108898567B (zh) 图像降噪方法、装置及系统
WO2018201809A1 (zh) 基于双摄像头的图像处理装置及方法
US10410397B2 (en) Picture presentation method and apparatus
KR102480245B1 (ko) 패닝 샷들의 자동 생성
US10269130B2 (en) Methods and apparatus for control of light field capture object distance adjustment range via adjusting bending degree of sensor imaging zone
CN104680501B (zh) 图像拼接的方法及装置
WO2017128536A1 (zh) 一种基于双摄像头的扫描方法及装置
US10721414B2 (en) All-in-focus implementation
WO2016127478A1 (zh) 一种图像处理方法、装置和终端
CN107730457B (zh) 一种图像补全方法、装置、电子设备及存储介质
TW201143352A (en) Image processor, image processing method, and image processing program
US10205875B2 (en) Image enhancement and repair using sample data from other images
CN104184935A (zh) 影像拍摄设备及方法
CN105701762B (zh) 一种图片处理方法和电子设备
US20160191898A1 (en) Image Processing Method and Electronic Device
CN104506775A (zh) 基于立体视觉匹配的图像采集抖动消除方法及装置
JP2014222825A (ja) 映像処理装置および映像処理方法
CN106296574A (zh) 三维照片生成方法和装置
CN111311481A (zh) 背景虚化方法、装置、终端设备及存储介质
EP3496042A1 (en) System and method for generating training images
CN105467741A (zh) 一种全景拍照方法及终端
CN109889736B (zh) 基于双摄像头、多摄像头的图像获取方法、装置及设备
WO2017096859A1 (zh) 照片的处理方法及装置
CN106296580A (zh) 一种图像拼接的方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14801002

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15106068

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14801002

Country of ref document: EP

Kind code of ref document: A1