KR20200028600A - Electronic device for extracting template applicable to electronic document from image and operating method thereof - Google Patents
Electronic device for extracting template applicable to electronic document from image and operating method thereof Download PDFInfo
- Publication number
- KR20200028600A KR20200028600A KR1020180106857A KR20180106857A KR20200028600A KR 20200028600 A KR20200028600 A KR 20200028600A KR 1020180106857 A KR1020180106857 A KR 1020180106857A KR 20180106857 A KR20180106857 A KR 20180106857A KR 20200028600 A KR20200028600 A KR 20200028600A
- Authority
- KR
- South Korea
- Prior art keywords
- template
- image
- objects
- electronic device
- electronic document
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
본 발명은 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치 및 그의 동작 방법에 대한 것이다.The present invention relates to an electronic device for extracting a template applicable to an electronic document from an image and a method for operating the same.
최근, 컴퓨터, 스마트폰 또는 태블릿 PC 등과 같은 전자 장치가 널리 보급됨에 따라 이러한 전자 장치를 이용하여 전자 문서를 열람, 작성, 편집할 수 있도록 하는 다양한 종류의 전자 문서 관련 프로그램들이 출시되고 있다.In recent years, as electronic devices such as computers, smartphones, or tablet PCs are widely spread, various types of electronic document related programs have been released to enable electronic documents to be read, created, and edited using these electronic devices.
전자 문서 관련 프로그램들로는 기본적인 문서의 작성, 편집 등을 지원하는 워드프로세서 프로그램, 데이터의 입력, 산술연산, 데이터 관리를 보조하는 스프레드시트 프로그램 및 발표자의 발표를 보조하기 위한 프레젠테이션 프로그램이 있다. 이러한 전자 문서 관련 프로그램들은 전자 문서에 적용 가능한 다양한 형태의 템플릿들(또는 서식들)을 제공한다. 전자 장치의 사용자는 전자 문서 관련 프로그램들을 통해 제공되는 템플릿을 이용하여 전자 문서를 작성할 수 있다.Electronic document-related programs include word processor programs that support basic document creation and editing, data input, arithmetic operations, and spreadsheet programs that assist in data management, and presentation programs to assist presenters. These electronic document related programs provide various types of templates (or forms) applicable to electronic documents. A user of the electronic device can create an electronic document using a template provided through electronic document related programs.
한편, 전자 문서 관련 프로그램들을 통해 제공되는 템플릿은 상기 프로그램들이 제작될 당시에 미리 생성된 후 삽입된 것이기 때문에, 사용자가 필요로 하는 템플릿을 포함하지 않을 가능성이 있다. 또한, 기존의 전자 문서 관련 프로그램들은 사용자가 직접 템플릿을 추가할 수 있는 기능을 제공하지 않거나, 제공하더라도 제한적인 범위 내에서만 템플릿을 추가할 수 있는 인터페이스를 제공할 뿐이라서, 사용자가 템플릿을 전자 문서에 추가하는데 있어 불편함이 존재했다.On the other hand, since the template provided through the electronic document-related programs is pre-generated and inserted at the time the programs are produced, there is a possibility that the template required by the user is not included. In addition, existing electronic document-related programs do not provide a function for adding a template by the user, or provide an interface for adding a template only within a limited range even if provided, so that the user can use the electronic document for the template. There were inconveniences in adding to.
본 문서에 개시된 다양한 실시 예들은 상기한 문제점에 기초하여 안출된 것이다. 일 실시 예에 따른 전자 장치는 외부로부터 획득된 이미지에 기초하여 새로운 템플릿을 생성하거나 기 저장된 템플릿들 중 상기 획득된 이미지와 유사한 템플릿을 추천하는 기능을 제공할 수 있다. 예컨대, 전자 장치는 카메라 또는 네트워크를 통해 적어도 하나의 오브젝트를 포함하는 이미지가 획득되는 경우, 이미지에 포함된 적어도 하나의 오브젝트를 식별 및 추출할 수 있고, 추출된 적어도 하나의 오브젝트와 동일 또는 유사한 도형으로 구성된 템플릿을 생성하거나 동일 또는 유사한 도형을 포함하는 기 저장된 템플릿을 추천할 수 있다. Various embodiments disclosed in this document have been devised based on the above problems. The electronic device according to an embodiment may provide a function of creating a new template based on an image acquired from the outside or recommending a template similar to the acquired image among previously stored templates. For example, when an image including at least one object is acquired through a camera or a network, the electronic device may identify and extract at least one object included in the image, and the same or similar figure as the extracted at least one object It is possible to create a template composed of or recommend a pre-stored template including the same or similar figures.
본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치는, 전자 장치 상에서 실행 중인 전자 문서 내 적어도 하나의 페이지를 표시하는 표시부, 상기 적어도 하나의 페이지에 적용 가능한 복수의 도형들 및 복수의 템플릿들을 저장하는 저장부, 이미지에서 하나 이상의 오브젝트들이 검출되는 것에 응답하여, 상기 검출된 하나 이상의 오브젝트들 각각이 상기 이미지 내에서 차지하는 비율 및 상기 검출된 하나 이상의 오브젝트들 각각에 대한 상기 이미지 내 위치를 식별하는 오브젝트 식별부, 상기 이미지 또는 상기 하나 이상의 오브젝트들의 속성에 기초하여, 상기 적어도 하나의 페이지의 레이아웃을 조정하는 레이아웃 설정부, 상기 복수의 도형들 중에서 상기 검출된 하나 이상의 오브젝트들과 대응되는 적어도 하나의 도형을 선택하고, 상기 선택된 적어도 하나의 도형을 상기 레이아웃이 조정된 적어도 하나의 페이지에 삽입하여 제 1 템플릿을 생성하는 템플릿 생성부 및 상기 생성된 제 1 템플릿을 상기 전자 문서에 적용하는 문서 생성부를 포함할 수 있다.An electronic device for extracting a template applicable to an electronic document from an image according to various embodiments disclosed in the present document includes: a display unit displaying at least one page in an electronic document running on the electronic device, a plurality applicable to the at least one page A storage unit for storing the figures and a plurality of templates, in response to the detection of one or more objects in the image, the proportion of each of the detected one or more objects in the image and each of the detected one or more objects An object identification unit for identifying a position in the image, a layout setting unit for adjusting the layout of the at least one page based on the attributes of the image or the one or more objects, and the detected one or more among the plurality of figures Object A template generator for generating a first template by selecting at least one figure corresponding to and inserting the selected at least one figure into at least one page in which the layout is adjusted, and the generated first template in the electronic document. It may include a document generator that applies to.
또한, 본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치의 동작 방법은, 전자 장치 상에서 실행 중인 전자 문서 내 적어도 하나의 페이지를 표시하는 단계, 상기 적어도 하나의 페이지에 적용 가능한 복수의 도형들 및 복수의 템플릿들을 저장하는 단계, 이미지에서 하나 이상의 오브젝트들이 검출되는 것에 응답하여, 상기 검출된 하나 이상의 오브젝트들 각각이 상기 이미지 내에서 차지하는 비율 및 상기 검출된 하나 이상의 오브젝트들 각각에 대한 상기 이미지 내 위치를 식별하는 단계, 상기 이미지 또는 상기 하나 이상의 오브젝트들의 속성에 기초하여, 상기 적어도 하나의 페이지의 레이아웃을 조정하는 단계, 상기 복수의 도형들 중에서 상기 검출된 하나 이상의 오브젝트들과 대응되는 적어도 하나의 도형을 선택하는 단계, 상기 선택된 적어도 하나의 도형을 상기 레이아웃이 조정된 적어도 하나의 페이지에 삽입하여 제 1 템플릿을 생성하는 단계 및 상기 생성된 제 1 템플릿을 상기 전자 문서에 적용하는 단계를 포함할 수 있다.In addition, according to various embodiments disclosed in the present disclosure, a method of operating an electronic device for extracting a template applicable to an electronic document from an image includes displaying at least one page in an electronic document running on the electronic device, the at least one Storing a plurality of shapes and a plurality of templates applicable to a page, in response to one or more objects being detected in an image, a ratio of each of the detected one or more objects in the image and the detected one or more Identifying a location in the image for each of the objects, adjusting the layout of the at least one page based on the attributes of the image or the one or more objects, the detected one or more of the plurality of figures Correspondence with objects Selecting at least one shape, inserting the selected at least one shape into at least one page in which the layout is adjusted to generate a first template, and applying the generated first template to the electronic document It may include steps.
본 문서에 개시된 다양한 실시 예들에 따르면, 전자 장치는 사용자가 필요로 하는 템플릿을 생성하거나 추천하기 위하여, 사용자로부터 입력된 이미지를 분석하여 이미지와 대응되는 크기, 배치 또는 모양을 갖는 템플릿을 생성할 수 있다. 이를 통해 전자 장치의 사용자는 전자 문서를 작성할 때 손쉽게 원하는 템플릿을 적용할 수 있으며, 전자 문서 관련 프로그램을 사용함에 있어 편의성이 증대될 수 있다.According to various embodiments disclosed in this document, the electronic device may generate a template having a size, arrangement, or shape corresponding to the image by analyzing an image input from the user in order to generate or recommend a template required by the user. have. Through this, the user of the electronic device can easily apply a desired template when creating an electronic document, and convenience may be increased in using an electronic document-related program.
도 1은 본 발명의 일 실시 예에 따른 전자 장치의 구성을 도시한 도면이다.
도 2는 본 발명의 일 실시 예에 따라 이미지로부터 템플릿을 생성하는 방법을 설명하기 위한 도면이다.
도 3은 본 발명의 일 실시 예에 따라 이미지로부터 템플릿을 생성하는 방법을 설명하기 위한 도면이다.
도 4는 본 발명의 일 실시 예에 따른 전자 장치에서 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 방법을 도시한 순서도이다.1 is a diagram illustrating a configuration of an electronic device according to an embodiment of the present invention.
2 is a view for explaining a method of generating a template from an image according to an embodiment of the present invention.
3 is a view for explaining a method of generating a template from an image according to an embodiment of the present invention.
4 is a flowchart illustrating a method of extracting a template applicable to an electronic document from an image in an electronic device according to an embodiment of the present invention.
본 문서에 개시된 다양한 실시 예들은 본 발명을 특정한 실시 형태로 한정하기 위해 제시된 것이 아니며, 다양한 실시 예들을 통해 소개된 구성요소들은 본 발명의 사상 및 기술 범위에 포함되는 모든 변경 가능한 균등물 내지 대체물을 포함하는 의미로서 제시된 것임을 당업자는 용이하게 이해할 것이다. 또한, 각 도면을 설명함에 있어, 다르게 정의되지 않는 한 기술적이거나 과학적인 용어를 포함해서 본 명세서 상에서 사용되는 모든 용어들은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 사람에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있는 것으로 해석될 수 있다. 또한, 본 발명의 목적 및 효과, 그리고 그것들을 달성하기 위한 기술적 구성들은 첨부되는 도면과 함께 상세하게 설명되는 실시 예들을 통해 명확해질 것이다. 본 발명을 설명함에 있어 공지 기능 또는 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우, 그와 관련된 상세한 설명은 생략될 수 있으며, 뒤에 설명되는 용어들은 본 발명에서의 구조, 역할 및 기능 등을 고려하여 정의된 용어들로서 이는 사용자 및 운용자의 의도 또는 관례 등에 따라 기존에 사용되던 의미와 달리 해석될 수 있다.The various embodiments disclosed in this document are not intended to limit the present invention to specific embodiments, and components introduced through various embodiments may include all changeable equivalents or substitutes included in the spirit and scope of the present invention. Those skilled in the art will readily understand that they are presented as inclusive meaning. In addition, in describing each drawing, unless defined otherwise, all terms used in this specification, including technical or scientific terms, are those that are generally understood by those skilled in the art to which the present invention pertains. It can be interpreted as having the same meaning. In addition, the objects and effects of the present invention, and technical configurations for achieving them will be clarified through embodiments described in detail with reference to the accompanying drawings. In the description of the present invention, when it is determined that a detailed description of known functions or configurations may unnecessarily obscure the subject matter of the present invention, detailed descriptions related thereto may be omitted, and the terms described later are structures in the present invention. , Terms defined in consideration of roles and functions, etc., which may be interpreted differently from meanings previously used according to intentions or conventions of users and operators.
본 발명은 이하에서 개시되는 실시 예들에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 수 있음을 밝혀둔다. 본 문서에 개시된 다양한 실시 예들은 본 발명의 개시가 완전하도록 하고, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것이며, 본 발명은 오로지 특허청구범위에 기재된 청구항의 범주에 의하여 정의될 뿐이다. It is noted that the present invention is not limited to the embodiments disclosed below, but can be implemented in various different forms. Various embodiments disclosed in this document are provided to make the disclosure of the present invention complete, and to fully inform the person of ordinary skill in the art to which the present invention pertains, the scope of the invention, and the present invention is solely claimed. It is only defined by the scope of the claims recited in the scope.
본 문서에서, 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있다는 것을 의미한다. 또한, 본 발명의 다양한 실시 예들에 있어서, 각 구성요소들, 기능 블록들 또는 수단들은 하나 또는 그 이상의 하부 구성요소로 구성될 수 있고, 각 구성요소들이 수행하는 전기, 전자, 기계적 기능들은 전자회로, 집적회로, ASIC(application specific integrated circuit) 등 공지된 다양한 소자들 또는 기계적 요소들로 구현될 수 있으며, 각각 별개로 구현되거나 2 이상이 하나로 통합되어 구현될 수도 있다. In this document, when it is said that a part "includes" a certain component, this means that other components may be further included rather than excluding other components unless specifically stated to the contrary. In addition, in various embodiments of the present invention, each component, functional blocks, or means may be composed of one or more sub-components, and electrical, electronic, and mechanical functions performed by each component are electronic circuits. , It may be implemented with various known elements or mechanical elements such as an integrated circuit, an application specific integrated circuit (ASIC), or may be implemented separately or in combination of two or more.
한편, 첨부된 블록도의 블록들이나 흐름도의 단계들은 범용 컴퓨터, 특수용 컴퓨터, 휴대용 노트북 컴퓨터, 네트워크 컴퓨터 등 데이터 프로세싱이 가능한 장비의 프로세서나 메모리에 탑재되어 지정된 기능들을 수행하는 컴퓨터 프로그램 인스트럭션들을 의미하는 것으로 해석될 수 있다. 이들 컴퓨터 프로그램 인스트럭션들은 컴퓨터 장치에 구비된 메모리 또는 컴퓨터에서 판독 가능한 메모리에 저장될 수 있기 때문에, 블록도의 블록들 또는 흐름도의 단계들에서 설명된 기능들은 이를 수행하는 인스트럭션 수단을 내포하는 제조물로 생산될 수도 있다. 아울러, 각 블록 또는 각 단계는 특정된 논리적 기능(들)을 실행하기 위한 하나 이상의 실행 가능한 인스트럭션들을 포함하는 모듈, 세그먼트 또는 코드의 일부를 나타낼 수 있다. 또, 몇 가지 대체 가능한 실시 예들에서는 블록들 또는 단계들에서 언급된 기능들이 정해진 순서와 달리 실행되는 것도 가능함을 주목해야 한다. 예컨대, 잇달아 도시되어 있는 두 개의 블록들 또는 단계들은 실질적으로 동시에 수행되거나, 역순으로 수행될 수 있으며, 경우에 따라 일부 블록들 또는 단계들이 생략된 채로 수행될 수도 있다.On the other hand, the steps of the blocks or flow charts of the accompanying block diagrams refer to computer program instructions mounted on a processor or memory of data processing equipment such as a general purpose computer, a special purpose computer, a portable notebook computer, and a network computer to perform designated functions. Can be interpreted. Since these computer program instructions can be stored in a memory provided in a computer device or in a computer readable memory, the functions described in the steps of the blocks or flowcharts in the block diagram are produced as an article containing instructions means for performing this. It may be. In addition, each block or step may represent a module, segment, or portion of code that includes one or more executable instructions for executing the specified logical function (s). It should also be noted that in some alternative embodiments, the functions mentioned in blocks or steps may be executed in a different order. For example, two blocks or steps shown in succession may be performed substantially simultaneously, or may be performed in reverse order, and in some cases, some blocks or steps may be omitted.
도 1은 본 발명의 일 실시 예에 따른 전자 장치의 구성을 도시한 도면이다. 다양한 실시 예들에 따르면, 전자 장치(100)는 표시부(110), 저장부(120), 오브젝트 식별부(130), 레이아웃 설정부(140), 템플릿 생성부(150), 템플릿 관리부(160) 및 문서 생성부(170) 중 적어도 하나를 포함할 수 있다. 여기서, 오브젝트 식별부(130), 레이아웃 설정부(140), 템플릿 생성부(150), 템플릿 관리부(160) 및 문서 생성부(170)는 특정 인스트럭션을 수행하는 모듈을 의미하기 위해 사용되었으며, 상기 모듈들을 통해 수행되는 인스트럭션들은 전자 장치의 프로세서(미도시)에 의해 수행되는 것으로 이해될 수 있음을 밝혀둔다.1 is a diagram illustrating a configuration of an electronic device according to an embodiment of the present invention. According to various embodiments, the
전자 장치(100)의 표시부(110)는 전자 장치(100)에서 생성된 정보를 시각적인 형태로 전자 장치(100)의 외부(예: 사용자)에 제공하는 기능을 수행할 수 있다. 일 실시 예에 따르면, 표시부(110)는 터치를 감지하도록 설정된 터치 회로 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 센서 회로를 포함할 수 있다. 표시부(110)는 전자 장치(100)의 하우징에 포함된 형태의 디스플레이를 의미하거나, 전자 장치(100)와 유선 또는 무선으로 연결될 수 있는 독립적인 형태의 디스플레이를 의미할 수 있다.The
일 실시 예에 따르면, 표시부(110)는 전자 장치(100) 상에서 실행 중인 전자 문서, 전자 문서에 포함된 콘텐트 및 상기 콘텐트와 관련된 템플릿, 서식을 제어하는데 이용되는 사용자 인터페이스를 표시할 수 있다. According to an embodiment, the
전자 장치(100)의 저장부(120)는 전자 장치(100)의 적어도 하나의 구성 요소에 의해 사용되는 다양한 데이터를 저장할 수 있다. 여기서, 데이터는 소프트웨어 및 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 또한, 저장부(120)는 휘발성 메모리 또는 비휘발성 메모리를 포함할 수 있다. 일 실시 예에 따르면, 저장부(120)는 전자 문서, 상기 전자 문서에 적용 가능한 복수의 도형들, 그리고 상기 전자 문서에 적용 가능한 복수의 템플릿들을 저장할 수 있다. 저장부(120)는 저장부(120)에 저장된 복수의 템플릿들을 전자 문서 관련 프로그램들이 제작될 때 미리 생성된 템플릿들과 전자 장치(100)의 사용자가 새롭게 추가한 템플릿들을 포함할 수 있다. The
전자 장치(100)의 오브젝트 식별부(130)는 이미지에서 하나 이상의 오브젝트들이 검출되는 것에 응답하여, 상기 검출된 하나 이상의 오브젝트들 각각이 상기 이미지 내에서 차지하는 비율 및 상기 검출된 하나 이상의 오브젝트들 각각에 대한 상기 이미지 내 위치를 식별할 수 있다. 예를 들어, 오브젝트 식별부(130)는 전자 장치(100)에 구비된 카메라(미도시), 전자 장치(100)의 통신부(미도시) 또는 전자 장치(100)의 저장부(120)로부터 적어도 하나의 이미지가 획득되는 경우, 획득된 이미지로부터 적어도 하나의 오브젝트를 검출할 수 있다. 다양한 실시 예들에 따르면, 오브젝트 식별부(130)는 적어도 하나의 오브젝트를 검출함에 있어, 이미지 내 복수의 픽셀들 각각의 픽셀 값을 이용하여 오브젝트를 형성하는 테두리를 식별하고, 식별된 테두리로 오브젝트를 검출하는 엣지 디텍션(edge detection) 등을 이용할 수 있다. The
일 실시 예에 따르면, 오브젝트 식별부(130)는 획득된 이미지로부터 적어도 하나의 오브젝트를 검출할 때, 상기 검출된 적어도 하나의 오브젝트가 상기 획득된 이미지 내에서 차지하는 비율을 확인할 수 있다. 또한, 오브젝트 식별부(130)는 획득된 이미지로부터 적어도 하나의 오브젝트를 검출할 때, 상기 획득된 이미지 내에서의 상기 검출된 적어도 하나의 오브젝트의 위치를 확인할 수 있다. 한편, 후술하는 바와 같이, 상기 확인된 비율 및 위치 중 적어도 하나는 템플릿을 생성하고, 생성된 템플릿에 상기 검출된 적어도 하나의 오브젝트와 대응되는 도형을 삽입할 때, 삽입되는 도형이 템플릿에서 차지하는 비율이나 위치를 결정할 때 기초 정보로서 이용될 수 있다.According to an embodiment, when the
전자 장치(100)의 레이아웃 설정부(140)는 획득된 이미지의 속성이나 상기 획득된 이미지 내 적어도 하나의 오브젝트의 속성에 기초하여, 전자 문서 내 적어도 하나의 페이지의 레이아웃을 조정할 수 있다. 속성은 이미지나 오브젝트의 모양, 크기 또는 가로 및 세로의 비 등을 포함하는 개념으로 이해될 수 있다. 예를 들어, 획득된 이미지가 직사각형이고 가로의 길이 대 세로의 길이의 비가 5 대 3일 경우, 레이아웃 설정부(140)는 전자 문서 내 적어도 하나의 페이지의 가로의 길이 대 세로의 길이의 비를 5 대 3으로 조정할 수 있다. 여기서, 레이아웃 조정의 대상이 되는 적어도 하나의 페이지는 획득된 이미지를 이용하여 생성되거나 선택되는 템플릿이 적용되는 페이지일 수 있다. The layout setting
일 실시 예에 따르면, 레이아웃 설정부(140)는 획득된 이미지에서 직사각형의 오브젝트가 식별되고, 다시 식별된 직사각형의 오브젝트 내부에서 복수의 오브젝트들이 식별되는 경우, 상기 직사각형의 오브젝트의 모양 또는 크기에 기초하여, 전자 문서 내 적어도 하나의 페이지의 레이아웃을 조정할 수 있다.According to one embodiment, the
전자 장치(100)의 템플릿 생성부(150)는 저장부(120)에 기 저장된 복수의 도형들 중에서 이미지로부터 검출된 적어도 하나의 오브젝트와 대응되는 도형을 선택하고, 상기 선택된 도형을 새롭게 생성되는 템플릿에 삽입할 수 있다. 새롭게 생성된 템플릿은 상기 레이아웃이 조정된 적어도 하나의 페이지에 적용될 수 있다.The
일 실시 예에 따르면, 템플릿 생성부(150)는 이미지로부터 검출된 적어도 하나의 오브젝트와 상기 복수의 도형들 간의 유사도를 계산하고, 상기 계산된 유사도가 임계치 이상인 도형들 중에서 상기 적어도 하나의 도형을 선택할 수 있다. 예컨대, 템플릿 생성부(150)는 계산된 유사도가 가장 높은 것으로 판단된 도형을 선택한 후, 선택된 도형을 새롭게 생성되는 템플릿에 삽입할 수 있다. 이 때, 템플릿 생성부(150)는 앞서 식별된 적어도 하나의 오브젝트에 대한 비율 및 위치에 기초하여, 상기 선택된 도형을 새롭게 생성될 템플릿에 삽입할 수 있다.According to an embodiment, the
전자 장치(100)의 템플릿 관리부(160)는 이미지로부터 검출된 적어도 하나의 오브젝트들과 저장부(120)에 기 저장된 복수의 템플릿들 각각에 포함된 복수의 도형들을 비교하고, 상기 비교 결과에 기초하여 상기 복수의 템플릿들 중 상기 적어도 하나의 오브젝트들과 연관성이 있는 것으로 판단된 하나 이상의 템플릿들을 식별하고 선택할 수 있다. 예컨대, 이미지로부터 검출된 적어도 하나의 오브젝트와 유사한 도형을 포함하고 있는 것으로 판단되는 템플릿이 하나 이상 식별되는 경우, 템플릿 관리부(160)는 상기 적어도 하나의 오브젝트의 비율 및 위치와 상기 식별된 템플릿들 내 도형의 비율 및 위치를 추가로 비교할 수 있다. 이어서, 템플릿 관리부(160)는 상기 비율 및 위치에 있어서 가장 유사한 도형을 포함하는 템플릿을 최종적으로 선택할 수 있다. 선택된 템플릿은 전자 문서 내 적어도 하나의 페이지에 적용될 수 있다. The
전자 장치(100)의 문서 생성부(170)는 새롭게 생성되거나 기 저장된 템플릿들 중에서 선택된 템플릿을 전자 문서에 적용하는 역할을 수행할 수 있다. The
도 2는 본 발명의 일 실시 예에 따라 이미지로부터 템플릿을 생성하는 방법을 설명하기 위한 도면이다.2 is a view for explaining a method of generating a template from an image according to an embodiment of the present invention.
도 2를 참고하면, 전자 장치(100)의 카메라 등을 통해 획득된 제 1 그림(201), 상기 제 1 그림(201)으로부터 검출된 하나 이상의 오브젝트들이 표현된 제 2 그림(202), 그리고 상기 제 2 그림(202)의 결과로서 생성된 템플릿을 나타내는 제 3 그림(203)을 확인할 수 있다.Referring to FIG. 2, a
일 실시 예에 따르면, 전자 장치(100)는 카메라를 통해 제 1 그림(201)을 획득하거나, 통신부를 통해 인터넷 등에서 제 1 그림(201)을 다운 받거나, 저장부(120)로부터 제 1 그림(201)을 획득할 수 있다. According to an embodiment, the
또한, 전자 장치(100)는 제 1 그림(201)에 포함된 적어도 하나의 오브젝트를 식별하고 추출할 수 있다. 예컨대, 전자 장치(100)는 제 1 그림(201)으로부터 제 1 복수의 오브젝트들(220, 221, 222, 223, 224), 제 2 복수의 오브젝트들(225, 226, 227, 228, 229), 제 3 오브젝트(210) 및 제 4 오브젝트(215)를 식별할 수 있다. 한편, 전자 장치(100)는 획득된 이미지로부터 적어도 하나의 오브젝트를 식별할 때, 획득된 이미지가 임계치 이상 기울어진 것으로 확인되는 등 획득된 이미지에 대해 보정이 필요한 것으로 판단되는 경우, 이를 보정하는 작업을 추가로 수행할 수 있다. Also, the
전자 장치(100)는 제 1 복수의 오브젝트들(220, 221, 222, 223, 224), 제 2 복수의 오브젝트들(225, 226, 227, 228, 229) 및 제 3 오브젝트(210) 각각에 대응하는 도형을 저장부(120)에서 검색할 수 있고, 이를 통해, 제 1-1 복수의 도형들(240, 241, 242, 243, 244), 제 2-1 복수의 도형들(245, 246, 247, 248, 249) 및 제 3-1 도형(230)을 선택할 수 있다. 보다 구체적으로, 전자 장치(100)는 제 1 복수의 오브젝트들(220, 221, 222, 223, 224)과 대응되는 도형들로서 제 1-1 복수의 도형들(240, 241, 242, 243, 244)을 선택할 수 있고, 제 2 복수의 오브젝트들(225, 226, 227, 228, 229)과 대응되는 도형들로서 제 2-1 복수의 도형들(245, 246, 247, 248, 249)을 선택할 수 있으며, 제 3 오브젝트(210)와 대응되는 도형으로 제 3-1 도형(230)을 선택할 수 있다. 선택된 도형들은 새롭게 생성될 템플릿에 제 3 그림(203)과 같이 삽입될 수 있다. 한편, 저장부(120)에서, 제 1 복수의 오브젝트들(220, 221, 222, 223, 224), 제 2 복수의 오브젝트들(225, 226, 227, 228, 229), 제 3 오브젝트(210) 및 제 4 오브젝트(215)와 대응되는 도형이 검색되지 않는다면, 전자 장치(100)는 제 1 복수의 오브젝트들(220, 221, 222, 223, 224), 제 2 복수의 오브젝트들(225, 226, 227, 228, 229), 제 3 오브젝트(210) 및 제 4 오브젝트(215)와 대응되는 도형을 새롭게 생성할 수도 있다.The
일 실시 예에 따르면, 전자 장치(100)는 획득된 이미지에서 텍스트가 식별되는 경우, 식별된 텍스트와 대응되는 영역을 오브젝트로서 식별하고 추출할 수 있다. 예를 들어, 전자 장치(100)는 제 1 그림(201)으로부터 "HANCOM", "한글과컴퓨터", "기업부설연구소"라는 텍스트가 식별됨에 따라, 상기 텍스트들과 대응되는 영역을 제 4 오브젝트(215)로 식별할 수 있다. 이어서, 전자 장치(100)는 제 4 오브젝트(215)와 대응되는 도형들로서 텍스트 상자(235)를 선택할 수 있다. 선택된 텍스트 상자(235)에는 제 1 그림(201)에서 식별된 텍스트의 배치 및 크기와 대응되는 텍스트 삽입 공간이 형성될 수 있다.According to an embodiment, when text is identified in the acquired image, the
도 3은 본 발명의 일 실시 예에 따라 이미지로부터 템플릿을 생성하는 방법을 설명하기 위한 도면이다.3 is a view for explaining a method of generating a template from an image according to an embodiment of the present invention.
도 3을 참고하면, 전자 장치(100)의 카메라 등을 통해 획득된 제 1 그림(301), 상기 제 1 그림(301)으로부터 검출된 하나 이상의 오브젝트들이 표현된 제 2 그림(302), 그리고 상기 제 2 그림(302)의 결과로서 생성된 템플릿을 나타내는 제 3 그림(303)을 확인할 수 있다.Referring to FIG. 3, a
일 실시 예에 따르면, 전자 장치(100)는 카메라를 통해 제 1 그림(301)을 획득하거나, 통신부를 통해 인터넷 등에서 제 1 그림(301)을 다운 받거나, 저장부(120)로부터 제 1 그림(301)을 획득할 수 있다. According to an embodiment, the
또한, 전자 장치(100)는 제 1 그림(301)에 포함된 적어도 하나의 오브젝트를 식별하고 추출할 수 있다. 예컨대, 전자 장치(100)는 제 1 그림(301)으로부터 제 1 오브젝트(311), 제 2 오브젝트(313), 제 3 오브젝트(315), 제 4 오브젝트(317) 및 제 5 오브젝트(319)를 식별할 수 있다. 이 때, 제 4 오브젝트(317) 및 제 5 오브젝트(319)는 제 1 그림(301)으로부터 식별된 텍스트와 대응되는 영역일 수 있다.Also, the
전자 장치(100)는 제 1 오브젝트(311), 제 2 오브젝트(313) 및 제 3 오브젝트(315) 각각에 대응하는 도형들로서 제 1 도형(321), 제 2 도형(323) 및 제 3 도형(325) 각각을 저장부(120)로부터 검색해내거나 새롭게 만들 수 있다. 또한, 전자 장치(100)는 식별된 텍스트와 대응되는 영역으로 확인되는 제 4 오브젝트(317) 및 제 5 오브젝트(319) 각각에 대해서는 제 1 텍스트 상자(327) 및 제 2 텍스트 상자(329) 각각을 선택할 수 있다.The
선택된 도형들 및 텍스트 상자들은 제 3 그림(303)과 같이, 새롭게 생성된 템플릿에 삽입될 수 있다. 또는, 전자 장치(100)는 기 저장된 템플릿들 중에서 선택된 도형들 및 텍스트 상자들 중 적어도 일부를 유사하게 포함하고 있는 템플릿을 검색할 수 있다. 이 경우, 제 3 그림(303)은 기 저장된 템플릿들에서 검색된 템플릿일 수 있다.The selected figures and text boxes may be inserted into the newly created template, as shown in the third figure 303. Alternatively, the
도 4는 본 발명의 일 실시 예에 따른 전자 장치에서 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 방법을 도시한 순서도이다.4 is a flowchart illustrating a method of extracting a template applicable to an electronic document from an image in an electronic device according to an embodiment of the present invention.
단계(400)에서는, 전자 장치 상에서 실행 중인 전자 문서 내 적어도 하나의 페이지를 표시할 수 있다. In
단계(410)에서는, 상기 적어도 하나의 페이지에 적용 가능한 복수의 도형들 및 복수의 템플릿들을 저장할 수 있다.In
단계(420)에서는, 이미지에서 하나 이상의 오브젝트들이 검출되는 것에 응답하여, 상기 검출된 하나 이상의 오브젝트들 각각이 상기 이미지 내에서 차지하는 비율 및 상기 검출된 하나 이상의 오브젝트들 각각에 대한 상기 이미지 내 위치를 식별할 수 있다. In
단계(430)에서는, 상기 이미지 또는 상기 하나 이상의 오브젝트들의 속성에 기초하여, 상기 적어도 하나의 페이지의 레이아웃을 조정할 수 있다.In
단계(440)에서는, 상기 복수의 도형들 중에서 상기 검출된 하나 이상의 오브젝트들과 대응되는 적어도 하나의 도형을 선택할 수 있다.In
단계(450)에서는, 상기 선택된 적어도 하나의 도형을 상기 레이아웃이 조정된 적어도 하나의 페이지에 삽입하여 제 1 템플릿을 생성할 수 있다.In
단계(460)에서는, 상기 생성된 제 1 템플릿을 상기 전자 문서에 적용할 수 있다.In
다양한 실시 예들에 따르면, 도 4에 개시된 동작들 중 일부는 생략되거나 복수 회 반복될 수 있다. 또한, 도 4에 개시된 동작들 각각은 일 실시 예로 보는 것이 타당하며, 어느 하나의 동작이 다른 하나의 동작에 종속되는 것으로 제한 해석될 수 없다.According to various embodiments, some of the operations disclosed in FIG. 4 may be omitted or repeated multiple times. In addition, it is reasonable to view each of the operations disclosed in FIG. 4 as an example, and it cannot be interpreted that one operation is dependent on another operation.
본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치는, 전자 장치 상에서 실행 중인 전자 문서 내 적어도 하나의 페이지를 표시하는 표시부, 상기 적어도 하나의 페이지에 적용 가능한 복수의 도형들 및 복수의 템플릿들을 저장하는 저장부, 이미지에서 하나 이상의 오브젝트들이 검출되는 것에 응답하여, 상기 검출된 하나 이상의 오브젝트들 각각이 상기 이미지 내에서 차지하는 비율 및 상기 검출된 하나 이상의 오브젝트들 각각에 대한 상기 이미지 내 위치를 식별하는 오브젝트 식별부, 상기 이미지 또는 상기 하나 이상의 오브젝트들의 속성에 기초하여, 상기 적어도 하나의 페이지의 레이아웃을 조정하는 레이아웃 설정부, 상기 복수의 도형들 중에서 상기 검출된 하나 이상의 오브젝트들과 대응되는 적어도 하나의 도형을 선택하고, 상기 선택된 적어도 하나의 도형을 상기 레이아웃이 조정된 적어도 하나의 페이지에 삽입하여 제 1 템플릿을 생성하는 템플릿 생성부 및 상기 생성된 제 1 템플릿을 상기 전자 문서에 적용하는 문서 생성부를 포함할 수 있다.An electronic device for extracting a template applicable to an electronic document from an image according to various embodiments disclosed in the present document includes: a display unit displaying at least one page in an electronic document running on the electronic device, a plurality applicable to the at least one page A storage unit for storing the figures and a plurality of templates, in response to the detection of one or more objects in the image, the proportion of each of the detected one or more objects in the image and each of the detected one or more objects An object identification unit for identifying a position in the image, a layout setting unit for adjusting the layout of the at least one page based on the attributes of the image or the one or more objects, and the detected one or more among the plurality of figures Object A template generator for generating a first template by selecting at least one figure corresponding to and inserting the selected at least one figure into at least one page in which the layout is adjusted, and the generated first template in the electronic document. It may include a document generator that applies to.
본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치에 있어서, 상기 오브젝트 식별부는, 상기 이미지를 구성하는 복수의 픽셀들 각각의 픽셀 값 비교를 통해 상기 하나 이상의 오브젝트들의 테두리를 식별하고, 상기 식별된 테두리에 의해 정의되는 상기 하나 이상의 오브젝트들의 형상에 기초하여 상기 하나 이상의 오브젝트들을 검출하는 것을 특징으로 할 수 있다.In the electronic device for extracting a template applicable to an electronic document from an image according to various embodiments disclosed in the present document, the object identification unit may include the one or more objects through comparison of pixel values of each of the pixels constituting the image It may be characterized in that to identify the border of the, and detect the one or more objects based on the shape of the one or more objects defined by the identified border.
본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치에 있어서, 상기 레이아웃 설정부는, 상기 이미지 또는 상기 하나 이상의 오브젝트들의 모양 및 크기에 기초하여, 상기 적어도 하나의 페이지의 모양 및 크기를 포함하는 레이아웃을 조정하는 것을 특징으로 할 수 있다.In the electronic device for extracting a template applicable to an electronic document from an image according to various embodiments disclosed in the present document, the layout setting unit, based on the shape and size of the image or the one or more objects, the at least one page It may be characterized by adjusting the layout including the shape and size of the.
본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치에 있어서, 상기 템플릿 생성부는, 상기 검출된 하나 이상의 오브젝트들 각각에 대하여 상기 복수의 도형들의 유사도를 계산하고, 상기 계산된 유사도가 임계치 이상인 도형들 중에서 상기 적어도 하나의 도형을 선택하는 것을 특징으로 할 수 있다.In an electronic device for extracting a template applicable to an electronic document from an image according to various embodiments disclosed in the present document, the template generation unit calculates the similarity of the plurality of figures for each of the detected one or more objects, It may be characterized in that the at least one figure is selected from figures having a degree of similarity or higher than the calculated similarity.
본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치에 있어서, 상기 템플릿 생성부는, 상기 식별된 비율 및 위치에 기초하여, 상기 선택된 적어도 하나의 도형을 상기 레이아웃이 조정된 적어도 하나의 페이지에 삽입하는 것을 특징으로 할 수 있다.In an electronic device for extracting a template applicable to an electronic document from an image according to various embodiments disclosed in the present document, the template generation unit may include the selected at least one figure based on the identified ratio and position. It may be characterized by inserting the adjusted at least one page.
본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치에 있어서, 상기 검출된 하나 이상의 오브젝트들 및 상기 복수의 템플릿들 각각에 포함된 상기 복수의 도형들을 비교하고, 상기 비교 결과에 기초하여 상기 복수의 템플릿들 중 상기 하나 이상의 오브젝트들과 연관된 하나 이상의 템플릿들을 식별하는 템플릿 관리부를 더 포함하고, 상기 문서 생성부는, 상기 하나 이상의 템플릿들 중 제 2 템플릿이 선택되는 것에 응답하여, 상기 선택된 제 2 템플릿을 상기 전자 문서에 적용하는 것을 특징으로 할 수 있다.An electronic device for extracting a template applicable to an electronic document from an image according to various embodiments disclosed in the present document, comparing the detected one or more objects and the plurality of shapes included in each of the plurality of templates, Further comprising a template management unit for identifying one or more templates associated with the one or more objects among the plurality of templates on the basis of the comparison result, the document generation unit, the second template is selected from the one or more templates In response, the selected second template may be applied to the electronic document.
본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치의 동작 방법은, 전자 장치 상에서 실행 중인 전자 문서 내 적어도 하나의 페이지를 표시하는 단계, 상기 적어도 하나의 페이지에 적용 가능한 복수의 도형들 및 복수의 템플릿들을 저장하는 단계, 이미지에서 하나 이상의 오브젝트들이 검출되는 것에 응답하여, 상기 검출된 하나 이상의 오브젝트들 각각이 상기 이미지 내에서 차지하는 비율 및 상기 검출된 하나 이상의 오브젝트들 각각에 대한 상기 이미지 내 위치를 식별하는 단계, 상기 이미지 또는 상기 하나 이상의 오브젝트들의 속성에 기초하여, 상기 적어도 하나의 페이지의 레이아웃을 조정하는 단계, 상기 복수의 도형들 중에서 상기 검출된 하나 이상의 오브젝트들과 대응되는 적어도 하나의 도형을 선택하는 단계, 상기 선택된 적어도 하나의 도형을 상기 레이아웃이 조정된 적어도 하나의 페이지에 삽입하여 제 1 템플릿을 생성하는 단계 및 상기 생성된 제 1 템플릿을 상기 전자 문서에 적용하는 단계를 포함할 수 있다.According to various embodiments disclosed in the present disclosure, a method of operating an electronic device for extracting a template applicable to an electronic document from an image includes displaying at least one page in an electronic document running on the electronic device, the at least one page Storing a plurality of applicable shapes and a plurality of templates, in response to one or more objects being detected in the image, a ratio of each of the detected one or more objects in the image and the detected one or more objects Identifying a location in the image for each, adjusting the layout of the at least one page based on the attributes of the image or the one or more objects, the detected one or more objects among the plurality of figures And corresponding enemies Selecting at least one shape, inserting the selected at least one shape into at least one page in which the layout has been adjusted to generate a first template, and applying the generated first template to the electronic document It may include.
본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치의 동작 방법에 있어서, 상기 식별하는 단계는, 상기 이미지를 구성하는 복수의 픽셀들 각각의 픽셀 값 비교를 통해 상기 하나 이상의 오브젝트들의 테두리를 식별하는 단계 및 상기 식별된 테두리에 의해 정의되는 상기 하나 이상의 오브젝트들의 형상에 기초하여 상기 하나 이상의 오브젝트들을 검출하는 단계를 더 포함할 수 있다.In the method of operating an electronic device for extracting a template applicable to an electronic document from an image according to various embodiments disclosed in the present disclosure, the identifying step may include comparing pixel values of each of a plurality of pixels constituting the image. The method may further include identifying a border of the one or more objects and detecting the one or more objects based on the shape of the one or more objects defined by the identified border.
본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치의 동작 방법에 있어서, 상기 조정하는 단계는, 상기 이미지 또는 상기 하나 이상의 오브젝트들의 모양 및 크기에 기초하여, 상기 적어도 하나의 페이지의 모양 및 크기를 포함하는 레이아웃을 조정하는 단계를 더 포함할 수 있다. In the method of operating an electronic device for extracting a template applicable to an electronic document from an image according to various embodiments disclosed in the present document, the adjusting step may include, on the basis of the shape and size of the image or the one or more objects, the The method may further include adjusting a layout including the shape and size of at least one page.
본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치의 동작 방법에 있어서, 상기 선택하는 단계는, 상기 검출된 하나 이상의 오브젝트들 각각에 대하여 상기 복수의 도형들의 유사도를 계산하는 단계 및 상기 계산된 유사도가 임계치 이상인 도형들 중에서 상기 적어도 하나의 도형을 선택하는 단계를 더 포함할 수 있다. In the method of operating an electronic device for extracting a template applicable to an electronic document from an image according to various embodiments disclosed in the present document, the selecting step includes the similarity of the plurality of figures for each of the detected one or more objects The method may further include the step of calculating and selecting the at least one shape from among figures having a similarity or higher than the calculated threshold.
본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치의 동작 방법에 있어서, 상기 생성하는 단계는, 상기 식별된 비율 및 위치에 기초하여, 상기 선택된 적어도 하나의 도형을 상기 레이아웃이 조정된 적어도 하나의 페이지에 삽입하는 단계를 더 포함할 수 있다. In the method of operating an electronic device for extracting a template applicable to an electronic document from an image according to various embodiments disclosed in the present document, the generating step includes the selected at least one figure based on the identified ratio and position. The method may further include inserting the layout into at least one page in which the layout is adjusted.
본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치의 동작 방법에 있어서, 상기 검출된 하나 이상의 오브젝트들 및 상기 복수의 템플릿들 각각에 포함된 상기 복수의 도형들을 비교하는 단계, 상기 비교 결과에 기초하여 상기 복수의 템플릿들 중 상기 하나 이상의 오브젝트들과 연관된 하나 이상의 템플릿들을 식별하는 단계 및 상기 하나 이상의 템플릿들 중 제 2 템플릿이 선택되는 것에 응답하여, 상기 선택된 제 2 템플릿을 상기 전자 문서에 적용하는 단계를 더 포함할 수 있다. In the method of operating an electronic device for extracting a template applicable to an electronic document from an image according to various embodiments disclosed in the present document, the detected one or more objects and the plurality of shapes included in each of the plurality of templates Comparing, in response to the step of identifying one or more templates associated with the one or more objects of the plurality of templates based on the comparison result, and in response to the selection of a second template of the one or more templates, the selected agent 2 The method may further include applying a template to the electronic document.
본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치의 동작 방법은 컴퓨터와의 결합을 통해 실행시키기 위한 저장매체에 저장된 컴퓨터 프로그램으로 구현될 수 있다.According to various embodiments disclosed in the present disclosure, a method of operating an electronic device that extracts a template applicable to an electronic document from an image may be implemented as a computer program stored in a storage medium for execution through combination with a computer.
또한, 본 문서에 개시된 다양한 실시 예들에 따라 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치의 동작 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. Further, according to various embodiments disclosed in the present disclosure, a method of operating an electronic device for extracting a template applicable to an electronic document from an image is implemented in the form of program instructions that can be performed through various computer means to be recorded in a computer-readable medium. You can. The computer-readable medium may include program instructions, data files, data structures, or the like alone or in combination. The program instructions recorded on the medium may be specially designed and configured for the present invention, or may be known and available to those skilled in computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical media such as CD-ROMs, DVDs, and magnetic media such as floptical disks. -Hardware devices specially configured to store and execute program instructions such as magneto-optical media, and ROM, RAM, flash memory, and the like. Examples of program instructions include high-level language code that can be executed by a computer using an interpreter, etc., as well as machine language codes produced by a compiler.
이상과 같이 본 발명에서는 구체적인 구성 요소 등과 같은 특정 사항들과 한정된 실시 예 및 도면에 의해 설명되었으나 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐, 본 발명은 상기의 실시 예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상적인 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다. As described above, in the present invention, specific matters such as specific components and the like have been described by limited embodiments and drawings, but they are provided to help a more comprehensive understanding of the present invention, and the present invention is not limited to the above embodiments , Anyone having ordinary knowledge in the field to which the present invention pertains can make various modifications and variations from these descriptions.
따라서, 본 발명의 사상은 설명된 실시 예에 국한되어 정해져서는 아니 되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등하거나 등가적 변형이 있는 모든 것들은 본 발명 사상의 범주에 속한다고 할 것이다.Accordingly, the spirit of the present invention should not be limited to the described embodiments, and should not be determined, and all claims that are equivalent to or equivalent to the claims, as well as the claims described below, will fall within the scope of the spirit of the present invention. .
Claims (14)
상기 적어도 하나의 페이지에 적용 가능한 복수의 도형들 및 복수의 템플릿들을 저장하는 저장부;
이미지에서 하나 이상의 오브젝트들이 검출되는 것에 응답하여, 상기 검출된 하나 이상의 오브젝트들 각각이 상기 이미지 내에서 차지하는 비율 및 상기 검출된 하나 이상의 오브젝트들 각각에 대한 상기 이미지 내 위치를 식별하는 오브젝트 식별부;
상기 이미지 또는 상기 하나 이상의 오브젝트들의 속성에 기초하여, 상기 적어도 하나의 페이지의 레이아웃을 조정하는 레이아웃 설정부;
상기 복수의 도형들 중에서 상기 검출된 하나 이상의 오브젝트들과 대응되는 적어도 하나의 도형을 선택하고, 상기 선택된 적어도 하나의 도형을 상기 레이아웃이 조정된 적어도 하나의 페이지에 삽입하여 제 1 템플릿을 생성하는 템플릿 생성부; 및
상기 생성된 제 1 템플릿을 상기 전자 문서에 적용하는 문서 생성부를 포함하는, 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치.
A display unit that displays at least one page in the electronic document running on the electronic device;
A storage unit for storing a plurality of shapes and a plurality of templates applicable to the at least one page;
An object identification unit for identifying a ratio of each of the detected one or more objects in the image and a position in the image for each of the detected one or more objects in response to detection of one or more objects in the image;
A layout setting unit that adjusts the layout of the at least one page based on the attributes of the image or the one or more objects;
A template that selects at least one figure corresponding to the detected one or more objects from among the plurality of figures, and inserts the selected at least one figure into at least one page in which the layout is adjusted to generate a first template Generation unit; And
And a document generator configured to apply the generated first template to the electronic document, to extract a template applicable to the electronic document from an image.
상기 오브젝트 식별부는,
상기 이미지를 구성하는 복수의 픽셀들 각각의 픽셀 값 비교를 통해 상기 하나 이상의 오브젝트들의 테두리를 식별하고, 상기 식별된 테두리에 의해 정의되는 상기 하나 이상의 오브젝트들의 형상에 기초하여 상기 하나 이상의 오브젝트들을 검출하는 것을 특징으로 하는, 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치.
According to claim 1,
The object identification unit,
A border of the one or more objects is identified through comparison of pixel values of each of the pixels constituting the image, and the one or more objects are detected based on the shape of the one or more objects defined by the identified border. An electronic device for extracting a template applicable to an electronic document from an image.
상기 레이아웃 설정부는,
상기 이미지 또는 상기 하나 이상의 오브젝트들의 모양 및 크기에 기초하여, 상기 적어도 하나의 페이지의 모양 및 크기를 포함하는 레이아웃을 조정하는 것을 특징으로 하는, 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치.
According to claim 1,
The layout setting unit,
And adjusting a layout including the shape and size of the at least one page based on the shape and size of the image or the one or more objects.
상기 템플릿 생성부는,
상기 검출된 하나 이상의 오브젝트들 각각에 대하여 상기 복수의 도형들의 유사도를 계산하고, 상기 계산된 유사도가 임계치 이상인 도형들 중에서 상기 적어도 하나의 도형을 선택하는 것을 특징으로 하는, 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치.
According to claim 1,
The template generator,
A template applicable to an electronic document, wherein the similarity of the plurality of figures is calculated for each of the detected one or more objects, and the at least one figure is selected from among figures having a calculated similarity or higher than a threshold. An electronic device that extracts from images.
상기 템플릿 생성부는,
상기 식별된 비율 및 위치에 기초하여, 상기 선택된 적어도 하나의 도형을 상기 레이아웃이 조정된 적어도 하나의 페이지에 삽입하는 것을 특징으로 하는, 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치.
According to claim 1,
The template generator,
An electronic device for extracting a template applicable to an electronic document from an image, wherein the selected at least one figure is inserted into at least one page in which the layout is adjusted based on the identified ratio and position.
상기 검출된 하나 이상의 오브젝트들 및 상기 복수의 템플릿들 각각에 포함된 상기 복수의 도형들을 비교하고, 상기 비교 결과에 기초하여 상기 복수의 템플릿들 중 상기 하나 이상의 오브젝트들과 연관된 하나 이상의 템플릿들을 식별하는 템플릿 관리부를 더 포함하고,
상기 문서 생성부는,
상기 하나 이상의 템플릿들 중 제 2 템플릿이 선택되는 것에 응답하여, 상기 선택된 제 2 템플릿을 상기 전자 문서에 적용하는 것을 특징으로 하는, 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치.
According to claim 1,
Compare the detected one or more objects and the plurality of shapes included in each of the plurality of templates, and identify one or more templates associated with the one or more objects among the plurality of templates based on the comparison result Further comprising a template management unit,
The document generating unit,
And in response to the selection of a second template among the one or more templates, applying the selected second template to the electronic document, wherein the electronic device extracts a template applicable to the electronic document from an image.
상기 적어도 하나의 페이지에 적용 가능한 복수의 도형들 및 복수의 템플릿들을 저장하는 단계;
이미지에서 하나 이상의 오브젝트들이 검출되는 것에 응답하여, 상기 검출된 하나 이상의 오브젝트들 각각이 상기 이미지 내에서 차지하는 비율 및 상기 검출된 하나 이상의 오브젝트들 각각에 대한 상기 이미지 내 위치를 식별하는 단계;
상기 이미지 또는 상기 하나 이상의 오브젝트들의 속성에 기초하여, 상기 적어도 하나의 페이지의 레이아웃을 조정하는 단계;
상기 복수의 도형들 중에서 상기 검출된 하나 이상의 오브젝트들과 대응되는 적어도 하나의 도형을 선택하는 단계;
상기 선택된 적어도 하나의 도형을 상기 레이아웃이 조정된 적어도 하나의 페이지에 삽입하여 제 1 템플릿을 생성하는 단계; 및
상기 생성된 제 1 템플릿을 상기 전자 문서에 적용하는 단계를 포함하는, 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치의 동작 방법.
Displaying at least one page in the electronic document running on the electronic device;
Storing a plurality of shapes and a plurality of templates applicable to the at least one page;
In response to detecting one or more objects in the image, identifying a ratio of each of the detected one or more objects in the image and a position in the image for each of the detected one or more objects;
Adjusting the layout of the at least one page based on the attributes of the image or the one or more objects;
Selecting at least one figure corresponding to the detected one or more objects from among the plurality of figures;
Generating a first template by inserting the selected at least one figure into at least one page in which the layout is adjusted; And
And applying the generated first template to the electronic document, wherein the template applicable to the electronic document is extracted from an image.
상기 식별하는 단계는,
상기 이미지를 구성하는 복수의 픽셀들 각각의 픽셀 값 비교를 통해 상기 하나 이상의 오브젝트들의 테두리를 식별하는 단계; 및
상기 식별된 테두리에 의해 정의되는 상기 하나 이상의 오브젝트들의 형상에 기초하여 상기 하나 이상의 오브젝트들을 검출하는 단계를 더 포함하는, 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치의 동작 방법.
The method of claim 7,
The identifying step,
Identifying a border of the one or more objects by comparing pixel values of each of the pixels constituting the image; And
And detecting the one or more objects based on the shape of the one or more objects defined by the identified border.
상기 조정하는 단계는,
상기 이미지 또는 상기 하나 이상의 오브젝트들의 모양 및 크기에 기초하여, 상기 적어도 하나의 페이지의 모양 및 크기를 포함하는 레이아웃을 조정하는 단계를 더 포함하는, 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치의 동작 방법.
The method of claim 7,
The adjusting step,
And adjusting a layout including the shape and size of the at least one page based on the shape and size of the image or the one or more objects, and further extracting a template applicable to the electronic document from the image. How it works.
상기 선택하는 단계는,
상기 검출된 하나 이상의 오브젝트들 각각에 대하여 상기 복수의 도형들의 유사도를 계산하는 단계; 및
상기 계산된 유사도가 임계치 이상인 도형들 중에서 상기 적어도 하나의 도형을 선택하는 단계를 더 포함하는, 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치의 동작 방법.
The method of claim 7,
The step of selecting,
Calculating the similarity of the plurality of figures for each of the detected one or more objects; And
And selecting the at least one shape from among the figures having the calculated similarity or higher than a threshold, the method of operating the electronic device to extract a template applicable to an electronic document from an image.
상기 생성하는 단계는,
상기 식별된 비율 및 위치에 기초하여, 상기 선택된 적어도 하나의 도형을 상기 레이아웃이 조정된 적어도 하나의 페이지에 삽입하는 단계를 더 포함하는, 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치의 동작 방법.
The method of claim 7,
The generating step,
Based on the identified ratio and position, further comprising inserting the selected at least one figure into at least one page in which the layout is adjusted, an operation of an electronic device to extract a template applicable to an electronic document from an image Way.
상기 검출된 하나 이상의 오브젝트들 및 상기 복수의 템플릿들 각각에 포함된 상기 복수의 도형들을 비교하는 단계;
상기 비교 결과에 기초하여 상기 복수의 템플릿들 중 상기 하나 이상의 오브젝트들과 연관된 하나 이상의 템플릿들을 식별하는 단계; 및
상기 하나 이상의 템플릿들 중 제 2 템플릿이 선택되는 것에 응답하여, 상기 선택된 제 2 템플릿을 상기 전자 문서에 적용하는 단계를 더 포함하는, 전자 문서에 적용 가능한 템플릿을 이미지로부터 추출하는 전자 장치의 동작 방법.
The method of claim 7,
Comparing the plurality of figures included in each of the detected one or more objects and the plurality of templates;
Identifying one or more templates associated with the one or more objects among the plurality of templates based on the comparison result; And
In response to the selection of a second template among the one or more templates, further comprising applying the selected second template to the electronic document, a method of operating an electronic device for extracting a template applicable to an electronic document from an image .
A computer-readable recording medium recording a program that causes a computer to perform the method of any one of claims 7 to 12.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR1020180106857A KR102119730B1 (en) | 2018-09-07 | 2018-09-07 | Electronic device for extracting template applicable to electronic document from image and operating method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR1020180106857A KR102119730B1 (en) | 2018-09-07 | 2018-09-07 | Electronic device for extracting template applicable to electronic document from image and operating method thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| KR20200028600A true KR20200028600A (en) | 2020-03-17 |
| KR102119730B1 KR102119730B1 (en) | 2020-06-05 |
Family
ID=70004057
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| KR1020180106857A Active KR102119730B1 (en) | 2018-09-07 | 2018-09-07 | Electronic device for extracting template applicable to electronic document from image and operating method thereof |
Country Status (1)
| Country | Link |
|---|---|
| KR (1) | KR102119730B1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20220068667A (en) * | 2020-11-19 | 2022-05-26 | (주)아데나 | Apparatus for automatically generating template file |
| KR20220088105A (en) * | 2020-12-18 | 2022-06-27 | (주) 리아모어소프트 | Apparatus and method for designing cumtomized layout |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102435844B1 (en) | 2021-12-02 | 2022-08-24 | (주)아데나 | Template providing system based on image data extraction |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20070049518A (en) * | 2005-11-08 | 2007-05-11 | 삼성에스디에스 주식회사 | How to edit multiple PowerPoint documents |
| JP2007249431A (en) * | 2006-03-14 | 2007-09-27 | Canon Inc | Information processing apparatus, control method therefor, and program |
| KR20100011296A (en) * | 2008-07-24 | 2010-02-03 | 삼성전자주식회사 | Method and apparatus for reconstructing a web page |
| JP4572669B2 (en) * | 2004-03-31 | 2010-11-04 | セイコーエプソン株式会社 | Layout rule generation system, layout system, layout rule generation method, and layout rule generation program |
| KR20130106556A (en) * | 2012-03-20 | 2013-09-30 | 인크로스 주식회사 | Apparatus and method for drawing vector image |
| KR101498533B1 (en) * | 2014-07-18 | 2015-03-04 | 주식회사 한글과컴퓨터 | Component separate display based electronic document display device and method |
| KR101651842B1 (en) * | 2015-06-12 | 2016-08-29 | 주식회사 디오텍 | Method and device for generating layout of electronic document |
-
2018
- 2018-09-07 KR KR1020180106857A patent/KR102119730B1/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4572669B2 (en) * | 2004-03-31 | 2010-11-04 | セイコーエプソン株式会社 | Layout rule generation system, layout system, layout rule generation method, and layout rule generation program |
| KR20070049518A (en) * | 2005-11-08 | 2007-05-11 | 삼성에스디에스 주식회사 | How to edit multiple PowerPoint documents |
| JP2007249431A (en) * | 2006-03-14 | 2007-09-27 | Canon Inc | Information processing apparatus, control method therefor, and program |
| KR20100011296A (en) * | 2008-07-24 | 2010-02-03 | 삼성전자주식회사 | Method and apparatus for reconstructing a web page |
| KR20130106556A (en) * | 2012-03-20 | 2013-09-30 | 인크로스 주식회사 | Apparatus and method for drawing vector image |
| KR101498533B1 (en) * | 2014-07-18 | 2015-03-04 | 주식회사 한글과컴퓨터 | Component separate display based electronic document display device and method |
| KR101651842B1 (en) * | 2015-06-12 | 2016-08-29 | 주식회사 디오텍 | Method and device for generating layout of electronic document |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20220068667A (en) * | 2020-11-19 | 2022-05-26 | (주)아데나 | Apparatus for automatically generating template file |
| KR20220088105A (en) * | 2020-12-18 | 2022-06-27 | (주) 리아모어소프트 | Apparatus and method for designing cumtomized layout |
Also Published As
| Publication number | Publication date |
|---|---|
| KR102119730B1 (en) | 2020-06-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111373740B (en) | How to convert landscape video to portrait mobile layout using selection interface | |
| CN109791600B (en) | How to convert horizontal screen video to vertical screen mobile layout | |
| US10452920B2 (en) | Systems and methods for generating a summary storyboard from a plurality of image frames | |
| US20150220504A1 (en) | Visual Annotations for Objects | |
| CN110023927A (en) | System and method for applying a layout to a document | |
| KR101549792B1 (en) | Apparatus and method for automatically creating document | |
| US20240362406A1 (en) | Systems and methods for extracting text from portable document format data | |
| EP1435053A2 (en) | Section extraction tool for pdf documents | |
| US11663398B2 (en) | Mapping annotations to ranges of text across documents | |
| KR102119730B1 (en) | Electronic device for extracting template applicable to electronic document from image and operating method thereof | |
| CN104574454A (en) | Image processing method and device | |
| US12131566B2 (en) | Systems and methods for extracting text from portable document format data | |
| AU2017204531A1 (en) | Smart and automatic selection of same shaped objects in images | |
| CN109213316B (en) | Automatic layout engine | |
| US9141867B1 (en) | Determining word segment boundaries | |
| KR102187550B1 (en) | Electronic device that can generate a summary preview of an ole object inserted into a document and operating method thereof | |
| JP2017078854A (en) | Method and system of dynamically generating personalized handwriting font | |
| US8416237B1 (en) | Perspective aware automatic guide generation | |
| KR20220005745A (en) | Electronic device for extracting suitable template for document draft from image and operation method thereof | |
| KR102087263B1 (en) | Electronic device for applying template to electronic document and operating method thereof | |
| JP2013522706A (en) | System and method for automatic continuation symbols in electronic publications | |
| KR101498533B1 (en) | Component separate display based electronic document display device and method | |
| CN105677696A (en) | Retrieval apparatus and retrieval method | |
| CN115942058A (en) | Video progress bar generation method, device, storage medium and device | |
| KR102076561B1 (en) | Electronic device for controlling a plurality of images included in electronic document and operating method thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PA0109 | Patent application |
Patent event code: PA01091R01D Comment text: Patent Application Patent event date: 20180907 |
|
| PA0201 | Request for examination | ||
| PE0902 | Notice of grounds for rejection |
Comment text: Notification of reason for refusal Patent event date: 20190930 Patent event code: PE09021S01D |
|
| PG1501 | Laying open of application | ||
| E701 | Decision to grant or registration of patent right | ||
| PE0701 | Decision of registration |
Patent event code: PE07011S01D Comment text: Decision to Grant Registration Patent event date: 20200429 |
|
| GRNT | Written decision to grant | ||
| PR0701 | Registration of establishment |
Comment text: Registration of Establishment Patent event date: 20200601 Patent event code: PR07011E01D |
|
| PR1002 | Payment of registration fee |
Payment date: 20200601 End annual number: 3 Start annual number: 1 |
|
| PG1601 | Publication of registration | ||
| PR1001 | Payment of annual fee |
Payment date: 20240603 Start annual number: 5 End annual number: 5 |
|
| PR1001 | Payment of annual fee |
Payment date: 20250602 Start annual number: 6 End annual number: 6 |