KR20150120317A - Method and electronic device for implementing refocusing - Google Patents

Method and electronic device for implementing refocusing Download PDF

Info

Publication number
KR20150120317A
KR20150120317A KR1020150054532A KR20150054532A KR20150120317A KR 20150120317 A KR20150120317 A KR 20150120317A KR 1020150054532 A KR1020150054532 A KR 1020150054532A KR 20150054532 A KR20150054532 A KR 20150054532A KR 20150120317 A KR20150120317 A KR 20150120317A
Authority
KR
South Korea
Prior art keywords
images
image
target
target area
image quality
Prior art date
Application number
KR1020150054532A
Other languages
Korean (ko)
Other versions
KR101612727B1 (en
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 후아웨이 테크놀러지 컴퍼니 리미티드
Publication of KR20150120317A publication Critical patent/KR20150120317A/en
Application granted granted Critical
Publication of KR101612727B1 publication Critical patent/KR101612727B1/en

Links

Images

Classifications

    • H04N5/23212
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration by the use of more than one image, e.g. averaging, subtraction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/958Computational photography systems, e.g. light-field imaging systems for extended depth of field imaging
    • H04N23/959Computational photography systems, e.g. light-field imaging systems for extended depth of field imaging by adjusting depth of field during image capture, e.g. maximising or setting range based on scene characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/20Image signal generators
    • H04N13/204Image signal generators using stereoscopic image cameras
    • H04N13/207Image signal generators using stereoscopic image cameras using a single 2D image sensor
    • 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/67Focus control based on electronic image sensor signals
    • H04N23/676Bracketing for image capture at varying focusing conditions
    • H04N5/225
    • H04N5/232
    • H04N5/2355
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/21Indexing scheme for image data processing or generation, in general involving computational photography

Abstract

Embodiments of the present invention disclose a method and electronic device for implementing refocusing, and relate to the field of image processing technologies, so as to reduce costs of implementing refocusing. The method provided in the embodiments of the present invention includes: a step of acquiring at least two images which are of objects to be photographed, and have different depths of field; a step of acquiring an instruction operation which is performed by a user on a partial area of one of the two images; determining a target area according to the instruction operation; acquiring definition of the target area in the two images; and generating a target image according to the definition of the target area in the two images.

Description

리포커싱을 실행하는 방법 및 전자 기기{METHOD AND ELECTRONIC DEVICE FOR IMPLEMENTING REFOCUSING}[0001] METHOD AND ELECTRONIC DEVICE FOR IMPLEMENTING REFOCUSING [0002]

본 발명은 이미지 처리 기술에 관한 것이며, 특히 리포커싱을 실행하는 방법 및 전자 기기에 관한 것이다.The present invention relates to image processing techniques and, more particularly, to a method of performing re-focusing and an electronic device.

사진촬영 프로세스에서는, 적절한 초점을 선택함으로써 사진의 장식 값(ornamental value)을 높일 수 있다. 현재, 초점을 선택하는 방식은: 공통 포커싱 방식 및 리포커싱 방식을 포함한다. 공통 포커싱 방식은 초점이 사진촬영 프로세스 중에 결정되는 것인데, 구체적으로, 자동 초점, 수동 초점, 다중 초점 등을 포함하며; 리포커싱 방식은 초점이 사진촬영 후 결정되는 것인데, 즉 사진촬영은 먼저 수행되고 포커싱이 나중에 수행되는 것이다.In the photographic process, the ornamental value of a photo can be increased by selecting an appropriate focus. Presently, the methods of selecting focus include: a common focusing method and a re-focusing method. The common focusing method is that the focus is determined during the photographing process, specifically including autofocus, manual focus, multi-focus, and the like; In the re-focusing method, the focus is determined after photographing, that is, photographing is performed first, and focusing is performed later.

현재, 리포커싱을 실행하는 방법은: 사진 내의 각각의 픽셀의 깊이 정보를 획득하는 단계; 및 상기 깊이 정보에 따라, 소프트웨어 알고리즘을 사용함으로써 다른 깊이 정보로 영역 내의 흐릿한 프로세싱(blurring processing)을 수행하여 리포커싱을 수행하는 단계를 포함한다. 종래 기술에서는, 카메라 간의 시차(parallax)를 사용하여 깊이 정보를 계산하거나, 레이저/적외선 측정 장치를 사용하여 깊이 정보를 획득할 수 있다. 즉, 깊이 정보를 획득하도록 구성되기 위해서는 여러 대의 카메라가 필요하거나 레이저/적외선 측정 장치가 필요하고, 이는 불가피하게 리포커싱을 실행하는 비용을 높이는 문제를 야기한다.Currently, methods of performing re-focusing include: acquiring depth information of each pixel in a picture; And performing refocusing by performing blurring processing in the area with different depth information by using a software algorithm according to the depth information. In the prior art, depth information can be calculated using a parallax between cameras or depth information can be obtained using a laser / infrared ray measuring apparatus. That is, in order to be configured to acquire the depth information, a plurality of cameras are required or a laser / infrared measuring device is required, which inevitably causes a problem of raising the cost of performing re-focusing.

본 발명의 실시예는 리포커싱을 실행하는 방법 및 전자 기기를 제공하여, 리포커싱을 실행하는 비용을 줄일 수 있다.Embodiments of the present invention can provide a method and an electronic device for performing re-focusing, thereby reducing the cost of performing re-focusing.

전술한 목적을 달성하기 위해, 본 발명의 실시예에서는 이하의 기술적 솔루션이 사용된다:In order to achieve the above object, the following technical solution is used in the embodiment of the present invention:

제1 관점에 따라, 리포커싱을 실행하는 방법이 제공되며, 상기 방법은 전자 기기에 적용되며,According to a first aspect, there is provided a method of performing re-focusing, the method being applied to an electronic device,

사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하는 단계;Obtaining at least two images that are subjects to be photographed and have different field depths;

상기 적어도 2개의 이미지 중 하나의 이미지의 부분적인 영역에 대해 사용자에 의해 수행되는 명령 시행을 획득하는 단계;Obtaining an instruction execution performed by a user on a partial area of one of the at least two images;

상기 명령 시행에 따라 목표 영역을 결정하는 단계;Determining a target area in accordance with the instruction execution;

상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질(definition)을 획득하는 단계; 및Obtaining a definition of a target area in each of the at least two images; And

상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하는 단계Generating a target image according to an image quality of a target area in each of the at least two images

를 포함한다..

제1 관점을 참조하여, 제1 가능한 실시 방식에서, 상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하는 단계는:Referring to the first aspect, in a first possible implementation, generating a target image according to image quality of a target area in each of the at least two images comprises:

상기 적어도 2개의 이미지로부터, 상기 목표 영역의 화질이 미리 정해진 조건을 충족하는 K개의 이미지를 획득하는 단계 - 여기서 K≥1이고, K는 정수이며, 상기 미리 정해진 조건은: 상기 화질은 제1 임계값보다 크거나 같다, 상기 화질은 제2 임계값보다 작거나 같다, 및 상기 화질은 사전설정된 값 범위 내에 있다 중 어느 하나임 - ;Obtaining, from the at least two images, K images in which the image quality of the target area satisfies a predetermined condition, where K? 1, K is an integer, and the predetermined condition is: The image quality is less than or equal to a second threshold, and the image quality is within a predetermined value range;

K=1일 때, 상기 미리 정해진 조건을 충족하는 이미지를 상기 목표 이미지로서 사용하는 단계; 및When K = 1, using an image satisfying the predetermined condition as the target image; And

K>1일 때, 상기 미리 정해진 조건을 충족하는 K개의 이미지를 합성하여 상기 목표 이미지를 생성하는 단계When K > 1, generating the target image by synthesizing K images satisfying the predetermined condition

를 포함한다..

제1 관점의 제1 가능한 실시 방식을 참조하여, 제2 가능한 실시 방식에서, K=1일 때, 상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하는 단계 이전에, 상기 방법은,Referring to the first possible embodiment of the first aspect, in a second possible implementation, before K = 1, a step of generating a target image according to the image quality of the target area in each of the at least two images, Way,

리포커싱 모드를 획득하는 단계The step of acquiring the re-focusing mode

를 더 포함하며,Further comprising:

상기 리포커싱 모드는 깨끗한 리포커싱 모드 또는 흐릿한 리포커싱 모드를 포함하고, 상기 깨끗한 리포커싱 모드는 상기 적어도 2개의 이미지 중 최고화질을 가 목표 영역의 이미지에 따라 목표 이미지를 생성하도록 전자 기기에 명령하도록 구성되어 있고, 상기 흐릿한 리포커싱 모드는 상기 적어도 2개의 이미지 중 최저화질을 가지는 목표 영역의 이미지에 따라 목표 이미지를 생성하도록 전자 기기에 명령하도록 구성되어 있으며, Wherein the refocusing mode includes a clean refocusing mode or a blurry refocusing mode and the clean refocusing mode instructs the electronic device to produce a target image according to an image of the target area with the highest image quality of the at least two images Wherein the blurred re-focusing mode is configured to instruct the electronic device to generate a target image according to an image of a target area having the lowest image quality among the at least two images,

상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하는 단계는,Wherein the step of generating the target image according to the image quality of the target area in each of the at least two images comprises:

상기 리포커싱 모드 및 상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하는 단계Generating a target image according to the quality of the target area in each of the at least two images and the refocusing mode

를 포함한다..

제1 관점 및 제1 관점의 제1 가능한 실시 방식 또는 제2 가능한 실시 방식 중 어느 하나를 참조하여, 제3 가능한 실시 방식에서, 상기 명령 시행에 따라 목표 영역을 결정하는 단계는:In a third possible implementation, with reference to any one of a first possible embodiment or a second possible implementation of the first aspect and the first aspect, the step of determining the target area in accordance with the instruction execution comprises the steps of:

상기 명령 시행이 수행되는 영역을 상기 목표 영역으로 사용하는 단계; 또는Using the region in which the command execution is performed as the target region; or

상기 명령 시행이 수행되는 영역이 얼굴 영역일 때, 상기 얼굴 영역을 상기 목표 영역으로 사용하는 단계; 또는Using the face region as the target region when the region in which the command execution is performed is a face region; or

상기 명령 시행이 수행되는 영역 내에 있는 포인트가 중심인 영역을 상기 목표 영역으로 사용하는 단계Using an area centered at a point within an area in which the command execution is performed as the target area

를 포함한다..

제1 관점을 참조하여, 제4 가능한 실시 방식에서, 상기 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하는 단계 이전에, 상기 방법은:With reference to the first aspect, in a fourth possible implementation, prior to the step of acquiring at least two images having different field depths from the subject to be photographed, the method comprises:

상기 사용자에 의해 발부되는, 상기 사진촬영될 피사체의 필드 깊이 범위를 획득하는 단계Obtaining a field depth range of the subject to be photographed, which is issued by the user,

를 더 포함하고,Further comprising:

상기 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하는 단계는:Wherein acquiring at least two images having different field depths as the subject to be photographed comprises:

상기 필드 깊이 범위 내에서, 상기 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하는 단계Obtaining, within said field depth range, at least two images having different field depths from said subject to be photographed

를 포함한다..

제1 관점의 제4 가능한 실시 방식을 참조하여, 제5 가능한 실시 방식에서, 상기 사용자에 의해 발부되는, 상기 사진촬영될 피사체의 필드 깊이 범위를 획득하는 단계 이전에, 상기 방법은:Referring to a fourth possible implementation of the first aspect, in a fifth possible implementation, prior to the step of obtaining a field depth range of the subject to be photographed, which is issued by the user,

상기 사진촬영될 피사체를 포함하는 기준 이미지를 실시간으로 수집하는 단계;Collecting in real time a reference image including the subject to be photographed;

를 더 포함하며,Further comprising:

상기 사용자에 의해 발부되는, 상기 사진촬영될 피사체의 필드 깊이 범위를 획득하는 단계는:The step of obtaining a field depth range of the subject to be photographed, issued by the user, comprising:

상기 사용자에 의해 발부되고 상기 기준 이미지에 포함되는 적어도 2개의 초점을 획득하는 단계; 및Obtaining at least two foci issued by the user and included in the reference image; And

상기 적어도 2개의 초점에 대응하는 피사체를 커버하는 필드 깊이 범위를 획득하는 단계Obtaining a field depth range covering a subject corresponding to the at least two focuses

를 포함한다..

제1 관점 및 제1 관점의 제1 가능한 실시 방식 내지 제5 가능한 실시 방식 중 어느 하나를 참조하여, 제6 가능한 실시 방식에서, 상기 적어도 2개의 이미지 중 하나의 이미지의 부분적인 영역에 대해 사용자에 의해 수행되는 명령 시행을 획득하는 단계 이전에, 상기 방법은:In a sixth possible implementation, referring to any one of the first possible embodiment to the fifth possible embodiment of the first aspect and the first aspect, it is preferable that, for a partial area of one of the at least two images, Prior to the step of obtaining an instruction execution performed by the method, the method comprises:

상기 적어도 2개의 이미지에 대해 글로벌 등록(global registration)을 수행하는 단계Performing global registration on the at least two images

를 더 포함한다..

제2 관점에 따라, 리포커싱을 실행하는 전자 기기가 제공되며, 상기 전자 기기는:According to a second aspect, there is provided an electronic apparatus for performing re-focusing, the electronic apparatus comprising:

사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하도록 구성되어 있는 이미지 획득 유닛;An image acquisition unit configured to acquire at least two images that are subjects to be photographed but have different field depths;

상기 적어도 2개의 이미지 중 하나의 이미지의 부분적인 영역에 대해 사용자에 의해 수행되는 명령 시행을 획득하도록 구성되어 있는 명령 시행 획득 유닛;An instruction execution acquiring unit configured to acquire an instruction execution performed by a user for a partial area of one of the at least two images;

상기 명령 시행에 따라 목표 영역을 결정하도록 구성되어 있는 결정 유닛;A determination unit configured to determine a target area in accordance with the instruction execution;

상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질을 획득하도록 구성되어 있는 화질 획득 유닛; 및An image quality acquiring unit configured to acquire an image quality of a target area in each of the at least two images; And

상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하도록 구성되어 있는 생성 유닛A generating unit configured to generate a target image according to an image quality of a target area in each of the at least two images,

을 포함한다..

제2 관점에 따라, 제1 가능한 실시 방식에서, 상기 생성 유닛은 구체적으로,According to a second aspect, in a first possible embodiment, the generating unit is, in particular,

상기 적어도 2개의 이미지로부터, 상기 목표 영역의 화질이 미리 정해진 조건을 충족하는 K개의 이미지를 획득하고 - 여기서 K≥1이고, K는 정수이며, 상기 미리 정해진 조건은: 상기 화질은 제1 임계값보다 크거나 같다, 상기 화질은 제2 임계값보다 작거나 같다, 및 상기 화질은 사전설정된 값 범위 내에 있다 중 어느 하나임 - ; From the at least two images, the image quality of the target area satisfies a predetermined condition, where K > = 1 and K is an integer, the predetermined condition being: the image quality is a first threshold The image quality is less than or equal to a second threshold, and the image quality is within a predetermined value range;

K=1일 때, 상기 미리 정해진 조건을 충족하는 이미지를 상기 목표 이미지로서 사용하며; 그리고When K = 1, uses an image satisfying the predetermined condition as the target image; And

K>1일 때, 상기 미리 정해진 조건을 충족하는 K개의 이미지를 합성하여 상기 목표 이미지를 생성하도록 구성되어 있다.And when K > 1, composes K images satisfying the predetermined condition to generate the target image.

제2 관점의 제1 가능한 실시 방식을 참조하여, 제2 가능한 실시 방식에서, K=1일 때, 상기 전자 기기는:Referring to a first possible implementation of the second aspect, in a second possible implementation, when K = 1, the electronic device:

리포커싱 모드를 획득하도록 구성되어 있는 모드 획득 유닛A mode acquisition unit configured to acquire a re-focusing mode

을 더 포함하며,Further comprising:

상기 리포커싱 모드는 깨끗한 리포커싱 모드 또는 흐릿한 리포커싱 모드를 포함하고, 상기 깨끗한 리포커싱 모드는 상기 적어도 2개의 이미지 중 최고화질을 가지는 목표 영역의 이미지에 따라 목표 이미지를 생성하도록 전자 기기에 명령하도록 구성되어 있고, 상기 흐릿한 리포커싱 모드는 상기 적어도 2개의 이미지 중 최저화질을 가지는 목표 영역의 이미지에 따라 목표 이미지를 생성하도록 전자 기기에 명령하도록 구성되어 있으며, Wherein the refocusing mode includes a clean refocusing mode or a blurry refocusing mode and the clean refocusing mode instructs the electronic device to generate a target image according to an image of a target region having the highest image quality among the at least two images Wherein the blurred re-focusing mode is configured to instruct the electronic device to generate a target image according to an image of a target area having the lowest image quality among the at least two images,

상기 생성 유닛은 상기 리포커싱 모드 및 상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하도록 구성되어 있다.The generating unit is configured to generate a target image according to the quality of the target region in each of the refocusing mode and the at least two images.

제2 관점 및 제2 관점의 제1 가능한 실시 방식 또는 제2 가능한 실시 방식 중 어느 하나를 참조하여, 제3 가능한 실시 방식에서, 상기 결정 유닛은 구체적으로,With reference to either the first possible embodiment of the second or the second aspect or the second possible embodiment, in a third possible embodiment, the decision unit is, in particular,

상기 명령 시행이 수행되는 영역을 상기 목표 영역으로 사용하거나; 또는Using the region in which the command execution is performed as the target region; or

상기 명령 시행이 수행되는 영역이 얼굴 영역일 때, 상기 얼굴 영역을 상기 목표 영역으로 사용하거나; 또는Using the face region as the target region when the region in which the command execution is performed is a face region; or

상기 명령 시행이 수행되는 영역 내에 있는 포인트가 중심인 영역을 상기 목표 영역으로 사용하도록 구성되어 있다.And to use, as the target area, an area centered at a point within the area where the command execution is performed.

제2 관점을 참조하여, 제4 가능한 실시 방식에서, 상기 전자 기기는:Referring to a second aspect, in a fourth possible implementation, the electronic device comprises:

상기 사용자에 의해 발부되는, 상기 사진촬영될 피사체의 필드 깊이 범위를 획득하도록 구성되어 있는 필드 깊이 범위 획득 유닛A field depth range acquisition unit, configured to obtain a field depth range of the subject to be photographed,

을 더 포함하고,Further comprising:

상기 이미지 획득 유닛은 구체적으로, 상기 필드 깊이 범위 내에서, 상기 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하도록 구성되어 있다.The image obtaining unit is configured to obtain at least two images having different field depths, in particular, within the field depth range, the object to be photographed.

제2 관점의 제4 가능한 실시 방식을 참조하여, 제5 가능한 실시 방식에서, 상기 이미지 획득 유닛은 상기 사진촬영될 피사체를 포함하는 기준 이미지를 실시간으로 수집하도록 추가로 구성되어 있으며,With reference to a fourth possible embodiment of the second aspect, in a fifth possible implementation, the image acquisition unit is further configured to collect in real time a reference image comprising the subject to be photographed,

상기 필드 깊이 범위 획득 유닛은, 상기 사용자에 의해 발부되고 상기 기준 이미지에 포함되는 적어도 2개의 초점을 획득하며, 상기 적어도 2개의 초점에 대응하는 피사체를 커버하는 필드 깊이 범위를 획득하도록 구성되어 있다.The field depth range acquisition unit is configured to acquire at least two foci issued by the user and included in the reference image, and to obtain a field depth range covering a subject corresponding to the at least two foci.

제2 관점 및 제2 관점의 제1 가능한 실시 방식 내지 제5 가능한 실시 방식 중 어느 하나를 참조하여, 제6 가능한 실시 방식에서, 상기 전자 기기는:With reference to any one of the first to fifth possible embodiments of the second and the second aspects, in the sixth possible implementation, the electronic apparatus comprises:

상기 적어도 2개의 이미지에 대해 글로벌 등록을 수행하도록 구성되어 있는 글로벌 등록 유닛A global registration unit configured to perform global registration for the at least two images,

을 더 포함한다..

본 발명의 실시예에 따라 리포커싱을 실행하는 방법 및 전자 기기에서, 전자 기기는 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지의 각각의 이미지의 목표 영역(즉, 리포커싱 영역)의 화질에 따라 리포커싱을 수행한다. 이 방법에서, 전자 기기는 여러 대의 카메라 또는 레이저/적외선 측정 기기를 구비함이 없이 리포커싱을 실행할 수 있으며, 이에 의해 종래기술에 비해 리포커싱의 비용을 절감할 수 있다.In a method and an electronic device for carrying out re-focusing in accordance with an embodiment of the present invention, an electronic device is a device for performing a re-focusing in a target area (i.e., a refocusing area) of each image of at least two images having different field depths And performs re-focusing according to image quality. In this method, the electronic device can perform refocusing without having a plurality of cameras or laser / infrared measurement devices, thereby reducing the cost of re-focusing compared to the prior art.

본 발명의 실시예 또는 종래기술의 기술적 솔루션을 더 명확하게 설명하기 위해, 이하에서는 본 발명의 실시예를 설명하는 데 필요한 첨부된 도면에 대해 간략하게 설명한다. 당연히, 이하의 실시예의 첨부된 도면은 본 발명의 일부의 실시예에 지나지 않으며, 당업자라면 창조적 노력 없이 첨부된 도면으로부터 다른 도면을 도출해낼 수 있을 것이다.
도 1은 본 발명의 실시예에 따라 리포커싱을 실행하는 방법에 대한 개략적인 흐름도이다.
도 2는 본 발명의 실시예에 따라 리포커싱을 실행하는 다른 방법에 대한 개략적인 흐름도이다.
도 3은 본 발명의 실시예에 따라 리포커싱을 실행하는 방법에 대한 개략적인 흐름도이다.
도 4는 본 발명의 실시예에 따라 리포커싱을 실행하는 장치에 대한 구조적인 블록도이다.
도 5는 본 발명의 실시예에 따라 리포커싱을 실행하는 다른 장치에 대한 구조적인 블록도이다.
도 6은 본 발명의 실시예에 따라 리포커싱을 실행하는 다른 장치에 대한 구조적인 블록도이다.
BRIEF DESCRIPTION OF THE DRAWINGS For a better understanding of embodiments of the present invention or technical solutions of the prior art, the accompanying drawings, which are needed to illustrate the embodiments of the present invention, are briefly described below. Naturally, the accompanying drawings of the following embodiments are only partial embodiments of the present invention, and those skilled in the art will be able to derive other drawings from the attached drawings without creative effort.
1 is a schematic flow diagram of a method for performing re-focusing in accordance with an embodiment of the present invention.
2 is a schematic flow diagram of another method of performing re-focusing in accordance with an embodiment of the present invention.
3 is a schematic flow diagram of a method for performing re-focusing in accordance with an embodiment of the present invention.
4 is a structural block diagram of an apparatus for performing re-focusing in accordance with an embodiment of the present invention.
5 is a structural block diagram of another apparatus for performing re-focusing in accordance with an embodiment of the present invention.
6 is a structural block diagram of another apparatus for performing re-focusing in accordance with an embodiment of the present invention.

이하에서는 본 발명의 실시예에 첨부된 도면을 참조하여 본 발명의 실시예의 기술적 솔루션에 대해 명확하고 완전하게 설명한다. 당연히, 설명된 실시예는 본 발명의 모든 실시예가 아닌 일부에 지나지 않는다. 당업자가 창조적 노력 없이 본 발명의 실시예에 기초하여 획득하는 모든 다른 실시예는 본 발명의 보호 범위 내에 있게 된다.Hereinafter, a technical solution of an embodiment of the present invention will be clearly and completely described with reference to the drawings attached to embodiments of the present invention. Obviously, the described embodiments are only a few of the embodiments of the invention. Any other embodiment that a person skilled in the art acquires based on an embodiment of the present invention without creative effort is within the scope of protection of the present invention.

본 발명의 실시예에서 용어 "및/또는"은 관련 피사체 간의 연합 관계만을 설명하며, 3가지 관계가 존재할 수도 있다는 것을 나타낸다는 것에 유의해야 한다. 예를 들어, A 또는 B는 이하의 3가지 경우를 나타낼 수 있다: A만 존재하고, A 및 B 모두가 존재하며, B만 존재한다. 본 명세서에서 기호 "/"는 일반적으로 연합된 피사체가 관계를 맺고 있거나 "또는"의 관계에 있다는 것을 나타낸다. 또한, "복수"는 구체적으로 설명되지 않는 경우, 본 명세서에서의 "복수"는 2 이상을 나타낸다.It should be noted that in the embodiment of the present invention, the term "and / or" describes only the association relationship between related objects and indicates that there may be three relationships. For example, A or B may represent the following three cases: A exists only, A and B all exist, and B exists only. In this specification, the symbol "/ " generally indicates that the associated subject is in relationship or" or ". Also, unless the plural is specifically described, "plural" in the present specification indicates two or more.

실시예Example 1 One

도 1은 본 발명의 실시예에 따라 리포커싱을 실행하는 방법을 도시하고 있으며, 이 방법은 전자 기기에 적용되며 이하를 포함한다:Figure 1 illustrates a method of performing re-focusing in accordance with an embodiment of the present invention, which method is applied to an electronic device and comprises:

101. 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득한다.101. Obtain at least two images that are subjects to be photographed, but have different field depths.

"전자 기기"란 카메라, 스마트폰, 모바일 컴퓨터, 태블릿, 개인휴대단말(Personal Digital Assistant: PDA)과 같이, 사진을 촬영하는 데 사용될 수 있는 기기를 말한다. 전자 기기는 카메라를 포함할 수 있고, 구체적으로 카메라는 단일의 카메라일 수 있다. 전자 기기는 사진촬영될 피사체의 이미지를 획득하는 데 사용된다."Electronic device" refers to a device that can be used to take pictures, such as a camera, a smart phone, a mobile computer, a tablet, and a personal digital assistant (PDA). The electronic device may include a camera, and specifically, the camera may be a single camera. The electronic device is used to acquire an image of a subject to be photographed.

본 발명의 본 실시예에서, 전자 기기가 상이한 필드 깊이를 가지는 이미지를 획득하는 방법은 제한되지 않는다. 구체적으로, 상이한 필드 깊이를 가지는 이미지는 카메라 렌즈의 위치 또는 카메라 내의 이미지 센서의 위치를 조정함으로써 획득될 수 있다. 예를 들어, 전자 기기에 포함되어 있는 모터는 카메라 렌즈가 이동하는 위치를 제어하는 데 사용되고, 제어 프로세스에서, 사진촬영될 피사체의 적어도 2개의 이미지가 획득된다. 본 발명의 본 실시예에서, 카메라 렌즈들의 각각의 이동에 있어서 공간 크기 및 이동 방향(전진 방향 및 후진 방향을 포함한다)은 제한되지 않는다.In this embodiment of the present invention, the method by which the electronic device obtains an image having different field depths is not limited. In particular, images having different field depths can be obtained by adjusting the position of the camera lens or the position of the image sensor in the camera. For example, a motor included in an electronic device is used to control the position of movement of the camera lens, and in the control process, at least two images of the subject to be photographed are obtained. In this embodiment of the present invention, the space size and the moving direction (including the advancing direction and the backward direction) are not limited in each movement of the camera lenses.

여러 사용자의 요건을 충족시키고 사용자 경험을 향상시키기 위해, 선택적으로, 단계 101 이전에, 방법은 다음을 더 포함할 수 있다: 단계 A: 사용자에 의해 발부되는, 사진촬영될 피사체의 필드 깊이 범위(depth-of-field range)를 획득한다. 이 경우, 단계 101은: 상기 필드 깊이 범위 내에서, 상기 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하는 단계를 포함한다. "적어도 2개의 이미지"의 각각의 이미지의 필드 깊이는 "필드 깊이 범위" 내에 있다. 특정한 실시예에서, 전자 기기는 사용자에 의해 발부되는 "필드 깊이 범위"를 수 개의 부분집합으로 분할할 수 있으며, 각각의 부분집합은 필드 깊이이고, 따라서 각각의 필드 깊이 내의 이미지가 획득된다.Optionally, prior to step 101, the method may further comprise the following: step A: a field depth range of the subject to be photographed, issued by the user, depth-of-field range). In this case, step 101 includes: obtaining, within the field depth range, at least two images having different field depths that are the subject to be photographed. The field depth of each image of "at least two images" is within the "field depth range". In a particular embodiment, the electronic device may divide the "field depth range" issued by the user into several subsets, each subset being a field depth, thus images within each field depth are obtained.

예시적으로, 본 발명의 본 실시예에서, 단계 A의 실시 방식은 제한되지 않는다. 2가지 선택 방식을 이하에 열거한다:Illustratively, in this embodiment of the invention, the manner of implementation of step A is not limited. Two selection schemes are listed below:

방식 1: 단계 A 이전에, 방법은: 사진촬영될 피사체를 포함하는 기준 이미지를 실시간으로 수집하는 단계를 더 포함할 수 있다. 이 경우, 단계 A는: 사용자에 의해 발부되고 기준 이미지에 포함되는 적어도 2개의 초점을 획득하는 단계; 및 상기 적어도 2개의 초점에 대응하는 피사체를 커버하는 필드 깊이 범위를 획득하는 단계를 포함할 수 있으며, 여기서 "초점"이란 이미지 내에 있으면서 사용자가 리포커싱을 수행하려는 피사체에 대응하는 영역을 말한다. "적어도 2개의 초점에 대응하는 피사체를 커버하는 필드 깊이 범위"는 적어도 2개의 초점에 대응하는 피사체 중에서 렌즈에 가장 가까운 피사체와 렌즈로부터 가장 멀리 있는 피사체 간의 필드 깊이일 수 있다.Method 1: Before Step A, the method may further include: collecting in real time a reference image including a subject to be photographed. In this case, step A comprises the steps of: obtaining at least two foci issued by the user and included in the reference image; And acquiring a field depth range covering an object corresponding to the at least two focal points, wherein the term "focus" refers to an area in the image corresponding to a subject in which the user intends to perform refocusing. The field depth range covering a subject corresponding to at least two focal points may be a depth of field between a subject closest to the lens and a furthest object from the lens among the subjects corresponding to at least two foci.

방식 2: 전자 기기에 하나 이상의 필드 깊이 모드가 미리 저장되어 있으며, 각각의 필드 깊이 모드는 하나의 필드 깊이 범위에 대응한다. 이 경우, 단계 A는: 전자 기기는 사용자에 의해 발부되는 목표 필드 깊이 모드를 획득하고, 이 목표 필드 깊이 모드에 대응하는 필드 깊이 범위를 획득하며, 이 목표 필드 깊이 모드에 대응하는 필드 깊이 범위를 사진촬영될 피사체의 필드 깊이 범위로서 사용하는 것을 포함한다. "필드 깊이 모드"에 관한 설명에 대해서는 실시예 2를 참조하라.Method 2: One or more field depth modes are pre-stored in the electronic device, and each field depth mode corresponds to one field depth range. In this case, step A: the electronic device acquires a target field depth mode issued by the user, obtains a field depth range corresponding to the target field depth mode, and determines a field depth range corresponding to the target field depth mode As the field depth range of the subject to be photographed. Refer to Embodiment 2 for a description of the "field depth mode ".

102. 상기 적어도 2개의 이미지 중 하나의 이미지의 부분적인 영역에 대해 사용자에 의해 수행되는 명령 시행을 획득한다.102. Obtain an instruction execution performed by a user for a partial area of one of the at least two images.

예시적으로, "적어도 2개의 이미지 중 하나의 이미지"는 적어도 2개의 이미지 중 어느 하나의 이미지일 수 있다. "부분 영역"이란 사용자가 명령 시행을 수행하도록 전자 기기에 직접적으로 또는 간접적으로 명령하는 영역을 말한다. "명령 시행"은 예를 들어, 클릭/더블-클릭/누름 및 유지하기와 같이, 사용자가 전자 기기의 디스플레이 유닛(예를 들어, 스크린)에 대해 수행하는 시행일 수 있으며, 전자 기기의 디스플레이 유닛에 대한 사용자의 시선일 수도 있다. ""명령 시행"이 전자 기기의 디스플레이 유닛에 대한 사용자의 시선인 시나리오에서, 전자 기기에 눈 추적 유닛(eye tracking unit)이 구성될 수 있으며, 눈 추적 유닛은 사용자의 시선의 방향 및 그 시선이 스크린상에 떨어지는 위치를 포착할 수 있다.Illustratively, "an image of one of at least two images" may be an image of any one of at least two images. "Subregion" refers to an area that directs a user directly or indirectly to perform an instructional execution. "Instruction enforcement" may be an enforcement that a user performs on a display unit (e.g., a screen) of an electronic device, such as, for example, click / double-click / It may be the user's gaze. "Execution of command" In a scenario in which the user's gaze is to the display unit of this electronic apparatus, an eye tracking unit may be configured in the electronic device, and the eye tracking unit may detect the direction of the user ' The position falling on the screen can be captured.

특정한 실시에서, 사용자는 복수의 명령 시행을 전자 기기에 발부할 수 있으며, 상이한 명령 시행이 수행되는 영역은 부분적으로 중첩될 수도 있고 중첩되지 않을 수도 있다. "상이한 명령 시행이 수행되는 영역이 중첩되지 않는다"를 이하의 실시예에서의 설명을 위해 사용한다.In a particular implementation, the user may issue a plurality of instructional executions to the electronic device, and the areas in which different instructional practices are performed may or may not overlap in part. Quot; regions in which different instruction execution is performed are not overlapped "are used for explanation in the following embodiments.

단계 102는 구체적으로 다음과 같이 실시될 수 있다: 전자 기기는 전자 기기의 디스플레이 유닛 상에 적어도 2개의 이미지 중 어느 하나의 이미지를 표시하고, 사용자는 표시된 이미지의 부분 영역에 대해 명령 시행을 수행한다. Step 102 can be specifically implemented as follows: the electronic device displays an image of any one of at least two images on the display unit of the electronic device, and the user performs an instruction execution on the partial area of the displayed image .

103. 명령 시행에 따라 목표 영역을 결정한다.103. Determine target area according to command execution.

예시적으로, "목표 영역"이란 이미지 내의 영역 범위를 말한다. 일반적으로, "적어도 2개의 이미지" 각각은 목표 영역을 포함한다. 상이한 이미지는 상이한 필드 깊이를 가지기 때문에, 각각의 상이한 이미지에 포함되어 있는 목표 이미지의 화질은 상이하다. 각각의 명령 시행은 하나의 목표 영역에 대응하고, 상이한 명령 시행에 대응하는 목표 영역은 부분적으로 중첩할 수도 있고 중첩하지 않을 수도 있다. "상이한 명령 시행에 대응하는 목표 영역이 중첩하지 않는다"를 이하의 실시예에서의 설명을 위해 사용한다. 목표 영역의 수가 하나일 때, 본 발명의 본 실시예는 단일점 리포커싱을 실시하는 데 사용되며; 목표 영역의 수가 적어도 2일 때, 본 발명의 본 실시예는 다중점 리포커싱을 실시하는 데 사용된다.By way of example, "target area" refers to a range of areas within an image. In general, each of the "at least two images" includes a target area. Since the different images have different field depths, the image quality of the target image contained in each different image is different. Each instruction execution corresponds to one target area, and the target area corresponding to different instruction execution may be partially overlapping or non-overlapping. The "target areas corresponding to different command enforcement do not overlap" are used for explanation in the following embodiments. When the number of target areas is one, this embodiment of the present invention is used to perform single point refocusing; When the number of target areas is at least 2, this embodiment of the present invention is used to perform multi-point refocusing.

단계 103은 구체적으로: 명령 시행이 수행되는 영역을 목표 영역으로 사용하는 단계; 또는 상기 명령 시행이 수행되는 영역이 얼굴 영역일 때, 상기 얼굴 영역을 상기 목표 영역으로 사용하는 단계; 또는 상기 명령 시행이 수행되는 영역 내에 있는 포인트가 중심인 영역을 상기 목표 영역으로 사용하는 단계를 포함할 수 있다. 예시적으로, 단계 103은: 명령 시생이 수행되는 영역이 얼굴 영역이 아닌 다른 피사체의 영역일 때, 그 다른 피사체가 점유하는 영역을 목표 영역으로 사용하는 단계를 더 포함할 수 있다.Step 103 specifically includes: using a region in which instruction execution is performed as a target region; Or using the face region as the target region when the region in which the command execution is performed is a face region; Or using a region in which the point in the region in which the instruction execution is performed is the center, as the target region. Illustratively, step 103 may further comprise: using the area occupied by the other object as the target area when the area where the command image is to be performed is a region of the object other than the face area.

"적어도 2개의 이미지"의 각각의 이미지의 이미지 사전배치, 좌표 위치 등을 일치시켜 각각의 이미지 내의 목표 영역을 결정하기 위해, 선택적으로, 단계 102 이전에, 방법은: 적어도 2개의 이미지에 대해 글로벌 등록을 수행하는 단계를 더 포함할 수 있다. Optionally, prior to step 102, the method may further comprise the steps < RTI ID = 0.0 > of: < / RTI > determining, for at least two images, And performing registration.

104. 적어도 2개의 이미지 각각에서의 목표 영역의 화질(definition)을 획득한다.104. Obtain a definition of a target area in each of at least two images.

예시적으로, 단계 104는 구체적으로 다음과 같이 실시될 수 있다: 적어도 2개의 이미지의 각각의 이미지 내의 목표 영역이 결정되고; 각각의 이미지 내의 목표 영역의 화질이 획득된다. 본 발명의 본 실시예에서, 목표 영역의 화질을 획득하는 특정한 실시 방법은 제한되지 않으며, 종래기술의 방법 중 임의의 방법을 사용하여 실시할 수 있다.Illustratively, step 104 may be concretely implemented as follows: a target area within each image of at least two images is determined; The image quality of the target area in each image is obtained. In this embodiment of the present invention, the specific implementation method for obtaining the image quality of the target area is not limited and can be implemented using any of the prior art methods.

105. 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성한다.105. A target image is generated according to the image quality of a target area in each of at least two images.

선택적으로, 단계 105는: 상기 적어도 2개의 이미지로부터, 상기 목표 영역의 화질이 미리 정해진 조건을 충족하는 K개의 이미지를 획득하는 단계 - 여기서 K≥1이고, K는 정수이며, 상기 미리 정해진 조건은: 상기 화질은 제1 임계값보다 크거나 같다, 상기 화질은 제2 임계값보다 작거나 같다, 및 상기 화질은 사전설정된 값 범위 내에 있다 중 어느 하나임 - ; K=1일 때, 상기 미리 정해진 조건을 충족하는 이미지를 상기 목표 이미지로서 사용하는 단계; 및 K>1일 때, 상기 미리 정해진 조건을 충족하는 K개의 이미지를 합성하여 상기 목표 이미지를 생성하는 단계를 포함한다.Alternatively, step 105 may comprise: obtaining, from the at least two images, K images whose image quality of the target area satisfies a predetermined condition, where K? 1, K is an integer, and the predetermined condition is Wherein the image quality is greater than or equal to a first threshold value, the image quality is less than or equal to a second threshold value, and the image quality is within a predetermined value range; When K = 1, using an image satisfying the predetermined condition as the target image; And generating the target image by combining K images satisfying the predetermined condition when K > 1.

또한, 선택적으로, K=1일 때, 단계 105 이전에, 상기 방법은: 리포커싱 모드를 획득하는 단계를 더 포함할 수 있으며, 상기 리포커싱 모드는 깨끗한 리포커싱 모드 또는 흐릿한 리포커싱 모드를 포함하고, 상기 깨끗한 리포커싱 모드는 상기 적어도 2개의 이미지 중 최고화질을 가지는 목표 영역의 이미지에 따라 목표 이미지를 생성하도록 전자 기기에 명령하도록 구성되어 있고, 상기 흐릿한 리포커싱 모드는 상기 적어도 2개의 이미지 중 최저화질을 가지는 목표 영역의 이미지에 따라 목표 이미지를 생성하도록 전자 기기에 명령하도록 구성되어 있다. 이 경우, 단계 105는: 상기 리포커싱 모드 및 상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하는 단계를 포함할 수 있다.Also, optionally, when K = 1, before step 105, the method may further comprise: obtaining a re-focusing mode, wherein the re-focusing mode includes a clean re-focusing mode or a fuzzy re-focusing mode Wherein the clean refocusing mode is configured to instruct the electronic device to produce a target image according to an image of a target area having the highest image quality among the at least two images, And instructs the electronic device to generate the target image according to the image of the target area having the lowest image quality. In this case, step 105 may include: generating a target image according to the quality of the target area in each of the re-focusing mode and the at least two images.

선택적으로 단계 105 이후에, 방법은: 목표 이미지를 표시하는 단계 및/또는 목표 이미지를 저장하는 단계를 더 포함할 수 있다. 전자 기기는 목표 이미지를 자동으로 표시하고 저장할 수 있으며, 또한 목표 이미지를 자동으로 표시하고 사용자 명령 하에 저장할 수도 있다. 또한, 방법은: 사용자에 의해 발부된 목표 이미지의 성능 지시자, 예를 들어, 해상도를 수신하는 단계를 더 포함할 수 있으며, 이에 따라 전자 기기는 사용자의 개인적인 요건을 충족하도록 목표 이미지를 생성할 수 있다.Optionally after step 105, the method may further comprise: displaying the target image and / or storing the target image. The electronic device can automatically display and store the target image, and the target image can also be automatically displayed and stored under user instructions. The method may further comprise: receiving a performance indicator, e.g., a resolution, of the target image issued by the user, whereby the electronic device can generate a target image to meet a user ' have.

본 발명의 본 실시예에 따라 리포커싱을 실행하는 방법에서, 전자 기기는 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지의 각각의 이미지의 목표 영역(즉, 리포커싱 영역)의 화질에 따라 리포커싱을 수행한다. 이 방법에서, 전자 기기는 여러 대의 카메라 또는 레이저/적외선 측정 기기를 구비함이 없이 리포커싱을 실행할 수 있으며, 이에 의해 종래기술에 비해 리포커싱의 비용을 절감할 수 있다.In the method of carrying out the re-focusing in accordance with the present embodiment of the present invention, the electronic device measures the quality of the target area (i.e., the refocusing area) of each image of at least two images having different field depths Thereby performing re-focusing. In this method, the electronic device can perform refocusing without having a plurality of cameras or laser / infrared measurement devices, thereby reducing the cost of re-focusing compared to the prior art.

실시예Example 2 2

본 실시예에서는, 상이한 명령 시행이 수행되는 영역들이 중첩하지 않고 상이한 명령 시행에 대응하는 목표 영역들이 중첩하지 않는다.In the present embodiment, regions where different instruction enforcement is performed do not overlap, and target areas corresponding to different instruction enforcement do not overlap.

도 2는 본 발명의 실시예에 따라 리포커싱을 실행하는 방법을 도시하고 있으며, 상기 방법은 이하를 포함한다:Figure 2 illustrates a method of performing re-focusing in accordance with an embodiment of the present invention, the method comprising:

201. 전자 기기는 사용자에 의해 발부된 필드 깊이 모드를 획득하며, 상기 필드 깊이 모드는: 풀 포커스 모드, 매크로 모드, 초상화 및 풍경 모드 등을 포함할 수 있다.201. The electronic device obtains a field depth mode issued by a user, the field depth mode including: full focus mode, macro mode, portrait and landscape mode, and the like.

예시적으로, 본 실시예에서, 전자 기기 내의 사전설정된 필드 깊이 모드는: 풀 포커스 모드, 매크로 모드, 및 초상화 및 풍경 모드를 포함한다. 특정한 실시에서, 필드 깊이 모드는 또한 다른 모드를 포함할 수도 있고, 전술한 모드 중 하나 이상만을 포함할 수도 있다.Illustratively, in this embodiment, the predetermined field depth modes in the electronic device include: a full focus mode, a macro mode, and a portrait and landscape mode. In certain implementations, the field depth mode may also include other modes, and may include only one or more of the above-described modes.

단계 201은 다음과 같이 실행될 수 있다: 전자 기기는 스크린상에 플로팅 기능 바(floating function bar)를 표시하며, 상기 플로팅 기능 바는 풀 포커스 모드 탭, 매크로 모드 탭, 초상화 및 풍경 모드 탭 등을 포함하며, 사용자는 전술한 탭을 촉발하여 전자 기기가 사용자에 의해 발부된 필드 깊이 모드를 획득할 수 있게 한다.Step 201 may be performed as follows: The electronic device displays a floating function bar on the screen, which includes a full focus mode tab, a macro mode tab, a portrait and landscape mode tab, etc. And the user triggers the above-described tap to enable the electronic device to obtain the field depth mode issued by the user.

선택적으로, 단계 201은 다음으로 대체될 수도 있다: 전자 기기는 디폴트 필드 깊이 모드를 획득한다.Optionally, step 201 may be replaced by: The electronic device acquires a default field depth mode.

202. 필드 깊이 모드에 대응하는 필드 깊이 범위를 획득한다. 구체적으로:202. Obtain the field depth range corresponding to the field depth mode. Specifically:

(1) 단계 201에서 획득된 필드 깊이 모드가 풀 포커스 모드일 때, 단계 202에서 "필드 깊이 모드에 대응하는 필드 깊이 범위"는 0-무한 범위 내의 필드 깊이(즉, 완전한 필드 깊이)일 수 있다.(1) When the field depth mode obtained in step 201 is the full focus mode, the field depth range corresponding to the field depth mode in step 202 may be the field depth in the 0-infinite range (i.e., complete field depth) .

(2) 단계 201에서 획득된 필드 깊이 모드가 매크로 모드일 때, 단계 202에서 "필드 깊이 모드에 대응하는 필드 깊이 범위"는 매크로 범위 내의 필드 깊이일 수 있다. 이 경우, 작은 피사체(예를 들어 작은 화분 풍경 및 작은 장난감)의 클로즈업으로 촬영하는 데 적절할 수 있다. 매크로 범위는 0-50cm일 수 있으며, 당연히 다른 값 범위도 가능하다.(2) When the field depth mode obtained in step 201 is macro mode, the field depth range corresponding to the field depth mode in step 202 may be the field depth within the macro range. In this case, it may be appropriate to take a close-up of a small subject (for example, a small potted landscape and a small toy). Macro range can be 0-50cm, and of course different value range is possible.

(3) 단계 201에서 획득된 필드 깊이 모드가 초상화 및 풍경 모드일 때, 단계 202에서 "필드 깊이 모드에 대응하는 필드 깊이 범위"는 초상화 및 풍경 범위를 커버하는 필드 깊이일 수 있다. 이 경우, 초상화 및 풍경을 사진촬영하는 데 적절하다. 초상화 및 풍경 범위는 50cm-무한일 수 있고, 당연히 다른 값 범위도 가능하다.(3) When the field depth mode obtained in step 201 is the portrait and landscape mode, the field depth range corresponding to the field depth mode in step 202 may be a field depth covering the portrait and landscape range. In this case, it is suitable for taking pictures of portraits and landscapes. The portrait and landscape ranges can be 50cm-infinite, and of course different value ranges are possible.

사용자는 상이한 필드 깊이 모드를 선택함으로써 상이한 장식 효과를 가지는 이미지를 획득할 수 있고, 이에 의해 사용자의 개인적인 요건을 충족시킬 수 있다. 또한, 사용자는 사진촬영될 피사체에 따라 필드 깊이 모드를 적절하게 선택하며, 이에 따라 단계 203에서 획득된 R개의 이미지에 리던던트 이미지(redundant image)가 포함되는 문제가 효과적으로 회피될 수 있으며, 여기서 리던던트 이미지란 필드 깊이 내에 사진촬영될 피사체가 없다는 것을 말한다. 예를 들어, 필드 깊이 범위가 0-무한이지만, 필드 깊이 범위 0-50cm 내에 사진촬영될 피사체가 없다. 이 경우, 전자 기기에 의해 획득되고 필드 깊이를 가지는 이미지는 리던던트 이미지이다. 이 경우, 사용자는 필드 깊이 모드를 초상화 및 풍경 모드로서 선택할 수 있다.The user can obtain images with different decorative effects by selecting different field depth modes, thereby meeting the user's personal requirements. Further, the user appropriately selects the field depth mode according to the subject to be photographed, so that the problem that the redundant image is included in the R images obtained in step 203 can be effectively avoided, wherein the redundant image Means that there is no subject to be photographed within the depth of field. For example, although the field depth range is 0-infinite, there is no subject to be photographed within the field depth range 0-50 cm. In this case, the image acquired by the electronic device and having the field depth is a redundant image. In this case, the user can select the field depth mode as portrait and landscape mode.

203. 필드 깊이 범위 내에서, 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 R개의 이미지를 획득하며, 여기서 R은 정수이고, R=2이다.203. Within the field depth range, we obtain R images with different field depths, which are the subjects to be photographed, where R is an integer and R = 2.

204. R개의 이미지 각각에 대해 글로벌 등록을 수행한다.204. Global registration is performed for each of the R images.

예시적으로, 전자 기기는 종래기술의 글로벌 등록 방식 중 어느 하나의 방식을 사용하여 이미지 그룹 내의 이미지에 대해 글로벌 등록을 수행할 수 있다. 단계 204가 수행된 후, R개의 이미지의 각각의 이미지의 이미지 사전배치가 일관적이고, 각각의 이미지의 동일한 위치 내의 포인트의 좌표는 동일하다. 예를 들어, R개의 이미지의 각각의 이미지 내의 중심점의 좌표는 동일하고, R개의 이미지의 각각의 이미지 내의 좌상 정점(upper-left vertex)의 좌표는 동일하고, R개의 이미지의 각각의 이미지 내의 우상 정점(upper-right vertex)의 좌표는 동일하며, 등등이다.By way of example, the electronic device can perform global registration on an image in an image group using any of the prior art global registration schemes. After step 204 is performed, the image pre-arrangement of each image of the R images is consistent, and the coordinates of the points within the same position of each image are the same. For example, the coordinates of the center point in each image of the R images are the same, the coordinates of the upper-left vertex in each image of the R images are the same, The coordinates of the vertex (upper-right vertex) are the same, and so on.

205: R개의 이미지 중 어느 하나의 이미지를 표시한다.205: Displays one of the R images.

206: 사용자에 의해 발부되고 이미지의 M개의 영역에 대해 수행되는 M개의 명령 시행을 획득하고, 여기서 M은 정수이고, M=1이다.206: Obtains M instruction fetches issued by the user and performed on M regions of the image, where M is an integer and M = 1.

예시적으로, 이 프로세스에서, 사용자는 전자 기기상에 표시된 이미지를 줌 브라우징 방식으로 브라우징하여 명령 시행이 수행되는 영역을 정확하게 위치시킬 수 있다. 줌 브라우징 방식에 대해서는 종래기술을 참조할 수 있다.Illustratively, in this process, the user may browse the image displayed on the electronic device in a zoom browsing manner to accurately locate the area where the instruction execution is performed. With respect to the zoom browsing method, the prior art can be referred to.

207. M개의 명령 시행에 따라 M개의 목표 영역을 획득한다.207. Obtain M target regions according to M instruction execution.

예시적으로, 본 실시예에서, M개의 목표 영역은 목표 영역 1, 목표 영역 2,..., 목표 영역 i,... 및 목표 영역 M으로 표시되며, 여기서 1=i=M이고, i는 정수이다.Illustratively, in this embodiment, the M target regions are denoted as a target region 1, a target region 2, ..., a target region i, ..., and a target region M, where 1 = i = Is an integer.

선택적으로, 단계 207은 구체적으로 이하의 방식으로 실행될 수 있다.Optionally, step 207 may be specifically performed in the following manner.

207.1. M개의 명령 시행에서의 i번째 명령 시행이 수행되는 영역이 얼굴 영역인지를 순차적으로 검출한다.207.1. It is sequentially detected whether the area where the execution of the i-th instruction in the M instruction execution is performed is the face area.

예이면, 단계 207.2가 수행되고, 아니오이면, 단계 207.3이 수행된다.If yes, step 207.2 is performed; if no, step 207.3 is performed.

207.2. 얼굴 영역을 i번째 목표 영역으로 사용한다.207.2. The face region is used as the i-th target region.

207.3. 포인트가 중심인 영역을 i번째 목표 영역으로 사용하고, 여기서 포인트는 i번째 명령 시행이 수행되는 영역 내에 있다. 이 경우, 목표 영역의 크기는 16x16 픽셀일 수 있고, 당연히 다른 값이 사용될 수도 있다.207.3. The point centered area is used as the i-th target area, where the point is in the area where the i-th command execution is performed. In this case, the size of the target area may be 16x16 pixels, and other values may of course be used.

전자 기기는 사용자가 얼굴 인식 모드를 작동가능/작동불능으로 선택하는 탭을 제공할 수 있으며, 여기서 탭은 단계 201에서 설명된 "플로팅 기능 바"에 배치될 수 있고, 디스플레이 인터페이스에 독립적으로 배치될 수도 있으며, 당연히 다른 방식으로 배치될 수도 있다. 사용자는 얼굴 인식 모드를 필요에 따라 작동가능 또는 작동불능으로 선택할 수 있다. 예를 들어, 사진촬영될 피사체가 얼굴을 포함하면, 얼굴 인식 모드를 작동가능으로 선택하여 전자 기기의 리포커싱 정확도를 높이고; 사진촬영될 피사체가 얼굴을 포함하지 않으면, 얼굴 인식 모드를 작동불능으로 선택하여 전자 기기가 리포커싱을 실행하는 데 필요한 시간을 단축시킨다. 전자 기기는 얼굴 인식 모드를 디폴트로 작동가능으로 할 수 있고, 이 경우를 본 실시예에서의 설명을 위한 예로 사용한다.The electronic device may provide a tab for the user to enable / disable the face recognition mode, wherein the tab may be placed in the "floating function bar " described in step 201, And may, of course, be arranged in other ways. The user can select whether the face recognition mode is enabled or disabled as required. For example, if the subject to be photographed includes a face, the face recognition mode is selected as operable to increase the refocusing accuracy of the electronic device; If the subject to be photographed does not include a face, the face recognition mode is disabled to shorten the time required for the electronic device to perform refocusing. The electronic apparatus can make the face recognition mode be operable by default, and this case is used as an example for explanation in this embodiment.

208. R개의 이미지에 포함된 목표 영역의 화질을 개별적으로 획득한다.208. The image quality of the target area included in the R images is acquired individually.

예시적으로, R개의 이미지 각각은 목표 영역 1, 목표 영역 2,..., 목표 영역 i,..., 및 목표 영역 M을 포함하고, R개의 이미지는 총 MxR 목표 영역을 포함한다. r번째 이미지에 포함된 목표 영역 i는 목표 영역 ir로 표시되고, 여기서 1=r=R이고, r은 정수이다. R개의 이미지에 포함된 MxR 목표 영역이 표 1에 열거되어 있다.Illustratively, each of the R images includes a target area 1, a target area 2, ..., a target area i, ..., and a target area M, and the R images include a total MxR target area. The target region i included in the r-th image is represented by the target region ir, where 1 = r = R and r is an integer. The M x R target areas included in the R images are listed in Table 1.

하나의 이미지 내의 목표 영역Target area within one image R개의 이미지에 포함된 목표 영역Target areas included in R images 목표 영역 1Target area 1 목표 영역 11, 목표 영역 12,..., 목표 영역 1RTarget area 11, target area 12, ..., target area 1R 목표 영역 2Target Area 2 목표 영역 21, 목표 영역 22,..., 목표 영역 2RTarget area 21, target area 22, ..., target area 2R ............ ............ 목표 영역 iTarget area i 목표 영역 i1, 목표 영역 i2,..., 목표 영역 iRTarget area i1, target area i2, ..., target area iR ............ ............ 목표 영역 MTarget area M 목표 영역 M1, 목표 영역 M2,..., 목표 영역 MRTarget area M1, target area M2, ..., target area MR

단계 205에 표시된 이미지 내의 목표 영역 1의 위치는 목표 영역 1(x1, y1)이고, 여기서 X11=x1=X12 및 Y11=y1=Y12이다. R개의 이미지 각각의 동일한 위치 내의 포인트의 좌표는 동일하기 때문에, 다른 R-1개의 이미지 내의 목표 영역 1의 위치도 (x1, y1)이다. 즉, i번째 이미지 내의 목표 영역 i1의 위치도 (x1, y1)이다.Position of the target area 1 in the image displayed in step 205 is the target area 1 (x1, y1), wherein X 11 = x1 = X 12 and Y 11 = Y 12 = y1. Since the coordinates of the points in the same position of each of the R images are the same, the position of the target area 1 in the other R-1 images is also (x1, y1). That is, the position of the target area i1 in the i-th image is (x1, y1).

단계 205에 표시된 이미지가 이미지 그룹 내의 b번째 이미지이면, 목표 영역 ib 및 목표 영역 i는 동일한 이미지 내의 동일한 영역이다는 것에 유의해야 한다.Note that if the image displayed in step 205 is the bth image in the group of images, then target area ib and target area i are the same area in the same image.

209. 사용자에 의해 발부되는 리포커싱 모드를 획득하며, 여기서 리포커싱 모드는 깨끗한 리포커싱 모드(clear refocusing mode) 또는 흐릿한 리포커싱 모드(blurred refocusing mode)를 포함한다.209. Obtain a re-focusing mode issued by a user, wherein the re-focusing mode includes a clear refocusing mode or a blurred refocusing mode.

획득된 리포커싱 모드가 깨끗한 리포커싱 모드이면, 단계 210가 수행되고, 획득된 리포커싱 모드가 흐릿한 리포커싱 모드이면, 단계 211가 수행된다.If the obtained re-focusing mode is a clean re-focusing mode, step 210 is performed, and if the obtained re-focusing mode is a fuzzy re-focusing mode, step 211 is performed.

예시적으로, 단계 209는 다음과 같이 수행될 수 있다: 전자 기기는 깨끗한 리포커싱 모드 탭 및 흐릿한 리포커싱 모드 탭을 사용자에게 제공하며, 이러한 탭들은 단계 201에서 언급된 "플로팅 기능 바"에 배치될 수도 있고, 디스플레이 인터페이스에 독립적으로 배열될 수도 있으며, 당연히 다른 방식으로 배열될 수도 있다. 사용자는 필요에 따라 깨끗한 리포커싱 모드 또는 흐릿한 리포커싱 모드를 선택할 수 있다.For example, step 209 can be performed as follows: The electronic device provides the user with a clean refocusing mode tab and a blurry refocusing mode tab, which are arranged in a "floating function bar " Or may be arranged independently of the display interface, or of course arranged in other ways. The user can select either a clean refocusing mode or a dim refocusing mode as needed.

단계 209 및 단계 201은 동시에 수행될 수도 있다는 것에 유의해야 한다. 즉, 단계 201에서, 전자 기기는 필드 깊이 모드 및 리포커싱 모드 모두를 획득한다.It should be noted that steps 209 and 201 may be performed simultaneously. That is, in step 201, the electronic device obtains both the field depth mode and the refocusing mode.

210. R개의 이미지 내의 각각의 그룹의 대응하는 목표 영역 중 최고화질을 가지는 목표 영역의 이미지에 따라 목표 이미지를 생성한다.210. A target image is generated according to an image of a target area having the highest image quality among corresponding target areas of each group in R images.

표 1에서 제2 열의 제2 행으로부터의 각각의 행에 포함되어 있는 목표 영역이 한 그룹의 "대응하는 영역"이다. 표 1로부터, 본 실시예에서는 총 M개 그룹의 대응하는 영역이 있다는 것을 알 수 있다.The target area included in each row from the second row in Table 1 in the second row is a "corresponding area" of one group. From Table 1, it can be seen that there are a total of M corresponding regions in this embodiment.

단계 210은: 각각의 그룹의 대응하는 목표 영역 중 최고화질을 가지는 목표 영역의 이미지를 개별적으로 획득하고; 그 획득된 이미지들이 동일한 이미지이면, 그 이미지를 목표 이미지로 사용하며; 그 획득된 이미지들이 동일한 이미지가 아니면, 그 이미지들을 합성하여 목표 이미지를 생성한다. 이미지 합성은 종래기술의 방식 중 임의의 하나의 방식으로 실행될 수 있다.Step 210: separately acquiring an image of a target area having the highest image quality among corresponding target areas of each group; If the acquired images are the same image, use that image as the target image; If the acquired images are not the same image, they are combined to create a target image. The image synthesis may be performed in any one of the prior art approaches.

예를 들어, M개 그룹의 대응하는 목표 영역 중 최고화질을 가지는 목표 영역의 이미지들이 각각 목표 영역 1b, 목표 영역 2b,.... 및 목표 영역 Mb이면, R개의 이미지 내의 b번째 이미지를 목표 이미지로 사용한다.For example, if the images of the target area having the highest image quality among the corresponding target areas of M groups are the target area 1b, the target area 2b, ...., and the target area Mb, Used as an image.

다른 예에서, M개 그룹의 대응하는 목표 영역 중 최고화질을 가지는 목표 영역의 이미지들이 각각 목표 영역 11, 목표 영역 23, 목표 영역 33, 목표 영역 46,.... 및 목표 영역 Mb이면, R개의 이미지 내의 제1, 제3, 제6,...제b 이미지를 합성하여 목표 이미지를 생성한다.In another example, if the images of the target area having the highest image quality among the M target groups are the target area 11, the target area 23, the target area 33, the target area 46, .... and the target area Mb, R The first, third, sixth, ..., and b-th images in the image are synthesized to generate a target image.

단계 210이 수행된 후, 단계 212가 수행된다.After step 210 is performed, step 212 is performed.

211. R개의 이미지 내의 각각의 그룹의 대응하는 목표 영역 중 최저화질을 가지는 목표 영역의 이미지에 따라 목표 이미지를 생성한다.211. A target image is generated according to an image of a target area having the lowest image quality among corresponding target areas of each group in R images.

당업자라면 전술한 단계 210의 특정한 실행 방식에 따라 단계 211의 특정한 실행 방식을 유추할 수 있다는 것에 유의해야 한다.It should be noted that those skilled in the art will be able to deduce a particular implementation of step 211 according to the particular implementation of step 210 described above.

212. 목표 이미지를 표시하고 저장한다.212. Display and save the target image.

단계 212가 수행된 후, 리포커싱 프로세스가 종료된다.After step 212 is performed, the re-focusing process ends.

선택적으로, 도 3에 도시된 바와 같이, 단계 201 내지 202는 이하의 단계로 대체될 수 있다:Optionally, as shown in Figure 3, steps 201-202 may be replaced by the following steps:

201'. 전자 기기는 사진촬영될 피사체를 포함하는 기준 이미지를 실시간으로 수집한다.201 '. The electronic device collects in real time a reference image including a subject to be photographed.

예시적으로, 이미지는 전술한 "R개의 이미지" 중 하나일 수도 있고 전술한 "R개의 이미지" 중 하나가 아닐 수도 있다.Illustratively, the image may be one of the "R images" described above and may not be one of the "R images"

202'. 사용자에 의해 발부되고 기준 이미지에 포함되는 적어도 2개의 초점 및 적어도 2개의 초점에 대응하는 피사체를 커버하는 필드 깊이를 획득한다.202 '. Obtains field depths covering at least two focuses and at least two focuses that are emitted by the user and are included in the reference image.

본 발명의 본 실시예에 따라 리포커싱을 실행하는 방법에서, 전자 기기는 사용자에 의해 발부되는 필드 깊이 범위를 획득하고, 이에 따라 이 필드 깊이 범위 내에서 상이한 필드 깊이를 가지는 적어도 2개의 이미지의 각각의 이미지 내의 목표 영역(즉, 리포커싱 영역)의 화질을 획득하여 리포커싱을 수행한다. 이 방법에서, 전자 기기는 여러 대의 카메라 또는 레이저/적외선 측정 기기를 구성함이 없이 리포커싱을 실행할 수 있으며, 이에 의해 종래기술에 비해 리포커싱의 비용을 절감할 수 있다. 또한, 사용자에 의해 발부되는 필드 깊이 모드가 획득되고 이 필드 깊이 모드에 대응하는 필드 깊이 범위가 획득되어 사용자의 개인적인 요건을 충족시키며, 이에 의해 사용자 경험이 향상된다.In the method of performing re-focusing in accordance with this embodiment of the present invention, the electronic device acquires a field depth range imposed by the user, and thereby obtains a field depth range that is different from each of at least two images (I.e., the refocusing area) in the image of the image of the subject. In this way, the electronic device can perform re-focusing without constructing multiple cameras or laser / infrared measurement devices, thereby reducing the cost of re-focusing compared to the prior art. In addition, a field depth mode issued by the user is acquired and a field depth range corresponding to this field depth mode is obtained to meet the user's personal requirements, thereby improving the user experience.

실시예Example 3 3

도 4는 본 발명의 실시예에 따라 리포커싱을 실행하는 전자 기기(4)를 도시하고 있으며, 전자 기기(4)는 도 1에 도시된 리포커싱을 실행하는 방법을 실행하도록 구성되어 있으며,4 shows an electronic device 4 that performs re-focusing according to an embodiment of the present invention, and the electronic device 4 is configured to execute a method of performing the re-focusing shown in Fig. 1,

사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하도록 구성되어 있는 이미지 획득 유닛(41);An image acquisition unit (41) configured to acquire at least two images that are subjects to be photographed and have different field depths;

상기 적어도 2개의 이미지 중 하나의 이미지의 부분적인 영역에 대해 사용자에 의해 수행되는 명령 시행을 획득하도록 구성되어 있는 명령 시행 획득 유닛(42);An instruction execution acquiring unit (42) configured to acquire an instruction execution performed by a user for a partial area of one of the at least two images;

상기 명령 시행에 따라 목표 영역을 결정하도록 구성되어 있는 결정 유닛(43);A determination unit (43) configured to determine a target area in accordance with the instruction execution;

상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질을 획득하도록 구성되어 있는 화질 획득 유닛(44); 및An image quality acquisition unit (44) configured to acquire an image quality of a target area in each of the at least two images; And

상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하도록 구성되어 있는 생성 유닛(45)A generating unit (45) configured to generate a target image according to an image quality of a target area in each of the at least two images,

을 포함한다..

선택적으로 생성 유닛(45)은 구체적으로:Optionally, the generating unit 45 specifically includes:

상기 적어도 2개의 이미지로부터, 상기 목표 영역의 화질이 미리 정해진 조건을 충족하는 K개의 이미지를 획득하고 - 여기서 K≥1이고, K는 정수이며, 상기 미리 정해진 조건은: 상기 화질은 제1 임계값보다 크거나 같다, 상기 화질은 제2 임계값보다 작거나 같다, 및 상기 화질은 사전설정된 값 범위 내에 있다 중 어느 하나임 - ; From the at least two images, the image quality of the target area satisfies a predetermined condition, where K > = 1 and K is an integer, the predetermined condition being: the image quality is a first threshold The image quality is less than or equal to a second threshold, and the image quality is within a predetermined value range;

K=1일 때, 상기 미리 정해진 조건을 충족하는 이미지를 상기 목표 이미지로서 사용하며; K>1일 때, 상기 미리 정해진 조건을 충족하는 K개의 이미지를 합성하여 상기 목표 이미지를 생성하도록 구성되어 있다.When K = 1, uses an image satisfying the predetermined condition as the target image; And when K > 1, composes K images satisfying the predetermined condition to generate the target image.

선택적으로, K=1일 때, 도 5에 도시된 바와 같이, 전자 기기(4)는:Optionally, when K = 1, as shown in Figure 5, the electronic device 4:

리포커싱 모드를 획득하도록 구성되어 있는 모드 획득 유닛(46)A mode acquisition unit 46 configured to acquire a re-focusing mode,

을 더 포함하며,Further comprising:

상기 리포커싱 모드는 깨끗한 리포커싱 모드 또는 흐릿한 리포커싱 모드를 포함하고, 상기 깨끗한 리포커싱 모드는 상기 적어도 2개의 이미지 중 최고화질을 가지는 목표 영역의 이미지에 따라 목표 이미지를 생성하도록 전자 기기에 명령하도록 구성되어 있고, 상기 흐릿한 리포커싱 모드는 상기 적어도 2개의 이미지 중 최저화질을 가지는 목표 영역의 이미지에 따라 목표 이미지를 생성하도록 전자 기기에 명령하도록 구성되어 있으며, Wherein the refocusing mode includes a clean refocusing mode or a blurry refocusing mode and the clean refocusing mode instructs the electronic device to generate a target image according to an image of a target region having the highest image quality among the at least two images Wherein the blurred re-focusing mode is configured to instruct the electronic device to generate a target image according to an image of a target area having the lowest image quality among the at least two images,

상기 생성 유닛(45)은 구체적으로 상기 리포커싱 모드 및 상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하도록 구성되어 있다.The generating unit 45 is specifically configured to generate a target image according to the image quality of the target area in each of the refocusing mode and the at least two images.

선택적으로, 결정 유닛(43)은 구체적으로:Optionally, the decision unit 43 may be:

상기 명령 시행이 수행되는 영역을 상기 목표 영역으로 사용하거나; 또는Using the region in which the command execution is performed as the target region; or

상기 명령 시행이 수행되는 영역이 얼굴 영역일 때, 상기 얼굴 영역을 상기 목표 영역으로 사용하거나; 또는Using the face region as the target region when the region in which the command execution is performed is a face region; or

상기 명령 시행이 수행되는 영역 내에 있는 포인트가 중심인 영역을 상기 목표 영역으로 사용하도록 구성되어 있다.And to use, as the target area, an area centered at a point within the area where the command execution is performed.

선택적으로, 도 5에 도시된 바와 같이, 전자 기기(4)는:Alternatively, as shown in Fig. 5, the electronic device 4 may comprise:

상기 사용자에 의해 발부되는, 상기 사진촬영될 피사체의 필드 깊이 범위를 획득하도록 구성되어 있는 필드 깊이 범위 획득 유닛(47)A field depth range acquiring unit 47 configured to acquire a field depth range of the subject to be photographed,

을 더 포함하고,Further comprising:

상기 이미지 획득 유닛(41)은, 상기 필드 깊이 범위 내에서, 상기 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하도록 구성되어 있다.The image obtaining unit 41 is configured to obtain, within the field depth range, at least two images having different field depths as the subject to be photographed.

선택적으로, 이미지 획득 유닛(41)은 사진촬영될 피사체를 포함하는 기준 이미지를 실시간으로 수집하도록 추가로 구성되어 있으며,Alternatively, the image acquiring unit 41 is further configured to collect, in real time, a reference image including a subject to be photographed,

상기 필드 깊이 범위 획득 유닛(47)은 구체적으로, 사용자에 의해 발부되고 기준 이미지에 포함되는 적어도 2개의 초점을 획득하며, 상기 적어도 2개의 초점에 대응하는 피사체를 커버하는 필드 깊이 범위를 획득하도록 구성되어 있다.The field depth range acquiring unit 47 is specifically configured to acquire at least two focuses issued by the user and included in the reference image, and to obtain a field depth range covering the subject corresponding to the at least two focuses .

선택적으로, 도 5에 도시된 바와 같이, 전자 기기(4)는:Alternatively, as shown in Fig. 5, the electronic device 4 may comprise:

적어도 2개의 이미지에 대해 글로벌 등록을 수행하도록 구성되어 있는 글로벌 등록 유닛(48)A global registration unit (48) configured to perform global registration for at least two images,

을 더 포함한다..

본 발명의 본 실시예에서 제공하는 전자 기기는 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지의 각각의 이미지의 목표 영역(즉, 리포커싱 영역)의 화질에 따라 리포커싱을 수행한다. 이 방법에서, 전자 기기는 여러 대의 카메라 또는 레이저/적외선 측정 기기를 구비함이 없이 리포커싱을 실행할 수 있으며, 이에 의해 종래기술에 비해 리포커싱의 비용을 절감할 수 있다.The electronic apparatus provided in the present embodiment of the present invention performs re-focusing according to the image quality of a target area (i.e., a refocusing area) of each image of at least two images having different field depths while being a subject to be photographed. In this method, the electronic device can perform refocusing without having a plurality of cameras or laser / infrared measurement devices, thereby reducing the cost of re-focusing compared to the prior art.

실시예Example 4 4

도 6은 본 발명의 실시예에 따라 리포커싱을 실행하는 전자 기기(6)를 도시하고 있으며, 상기 전자 기기(6)는 도 1에 도시된 리포커싱 방법을 실행하도록 구성되어 있고, 메모리(61) 및 프로세서(62)를 포함한다.Fig. 6 shows an electronic device 6 that performs re-focusing in accordance with an embodiment of the present invention. The electronic device 6 is configured to execute the re-focusing method shown in Fig. 1, and the memory 61 And a processor 62.

메모리(61)는 한 그룹의 코드를 저장하도록 구성되어 있고, 상기 코드는 프로세서(62)가 이하의 동작:The memory 61 is configured to store a group of codes, which code allows the processor 62 to perform the following operations:

사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하고;Acquiring at least two images that are subjects to be photographed and have different field depths;

상기 적어도 2개의 이미지 중 하나의 이미지의 부분적인 영역에 대해 사용자에 의해 수행되는 명령 시행을 획득하고;Obtaining an instruction execution performed by a user for a partial area of one of the at least two images;

상기 명령 시행에 따라 목표 영역을 결정하고;Determine a target area in accordance with the instruction execution;

상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질(definition)을 획득하며; 그리고Obtain a definition of a target area in each of the at least two images; And

상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하는 것을 수행하도록 제어하는 데 사용된다.And to generate the target image according to the image quality of the target area in each of the at least two images.

선택적으로, 프로세서(62)는 구체적으로:Optionally, the processor 62 may be configured to:

상기 적어도 2개의 이미지로부터, 상기 목표 영역의 화질이 미리 정해진 조건을 충족하는 K개의 이미지를 획득하고 - 여기서 K≥1이고, K는 정수이며, 상기 미리 정해진 조건은: 상기 화질은 제1 임계값보다 크거나 같다, 상기 화질은 제2 임계값보다 작거나 같다, 및 상기 화질은 사전설정된 값 범위 내에 있다 중 어느 하나임 - ;From the at least two images, the image quality of the target area satisfies a predetermined condition, where K > = 1 and K is an integer, the predetermined condition being: the image quality is a first threshold The image quality is less than or equal to a second threshold, and the image quality is within a predetermined value range;

K=1일 때, 상기 미리 정해진 조건을 충족하는 이미지를 상기 목표 이미지로서 사용하며; 그리고 K>1일 때, 상기 미리 정해진 조건을 충족하는 K개의 이미지를 합성하여 상기 목표 이미지를 생성하도록 구성되어 있다.When K = 1, uses an image satisfying the predetermined condition as the target image; And when K > 1, composes K images satisfying the predetermined condition to generate the target image.

선택적으로, K=1일 때, 프로세서(62)는 리포커싱 모드를 획득하도록 추가로 구성되어 있으며, 여기서 상기 리포커싱 모드는 깨끗한 리포커싱 모드 또는 흐릿한 리포커싱 모드를 포함하고, 상기 깨끗한 리포커싱 모드는 상기 적어도 2개의 이미지 중 최고화질을 가지는 목표 영역의 이미지에 따라 목표 이미지를 생성하도록 전자 기기에 명령하도록 구성되어 있고, 상기 흐릿한 리포커싱 모드는 상기 적어도 2개의 이미지 중 최저화질을 가지는 목표 영역의 이미지에 따라 목표 이미지를 생성하도록 전자 기기에 명령하도록 구성되어 있으며, Optionally, when K = 1, the processor 62 is further configured to obtain a re-focusing mode, wherein the re-focusing mode includes a clean re-focusing mode or a blurred re-focusing mode, Is configured to instruct the electronic device to generate a target image according to an image of a target area having the highest image quality among the at least two images, and the blurred re-focusing mode is configured to instruct the electronic device And to instruct the electronic device to generate a target image according to the image,

상기 프로세서는 구체적으로 상기 리포커싱 모드 및 상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하도록 구성되어 있다.The processor is configured to generate a target image in accordance with the quality of the target area in each of the refocusing mode and the at least two images in detail.

선택적으로, 프로세서(62)는 구체적으로:Optionally, the processor 62 may be configured to:

상기 명령 시행이 수행되는 영역을 상기 목표 영역으로 사용하거나; 또는Using the region in which the command execution is performed as the target region; or

상기 명령 시행이 수행되는 영역이 얼굴 영역일 때, 상기 얼굴 영역을 상기 목표 영역으로 사용하거나; 또는Using the face region as the target region when the region in which the command execution is performed is a face region; or

상기 명령 시행이 수행되는 영역 내에 있는 포인트가 중심인 영역을 상기 목표 영역으로 사용하도록 구성되어 있다.And to use, as the target area, an area centered at a point within the area where the command execution is performed.

선택적으로, 프로세서(62)는 상기 사용자에 의해 발부되는, 상기 사진촬영될 피사체의 필드 깊이 범위를 획득하도록 추가로 구성되어 있으며,Optionally, the processor 62 is further configured to obtain a field depth range of the subject to be photographed, issued by the user,

프로세서(62)는 구체적으로, 상기 필드 깊이 범위 내에서, 상기 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하도록 구성되어 있다.The processor 62 is specifically configured to obtain, within the field depth range, at least two images that are the subject to be photographed and have different field depths.

선택적으로, 프로세서(62)는 사진촬영될 피사체를 포함하는 기준 이미지를 실시간으로 수집하도록 추가로 구성되어 있으며,Optionally, the processor 62 is further configured to collect in real time a reference image comprising a subject to be photographed,

상기 프로세서(62)는 구체적으로 상기 사용자에 의해 발부되고 상기 기준 이미지에 포함되는 적어도 2개의 초점을 획득하며; 그리고 상기 적어도 2개의 초점에 대응하는 피사체를 커버하는 필드 깊이 범위를 획득하도록 구성되어 있다.The processor 62 specifically obtains at least two focuses issued by the user and included in the reference image; And to obtain a field depth range covering an object corresponding to the at least two focal points.

선택적으로, 프로세서(62)는 상기 적어도 2개의 이미지에 대해 글로벌 등록을 수행하도록 추가로 구성되어 있다.Optionally, the processor 62 is further configured to perform global registration for the at least two images.

본 발명의 본 실시예에서 제공하는 전자 기기는 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지의 각각의 이미지의 목표 영역(즉, 리포커싱 영역)의 화질에 따라 리포커싱을 수행한다. 이 방법에서, 전자 기기는 여러 대의 카메라 또는 레이저/적외선 측정 기기를 구비함이 없이 리포커싱을 실행할 수 있으며, 이에 의해 종래기술에 비해 리포커싱의 비용을 절감할 수 있다.The electronic apparatus provided in the present embodiment of the present invention performs re-focusing according to the image quality of a target area (i.e., a refocusing area) of each image of at least two images having different field depths while being a subject to be photographed. In this method, the electronic device can perform refocusing without having a plurality of cameras or laser / infrared measurement devices, thereby reducing the cost of re-focusing compared to the prior art.

당업자라면 설명을 쉽고 간략하게 하기 위해, 전술한 시스템, 장치, 및 유닛에 대한 상세한 작업 프로세스에 대해서는, 전술한 방법 실시예를 참조하면 된다는 것을 명확하게 이해할 수 있을 것이며, 그 상세한 설명에 대해서는 여기서 다시 설명하지 않는다.It will be clear to those skilled in the art that for the sake of simplicity and simplicity, reference will be made to the above-described method embodiments for a detailed working process of the systems, devices, and units described above, I do not explain.

본 출원에서 제공하는 수 개의 실시예에서, 전술한 시스템, 장치, 및 방법은 다른 방식으로도 실현될 수 있다는 것은 물론이다. 예를 들어, 설명된 장치 실시예는 단지 예시에 불과하다. 예를 들어, 유닛의 분할은 단지 일종의 논리적 기능 분할일 뿐이며, 실제의 실행 동안 다른 분할 방식으로 있을 수 있다. 예를 들어, 복수의 유닛 또는 구성요소를 다른 시스템에 결합 또는 통합할 수 있거나, 또는 일부의 특징은 무시하거나 수행하지 않을 수도 있다. 또한, 도시되거나 논의된 상호 커플링 또는 직접 결합 또는 통신 접속은 일부의 인터페이스를 통해 실현될 수 있다. 장치 또는 유닛 간의 직접 결합 또는 통신 접속은 전자식, 기계식 또는 다른 형태로 실현될 수 있다.It goes without saying that, in the several embodiments provided in this application, the above-described systems, apparatuses, and methods may be realized in other ways. For example, the described apparatus embodiments are illustrative only. For example, the partitioning of a unit is merely a sort of logical functional partition, and may be in a different partitioning scheme during actual execution. For example, multiple units or components may be combined or integrated into different systems, or some features may be disregarded or not performed. Further, mutual coupling or direct coupling or communication connection shown or discussed may be realized through some interface. Direct coupling or communication connections between devices or units may be realized in electronic, mechanical or other forms.

별도의 부분으로 설명된 유닛들은 물리적으로 별개일 수 있고 아닐 수도 있으며, 유닛으로 도시된 부분은 물리적 유닛일 수도 있고 아닐 수도 있으며, 한 위치에 위치할 수도 있고, 복수의 네트워크 유닛에 분산될 수도 있다. 유닛 중 일부 또는 전부는 실제의 필요에 따라 선택되어 실시예의 솔루션의 목적을 달성할 수 있다.The units described as separate parts may or may not be physically separate, and the parts depicted as units may or may not be physical units, may be located at one location, or may be distributed to a plurality of network units . Some or all of the units may be selected according to actual needs to achieve the object of the solution of the embodiment.

또한, 본 발명의 실시예에서의 기능 유닛은 하나의 프로세싱 유닛으로 통합될 수 있거나, 각각의 유닛이 물리적으로 단독으로 존재할 수도 있거나, 2개 이상의 유닛이 하나의 유닛으로 통합될 수도 있다. 통합 유닛은 하드웨어의 형태로 실현될 수도 있고, 소프트웨어 기능 유닛의 형태로 실현될 수도 있다.Further, the functional units in the embodiment of the present invention may be integrated into one processing unit, or each unit may physically exist alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of a software functional unit.

통합 유닛이 소프트웨어 기능 유닛의 형태로 실현되어 독립 제품으로 시판되거나 사용되면, 이 통합 유닛은 컴퓨터 판독 가능형 저장 매체에 저장될 수 있다. 이러한 이해를 바탕으로, 본 발명의 필수적 기술적 솔루션 또는, 또는 종래기술에 기여하는 부분, 또는 기술적 솔루션의 일부는 소프트웨어 제품의 형태로 실현될 수 있다. 컴퓨터 소프트웨어 제품은 저장 매체에 저장되고, 본 발명의 실시예에 설명된 방법의 단계 중 일부 또는 전부를 수행하도록 컴퓨터 장치(이것은 퍼스널 컴퓨터, 서버, 또는 네트워크 장치 등이 될 수 있다)에 명령하는 수개의 명령어를 포함한다. 전술한 저장 매체는: 프로그램 코드를 저장할 수 있는 임의의 저장 매체, 예를 들어, USB 플래시 디스크, 휴대형 하드디스크, 리드-온리 메모리(ROM), 랜덤 액세스 메모리(RAM), 자기디스크 또는 광디스크를 포함한다.If the integrated unit is realized in the form of a software functional unit and is marketed or used as a stand-alone product, then this integrated unit can be stored in a computer-readable storage medium. Based on this understanding, essential technical solutions of the present invention, or portions contributing to the prior art, or parts of technical solutions, can be realized in the form of software products. The computer software product is stored on a storage medium and can be a computer software product (which may be a personal computer, a server, a network device, or the like) to perform some or all of the steps of the method described in the embodiments of the present invention. Lt; / RTI > commands. The above-mentioned storage medium includes: a storage medium such as a USB flash disk, a portable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk do.

마지막으로, 전술한 실시예는 본 발명의 기술적 솔루션을 설명하기 위한 것에 지나지 않으며, 본 발명을 제한하려는 것이 아님에 유의해야 한다. 본 발명을 전술한 실시예를 참조하여 설명하였으나, 당업자라면 전술한 실시예에 설명된 기술적 솔루션에 대한 수정, 또는 기술적 특징 중 일부 또는 전부에 대한 등가의 대체는 대응하는 기술적 솔루션의 본질이 본 발명의 실시예의 기술적 솔루션의 범위를 벗어나지 않는 한, 이러한 변형 또는 대체를 수행할 수 있다는 것을 이해할 수 있을 것이다.Finally, it should be noted that the above-described embodiments are merely illustrative of technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described with reference to the above embodiments, those skilled in the art will appreciate that modifications to the technical solutions described in the foregoing embodiments, or equivalents to some or all of the technical features, It is to be understood that such variations or substitutions may be made without departing from the scope of the technical solution of the embodiment of Fig.

Claims (14)

리포커싱을 실행하는 방법으로서,
상기 방법은 전자 기기에 적용되며,
사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하는 단계;
상기 적어도 2개의 이미지 중 하나의 이미지의 부분적인 영역에 대해 사용자에 의해 수행되는 명령 시행(instruction operation)을 획득하는 단계;
상기 명령 시행에 따라 목표 영역을 결정하는 단계;
상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질(definition)을 획득하는 단계; 및
상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하는 단계
를 포함하는 리포커싱을 실행하는 방법.
1. A method of performing re-focusing,
The method is applied to an electronic device,
Obtaining at least two images that are subjects to be photographed and have different field depths;
Obtaining an instruction operation performed by a user for a partial area of one of the at least two images;
Determining a target area in accordance with the instruction execution;
Obtaining a definition of a target area in each of the at least two images; And
Generating a target image according to an image quality of a target area in each of the at least two images
Gt; a < / RTI >
제1항에 있어서,
상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하는 단계는,
상기 적어도 2개의 이미지로부터, 상기 목표 영역의 화질이 미리 정해진 조건을 충족하는 K개의 이미지를 획득하는 단계 - 여기서 K≥1이고, K는 정수이며, 상기 미리 정해진 조건은: 상기 화질은 제1 임계값보다 크거나 같다, 상기 화질은 제2 임계값보다 작거나 같다, 및 상기 화질은 사전설정된 값 범위 내에 있다 중 어느 하나임 - ;
K=1일 때, 상기 미리 정해진 조건을 충족하는 이미지를 상기 목표 이미지로서 사용하는 단계; 및
K>1일 때, 상기 미리 정해진 조건을 충족하는 K개의 이미지를 합성하여 상기 목표 이미지를 생성하는 단계
를 포함하는, 리포커싱을 실행하는 방법.
The method according to claim 1,
Wherein the step of generating the target image according to the image quality of the target area in each of the at least two images comprises:
Obtaining, from the at least two images, K images in which the image quality of the target area satisfies a predetermined condition, where K? 1, K is an integer, and the predetermined condition is: The image quality is less than or equal to a second threshold, and the image quality is within a predetermined value range;
When K = 1, using an image satisfying the predetermined condition as the target image; And
When K > 1, generating the target image by synthesizing K images satisfying the predetermined condition
≪ / RTI >
제2항에 있어서,
K=1일 때, 상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하는 단계 이전에, 상기 방법은,
리포커싱 모드를 획득하는 단계
를 더 포함하며,
상기 리포커싱 모드는 깨끗한 리포커싱 모드(clear refocusing mode) 또는 흐릿한 리포커싱 모드(blurred refocusing mode)를 포함하고, 상기 깨끗한 리포커싱 모드는 상기 적어도 2개의 이미지 중 최고화질을 가지는 목표 영역의 이미지에 따라 목표 이미지를 생성하도록 전자 기기에 명령하도록 구성되어 있고, 상기 흐릿한 리포커싱 모드는 상기 적어도 2개의 이미지 중 최저화질을 가지는 목표 영역의 이미지에 따라 목표 이미지를 생성하도록 전자 기기에 명령하도록 구성되어 있으며,
상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하는 단계는,
상기 리포커싱 모드 및 상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하는 단계
를 포함하는, 리포커싱을 실행하는 방법.
3. The method of claim 2,
Prior to the step of generating a target image according to the image quality of the target area in each of the at least two images when K = 1,
The step of acquiring the re-focusing mode
Further comprising:
Wherein the refocusing mode includes a clear refocusing mode or a blurred refocusing mode and the clean refocusing mode includes a refreshing mode depending on an image of a target area having the highest image quality among the at least two images, Wherein the blurred refocusing mode is configured to instruct the electronic device to generate a target image according to an image of a target area having a lowest image quality among the at least two images,
Wherein the step of generating the target image according to the image quality of the target area in each of the at least two images comprises:
Generating a target image according to the quality of the target area in each of the at least two images and the refocusing mode
≪ / RTI >
제1항에 있어서,
상기 명령 시행에 따라 목표 영역을 결정하는 단계는,
상기 명령 시행이 수행되는 영역을 상기 목표 영역으로 사용하는 단계; 또는
상기 명령 시행이 수행되는 영역이 얼굴 영역일 때, 상기 얼굴 영역을 상기 목표 영역으로 사용하는 단계; 또는
상기 명령 시행이 수행되는 영역 내에 있는 포인트가 중심인 영역을 상기 목표 영역으로 사용하는 단계
를 포함하는, 리포커싱을 실행하는 방법.
The method according to claim 1,
Wherein the step of determining a target area in response to the instruction execution comprises:
Using the region in which the command execution is performed as the target region; or
Using the face region as the target region when the region in which the command execution is performed is a face region; or
Using an area centered at a point within an area in which the command execution is performed as the target area
≪ / RTI >
제1항에 있어서,
상기 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하는 단계 이전에, 상기 방법은,
상기 사용자에 의해 발부되는, 상기 사진촬영될 피사체의 필드 깊이 범위(depth-of-field range)를 획득하는 단계
를 더 포함하고,
상기 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하는 단계는,
상기 필드 깊이 범위 내에서, 상기 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하는 단계
를 포함하는, 리포커싱을 실행하는 방법.
The method according to claim 1,
Before the step of acquiring at least two images having different field depths as the subject to be photographed,
Obtaining a depth-of-field range of the subject to be photographed, which is issued by the user,
Further comprising:
Wherein acquiring at least two images having different field depths as the subject to be photographed,
Obtaining, within said field depth range, at least two images having different field depths from said subject to be photographed
≪ / RTI >
제5항에 있어서,
상기 사용자에 의해 발부되는, 상기 사진촬영될 피사체의 필드 깊이 범위를 획득하는 단계 이전에, 상기 방법은,
상기 사진촬영될 피사체를 포함하는 기준 이미지를 실시간으로 수집하는 단계;
를 더 포함하며,
상기 사용자에 의해 발부되는, 상기 사진촬영될 피사체의 필드 깊이 범위를 획득하는 단계는,
상기 사용자에 의해 발부되고 상기 기준 이미지에 포함되는 적어도 2개의 초점을 획득하는 단계; 및
상기 적어도 2개의 초점에 대응하는 피사체를 커버하는 필드 깊이 범위를 획득하는 단계
를 포함하는, 리포커싱을 실행하는 방법.
6. The method of claim 5,
Prior to obtaining a field depth range of the subject to be photographed, issued by the user,
Collecting in real time a reference image including the subject to be photographed;
Further comprising:
Wherein acquiring a field depth range of the subject to be photographed, which is issued by the user,
Obtaining at least two foci issued by the user and included in the reference image; And
Obtaining a field depth range covering a subject corresponding to the at least two focuses
≪ / RTI >
제1항에 있어서,
상기 적어도 2개의 이미지 중 하나의 이미지의 부분적인 영역에 대해 사용자에 의해 수행되는 명령 시행을 획득하는 단계 이전에, 상기 방법은,
상기 적어도 2개의 이미지에 대해 글로벌 등록(global registration)을 수행하는 단계
를 더 포함하는 리포커싱을 실행하는 방법.
The method according to claim 1,
Prior to obtaining an instruction execution performed by a user for a partial area of one of the at least two images,
Performing global registration on the at least two images
≪ / RTI >
리포커싱을 실행하는 전자 기기로서,
사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하도록 구성되어 있는 이미지 획득 유닛;
상기 적어도 2개의 이미지 중 하나의 이미지의 부분적인 영역에 대해 사용자에 의해 수행되는 명령 시행을 획득하도록 구성되어 있는 명령 시행 획득 유닛;
상기 명령 시행에 따라 목표 영역을 결정하도록 구성되어 있는 결정 유닛;
상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질을 획득하도록 구성되어 있는 화질 획득 유닛; 및
상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하도록 구성되어 있는 생성 유닛
을 포함하는 전자 기기.
An electronic device for performing re-focusing,
An image acquisition unit configured to acquire at least two images that are subjects to be photographed but have different field depths;
An instruction execution acquiring unit configured to acquire an instruction execution performed by a user for a partial area of one of the at least two images;
A determination unit configured to determine a target area in accordance with the instruction execution;
An image quality acquiring unit configured to acquire an image quality of a target area in each of the at least two images; And
A generating unit configured to generate a target image according to an image quality of a target area in each of the at least two images,
.
제8항에 있어서,
상기 생성 유닛은,
상기 적어도 2개의 이미지로부터, 상기 목표 영역의 화질이 미리 정해진 조건을 충족하는 K개의 이미지를 획득하고 - 여기서 K≥1이고, K는 정수이며, 상기 미리 정해진 조건은: 상기 화질은 제1 임계값보다 크거나 같다, 상기 화질은 제2 임계값보다 작거나 같다, 및 상기 화질은 사전설정된 값 범위 내에 있다 중 어느 하나임 - ;
K=1일 때, 상기 미리 정해진 조건을 충족하는 이미지를 상기 목표 이미지로서 사용하며; 그리고
K>1일 때, 상기 미리 정해진 조건을 충족하는 K개의 이미지를 합성하여 상기 목표 이미지를 생성하도록 구성되어 있는, 전자 기기.
9. The method of claim 8,
Wherein the generating unit comprises:
From the at least two images, the image quality of the target area satisfies a predetermined condition, where K > = 1 and K is an integer, the predetermined condition being: the image quality is a first threshold The image quality is less than or equal to a second threshold, and the image quality is within a predetermined value range;
When K = 1, uses an image satisfying the predetermined condition as the target image; And
And when K > 1, composes K images satisfying the predetermined condition to generate the target image.
제9항에 있어서,
K=1일 때, 상기 전자 기기는,
리포커싱 모드를 획득하도록 구성되어 있는 모드 획득 유닛
을 더 포함하며,
상기 리포커싱 모드는 깨끗한 리포커싱 모드 또는 흐릿한 리포커싱 모드를 포함하고, 상기 깨끗한 리포커싱 모드는 상기 적어도 2개의 이미지 중 최고화질을 가지는 목표 영역의 이미지에 따라 목표 이미지를 생성하도록 전자 기기에 명령하도록 구성되어 있고, 상기 흐릿한 리포커싱 모드는 상기 적어도 2개의 이미지 중 최저화질을 가지는 목표 영역의 이미지에 따라 목표 이미지를 생성하도록 전자 기기에 명령하도록 구성되어 있으며,
상기 생성 유닛은 상기 리포커싱 모드 및 상기 적어도 2개의 이미지 각각에서의 목표 영역의 화질에 따라 목표 이미지를 생성하도록 구성되어 있는, 전자 기기.
10. The method of claim 9,
When K = 1,
A mode acquisition unit configured to acquire a re-focusing mode
Further comprising:
Wherein the refocusing mode includes a clean refocusing mode or a blurry refocusing mode and the clean refocusing mode instructs the electronic device to generate a target image according to an image of a target region having the highest image quality among the at least two images Wherein the blurred re-focusing mode is configured to instruct the electronic device to generate a target image according to an image of a target area having the lowest image quality among the at least two images,
Wherein the generating unit is configured to generate a target image according to the image quality of the target area in each of the refocusing mode and the at least two images.
제8항에 있어서,
상기 결정 유닛은,
상기 명령 시행이 수행되는 영역을 상기 목표 영역으로 사용하거나; 또는
상기 명령 시행이 수행되는 영역이 얼굴 영역일 때, 상기 얼굴 영역을 상기 목표 영역으로 사용하거나; 또는
상기 명령 시행이 수행되는 영역 내에 있는 포인트가 중심인 영역을 상기 목표 영역으로 사용하도록 구성되어 있는, 전자 기기.
9. The method of claim 8,
The determination unit determines,
Using the region in which the command execution is performed as the target region; or
Using the face region as the target region when the region in which the command execution is performed is a face region; or
And an area in which the point within the area in which the instruction execution is performed is the center is used as the target area.
제8항에 있어서,
상기 전자 기기는,
상기 사용자에 의해 발부되는, 상기 사진촬영될 피사체의 필드 깊이 범위를 획득하도록 구성되어 있는 필드 깊이 범위 획득 유닛
을 더 포함하고,
상기 이미지 획득 유닛은, 상기 필드 깊이 범위 내에서, 상기 사진촬영될 피사체이면서 상이한 필드 깊이를 가지는 적어도 2개의 이미지를 획득하도록 구성되어 있는, 전자 기기.
9. The method of claim 8,
The electronic device includes:
A field depth range acquisition unit, configured to obtain a field depth range of the subject to be photographed,
Further comprising:
Wherein the image acquiring unit is configured to acquire at least two images within the field depth range, the object having a different field depth from the subject to be photographed.
제12항에 있어서,
상기 이미지 획득 유닛은 상기 사진촬영될 피사체를 포함하는 기준 이미지를 실시간으로 수집하도록 추가로 구성되어 있으며,
상기 필드 깊이 범위 획득 유닛은, 상기 사용자에 의해 발부되고 상기 기준 이미지에 포함되는 적어도 2개의 초점을 획득하며, 상기 적어도 2개의 초점에 대응하는 피사체를 커버하는 필드 깊이 범위를 획득하도록 구성되어 있는, 전자 기기.
13. The method of claim 12,
Wherein the image acquisition unit is further configured to collect a reference image including the subject to be photographed in real time,
Wherein the field depth range acquisition unit is configured to acquire at least two focuses issued by the user and included in the reference image and to obtain a field depth range covering a subject corresponding to the at least two focuses, Electronics.
제8항에 있어서,
상기 전자 기기는,
상기 적어도 2개의 이미지에 대해 글로벌 등록을 수행하도록 구성되어 있는 글로벌 등록 유닛
을 더 포함하는 전자 기기.
9. The method of claim 8,
The electronic device includes:
A global registration unit configured to perform global registration for the at least two images,
And an electronic device.
KR1020150054532A 2014-04-17 2015-04-17 Method and electronic device for implementing refocusing KR101612727B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410153998.9A CN103973978B (en) 2014-04-17 2014-04-17 It is a kind of to realize the method focused again and electronic equipment
CN201410153998.9 2014-04-17

Publications (2)

Publication Number Publication Date
KR20150120317A true KR20150120317A (en) 2015-10-27
KR101612727B1 KR101612727B1 (en) 2016-04-15

Family

ID=51242969

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020150054532A KR101612727B1 (en) 2014-04-17 2015-04-17 Method and electronic device for implementing refocusing

Country Status (5)

Country Link
US (1) US20150304545A1 (en)
EP (1) EP2940655A1 (en)
JP (1) JP6047807B2 (en)
KR (1) KR101612727B1 (en)
CN (1) CN103973978B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190074455A (en) 2017-12-20 2019-06-28 (주)이더블유비엠 Method, apparatus and program sotred in recording medium for refocucing of planar image
KR20190096237A (en) * 2018-02-08 2019-08-19 망고슬래브 주식회사 System, method and computer readable recording medium for taking a phtography to paper and sharing to server

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105451010A (en) * 2014-08-18 2016-03-30 惠州友华微电子科技有限公司 Depth of field acquisition device and acquisition method
CN104394308B (en) * 2014-11-28 2017-11-07 广东欧珀移动通信有限公司 Method and terminal that dual camera is taken pictures with different visual angles
CN104333703A (en) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 Method and terminal for photographing by virtue of two cameras
CN106303202A (en) * 2015-06-09 2017-01-04 联想(北京)有限公司 A kind of image information processing method and device
CN105187722B (en) * 2015-09-15 2018-12-21 努比亚技术有限公司 Depth of field adjusting method, device and terminal
JP6700813B2 (en) 2016-01-29 2020-05-27 キヤノン株式会社 Image processing device, imaging device, image processing method, and program
CN105611174A (en) * 2016-02-29 2016-05-25 广东欧珀移动通信有限公司 Control method, control apparatus and electronic apparatus
CN105812656B (en) * 2016-02-29 2019-05-31 Oppo广东移动通信有限公司 Control method, control device and electronic device
CN106161945A (en) * 2016-08-01 2016-11-23 乐视控股(北京)有限公司 Take pictures treating method and apparatus
KR20180078596A (en) * 2016-12-30 2018-07-10 삼성전자주식회사 Method and electronic device for auto focus
CN106791684A (en) * 2016-12-31 2017-05-31 深圳市乐信兴业科技有限公司 Electronic equipment tracking and relevant apparatus and system and mobile terminal
US10915114B2 (en) 2017-07-27 2021-02-09 AI Incorporated Method and apparatus for combining data to construct a floor plan
US11348269B1 (en) * 2017-07-27 2022-05-31 AI Incorporated Method and apparatus for combining data to construct a floor plan
CN107749944A (en) * 2017-09-22 2018-03-02 华勤通讯技术有限公司 A kind of image pickup method and device
CN108111749B (en) * 2017-12-06 2020-02-14 Oppo广东移动通信有限公司 Image processing method and device
CN108419009B (en) * 2018-02-02 2020-11-03 成都西纬科技有限公司 Image definition enhancing method and device
CN112740649A (en) * 2019-12-12 2021-04-30 深圳市大疆创新科技有限公司 Photographing method, photographing apparatus, and computer-readable storage medium
CN112532881B (en) * 2020-11-26 2022-07-05 维沃移动通信有限公司 Image processing method and device and electronic equipment
CN112672055A (en) * 2020-12-25 2021-04-16 维沃移动通信有限公司 Photographing method, device and equipment
CN112954204B (en) * 2021-02-04 2022-09-02 展讯通信(上海)有限公司 Photographing control method and device, storage medium and terminal
CN113873160B (en) * 2021-09-30 2024-03-05 维沃移动通信有限公司 Image processing method, device, electronic equipment and computer storage medium
CN115567783B (en) * 2022-08-29 2023-10-24 荣耀终端有限公司 Image processing method

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002158899A (en) * 2000-11-16 2002-05-31 Minolta Co Ltd Image pickup device
JP2003143461A (en) * 2001-11-01 2003-05-16 Seiko Epson Corp Digital still camera
US7653298B2 (en) * 2005-03-03 2010-01-26 Fujifilm Corporation Image capturing apparatus, image capturing method, image capturing program, image recording output system and image recording output method
JP4777087B2 (en) * 2005-03-03 2011-09-21 富士フイルム株式会社 Imaging apparatus, imaging method, imaging program, image recording output system, and image recording output method
JP4802884B2 (en) * 2006-06-19 2011-10-26 カシオ計算機株式会社 Imaging apparatus, captured image recording method, and program
JP4935302B2 (en) * 2006-11-02 2012-05-23 株式会社ニコン Electronic camera and program
US8559705B2 (en) * 2006-12-01 2013-10-15 Lytro, Inc. Interactive refocusing of electronic images
US8279325B2 (en) * 2008-11-25 2012-10-02 Lytro, Inc. System and method for acquiring, editing, generating and outputting video data
JP5748579B2 (en) * 2011-06-30 2015-07-15 キヤノン株式会社 Image composition device, imaging device, control method thereof, and control program
US9501834B2 (en) * 2011-08-18 2016-11-22 Qualcomm Technologies, Inc. Image capture for later refocusing or focus-manipulation
JP5822613B2 (en) * 2011-09-12 2015-11-24 キヤノン株式会社 Image processing apparatus and image processing method
JP6207202B2 (en) 2012-06-08 2017-10-04 キヤノン株式会社 Image processing apparatus and image processing method
US20130329068A1 (en) * 2012-06-08 2013-12-12 Canon Kabushiki Kaisha Image processing apparatus and image processing method
GB2503656B (en) * 2012-06-28 2014-10-15 Canon Kk Method and apparatus for compressing or decompressing light field images
KR101487516B1 (en) * 2012-09-28 2015-01-30 주식회사 팬택 Apparatus and method for multi-focus image capture using continuous auto focus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190074455A (en) 2017-12-20 2019-06-28 (주)이더블유비엠 Method, apparatus and program sotred in recording medium for refocucing of planar image
KR20190096237A (en) * 2018-02-08 2019-08-19 망고슬래브 주식회사 System, method and computer readable recording medium for taking a phtography to paper and sharing to server

Also Published As

Publication number Publication date
EP2940655A1 (en) 2015-11-04
CN103973978B (en) 2018-06-26
JP6047807B2 (en) 2016-12-21
JP2015208001A (en) 2015-11-19
KR101612727B1 (en) 2016-04-15
US20150304545A1 (en) 2015-10-22
CN103973978A (en) 2014-08-06

Similar Documents

Publication Publication Date Title
KR101612727B1 (en) Method and electronic device for implementing refocusing
JP6730690B2 (en) Dynamic generation of scene images based on the removal of unwanted objects present in the scene
JP6292867B2 (en) Image capturing apparatus and method for capturing composite image
CN108076278B (en) Automatic focusing method and device and electronic equipment
US8315443B2 (en) Viewpoint detector based on skin color area and face area
TWI538512B (en) Method for adjusting focus position and electronic apparatus
WO2016168783A1 (en) Methods and apparatus for filtering image data to reduce noise and/or generating an image
US20150103139A1 (en) Photograph Shooting Method And Electronic Device
KR20160121569A (en) Image processing method and image processing device
US20160050349A1 (en) Panoramic video
CN105245790A (en) Light filling method, device and mobile terminal
KR102335167B1 (en) Image photographing apparatus and method for photographing thereof
US20160050366A1 (en) Panoramic video
US20160292842A1 (en) Method and Apparatus for Enhanced Digital Imaging
CN113870213A (en) Image display method, image display device, storage medium, and electronic apparatus
JP5889022B2 (en) Imaging apparatus, image processing apparatus, image processing method, and program
CN105467741B (en) A kind of panorama photographic method and terminal
WO2021031210A1 (en) Video processing method and apparatus, storage medium, and electronic device
JP6089742B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
JP2015198340A (en) Image processing system and control method therefor, and program
JP6645711B2 (en) Image processing apparatus, image processing method, and program
CN113014820A (en) Processing method and device and electronic equipment
CN113014791B (en) Image generation method and device
JP2016103807A (en) Image processing device, image processing method, and program
CN114788254A (en) Auxiliary focusing method, device and system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20190319

Year of fee payment: 4