KR20230166595A - Electronic device for automatically measuring size, spacing, and center point level of letter, control method, and computor program - Google Patents

Electronic device for automatically measuring size, spacing, and center point level of letter, control method, and computor program Download PDF

Info

Publication number
KR20230166595A
KR20230166595A KR1020220066750A KR20220066750A KR20230166595A KR 20230166595 A KR20230166595 A KR 20230166595A KR 1020220066750 A KR1020220066750 A KR 1020220066750A KR 20220066750 A KR20220066750 A KR 20220066750A KR 20230166595 A KR20230166595 A KR 20230166595A
Authority
KR
South Korea
Prior art keywords
letters
letter
electronic device
spacing
center point
Prior art date
Application number
KR1020220066750A
Other languages
Korean (ko)
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 KR1020220066750A priority Critical patent/KR20230166595A/en
Priority to PCT/KR2022/021242 priority patent/WO2023234511A1/en
Publication of KR20230166595A publication Critical patent/KR20230166595A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/158Segmentation of character regions using character size, text spacings or pitch estimation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions

Abstract

본 발명은 전자 장치가, 자동측정 대상인 이미지에 포함된 텍스트를 구성하는 복수의 글자 각각의 크기를 산출하는 단계, 전자 장치가, 크기를 바탕으로, 이웃하는 글자 간의 자간을 산출하는 단계, 전자 장치가, 복수의 글자 각각의 중심점을 식별하는 단계, 전자 장치가, 중심점을 바탕으로, 텍스트에 대한 중심선을 식별하는 단계, 및 전자 장치가, 중심선 및 중심점을 기준으로, 복수의 글자 각각이 중심선에 대해 갖는 변위를 산출하는 단계를 포함하는 글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치의 제어 방법에 관한 것이다.The present invention provides a step of calculating, by an electronic device, the size of each of a plurality of letters constituting text included in an image subject to automatic measurement; a step of calculating, by an electronic device, character spacing between neighboring letters based on the size; A, identifying the center point of each of the plurality of letters, the electronic device, identifying a center line for the text based on the center point, and the electronic device, based on the center line and the center point, identifying each of the plurality of letters on the center line. It relates to a control method of an electronic device that automatically measures the size, letter spacing, and height of the center point, including the step of calculating the displacement with respect to the text.

Description

글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치, 제어 방법, 및 컴퓨터 프로그램{ELECTRONIC DEVICE FOR AUTOMATICALLY MEASURING SIZE, SPACING, AND CENTER POINT LEVEL OF LETTER, CONTROL METHOD, AND COMPUTOR PROGRAM}Electronic device, control method, and computer program for automatically measuring character size, letter spacing, and height of center point {ELECTRONIC DEVICE FOR AUTOMATICALLY MEASURING SIZE, SPACING, AND CENTER POINT LEVEL OF LETTER, CONTROL METHOD, AND COMPUTOR PROGRAM}

본 발명은 글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치, 및 제어 방법에 관한 것으로, 상세하게는, 자동으로 각 글자의 상하좌우 극단을 좌표로 환산하여, 가로(x)축의 최소값과 최대값, 세로(y)축의 최소값과 최대값을 기준으로 좌표 상 글자의 가로, 세로 거리를 측정한 뒤, 가로와 세로 거리를 곱하여 글자의 크기를 측정하는 기술이다.The present invention relates to an electronic device and control method for automatically measuring the size, spacing, and height of the center point of letters. In detail, the present invention relates to an electronic device and control method that automatically converts the top, bottom, left, and right extremes of each letter into coordinates, and horizontal (x) This is a technology that measures the horizontal and vertical distances of letters on coordinates based on the minimum and maximum values of the axis and the minimum and maximum values of the vertical (y) axis, and then multiplies the horizontal and vertical distances to measure the size of the letters.

종래의 드로잉 및 손글씨 등 사용자가 직접 손으로 작업을 한 이미지에 대해 객체를 검출하는 기술은, 전자 장치의 입력 모듈에 전자 펜이 접촉한 지점의 이동을 바탕으로 글씨를 식별하여 검출하는 방법을 일반적으로 사용한다.Conventional technology for detecting objects in images created by the user, such as drawings and handwriting, generally involves identifying and detecting writing based on the movement of the point where an electronic pen touches the input module of an electronic device. Use it as

한편, 종래의 글자 크기 지표의 경우, 글자의 크기를 측정하기 위하여 미국 국립보건원(NIH)에서 개발한 'Image J' 소프트웨어를 사용하여 연구자가 직접 화면에 나와있는 텍스트의 각 글자를 포함하도록 사각형의 형태를 그리거나 잡은 후, 그 안의 면적을 측정하는 방식을 사용해 왔으나, 이는 연구자가 주관적으로 글자의 극단을 지정하게 되면서 그 안의 면적에 대한 오차가 발생할 여지로 인해 결과값에 대한 신뢰성이 낮았다.Meanwhile, in the case of the conventional font size index, the researcher uses 'Image J' software developed by the National Institutes of Health (NIH) to measure the size of letters, and creates a square to include each letter of the text on the screen. A method of measuring the area inside the shape after drawing or holding it has been used, but this method has low reliability in the results due to the possibility of errors in the area inside the letter as the researcher subjectively specifies the extremes of the letter.

이를 극복하기 위하여 글자를 화면에서 크게 확대하고 배경색을 변환하여 글자의 픽셀이 잘 보이도록 설정한 후 측정하는 기술이 등장하였으나, 이 역시, 오차범위가 발생하는 문제점이 존재한다.To overcome this, a technology has emerged that enlarges the text on the screen and changes the background color to make the pixels of the text visible and then measure it, but this also has the problem of a margin of error.

한편, 상기의 배경기술로서 설명된 사항들은 본 발명의 배경에 대한 이해 증진을 위한 것일 뿐, 이 기술분야에서 통상의 지식을 가진 자에게 이미 알려진 종래기술에 해당함을 인정하는 것으로 받아들여져서는 안 될 것이다.Meanwhile, the matters described as background technology above are only for the purpose of improving understanding of the background of the present invention, and should not be taken as recognition that they correspond to prior art already known to those skilled in the art. will be.

공개특허공보 제10-2021-0017081호, 2021.02.17.Public Patent Publication No. 10-2021-0017081, 2021.02.17.

본 발명이 해결하고자 하는 과제는 각 글자의 가로(x)축의 최소값과 최대값, 세로(y)축의 최소값과 최대값을 기준으로 좌표 상 글자의 가로, 세로 거리를 측정한 뒤, 가로와 세로 거리를 곱함으로써, 오차 없이 글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치, 및 제어 방법을 제공하는 것이다.The problem to be solved by the present invention is to measure the horizontal and vertical distances of letters on coordinates based on the minimum and maximum values of the horizontal (x) axis and the minimum and maximum values of the vertical (y) axis of each letter, and then measure the horizontal and vertical distances. To provide an electronic device and control method that automatically measures the size, character spacing, and height of the center point without error by multiplying .

본 발명이 해결하고자 하는 과제들은 이상에서 언급된 과제로 제한되지 않으며, 언급되지 않은 또 다른 과제들은 아래의 기재로부터 통상의 기술자에게 명확하게 이해될 수 있을 것이다.The problems to be solved by the present invention are not limited to the problems mentioned above, and other problems not mentioned can be clearly understood by those skilled in the art from the description below.

상술한 과제를 해결하기 위한 본 발명의 일 면에 따른 글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치의 제어 방법에 있어서, 전자 장치가, 자동측정 대상인 이미지에 포함된 텍스트를 구성하는 복수의 글자 각각의 크기를 산출하는 단계, 전자 장치가, 크기를 바탕으로, 이웃하는 글자 간의 자간을 산출하는 단계, 전자 장치가, 복수의 글자 각각의 중심점을 식별하는 단계, 전자 장치가, 중심점을 바탕으로, 텍스트에 대한 중심선을 식별하는 단계, 및 전자 장치가, 중심선 및 중심점을 기준으로, 복수의 글자 각각이 중심선에 대해 갖는 변위를 산출하는 단계를 포함한다.In the control method of an electronic device that automatically measures the size, letter spacing, and height of the center point of letters according to one aspect of the present invention to solve the above-described problem, the electronic device determines the text included in the image that is the subject of automatic measurement. A step of calculating the size of each of the plurality of letters constituting the letters, a step of the electronic device calculating the letter spacing between neighboring letters based on the size, a step of the electronic device identifying the center point of each of the plurality of letters, the electronic device , identifying a center line for the text based on the center point, and calculating, by the electronic device, a displacement of each of the plurality of characters with respect to the center line, based on the center line and the center point.

이때, 복수의 글자 각각의 크기를 산출하는 단계는, 복수의 글자 각각에 대한 가로축 및 세로축을 생성하는 단계, 가로축 및 세로축을 기준으로 좌표를 생성하는 단계, 좌표를 바탕으로, 복수의 글자 각각에 대한 가로 길이 및 세로 길이를 산출하는 단계, 및 가로 길이 및 세로 길이를 바탕으로, 복수의 글자 각각의 크기를 산출하는 단계를 포함할 수 있다.At this time, the step of calculating the size of each of the plurality of letters includes generating the horizontal and vertical axes for each of the plurality of letters, generating coordinates based on the horizontal and vertical axes, and based on the coordinates, each of the plurality of letters. It may include calculating the horizontal and vertical lengths for each character, and calculating the size of each of the plurality of letters based on the horizontal and vertical lengths.

이에 따라, 이웃하는 글자 간의 자간을 산출하는 단계는, 좌표를 바탕으로, 복수의 글자 각각의 가로축 좌표 최대값, 및 복수의 글자 각각의 가로축 좌표 최솟값을 식별하는 단계, 복수의 글자 중, 제1 글자에 대한 가로축 좌표 최솟값보다 큰 가로축 좌표 중, 제1 글자에 대한 가로축 좌표 최대값과 가장 가까운 가로축 좌표 최솟값을 갖는 제2 글자를 식별하는 단계, 및 제1 글자에 대한 가로축 좌표 최대값, 및 제2 글자에 대한 가로축 좌표 최솟값을 바탕으로, 제1 글자 및 제2 글자 간의 자간으로 획득하는 단계를 포함할 수 있다.Accordingly, the step of calculating the letter spacing between neighboring letters includes identifying the maximum horizontal coordinate value of each of the plurality of letters and the minimum horizontal axis coordinate value of each of the plurality of letters, based on the coordinates. Among the plurality of letters, the first Among the horizontal coordinates greater than the horizontal axis coordinate minimum value for the character, identifying a second character having the horizontal coordinate minimum value closest to the horizontal axis coordinate maximum value for the first character, and the horizontal axis coordinate maximum value for the first character, and a second character, It may include the step of obtaining the letter spacing between the first letter and the second letter, based on the minimum value of the horizontal axis coordinates for the two letters.

또한, 복수의 글자 각각의 중심점을 식별하는 단계는, 좌표를 바탕으로, 복수의 글자 각각에 대한 가로축 좌표 최솟값, 가로축 좌표 최대값, 세로축 좌표 최솟값, 및 세로축 좌표 최대값에 동일한 거리를 갖는 중심 좌표를 산출하고, 텍스트에 대한 중심선을 식별하는 단계는, 복수의 글자 중, 가장 작은 가로축 좌표 최솟값을 갖는 제3 글자를 식별하는 단계, 복수의 글자 중, 가장 작은 가로축 좌표 최대값을 갖는 제4 글자를 식별하는 단계, 및 제3 글자의 중심점을 시작점으로 하고, 제4 글자의 중심점이 갖는 가로축 좌표값을 종료점으로 하되, 기울기가 0인 중심선을 식별하는 단계를 포함할 수 있다.In addition, the step of identifying the center point of each of the plurality of letters includes, based on the coordinates, the center coordinate having the same distance to the minimum horizontal axis coordinate, maximum horizontal axis coordinate, minimum vertical axis coordinate, and maximum vertical axis coordinate for each of the plurality of letters. The step of calculating and identifying the center line for the text includes identifying a third letter having the smallest horizontal coordinate minimum value among the plurality of characters, and a fourth character having the smallest horizontal coordinate maximum value among the plurality of characters. It may include identifying a center line that uses the center point of the third letter as a starting point, uses the horizontal coordinate value of the center point of the fourth letter as an end point, and has a slope of 0.

추가로, 복수의 글자 각각이 중심선에 대해 갖는 변위를 산출하는 단계는, 복수의 글자 중, 제3 글자를 제외한 나머지 글자들 각각의 중심점이 갖는 세로축 좌표값을 식별하는 단계, 및 식별된 세로축 좌표값 각각이 중심선에 대해 갖는 법선 길이 및 방향을, 중심선에 대해 갖는 변위로 산출하는 단계를 포함할 수 있다.Additionally, the step of calculating the displacement of each of the plurality of letters with respect to the center line includes identifying the vertical axis coordinate value of the center point of each of the letters excluding the third letter among the plurality of letters, and the identified vertical axis coordinate. It may include calculating the normal length and direction of each value with respect to the center line as a displacement with respect to the center line.

또한, 제1 글자 및 제2 글자 간의 자간으로 획득하는 단계는, 자간이 임계거리 이상인 경우, 자간을 기 설정된 제1 자간으로 변경하는 단계, 및 자간이 임계거리 미만이되 음수인 경우, 자간을 기 설정된 제2 자간으로 변경하는 단계를 포함할 수 있다.In addition, the step of acquiring the letter spacing between the first letter and the second letter includes, if the letter spacing is more than the critical distance, changing the letter spacing to the preset first letter spacing, and if the letter spacing is less than the critical distance but is a negative number, changing the letter spacing. It may include a step of changing to a preset second letter spacing.

이때, 자간을 기 설정된 제2 자간으로 변경하는 단계는, 자간이 제2 자간으로 변경됨에 따라, 제2 글자의 가로축 좌표 최솟값이 변경된 변위를 산출하는 단계, 복수의 글자 중, 제1 글자의 가로축 좌표 최솟값 보다 큰 가로축 좌표 최솟값을 갖는 글자들을 식별하는 단계, 및 식별된 글자들 각각의 가로축에 대한 좌표에 산출된 제2 글자의 가로축 좌표 최솟값이 변경된 변위를 더하는 단계를 포함할 수 있다.At this time, the step of changing the letter spacing to the preset second letter spacing includes calculating a displacement in which the minimum value of the horizontal axis coordinate of the second letter is changed as the letter spacing is changed to the second letter spacing. Among the plurality of letters, the horizontal axis of the first letter is calculated. It may include identifying letters having a minimum horizontal coordinate value greater than the minimum coordinate value, and adding a displacement resulting from a change in the calculated minimum horizontal coordinate value of the second letter to the horizontal axis coordinates of each of the identified letters.

한편, 본 발명은, 하드웨어인 컴퓨터와 결합되어, 본 발명의 일 면에 따른 글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치의 제어 방법을 수행할 수 있도록 컴퓨터에서 독출가능한 기록매체에 저장된 컴퓨터 프로그램을 더 포함할 수 있다.Meanwhile, the present invention is a computer-readable record that can be combined with a computer, which is hardware, to perform a control method of an electronic device that automatically measures the size, character spacing, and height of the center point according to one aspect of the present invention. It may further include a computer program stored on the medium.

본 발명의 일 면에 따른, 글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치의 제어 방법에 있어서, 전자 장치는, 메모리, 적어도 하나의 단말과 통신하는 통신부, 및 메모리, 및 통신부와 연결된 프로세서를 포함하며, 이에 따라, 프로세서는, 통신부를 통해, 사용자 단말로부터 이미지를 획득하고, 이미지에 포함된 텍스트를 구성하는 복수의 글자 각각의 크기를 산출하고, 크기를 바탕으로, 이웃하는 글자 간의 자간을 산출하고, 복수의 글자 각각의 중심점을 식별하고, 중심점을 바탕으로, 텍스트에 대한 중심선을 식별하고, 중심선 및 중심점을 기준으로, 복수의 글자 각각이 중심선에 대해 갖는 변위를 산출할 수 있다.In the control method of an electronic device that automatically measures the size, character spacing, and height of the center point according to one aspect of the present invention, the electronic device includes a memory, a communication unit that communicates with at least one terminal, and a memory, and It includes a processor connected to a communication unit, whereby the processor acquires an image from the user terminal through the communication unit, calculates the size of each of the plurality of letters constituting the text included in the image, and based on the size, Calculate the letter spacing between letters, identify the center point of each of the plurality of letters, identify the center line for the text based on the center point, and calculate the displacement of each of the plurality of letters with respect to the center line based on the center line and center point. can do.

또한, 본 발명의 일 면에 따른, 글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치의 제어 방법에 있어서, 전자 장치는, 메모리, 필기에 대한 입력을 획득하고, 필기에 대한 텍스트를 포함하는 이미지를 생성하는 입출력 모듈, 및 메모리, 및 입출력 모듈과 연결된 프로세서를 포함하며, 이에 따라, 프로세서는, 입출력 모듈을 통해, 사용자로부터 필기에 대한 사용자 입력을 획득하고, 필기에 포함된 텍스트를 구성하는 복수의 글자 각각의 크기를 산출하고, 크기를 바탕으로, 이웃하는 글자 간의 자간을 산출하고, 복수의 글자 각각의 중심점을 식별하고, 중심점을 바탕으로, 텍스트에 대한 중심선을 식별하고, 중심선 및 중심점을 기준으로, 복수의 글자 각각이 중심선에 대해 갖는 변위를 산출하고, 산출된 크기, 산출된 자간, 및 산출된 변위가 텍스트에 표시된 이미지를 생성하여, 입출력 모듈을 통해 제공할 수 있다.In addition, in the control method of an electronic device that automatically measures the size, spacing, and height of the center point of letters according to one aspect of the present invention, the electronic device acquires input for memory and handwriting, and It includes an input/output module that generates an image containing text, and a memory, and a processor connected to the input/output module, wherein the processor obtains a user input for handwriting from the user through the input/output module, and Calculate the size of each of the plurality of letters that make up the text, calculate the space between neighboring letters based on the size, identify the center point of each of the plurality of letters, and identify the center line for the text based on the center point. , Based on the center line and center point, the displacement of each of the plurality of letters with respect to the center line is calculated, and the calculated size, calculated letter spacing, and calculated displacement are displayed in the text to generate an image that can be provided through the input/output module. there is.

본 발명의 기타 구체적인 사항들은 상세한 설명 및 도면들에 포함되어 있다.Other specific details of the invention are included in the detailed description and drawings.

본 발명의 글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치, 및 제어 방법에 의하면, 사용자가 손글씨를 생성하는 필기 과정을 트래킹하여, 손글씨로 이루어진 텍스트를 포함하는 이미지를 대상으로, 각 글자에 대한 세로축 및 가로축을 포함하는 좌표를 획득함에 따라, 좌표를 기준으로 크기, 자간 및 중심선에 대한 높낮이를 산출함으로써 오차 없는 정확한 측정이 가능하다.According to the electronic device and control method for automatically measuring the size, spacing, and height of the center point of letters of the present invention, the writing process in which a user creates handwriting is tracked, and an image containing text composed of handwriting is targeted. , By acquiring coordinates including the vertical and horizontal axes for each letter, accurate measurement without error is possible by calculating the size, letter spacing, and height of the center line based on the coordinates.

본 발명의 효과들은 이상에서 언급된 효과로 제한되지 않으며, 언급되지 않은 또 다른 효과들은 아래의 기재로부터 통상의 기술자에게 명확하게 이해될 수 있을 것이다.The effects of the present invention are not limited to the effects mentioned above, and other effects not mentioned will be clearly understood by those skilled in the art from the description below.

도 1은 본 개시의 일 실시예에 따른 기본 흐름도이다.
도 2 내지 도 6은 본 개시의 일 실시예에 따른 글자의 크기, 자간, 및 중심점의 높낮이 자동측정 예시도이다.
도 7 내지 도 9는 본 개시의 일 실시예에 따른 전자 장치의 구성도 및 그에 따른 시스템 구성도이다.
도 10 및 도 11은 본 개시의 일 실시예에 따른 전자 장치의 다른 구성도이다.
1 is a basic flow chart according to an embodiment of the present disclosure.
Figures 2 to 6 are examples of automatic measurement of letter size, letter spacing, and height of the center point according to an embodiment of the present disclosure.
7 to 9 are diagrams showing the configuration of an electronic device and a corresponding system configuration according to an embodiment of the present disclosure.
10 and 11 are other configuration diagrams of an electronic device according to an embodiment of the present disclosure.

본 발명의 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 상세하게 후술되어 있는 실시예들을 참조하면 명확해질 것이다. 그러나, 본 발명은 이하에서 개시되는 실시예들에 제한되는 것이 아니라 서로 다른 다양한 형태로 구현될 수 있으며, 단지 본 실시예들은 본 발명의 개시가 완전하도록 하고, 본 발명이 속하는 기술 분야의 통상의 기술자에게 본 발명의 범주를 완전하게 알려주기 위해 제공되는 것이며, 본 발명은 청구항의 범주에 의해 정의될 뿐이다.The advantages and features of the present invention and methods for achieving them will become clear by referring to the embodiments described in detail below along with the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below and may be implemented in various different forms. The present embodiments are merely provided to ensure that the disclosure of the present invention is complete and to provide a general understanding of the technical field to which the present invention pertains. It is provided to fully inform the skilled person of the scope of the present invention, and the present invention is only defined by the scope of the claims.

본 명세서에서 사용된 용어는 실시예들을 설명하기 위한 것이며 본 발명을 제한하고자 하는 것은 아니다. 본 명세서에서, 단수형은 문구에서 특별히 언급하지 않는 한 복수형도 포함한다. 명세서에서 사용되는 "포함한다(comprises)" 및/또는 "포함하는(comprising)"은 언급된 구성요소 외에 하나 이상의 다른 구성요소의 존재 또는 추가를 배제하지 않는다. 명세서 전체에 걸쳐 동일한 도면 부호는 동일한 구성 요소를 지칭하며, "및/또는"은 언급된 구성요소들의 각각 및 하나 이상의 모든 조합을 포함한다. 비록 "제1", "제2" 등이 다양한 구성요소들을 서술하기 위해서 사용되나, 이들 구성요소들은 이들 용어에 의해 제한되지 않음은 물론이다. 이들 용어들은 단지 하나의 구성요소를 다른 구성요소와 구별하기 위하여 사용하는 것이다. 따라서, 이하에서 언급되는 제1 구성요소는 본 발명의 기술적 사상 내에서 제2 구성요소일 수도 있음은 물론이다.The terminology used herein is for describing embodiments and is not intended to limit the invention. As used herein, singular forms also include plural forms, unless specifically stated otherwise in the context. As used in the specification, “comprises” and/or “comprising” does not exclude the presence or addition of one or more other elements in addition to the mentioned elements. Like reference numerals refer to like elements throughout the specification, and “and/or” includes each and every combination of one or more of the referenced elements. Although “first”, “second”, etc. are used to describe various components, these components are of course not limited by these terms. These terms are merely used to distinguish one component from another. Therefore, it goes without saying that the first component mentioned below may also be a second component within the technical spirit of the present invention.

다른 정의가 없다면, 본 명세서에서 사용되는 모든 용어(기술 및 과학적 용어를 포함)는 본 발명이 속하는 기술분야의 통상의 기술자에게 공통적으로 이해될 수 있는 의미로 사용될 수 있을 것이다. 또한, 일반적으로 사용되는 사전에 정의되어 있는 용어들은 명백하게 특별히 정의되어 있지 않는 한 이상적으로 또는 과도하게 해석되지 않는다.Unless otherwise defined, all terms (including technical and scientific terms) used in this specification may be used with meanings commonly understood by those skilled in the art to which the present invention pertains. Additionally, terms defined in commonly used dictionaries are not interpreted ideally or excessively unless clearly specifically defined.

명세서에서 사용되는 "부" 또는 “모듈”이라는 용어는 소프트웨어, FPGA 또는 ASIC과 같은 하드웨어 구성요소를 의미하며, "부" 또는 “모듈”은 어떤 역할들을 수행한다. 그렇지만 "부" 또는 “모듈”은 소프트웨어 또는 하드웨어에 한정되는 의미는 아니다. "부" 또는 “모듈”은 어드레싱할 수 있는 저장 매체에 있도록 구성될 수도 있고 하나 또는 그 이상의 프로세서들을 재생시키도록 구성될 수도 있다. 따라서, 일 예로서 "부" 또는 “모듈”은 소프트웨어 구성요소들, 객체지향 소프트웨어 구성요소들, 클래스 구성요소들 및 태스크 구성요소들과 같은 구성요소들과, 프로세스들, 함수들, 속성들, 프로시저들, 서브루틴들, 프로그램 코드의 세그먼트들, 드라이버들, 펌웨어, 마이크로 코드, 회로, 데이터, 데이터베이스, 데이터 구조들, 테이블들, 어레이들 및 변수들을 포함한다. 구성요소들과 "부" 또는 “모듈”들 안에서 제공되는 기능은 더 작은 수의 구성요소들 및 "부" 또는 “모듈”들로 결합되거나 추가적인 구성요소들과 "부" 또는 “모듈”들로 더 분리될 수 있다.As used in the specification, the term “unit” or “module” refers to a hardware component such as software, FPGA, or ASIC, and the “unit” or “module” performs certain roles. However, “part” or “module” is not limited to software or hardware. A “unit” or “module” may be configured to reside on an addressable storage medium and may be configured to run on one or more processors. Thus, as an example, a “part” or “module” refers to components such as software components, object-oriented software components, class components, and task components, processes, functions, properties, Includes procedures, subroutines, segments of program code, drivers, firmware, microcode, circuits, data, databases, data structures, tables, arrays, and variables. The functionality provided within components and “parts” or “modules” can be combined into smaller components and “parts” or “modules” or into additional components and “parts” or “modules”. Could be further separated.

공간적으로 상대적인 용어인 "아래(below)", "아래(beneath)", "하부(lower)", "위(above)", "상부(upper)" 등은 도면에 도시되어 있는 바와 같이 하나의 구성요소와 다른 구성요소들과의 상관관계를 용이하게 기술하기 위해 사용될 수 있다. 공간적으로 상대적인 용어는 도면에 도시되어 있는 방향에 더하여 사용시 또는 동작시 구성요소들의 서로 다른 방향을 포함하는 용어로 이해되어야 한다. 예를 들어, 도면에 도시되어 있는 구성요소를 뒤집을 경우, 다른 구성요소의 "아래(below)"또는 "아래(beneath)"로 기술된 구성요소는 다른 구성요소의 "위(above)"에 놓일 수 있다. 따라서, 예시적인 용어인 "아래"는 아래와 위의 방향을 모두 포함할 수 있다. 구성요소는 다른 방향으로도 배향될 수 있으며, 이에 따라 공간적으로 상대적인 용어들은 배향에 따라 해석될 수 있다.Spatially relative terms such as “below”, “beneath”, “lower”, “above”, “upper”, etc. are used as a single term as shown in the drawing. It can be used to easily describe the correlation between a component and other components. Spatially relative terms should be understood as terms that include different directions of components during use or operation in addition to the directions shown in the drawings. For example, if you flip a component shown in a drawing, a component described as "below" or "beneath" another component will be placed "above" the other component. You can. Accordingly, the illustrative term “down” may include both downward and upward directions. Components can also be oriented in other directions, so spatially relative terms can be interpreted according to orientation.

본 명세서에서, 컴퓨터는 적어도 하나의 프로세서를 포함하는 모든 종류의 하드웨어 장치를 의미하는 것이고, 실시 예에 따라 해당 하드웨어 장치에서 동작하는 소프트웨어적 구성도 포괄하는 의미로서 이해될 수 있다. 예를 들어, 컴퓨터는 스마트폰, 태블릿 PC, 데스크톱, 노트북 및 각 장치에서 구동되는 사용자 클라이언트 및 애플리케이션을 모두 포함하는 의미로서 이해될 수 있으며, 또한 이에 제한되는 것은 아니다.In this specification, a computer refers to all types of hardware devices including at least one processor, and depending on the embodiment, it may be understood as encompassing software configurations that operate on the hardware device. For example, a computer can be understood to include, but is not limited to, a smartphone, tablet PC, desktop, laptop, and user clients and applications running on each device.

이하, 첨부된 도면을 참조하여 본 발명의 실시예를 상세하게 설명한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the attached drawings.

도 1은 본 개시의 일 실시예에 따른 기본 흐름도이고, 도 2 내지 도 6은 본 개시의 일 실시예에 따른 글자의 크기, 자간, 및 중심점의 높낮이 자동측정 예시도이다.Figure 1 is a basic flowchart according to an embodiment of the present disclosure, and Figures 2 to 6 are diagrams illustrating automatic measurement of character size, letter spacing, and height of the center point according to an embodiment of the present disclosure.

도 1에 도시된 바와 같이, 본 발명의 일 면에 따른 글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치(100)의 제어 방법에 있어서, 전자 장치(100)는, 자동측정 대상인 이미지에 포함된 텍스트를 구성하는 복수의 글자 각각의 크기를 산출(S110)하고, 산출된 크기를 바탕으로, 이웃하는 글자 간의 자간을 산출(S120)할 수 있다.As shown in FIG. 1, in the control method of the electronic device 100 for automatically measuring the size of letters, letter spacing, and height of the center point according to one aspect of the present invention, the electronic device 100 performs automatic measurement. The size of each of the plurality of letters constituting the text included in the target image can be calculated (S110), and based on the calculated sizes, the letter spacing between neighboring letters can be calculated (S120).

또한, 전자 장치(100)는 복수의 글자 각각의 중심점을 식별(S130)하고, 중심점을 바탕으로, 텍스트에 대한 중심선을 식별(S140)함에 따라, 중심선 및 중심점을 기준으로, 복수의 글자 각각이 중심선에 대해 갖는 변위를 산출(S150)한다.In addition, the electronic device 100 identifies the center point of each of the plurality of letters (S130) and identifies the center line for the text based on the center point (S140), so that each of the plurality of letters is identified based on the center line and center point. Calculate the displacement with respect to the center line (S150).

일 실시예로, 전자 장치(100)는, 서버, 스마트폰(smartphone), 태블릿 PC(tablet personal computer), 이동 전화기(mobile phone), 영상 전화기, 랩탑 PC(laptop PC), 넷북 컴퓨터(netbook computer), 노트북 컴퓨터(notebook computer), PDA(personal digital assistant), PMP(portable multimedia player), 웨어러블 장치(wearable device) 중 적어도 하나를 포함할 수 있다.In one embodiment, the electronic device 100 includes a server, a smartphone, a tablet personal computer, a mobile phone, a video phone, a laptop PC, and a netbook computer. ), a laptop computer, a personal digital assistant (PDA), a portable multimedia player (PMP), or a wearable device.

자동측정 대상인 이미지는, 도 2에 도시된 바와 같이, 사람의 손글씨에 의해 실시간으로 생성된 텍스트(ex. 철자, 하나의 글자, 단어, 어절, 음절, 문장, 문단 등)를 포함하는 이미지로, 통신부(120)를 통해 사용자 단말(200)로부터 입력받거나, 또는, 입출력 모듈(140)을 통해 사용자로부터 입력받은 필기에 의해 생성될 수 있다. 또한, 메모리(110)에 기 저장된 이미지일 수 있다.As shown in Figure 2, the image subject to automatic measurement is an image containing text (e.g., spelling, one letter, word, word, syllable, sentence, paragraph, etc.) generated in real time by a person's handwriting. It may be generated by input from the user terminal 200 through the communication unit 120, or by handwriting input from the user through the input/output module 140. Additionally, it may be an image previously stored in the memory 110.

글자는, 텍스트를 구성하는 일정한 체계의 부호이며, 예컨대, 도 2의 경우, '여', '보', '안', '경', '안', '보', '이', '네', '안', '경', '안', '보', '여'의 총 13자의 글자가 하나의 텍스트를 구성하고 있으며, 전자 장치(100)는, 영어의 경우, 하나의 알파벳을 하나의 글자로 식별할 수 있다.Letters are symbols of a certain system that constitute the text. For example, in the case of Figure 2, 'Yeo', 'Bo', 'An', 'Gyeong', 'An', 'Bo', 'I', 'Ne' A total of 13 letters of ', 'An', 'Gyeong', 'An', 'Bo', and 'Yeo' make up one text, and in the case of English, the electronic device 100 uses one alphabet. It can be identified by one letter.

한편, 전자 장치(100)가 단계 S110을 수행함에 있어서, 전자 장치(100)는, 도 3에 도시된 바와 같이, 복수의 글자 각각에 대한 가로(x)축 및 세로(y)축을 생성하고, 가로축 및 세로축을 기준으로 좌표(ex, (x, y))를 생성할 수 있다.Meanwhile, when the electronic device 100 performs step S110, the electronic device 100 generates a horizontal (x) axis and a vertical (y) axis for each of the plurality of letters, as shown in FIG. 3, Coordinates (ex, (x, y)) can be created based on the horizontal and vertical axes.

이에 따라, 전자 장치(100)는 좌표를 바탕으로, 복수의 글자 각각에 대한 가로 길이 및 세로 길이를 산출함에 따라, 가로 길이 및 세로 길이를 바탕으로, 복수의 글자 각각의 크기를 산출할 수 있다.Accordingly, the electronic device 100 calculates the horizontal and vertical lengths of each of the plurality of letters based on the coordinates, and thus calculates the size of each of the plurality of letters based on the horizontal and vertical lengths. .

구체적으로, 전자 장치(100)는, 일 글자를 구성하는 적어도 하나의 획을 식별하고, 식별된 획 각각에 대한 복수의 꼭지점이 위치하는 (가로축 값, 세로축 값)으로 획득되는 복수의 좌표를 생성한다. 예컨대, 도 3의 '여보안경안보이네안경안보여'는 총 52획으로 구성되며, 각각의 획이 갖는 꼭지점에 대한 좌표를 산출하여 일 글자를 구성하는 모든 획에 대해 산출된 좌표 중, (최소, 최소), (최소, 최대), (최대, 최대), (최대, 최소)에 대한 좌표를 해당 글자에 대한 좌표로 생성할 수 있다.Specifically, the electronic device 100 identifies at least one stroke constituting one letter and generates a plurality of coordinates obtained as (horizontal value, vertical axis value) where a plurality of vertices for each identified stroke are located. do. For example, 'I see your glasses, I see your glasses,' in Figure 3 consists of a total of 52 strokes, and the coordinates for the vertices of each stroke are calculated, and among the coordinates calculated for all the strokes that make up one letter, (minimum, minimum ), (minimum, maximum), (maximum, maximum), (maximum, minimum) can be created as coordinates for the corresponding character.

이에 따라, 전자 장치(100), 획득된 복수의 좌표 중, (최소, 최소) 좌표 및 획득된 복수의 좌표 중, (최대, 최소) 좌표 사이의 거리를 가로 길이로 산출하고, 해당 글자에 대한 획득된 복수의 좌표 중, (최대, 최소) 좌표 및 획득된 복수의 좌표 중, (최대, 최대) 좌표 사이의 거리를 세로 길이로 산출하여, 가로 길이 및 세로 길이를 곱한 값을 해당 글자에 대한 크기로 산출할 수 있다.Accordingly, the electronic device 100 calculates the distance between the (minimum, minimum) coordinates among the obtained plurality of coordinates and the (maximum, minimum) coordinates among the obtained plurality of coordinates as the horizontal length, and calculates the horizontal length for the corresponding character. Among the plurality of coordinates obtained, the (maximum, minimum) coordinate and the distance between the (maximum, maximum) coordinates among the plurality of obtained coordinates are calculated as the vertical length, and the value multiplied by the horizontal length and the vertical length is calculated for the corresponding character. It can be calculated by size.

이때, 도 3에 도시된 바와 같이, 해당 글자에 대한 크기는 해당 글자를 포함하는 최소 크기의 직각사각형에 대한 면적을 나타내며, 직각사각형은 해당 글자에 대한 복수의 좌표인 A, B, C를 각 변의 일 점, 및 꼭지점으로 포함한다.At this time, as shown in Figure 3, the size of the letter represents the area of the minimum size right-angled square containing the letter, and the right-angled square represents a plurality of coordinates A, B, and C for the letter. Includes a point on a side and a vertex.

한편, 도 4에 도시된 바와 같이, 전자 장치(100)가 단계 S120를 수행함에 있어서, 전자 장치(100)는, 단계 S110에서 생성된 복수의 좌표를 바탕으로, 복수의 글자 각각의 가로축 좌표 최대값, 및 복수의 글자 각각의 가로축 좌표 최솟값을 식별하며, 이에 따라, 전자 장치(100)는 텍스트를 구성하는 복수의 글자들에 대하여, 서로 이웃하는 두 글자 중, 앞 글자인 제1 글자와 뒷 글자인 제2 글자 간의 간격인 자간을 식별할 수 있다.Meanwhile, as shown in FIG. 4, when the electronic device 100 performs step S120, the electronic device 100 determines the maximum horizontal axis coordinate of each of the plurality of letters based on the plurality of coordinates generated in step S110. value, and the minimum value of the horizontal axis coordinate of each of the plurality of letters. Accordingly, the electronic device 100 identifies the first letter and the second letter among the two neighboring letters for the plurality of letters constituting the text. The character spacing, which is the space between the second letters, can be identified.

구체적으로, 전자 장치(100)는 복수의 글자에 있어서, 제1 글자에 대한 가로축 좌표 최솟값을 초과하는, 다른 글자들의 가로축 좌표 중, 제1 글자에 대한 가로축 좌표 최대값과 가장 가까운 가로축 좌표 최솟값을 갖는 글자를 제2 글자로 획득할 수 있다.Specifically, in a plurality of letters, the electronic device 100 determines the minimum horizontal coordinate value closest to the maximum horizontal axis value for the first character among the horizontal axis coordinates of other characters that exceed the minimum horizontal coordinate value for the first character. You can obtain the letter you have as the second letter.

전자 장치(100)는 제1 글자에 대한 가로축 좌표 최대값에 대해 제2 글자에 대한 가로축 좌표 최솟값을 감산한 값을 제1 글자 및 제2 글자 간의 자간으로 획득한다.The electronic device 100 obtains a value obtained by subtracting the minimum horizontal coordinate value for the second character from the maximum horizontal coordinate value for the first character as the letter spacing between the first and second characters.

예컨대, 도 4의 '보여'에 대해 제1 글자인 '보'와 제2 글자인 '여'가, 도시된 바와 같이 서로 겹쳐진 경우, 자간은 '-12.3846'로 산출된 것과 같이 음수로 산출될 수 있다.For example, for 'show' in Figure 4, if the first letter 'Bo' and the second letter 'Yeo' overlap each other as shown, the letter spacing will be calculated as a negative number, such as '-12.3846'. You can.

반면, 도 4의 '이네'에 대해, 제1 글자인 '이'와 제2 글자인 '네'가, 도시된 바와 같이 서로 이격된 경우, 자간은 '15.17389'로 산출된 것과 같이 양수로 산출될 수 있다.On the other hand, for 'Ine' in Figure 4, when the first letter 'I' and the second letter 'Ne' are spaced apart from each other as shown, the letter spacing is calculated as a positive number as calculated as '15.17389'. It can be.

한편, 전자 장치(100)가 단계 S130을 수행함에 있어서, 전자 장치(100)는, 좌표를 바탕으로, 복수의 글자 각각에 대한 가로축 좌표 최솟값, 가로축 좌표 최대값, 세로축 좌표 최솟값, 및 세로축 좌표 최대값에 동일한 거리를 갖는 중심 좌표를, 도 5에 도시된 바와 같이, 산출할 수 있다.Meanwhile, when the electronic device 100 performs step S130, the electronic device 100 determines the minimum horizontal coordinate value, maximum horizontal coordinate value, minimum vertical coordinate value, and maximum vertical axis coordinate for each of the plurality of characters, based on the coordinates. Center coordinates with equal distances to the values can be calculated, as shown in FIG. 5 .

이후, 전자 장치(100)가 단계 S140을 수행함에 있어서, 전자 장치(100)는, 복수의 글자 중, 가장 작은 가로축 좌표 최솟값을 갖는 제3 글자를 식별하고, 복수의 글자 중, 가장 작은 가로축 좌표 최대값을 갖는 제4 글자를 식별하여, 제3 글자의 중심점을 시작점으로 하고, 제4 글자의 중심점이 갖는 가로축 좌표값을 종료점으로 하되, 기울기가 0인 중심선을 식별할 수 있다.Thereafter, when the electronic device 100 performs step S140, the electronic device 100 identifies a third character having the smallest horizontal coordinate value among the plurality of characters and the smallest horizontal coordinate value among the plurality of characters. By identifying the fourth letter with the maximum value, the center point of the third letter is set as the starting point, the horizontal coordinate value of the center point of the fourth letter is set as the end point, and a center line with a slope of 0 can be identified.

예컨대, 도 5에 도시된 바와 같이, 전자 장치(100)는 제3 글자인 '여'의 중심점을 시작점으로 포함하고, 제3 글자의 중심점이 갖는 세로축 좌표값과 제4 글자인 '여'의 중심점이 갖는 가로축 좌표값으로 구성된 좌표를 종료점으로 갖는, 기울기가 0인 중심선을 식별할 수 있다.For example, as shown in FIG. 5, the electronic device 100 includes the center point of the third letter 'Yeo' as a starting point, and the vertical axis coordinate value of the center point of the third letter and the fourth letter 'Yeo' A center line with a slope of 0, which has a coordinate composed of the horizontal axis coordinate value of the center point as an end point, can be identified.

이에 따라, 전자 장치(100)가 단계 S150을 수행함에 있어서, 전자 장치(100)는, 복수의 글자 중, 제3 글자를 제외한 나머지 글자들 각각의 중심점이 갖는 세로축 좌표값을 식별하여, 식별된 세로축 좌표값 각각이 중심선에 대해 갖는 법선 길이 및 방향을, 중심선에 대해 갖는 변위로 산출한다.Accordingly, when the electronic device 100 performs step S150, the electronic device 100 identifies the vertical axis coordinate value of the center point of each of the letters excluding the third letter among the plurality of letters, and identifies the identified The normal length and direction of each vertical axis coordinate value with respect to the center line are calculated as the displacement with respect to the center line.

예컨대, 도 5에 도시된 바와 같이, 전자 장치(100)는 중심선이 갖는 고정된 세로축 좌표값으로부터 각각의 글자가 갖는 세로축 좌표값을 감산하여 변위를 산출하고, 따라서, 변위가 양수인 경우, 중심선 보다 낮은 위치인 것으로, 변위가 음수인 경우, 중심선 보다 높은 위치인 것으로 식별할 수 있다.For example, as shown in FIG. 5, the electronic device 100 calculates the displacement by subtracting the vertical axis coordinate value of each letter from the fixed vertical axis coordinate value of the center line. Therefore, when the displacement is a positive number, it is greater than the center line. It can be identified as a low position, and if the displacement is negative, it can be identified as a position higher than the center line.

도 5의 텍스트를 구성하는 4번째 글자인 '경'은, 중심선 보다 낮은 위치에 있으므로, 변위가 양수인 '2.566101'로 산출되며, 텍스트를 구성하는 10번째 글자인 '경'은, 중심선 보다 높은 위치에 있으므로, 변위가 음수인 '-12.468'로 산출된다.'Gyeong', the 4th letter constituting the text in Figure 5, is located lower than the center line, so the displacement is calculated as '2.566101', which is a positive number, and 'Gyeong', the 10th letter constituting the text, is located higher than the center line. Since there is, the displacement is calculated as '-12.468', which is a negative number.

한편, 전자 장치(100)가 제1 글자 및 제2 글자 간의 자간으로 획득함에 있어서, 전자 장치(100)는 자간이 임계거리 이상인 경우, 자간을, 띄어쓰기에 대해 기 설정된 제1 자간으로 변경하고, 반면, 자간이 임계거리 미만이되 음수인 경우, 자간을 이웃한 글자들의 간격에 대해 기 설정된 제2 자간으로 변경할 수 있다.Meanwhile, when the electronic device 100 acquires the letter spacing between the first and second letters, the electronic device 100 changes the letter spacing to the first letter spacing preset for spacing when the letter spacing is greater than a threshold distance, On the other hand, if the letter spacing is less than the critical distance but is a negative number, the letter spacing can be changed to a second letter spacing preset for the spacing between neighboring letters.

이때, 전자 장치(100)가 자간을 기 설정된 제2 자간으로 변경함에 있어서, 전자 장치(100)는 자간이 제2 자간으로 변경됨에 따라, 제2 글자의 가로축 좌표 최솟값이 변경된 변위를 산출하고, 복수의 글자 중, 제1 글자의 가로축 좌표 최솟값 보다 큰 가로축 좌표 최솟값을 갖는 글자들을 식별하여, 식별된 글자들 각각의 가로축에 대한 좌표에 산출된 제2 글자의 가로축 좌표 최솟값이 변경된 변위를 더함으로써, 자간이 전체적으로 교정된 이미지를 생성하여, 텍스트 전체에 대한 가독성을 높이는 교정을 수행할 수 있다.At this time, when the electronic device 100 changes the letter spacing to the preset second letter spacing, the electronic device 100 calculates a displacement in which the minimum value of the horizontal axis coordinate of the second character is changed as the letter spacing is changed to the second letter spacing, Among a plurality of letters, letters with a minimum horizontal coordinate value greater than the minimum horizontal coordinate value of the first letter are identified, and the displacement resulting from the change in the minimum horizontal coordinate value of the second letter calculated is added to the horizontal axis coordinates of each identified letter. , by creating an image with overall corrected letter spacing, corrections can be performed to improve readability of the entire text.

실시예로, 전자 장치(100)는, 복수의 글자 각각에 대한 크기, 이웃한 글자들의 자간, 및 중심선의 고정된 세로축 좌표값을 중심점의 세로축 좌표값으로 하도록 높낮이를, 도 6에 도시된 바와 같이, 균일하게 교정함으로써 텍스트에 대한 가독성을 높일 수 있다.In an embodiment, the electronic device 100 adjusts the size of each of the plurality of letters, the space between adjacent letters, and the height so that the fixed vertical coordinate value of the center line is the vertical coordinate value of the center point, as shown in FIG. 6. Likewise, the readability of text can be improved by uniformly proofreading.

구체적으로, 전자 장치(100)는, 제1 이미지의 텍스트를 구성하는 복수의 글자 각각에 포함된 중심점을 기준으로 제3 글자에 대해 생성된 직사각형과 동일한 크기의 직사각형을 갖도록 확대 또는 축소를 실시하여 제2 이미지를 획득하고, 제2 이미지의 텍스트를 구성하는, 크기가 균일해진 복수의 글자 각각에 대한 좌표를 재 생성한다.Specifically, the electronic device 100 enlarges or reduces the center point included in each of the plurality of letters constituting the text of the first image to have a rectangle of the same size as the rectangle created for the third letter. A second image is acquired, and coordinates for each of a plurality of letters of uniform size constituting the text of the second image are regenerated.

전자 장치(100)는, 제1 이미지를 기준으로, 복수의 글자 중, 제1 글자와 제2 글자에 대한 순서를 식별하여, 제2 이미지의 복수의 텍스트 각각에 대해 재 생성된 좌표 및 임계거리를 기준으로, 제1 자간, 및 제2 자간 중 어느 하나로 변경하거나, 또는 제2 이미지의 제1 글자 및 제2 글자 간의 자간을 유지하여 자간이 균일해진 제3 이미지를 획득한다.The electronic device 100 identifies the order of the first letter and the second letter among the plurality of letters based on the first image, and reproduces the coordinates and threshold distance for each of the plurality of texts in the second image. Based on , the letter spacing is changed to one of the first letter spacing and the second letter spacing, or the letter spacing between the first and second letters of the second image is maintained to obtain a third image with uniform letter spacing.

이후, 전자 장치(100)는, 제3 이미지의 복수의 글자 중 제3 글자 및 제4 글자를 식별하고, 제3 글자 및 제4 글자를 기준으로 중심선을 획득하여, 복수의 글자 전체의 중심좌표에 대해, 중심선의 고정된 세로축 좌표값과 동일한 세로출 좌표값을 포함하도록 변환함으로써, 도 6과 같이, 크기, 자간, 및 높낮이가 균일한 텍스트를 포함하는 제4 이미지를 획득할 수 있다.Thereafter, the electronic device 100 identifies the third and fourth letters among the plurality of letters in the third image, obtains the center line based on the third and fourth letters, and obtains the center coordinates of all the plurality of letters. For , by converting to include a vertical extrusion coordinate value that is the same as the fixed vertical axis coordinate value of the center line, a fourth image including text with uniform size, spacing, and height can be obtained, as shown in FIG. 6.

실시예로, 전자 장치(100)가 단계 S110을 수행함에 있어서, 전자 장치(100)는, 획을 기준으로 텍스트를 구성하는 복수의 글자를 분리하되, 이웃하는 글자들 간의 자간이 임계거리 미만인 경우, 이웃하는 글자들에 의해 형성된 어절을 획득한다.In an embodiment, when the electronic device 100 performs step S110, the electronic device 100 separates a plurality of letters constituting the text based on strokes, but when the letter spacing between neighboring letters is less than the critical distance. , obtain words formed by neighboring letters.

전자 장치(100)는 획득된 어절에 포함된 명사적 의미를 갖는 제1 단어를 식별하고, 제1 단어가 텍스트가 구성하는 맥락에 위배되는지 여부를 판단한다. 구체적으로, 전자 장치(100)는 제1 단어에 대해, 자간이 임계거리 미만인 제5 글자가 식별된 경우, 식별된 제5 글자의 가로축 좌표 최솟값이, 제1 단어를 구성하는 적어도 하나의 제6 글자 중 가작 작은 가로축 좌표값 보다 작은 값이면, 전자 장치(100)는 제1 단어가 명사적 의미는 갖추었으나, 텍스트에 의해 형성된 문장을 형성하지 못하는 것으로 판단할 수 있다. 이때, 제5 글자는 조사, 어미와 같이 문법적 기능을 하는 요소들로, 제1 단어의 뒤에 붙어 어절을 이루는 역할을 수행하나, 제1 단어의 앞에 위치하는 경우, 어절, 어절에 의해 구성되는 텍스트(문장)에 대한 맥락을 위배하게 되므로, 전자 장치(100)는 제5 글자 및 제1 단어를 구성하는 획을 재조합하여 제2 단어를 구성할 수 있다.The electronic device 100 identifies a first word with a noun meaning included in the acquired word phrase, and determines whether the first word violates the context of the text. Specifically, when a fifth letter whose letter spacing is less than the threshold distance is identified for a first word, the electronic device 100 determines that the minimum horizontal axis coordinate of the identified fifth letter is at least one sixth letter constituting the first word. If the value is smaller than the smallest horizontal axis coordinate value among the letters, the electronic device 100 may determine that the first word has a noun meaning but does not form a sentence formed by the text. At this time, the fifth letter is an element that performs a grammatical function, such as a particle or an ending, and is attached to the back of the first word to form a phrase. However, if it is placed in front of the first word, the fifth letter is a phrase or a text composed of the phrase. Since the context for (sentence) is violated, the electronic device 100 may compose the second word by recombining the fifth letter and the strokes constituting the first word.

이때, 메모리(110)는 텍스트를 발음하는 오디오가 저장되어 있으며, 전자 장치(100)는 오디오를 기준으로, 제1 단어가 텍스트에 포함된 단어인지 판단할 수 있다.At this time, the memory 110 stores audio pronunciation of the text, and the electronic device 100 can determine whether the first word is a word included in the text based on the audio.

제1 단어가 텍스트에 미포함된 단어인 경우, 전자 장치(100)는 획을 바탕으로 제2 단어를 구성하는 글자를 재조합하고, 오디오를 기준으로, 제2 단어가 텍스트에 포함된 단어인지 재 판단할 수 있다.If the first word is a word not included in the text, the electronic device 100 reassembles the letters constituting the second word based on the stroke and re-determines whether the second word is a word included in the text based on the audio. can do.

한편, 본 발명은, 하드웨어인 컴퓨터와 결합되어, 본 발명의 일 면에 따른 글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치(100)의 제어 방법을 수행할 수 있도록 컴퓨터에서 독출가능한 기록매체에 저장된 컴퓨터 프로그램을 더 포함할 수 있다.Meanwhile, the present invention is combined with a computer, which is hardware, to enable the computer to perform a control method of the electronic device 100 that automatically measures the size, character spacing, and height of the center point according to one aspect of the present invention. It may further include a computer program stored on a readable recording medium.

도 7 내지 도 9는 본 개시의 일 실시예에 따른 전자 장치의 구성도 및 그에 따른 시스템 구성도이다.7 to 9 are diagrams showing the configuration of an electronic device and a corresponding system configuration according to an embodiment of the present disclosure.

도 7 내지 도 9에 도시된 바와 같이, 본 발명의 일 면에 따른, 글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치(100)의 제어 방법에 있어서, 전자 장치(100)는, 메모리(110), 적어도 하나의 단말과 통신하는 통신부(120), 및 메모리(110), 및 통신부(120)와 연결된 프로세서(130)를 포함할 수 있다.As shown in FIGS. 7 to 9, in the control method of the electronic device 100 that automatically measures the size, letter spacing, and height of the center point according to one aspect of the present invention, the electronic device 100 may include a memory 110, a communication unit 120 that communicates with at least one terminal, and a processor 130 connected to the memory 110 and the communication unit 120.

메모리(110)는 전자 장치(100)의 동작에 필요한 각종 프로그램 및 데이터를 저장할 수 있다. 메모리(110)는 비휘발성 메모리(110), 휘발성 메모리(110), 플래시메모리(110)(flash-memory), 하드디스크 드라이브(HDD) 또는 솔리드 스테이트 드라이브(SSD) 등으로 구현될 수 있다.The memory 110 can store various programs and data necessary for the operation of the electronic device 100. The memory 110 may be implemented as a non-volatile memory 110, a volatile memory 110, a flash-memory 110, a hard disk drive (HDD), or a solid state drive (SSD).

통신부(120)는 외부 장치와 통신을 수행할 수 있다. 특히, 통신부(120)는 와이파이 칩, 블루투스 칩, 무선 통신 칩, NFC칩, 저전력 블루투스 칩(BLE 칩) 등과 같은 다양한 통신 칩을 포함할 수 있다. 이때, 와이파이 칩, 블루투스 칩, NFC 칩은 각각 LAN 방식, WiFi 방식, 블루투스 방식, NFC 방식으로 통신을 수행한다. 와이파이 칩이나 블루투스칩을 이용하는 경우에는 SSID 및 세션 키 등과 같은 각종 연결 정보를 먼저 송수신 하여, 이를 이용하여 통신 연결한 후 각종 정보들을 송수신할 수 있다. 무선 통신칩은 IEEE, 지그비, 3G(3rd Generation), 3GPP(3rd Generation Partnership Project), LTE(Long Term Evolution), 5G(5th Generation) 등과 같은 다양한 통신 규격에 따라 통신을 수행하는 칩을 의미한다.The communication unit 120 can communicate with an external device. In particular, the communication unit 120 may include various communication chips such as a Wi-Fi chip, a Bluetooth chip, a wireless communication chip, an NFC chip, and a low-energy Bluetooth chip (BLE chip). At this time, the Wi-Fi chip, Bluetooth chip, and NFC chip communicate in the LAN method, WiFi method, Bluetooth method, and NFC method, respectively. When using a Wi-Fi chip or Bluetooth chip, various connection information such as SSID and session key are first transmitted and received, and various information can be transmitted and received after establishing a communication connection using this. A wireless communication chip refers to a chip that performs communication according to various communication standards such as IEEE, ZigBee, 3G (3rd Generation), 3GPP (3rd Generation Partnership Project), LTE (Long Term Evolution), and 5G (5th Generation).

프로세서(130)는 메모리(110)에 저장된 각종 프로그램을 이용하여 전자 장치(100)의 전반적인 동작을 제어할 수 있다. 프로세서(130)는 RAM, ROM, 그래픽 처리부, 메인 CPU, 제1 내지 n 인터페이스 및 버스로 구성될 수 있다. 이때, RAM, ROM, 그래픽 처리부, 메인 CPU, 제1 내지 n 인터페이스 등은 버스를 통해 서로 연결될 수 있다.The processor 130 can control the overall operation of the electronic device 100 using various programs stored in the memory 110. The processor 130 may be comprised of RAM, ROM, a graphics processing unit, a main CPU, first to n interfaces, and a bus. At this time, RAM, ROM, graphics processing unit, main CPU, first to n interfaces, etc. may be connected to each other through a bus.

RAM은 O/S 및 어플리케이션 프로그램을 저장한다. 구체적으로, 전자 장치(100)가 부팅되면 O/S가 RAM에 저장되고, 사용자가 선택한 각종 어플리케이션 데이터가 RAM에 저장될 수 있다.RAM stores O/S and application programs. Specifically, when the electronic device 100 is booted, the O/S is stored in RAM, and various application data selected by the user may be stored in RAM.

ROM에는 시스템 부팅을 위한 명령어 세트 등이 저장된다. 턴 온 명령이 입력되어 전원이 공급되면, 메인 CPU는 ROM에 저장된 명령어에 따라 메모리(110)에 저장된 O/S를 RAM에 복사하고, O/S를 실행시켜 시스템을 부팅시킨다. 부팅이 완료되면, 메인 CPU는 메모리(110)에 저장된 각종 어플리케이션 프로그램을 RAM에 복사하고, RAM에 복사된 어플리케이션 프로그램을 실행시켜 각종 동작을 수행한다.ROM stores a set of instructions for booting the system. When a turn-on command is input and power is supplied, the main CPU copies the O/S stored in the memory 110 to RAM according to the command stored in the ROM, executes the O/S, and boots the system. When booting is complete, the main CPU copies various application programs stored in the memory 110 to RAM and executes the application programs copied to RAM to perform various operations.

그래픽 처리부는 연산부(미도시) 및 렌더링부(미도시)를 이용하여 아이템, 이미지, 텍스트 등과 같은 다양한 객체를 포함하는 화면을 생성한다. 여기서, 연산부는 입력부로부터 수신된 제어 명령을 이용하여 화면의 레이아웃에 따라 각 객체들이 표시될 좌표값, 형태, 크기, 컬러 등과 같은 속성값을 연산하는 구성일 수 있다. 그리고, 렌더링부는 연산부에서 연산한 속성값에 기초하여 객체를 포함하는 다양한 레이아웃의 화면을 생성하는 구성이 일 수 있다. 이러한 렌더링부에서 생성된 화면은 디스플레이(140)의 디스플레이 영역 내에 표시될 수 있다.The graphics processing unit uses a calculation unit (not shown) and a rendering unit (not shown) to create a screen containing various objects such as items, images, and text. Here, the calculation unit may be configured to calculate attribute values such as coordinate values, shape, size, color, etc. for each object to be displayed according to the layout of the screen using a control command received from the input unit. Additionally, the rendering unit may be configured to generate screens of various layouts including objects based on attribute values calculated by the calculation unit. The screen generated by this rendering unit may be displayed within the display area of the display 140.

메인 CPU는 메모리(110)에 액세스하여, 메모리(110)에 저장된 OS를 이용하여 부팅을 수행한다. 그리고, 메인 CPU는 메모리(110)에 저장된 각종 프로그램, 컨텐츠, 데이터 등을 이용하여 다양한 동작을 수행한다.The main CPU accesses the memory 110 and performs booting using the OS stored in the memory 110. And, the main CPU performs various operations using various programs, contents, data, etc. stored in the memory 110.

제1 내지 n 인터페이스는 상술한 각종 구성요소들과 연결된다. 제1 내지 n 인터페이스 중 하나는 네트워크를 통해 외부 장치와 연결되는 네트워크 인터페이스가 될 수도 있다.The first to n interfaces are connected to the various components described above. One of the first to n interfaces may be a network interface connected to an external device through a network.

한편, 프로세서(130)는 하나 이상의 코어(core, 미도시) 및 그래픽 처리부(미도시) 및/또는 다른 구성 요소와 신호를 송수신하는 연결 통로(예를 들어, 버스(bus) 등)를 포함할 수 있다.Meanwhile, the processor 130 may include one or more cores (not shown) and a graphics processing unit (not shown) and/or a connection path (e.g., bus, etc.) for transmitting and receiving signals with other components. You can.

일 실시예에 따른 프로세서(130)는 메모리(110)에 저장된 하나 이상의 인스트럭션을 실행함으로써, 본 발명과 관련하여 설명된 방법을 수행한다.Processor 130 according to one embodiment performs the method described in connection with the present invention by executing one or more instructions stored in memory 110.

예를 들어, 프로세서(130)는 메모리(110)에 저장된 하나 이상의 인스트럭션을 실행함으로써 신규 학습용 데이터를 획득하고, 학습된 모델을 이용하여, 상기 획득된 신규 학습용 데이터에 대한 테스트를 수행하고, 상기 테스트 결과, 라벨링된 정보가 소정의 제1 기준값 이상의 정확도로 획득되는 제1 학습용 데이터를 추출하고, 상기 추출된 제1 학습용 데이터를 상기 신규 학습용 데이터로부터 삭제하고, 상기 추출된 학습용 데이터가 삭제된 상기 신규 학습용 데이터를 이용하여 상기 학습된 모델을 다시 학습시킬 수 있다.For example, the processor 130 acquires new training data by executing one or more instructions stored in the memory 110, performs a test on the acquired new training data using a learned model, and performs the test. As a result, first learning data in which labeled information is obtained with an accuracy greater than a predetermined first reference value is extracted, the extracted first learning data is deleted from the new learning data, and the new learning data from which the extracted learning data is deleted is extracted. The learned model can be retrained using training data.

한편, 프로세서(130)는 프로세서(130) 내부에서 처리되는 신호(또는, 데이터)를 일시적 및/또는 영구적으로 저장하는 램(RAM: Random Access Memory, 미도시) 및 롬(ROM: Read-Only Memory, 미도시)을 더 포함할 수 있다. 또한, 프로세서(130)는 그래픽 처리부, 램 및 롬 중 적어도 하나를 포함하는 시스템온칩(SoC: system on chip) 형태로 구현될 수 있다.Meanwhile, the processor 130 includes random access memory (RAM) (not shown) and read-only memory (ROM) that temporarily and/or permanently store signals (or data) processed within the processor 130. , not shown) may be further included. Additionally, the processor 130 may be implemented in the form of a system on chip (SoC) that includes at least one of a graphics processing unit, RAM, and ROM.

메모리(110)에는 프로세서(130)의 처리 및 제어를 위한 프로그램들(하나 이상의 인스트럭션들)을 저장할 수 있다. 메모리(110)에 저장된 프로그램들은 기능에 따라 복수 개의 모듈들로 구분될 수 있다.The memory 110 may store programs (one or more instructions) for processing and control of the processor 130. Programs stored in the memory 110 may be divided into a plurality of modules according to their functions.

프로세서(130)는, 통신부(120)를 통해, 사용자 단말(200)로부터 사용자의 필기에 의해 생성되는 이미지를 실시간으로 획득하고, 이미지에 포함된 텍스트를 구성하는 복수의 글자 각각의 크기를 실시간으로 산출하고, 크기를 바탕으로, 이웃하는 글자 간의 자간을 산출하고, 복수의 글자 각각의 중심점을 식별하고, 중심점을 바탕으로, 텍스트에 대한 중심선을 식별하고, 중심선 및 중심점을 기준으로, 복수의 글자 각각이 중심선에 대해 갖는 변위를 산출하여, 산출된 크기, 산출된 자간, 및 산출된 변위가 텍스트에 표시된 이미지를 생성하여, 사용자 단말(200)을 통해, 사용자에게 제공할 수 있다.The processor 130 acquires an image generated by the user's handwriting from the user terminal 200 in real time through the communication unit 120, and determines the size of each of the plurality of letters constituting the text included in the image in real time. Calculate, based on the size, calculate the letter spacing between neighboring letters, identify the center point of each of the plurality of letters, identify the center line for the text based on the center point, and based on the center line and center point, identify the center point of the plurality of letters By calculating the displacement each has with respect to the center line, an image in which the calculated size, calculated letter spacing, and calculated displacement are displayed in text can be generated and provided to the user through the user terminal 200 .

일 실시예로, 사용자 단말(200)은 스마트폰(smartphone), 태블릿 PC(tablet personal computer), 이동 전화기(mobile phone), 영상 전화기, 랩탑 PC(laptop PC), 넷북 컴퓨터(netbook computer), 노트북 컴퓨터(notebook computer), PDA(personal digital assistant), PMP(portable multimedia player), 웨어러블 장치(wearable device) 중 적어도 하나를 포함할 수 있다.In one embodiment, the user terminal 200 is a smartphone, tablet personal computer, mobile phone, video phone, laptop PC, netbook computer, or laptop. It may include at least one of a laptop computer, a personal digital assistant (PDA), a portable multimedia player (PMP), and a wearable device.

사용자 단말(200)은 메모리, 전자 장치(100)와 통신하는 통신부, 디스플레이 및 메모리, 통신부, 및 디스플레이(필기에 대한 사용자 입력을 획득하고, 생성된 피리 이미지를 출력하고, 생성된 산출된 크기, 산출된 자간, 및 산출된 변위가 텍스트에 표시된 이미지를 출력)와 연결된 프로세서를 포함하고, 프로세서는 사용자 단말(200)의 전반적인 동작을 제어한다.The user terminal 200 includes a memory, a communication unit for communicating with the electronic device 100, a display, and a memory, a communication unit, and a display (obtaining user input for handwriting, outputting the generated flute image, the generated calculated size, It includes a processor connected to the calculated letter spacing and the calculated displacement to output an image displayed in the text, and the processor controls the overall operation of the user terminal 200.

실시예로, 전자 장치(100)는, 사용자 단말(200)로 제4 이미지를 제공하여, 제4 이미지에 대한 텍스트에 사용자 입력이 오버랩되도록 가이드를 제공하여, 사용자 자신에게 익숙한 필체를 기준으로, 글자가 균일해지는 사용자 맞춤형 필기 연습 시나리오를 제공할 수 있다.In an embodiment, the electronic device 100 provides a fourth image to the user terminal 200 and provides a guide so that the user input overlaps the text for the fourth image, based on the handwriting familiar to the user, It is possible to provide a user-customized handwriting practice scenario where letters become uniform.

도 10 및 도 11은 본 개시의 일 실시예에 따른 전자 장치의 다른 구성도이다.10 and 11 are other configuration diagrams of an electronic device according to an embodiment of the present disclosure.

도 10 및 도 11에 도시된 바와 같이, 또한, 본 발명의 일 면에 따른, 글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치(100)의 제어 방법에 있어서, 전자 장치(100)는, 메모리(110), 필기에 대한 입력을 획득하고, 필기에 대한 텍스트를 포함하는 이미지를 생성하는 입출력 모듈(140), 및 메모리(110), 및 입출력 모듈(140)과 연결된 프로세서(130)를 포함할 수 있다.As shown in FIGS. 10 and 11, in the control method of the electronic device 100 that performs automatic measurement of character size, letter spacing, and height of the center point according to one aspect of the present invention, the electronic device ( 100 includes a memory 110, an input/output module 140 for obtaining input for handwriting and generating an image containing text for handwriting, and a processor connected to memory 110 and the input/output module 140. 130) may be included.

일 실시예로, 입출력 모듈(140)은 디스플레이와 터치패드, 디스플레이와 드로잉패드, 터치형 디스플레이 등 사용자의 필기 입력을 위한 전자 기기와 이미지 출력을 위한 디스플레이가 별도로 분리되거나 결합된 기기이다.In one embodiment, the input/output module 140 is a device in which an electronic device for inputting a user's handwriting, such as a display and a touch pad, a display and a drawing pad, or a touch-type display, and a display for outputting an image are separated or combined.

이에 따라, 프로세서(130)는, 입출력 모듈(140)을 통해, 사용자로부터 필기에 대한 사용자 입력을 획득하고, 필기에 포함된 텍스트를 구성하는 복수의 글자 각각의 크기를, 입출력 모듈(140)을 통해 필기가 입력되는 모션을 바탕으로 산출하고, 크기를 바탕으로, 이웃하는 글자 간의 자간을 산출하고, 복수의 글자 각각의 중심점을 식별하고, 중심점을 바탕으로, 텍스트에 대한 중심선을 식별하고, 중심선 및 중심점을 기준으로, 복수의 글자 각각이 중심선에 대해 갖는 변위를 산출하고, 산출된 크기, 산출된 자간, 및 산출된 변위가 텍스트에 표시된 이미지를 생성하여, 입출력 모듈(140)을 통해 제공할 수 있다.Accordingly, the processor 130 obtains a user input for handwriting from the user through the input/output module 140, and determines the size of each of the plurality of letters constituting the text included in the handwriting through the input/output module 140. Calculate based on the motion of handwriting input, calculate the space between neighboring letters based on size, identify the center point of each of multiple letters, identify the center line for the text based on the center point, and calculate the center line And based on the center point, the displacement of each of the plurality of letters is calculated with respect to the center line, and the calculated size, calculated letter spacing, and calculated displacement are displayed in the text to generate an image to be provided through the input/output module 140. You can.

실시예로, 전자 장치(100)는, 입출력 모듈(140)로 제4 이미지를 제공하여, 제4 이미지에 대한 텍스트에 사용자 입력이 오버랩되도록 가이드를 제공하여, 사용자 자신에게 익숙한 필체를 기준으로, 글자가 균일해지는 사용자 맞춤형 필기 연습 시나리오를 제공할 수 있다.In an embodiment, the electronic device 100 provides a fourth image to the input/output module 140 and provides a guide so that the user input overlaps the text for the fourth image, based on the handwriting familiar to the user, It is possible to provide a user-customized handwriting practice scenario where letters become uniform.

본 발명의 실시예와 관련하여 설명된 방법 또는 알고리즘의 단계들은 하드웨어로 직접 구현되거나, 하드웨어에 의해 실행되는 소프트웨어 모듈로 구현되거나, 또는 이들의 결합에 의해 구현될 수 있다. 소프트웨어 모듈은 RAM(Random Access Memory), ROM(Read Only Memory), EPROM(Erasable Programmable ROM), EEPROM(Electrically Erasable Programmable ROM), 플래시 메모리(Flash Memory), 하드 디스크, 착탈형 디스크, CD-ROM, 또는 본 발명이 속하는 기술 분야에서 잘 알려진 임의의 형태의 컴퓨터 판독가능 기록매체에 상주할 수도 있다.The steps of the method or algorithm described in connection with embodiments of the present invention may be implemented directly in hardware, implemented as a software module executed by hardware, or a combination thereof. The software module may be RAM (Random Access Memory), ROM (Read Only Memory), EPROM (Erasable Programmable ROM), EEPROM (Electrically Erasable Programmable ROM), Flash Memory, hard disk, removable disk, CD-ROM, or It may reside on any type of computer-readable recording medium well known in the art to which the present invention pertains.

또한, 본 발명의 서로 다른 실시예들은 상호 보완되거나 결합될 수 있다.Additionally, different embodiments of the present invention may complement or be combined with each other.

본 발명의 구성 요소들은 하드웨어인 컴퓨터와 결합되어 실행되기 위해 프로그램(또는 애플리케이션)으로 구현되어 매체에 저장될 수 있다. 본 발명의 구성 요소들은 소프트웨어 프로그래밍 또는 소프트웨어 요소들로 실행될 수 있으며, 이와 유사하게, 실시 예는 데이터 구조, 프로세스들, 루틴들 또는 다른 프로그래밍 구성들의 조합으로 구현되는 다양한 알고리즘을 포함하여, C, C++, 자바(Java), 어셈블러(assembler), 파이썬(Python) 등과 같은 프로그래밍 또는 스크립팅 언어로 구현될 수 있다. 기능적인 측면들은 하나 이상의 프로세서들에서 실행되는 알고리즘으로 구현될 수 있다.The components of the present invention may be implemented as a program (or application) and stored in a medium in order to be executed in conjunction with a hardware computer. Components of the invention may be implemented as software programming or software elements, and similarly, embodiments may include various algorithms implemented as combinations of data structures, processes, routines or other programming constructs, such as C, C++, , it can be implemented in a programming or scripting language such as Java, assembler, Python, etc. Functional aspects may be implemented as algorithms running on one or more processors.

이상, 첨부된 도면을 참조로 하여 본 발명의 실시예를 설명하였지만, 본 발명이 속하는 기술분야의 통상의 기술자는 본 발명이 그 기술적 사상이나 필수적인 특징을 변경하지 않고서 다른 구체적인 형태로 실시될 수 있다는 것을 이해할 수 있을 것이다. 그러므로, 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며, 제한적이 아닌 것으로 이해해야만 한다.Above, embodiments of the present invention have been described with reference to the attached drawings, but those skilled in the art will understand that the present invention can be implemented in other specific forms without changing its technical idea or essential features. You will be able to understand it. Therefore, the embodiments described above should be understood in all respects as illustrative and not restrictive.

100 : 전자 장치
110 : 메모리
120 : 통신부
130 : 프로세서
140 : 입출력 모듈
200 : 사용자 단말
100: electronic device
110: memory
120: Department of Communications
130: processor
140: input/output module
200: user terminal

Claims (10)

글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치의 제어 방법에 있어서,
상기 전자 장치가, 자동측정 대상인 이미지에 포함된 텍스트를 구성하는 복수의 글자 각각의 크기를 산출하는 단계;
상기 전자 장치가, 상기 크기를 바탕으로, 이웃하는 글자 간의 자간을 산출하는 단계;
상기 전자 장치가, 상기 복수의 글자 각각의 중심점을 식별하는 단계;
상기 전자 장치가, 상기 중심점을 바탕으로, 상기 텍스트에 대한 중심선을 식별하는 단계; 및
상기 전자 장치가, 상기 중심선 및 상기 중심점을 기준으로, 상기 복수의 글자 각각이 상기 중심선에 대해 갖는 변위를 산출하는 단계;를 포함하는, 전자 장치의 제어 방법.
In the control method of an electronic device that automatically measures the size, character spacing, and height of the center point,
calculating, by the electronic device, the size of each of a plurality of letters constituting text included in an image subject to automatic measurement;
calculating, by the electronic device, character spacing between neighboring letters based on the size;
identifying, by the electronic device, a center point of each of the plurality of letters;
identifying, by the electronic device, a center line for the text based on the center point; and
A method of controlling an electronic device comprising: calculating, by the electronic device, a displacement of each of the plurality of letters with respect to the center line, based on the center line and the center point.
제1 항에 있어서,
상기 복수의 글자 각각의 크기를 산출하는 단계는,
상기 복수의 글자 각각에 대한 가로축 및 세로축을 생성하는 단계;
상기 가로축 및 상기 세로축을 기준으로 좌표를 생성하는 단계;
상기 좌표를 바탕으로, 상기 복수의 글자 각각에 대한 가로 길이 및 세로 길이를 산출하는 단계; 및
상기 가로 길이 및 상기 세로 길이를 바탕으로, 상기 복수의 글자 각각의 크기를 산출하는 단계;를 포함하는, 전자 장치의 제어 방법.
According to claim 1,
The step of calculating the size of each of the plurality of letters is,
generating a horizontal axis and a vertical axis for each of the plurality of characters;
generating coordinates based on the horizontal axis and the vertical axis;
calculating the horizontal and vertical lengths of each of the plurality of characters based on the coordinates; and
A method of controlling an electronic device comprising: calculating a size of each of the plurality of characters based on the horizontal length and the vertical length.
제2 항에 있어서,
상기 이웃하는 글자 간의 자간을 산출하는 단계는,
상기 좌표를 바탕으로, 상기 복수의 글자 각각의 가로축 좌표 최대값, 및 상기 복수의 글자 각각의 가로축 좌표 최솟값을 식별하는 단계;
상기 복수의 글자 중, 제1 글자에 대한 가로축 좌표 최솟값보다 큰 가로축 좌표 중, 상기 제1 글자에 대한 가로축 좌표 최대값과 가장 가까운 가로축 좌표 최솟값을 갖는 제2 글자를 식별하는 단계; 및
상기 제1 글자에 대한 가로축 좌표 최대값, 및 상기 제2 글자에 대한 가로축 좌표 최솟값을 바탕으로, 상기 제1 글자 및 상기 제2 글자 간의 자간으로 획득하는 단계;를 포함하는, 전자 장치의 제어 방법.
According to clause 2,
The step of calculating the character spacing between neighboring letters is,
Based on the coordinates, identifying the maximum horizontal coordinate value of each of the plurality of letters and the minimum horizontal axis coordinate value of each of the plurality of letters;
Among the plurality of letters, identifying a second letter having a minimum horizontal coordinate value closest to the maximum horizontal coordinate value for the first letter among the horizontal coordinates greater than the minimum horizontal coordinate value for the first letter; and
A control method of an electronic device comprising; obtaining a letter spacing between the first letter and the second letter based on the maximum horizontal coordinate value for the first letter and the minimum horizontal coordinate value for the second letter. .
제2 항에 있어서,
상기 복수의 글자 각각의 중심점을 식별하는 단계는,
상기 좌표를 바탕으로, 상기 복수의 글자 각각에 대한 가로축 좌표 최솟값, 가로축 좌표 최대값, 세로축 좌표 최솟값, 및 세로축 좌표 최대값에 동일한 거리를 갖는 중심 좌표를 산출하고,
상기 텍스트에 대한 중심선을 식별하는 단계는,
상기 복수의 글자 중, 가장 작은 가로축 좌표 최솟값을 갖는 제3 글자를 식별하는 단계;
상기 복수의 글자 중, 가장 작은 가로축 좌표 최대값을 갖는 제4 글자를 식별하는 단계; 및
상기 제3 글자의 중심점을 시작점으로 하고, 상기 제4 글자의 중심점이 갖는 가로축 좌표값을 종료점으로 하되, 기울기가 0인 중심선을 식별하는 단계;를 포함하는, 전자 장치의 제어 방법.
According to clause 2,
The step of identifying the center point of each of the plurality of letters is,
Based on the coordinates, calculate a center coordinate having the same distance from the minimum horizontal coordinate value, the maximum horizontal coordinate value, the minimum vertical coordinate value, and the maximum vertical coordinate value for each of the plurality of letters,
The step of identifying the center line for the text is,
Among the plurality of letters, identifying a third letter having the smallest horizontal axis coordinate minimum value;
Among the plurality of characters, identifying a fourth character having the smallest maximum horizontal axis coordinate; and
Using the center point of the third character as a starting point and the horizontal coordinate value of the center point of the fourth character as an end point, identifying a center line with a slope of 0.
제4 항에 있어서,
상기 복수의 글자 각각이 상기 중심선에 대해 갖는 변위를 산출하는 단계는,
상기 복수의 글자 중, 상기 제3 글자를 제외한 나머지 글자들 각각의 중심점이 갖는 세로축 좌표값을 식별하는 단계; 및
상기 식별된 세로축 좌표값 각각이 상기 중심선에 대해 갖는 법선 길이 및 방향을, 상기 중심선에 대해 갖는 변위로 산출하는 단계;를 포함하는, 전자 장치의 제어 방법.
According to clause 4,
The step of calculating the displacement of each of the plurality of letters with respect to the center line is,
Identifying the vertical axis coordinate value of the center point of each of the letters excluding the third letter among the plurality of letters; and
A method of controlling an electronic device comprising: calculating the normal length and direction of each of the identified vertical axis coordinate values with respect to the center line as a displacement with respect to the center line.
제3 항에 있어서,
상기 제1 글자 및 상기 제2 글자 간의 자간으로 획득하는 단계는,
상기 자간이 임계거리 이상인 경우, 상기 자간을 기 설정된 제1 자간으로 변경하는 단계; 및
상기 자간이 임계거리 미만이되 음수인 경우, 상기 자간을 기 설정된 제2 자간으로 변경하는 단계;를 포함하는, 전자 장치의 제어 방법.
According to clause 3,
The step of obtaining the space between the first letter and the second letter is,
If the letter spacing is greater than or equal to a critical distance, changing the letter spacing to a preset first letter spacing; and
When the letter spacing is less than a critical distance but is a negative number, changing the letter spacing to a preset second letter spacing. A method of controlling an electronic device comprising a.
제6 항에 있어서,
상기 자간을 기 설정된 제2 자간으로 변경하는 단계는,
상기 자간이 상기 제2 자간으로 변경됨에 따라, 상기 제2 글자의 가로축 좌표 최솟값이 변경된 변위를 산출하는 단계;
상기 복수의 글자 중, 상기 제1 글자의 가로축 좌표 최솟값 보다 큰 가로축 좌표 최솟값을 갖는 글자들을 식별하는 단계; 및
상기 식별된 글자들 각각의 가로축에 대한 좌표에 상기 산출된 제2 글자의 가로축 좌표 최솟값이 변경된 변위를 더하는 단계;를 포함하는, 전자 장치의 제어 방법.
According to clause 6,
The step of changing the letter spacing to the preset second letter spacing is,
As the letter spacing is changed to the second letter spacing, calculating a displacement in which the minimum value of the horizontal axis coordinate of the second letter is changed;
Among the plurality of letters, identifying letters having a minimum horizontal coordinate value greater than the minimum horizontal coordinate value of the first letter; and
A method of controlling an electronic device comprising: adding a displacement resulting from a change in the calculated minimum value of the horizontal axis coordinate of the second character to the horizontal axis coordinates of each of the identified characters.
하드웨어인 컴퓨터와 결합되어, 제1 항의 방법을 수행할 수 있도록 컴퓨터에서 독출가능한 기록매체에 저장된 컴퓨터 프로그램.A computer program combined with a computer as hardware and stored on a computer-readable recording medium so as to perform the method of claim 1. 글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치에 있어서,
메모리;
적어도 하나의 단말과 통신하는 통신부; 및
상기 메모리, 및 상기 통신부와 연결된 프로세서;를 포함하고,
상기 프로세서는,
상기 통신부를 통해, 사용자 단말로부터 이미지를 획득하고,
상기 이미지에 포함된 텍스트를 구성하는 복수의 글자 각각의 크기를 산출하고,
상기 크기를 바탕으로, 이웃하는 글자 간의 자간을 산출하고,
상기 복수의 글자 각각의 중심점을 식별하고,
상기 중심점을 바탕으로, 상기 텍스트에 대한 중심선을 식별하고,
상기 중심선 및 상기 중심점을 기준으로, 상기 복수의 글자 각각이 상기 중심선에 대해 갖는 변위를 산출하는, 전자 장치.
In an electronic device that automatically measures the size, character spacing, and height of the center point,
Memory;
A communication unit that communicates with at least one terminal; and
Includes a processor connected to the memory and the communication unit,
The processor,
Obtaining an image from a user terminal through the communication unit,
Calculate the size of each of the plurality of letters constituting the text included in the image,
Based on the size, calculate the letter spacing between neighboring letters,
Identifying the center point of each of the plurality of letters,
Based on the center point, identify a center line for the text,
An electronic device that calculates a displacement of each of the plurality of letters with respect to the center line, based on the center line and the center point.
글자의 크기, 자간, 및 중심점의 높낮이 자동측정을 수행하는 전자 장치에 있어서,
메모리;
필기에 대한 입력을 획득하고, 상기 필기에 대한 텍스트를 포함하는 이미지를 생성하는 입출력 모듈; 및
상기 메모리, 및 상기 입출력 모듈과 연결된 프로세서;를 포함하고,
상기 프로세서는,
상기 입출력 모듈을 통해, 사용자로부터 필기에 대한 사용자 입력을 획득하고,
상기 필기에 포함된 텍스트를 구성하는 복수의 글자 각각의 크기를 산출하고,
상기 크기를 바탕으로, 이웃하는 글자 간의 자간을 산출하고,
상기 복수의 글자 각각의 중심점을 식별하고,
상기 중심점을 바탕으로, 상기 텍스트에 대한 중심선을 식별하고,
상기 중심선 및 상기 중심점을 기준으로, 상기 복수의 글자 각각이 상기 중심선에 대해 갖는 변위를 산출하고,
상기 산출된 크기, 상기 산출된 자간, 및 상기 산출된 변위가 텍스트에 표시된 이미지를 생성하여, 상기 입출력 모듈을 통해 제공하는, 전자 장치.
In an electronic device that automatically measures the size, character spacing, and height of the center point,
Memory;
An input/output module that obtains input for handwriting and generates an image containing text for the handwriting; and
Includes a processor connected to the memory and the input/output module,
The processor,
Obtain user input for handwriting from the user through the input/output module,
Calculate the size of each of the plurality of letters constituting the text included in the handwriting,
Based on the size, calculate the letter spacing between neighboring letters,
Identifying the center point of each of the plurality of letters,
Based on the center point, identify a center line for the text,
Based on the center line and the center point, calculating the displacement of each of the plurality of letters with respect to the center line,
An electronic device that generates an image in which the calculated size, the calculated letter spacing, and the calculated displacement are displayed in text, and provides the image through the input/output module.
KR1020220066750A 2022-05-31 2022-05-31 Electronic device for automatically measuring size, spacing, and center point level of letter, control method, and computor program KR20230166595A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020220066750A KR20230166595A (en) 2022-05-31 2022-05-31 Electronic device for automatically measuring size, spacing, and center point level of letter, control method, and computor program
PCT/KR2022/021242 WO2023234511A1 (en) 2022-05-31 2022-12-23 Electronic device, control method and computer program for automatically measuring font size, space between letters, and height of center point

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020220066750A KR20230166595A (en) 2022-05-31 2022-05-31 Electronic device for automatically measuring size, spacing, and center point level of letter, control method, and computor program

Publications (1)

Publication Number Publication Date
KR20230166595A true KR20230166595A (en) 2023-12-07

Family

ID=89025158

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220066750A KR20230166595A (en) 2022-05-31 2022-05-31 Electronic device for automatically measuring size, spacing, and center point level of letter, control method, and computor program

Country Status (2)

Country Link
KR (1) KR20230166595A (en)
WO (1) WO2023234511A1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210017081A (en) 2019-08-06 2021-02-17 삼성전자주식회사 Apparatus and method for displaying graphic elements according to object

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05282128A (en) * 1992-03-31 1993-10-29 Hitachi Ltd System and device for inputting hand-written character
JPH10214308A (en) * 1997-01-29 1998-08-11 Ricoh Co Ltd Character discrimination method
US20110188071A1 (en) * 2007-12-12 2011-08-04 Kenji Yoshida Information input device, information processing device, information input system, information processing system, two-dimensional format information server, information input method, control program, and recording medium
JP6808330B2 (en) * 2016-02-26 2021-01-06 キヤノン株式会社 Information processing equipment, information processing methods, and programs
KR102374280B1 (en) * 2020-02-27 2022-03-16 주식회사 와들 Blocking System of Text Extracted from Image and Its Method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210017081A (en) 2019-08-06 2021-02-17 삼성전자주식회사 Apparatus and method for displaying graphic elements according to object

Also Published As

Publication number Publication date
WO2023234511A1 (en) 2023-12-07

Similar Documents

Publication Publication Date Title
KR101417286B1 (en) Character recognition for overlapping textual user input
US10872207B2 (en) Determining translation similarity of reverse translations for a plurality of languages
TWI475406B (en) Contextual input method
US8701050B1 (en) Gesture completion path display for gesture-based keyboards
US20170091174A1 (en) Language translation for display device
US11928419B2 (en) Information display method and apparatus, and storage medium and electronic device
US10540424B2 (en) Evaluating documents with embedded mathematical expressions
KR20170096078A (en) Electronic device and method for providing handwriting calibration function thereof
KR20170061683A (en) Inferring layout intent
JP2019537103A (en) Method and apparatus for translating characters
KR102472821B1 (en) Method, device, chip circuit and computer program product for recognizing mixed typeset texts
JP7384943B2 (en) Training method for character generation model, character generation method, device, equipment and medium
US11687704B2 (en) Method, apparatus and electronic device for annotating information of structured document
KR20210148813A (en) Medical fact verification method and apparatus, electronic device, and storage medium and program
CN108700978B (en) Assigning textures to graphical keyboards based on subject textures of an application
CN109189314B (en) Writing guide method, device, equipment and medium for handwriting equipment
CN108763188A (en) A kind of text display method, device, equipment and storage medium
AU2019341037B2 (en) Dynamically adjusting text strings based on machine translation feedback
KR20230166595A (en) Electronic device for automatically measuring size, spacing, and center point level of letter, control method, and computor program
KR20170132643A (en) Method for displaying character and Apparatus thereof
WO2020056619A1 (en) Method for error detection in text writing, terminal device, and storage medium
US11320914B1 (en) Computer interaction method, device, and program product
KR101651842B1 (en) Method and device for generating layout of electronic document
US9952763B1 (en) Alternative gesture mapping for a graphical keyboard
CN112926419B (en) Character judgment result processing method and device and electronic equipment