KR102457559B1 - Electronic device and method for correcting image based on object included image - Google Patents

Electronic device and method for correcting image based on object included image Download PDF

Info

Publication number
KR102457559B1
KR102457559B1 KR1020170134839A KR20170134839A KR102457559B1 KR 102457559 B1 KR102457559 B1 KR 102457559B1 KR 1020170134839 A KR1020170134839 A KR 1020170134839A KR 20170134839 A KR20170134839 A KR 20170134839A KR 102457559 B1 KR102457559 B1 KR 102457559B1
Authority
KR
South Korea
Prior art keywords
image
straight line
reference line
processor
line
Prior art date
Application number
KR1020170134839A
Other languages
Korean (ko)
Other versions
KR20190043032A (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 삼성전자 주식회사
Priority to KR1020170134839A priority Critical patent/KR102457559B1/en
Publication of KR20190043032A publication Critical patent/KR20190043032A/en
Application granted granted Critical
Publication of KR102457559B1 publication Critical patent/KR102457559B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/60Rotation of a whole image or part thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/001Image restoration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N5/23293

Abstract

본 발명은 이미지에 포함된 오브젝트에 기반하여 이미지를 보정하기 위한 전자 장치 및 방법에 관한 것으로, 본 발명의 다양한 실시예들에 따르면, 전자 장치는, 디스플레이, 및 프로세서를 포함하고, 상기 프로세서는, 이미지를 상기 디스플레이에 표시하고, 상기 이미지에 포함된 오브젝트에 적어도 기반하여 지정된 길이를 만족하는 적어도 하나 이상의 직선들을 검출하고, 상기 적어도 하나 이상의 직선들 중 적어도 하나를 기준선으로 결정하고, 및 상기 기준선이 상기 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 상기 이미지를 보정하도록 설정될 수 있다.
본 발명에 개시된 다양한 실시예들 이외의 다른 다양한 실시예가 가능하다.
The present invention relates to an electronic device and method for correcting an image based on an object included in an image. According to various embodiments of the present disclosure, the electronic device includes a display and a processor, the processor comprising: displaying an image on the display, detecting at least one or more straight lines satisfying a specified length based at least on an object included in the image, determining at least one of the at least one or more straight lines as a reference line, and the reference line is It may be set to correct the image so as to be parallel to at least one of a horizontal axis and a vertical axis of the image.
Various other embodiments are possible other than the various embodiments disclosed herein.

Description

이미지에 포함된 오브젝트에 기반하여 이미지를 보정하기 위한 전자 장치 및 방법 {ELECTRONIC DEVICE AND METHOD FOR CORRECTING IMAGE BASED ON OBJECT INCLUDED IMAGE}ELECTRONIC DEVICE AND METHOD FOR CORRECTING IMAGE BASED ON OBJECT INCLUDED IMAGE

본 발명의 다양한 실시예는 이미지에 포함된 오브젝트에 기반하여 이미지를 보정하기 위한 전자 장치 및 방법에 관한 것이다.Various embodiments of the present disclosure relate to an electronic device and method for correcting an image based on an object included in an image.

일반적으로 전자 장치는 피사체를 촬영하여 이미지 또는 동영상을 생성 및 저장할 수 있도록 카메라 기능을 제공하고 있다. 상기 카메라 기능을 통해 획득되는 이미지들 중 기울어진 이미지가 존재할 수 있다. 이런 경우, 전자 장치는 기울어진 이미지를 보정하기 위한 편집 기능을 제공하고 있다. 사용자는 기울어진 이미지를 보정하기 위한 편집 기능을 통해, 이미지의 각도를 조정하여 원하는 각도(예: 구도)의 이미지로 보정할 수 있다.In general, an electronic device provides a camera function to generate and store an image or a moving picture by photographing a subject. A tilted image may exist among the images acquired through the camera function. In this case, the electronic device provides an editing function for correcting a tilted image. The user can correct the image with a desired angle (eg, composition) by adjusting the angle of the image through the editing function for correcting the tilted image.

기울어진 이미지를 보정하기 위한 편집 기능을 통해, 이미지의 각도를 90도 회전 또는 미세한 각도(예: 1°)로 조정하는 세부적인 동작은 가능하지만, 이미지를 선택한 후 상기 이미지의 각도를 수동으로 조정해야 하는 사용자 입장에서는 불편할 수 있다.The editing function to correct skewed images allows the detailed operation of rotating the angle of an image by 90 degrees or adjusting it to a fine angle (eg 1°), but manually adjusting the angle of the image after selecting it It can be inconvenient for users who have to do it.

본 발명의 다양한 실시예에 따른 전자 장치는 기 설정된 조건에 기초하여 자동으로 결정된 기준선이 이미지의 가로 중심축 또는 세로 중심축 중 적어도 하나에 평행하도록 보정된 이미지를 제공할 수 있다.The electronic device according to various embodiments of the present disclosure may provide an image corrected so that a reference line automatically determined based on a preset condition is parallel to at least one of a horizontal central axis and a vertical central axis of the image.

본 발명의 다양한 실시예에 따른 전자 장치는 포함된 오브젝트에 기초하여 검출된 적어도 하나 이상의 직선들을 제공할 수 있다. 상기 적어도 하나 이상의 직선들은 이미지의 각도를 조정하기 위한 선으로, 사용자에 의해 선택 가능할 수 있다. 전자 장치는 적어도 하나 이상의 직선들 중 사용자에 의해 선택된 적어도 하나의 직선을 기준선으로 결정하고, 결정된 기준선이 이미지의 가로 중심축 또는 세로 중심축 중 적어도 하나에 평행하도록 보정된 이미지를 제공할 수 있다.The electronic device according to various embodiments of the present disclosure may provide at least one or more straight lines detected based on the included object. The at least one or more straight lines are lines for adjusting the angle of the image, and may be selectable by the user. The electronic device may determine at least one straight line selected by the user from among the one or more straight lines as a reference line, and provide an image corrected so that the determined reference line is parallel to at least one of a horizontal central axis or a vertical central axis of the image.

본 발명의 다양한 실시예들에 따르면, 전자 장치는, 디스플레이, 및 프로세서를 포함하고, 상기 프로세서는, 이미지를 상기 디스플레이에 표시하고, 상기 이미지에 포함된 오브젝트에 적어도 기반하여 지정된 길이를 만족하는 적어도 하나 이상의 직선들을 검출하고, 상기 적어도 하나 이상의 직선들 중 적어도 하나를 기준선으로 결정하고, 및 상기 기준선이 상기 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 상기 이미지를 보정하도록 설정될 수 있다.According to various embodiments of the present disclosure, an electronic device includes a display and a processor, wherein the processor displays an image on the display and at least meets a specified length based at least on an object included in the image. It may be configured to detect one or more straight lines, determine at least one of the at least one or more straight lines as a reference line, and correct the image so that the reference line is parallel to at least one of a horizontal axis or a vertical axis of the image.

본 발명의 다양한 실시예들에 따르면, 전자 장치의 이미지에 포함된 오브젝트에 기반하여 이미지를 보정하는 방법은, 이미지를 디스플레이에 표시하는 동작, 상기 이미지에 포함된 오브젝트에 적어도 기반하여 지정된 길이를 만족하는 적어도 하나 이상의 직선들을 검출하는 동작, 상기 적어도 하나 이상의 직선들 중 적어도 하나를 기준선으로 결정하는 동작, 및 상기 기준선이 상기 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 상기 이미지를 보정하는 동작을 포함할 수 있다. According to various embodiments of the present disclosure, a method of correcting an image based on an object included in an image of an electronic device satisfies a specified length based on at least an operation of displaying the image on a display and an object included in the image detecting at least one or more straight lines, determining at least one of the at least one or more straight lines as a reference line, and correcting the image so that the reference line is parallel to at least one of a horizontal axis or a vertical axis of the image can do.

본 발명의 다양한 실시예들에 따르면, 이미지에 포함된 오브젝트에 기반하여 이미지를 보정하는 방법을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록 매체에 있어서, 상기 방법은, 이미지를 디스플레이에 표시하는 동작, 상기 이미지에 포함된 오브젝트에 적어도 기반하여 지정된 길이를 만족하는 적어도 하나 이상의 직선들을 검출하는 동작, 상기 적어도 하나 이상의 직선들 중 적어도 하나를 기준선으로 결정하는 동작, 및 상기 기준선이 상기 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 상기 이미지를 보정하는 동작을 포함할 수 있다.According to various embodiments of the present invention, in a computer-readable recording medium recording a program for executing a method for correcting an image based on an object included in the image in a computer, the method includes: displaying, detecting at least one or more straight lines satisfying a specified length based at least on an object included in the image, determining at least one of the at least one or more straight lines as a reference line, and the reference line is the image and correcting the image to be parallel to at least one of a horizontal axis and a vertical axis.

본 발명의 다양한 실시예에 따른 전자 장치는 기 설정된 조건에 기초하여 결정된 기준선에 따라 보정된 이미지를 제공할 수 있다. 이에 따라, 사용자는 수동 조정이 아닌 기 설정된 조건에 기초하여 결정된 기준선을 통해 용이하고 정확하게 수평 또는 수직 구도에 맞는 이미지를 제공받을 수 있다.The electronic device according to various embodiments of the present disclosure may provide an image corrected according to a reference line determined based on a preset condition. Accordingly, the user may be provided with an image suitable for a horizontal or vertical composition easily and accurately through a reference line determined based on a preset condition rather than manual adjustment.

본 발명의 다양한 실시예들에 따르면, 전자 장치는 이미지에 포함된 오브젝트에 기초하여 상기 이미지의 구도를 조정하기 위한 하나 이상의 직선들을 사용자에게 제공할 수 있다. 이에 따라, 사용자는 기울어진 이미지를 원하는 구도의 이미지로 용이하게 편집할 수 있다. According to various embodiments of the present disclosure, the electronic device may provide the user with one or more straight lines for adjusting the composition of the image based on the object included in the image. Accordingly, the user can easily edit the tilted image into an image having a desired composition.

도 1은 다양한 실시예들에 따른 네트워크 환경 내의 이미지에 포함된 오브젝트에 기반하여 이미지를 보정하기 위한 전자 장치의 블록도이다.
도 2는 다양한 실시예들에 따른 카메라 모듈의 블록도이다.
도 3은 다양한 실시예들에 따른 이미지에 포함된 오브젝트에 기반하여 이미지를 보정하기 위한 전자 장치를 나타내는 블록도이다.
도 4는 다양한 실시예들에 따른 전자 장치에 의해 결정된 기준선에 기초하여 이미지를 보정하는 방법을 설명하기 위한 흐름도이다.
도 5a 및 도 5b는 다양한 실시예들에 따른 이미지를 보정하는 방법을 설명하기 위한 도면이다.
도 6은 다양한 실시예들에 따른 전자 장치에 의해 결정된 기준선에 기초하여 이미지를 보정하는 방법을 설명하기 위한 도면이다.
도 7은 다양한 실시예들에 따른 사용자에 의해 선택된 기준선에 기초하여 이미지를 보정하는 방법을 설명하기 위한 흐름도이다.
도 8은 다양한 실시예들에 따른 사용자에 의해 선택된 기준선에 기초하여 이미지를 보정하는 방법을 설명하기 위한 도면이다.
도 9는 다양한 실시예들에 따른 카메라 모듈로부터 획득되는 프리뷰 이미지에서 선택된 기준선에 기초하여 이미지를 보정하는 방법을 설명하기 위한 흐름도이다.
도 10은 다양한 실시예들에 따른 카메라 모듈로부터 획득되는 프리뷰 이미지에서 선택된 기준선에 기초하여 이미지를 보정하는 방법을 설명하기 위한 도면이다.
1 is a block diagram of an electronic device for correcting an image based on an object included in an image in a network environment according to various embodiments of the present disclosure;
2 is a block diagram of a camera module according to various embodiments.
3 is a block diagram illustrating an electronic device for correcting an image based on an object included in an image according to various embodiments of the present disclosure;
4 is a flowchart illustrating a method of correcting an image based on a reference line determined by an electronic device according to various embodiments of the present disclosure;
5A and 5B are diagrams for explaining a method of correcting an image according to various embodiments.
6 is a diagram for describing a method of correcting an image based on a reference line determined by an electronic device according to various embodiments of the present disclosure;
7 is a flowchart illustrating a method of correcting an image based on a reference line selected by a user according to various embodiments of the present disclosure;
8 is a diagram for describing a method of correcting an image based on a reference line selected by a user according to various embodiments of the present disclosure;
9 is a flowchart illustrating a method of correcting an image based on a reference line selected from a preview image obtained from a camera module according to various embodiments of the present disclosure;
10 is a diagram for describing a method of correcting an image based on a reference line selected from a preview image obtained from a camera module according to various embodiments of the present disclosure;

도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 이미지에 포함된 오브젝트에 기반하여 이미지를 보정하기 위한 전자 장치(101)의 블록도이다. 1 is a block diagram of an electronic device 101 for correcting an image based on an object included in an image in the network environment 100 according to various embodiments of the present disclosure.

도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신)를 통하여 전자 장치(104) 또는 서버(108)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 장치(150), 음향 출력 장치(155), 표시 장치(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 및 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 표시 장치(160) 또는 카메라 모듈(180))가 생략되거나 다른 구성 요소가 추가될 수 있다. 어떤 실시예에서는, 예를 들면, 표시 장치(160)(예: 디스플레이)에 임베디드된 센서 모듈(176)(예: 지문 센서, 홍채 센서, 또는 조도 센서)의 경우와 같이, 일부의 구성요소들이 통합되어 구현될 수 있다.Referring to FIG. 1 , in a network environment 100 , an electronic device 101 communicates with the electronic device 102 through a first network 198 (eg, short-range wireless communication) or a second network 199 ( For example, it may communicate with the electronic device 104 or the server 108 through long-distance wireless communication. According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120 , a memory 130 , an input device 150 , a sound output device 155 , a display device 160 , an audio module 170 , and a sensor module ( 176 , interface 177 , haptic module 179 , camera module 180 , power management module 188 , battery 189 , communication module 190 , subscriber identification module 196 , and antenna module 197 . ) may be included. In some embodiments, at least one of these components (eg, the display device 160 or the camera module 180 ) may be omitted or another component may be added to the electronic device 101 . In some embodiments, for example, as in the case of a sensor module 176 (eg, a fingerprint sensor, iris sensor, or illuminance sensor) embedded in a display device 160 (eg, a display), some components It can be integrated and implemented.

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 구동하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)을 제어할 수 있고, 다양한 데이터 처리 및 연산을 수행할 수 있다. 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 로드하여 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서), 및 이와는 독립적으로 운영되고, 추가적으로 또는 대체적으로, 메인 프로세서(121)보다 저전력을 사용하거나, 또는 지정된 기능에 특화된 보조 프로세서(123)(예: 그래픽 처리 장치, 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 여기서, 보조 프로세서(123)는 메인 프로세서(121)와 별개로 또는 임베디드되어 운영될 수 있다.The processor 120, for example, runs software (eg, the program 140) to execute at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120 . It can control and perform various data processing and operations. The processor 120 loads and processes commands or data received from other components (eg, the sensor module 176 or the communication module 190 ) into the volatile memory 132 , and stores the result data in the non-volatile memory 134 . can be stored in According to an embodiment, the processor 120 is operated independently of the main processor 121 (eg, central processing unit or application processor), and additionally or alternatively, uses less power than the main processor 121, Alternatively, the auxiliary processor 123 (eg, a graphic processing unit, an image signal processor, a sensor hub processor, or a communication processor) specialized for a specified function may be included. Here, the auxiliary processor 123 may be operated separately from or embedded in the main processor 121 .

이런 경우, 보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 수행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 표시 장치(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성 요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부 구성 요소로서 구현될 수 있다. 메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서모듈(176))에 의해 사용되는 다양한 데이터, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 저장할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. In this case, the auxiliary processor 123 is, for example, on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or when the main processor 121 is active (eg, in a sleep) state. : While in the application execution) state, together with the main processor 121 , at least one of the components of the electronic device 101 (eg, the display device 160 , the sensor module 176 , or the communication module ( 190)) and related functions or states. According to one embodiment, the coprocessor 123 (eg, image signal processor or communication processor) is implemented as some component of another functionally related component (eg, camera module 180 or communication module 190). can be The memory 130 includes various data used by at least one component (eg, the processor 120 or the sensor module 176 ) of the electronic device 101 , for example, software (eg, the program 140 ). ) and input data or output data for commands related thereto. The memory 130 may include a volatile memory 132 or a non-volatile memory 134 .

프로그램(140)은 메모리(130)에 저장되는 소프트웨어로서, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 is software stored in the memory 130 , and may include, for example, an operating system 142 , middleware 144 , or an application 146 .

입력 장치(150)는, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신하기 위한 장치로서, 예를 들면, 마이크, 마우스, 또는 키보드를 포함할 수 있다. The input device 150 is a device for receiving commands or data to be used by a component (eg, the processor 120) of the electronic device 101 from the outside (eg, a user) of the electronic device 101, for example, For example, it may include a microphone, mouse, or keyboard.

음향 출력 장치(155)는 음향 신호를 전자 장치(101)의 외부로 출력하기 위한 장치로서, 예를 들면, 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용되는 스피커와 전화 수신 전용으로 사용되는 리시버를 포함할 수 있다. 일실시예에 따르면, 리시버는 스피커와 일체 또는 별도로 형성될 수 있다.The sound output device 155 is a device for outputting a sound signal to the outside of the electronic device 101, and includes, for example, a speaker used for general purposes such as multimedia playback or recording playback, and a receiver used exclusively for receiving calls. may include According to an embodiment, the receiver may be formed integrally with or separately from the speaker.

표시 장치(160)는 전자 장치(101)의 사용자에게 정보를 시각적으로 제공하기 위한 장치로서, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 표시 장치(160)는 터치 회로(touch circuitry) 또는 터치에 대한 압력의 세기를 측정할 수 있는 압력 센서를 포함할 수 있다. The display device 160 is a device for visually providing information to the user of the electronic device 101 , and may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the corresponding device. According to an embodiment, the display device 160 may include a touch circuitry or a pressure sensor capable of measuring the intensity of the pressure applied to the touch.

오디오 모듈(170)은 소리와 전기 신호를 쌍방향으로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 장치(150)를 통해 소리를 획득하거나, 음향 출력 장치(155), 또는 전자 장치(101)와 유선 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102)(예: 스피커 또는 헤드폰))를 통해 소리를 출력할 수 있다.The audio module 170 may interactively convert a sound and an electrical signal. According to an embodiment, the audio module 170 acquires a sound through the input device 150 , or an external electronic device (eg, a sound output device 155 ) connected to the electronic device 101 by wire or wirelessly. Sound may be output through the electronic device 102 (eg, a speaker or headphones).

센서 모듈(176)은 전자 장치(101)의 내부의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 may generate an electrical signal or data value corresponding to an internal operating state (eg, power or temperature) of the electronic device 101 or an external environmental state. The sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, a temperature sensor, a humidity sensor, Alternatively, it may include an illuminance sensor.

인터페이스(177)는 외부 전자 장치(예: 전자 장치(102))와 유선 또는 무선으로 연결할 수 있는 지정된 프로토콜을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는 HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support a designated protocol capable of connecting to an external electronic device (eg, the electronic device 102 ) in a wired or wireless manner. According to an embodiment, the interface 177 may include a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(178)는 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102))를 물리적으로 연결시킬 수 있는 커넥터, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 is a connector capable of physically connecting the electronic device 101 and an external electronic device (eg, the electronic device 102 ), for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector. (eg a headphone connector).

햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense. The haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈, 이미지 센서, 이미지 시그널 프로세서, 또는 플래시를 포함할 수 있다.The camera module 180 may capture still images and moving images. According to an embodiment, the camera module 180 may include one or more lenses, an image sensor, an image signal processor, or a flash.

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리하기 위한 모듈로서, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구성될 수 있다.The power management module 188 is a module for managing power supplied to the electronic device 101 , and may be configured as, for example, at least a part of a power management integrated circuit (PMIC).

배터리(189)는 전자 장치(101)의 적어도 하나의 구성 요소에 전력을 공급하기 위한 장치로서, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 is a device for supplying power to at least one component of the electronic device 101 , and may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108))간의 유선 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되는, 유선 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함하고, 그 중 해당하는 통신 모듈을 이용하여 제 1 네트워크(198)(예: 블루투스, WiFi direct 또는 IrDA(infrared data association) 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 셀룰러 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부 전자 장치와 통신할 수 있다. 상술한 여러 종류의 통신 모듈(190)은 하나의 칩으로 구현되거나 또는 각각 별도의 칩으로 구현될 수 있다. The communication module 190 establishes a wired or wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108), and establishes the established communication channel. It can support performing communication through The communication module 190 may include one or more communication processors that support wired communication or wireless communication, which are operated independently of the processor 120 (eg, an application processor). According to one embodiment, the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, : LAN (local area network) communication module, or power line communication module), and using the corresponding communication module among them, the first network 198 (eg, Bluetooth, WiFi direct, or infrared data association (IrDA)) communication network) or the second network 199 (eg, a cellular network, the Internet, or a telecommunication network such as a computer network (eg, LAN or WAN)). The above-described various types of communication modules 190 may be implemented as a single chip or as separate chips.

일실시예에 따르면, 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 사용자 정보를 이용하여 통신 네트워크 내에서 전자 장치(101)를 구별 및 인증할 수 있다. According to an embodiment, the wireless communication module 192 may use the user information stored in the subscriber identification module 196 to distinguish and authenticate the electronic device 101 in the communication network.

안테나 모듈(197)은 신호 또는 전력을 외부로 송신하거나 외부로부터 수신하기 위한 하나 이상의 안테나들을 포함할 수 있다. 일시예에 따르면, 통신 모듈(190)(예: 무선 통신 모듈(192))은 통신 방식에 적합한 안테나를 통하여 신호를 외부 전자 장치로 송신하거나, 외부 전자 장치로부터 수신할 수 있다. The antenna module 197 may include one or more antennas for externally transmitting or receiving a signal or power. According to an example, the communication module 190 (eg, the wireless communication module 192 ) may transmit a signal to or receive a signal from the external electronic device through an antenna suitable for a communication method.

상기 구성요소들 중 일부 구성요소들은 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input/output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))를 통해 서로 연결되어 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.Some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input/output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) to signal (eg commands or data) can be exchanged with each other.

일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 전자 장치(102, 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 다른 하나 또는 복수의 외부 전자 장치에서 실행될 수 있다. 일실시예에 따르면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로 또는 요청에 의하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 그와 연관된 적어도 일부 기능을 외부 전자 장치에게 요청할 수 있다. 상기 요청을 수신한 외부 전자 장치는 요청된 기능 또는 추가 기능을 실행하고, 그 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 수신된 결과를 그대로 또는 추가적으로 처리하여 요청된 기능이나 서비스를 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다.According to an embodiment, the command or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 . Each of the electronic devices 102 and 104 may be the same or a different type of the electronic device 101 . According to an embodiment, all or some of the operations performed by the electronic device 101 may be performed by one or a plurality of external electronic devices. According to an embodiment, when the electronic device 101 is to perform a function or service automatically or upon request, the electronic device 101 performs the function or service by itself instead of or in addition to it. At least some related functions may be requested from the external electronic device. Upon receiving the request, the external electronic device may execute the requested function or additional function, and may transmit the result to the electronic device 101 . The electronic device 101 may provide the requested function or service by processing the received result as it is or additionally. For this purpose, for example, cloud computing, distributed computing, or client-server computing technology may be used.

도 2는, 다양한 실시예들에 따른, 카메라 모듈(180)의 블록도(200)이다. 2 is a block diagram 200 of a camera module 180, according to various embodiments.

도 2를 참조하면, 카메라 모듈(180)은 렌즈 어셈블리(210), 플래쉬(220), 이미지 센서(230), 이미지 스태빌라이저(240), 메모리(250)(예: 버퍼 메모리), 또는 이미지 시그널 프로세서(260)를 포함할 수 있다. 렌즈 어셈블리(210)는 이미지 촬영의 대상인 피사체로부터 방출되는 빛을 수집할 수 있다. 렌즈 어셈블리(210)는 하나 또는 그 이상의 렌즈들을 포함할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 복수의 렌즈 어셈블리(210)들을 포함할 수 있다. 이런 경우, 카메라 모듈(180)은, 예를 들면, 듀얼 카메라, 360도 카메라, 또는 구형 카메라(spherical camera)일 수 있다. 복수의 렌즈 어셈블리(210)들은 동일한 렌즈 속성(예: 화각, 초점 거리, 자동 초점, f 넘버(f number), 또는 광학 줌)을 갖거나, 또는 적어도 하나의 렌즈 어셈블리는 다른 렌즈 어셈블리와 적어도 하나의 다른 렌즈 속성을 가질 수 있다. 렌즈 어셈블리(210)는, 예를 들면, 광각 렌즈 또는 망원 렌즈를 포함할 수 있다. 플래쉬(220)는 피사체로부터 방출되는 빛을 강화하기 위하여 사용되는 광원을 방출할 수 있다. 플래쉬(220)는 하나 이상의 발광 다이오드들(예: RGB(red-green-blue) LED, white LED, infrared LED, 또는 ultraviolet LED), 또는 xenon lamp를 포함할 수 있다.Referring to FIG. 2 , the camera module 180 includes a lens assembly 210 , a flash 220 , an image sensor 230 , an image stabilizer 240 , a memory 250 (eg, a buffer memory), or an image signal processor. (260). The lens assembly 210 may collect light emitted from a subject, which is an image to be captured. The lens assembly 210 may include one or more lenses. According to an embodiment, the camera module 180 may include a plurality of lens assemblies 210 . In this case, the camera module 180 may be, for example, a dual camera, a 360 degree camera, or a spherical camera. The plurality of lens assemblies 210 may have the same lens properties (eg, angle of view, focal length, auto focus, f number, or optical zoom), or at least one lens assembly may have at least one lens assembly and at least one lens assembly with another lens assembly. may have different lens properties of The lens assembly 210 may include, for example, a wide-angle lens or a telephoto lens. The flash 220 may emit a light source used to enhance light emitted from the subject. The flash 220 may include one or more light emitting diodes (eg, a red-green-blue (RGB) LED, a white LED, an infrared LED, or an ultraviolet LED), or a xenon lamp.

이미지 센서(230)는 피사체로부터 렌즈 어셈블리(210)를 통해 전달된 빛을 전기적인 신호로 변환함으로써, 상기 피사체에 대응하는 이미지를 획득할 수 있다. 일실시예에 따르면, 이미지 센서(230)는, 예를 들면, RGB 센서, BW(black and white) 센서, IR 센서, 또는 UV 센서와 같이 속성이 다른 이미지 센서들 중 선택된 하나의 이미지 센서, 동일한 속성을 갖는 복수의 이미지 센서들, 또는 다른 속성을 갖는 복수의 이미지 센서들을 포함할 수 있다. 이미지 센서(230)에 포함된 각각의 이미지 센서는, 예를 들면, CCD(charged coupled device) 센서 또는 CMOS(complementary metal oxide semiconductor) 센서로 구현될 수 있다.The image sensor 230 may obtain an image corresponding to the subject by converting light transmitted from the subject through the lens assembly 210 into an electrical signal. According to an embodiment, the image sensor 230 is, for example, one image sensor selected from among image sensors having different properties, such as an RGB sensor, a black and white (BW) sensor, an IR sensor, or a UV sensor, the same It may include a plurality of image sensors having properties, or a plurality of image sensors having different properties. Each image sensor included in the image sensor 230 may be implemented as, for example, a charged coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor.

이미지 스태빌라이저(240)는 카메라 모듈(180) 또는 이를 포함하는 전자 장치(101)의 움직임에 반응하여, 촬영되는 이미지에 대한 상기 움직임에 의한 부정적인 영향(예: 이미지 흔들림)을 적어도 일부 보상하기 위하여 렌즈 어셈블리(210)에 포함된 적어도 하나의 렌즈 또는 이미지 센서(230)를 특정한 방향으로 움직이거나 제어(예: 리드 아웃(read-out) 타이밍을 조정 등)할 수 있다. 일실시예에 따르면, 이미지 스태빌라이저(240)는, 예를 들면, 광학식 이미지 스태빌라이저로 구현될 수 있으며, 카메라 모듈(180)의 내부 또는 외부에 배치된 자이로 센서(미도시) 또는 가속도 센서(미도시)를 이용하여 상기 움직임을 감지할 수 있다.The image stabilizer 240 responds to the movement of the camera module 180 or the electronic device 101 including the same, and at least partially compensates for a negative effect (eg, image shake) caused by the movement on a photographed image. At least one lens or image sensor 230 included in the assembly 210 may be moved or controlled in a specific direction (eg, read-out timing is adjusted, etc.). According to an embodiment, the image stabilizer 240 may be implemented as, for example, an optical image stabilizer, and a gyro sensor (not shown) or an acceleration sensor (not shown) disposed inside or outside the camera module 180 . ) can be used to detect the movement.

메모리(250)는 이미지 센서(230)을 통하여 획득된 이미지의 적어도 일부를 다음 이미지 처리 작업을 위하여 적어도 일시 저장할 수 있다. 예를 들어, 셔터에 따른 이미지 획득이 지연되거나, 또는 복수의 이미지들이 고속으로 획득되는 경우, 획득된 원본 이미지(예: 높은 해상도의 이미지)는 메모리(250)에 저장이 되고, 그에 대응하는 사본 이미지(예: 낮은 해상도의 이미지)는 표시 장치(160)을 통하여 프리뷰될 수 있다. 이후, 지정된 조건이 만족되면(예: 사용자 입력 또는 시스템 명령) 메모리(250)에 저장되었던 원본 이미지의 적어도 일부가, 예를 들면, 이미지 시그널 프로세서(260)에 의해 획득되어 처리될 수 있다. 일실시예에 따르면, 메모리(250)는 메모리(130)의 적어도 일부로, 또는 이와는 독립적으로 운영되는 별도의 메모리로 구성될 수 있다.The memory 250 may temporarily store at least a portion of the image acquired through the image sensor 230 for a next image processing operation. For example, when image acquisition is delayed according to the shutter or when a plurality of images are acquired at high speed, the acquired original image (eg, high-resolution image) is stored in the memory 250 , and a corresponding copy thereof is stored in the memory 250 . An image (eg, a low-resolution image) may be previewed through the display device 160 . Thereafter, when a specified condition is satisfied (eg, a user input or a system command), at least a portion of the original image stored in the memory 250 may be obtained and processed by, for example, the image signal processor 260 . According to an embodiment, the memory 250 may be configured as at least a part of the memory 130 or as a separate memory operated independently of the memory 130 .

이미지 시그널 프로세서(260)는 이미지 센서(230)을 통하여 획득된 이미지 또는 메모리(250)에 저장된 이미지에 대하여 이미지 처리(예: 깊이 지도(depth map) 생성, 3차원 모델링, 파노라마 생성, 특징점 추출, 이미지 합성, 또는 이미지 보상(예: 노이즈 감소, 해상도 조정, 밝기 조정, 블러링(blurring), 샤프닝(sharpening), 또는 소프트닝(softening))을 수행할 수 있다. 추가적으로 또는 대체적으로, 이미지 시그널 프로세서(260)는 카메라 모듈(180)에 포함된 구성 요소들 중 적어도 하나(예: 이미지 센서(230))에 대한 제어(예: 노출 시간 제어, 또는 리드 아웃 타이밍 제어 등)를 수행할 수 있다. 이미지 시그널 프로세서(260)에 의해 처리된 이미지는 추가 처리를 위하여 메모리(250)에 다시 저장 되거나 카메라 모듈(180)의 외부 구성 요소(예: 메모리(130), 표시 장치(160), 전자 장치(102), 전자 장치(104), 또는 서버(108))로 전달될 수 있다. 일실시예에 따르면, 이미지 시그널 프로세서(260)는 프로세서(120)의 적어도 일부로 구성되거나, 프로세서(120)와 독립적으로 운영되는 별도의 프로세서로 구성될 수 있다. 별도의 프로세서로 구성된 경우, 이미지 시그널 프로세서(260)에 의해 처리된 이미지들은 프로세서(120)에 의하여 그대로 또는 추가의 이미지 처리를 거친 후 표시 장치(160)를 통해 표시될 수 있다.The image signal processor 260 performs image processing (eg, depth map generation, 3D modeling, panorama generation, feature point extraction, Image compositing, or image compensation (e.g., noise reduction, resolution adjustment, brightness adjustment, blurring, sharpening, or softening) may be performed. Additionally or alternatively, an image signal processor ( The 260 may perform control (eg, exposure time control, readout timing control, etc.) on at least one (eg, image sensor 230) among components included in the camera module 180. Image The image processed by the signal processor 260 is stored back in the memory 250 for further processing, or an external component of the camera module 180 (eg, the memory 130 , the display device 160 , the electronic device 102 ). ), the electronic device 104 , or the server 108. According to an embodiment, the image signal processor 260 is configured as at least a part of the processor 120 or is independent of the processor 120 . In the case of a separate processor, the images processed by the image signal processor 260 are processed by the processor 120 as they are or after additional image processing is performed by the display device 160 . can be displayed through

일실시예에 따르면, 전자 장치(101)는 각각 다른 속성 또는 기능을 가진 둘 이상의 카메라 모듈(180)들을 포함할 수 있다. 이런 경우, 예를 들면, 적어도 하나의 카메라 모듈(180)은 광각 카메라 또는 전면 카메라이고, 적어도 하나의 다른 카메라 모듈은 망원 카메라 또는 후면 카메라일 수 있다.According to an embodiment, the electronic device 101 may include two or more camera modules 180 each having different properties or functions. In this case, for example, at least one camera module 180 may be a wide-angle camera or a front camera, and at least one other camera module may be a telephoto camera or a rear camera.

도 3은 다양한 실시예들에 따른 이미지에 포함된 오브젝트에 기반하여 이미지를 보정하기 위한 전자 장치를 나타내는 블록도이다.3 is a block diagram illustrating an electronic device for correcting an image based on an object included in an image according to various embodiments of the present disclosure;

도 3을 참조하면, 전자 장치(300)(예: 도 1의 전자 장치(101))는 통신 회로(310)(예: 도 1의 통신 모듈(190)), 메모리(320)(예: 도 1의 메모리(130)), 터치스크린 디스플레이(330)(예: 도 1의 표시 장치(160)), 카메라 모듈(340)(예: 도 1의 카메라 모듈(180)), 및 프로세서(350)(예: 도 1의 프로세서(120))를 포함할 수 있다.Referring to FIG. 3 , an electronic device 300 (eg, the electronic device 101 of FIG. 1 ) includes a communication circuit 310 (eg, the communication module 190 of FIG. 1 ), a memory 320 (eg, FIG. 1 ). 1 ), a touch screen display 330 (eg, the display device 160 of FIG. 1 ), a camera module 340 (eg, the camera module 180 of FIG. 1 ), and a processor 350 ). (eg, the processor 120 of FIG. 1 ).

본 발명의 다양한 실시예들에 따르면, 통신 회로(310)(예: 도 1의 통신 모듈(190))는 외부 전자 장치(예: 도 1의 전자 장치(102) 또는 서버(108))와 연결되어 데이터를 송수신할 수 있다. 예컨대, 통신 회로(310)는 무선 통신 또는 유선 통신을 통해서 네트워크에 연결되어 외부 전자 장치와 통신할 수 있다.According to various embodiments of the present disclosure, the communication circuit 310 (eg, the communication module 190 of FIG. 1 ) is connected to an external electronic device (eg, the electronic device 102 or the server 108 of FIG. 1 ). data can be sent and received. For example, the communication circuit 310 may be connected to a network through wireless communication or wired communication to communicate with an external electronic device.

본 발명의 다양한 실시예들에 따르면, 메모리(320)(예: 도 1의 메모리(130))는 전기적으로 프로세서(350)와 연결될 수 있다.According to various embodiments of the present disclosure, the memory 320 (eg, the memory 130 of FIG. 1 ) may be electrically connected to the processor 350 .

일 실시예에서, 메모리(320)는 이미지에 포함된 오브젝트에 적어도 기반하여 적어도 하나 이상의 직선들을 검출하기 위한 프로그램을 저장할 수 있다. 상기 메모리(320)는 상기 검출된 적어도 하나 이상의 직선들 중 적어도 하나를 기준선으로 결정하기 위한 프로그램을 저장할 수 있다. 상기 메모리(320)는 상기 결정된 기준선에 기초하여 이미지를 처리 예컨대, 수평 보정 또는 수직 보정하기 위한 프로그램을 저장할 수 있다.In an embodiment, the memory 320 may store a program for detecting at least one or more straight lines based at least on an object included in an image. The memory 320 may store a program for determining at least one of the detected at least one or more straight lines as a reference line. The memory 320 may store a program for processing, for example, horizontal correction or vertical correction of an image based on the determined reference line.

본 발명의 다양한 실시예들에 따르면, 터치스크린 디스플레이(330)(예: 도 1의 표시 장치(160))는 표시부(331)와 터치패널(333)을 포함하는 일체형으로 구성될 수 있다. 상기 표시부(331)는 전자 장치(300)의 이용에 따른 다양한 화면들을 표시할 수 있다. 또한 상기 표시부(331)는 액정 디스플레이 (LCD), 발광 다이오드 (LED) 디스플레이, 유기 발광 다이오드 (OLED) 디스플레이, 또는 마이크로 전자기계 시스템 (microelectromechanical systems (MEMS)) 디스플레이, 또는 전자종이 (electronic paper) 디스플레이를 포함할 수 있다. 상기 표시부(331)는 예컨대, 사용자에게 각종 컨텐츠(예컨대, 텍스트, 이미지, 비디오, 아이콘, 또는 심볼 등)를 표시할 수 있다. 상기 터치패널(333)은 예컨대, 전자 펜 또는 사용자의 신체의 일부를 이용한 터치, 제스처, 근접, 또는 호버링 입력을 수신할 수 있다.According to various embodiments of the present disclosure, the touch screen display 330 (eg, the display device 160 of FIG. 1 ) may be integrally configured including the display unit 331 and the touch panel 333 . The display unit 331 may display various screens according to the use of the electronic device 300 . In addition, the display unit 331 may include a liquid crystal display (LCD), a light emitting diode (LED) display, an organic light emitting diode (OLED) display, or a microelectromechanical systems (MEMS) display, or an electronic paper display. may include. The display unit 331 may display, for example, various contents (eg, text, image, video, icon, or symbol) to the user. The touch panel 333 may receive, for example, a touch, gesture, proximity, or hovering input using an electronic pen or a part of the user's body.

일 실시예에서, 터치스크린 디스플레이(330)는 프로세서(350)의 제어 하에 이미지를 표시할 수 있다. 예컨대, 상기 이미지는 전자 장치(300) 내 저장된 이미지, 통신 회로(310)를 통해 외부 전자 장치로부터 수신한 이미지, 카메라 모듈(340)로부터 획득되는 프리뷰 이미지 중 적어도 하나를 포함할 수 있다. In an embodiment, the touch screen display 330 may display an image under the control of the processor 350 . For example, the image may include at least one of an image stored in the electronic device 300 , an image received from an external electronic device through the communication circuit 310 , and a preview image acquired from the camera module 340 .

상기 터치스크린 디스플레이(330)는 프로세서(350)의 제어 하에 이미지에 포함된 오브젝트에 적어도 기반하여 검출된 적어도 하나 이상의 직선들을 상기 이미지에 중첩되게 표시할 수 있다.The touch screen display 330 may display at least one or more straight lines detected based on at least an object included in the image to be superimposed on the image under the control of the processor 350 .

일 실시예에서, 터치스크린 디스플레이(330)는 프로세서(350)의 제어 하에 상기 프로세서(350)에 의해 결정 또는 사용자의 선택에 의해 결정된 기준선이 상기 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 보정된 이미지를 표시할 수 있다.In one embodiment, the touch screen display 330 is calibrated so that a reference line determined by the processor 350 or selected by the user under the control of the processor 350 is parallel to at least one of a horizontal axis or a vertical axis of the image. Images can be displayed.

일 실시예에서, 터치스크린 디스플레이(330)는 프로세서(350)의 제어 하에 상기 보정된 이미지에 기초하여 틸트(tilt)된 영역을 나타내는 인디케이터를 중첩되게 표시할 수 있다.In an embodiment, the touch screen display 330 may overlap an indicator indicating a tilted region based on the corrected image under the control of the processor 350 .

본 발명의 다양한 실시예들에 따르면, 카메라 모듈(340)(예: 도 1의 카메라 모듈(180))은 수집된 영상을 프리뷰 이미지로 표시부(331)에 전달하여 사용자가 카메라 모듈(340)을 통해 획득한 영상을 확인하도록 할 수 있다. 카메라 모듈(340)은 촬영을 요청하는 입력에 응답하여, 상기 촬영을 요청하는 입력이 발생한 시점에 수집된 영상을 촬영하여 이미지 데이터를 생성할 수 있다.According to various embodiments of the present disclosure, the camera module 340 (eg, the camera module 180 of FIG. 1 ) transmits the collected image to the display unit 331 as a preview image to allow the user to view the camera module 340 . You can check the acquired image through The camera module 340 may generate image data by photographing an image collected at the point in time when the input requesting photographing is generated in response to an input for requesting photographing.

본 발명의 다양한 실시예들에 따르면, 프로세서(350)(예: 도 1의 프로세서(120))는 전자 장치(300)의 전반적인 동작 및 전자 장치(300)의 내부 구성들 간의 신호 흐름을 제어하고, 데이터 처리를 수행하고, 배터리(예: 도 1의 배터리 189))에서 상기 구성들로의 전원 공급을 제어할 수 있다.According to various embodiments of the present disclosure, the processor 350 (eg, the processor 120 of FIG. 1 ) controls the overall operation of the electronic device 300 and the signal flow between internal components of the electronic device 300 , and , data processing, and control power supply from a battery (eg, battery 189 in FIG. 1 ) to the components.

일 실시예에서, 프로세서(350)는 이미지를 터치스크린 디스플레이(330)에 표시할 수 있으며, 상기 이미지에 포함된 오브젝트에 적어도 기반하여 지정된 길이를 만족하는 적어도 하나 이상의 직선들을 검출할 수 있다. 상기 프로세서(350)는 상기 검출된 적어도 하나 이상의 직선들 중 적어도 하나를 기준선으로 결정할 수 있다. In an embodiment, the processor 350 may display an image on the touch screen display 330 and detect at least one or more straight lines satisfying a specified length based at least on an object included in the image. The processor 350 may determine at least one of the detected at least one or more straight lines as a reference line.

일 실시예에서, 상기 프로세서(350)는 상기 검출된 적어도 하나 이상의 직선들 중 길이가 긴 직선을 기준선으로 결정할 수 있다.In an embodiment, the processor 350 may determine a long straight line among the detected at least one or more straight lines as a reference line.

일 실시예에서, 상기 프로세서(350)는 상기 검출된 적어도 하나의 직선들 중 지정된 길이를 만족하는 직선의 각도가 이미지의 중심축을 기준으로 일정 범위에 포함되는지 여부에 따라 가로 직선 또는 세로 직선으로 구분할 수 있다. 상기 프로세서(350)는 상기 지정된 길이를 만족하는 직선이 가로 직선 및 세로 직선을 포함하는 경우, 상기 세로 직선을 기준선으로 결정할 수 있다.In an embodiment, the processor 350 divides the detected at least one straight line into a horizontal straight line or a vertical straight line according to whether an angle of a straight line satisfying a specified length is included in a predetermined range with respect to the central axis of the image. can When the straight line satisfying the specified length includes a horizontal straight line and a vertical straight line, the processor 350 may determine the vertical straight line as a reference line.

일 실시예에서, 프로세서(350)는 이미지의 특성에 기초하여 상기 가로 직선 또는 세로 직선을 기준선으로 결정할 수 있다. 예컨대, 상기 이미지의 특성은 인물 이미지인지 여부, 풍경 이미지, 실내 또는 실외 이미지, 세로 방향(portrait mode) 또는 가로 방향(landscape mode)으로 촬영된 이미지, 이미지의 사이즈 중 적어도 하나를 포함할 수 있다.In an embodiment, the processor 350 may determine the horizontal straight line or the vertical straight line as a reference line based on characteristics of the image. For example, the characteristic of the image may include at least one of whether the image is a portrait image, a landscape image, an indoor or outdoor image, an image photographed in a portrait mode or a landscape mode, and the size of the image.

일 실시예에서, 프로세서(350)는 상기 결정된 기준선이 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 상기 이미지를 보정할 수 있다.In an embodiment, the processor 350 may correct the image so that the determined reference line is parallel to at least one of a horizontal axis and a vertical axis of the image.

일 실시예에서, 프로세서(350)는 상기 검출된 적어도 하나 이상의 직선들을 상기 이미지에 중첩하여 터치스크린 디스플레이(330)에 표시할 수 있다. 상기 프로세서(350)는 상기 이미지 상에 표시된 적어도 하나 이상의 직선들 중 적어도 하나를 선택하는 입력이 감지되면, 상기 선택된 적어도 하나의 직선을 기준선으로 결정할 수 있다. 상기 프로세서(350)는 상기 결정된 기준선이 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 상기 이미지를 보정할 수 있다.In an embodiment, the processor 350 may display the detected at least one or more straight lines on the touch screen display 330 by superimposing it on the image. When an input for selecting at least one of the at least one or more straight lines displayed on the image is sensed, the processor 350 may determine the selected at least one straight line as a reference line. The processor 350 may correct the image so that the determined reference line is parallel to at least one of a horizontal axis and a vertical axis of the image.

일 실시예에서, 상기 이미지는 카메라 모듈(340)로부터 획득되는 프리뷰 이미지일 수 있다. 상기 프로세서(350)는 상기 프리뷰 이미지에 포함된 오브젝트에 적어도 기반하여 지정된 길이를 만족하는 적어도 하나 이상의 직선들을 검출할 수 있다. 상기 프로세서(350)는 상기 검출된 적어도 하나 이상의 직선들을 상기 프리뷰 이미지에 중첩되게 표시할 수 있다. 상기 프로세서(350)는 상기 프리뷰 이미지에 중첩되게 표시된 적어도 하나 이상의 직선들 중 적어도 하나를 선택하는 입력이 검출되면, 상기 선택된 적어도 하나의 직선을 기준선으로 결정할 수 있다. 상기 프로세서(350)는 상기 적어도 하나를 선택하는 입력에 응답하여, 상기 결정된 기준선이 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 보정된 이미지를 터치스크린 디스플레이(330)에 표시할 수 있다. 상기 프로세서(350)는 상기 보정된 이미지에 기초하여 틸트(tilt)된 영역을 나타내는 인디케이터를 중첩되게 표시할 수 있다. 상기 프로세서(350)는 이미지 촬영 신호가 감지되면, 이미지를 촬영하며, 상기 결정된 기준선이 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 상기 촬영된 이미지를 보정하고 저장할 수 있다.In an embodiment, the image may be a preview image obtained from the camera module 340 . The processor 350 may detect at least one or more straight lines satisfying a specified length based at least on the object included in the preview image. The processor 350 may display the detected at least one or more straight lines to be superimposed on the preview image. When an input for selecting at least one of at least one or more straight lines displayed to be superimposed on the preview image is detected, the processor 350 may determine the selected at least one straight line as a reference line. The processor 350 may display the corrected image on the touch screen display 330 such that the determined reference line is parallel to at least one of a horizontal axis and a vertical axis of the image in response to the input for selecting the at least one. The processor 350 may overlap an indicator indicating a tilted region based on the corrected image. When an image capturing signal is sensed, the processor 350 may capture an image, and may correct and store the captured image so that the determined reference line is parallel to at least one of a horizontal axis or a vertical axis of the image.

도 4는 다양한 실시예들에 따른 전자 장치에 의해 결정된 기준선에 기초하여 이미지를 보정하는 방법을 설명하기 위한 흐름도이다.4 is a flowchart illustrating a method of correcting an image based on a reference line determined by an electronic device according to various embodiments of the present disclosure;

도 4를 참조하면, 프로세서(예: 도 3의 프로세서(350))는 401동작에서 이미지를 디스플레이(예: 도 3의 터치스크린 디스플레이(330))에 표시할 수 있다. 예컨대, 상기 이미지는 전자 장치(예: 도 3의 전자 장치(300)) 내 저장된 이미지, 통신 회로(예: 도 3의 통신 회로(310))를 통해 외부 전자 장치로부터 수신한 이미지 중 적어도 하나를 포함할 수 있다.Referring to FIG. 4 , the processor (eg, the processor 350 of FIG. 3 ) may display an image on the display (eg, the touch screen display 330 of FIG. 3 ) in operation 401 . For example, the image includes at least one of an image stored in an electronic device (eg, the electronic device 300 of FIG. 3 ) and an image received from an external electronic device through a communication circuit (eg, the communication circuit 310 of FIG. 3 ). may include

일 실시예에서, 상기 이미지는 카메라 모듈(예: 도 3의 카메라 모듈(340))로부터 획득되는 프리뷰 이미지일 수 있다.In an embodiment, the image may be a preview image obtained from a camera module (eg, the camera module 340 of FIG. 3 ).

상기 카메라 모듈로부터 획득되는 프리뷰 이미지를 보정하는 동작과 관련하여, 후술하는 도 9 및 도 10에서, 상세히 설명될 것이다.The operation of correcting the preview image obtained from the camera module will be described in detail with reference to FIGS. 9 and 10 to be described later.

일 실시예에서, 프로세서는 상기 이미지가 표시된 상태에서 이미지의 각도를 보정하는 기능을 수행하기 위한 입력을 감지할 수 있다. 상기 이미지의 각도를 보정하는 기능을 수행하기 위한 입력에 응답하여, 프로세서는 후술하는 403동작을 수행할 수 있다. 하지만 이에 한정하는 것은 아니다.In an embodiment, the processor may detect an input for performing a function of correcting an angle of an image while the image is displayed. In response to an input for performing a function of correcting the angle of the image, the processor may perform operation 403 to be described later. However, the present invention is not limited thereto.

일 실시예에서, 프로세서는 403동작에서 상기 이미지에 포함된 오브젝트에 적어도 기반하여 지정된 길이를 만족하는 적어도 하나 이상의 직선들을 검출할 수 있다. 예컨대, 상기 지정된 길이를 만족하는 적어도 하나 이상의 직선들은 일정 길이 이상을 가지는 직선들일 수 있다. 예컨대, 상기 일정 길이 이상은 이미지의 가로 길이(또는, 세로 길이)를 기준으로 2/3 이상의 길이를 의미할 수 있다. 하지만 이에 한정하는 것은 아니다.In an embodiment, in operation 403 , the processor may detect at least one or more straight lines satisfying a specified length based at least on the object included in the image. For example, at least one or more straight lines satisfying the specified length may be straight lines having a predetermined length or more. For example, the predetermined length or more may mean a length of 2/3 or more based on the horizontal length (or vertical length) of the image. However, the present invention is not limited thereto.

상기 이미지에 포함된 오브젝트에 대한 적어도 하나 이상의 직선들을 검출하는 방법은 공지된 기술로 본 발명의 기술 분야에서 통상의 지식을 가진 자에게 있어 자명하므로 상세한 설명은 생략하기로 한다.A method of detecting at least one or more straight lines for an object included in the image is a well-known technique and is obvious to a person skilled in the art, so a detailed description thereof will be omitted.

일 실시예에서, 프로세서는 상기 이미지에 포함된 오브젝트에 적어도 기반하여 상기 지정된 길이 예컨대, 이미지의 가로 길이(또는, 이미지의 세로 길이)를 기준으로 일정 이상의 길이를 가지는 직선을 검출할 수 있다. In an embodiment, the processor may detect a straight line having a length greater than or equal to a predetermined length based on at least an object included in the image, for example, a horizontal length of an image (or a vertical length of the image).

프로세서는 405동작에서 상기 검출된 적어도 하나 이상의 직선들 중 적어도 하나를 기준선으로 결정할 수 있다.In operation 405 , the processor may determine at least one of the detected at least one or more straight lines as a reference line.

일 실시예에서, 프로세서는 상기 검출된 적어도 하나 이상의 직선들 중 길이가 긴 직선을 기준선으로 결정할 수 있다. In an embodiment, the processor may determine a long straight line among the detected at least one or more straight lines as a reference line.

일 실시예에서, 프로세서는 상기 검출된 적어도 하나의 직선들 중 지정된 길이를 만족하는 직선의 각도가 이미지의 중심축을 기준으로 일정 범위에 포함되는지 여부에 따라 가로 직선 또는 세로 직선으로 구분할 수 있다. 프로세서는 상기 지정된 길이를 만족하는 직선이 가로 직선 및 세로 직선을 포함하는 경우, 상기 가로 직선보다 상기 세로 직선에 우선순위를 부여하도록 설정할 수 있으며, 상기 세로 직선을 기준선으로 결정할 수 있다. In an embodiment, the processor may divide the detected straight line into a horizontal straight line or a vertical straight line according to whether an angle of a straight line satisfying a specified length among the detected at least one straight line is included in a predetermined range with respect to the central axis of the image. When the straight line satisfying the specified length includes a horizontal straight line and a vertical straight line, the processor may set to give priority to the vertical straight line over the horizontal straight line, and may determine the vertical straight line as a reference line.

일 실시예에서, 프로세서는 상기 검출된 적어도 하나 이상의 직선들이 가로 직선 및 세로 직선을 포함하는 경우, 상기 이미지의 특성(예: 인물 이미지인지 여부, 풍경 이미지, 실내 또는 실외 이미지, 세로 방향 또는 가로 방향으로 촬영된 이미지, 이미지의 사이즈)에 기초하여 상기 세로 직선 또는 상기 가로 직선을 기준선으로 결정할 수 있다. In an embodiment, the processor is configured to, when the detected at least one or more straight lines include a horizontal straight line and a vertical straight line, a characteristic of the image (eg, whether it is a portrait image, a landscape image, an indoor or outdoor image, a vertical direction or a horizontal direction). The vertical straight line or the horizontal straight line may be determined as a reference line based on the photographed image and the size of the image).

예컨대, 상기 이미지가 실내 이미지인 경우, 프로세서는 세로 직선보다 가로 직선을 우선순위를 부여하도록 설정할 수 있으며, 상기 가로 직선들 중 길이가 긴 가로 직선을 기준선으로 결정할 수 있다. 또는, 상기 이미지가 실외 이미지인 경우, 프로세서는 가로 직선보다 세로 직선에 우선순위를 부여하도록 설정할 수 있으며, 상기 세로 직선들 중 길이가 긴 세로 직선을 기준선으로 결정할 수 있다.For example, when the image is an indoor image, the processor may set to give priority to a horizontal straight line over a vertical straight line, and may determine a long horizontal straight line among the horizontal straight lines as a reference line. Alternatively, when the image is an outdoor image, the processor may set to give priority to a vertical straight line over a horizontal straight line, and may determine a long vertical straight line among the vertical straight lines as a reference line.

예컨대, 세로 방향으로 촬영된 이미지의 경우, 프로세서는 가로 직선보다 세로 직선에 기준선으로 결정하기 위한 우선순위를 부여하도록 설정할 수 있다. 또는, 가로 방향으로 촬영된 이미지의 경우, 프로세서는 세로 직선보다 가로 직선에 기준선으로 결정하기 위한 우선순위를 부여하도록 설정할 수 있다.For example, in the case of an image photographed in a vertical direction, the processor may be set to give a priority for determining a vertical straight line as a reference line rather than a horizontal straight line. Alternatively, in the case of an image photographed in a horizontal direction, the processor may be set to give a priority for determining a horizontal straight line as a reference line rather than a vertical straight line.

일 실시예에서, 프로세서는 407동작에서 상기 결정된 기준선이 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 상기 이미지를 보정할 수 있다.In an embodiment, the processor may correct the image so that the determined reference line is parallel to at least one of a horizontal axis and a vertical axis of the image in operation 407 .

예컨대, 상기 결정된 기준선이 가로 직선인 경우, 이미지의 가로축에 평행하도록 상기 이미지를 보정할 수 있으며, 상기 결정된 기준선이 세로 직선인 경우, 이미지의 세로축에 평행하도록 상기 이미지를 보정할 수 있다.For example, when the determined reference line is a horizontal straight line, the image may be corrected to be parallel to a horizontal axis of the image. When the determined reference line is a vertical straight line, the image may be corrected to be parallel to a vertical axis of the image.

이와 관련하여, 후술하는 도 5a 및 도 5b에서, 상세히 설명될 것이다.In this regard, it will be described in detail with reference to FIGS. 5A and 5B to be described later.

일 실시예에서, 프로세서는 이미지의 가로축 또는 세로축 중 적어도 하나의 평행하도록 상기 이미지를 보정하는데 기초가 된 기준선을 상기 보정된 이미지 상에 중첩되게 표시할 수 있다. 이에 따라, 사용자는 어떠한 기준선에 의해 이미지가 평행 보정되었는지 직관적으로 확인할 수 있다.In an embodiment, the processor may display a reference line based on correcting the image to be parallel to at least one of a horizontal axis and a vertical axis of the image to be superimposed on the corrected image. Accordingly, the user can intuitively check by which reference line the image is parallel-corrected.

일 실시예에서, 프로세서는 이미지의 가로축 또는 세로축 중 적어도 하나의 평행하도록 상기 이미지를 보정하는데 기초가 된 기준선과 403동작에서 검출된 적어도 하나 이상의 직선들을 상기 보정된 이미지 상에 중첩되게 표시할 수 있다. 상기 보정된 이미지 상에 표시된 기준선과 적어도 하나 이상의 직선들은 서로 구별되게 표시될 수 있다. 이 경우, 전자 장치에 의해 결정된 기준선에 의해 보정된 이미지의 구도(예: 각도)가 사용자가 원하는 구도가 아닌 경우, 사용자가 원하는 직선을 기준선으로 선택할 수 있도록 제공하는 동작 시나리오의 일 예가 될 수 있다. 일 실시예에서, 상기 사용자가 원하는 직선을 기준선으로 선택할 수 있도록 제공하는 동작 시나리오는 후술하는 도 7에 대한 실시예와 유사한 방식으로 수행될 수 있다.In an embodiment, the processor may display a reference line based on correcting the image to be parallel to at least one of a horizontal axis and a vertical axis of the image and at least one or more straight lines detected in operation 403 to be superimposed on the corrected image . The reference line displayed on the corrected image and at least one or more straight lines may be displayed to be distinguished from each other. In this case, when the composition (eg, angle) of the image corrected by the reference line determined by the electronic device is not the composition desired by the user, it may be an example of an operation scenario in which the user can select a desired straight line as the reference line. . In an embodiment, an operation scenario in which the user can select a desired straight line as a reference line may be performed in a similar manner to the embodiment of FIG. 7 to be described later.

일 실시예에서, 프로세서는 상기 보정된 이미지를 편집하는 이미지 편집 기능을 수행할 수 있다. 예컨대, 상기 이미지 편집 기능은 상기 이미지의 확대, 축소, 비율 조정, 이미지 자르기, 밝기 조절, 및 효과 적용 등을 포함할 수 있다.In an embodiment, the processor may perform an image editing function of editing the corrected image. For example, the image editing function may include enlarging, reducing, adjusting a ratio, cropping an image, adjusting brightness, and applying an effect of the image.

일 실시예에서, 프로세서는 보정된 이미지를 메모리(예: 도 3의 메모리(320))에 저장하거나 통신 회로(예: 도 3의 통신 회로(310))를 통해 외부 전자 장치(예: 도 1의 전자 장치(102) 또는 서버(108))로 전송할 수 있다.In one embodiment, the processor stores the corrected image in a memory (eg, memory 320 in FIG. 3 ) or via a communication circuit (eg, communication circuit 310 in FIG. 3 ) to an external electronic device (eg, FIG. 1 ). of the electronic device 102 or the server 108).

일 실시예에서, 상기 메모리에 저장되거나 상기 외부 전자 장치로 전송되는 이미지는 기준선에 의해 평행 보정된 이미지에 기초하여 틸트(tilt)된 이미지일 수 있다.In an embodiment, the image stored in the memory or transmitted to the external electronic device may be a tilted image based on a parallel-corrected image by a reference line.

도 5a 및 도 5b는 다양한 실시예들에 따른 이미지를 보정하는 방법을 설명하기 위한 도면이다.5A and 5B are diagrams for explaining a method of correcting an image according to various embodiments.

도 5a 및 도 5b는 전술한 도 4에서 407동작의 결정된 기준선이 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 이미지를 보정하는 방법을 설명하기 위한 도면이다.5A and 5B are diagrams for explaining a method of correcting an image so that the reference line determined in operation 407 in FIG. 4 is parallel to at least one of a horizontal axis or a vertical axis of the image.

도 5a를 참조하면, 프로세서(예: 도 3의 프로세서(350))는 결정된 기준선이 이미지의 중심축인 수평 중심축(510) 또는 수직 중심축(520)에 평행하도록 이미지를 보정할 수 있다. Referring to FIG. 5A , the processor (eg, the processor 350 of FIG. 3 ) may correct the image so that the determined reference line is parallel to the horizontal central axis 510 or the vertical central axis 520 that is the central axis of the image.

일 실시예에서, 중심축(510, 520)을 기준으로 기준선(530)의 각도가 일정 범위 예컨대, -45°~45° 또는 135°~225°에 포함되는 경우, 프로세서는 상기 기준선(530)이 이미지의 수직 중심축(520)에 평행하도록 상기 이미지를 보정할 수 있다. In one embodiment, when the angle of the reference line 530 with respect to the central axes 510 and 520 is included in a certain range, for example, -45° to 45° or 135° to 225°, the processor is configured to The image may be corrected to be parallel to the vertical central axis 520 of the image.

일 실시예에서, 중심축(510, 520)을 기준으로 기준선(530)의 각도가 일정 범위 예컨대, 45°~45° 및 135°~225° 에 포함되지 않는 경우, 프로세서는 기준선(530)이 이미지의 수평 중심축(510)에 평행하도록 상기 이미지를 보정할 수 있다.In one embodiment, when the angle of the reference line 530 with respect to the central axes 510 and 520 is not included in a predetermined range, for example, 45° to 45° and 135° to 225°, the processor determines that the reference line 530 is The image may be corrected to be parallel to the horizontal central axis 510 of the image.

전술한 일정 범위 예컨대, 45°~45°, 135°~225°는 기준선이 이미지의 수평 중심축(510)에 평행하도록 보정할 것인지, 또는 수직 중심축(520)에 평행하도록 보정할 것인지 여부를 결정하는 동작을 용이하게 설명하기 위한 것으로, 이에 한정하는 것은 아니다.The aforementioned predetermined range, for example, 45° to 45°, 135° to 225°, determines whether the reference line is corrected to be parallel to the horizontal central axis 510 of the image or to be corrected to be parallel to the vertical central axis 520 . It is intended to easily describe the determining operation, but is not limited thereto.

전술한 바와 같이 도 5a에서 기준선이 전체 이미지의 중심축을 기준으로 평행 보정된 것으로 설명하였지만, 이에 한정하는 것은 아니다. 예컨대, 프로세서는 기준선이 전체 이미지의 일측의 중심축을 기준으로 평행하도록 보정할 수 있다.As described above, in FIG. 5A , it has been described that the reference line is corrected in parallel with respect to the central axis of the entire image, but the present invention is not limited thereto. For example, the processor may correct the reference line to be parallel to the central axis of one side of the entire image.

예컨대, 도 5b를 참조하면, 프로세서는 이미지(550)에 포함된 오브젝트에 적어도 기반하여 지정된 길이를 만족하는 적어도 하나 이상의 직선들을 검출할 수 있다. 프로세서는 상기 검출된 적어도 하나의 직선들 중 이미지(550)의 일측의 직선(580)을 기준선으로 결정할 수 있다. 프로세서는 상기 결정된 기준선(580)이 이미지(550)의 일측의 중심축인 수평 중심축(560) 또는 수직 중심축(570)에 평행하도록 이미지를 보정할 수 있다. 예컨대, 기준선(580)의 각도가 일정 범위(예: -45°~45° 또는 135°~225°)에 포함되는 경우, 프로세서는 상기 기준선(580)이 이미지(550)의 일측의 수직 중심축(570)에 평행하도록 상기 이미지를 보정할 수 있다. 또는, 기준선(580)의 각도가 일정 범위(예: 45°~45° 및 135°~225°)에 포함되지 않는 경우, 프로세서는 기준선(580)이 이미지(550)의 일측의 수평 중심축(560)에 평행하도록 상기 이미지를 보정할 수 있다.For example, referring to FIG. 5B , the processor may detect at least one or more straight lines satisfying a specified length based on at least an object included in the image 550 . The processor may determine a straight line 580 on one side of the image 550 among the detected at least one straight line as a reference line. The processor may correct the image so that the determined reference line 580 is parallel to a horizontal central axis 560 or a vertical central axis 570 that is a central axis of one side of the image 550 . For example, when the angle of the reference line 580 is within a predetermined range (eg, -45° to 45° or 135° to 225°), the processor determines that the reference line 580 is a vertical central axis of one side of the image 550 . The image may be corrected to be parallel to 570 . Alternatively, if the angle of the reference line 580 does not fall within a certain range (eg, 45° to 45° and 135° to 225°), the processor determines that the reference line 580 is a horizontal central axis of one side of the image 550 ( 560), the image may be corrected.

도 6은 다양한 실시예들에 따른 전자 장치에 의해 결정된 기준선에 기초하여 이미지를 보정하는 방법을 설명하기 위한 도면이다.6 is a diagram for describing a method of correcting an image based on a reference line determined by an electronic device according to various embodiments of the present disclosure;

도 6을 참조하면, 프로세서(예: 도 3의 프로세서(350))는 <610>에 도시된 바와 같이 이미지(600)에 포함된 오브젝트에 적어도 기반하여 적어도 하나 이상의 직선들(예: 제1 직선(611), 제2 직선(613), 제3 직선(615), 제4 직선(617), 및 제5 직선(619))을 검출할 수 있다.Referring to FIG. 6 , the processor (eg, the processor 350 of FIG. 3 ) performs at least one or more straight lines (eg, the first straight line) based on at least the object included in the image 600 as shown in <610>. 611 , the second straight line 613 , the third straight line 615 , the fourth straight line 617 , and the fifth straight line 619 ) can be detected.

도 4의 403동작에서 살펴본 바와 같이 상기 적어도 하나 이상의 직선들 예컨대, 제1 직선(611) 및 제2 직선(613)은 이미지(600)의 세로 길이의 2/3 이상인 길이를 가지는 세로 직선일 수 있으며, 제3 직선(615) 내지 제5 직선(619)은 이미지(600)의 가로 길이의 2/3 이상인 길이를 가지는 가로 직선일 수 있다.As shown in operation 403 of FIG. 4 , the at least one or more straight lines, for example, the first straight line 611 and the second straight line 613 may be a vertical straight line having a length of 2/3 or more of the vertical length of the image 600 . In addition, the third straight line 615 to the fifth straight line 619 may be a horizontal straight line having a length equal to or greater than 2/3 of the horizontal length of the image 600 .

일 실시예에서, 프로세서는 상기 적어도 하나 이상의 직선들(예: 제1 직선(611) 내지 제5 직선(619)) 중 적어도 하나를 기준선으로 결정할 수 있다. 예컨대, 상기 검출된 적어도 하나 이상의 직선들 중 길이가 긴 직선을 기준선으로 선택하는 것으로 설정된 경우, 프로세서는 상기 제1 직선(611) 내지 제5 직선(619) 중 제5 직선(619)을 기준선으로 결정할 수 있다.In an embodiment, the processor may determine at least one of the one or more straight lines (eg, the first straight line 611 to the fifth straight line 619) as the reference line. For example, when it is set to select a long straight line among the detected at least one or more straight lines as a reference line, the processor uses a fifth straight line 619 among the first straight lines 611 to 619 as a reference line. can decide

일 실시예에서, 프로세서는 <630>에 도시된 바와 같이 상기 기준선으로 결정된 제5 직선(619)이 이미지(600)의 가로축(예: 도 5a 및 도 5b의 수평 중심축(510, 560))에 평행하도록 상기 이미지(600)를 수평 보정할 수 있다.In one embodiment, the processor determines that the fifth straight line 619 determined as the reference line is the horizontal axis of the image 600 (eg, the horizontal central axes 510 and 560 of FIGS. 5A and 5B ) as shown in <630>. The image 600 may be horizontally corrected to be parallel to .

일 실시예에서, 도 6의 <610>에 도시된 바와 같이 검출된 적어도 하나 이상의 직선들(예: 제1 직선(611) 내지 제5 직선(619))을 이미지(600)에 중첩되게 표시하는 것으로 설명하였지만, 이는 설명을 용이하게 하기 위한 것으로, 도 4 및 도 6의 실시예에서 상기 적어도 하나의 직선들을 이미지에 중첩되게 표시하는 동작은 생략될 수 있다. 예컨대, 프로세서는 <610>에 도시된 바와 같이 이미지(600)가 표시된 상태에서 이미지 각도를 보정하는 기능의 수행이 감지되면, 상기 프로세서에 의해 결정된 기준선에 기초하여 <630>에 도시된 바와 같이 보정된 이미지를 표시할 수 있다.In one embodiment, as shown in <610> of FIG. 6, at least one or more detected straight lines (eg, the first straight line 611 to the fifth straight line 619) are displayed to be superimposed on the image 600 However, this is for ease of explanation, and in the embodiments of FIGS. 4 and 6 , the operation of displaying the at least one straight line to be superimposed on the image may be omitted. For example, when the processor detects that the function of correcting the image angle is detected while the image 600 is displayed as shown in <610>, the processor corrects it as shown in <630> based on the reference line determined by the processor image can be displayed.

도 7은 다양한 실시예들에 따른 사용자에 의해 선택된 기준선에 기초하여 이미지를 보정하는 방법을 설명하기 위한 흐름도이다.7 is a flowchart illustrating a method of correcting an image based on a reference line selected by a user according to various embodiments of the present disclosure;

도 7을 참조하면, 프로세서(예: 도 3의 프로세서(350))는 701동작에서 이미지를 디스플레이(예: 도 3의 터치스크린 디스플레이(330))에 표시할 수 있다. 예컨대, 상기 이미지는 전자 장치(예: 도 3의 전자 장치(300)) 내 저장된 이미지, 통신 회로(예: 도 3의 통신 회로(310))를 통해 외부 전자 장치로부터 수신한 이미지 중 적어도 하나를 포함할 수 있다.Referring to FIG. 7 , the processor (eg, the processor 350 of FIG. 3 ) may display an image on the display (eg, the touch screen display 330 of FIG. 3 ) in operation 701 . For example, the image includes at least one of an image stored in an electronic device (eg, the electronic device 300 of FIG. 3 ) and an image received from an external electronic device through a communication circuit (eg, the communication circuit 310 of FIG. 3 ). may include

일 실시예에서, 상기 이미지는 카메라 모듈(예: 도 3의 카메라 모듈(340))로부터 획득되는 프리뷰 이미지일 수 있다.In an embodiment, the image may be a preview image obtained from a camera module (eg, the camera module 340 of FIG. 3 ).

일 실시예에서, 프로세서는 상기 이미지가 표시된 상태에서 이미지의 각도를 보정하는 기능을 수행하기 위한 입력을 감지할 수 있다. 상기 이미지의 각도를 보정하는 기능을 수행하기 위한 입력에 응답하여, 프로세서는 후술하는 703동작을 수행할 수 있다.In an embodiment, the processor may detect an input for performing a function of correcting an angle of an image while the image is displayed. In response to an input for performing a function of correcting the angle of the image, the processor may perform operation 703 to be described later.

일 실시예에서, 프로세서는 703동작에서 상기 이미지에 포함된 오브젝트에 적어도 기반하여 지정된 길이를 만족하는 적어도 하나 이상의 직선들을 검출할 수 있다. 예컨대, 상기 지정된 길이를 만족하는 적어도 하나 이상의 직선들은 일정 길이 이상을 가지는 직선들일 수 있다. 예컨대, 상기 일정 길이 이상은 이미지의 가로 길이(또는, 세로 길이)를 기준으로 2/3 이상의 길이를 의미할 수 있다. 하지만 이에 한정하는 것은 아니다.In an embodiment, the processor may detect at least one or more straight lines satisfying a specified length based on at least an object included in the image in operation 703 . For example, at least one or more straight lines satisfying the specified length may be straight lines having a predetermined length or more. For example, the predetermined length or more may mean a length of 2/3 or more based on the horizontal length (or vertical length) of the image. However, the present invention is not limited thereto.

일 실시예에서, 프로세서는 705동작에서 상기 검출된 적어도 하나 이상의 직선들을 상기 이미지에 중첩하여 표시할 수 있다.In an embodiment, the processor may display the detected at least one or more straight lines in operation 705 by superimposing them on the image.

일 실시예에서 상기 하나 이상의 직선들은 기 설정된 개수만큼 상기 이미지에 중첩되게 표시할 수 있다. 예컨대, 기 설정된 개수가 5개이고, 지정된 길이를 만족하는 적어도 하나 이상의 직선들이 예컨대, 8개 이상 검출된 경우, 프로세서는 8개 이상의 직선들 중 우선순위가 높은 5개의 직선들만을 이미지 상에 중첩되게 표시할 수 있다. 예컨대, 프로세서는 8개 이상 검출된 직선들 중 직선의 길이가 긴 상위 5개의 직선들을 표시할 수 있다.In an embodiment, the one or more straight lines may be displayed to overlap the image by a preset number. For example, if the preset number is 5 and at least one or more straight lines satisfying the specified length are detected, for example, 8 or more, the processor superimposes only 5 straight lines with high priority among the 8 or more straight lines on the image can be displayed For example, the processor may display top 5 straight lines having a long length among the 8 or more detected straight lines.

일 실시예에서, 프로세서는 707동작에서 상기 이미지 상에 표시된 적어도 하나 이상의 직선들 중 적어도 하나를 선택하는 입력이 검출되면, 709동작에서 상기 선택된 적어도 하나의 직선을 기준선으로 결정할 수 있다.In an embodiment, when an input for selecting at least one of the at least one or more straight lines displayed on the image is detected in operation 707 , the processor may determine the selected at least one straight line as a reference line in operation 709 .

일 실시예에서, 프로세서는 711동작에서 결정된 기준선이 이미지의 가로축(예: 도 5a 및 도 5b의 수평 중심축(510, 560)) 또는 세로축(예: 도 5a 및 도 5b의 수직 중심축(520, 570)) 중 적어도 하나에 평행하도록 상기 이미지를 보정할 수 있다.In one embodiment, the processor determines that the reference line determined in operation 711 is a horizontal axis of the image (eg, the horizontal central axes 510 and 560 of FIGS. 5A and 5B ) or a vertical axis (eg, the vertical central axis 520 of FIGS. 5A and 5B ). , 570)), the image may be corrected to be parallel to at least one.

일 실시예에서, 상기 도 7의 711동작은, 전술한 도 4의 407동작과 동일하므로, 이에 대한 상세한 설명은 도 4와 관련된 설명으로 대신한다.In one embodiment, since operation 711 of FIG. 7 is the same as operation 407 of FIG. 4 described above, a detailed description thereof is replaced with a description related to FIG. 4 .

일 실시예에서, 프로세서는 713동작에서 상기 보정된 이미지를 메모리(예: 도 3의 메모리 (320))에 저장할 수 있다. In an embodiment, the processor may store the corrected image in a memory (eg, the memory 320 of FIG. 3 ) in operation 713 .

일 실시예에서, 프로세서는 상기 보정된 이미지를 통신 회로(예: 도 3의 통신 회로(310))를 통해 외부 전자 장치(예: 도 1의 전자 장치(102) 또는 서버(108))로 전송할 수 있다.In an embodiment, the processor transmits the corrected image to an external electronic device (eg, the electronic device 102 or the server 108 of FIG. 1 ) through a communication circuit (eg, the communication circuit 310 of FIG. 3 ). can

일 실시예에서, 상기 메모리에 저장되거나 상기 외부 전자 장치로 전송되는 이미지는 기준선에 의해 평행 보정된 이미지에 기초하여 틸트(tilt)된 이미지일 수 있다.In an embodiment, the image stored in the memory or transmitted to the external electronic device may be a tilted image based on a parallel-corrected image by a reference line.

도 8은 다양한 실시예들에 따른 사용자에 의해 선택된 기준선에 기초하여 이미지를 보정하는 방법을 설명하기 위한 도면이다.8 is a diagram for describing a method of correcting an image based on a reference line selected by a user according to various embodiments of the present disclosure;

도 8을 참조하면, 프로세서(예: 도 3의 프로세서(350))는 <810>에 도시된 바와 같이 이미지(800)에 포함된 오브젝트에 적어도 기반하여 적어도 하나 이상의 직선들(예: 제1 직선(811), 제2 직선(813), 제3 직선(815), 제4 직선(817), 및 제5 직선(819))을 검출할 수 있다. 예컨대, 상기 검출된 적어도 하나 이상의 직선들(예: 제1 직선(811) 내지 제5 직선(819))은 이미지(800)의 가로 길이 또는 세로 길이의 2/3 이상의 길이를 가지는 직선일 수 있다. Referring to FIG. 8 , the processor (eg, the processor 350 of FIG. 3 ) performs at least one or more straight lines (eg, a first straight line) based on at least an object included in an image 800 as shown in <810>. 811 , the second straight line 813 , the third straight line 815 , the fourth straight line 817 , and the fifth straight line 819 ) can be detected. For example, the detected at least one or more straight lines (eg, the first straight line 811 to the fifth straight line 819 ) may be a straight line having a length of 2/3 or more of a horizontal length or a vertical length of the image 800 . .

일 실시예에서, 프로세서는 상기 적어도 하나 이상의 직선들(예: 제1 직선(811) 내지 제5 직선(819))중 하나를 선택하는 입력(821)을 수신할 수 있다. 에컨대, 상기 제1 직선(811) 내지 제5 직선(819) 중 제3 직선(815)을 선택하는 입력(821)이 수신되면, 프로세서는 상기 제3 직선(815)을 기준선으로 결정할 수 있다.In an embodiment, the processor may receive an input 821 for selecting one of the at least one or more straight lines (eg, the first straight line 811 to the fifth straight line 819 ). For example, when an input 821 for selecting a third straight line 815 from among the first straight line 811 to the fifth straight line 819 is received, the processor may determine the third straight line 815 as a reference line. .

일 실시예에서, 프로세서는 <830>에 도시된 바와 같이 상기 기준선으로 결정된 제3 직선(815)이 이미지(800)의 가로축(예: 도 5a 및 도 5b의 수평 중심축(510, 560))에 평행하도록 상기 이미지(800)를 수평 보정할 수 있다.In one embodiment, the processor determines that the third straight line 815 determined as the reference line is the horizontal axis of the image 800 (eg, the horizontal central axes 510 and 560 of FIGS. 5A and 5B ) as shown in <830>. The image 800 may be horizontally corrected to be parallel to .

도 9는 다양한 실시예들에 따른 카메라 모듈로부터 획득되는 프리뷰 이미지에서 선택된 기준선에 기초하여 이미지를 보정하는 방법을 설명하기 위한 흐름도이다.9 is a flowchart illustrating a method of correcting an image based on a reference line selected from a preview image obtained from a camera module according to various embodiments of the present disclosure;

도 9를 참조하면, 프로세서(예: 도 3의 프로세서(350))는 901동작에서 카메라 모듈(예: 도 3의 카메라 모듈(340))로부터 획득되는 프리뷰 이미지를 디스플레이(예: 도 3의 터치스크린 디스플레이(330))에 표시할 수 있다.Referring to FIG. 9 , the processor (eg, the processor 350 of FIG. 3 ) displays a preview image obtained from the camera module (eg, the camera module 340 of FIG. 3 ) in operation 901 (eg, the touch of FIG. 3 ). may be displayed on the screen display 330).

일 실시예에서, 프로세서는 903동작에서 상기 프리뷰 이미지에 포함된 오브젝트에 적어도 기반하여 지정된 길이를 만족하는 적어도 하나 이상의 직선들을 검출할 수 있다.In an embodiment, the processor may detect at least one or more straight lines satisfying a specified length based at least on the object included in the preview image in operation 903 .

일 실시예에서, 프로세서는 905동작에서 상기 검출된 적어도 하나 이상의 직선들을 상기 프리뷰 이미지에 중첩되게 표시할 수 있다.In an embodiment, the processor may display the detected at least one or more straight lines in operation 905 to be superimposed on the preview image.

일 실시예에서, 상기 검출된 적어도 하나 이상의 직선들은 카메라 모듈의 움직임이 감지되어도, 상기 적어도 하나 이상의 기준선이 상기 프리뷰 이미지에 중첩되게 표시되는 상태는 유지될 수 있다.In an embodiment, even if the movement of the camera module is sensed in the detected at least one or more straight lines, a state in which the at least one or more reference lines are displayed to be superimposed on the preview image may be maintained.

일 실시예에서, 프로세서는 907동작에서 상기 프리뷰 이미지에 중첩되게 표시된 적어도 하나 이상의 직선들 중 적어도 하나를 선택하는 입력이 검출되면, 909동작에서 상기 선택된 적어도 하나의 직선을 기준선으로 결정할 수 있다.In an embodiment, when an input for selecting at least one of the at least one or more straight lines displayed to be superimposed on the preview image is detected in operation 907 , the processor may determine the selected at least one straight line as a reference line in operation 909 .

일 실시예에서, 프로세서는 상기 907동작의 적어도 하나를 선택하는 입력에 응답하여, 상기 결정된 기준선이 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 보정된 이미지를 표시할 수 있다. 상기 보정된 이미지를 표시하는 동작은, 후술하는 911동작에서 감지된 이미지 촬영 신호에 따라 상기 보정된 이미지를 저장하기 전에, 상기 보정된 이미지의 구도를 사용자가 미리 확인할 수 있도록 제공하기 위한 동작일 수 있다. In an embodiment, in response to the input of selecting at least one of operation 907, the processor may display the corrected image so that the determined reference line is parallel to at least one of a horizontal axis and a vertical axis of the image. The operation of displaying the corrected image may be an operation for providing the user to check the composition of the corrected image in advance before storing the corrected image according to the image capturing signal detected in operation 911 to be described later. have.

일 실시예에서, 프로세서는 보정된 이미지 상에 틸트(tilt) 결과에 대한 영역을 나타내는 인디케이터(예: 가이드 선)를 더 표시할 수 있다. 예컨대, 상기 틸트 결과에 대한 영역을 나타내는 인디케이터를 표시하는 동작은 후술하는 911동작에서 감지된 이미지 촬영 신호에 따라 저장될 이미지의 영역을 나타내는 것을 의미일 수 있다. 상기 인디케이터는 폐곡선의 형태로 상기 보정된 이미지 상에 중첩되게 표시될 수 있다. 또한, 상기 인디케이터는 상기 보정된 이미지 내에서 구별되게 표시(예: 점선으로 표시)될 수 있다.In an embodiment, the processor may further display an indicator (eg, a guide line) indicating an area for a tilt result on the corrected image. For example, the operation of displaying the indicator indicating the area for the tilt result may mean indicating the area of the image to be stored according to the image capturing signal detected in operation 911 to be described later. The indicator may be displayed to be superimposed on the corrected image in the form of a closed curve. In addition, the indicator may be distinguishedly displayed (eg, indicated by a dotted line) in the corrected image.

일 실시예에서, 프로세서는 911동작에서 이미지 촬영 신호가 감지되면, 이미지를 촬영하며, 상기 결정된 기준선이 이미지의 가로축(예: 도 5a 및 도 5b의 수평 중심축(510, 560)) 또는 세로축(예: 도 5a 및 도 5b의 수직 중심축(520, 570)) 중 적어도 하나에 평행하도록 상기 촬영된 이미지를 보정하고 저장할 수 있다. In one embodiment, when the image capturing signal is detected in operation 911, the processor captures an image, and the determined reference line is the horizontal axis of the image (eg, the horizontal central axes 510 and 560 of FIGS. 5A and 5B) or the vertical axis ( Example: The photographed image may be corrected and stored to be parallel to at least one of the vertical central axes 520 and 570 of FIGS. 5A and 5B .

일 실시예에서, 프로세서는 상기 보정된 이미지를 통신 회로(예: 도 3의 통신 회로(310))를 통해 외부 전자 장치(예: 도 1의 전자 장치(102) 또는 서버(108))로 전송할 수 있다.In an embodiment, the processor transmits the corrected image to an external electronic device (eg, the electronic device 102 or the server 108 of FIG. 1 ) through a communication circuit (eg, the communication circuit 310 of FIG. 3 ). can

도 10은 다양한 실시예들에 따른 카메라 모듈로부터 획득되는 프리뷰 이미지에서 선택된 기준선에 기초하여 이미지를 보정하는 방법을 설명하기 위한 도면이다.10 is a diagram for describing a method of correcting an image based on a reference line selected from a preview image obtained from a camera module according to various embodiments of the present disclosure;

도 10을 참조하면, 프로세서(예: 도 3의 프로세서(350))는 카메라 모듈(예: 도 3의 카메라 모듈(340))로부터 획득되는 이미지(1000)를 디스플레이(예: 도 3의 터치스크린 디스플레이(340))에 표시할 수 있다. 프로세서는 상기 이미지(1000)에 포함된 오브젝트에 적어도 기반하여 적어도 하나 이상의 직선들을 검출할 수 있다.Referring to FIG. 10 , a processor (eg, the processor 350 of FIG. 3 ) displays an image 1000 obtained from a camera module (eg, the camera module 340 of FIG. 3 ) (eg, the touch screen of FIG. 3 ). may be displayed on the display 340 . The processor may detect at least one or more straight lines based at least on the object included in the image 1000 .

예컨대, 프로세서는 <1010>에 도시된 바와 같이 상기 검출된 적어도 하나 이상의 직선들(미도시) 중 적어도 하나 예컨대, 제1 직선(1011)을 선택하는 입력을 수신할 수 있다. For example, as shown in <1010>, the processor may receive an input for selecting at least one of the detected at least one or more straight lines (not shown), for example, the first straight line 1011 .

일 실시예에서, 프로세서는 상기 선택된 제1 직선(1011)을 기준선으로 결정하고, 상기 기준선으로 결정된 제1 직선(1011)에 기초하여 수직 보정된 프리뷰 이미지를 표시할 수 있다. 일 실시예에서, 상기 수직 보정된 프리뷰 이미지는 이미지를 촬영하기 전에 상기 보정된 이미지의 구도를 사용자가 미리 확인할 수 있도록 제공하기 위한 이미지일 수 있다.In an embodiment, the processor may determine the selected first straight line 1011 as a reference line, and display a vertically corrected preview image based on the first straight line 1011 determined as the reference line. In an embodiment, the vertically corrected preview image may be an image for providing a user to check the composition of the corrected image in advance before capturing the image.

일 실시예에서, 프로세서는 상기 수직 보정된 프리뷰 이미지 상에 틸트 결과를 나타내는 가이드 선(1021)(예: 사각형 형태)을 표시할 수 있다. 예컨대, 상기 틸트 결과를 나타내는 가이드(1021)을 수직 보정된 프리뷰 이미지 상에 표시함에 따라 사용자는 저장될 이미지의 영역을 미리 확인할 수 있다.In an embodiment, the processor may display a guide line 1021 (eg, a rectangular shape) indicating a tilt result on the vertically corrected preview image. For example, as the guide 1021 indicating the tilt result is displayed on the vertically corrected preview image, the user can check the area of the image to be stored in advance.

일 실시예에서, 프로세서는 이미지 촬영 신호가 감지되면, <1030>에 도시된 바와 같이 상기 기준선으로 결정된 제1 직선(1011)이 이미지(1000)의 세로축(예컨대, 도 5a 및 도 5b의 수직 중심축(520, 570))에 평행하도록 수직 보정된 이미지(예: 틸트 결과에 따른 이미지(1021))를 저장할 수 있다.In an embodiment, the processor determines that when an image capturing signal is detected, as shown in <1030>, the first straight line 1011 determined as the reference line is the vertical axis of the image 1000 (eg, the vertical center of FIGS. 5A and 5B ). An image vertically corrected to be parallel to the axes 520 and 570 (eg, the image 1021 according to the tilt result) may be stored.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치 (예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치 중 적어도 하나를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.The electronic device according to various embodiments disclosed in this document may have various types of devices. The electronic device may include, for example, at least one of a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, and a home appliance device. The electronic device according to the embodiment of the present document is not limited to the above-described devices.

본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 및/또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및/또는 B 중 적어도 하나", "A, B 또는 C" 또는 "A, B 및/또는 C 중 적어도 하나" 등의 표현은 함께 나열된 항목들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", "첫째" 또는 "둘째" 등의 표현들은 해당 구성요소들을, 순서 또는 중요도에 상관없이 수식할 수 있고, 한 구성요소를 다른 구성요소와 구분하기 위해 사용될 뿐 해당 구성요소들을 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에 "(기능적으로 또는 통신적으로) 연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로 연결되거나, 다른 구성요소(예: 제 3 구성요소)를 통하여 연결될 수 있다.It should be understood that the various embodiments of this document and the terms used therein are not intended to limit the technology described in this document to the specific embodiments, and include various modifications, equivalents, and/or substitutions of the embodiments. In connection with the description of the drawings, like reference numerals may be used for like components. The singular expression may include the plural expression unless the context clearly dictates otherwise. In this document, expressions such as “A or B”, “at least one of A and/or B”, “A, B or C” or “at least one of A, B and/or C” refer to all of the items listed together. Possible combinations may be included. Expressions such as “first”, “second”, “first” or “second” can modify the corresponding components regardless of order or importance, and are only used to distinguish one component from another. The components are not limited. When an (eg, first) component is referred to as being “connected (functionally or communicatively)” or “connected” to another (eg, second) component, that component is It may be directly connected to the component or may be connected through another component (eg, a third component).

본 문서에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구성된 유닛을 포함하며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 모듈은 ASIC(application-specific integrated circuit)으로 구성될 수 있다. As used herein, the term “module” includes a unit composed of hardware, software, or firmware, and may be used interchangeably with terms such as, for example, logic, logic block, component, or circuit. A module may be an integrally formed part or a minimum unit or a part of one or more functions. For example, the module may be configured as an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시예들은 기기(machine)(예: 컴퓨터)로 읽을 수 있는 저장 매체(machine-readable storage media)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 명령어를 포함하는 소프트웨어(예: 프로그램(140))로 구현될 수 있다. 기기는, 저장 매체로부터 저장된 명령어를 호출하고, 호출된 명령어에 따라 동작이 가능한 장치로서, 개시된 실시예들에 따른 전자 장치(예: 전자 장치(101))를 포함할 수 있다. 상기 명령이 프로세서(예: 프로세서(120))에 의해 실행될 경우, 프로세서가 직접, 또는 상기 프로세서의 제어하에 다른 구성요소들을 이용하여 상기 명령에 해당하는 기능을 수행할 수 있다. 명령은 컴파일러 또는 인터프리터에 의해 생성 또는 실행되는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장매체가 신호(signal)를 포함하지 않으며 실재(tangible)한다는 것을 의미할 뿐 데이터가 저장매체에 반영구적 또는 임시적으로 저장됨을 구분하지 않는다.Various embodiments of the present document include instructions stored in a machine-readable storage media (eg, internal memory 136 or external memory 138) that can be read by a machine (eg, a computer). It may be implemented as software (eg, the program 140). The device is a device capable of calling a stored command from a storage medium and operating according to the called command, and may include an electronic device (eg, the electronic device 101 ) according to the disclosed embodiments. When the instruction is executed by a processor (eg, the processor 120), the processor may directly or use other components under the control of the processor to perform a function corresponding to the instruction. Instructions may include code generated or executed by a compiler or interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' means that the storage medium does not include a signal and is tangible, and does not distinguish that data is semi-permanently or temporarily stored in the storage medium.

일시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 온라인으로 배포될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to an exemplary embodiment, the method according to various embodiments disclosed in this document may be included and provided in a computer program product. Computer program products may be traded between sellers and buyers as commodities. The computer program product may be distributed in the form of a machine-readable storage medium (eg, compact disc read only memory (CD-ROM)) or online through an application store (eg, Play Store™). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily generated in a storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.

다양한 실시예들에 따른 구성 요소(예: 모듈 또는 프로그램) 각각은 단수 또는 복수의 개체로 구성될 수 있으며, 전술한 해당 서브 구성 요소들 중 일부 서브 구성 요소가 생략되거나, 또는 다른 서브 구성 요소가 다양한 실시예에 더 포함될 수 있다. 대체적으로 또는 추가적으로, 일부 구성 요소들(예: 모듈 또는 프로그램)은 하나의 개체로 통합되어, 통합되기 이전의 각각의 해당 구성 요소에 의해 수행되는 기능을 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따른, 모듈, 프로그램 또는 다른 구성 요소에 의해 수행되는 동작들은 순차적, 병렬적, 반복적 또는 휴리스틱하게 실행되거나, 적어도 일부 동작이 다른 순서로 실행되거나, 생략되거나, 또는 다른 동작이 추가될 수 있다.Each of the components (eg, a module or a program) according to various embodiments may be composed of a singular or a plurality of entities, and some sub-components of the aforementioned sub-components may be omitted, or other sub-components may be It may be further included in various embodiments. Alternatively or additionally, some components (eg, a module or a program) may be integrated into a single entity to perform the same or similar functions performed by each corresponding component prior to integration. According to various embodiments, operations performed by a module, program, or other component are executed sequentially, parallel, iteratively, or heuristically, or at least some operations are executed in a different order, are omitted, or other operations are added. can be

310: 통신 회로
320: 메모리
330: 터치스크린 디스플레이
340: 카메라 모듈
350: 프로세서
310: communication circuit
320: memory
330: touch screen display
340: camera module
350: processor

Claims (20)

전자 장치에 있어서,
디스플레이; 및
프로세서를 포함하고, 상기 프로세서는,
이미지를 상기 디스플레이에 표시하고, 상기 이미지에 포함된 오브젝트에 적어도 기반하여 지정된 길이를 만족하는 적어도 하나 이상의 직선들을 검출하고,
상기 적어도 하나 이상의 직선들 중 적어도 하나를 기준선으로 결정하고,
상기 기준선이 상기 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 상기 이미지를 보정하고, 및
상기 검출된 적어도 하나 이상의 직선들이 가로 직선 및 세로 직선을 포함하는 경우, 상기 이미지의 특성에 기초하여 상기 가로 직선 및 상기 세로 직선 중 하나를 상기 기준선으로 결정하고,
상기 이미지의 특성은, 상기 이미지의 장면, 상기 이미지의 촬영 환경, 및 상기 이미지의 촬영 방향 중 적어도 하나를 포함하는 전자 장치.
In an electronic device,
display; and
A processor comprising:
displaying an image on the display and detecting at least one or more straight lines that satisfy a specified length based at least on an object included in the image,
Determining at least one of the at least one or more straight lines as a reference line,
correcting the image so that the reference line is parallel to at least one of a horizontal axis or a vertical axis of the image, and
When the detected at least one or more straight lines include a horizontal straight line and a vertical straight line, one of the horizontal straight line and the vertical straight line is determined as the reference line based on the characteristics of the image,
The characteristic of the image includes at least one of a scene of the image, a photographing environment of the image, and a photographing direction of the image.
제 1 항에 있어서, 상기 프로세서는,
상기 디스플레이를 이용하여 상기 적어도 하나 이상의 직선들을 상기 이미지에 중첩되게 표시하도록 설정된 전자 장치.
The method of claim 1, wherein the processor comprises:
An electronic device configured to display the one or more straight lines to be superimposed on the image using the display.
제 2 항에 있어서,
상기 프로세서는,
상기 이미지에 중첩되게 표시된 적어도 하나 이상의 직선들 중 적어도 하나의 직선을 선택하는 사용자의 입력에 적어도 기반하여, 상기 선택된 적어도 하나의 직선을 상기 기준선으로 결정하도록 설정된 전자 장치.
3. The method of claim 2,
The processor is
The electronic device is configured to determine the selected at least one straight line as the reference line based at least on the basis of a user input for selecting at least one straight line among the at least one or more straight lines displayed to be superimposed on the image.
제 1 항에 있어서,
이미지 센서를 더 포함하고,
상기 프로세서는,
상기 이미지 센서를 이용하여 상기 이미지를 획득하여 상기 디스플레이에 표시하도록 설정된 전자 장치.
The method of claim 1,
Further comprising an image sensor,
The processor is
An electronic device configured to acquire the image using the image sensor and display it on the display.
제 1 항에 있어서,
상기 프로세서는,
상기 적어도 하나 이상의 직선들 중 길이가 긴 직선을 상기 기준선으로 결정하도록 설정된 전자 장치.
The method of claim 1,
The processor is
An electronic device configured to determine a long straight line among the one or more straight lines as the reference line.
제 1 항에 있어서,
상기 프로세서는,
상기 검출된 적어도 하나 이상의 직선들이 가로 직선 및 세로 직선을 포함하는 경우, 상기 세로 직선을 상기 기준선으로 결정하도록 설정된 전자 장치.
The method of claim 1,
The processor is
An electronic device configured to determine the vertical straight line as the reference line when the detected at least one or more straight lines include a horizontal straight line and a vertical straight line.
제 1 항에 있어서,
상기 이미지의 장면은 인물 및 풍경을 포함하고,
상기 이미지의 촬영 환경은 실내 및 실외를 포함하고, 및
상기 이미지의 촬영 방향은 세로 방향 및 가로 방향을 포함하고,
상기 프로세서는,
상기 이미지가 상기 인물을 포함하는 이미지인 경우, 상기 세로 직선 및 상기 가로 직선 중 상기 세로 직선을 상기 기준선으로 결정하고,
상기 이미지가 상기 풍경을 포함하는 이미지인 경우, 상기 세로 직선 및 상기 가로 직선 중 상기 가로 직선을 상기 기준선으로 결정하고,
상기 이미지가 상기 실내에서 촬영한 이미지인 경우, 상기 세로 직선 및 상기 가로 직선 중 상기 가로 직선을 상기 기준선으로 결정하고,
상기 이미지가 상기 실외에서 촬영한 이미지인 경우, 상기 세로 직선 및 상기 가로 직선 중 상기 세로 직선을 상기 기준선으로 결정하고,
상기 이미지가 상기 세로 방향으로 촬영한 이미지인 경우, 상기 세로 직선 및 상기 가로 직선 중 상기 세로 직선을 상기 기준선으로 결정하고, 및
상기 이미지가 상기 가로 방향으로 촬영한 이미지인 경우, 상기 세로 직선 및 상기 가로 직선 중 상기 가로 직선을 상기 기준선으로 결정하도록 설정된 전자 장치.
The method of claim 1,
The scene of the image includes a person and a landscape,
The photographing environment of the image includes indoor and outdoor, and
The photographing direction of the image includes a vertical direction and a horizontal direction,
The processor is
If the image is an image including the person, determining the vertical straight line among the vertical straight line and the horizontal straight line as the reference line,
When the image is an image including the landscape, the horizontal straight line among the vertical straight line and the horizontal straight line is determined as the reference line,
When the image is an image taken indoors, the horizontal straight line among the vertical straight line and the horizontal straight line is determined as the reference line,
When the image is an image taken outdoors, the vertical straight line among the vertical straight line and the horizontal straight line is determined as the reference line,
If the image is the image taken in the vertical direction, determining the vertical straight line among the vertical straight line and the horizontal straight line as the reference line, and
an electronic device configured to determine the horizontal straight line among the vertical straight line and the horizontal straight line as the reference line when the image is the image taken in the horizontal direction.
제 4 항에 있어서,
상기 프로세서는,
상기 이미지 센서를 이용하여 획득된 상기 이미지를 촬영하는 신호가 감지되면, 상기 이미지를 촬영하며, 상기 결정된 기준선이 상기 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 상기 촬영된 이미지를 보정하고, 저장하도록 설정된 전자 장치.
5. The method of claim 4,
The processor is
When a signal for photographing the image obtained using the image sensor is detected, the image is photographed, and the photographed image is corrected and stored so that the determined reference line is parallel to at least one of a horizontal axis or a vertical axis of the image set electronics.
제 1 항에 있어서,
상기 프로세서는,
상기 보정된 이미지에 기초하여 틸트(tilt)된 영역을 나타내는 인디케이터를 중첩되게 표시하도록 설정된 전자 장치.
The method of claim 1,
The processor is
An electronic device configured to overlap an indicator indicating a tilted area based on the corrected image.
전자 장치의 이미지에 포함된 오브젝트에 기반하여 이미지를 보정하는 방법에 있어서,
이미지를 디스플레이에 표시하는 동작;
상기 이미지에 포함된 오브젝트에 적어도 기반하여 지정된 길이를 만족하는 적어도 하나 이상의 직선들을 검출하는 동작;
상기 적어도 하나 이상의 직선들 중 적어도 하나를 기준선으로 결정하는 동작; 및
상기 기준선이 상기 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 상기 이미지를 보정하는 동작을 포함하고,
상기 적어도 하나를 상기 기준선으로 결정하는 동작은,
상기 검출된 적어도 하나 이상의 직선들이 가로 직선 및 세로 직선을 포함하는 경우, 상기 이미지의 특성에 기초하여 상기 가로 직선 및 상기 세로 직선 중 하나를 상기 기준선으로 결정하는 동작을 포함하고,
상기 이미지의 특성은, 상기 이미지의 장면, 상기 이미지의 촬영 환경, 및 상기 이미지의 촬영 방향 중 적어도 하나를 포함하는 방법.
A method of correcting an image based on an object included in an image of an electronic device, the method comprising:
displaying an image on a display;
detecting at least one or more straight lines satisfying a specified length based on at least an object included in the image;
determining at least one of the at least one or more straight lines as a reference line; and
correcting the image so that the reference line is parallel to at least one of a horizontal axis and a vertical axis of the image,
The operation of determining the at least one as the reference line comprises:
When the detected at least one or more straight lines include a horizontal straight line and a vertical straight line, determining one of the horizontal straight line and the vertical straight line as the reference line based on the characteristics of the image,
The characteristic of the image includes at least one of a scene of the image, a shooting environment of the image, and a shooting direction of the image.
◈청구항 11은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 11 was abandoned when paying the registration fee.◈ 제 10 항에 있어서,
상기 적어도 하나 이상의 직선들을 검출한 후, 상기 검출된 적어도 하나 이상의 직선들을 상기 이미지에 중첩되게 표시하는 동작을 더 포함하는 방법.
11. The method of claim 10,
After detecting the at least one or more straight lines, the method further comprising: displaying the detected at least one or more straight lines to be superimposed on the image.
◈청구항 12은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 12 was abandoned when paying the registration fee.◈ 제 11 항에 있어서,
상기 이미지에 중첩되게 표시된 적어도 하나 이상의 직선들 중 적어도 하나의 직선을 선택하는 사용자의 입력을 감지하는 동작을 더 포함하며,
상기 적어도 하나를 기준선으로 결정하는 동작은,
상기 사용자의 입력에 의해 선택된 적어도 하나의 직선을 상기 기준선으로 결정하는 동작인 방법.
12. The method of claim 11,
Further comprising the operation of detecting a user input for selecting at least one straight line among the at least one or more straight lines displayed to be superimposed on the image,
The operation of determining the at least one as a reference line,
and determining at least one straight line selected by the user's input as the reference line.
◈청구항 13은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 13 was abandoned when paying the registration fee.◈ 제 10 항에 있어서,
상기 이미지를 상기 디스플레이에 표시하는 동작은,
이미지 센서를 이용하여 획득되는 이미지를 상기 디스플레이에 표시하는 동작인 방법.
11. The method of claim 10,
The operation of displaying the image on the display comprises:
An operation of displaying an image acquired using an image sensor on the display.
◈청구항 14은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 14 was abandoned when paying the registration fee.◈ 제 10 항에 있어서,
상기 적어도 하나를 기준선으로 결정하는 동작은,
상기 적어도 하나 이상의 직선들 중 길이가 긴 직선을 상기 기준선으로 결정하는 동작인 방법.
11. The method of claim 10,
The operation of determining the at least one as a reference line,
and determining, as the reference line, a long straight line among the at least one or more straight lines.
◈청구항 15은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 15 was abandoned when paying the registration fee.◈ 제 10 항에 있어서,
상기 적어도 하나를 기준선으로 결정하는 동작은,
상기 검출된 적어도 하나 이상의 직선들이 가로 직선 및 세로 직선을 포함하는 경우, 상기 세로 직선을 상기 기준선으로 결정하는 동작인 방법.
11. The method of claim 10,
The operation of determining the at least one as a reference line,
and determining the vertical straight line as the reference line when the detected at least one or more straight lines include a horizontal straight line and a vertical straight line.
삭제delete ◈청구항 17은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 17 was abandoned when paying the registration fee.◈ 제 13 항에 있어서,
상기 이미지 센서를 이용하여 획득된 상기 이미지를 촬영하는 신호를 감지하는 동작;
상기 이미지를 촬영하며, 상기 결정된 기준선이 상기 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 상기 촬영된 이미지를 보정하는 동작; 및
상기 보정된 이미지를 저장하는 동작을 더 포함하는 방법.
14. The method of claim 13,
detecting a signal for capturing the image acquired using the image sensor;
photographing the image and correcting the photographed image so that the determined reference line is parallel to at least one of a horizontal axis and a vertical axis of the image; and
and storing the corrected image.
◈청구항 18은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 18 was abandoned when paying the registration fee.◈ 제 10 항에 있어서,
상기 보정된 이미지에 기초하여 틸트(tilt)된 영역을 나타내는 인디케이터를 중첩되게 표시하는 동작을 더 포함하는 방법.
11. The method of claim 10,
The method further comprising the operation of displaying an indicator indicating a tilted area based on the corrected image to be overlapped.
◈청구항 19은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 19 was abandoned at the time of payment of the registration fee.◈ 제 10 항에 있어서,
상기 보정된 이미지를 편집하는 이미지 편집 기능을 제공하는 동작을 더 포함하며,
상기 이미지 편집 기능은 상기 이미지의 확대, 축소, 비율 조정, 이미지 자르기, 밝기 조절, 및 효과 적용 중 적어도 하나를 포함하는 방법.
11. The method of claim 10,
Further comprising the operation of providing an image editing function to edit the corrected image,
The image editing function includes at least one of enlarging, reducing, adjusting a ratio, cropping an image, adjusting brightness, and applying an effect of the image.
◈청구항 20은(는) 설정등록료 납부시 포기되었습니다.◈◈Claim 20 was abandoned when paying the registration fee.◈ 이미지에 포함된 오브젝트에 기반하여 이미지를 보정하는 방법을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록 매체에 있어서, 상기 방법은,
이미지를 디스플레이에 표시하는 동작;
상기 이미지에 포함된 오브젝트에 적어도 기반하여 지정된 길이를 만족하는 적어도 하나 이상의 직선들을 검출하는 동작;
상기 적어도 하나 이상의 직선들 중 적어도 하나를 기준선으로 결정하는 동작; 및
상기 기준선이 상기 이미지의 가로축 또는 세로축 중 적어도 하나에 평행하도록 상기 이미지를 보정하는 동작을 포함하고,
상기 적어도 하나를 상기 기준선으로 결정하는 동작은,
상기 검출된 적어도 하나 이상의 직선들이 가로 직선 및 세로 직선을 포함하는 경우, 상기 이미지의 특성에 기초하여 상기 가로 직선 및 상기 세로 직선 중 하나를 상기 기준선으로 결정하는 동작을 포함하고,
상기 이미지의 특성은, 상기 이미지의 장면, 상기 이미지의 촬영 환경, 및 상기 이미지의 촬영 방향 중 적어도 하나를 포함하는 것을 특징으로 하는 컴퓨터로 읽을 수 있는 기록 매체.
A computer-readable recording medium recording a program for executing a method of correcting an image based on an object included in the image in a computer, the method comprising:
displaying an image on a display;
detecting at least one or more straight lines satisfying a specified length based on at least an object included in the image;
determining at least one of the at least one or more straight lines as a reference line; and
correcting the image so that the reference line is parallel to at least one of a horizontal axis and a vertical axis of the image,
The operation of determining the at least one as the reference line comprises:
When the detected at least one or more straight lines include a horizontal straight line and a vertical straight line, determining one of the horizontal straight line and the vertical straight line as the reference line based on the characteristics of the image,
The characteristic of the image includes at least one of a scene of the image, a photographing environment of the image, and a photographing direction of the image.
KR1020170134839A 2017-10-17 2017-10-17 Electronic device and method for correcting image based on object included image KR102457559B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020170134839A KR102457559B1 (en) 2017-10-17 2017-10-17 Electronic device and method for correcting image based on object included image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020170134839A KR102457559B1 (en) 2017-10-17 2017-10-17 Electronic device and method for correcting image based on object included image

Publications (2)

Publication Number Publication Date
KR20190043032A KR20190043032A (en) 2019-04-25
KR102457559B1 true KR102457559B1 (en) 2022-10-21

Family

ID=66283744

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170134839A KR102457559B1 (en) 2017-10-17 2017-10-17 Electronic device and method for correcting image based on object included image

Country Status (1)

Country Link
KR (1) KR102457559B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817549B (en) * 2021-01-28 2024-02-06 卡莱特云科技股份有限公司 Signal layer adjusting method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006146393A (en) * 2004-11-17 2006-06-08 Nikon Corp Image processing program and image processor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100559963B1 (en) * 1999-06-03 2006-03-13 삼성테크윈 주식회사 Photo device capable of balancing a vertical element or a horizontal element of an image and method thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006146393A (en) * 2004-11-17 2006-06-08 Nikon Corp Image processing program and image processor

Also Published As

Publication number Publication date
KR20190043032A (en) 2019-04-25

Similar Documents

Publication Publication Date Title
KR102338576B1 (en) Electronic device which stores depth information associating with image in accordance with Property of depth information acquired using image and the controlling method thereof
KR102423175B1 (en) An apparatus for editing images using depth map and a method thereof
KR102328539B1 (en) Electronic device for acquiring image using plurality of cameras and method for processing image using the same
US11558553B2 (en) Electronic device for stabilizing image and method for operating same
KR102348504B1 (en) Method for reducing parallax of a plurality of cameras and electronic device supporting the same
KR20190032061A (en) Electronic device performing image correction and operation method of thereof
US11128795B2 (en) Electronic device for recommending composition and operating method thereof
KR102382871B1 (en) Electronic Device for controlling lens focus and the controlling Method thereof
KR102423295B1 (en) An apparatus for composing objects using depth map and a method thereof
KR102452564B1 (en) Apparatus and method for estimating optical image stabilization motion
KR102318013B1 (en) Electronic device composing a plurality of images and method
KR102383134B1 (en) Electronic device for processing image based on priority and method for operating thefeof
EP3718296B1 (en) Electronic device and method for controlling autofocus of camera
EP3661189A1 (en) Electronic device capable of controlling image display effect, and method for displaying image
CN109905594B (en) Method of providing image and electronic device for supporting the same
KR102452575B1 (en) Apparatus and method for compensating variation of images caused by optical image stabilization motion
KR102330264B1 (en) Electronic device for playing movie based on movment information and operating mehtod thereof
KR102512839B1 (en) Electronic device and method obtaining image using cameras through adjustment of position of external device
KR102418852B1 (en) Electronic device and method for controlling an image display
KR102457559B1 (en) Electronic device and method for correcting image based on object included image
KR20210068877A (en) Method and electronic device for correcting image according to camera switch
CN113454982B (en) Electronic device for stabilizing image and method of operating the same
KR20210137799A (en) Image processing method and electronic device thereof

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