Apparatus and method for automatically adjusting size of characters using camera
Abstract
A method is provided for automatically adjusting a size of characters using a camera. The method includes receiving an image with characters; adjusting a focus of the image with characters and detecting a region and a size of characters in the image; determining whether the size of the characters in the image falls within a preset range; recognizing the characters in the image and displaying the recognition results, if the size of the characters falls within the preset range; and automatically adjusting a zoom ratio of the image and recognizing the characters in the resized image, if the size of the characters does not fall within the preset range.
Claims
exact text as granted — not AI-modified1 . An electronic device comprising:
a camera; a display; and a processor configured to:
control the camera to obtain an image containing characters,
detect a region and a size of the characters in the image,
control to determine whether the size of the characters in the image falls within a recognizable character size range, and
in response to detecting that the size of the characters is less than the recognizable character size range, control the camera to automatically adjust an optical zoom ratio of the camera and resize the obtained image so that the size of the characters in the image falls within the recognizable character size range, and recognize the characters in the resized image.
2 . The electronic device of claim 1 , wherein the processor is further configured to control the camera to adjust a focus of the camera using an automatic focusing technique.
3 . The electronic device of claim 1 , wherein the processor is further configured to:
detect a line on which the characters in the image exist, wherein the line is on one of an X-axis and a Y-axis; and wherein the region and the size of the characters is detected by calculating a height and a length of the characters on the detected line.
4 . The electronic device of claim 1 , wherein the processor is further configured to recognize the characters in the image and control the display to display recognition results, in response to detecting that the size of the characters is greater than the recognizable character size range.
5 . The electronic device of claim 1 , wherein the character recognition is performed on at least two characters in an enlarged region formed by the resizing of the obtained image.
6 . The electronic device of claim 1 , wherein the processor is further configured to generate a notification informing a user that the size of the characters is less than a lower limit of the recognizable character size range, in response to detecting that the size of the characters is less than a lower limit of the recognizable character size range, and if a zoom ratio needed to compensate the image is greater than a maximum zoom ratio.
7 . The electronic device of claim 6 , wherein the notification comprises a message indicating that the size of the characters is less than the lower limit of the recognizable character size range.
8 . A method for controlling an electronic device, the method comprising:
controlling a camera of the electronic device to obtain an image containing characters; detecting a region and a size of the characters in the image; determining whether the size of the characters in the image falls within a recognizable character size range; and in response to detecting that the size of the characters is less than the recognizable character size range, controlling the camera to automatically adjust an optical zoom ratio of the camera and resizing the obtained image so that the size of the characters in the image falls within the recognizable character size range, and recognizing the characters in the resized image.
9 . The method of claim 8 , further comprising controlling the camera to adjust a focus of the camera using an automatic focusing technique.
10 . The method of claim 8 , further comprising:
detecting a line on which the characters in the image exist, wherein the line is on one of an X-axis and a Y-axis; and wherein the region and the size of the characters is detected by calculating a height and a length of the characters on the detected line.
11 . The method of claim 8 , further comprising recognizing the characters in the image and controlling a display of the electronic device to display recognition results, in response to detecting that the size of the characters is greater than the recognizable character size range.
12 . The method of claim 8 , wherein the character recognition is performed on at least two characters in an enlarged region formed by the resizing of the obtained image.
13 . The method of claim 8 , further comprising generating a notification informing a user that the size of the characters is less than a lower limit of the recognizable character size range, in response to detecting that the size of the characters is less than a lower limit of the recognizable character size range, and if a zoom ratio needed to compensate the image is greater than a maximum zoom ratio.
14 . The method of claim 13 , wherein the notification comprises a message indicating that the size of the characters is less than the lower limit of the recognizable character size range.
15 . An electronic device comprising:
a camera; a display; and a processor configured to control to: display an image, obtained by the camera, corresponding to an object including at least one character on the display,
detect an area of the object, wherein the at least one character included in the area is displayed based on a first size according to a specified distance between the camera and the object including the at least one character,
in response to the specified distance being a first distance, display again the at least one character based on a second size, wherein the second size is larger than the first size,
in response to the specified distance being a second distance, display again the at least one character based on a third size, wherein the third size is smaller than the first size, and
display, on the display, a process result for one of the at least one character being displayed based on the second size and the at least one character being displayed based on the third size.
16 . The electronic device of claim 15 , wherein the processor is further configured to control to receive a user input for storing at least one of the at least one character being displayed based on the second size and the at least one character being displayed based on the third size.
17 . The electronic device of claim 15 , wherein the at least one character includes a plurality of characters.
18 . The electronic device of claim 17 , wherein the processor is further configured to change each of the plurality of characters to one of the second size and the third size.Join the waitlist — get patent alerts
Track US2018367737A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.