Electronic device and method for text recognition
The electronic device addresses the challenge of inaccurate text recognition by adjusting the display position and angle based on text recognition rates, enhancing accuracy and reliability in text recognition tasks.
Patent Information
- Application Number
- PCT/KR2024/002277
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-17
- Filing Date
- 2024-02-21
- Publication Date
- 2024-08-29
AI Technical Summary
Conventional electronic devices face challenges in performing accurate text recognition due to distortion caused by varying shooting angles, leading to inaccurate results and potential malfunction of text recognition functions.
An electronic device equipped with a camera, display, and processor that adjusts the display position of an object based on guidance information to optimize text recognition rates, by determining the text recognition rate and changing the angle between the camera and subject, thereby improving text recognition accuracy.
The solution enhances text recognition accuracy by adjusting the display position and angle, ensuring reliable text recognition even under varying shooting conditions, thus improving the functionality of text recognition in electronic devices.
Smart Images

Figure KR2024002277_29082024_PF_FP_ABST
Abstract
Description
Electronic device and method for text recognition
[0001] This document relates to an electronic device and method for performing text recognition in an image of a subject captured by a camera.
[0002] Electronic devices are evolving into diverse forms for user convenience, offering a variety of services, applications, and functions. As the variety of services, applications, and functions offered by electronic devices continues to increase, larger displays are required to provide more screen real estate.
[0003] Recently, various types of electronic devices (e.g., foldable, flexible, rollable, or sliding electronic devices) with a shape-changing housing are being developed to accommodate larger displays. These devices can offer larger displays while maintaining portability. These devices can also offer flexible displays that fold or bend as the housing shape changes.
[0004] Electronic devices are provided with text recognition technology that can capture a subject with a camera, recognize text contained in the subject, and apply the recognized text to various services, applications, or functions.
[0005] The above information may be provided as background art to aid in understanding the present disclosure. No claim or determination is made as to whether any of the above is applicable as prior art related to the present disclosure.
[0006] Conventional electronic devices acquire an image of a subject captured by a camera and display it on a display. However, it is difficult to perform accurate test recognition due to distortion of the subject for text recognition depending on the shooting angle of the electronic device, and this may result in malfunction of the function due to inaccurate text recognition.
[0007] This document can provide an electronic device and method for performing text recognition in an image of a subject captured by a camera so as to improve the text recognition rate.
[0008] According to one embodiment of the present document, an electronic device may include a camera, a display, and at least one processor and a memory storing instructions.
[0009] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to control the display to display an image of a subject captured using the camera.
[0010] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to identify a text recognition rate of an object corresponding to the subject included in the image.
[0011] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to control the display to display first guidance information for adjusting a display position of the object based on a change in angle between the camera and the subject, based on the text recognition rate.
[0012] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to adjust the display position of the object based on the first guidance information and perform text recognition of the subject.
[0013] According to one embodiment, a method of operating an electronic device may include an operation of displaying an image of a subject captured using a camera of the electronic device on a display of the electronic device.
[0014] According to one embodiment, the method may include an operation of identifying a text recognition rate of an object corresponding to the subject included in the image.
[0015] According to one embodiment, the operating method may include an operation of displaying first guidance information on the display for adjusting the display position of the object based on a change in angle between the camera and the subject based on the text recognition rate.
[0016] According to one embodiment, the operating method may include an operation of adjusting the display position of the object based on the first guidance information and performing text recognition of the subject.
[0017] According to one embodiment, in a non-transitory storage medium storing a program, the program may include executable instructions that, when executed by at least one processor of an electronic device, cause the electronic device to perform an operation of displaying an image of a subject captured using a camera of the electronic device on a display of the electronic device, an operation of identifying a text recognition rate of an object corresponding to the subject included in the image, an operation of displaying first guidance information on the display for adjusting a display position of the object based on a change in an angle between the camera and the subject based on the text recognition rate, and an operation of adjusting the display position of the object and performing text recognition of the subject based on the first guidance information.
[0018] FIG. 1 is a block diagram of an electronic device within a network environment according to various embodiments.
[0019] FIGS. 2A, 2B, 2C, and 2D are diagrams illustrating the structure of an electronic device according to one embodiment.
[0020] FIG. 3 is a drawing showing an example configuration of a soft module of an electronic device according to one embodiment.
[0021] FIGS. 4A and 4B are drawings showing changes in the folding angle of an electronic device according to one embodiment.
[0022] FIGS. 5A and 5B are diagrams illustrating examples for text recognition in an electronic device according to one embodiment.
[0023] FIG. 6 is a diagram illustrating an example for text recognition in an electronic device according to one embodiment.
[0024] FIGS. 7A and 7B are diagrams illustrating examples for text recognition in an electronic device according to one embodiment.
[0025] FIGS. 8A, 8B, and 8C are diagrams illustrating examples for extracting meaningful information from text in an electronic device according to one embodiment.
[0026] FIG. 9 is a diagram illustrating an example for text recognition in an electronic device according to one embodiment.
[0027] FIG. 10 is a diagram illustrating an example for text recognition in an electronic device according to one embodiment.
[0028] FIG. 11 is a diagram illustrating an operation method in an electronic device according to one embodiment.
[0029] In connection with the description of the drawings, the same or similar reference numerals may be used for identical or similar components.
[0030] Hereinafter, electronic devices according to various embodiments will be described with reference to the attached drawings. The term "user" used in various embodiments may refer to a person using an electronic device or a device (e.g., an artificial intelligence electronic device) using an electronic device.
[0031] FIG. 1 is a block diagram of an electronic device (101) within a network environment (100) according to various embodiments. Referring to FIG. 1, in the network environment (100), the electronic device (101) may communicate with the electronic device (102) via a first network (198) (e.g., a short-range wireless communication network), or may communicate with at least one of the electronic device (104) or the server (108) via a second network (199) (e.g., a long-range wireless communication network). In one embodiment, the electronic device (101) may communicate with the electronic device (104) via the server (108). According to one embodiment, the electronic device (101) may include a processor (120), a memory (130), an input module (150), an audio output module (155), a display module (160), an audio module (170), a sensor module (176), an interface (177), a connection terminal (178), a haptic module (179), a camera module (180), a power management module (188), a battery (189), a communication module (190), a subscriber identification module (196), or an antenna module (197). In some embodiments, the electronic device (101) may omit at least one of these components (e.g., the connection terminal (178)), or may have one or more other components added. In some embodiments, some of these components (e.g., the sensor module (176), the camera module (180), or the antenna module (197)) may be integrated into one component (e.g., the display module (160)).
[0032] The processor (120) may, for example, execute software (e.g., a program (140)) to control at least one other component (e.g., a hardware or software component) of the electronic device (101) connected to the processor (120) and perform various data processing or operations. According to one embodiment, as at least a part of the data processing or operations, the processor (120) may store commands or data received from other components (e.g., a sensor module (176) or a communication module (190)) in a volatile memory (132), process the commands or data stored in the volatile memory (132), and store result data in a non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit or an application processor) or an auxiliary processor (123) (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor) that can operate independently or together with the main processor (121). For example, when the electronic device (101) includes the main processor (121) and the auxiliary processor (123), the auxiliary processor (123) may be configured to use less power than the main processor (121) or to be specialized for a given function. The auxiliary processor (123) may be implemented separately from the main processor (121) or as a part thereof.
[0033] The auxiliary processor (123) may control at least a portion of functions or states associated with at least one component (e.g., a display module (160), a sensor module (176), or a communication module (190)) of the electronic device (101), for example, on behalf of the main processor (121) while the main processor (121) is in an inactive (e.g., sleep) state, or together with the main processor (121) while the main processor (121) is in an active (e.g., application execution) state. In one embodiment, the auxiliary processor (123) (e.g., an image signal processor or a communication processor) may be implemented as a part of another functionally related component (e.g., a camera module (180) or a communication module (190)). In one embodiment, the auxiliary processor (123) (e.g., a neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. The artificial intelligence models may be generated through machine learning. This learning can be performed, for example, on the electronic device (101) itself where the artificial intelligence model is executed, or can be performed through a separate server (e.g., server (108)). The learning algorithm can include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model can include multiple artificial neural network layers.The artificial neural network may be one of a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of the above, but is not limited to the examples described above. In addition to, or alternatively to, a hardware structure, an artificial intelligence model may include a software structure.
[0034] The memory (130) can store various data used by at least one component (e.g., processor (120) or sensor module (176)) of the electronic device (101). The data can include, for example, software (e.g., program (140)) and input data or output data for commands related thereto. The memory (130) can include volatile memory (132) or non-volatile memory (134).
[0035] The program (140) may be stored as software in the memory (130) and may include, for example, an operating system (142), middleware (144), or an application (146).
[0036] The input module (150) can receive commands or data to be used in a component of the electronic device (101) (e.g., a processor (120)) from an external source (e.g., a user) of the electronic device (101). The input module (150) can include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).
[0037] The audio output module (155) can output audio signals to the outside of the electronic device (101). The audio output module (155) can include, for example, a speaker or a receiver. The speaker can be used for general purposes, such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. In one embodiment, the receiver can be implemented separately from the speaker or as part of the speaker.
[0038] The display module (160) can visually provide information to an external party (e.g., a user) of the electronic device (101). The display module (160) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling the device. According to one embodiment, the display module (160) may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of a force generated by the touch.
[0039] The audio module (170) can convert sound into an electrical signal, or vice versa, convert an electrical signal into sound. According to one embodiment, the audio module (170) can acquire sound through the input module (150), output sound through the sound output module (155), or an external electronic device (e.g., electronic device (102)) (e.g., speaker or headphone) directly or wirelessly connected to the electronic device (101).
[0040] The sensor module (176) can detect the operating status (e.g., power or temperature) of the electronic device (101) or the external environmental status (e.g., user status) and generate an electrical signal or data value corresponding to the detected status. According to one embodiment, the sensor module (176) can include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.
[0041] The interface (177) may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device (101) to an external electronic device (e.g., the electronic device (102)). In one embodiment, the interface (177) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
[0042] The connection terminal (178) may include a connector through which the electronic device (101) may be physically connected to an external electronic device (e.g., electronic device (102)). According to one embodiment, the connection terminal (178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
[0043] The haptic module (179) can convert electrical signals into mechanical stimuli (e.g., vibration or movement) or electrical stimuli that a user can perceive through tactile or kinesthetic sensations. According to one embodiment, the haptic module (179) can include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
[0044] The camera module (180) can capture still images and videos. According to one embodiment, the camera module (180) may include one or more lenses, image sensors, image signal processors, or flashes.
[0045] The power management module (188) can manage power supplied to the electronic device (101). According to one embodiment, the power management module (188) can be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
[0046] A battery (189) may power at least one component of the electronic device (101). In one embodiment, the battery (189) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
[0047] The communication module (190) may support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and the performance of communication through the established communication channel. The communication module (190) may operate independently from the processor (120) (e.g., application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module (190) may include a wireless communication module (192) (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module (194) (e.g., a local area network (LAN) communication module, or a power line communication module). Among these communication modules, the corresponding communication module can communicate with an external electronic device (104) via a first network (198) (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network (199) (e.g., a long-range communication network such as a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules can be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (192) can verify or authenticate the electronic device (101) within a communication network such as the first network (198) or the second network (199) by using subscriber information (e.g., an international mobile subscriber identity (IMSI)) stored in the subscriber identification module (196).
[0048] The wireless communication module (192) can support 5G networks and next-generation communication technologies following the 4G network, such as NR access technology (new radio access technology). The NR access technology can support high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and connection of multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency communications)). The wireless communication module (192) can support, for example, a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate. The wireless communication module (192) can support various technologies for securing performance in a high-frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), full dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module (192) can support various requirements specified in the electronic device (101), an external electronic device (e.g., the electronic device (104)), or a network system (e.g., the second network (199)). According to one embodiment, the wireless communication module (192) can support a peak data rate (e.g., 20 Gbps or more) for realizing 1eMBB, a loss coverage (e.g., 164 dB or less) for realizing mMTC, or a U-plane latency (e.g., 0.5 ms or less for downlink (DL) and uplink (UL), or 1 ms or less for round trip) for realizing URLLC.
[0049] The antenna module (197) can transmit or receive signals or power to or from an external device (e.g., an external electronic device). In one embodiment, the antenna module (197) may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). In one embodiment, the antenna module (197) may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network, such as the first network (198) or the second network (199), may be selected from the plurality of antennas, for example, by the communication module (190). A signal or power may be transmitted or received between the communication module (190) and an external electronic device via the at least one selected antenna. In some embodiments, in addition to the radiator, another component (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module (197).
[0050] According to various embodiments, the antenna module (197) may form a mmWave antenna module. In one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent a first side (e.g., a bottom side) of the printed circuit board and capable of supporting a designated high-frequency band (e.g., a mmWave band), and a plurality of antennas (e.g., an array antenna) disposed on or adjacent a second side (e.g., a top side or a side side) of the printed circuit board and capable of transmitting or receiving signals in the designated high-frequency band.
[0051] At least some of the above components can be interconnected and exchange signals (e.g., commands or data) with each other via a communication method between peripheral devices (e.g., a bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)).
[0052] According to one embodiment, commands or data may be transmitted or received between the electronic device (101) and an external electronic device (104) via a server (108) connected to a second network (199). Each of the external electronic devices (102 or 104) may be the same or a different type of device as the electronic device (101). According to one embodiment, all or part of the operations executed in the electronic device (101) may be executed in one or more of the external electronic devices (102, 104, or 108). For example, when the electronic device (101) is to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device (101) may, instead of or in addition to executing the function or service itself, request one or more external electronic devices to perform the function or at least a part of the service. One or more external electronic devices that receive the request may execute at least a portion of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may process the result as is or additionally and provide it as at least a portion of a response to the request. For this purpose, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used, for example. The electronic device (101) may provide an ultra-low latency service by using distributed computing or mobile edge computing, for example. In another embodiment, the external electronic device (104) may include an Internet of Things (IoT) device. The server (108) may be an intelligent server utilizing machine learning and / or a neural network. According to one embodiment, the external electronic device (104) or the server (108) may be included in the second network (199).The electronic device (101) can be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.
[0053] FIGS. 2A, 2B, 2C, and 2D are diagrams illustrating the structure of an electronic device according to one embodiment.
[0054] Referring to FIGS. 1, 2a, 2b, 2c, and 2d, an electronic device (101) according to one embodiment (e.g., the electronic device (101) of FIG. 1) may include a housing including a first housing structure (210) and a second housing structure (220), at least one processor (120), a memory (130), a camera module (180), and a display module (160). In addition, the electronic device (101) may further include other components. The electronic device (101) may be configured in a form in which the shape of the housing is deformable (e.g., foldable, flexible, rollable, or sliding). As an example, a part of the housing of the electronic device described in FIGS. 2a, 2b, and 2c is deformed into a foldable form, but in addition, the electronic device (101) may be configured in a form in which a part of the housing is deformed into a rolling form or a sliding form, or without deforming the housing.
[0055] According to one embodiment, the first housing structure (210) and the second housing structure (220) may be arranged on opposite sides (e.g., upper (+Y direction) and lower (-Y direction)) with respect to a folding axis (e.g., folding axis (A) of FIGS. 2A, 2B, and 2C or folding axis (B) of FIG. 2D) and may be rotatably coupled about the folding axis so as to face each other and be folded through a hinge structure (260). Not limited thereto, according to another embodiment, the housing of the electronic device (101) may further include other housing structures in addition to the first housing structure (210) and the second housing structure (220), and may be configured to have a structure that can be folded in various shapes through a plurality of folding axes. According to another embodiment, the electronic device (101) may be configured to have a shape in which a portion of the housing can be folded in a direction different from the folding axis.
[0056] According to one embodiment, the first housing structure (210) may have a camera module (e.g., a front camera) (214) included in the camera module (180) of FIG. 1), various sensors (215), and a speaker (e.g., a receiver) (216) disposed therein. In another embodiment, the camera (214), the various sensors (215), and the speaker (216) may be additionally disposed in or replaced with at least a portion of the second housing structure (220). According to another embodiment, at least some of the camera (214), the various sensors (215), and the speaker (216) may be disposed in at least a portion of the first housing (210), and the remaining portions may be disposed in at least a portion of the second housing structure (220). The camera (214) may be exposed through an opening provided at one corner of the front side (e.g., the first side (211)) of the first housing structure (210). The sensors (215) may include at least one of a proximity sensor, a light sensor, an iris recognition sensor, an ultrasonic sensor, or an indicator. For example, the sensors (215) may be exposed on the front of the electronic device (101) through an opening provided in one corner of the first housing structure (210), or may be positioned at the bottom of at least a portion of the display (161).
[0057] According to one embodiment, the electronic device (101) may further include a camera (217) (e.g., a rear camera) and a flash (208) exposed through an opening provided in one corner of the second side (212) (e.g., a rear side) of the first housing structure (210). According to one embodiment, the electronic device (101) may also include an ear jack hole, an external speaker module, a SIM card tray, an interface connector port, or at least one key button disposed through the first housing structure (210) and / or the second housing structure (220), although not shown. According to one embodiment, the housing (200) may include a display (163-1) (e.g., a rear display), a first rear cover (280), and a second rear cover (290) on the second side (212) (e.g., a rear side) of the first housing structure (210). The housing (200) of the electronic device (101) is not limited to the shapes and combinations illustrated in FIGS. 2A, 2B, 3A, and 3B, and may be implemented by other shapes or combinations and / or combinations of parts. For example, in another embodiment, the first housing structure (210) and the first rear cover (280) may be formed integrally, and the second housing structure (220) and the second rear cover (290) may be formed integrally.
[0058] According to one embodiment, the first housing structure (210) and the second housing structure (220) may have different angles or distances relative to each other depending on whether the electronic device (101) is in an unfolded state (or flat state) (e.g., open state) or a folded state (or closed state) (e.g., closed state). Here, the description of the state may be replaced with the description of the mode. The unfolded state may mean a state in which the angle between the first side (211) of the first housing structure (210) and the first side (221) of the second housing structure (220) is fully opened, for example, at 180 degrees, or is opened in an angular range exceeding a specified angle (e.g., 115 degrees) (e.g., more than 115 degrees to 180 degrees). The folded state may mean a state in which the angle between the first side (211) of the first housing structure (210) and the first side (221) of the second housing structure (220) is closed at an angle range (e.g., less than 115 degrees to 0 degrees) less than a specified angle (e.g., 115 degrees) or a state in which the angle is completely closed at 0 degrees. Without being limited thereto, the folded state may be defined as an angle formed by the first side (211) of the first housing structure (210) and the third side (223) of the second housing structure (220). This may be a pre-specified angle (e.g., 135 degrees) according to one embodiment of the present document.
[0059] According to one embodiment, the first housing structure (210) and the second housing structure (220) may be configured such that a flexible display (161) included in the display module (160) is disposed on the first side (e.g., front side) (211 and 221) of the housing. Without being limited thereto, the flexible display (161) may be disposed to extend on the second side (e.g., rear side) (212) and / or the third side (e.g., side side) (213) of the first housing structure (210) or the second side (222) (e.g., rear side) and / or the third side (223) (e.g., side side) of the second housing structure (220). According to one embodiment, the electronic device (101) may include the display (163) (e.g., rear display) on the second side (212) (e.g., rear side) of the first housing structure (210). For example, the display (161) may be visually exposed through the first side (211) of the first housing structure (210) of the electronic device (101) and / or the first side (221) of the first housing structure (210), and the rear display (163) may be visually exposed through the rear side (212) of the electronic device (101).
[0060] According to one embodiment, the processor (120) may perform an operation of displaying an application execution screen according to a state (e.g., an unfolded state and a folded state) of the electronic device (101) set according to an angle between the first housing structure (210) and the second housing structure (220). According to one embodiment, when the electronic device (101) is in a folded state, the processor (120) may display different application execution screens in each of a plurality of distinct areas.
[0061] According to one embodiment, the processor (120) may be a hardware component (function) or a software element (program) including at least one of various components provided in the electronic device (101) as a hardware module or a software module (e.g., an application program).
[0062] According to one embodiment, the processor (210) may include, for example, one or a combination of two or more of hardware, software, or firmware. The processor (210) may be configured to omit at least some of the above components, or to further include other components for performing image processing operations in addition to the above components.
[0063] According to one embodiment, the memory (130) may store various data used by at least one component (e.g., the processor (210)) of the electronic device (101) and commands for performing operations executed by the processor (210). For example, the memory (130) may store an application (function or program) whose execution screen is displayed in a corresponding area of the display (161) depending on the unfolded or folded state of the electronic device (101). The memory (130) may store various data generated during execution of the program (140), including a program used for a functional operation (e.g., the program (140) of FIG. 1). The memory (130) may largely include a program area and a data area (not shown). The program area (140) may store related program information for operating the electronic device (201), such as an operating system (OS) (e.g., the operating system (142) of FIG. 1) that boots the electronic device (201). The data area (not shown) may store transmitted and / or received data and generated data according to various embodiments. In addition, the memory (130) may be configured to include at least one storage medium among flash memory, a hard disk, a multimedia card micro type memory (e.g., secure digital (SD) or extreme digital (XD) memory), RAM, and ROM. According to one embodiment, the memory (130) may store an image corresponding to an execution screen of at least one application displayed in a corresponding area of the display (161) according to an unfolded or folded state.
[0064] According to one embodiment, the display module (160) may include a display (161) that is arranged on a first surface (211) of a first housing structure (210) and a first surface (221) of a second housing structure (220) in a flexible form. According to one embodiment, the display module (160) may further include a display (163) that is arranged on a second surface (212) (e.g., a rear surface). The display module (160) may display execution screens of one or more applications based on an unfolded state or a folded state. According to one embodiment, when the electronic device is placed in a folded state within a specified first angle range (e.g., 75 degrees to 115 degrees), the display module (160) may divide the display (161) into a plurality of regions (161-1, 161-2) and display execution screens of different applications in each of the plurality of regions (161-1, 161-2).
[0065] According to one embodiment, the electronic device (101) may include a motion sensor and a magnetic body (e.g., a magnet) included in a sensor module (e.g., the sensor module (176) of FIG. 1). The motion sensor and the magnetic body (e.g., the magnet) may be disposed in at least a portion of the first housing structure (210) and at least a portion of the second housing structure (220). The motion sensor may be configured as a combination of at least two of an acceleration sensor, an angular velocity sensor (e.g., a gyro sensor), or a geomagnetic sensor. For example, the electronic device (101) may detect a pose and a gesture of the first housing structure (210) and the second housing structure (220) through the motion sensor. For example, the postures of the first housing structure (210) and the second housing structure (220) may be detected based on an acceleration sensor of the motion sensor, and the movements of the first housing structure (210) and the second housing structure (220) may be detected based on an angular velocity sensor of the motion sensor. According to one embodiment, the magnetic body may be disposed on at least a portion of the first housing structure (210) adjacent to the hinge structure (260) and at least a portion of the second housing structure (220). According to one embodiment, the electronic device (101) may detect a user's gesture through the motion sensor. According to one embodiment, the sensor module may include a proximity sensor. The proximity sensor may be used to detect an angle between the first housing structure (210) and the second housing structure (220).
[0066] FIG. 3 is a drawing showing an example configuration of a soft module of an electronic device according to one embodiment.
[0067] Referring to FIGS. 1 and 3, an electronic device (101) according to an embodiment may implement a software module (301) (e.g., a program (140) of FIG. 1) for executing location search. A memory (130) of the electronic device (101) may store commands (e.g., instructions) to implement the software module (301) illustrated in FIG. 3. At least one processor (120) may execute the commands stored in the memory (130) to implement the software module (301) illustrated in FIG. 3, and control hardware (e.g., a display module (160), a sensor module (176), or a camera module (180) of FIG. 1) associated with a function of the software module (301).
[0068] According to one embodiment, a software module (301) of an electronic device (101) may be configured to include a kernel (or HAL) (310), a framework (e.g., middleware (144) of FIG. 1) (320), and an application (330) (e.g., application (146) of FIG. 1). At least a portion of the software module (301) may be preloaded on the electronic device (101) or may be downloadable from a server (e.g., server (108)).
[0069] According to one embodiment, the kernel (310) may include a system resource manager or device driver (311), but is not limited thereto and may be configured to further include other modules. The system resource manager may perform control, allocation, or retrieval of system resources. The device driver may include, for example, a display driver, a camera driver, a Bluetooth driver, a shared memory driver, a USB driver, a keypad driver, a WIFI driver, an audio driver, or an inter-process communication (IPC) driver.
[0070] According to one embodiment, the framework (320) may be configured to include a text recognition module (textclassifier) (321) and an entity information (e.g., meaningful information) extraction module (323), but is not limited thereto and may further include other modules. The framework (320) may provide functions commonly required by the application (330) or provide various functions to the application (330) through an application programming interface (API) (not shown) so that the application (330) can efficiently use limited system resources within the electronic device (101). The text recognition module (321) may recognize text included in an image of a subject captured by the camera module (180). The entity information (e.g., meaningful information) extraction module (323) may extract meaningful information from text recognized by a text recognition operation in the text recognition module (321). The framework (320) may include modules that combine the various functions of the aforementioned components. The framework (320) may provide specialized modules for each operating system type to provide differentiated functionality. The framework (320) may dynamically delete some existing components or add new components.
[0071] According to one embodiment, the application (330) may be configured to include an application (e.g., a module, a manager, or a program) related to location search. For example, the application (330) may include a camera-related application (e.g., a program) for taking pictures of a subject including text, and an application (e.g., a program) related to text recognition. The application (330) may include an application received from an external electronic device (e.g., a server (108) or an electronic device (102, 104)). According to one embodiment, the application (230) may include a preloaded application or a third-party application downloadable from a server. The components and names of the components of the software module (201) according to the illustrated embodiment may vary depending on the type of operating system. According to one embodiment, at least a portion of the software module (301) may be implemented as software, firmware, hardware, or a combination of at least two or more thereof. At least a portion of the software module (301) may be implemented (e.g., executed) by, for example, a processor (e.g., an AP). At least a portion of the software module (301) may include, for example, a module, a program, a routine, a set of instructions, or a process for performing at least one function.
[0072] FIGS. 4A and 4B are drawings showing changes in the folding angle of an electronic device according to one embodiment.
[0073] Referring to FIGS. 1, 2a, 2b, 2c, 2d, 4a, and 4b, a processor (120) of an electronic device (101) according to one embodiment may obtain state information of the electronic device (101) using at least one sensor (215) of a sensor module (176). According to one embodiment, when a part of a housing (200) of the electronic device (101) has a geometric deformation, the processor (120) may identify state information (e.g., folded, unfolded, sliding, rolling, or tilted state) according to the geometric deformation. When the electronic device (101) has a configuration in which the electronic device (101) is transformed into a folded form, the processor (120) can identify a folded state (e.g., a closed state) or an unfolded state (e.g., an open state) within a specified angle range (e.g., 0 to 180 degrees) between the first side (211) of the first housing structure (210) and the first side (221) of the second housing structure (220). Here, at least one sensor may include at least one of an acceleration sensor, a gyro sensor, a geomagnetic sensor, a grip sensor, a hinge angle sensor, or a Hall sensor, and may also include various sensors capable of detecting a user's movement or a gripping state or a state of the electronic device.
[0074] According to one embodiment, the processor (120) may obtain angle information according to an angle change depending on a folded state or an unfolded state. When the processor (120) of the electronic device (101) according to one embodiment identifies a folded state or an unfolded state within a specified range, the processor (120) may switch to a flex mode and enter a flex viewer user experience (UX) (e.g., when the angle is 20 degrees in the unfolded state, the flex viewer UX may be entered, or when the angle is 150 degrees in the folded state, the flex viewer UX may be entered). When the processor (120) of the electronic device (101) identifies a folded or unfolded state within a specified range, the processor (120) can release the flex mode and release the flex viewer user experience (UX) (e.g., release the flex viewer UX when the unfolded state is 160 degrees, or release the flex viewer UX when the folded state is 10 degrees). The processor (120) according to one embodiment can use the function of the flex mode when the display (161) is on. For example, the sensor manager of the software module (301) can register a sensor type (e.g., SEM_FOLDING_ANGLE type) in the memory (130) to receive a change event (e.g., onSensorChanged event). The processor (120) can record the value of the sensor type when there is an angle change. For example, angle information can be obtained by reading sensor data at specified intervals (e.g., 40 ms). Here, the angle change may vary depending on the folding or unfolding speed.For example, when the processor (120) is folded or unfolded at a fast speed, it can acquire only 180 degrees -> 100 degrees -> 50 degrees -> 0 degrees as angle information, and when it is folded or unfolded at a slow speed, it can acquire 180 degrees -> 170 degrees -> 155 degrees -> ... -> 30 degrees -> 5 degrees -> 0 degrees as angle information. Depending on the shape of the electronic device, the angle change may have a deviation within + / - 10 or + / - 5 degrees. For example, due to the deviation according to the shape of the electronic device, a specific type of electronic device may be recognized as 17x degrees rather than 180 degrees even when fully unfolded, and conversely, even when fully folded, it may be recognized as a value within 0 to 10 degrees. For example, even if the folding state does not change, the angle may shake by about 10 degrees in a shaking situation of the electronic device (e.g., when walking while holding it).
[0075] According to one embodiment, the processor (120) may control the display module (160) to display an execution screen of an application (e.g., a camera-related application). When the electronic device (101) is configured in a foldable form, the processor (120) may control the display module (160) to display the execution screen of the application on the first area (161-1) and the second area (161-2) of the display (161) divided based on the hinge structure (260) when a part of the housing (200) is folded. The first area (161-1) may be an area corresponding to the first side (211) of the first housing structure (210), and the second area (161-2) may be an area corresponding to the first side (221) of the second housing (220).
[0076] According to one embodiment, the processor (120) may display execution screens of different functions (e.g., different functions of the same application or functions of different applications) in each of the first area (161-1) and the second area (161-2).
[0077] In one embodiment, for convenience of explanation, the parts of the display (161) separated by the hinge structure (260) are described in terms of a first region and a second region, but this is not limited thereto, and the first region (161-1) and the second region (161-2) may be replaced with the terms of a first display and a second display, respectively, and may be replaced with various other terms.
[0078] Again, referring to FIG. 4B, according to one embodiment, the processor (120) may execute an application (e.g., a camera-related application), acquire an image (403) (e.g., a preview image) of a subject (401) captured by the camera (217), and control the display module (160) to display the acquired image (403) in a portion of the housing (200) (e.g., a first area (161-1) of the display (161). According to one embodiment, the first area (161-1) and the second area (161-2) may be display areas that operate differently from each other. According to one embodiment, the electronic device can control the display module (160) to display an image captured in the first area (e.g., the first area (161-1) of FIG. 2A) and a second area (e.g., the first area (161-1) of FIG. 2A) of the display, and to display buttons related to camera functions (e.g., a menu or graphic elements) in the second area.
[0079] According to one embodiment, the processor (120) may perform a text recognition operation on an object (405) corresponding to a subject (401) included in an image (403), and identify a text recognition rate according to the text recognition operation. According to one embodiment, when the text recognition rate is low, the processor (120) may perform an operation to adjust the display position of the object to improve text recognition. In order to adjust the display position of the object, the processor (120) may obtain angle information between the camera (217) and the subject (401) according to an unfolded or closed state, such as the example screens (411, 412, 433, 414) of FIG. 4B, and identify the angle or angle change between the camera (217) and the subject (401) and the display position of the object (405) in the image (403) displayed on the display (161). According to one embodiment, when the text recognition rate is low (e.g., below a threshold level), the processor (120) may perform an operation to adjust the display position of the object (405) to improve text recognition. According to one embodiment, the processor (120) may identify the angle or angle change between the camera (217) and the subject (401) and the display position of the object (405) in the image (403) displayed on the display (161) based on a user manually changing at least one of the folding angle of the electronic device (101) or the length of a portion of the housing to adjust the display position of the object. Without being limited thereto, according to one embodiment, the processor (120) may control an actuating element (e.g., a motor) to automatically adjust the folding angle (e.g., a hinge angle) of the electronic device (101) or the length of a portion of the housing (e.g., an extended or reduced length of a portion of a sliding or rolling housing) based on the text recognition rate to adjust the display position of the object.According to one embodiment, the processor (120) may control the stand to automatically adjust the inclination of the electronic device (101) based on the text recognition rate to adjust the display position of the object when the electronic device (101) is mounted on a movable stand.
[0080] According to one embodiment, when the text recognition rate is high (e.g., exceeds a threshold level), the processor (120) may analyze the image (403) directly and perform a text recognition operation to recognize text included in the object (405) without performing an operation to adjust the display position of the object (405).
[0081] The description of the above-described FIGS. 4A and 4B and the description of the drawings to be described below have been described as an example in which the electronic device (101) is configured in a foldable form with a portion of the housing (200), but is not limited thereto. The electronic device (101) may be configured in a form in which a portion of the housing (200) is configured in a rolling form, a sliding form, or another form, or may be configured in a form in which the housing is not deformed. Even if the electronic device is configured in another form, the text recognition operation and the operation for adjusting the display position of the object (405) to improve text recognition can be performed in the same manner.
[0082] FIGS. 5A and 5B are diagrams illustrating examples for text recognition in an electronic device according to one embodiment.
[0083] Referring to FIGS. 1, 2a, 2b, 2c, 2d, 4a, 4b, 5a, and 5b, a processor (120) of an electronic device (101) according to one embodiment may identify that the electronic device (101) is placed on the ground, and control a display module (160) to display an image (403) of a subject (401) captured by a camera (217). The processor (120) may control the display module (160) to display first guidance information for adjusting a display position of an object (405). According to one embodiment, the processor (120) may adjust a display position of an object (405) corresponding to the subject (401) based on the first guidance information, and perform a text recognition operation of the subject. According to one embodiment, the processor (120) may identify a display position of an object (405) included in an image (403) at an identified first angle (501) between a camera (217) and a subject (401) (e.g., 150 degrees in FIG. 5A or 90 degrees in FIG. 5B), and, if text included in the object (405) at the identified display position is not recognized or has a low recognition rate (e.g., below a threshold level), display first guidance information including a first graphic element (511) indicating the shape of the object (405) (e.g., a border line of the object (405)), text information (512) about a text recognition rate (e.g., a recognition rate of 40%), and a second graphic element (513) (e.g., a graphic object indicating an arrow) that guides the display position to move in a first direction (e.g., upward (+y direction)). The first guidance information may further include text or voice about angle information for improving the text recognition rate.
[0084] According to one embodiment, the processor (120) may control the display module (160) to adjust the position of the object (405) in the first direction (e.g., upward (+y direction)) based on the first guidance information as the angle between the camera (217) and the subject (401) changes to a second angle (e.g., 120 degrees in FIG. 5A or 5B), and to display the object (405) at the adjusted display position. According to one embodiment, when the processor (120) identifies that the angle between the camera (217) and the subject (401) has changed to a second angle (503) (e.g., 120 degrees in FIG. 5A or 5B), the processor (120) may perform a text recognition operation on the object (405) displayed at the adjusted display position. The processor (120) may identify whether the text recognition rate exceeds a threshold level, and if the text recognition rate exceeds the threshold level, may display text information (512) about the text recognition rate (e.g., a recognition rate of 90%) and a third graphic element (514) indicating that the text recognition rate is optimal (e.g., a border line of the object (405)). In one embodiment, the processor may provide text or voice information indicating that the text recognition rate is optimal.
[0085] According to one embodiment, the processor (120) may control the display module (160) to display the recognized text as text recognition result information by applying a visual effect (515) (e.g., a shading effect, a box display, or a text color change) to the text obtained by performing a text recognition operation. The processor (120) may extract meaningful (e.g., entity) information from the obtained text and apply the extracted meaningful information to a designated application (e.g., a message or messenger-related application, a call application, a product purchase-related application, or an application including an editing function such as copy or paste). Here, the text recognition result information may include the text obtained by performing the text recognition operation and / or meaningful (e.g., entity) information extracted from the recognized text.
[0086] FIG. 6 is a diagram illustrating an example for text recognition in an electronic device according to one embodiment.
[0087] Referring to FIGS. 1, 2A to 2D, 4A, 4B, and 6, according to one embodiment, when the processor (120) of the electronic device (101) identifies that the user is holding the electronic device (101) with his or her hand (e.g., one-handed grip or two-handed grip) using at least one sensor, the processor (120) can identify the angle between the camera (217) and the subject (401) in the current state. The processor (120) can control the display module (160) to display an image (403) of the captured subject (401) in one area of the display (161), and perform text recognition on an object (405) corresponding to the subject (401) included in the image (403). When the text recognition rate for the object (405) is lower than a threshold level, the processor (120) may display guidance information for changing the angle between the camera (217) and the subject (401) by tilting the electronic device (101) as first guidance information. Here, the guidance information may include a graphic element (611) (e.g., an arrow) indicating movement of the display position in the first direction, text information (612) (e.g., “Tilt upward for accurate recognition”), and / or a graphic element (613) indicating the shape of the object (405) (e.g., a border line of the object (405)). When the angle between the camera (217) and the subject (401) changes (e.g., changes from 90 degrees to 130 degrees) as the user tilts the electronic device (101) based on the guidance information, the processor (120) may perform a text recognition operation for the object (405). Here, the electronic device (101) illustrated in FIG. 6 is illustrated as an example in which a portion of the housing is configured in a foldable form in a state of being folded, but the same operation can be performed even when the housing is configured in a form without deformation.
[0088] According to one embodiment, the processor (120) can adjust the display position of the object (405) by changing the folding angle along with changing the tilt of the electronic device (101) by the movement of the user's hand.
[0089] FIGS. 7A and 7B are diagrams showing examples for text recognition in an electronic device according to one embodiment, and FIGS. 8A, 8B, and 8C are diagrams showing examples for extracting meaningful information from text in an electronic device according to one embodiment.
[0090] Referring to FIGS. 1, 2a to 2d, 4a, 4b, 7a, 7b, 8a, 8b and 8c, according to one embodiment, when a text recognition rate for an object (405) included in an image (403) displayed on a first area (161-1) of a display (161) exceeds a threshold level, the processor (120) of the electronic device (101) may display a button (701) (e.g., a “T” button) indicating that text recognition rate identification is complete or that the text recognition rate is in an optimal state (e.g., exceeding a threshold level) on a second area (161-2) of the display (161). When the processor (120) receives an input of the button (701), the processor (120) reads the text of the object (405) (e.g., reading using an optical character reader (OCR) module (or algorithm)), applies a visual effect (703) (e.g., shading, color change, or box display) to display the read text on the display (161), and extracts meaningful information (e.g., entity information) from the read text and applies it to a designated application. The processor (120) may provide information recommending a function that can be linked with the meaningful information. Here, the meaningful information may include, for example, a bank account number, a URL link, a phone number, an address, and a POI (point of interest), an email address, or schedule information including a date, place, and time, as in the examples (821, 822, 823, and 824) of FIG. 8c.
[0091] According to one embodiment, the processor (120) may provide a function to extract text contained in a photo or image using an OCR engine, for example, by using a module that recognizes and selects text (e.g., VisionTextDrawHelper that draws selection / handle among VisionText modules), and to recognize (or read) the extracted text and input it directly, or to make a phone call, send an email, copy, or share it with another application through an action menu of a copy & paste menu pop-up.
[0092] According to one embodiment, the processor (120) may perform a text recognition operation on an object (405) included in an image (403) of an input image (801) (e.g., the subject (401) of FIG. 4B) using a text recognition module (321) of a software module (301) as illustrated in FIG. 8A, to extract meaningful information from the recognized text. The processor (120) may detect a text area in the object (405) by the text recognition module (321), and distinguish recognized text in the detected text area into blocks, lines, or words. The processor (120) may distinguish whether the text included in the object (405) is handwritten or printed by the text recognition module (321). If the text is printed, the processor (120) may determine whether it is a recognizable language, and if it is a recognizable language, may display the recognized text and text area information on the display (161). The processor (120) can determine whether the text is handwritten and whether it is a recognizable language, and if it is a recognizable language, display the recognized text and text area information on the display (161). The processor (120) can perform an operation (e.g., regular entity extraction) to extract meaningful information (e.g., entity) from the recognized text, and can use a meaningful information extraction module (e.g., classification module) to determine what type of meaningful information (entity) exists in the text and execute a parser to extract the appropriate meaningful information. The processor (120) can extract meaningful information existing in the text by using a deep neural network (DNN) on the input text in order to precisely identify the location of meaningful information in the recognized text. Here, the extraction of meaningful information through the deep neural network (DNN) can classify the type of meaningful information by the modules illustrated in FIG. 8b.Among the operations illustrated in FIG. 8B, the embedding module (812) can convert the input text (811) into an n-gram tensor to express it as a convolution. The convolution module (813) can convert the text tensor into a convolution form, which is a unit that can be placed in a neural network. The max pooling module (814) can extract the maximum value from each convolution to create a new layer. The concatenation module (815) can output the convolution layer as a dimensionally transformed vector for application of softmax. The softmax module (816) can estimate the probability for each class from the input vector for the final classification of meaningful information.
[0093] FIG. 9 is a diagram illustrating an example for text recognition in an electronic device according to one embodiment.
[0094] Referring to FIG. 9, a processor (120) of an electronic device (101) according to one embodiment can display an image (403) of a subject (401) captured by a camera (217) on a first area (161-1) of a display (161) and identify a display position and shape of an object (405) included in the image (403). The processor (120) can adjust the field of view (FOV) of the camera (217) for text recognition based on the display position and shape of the object (405). When the processor (120) adjusts the field of view (FOV), if a button (701) (e.g., a T button) is displayed on the screen, it can mean that text recognition (e.g., text OCR recognition) is completed. When the processor (120) identifies that some areas of the object (405) are not displayed (e.g., some areas are cut off) within the screen within the first area (161-1) of the display (161) based on the display position and shape of the object (405), it can identify that the subject (401) is not accurately entered and is low-accuracy text result information (911). When the processor (120) identifies that some areas are not displayed (e.g., some areas are cut off), it can select a button (e.g., a menu, an object, or a graphic element) to adjust the field of view (FOV) displayed in the first area (161-1) of the display (161) to widen the angle of view and adjust the field of view (FOV) from a wide angle (e.g., 1X) to an ultra-wide angle (e.g., 0.5X) so that the subject is fully displayed on the screen. According to one embodiment, the processor (120) can adjust the display position of the object (405) by separately performing only an operation of adjusting the field of view (FOV) when the text recognition rate is identified as being below a threshold level. According to one embodiment, when the display position is not accurately recognized based on a change in angle between the camera (217) and the subject (401), the processor (120) can further perform an operation of adjusting the display position and adjusting the field of view (FOV) based on a change in angle between the camera (217) and the subject (401), thereby improving text recognition, thereby accurately recognizing the text.
[0095] According to one embodiment, the processor may control the display module (160) to display second guidance information for adjusting the display position of the object (405) by changing the field of view (FOV) of the camera (217). Here, the second guidance information may include wide-angle information (901) of the current field of view (FOV) (e.g., applying a visual effect to a selected wide-angle button) and wide-angle information (903) of the changed field of view (e.g., applying a visual effect to a selected wide-angle button), information (e.g., a symbol, text, or voice) notifying that a change in the field of view (FOV) of the camera is required, or information (e.g., a symbol, text, or voice) notifying that the field of view (FOV) of the camera is automatically changed.
[0096] According to one embodiment, when the text recognition rate exceeds a threshold level as the display position of the object (405) is adjusted, the processor may perform text recognition of the object (405) and display text recognition result information (913) on the display (161).
[0097] FIG. 10 is a diagram illustrating an example for text recognition in an electronic device according to one embodiment.
[0098] Referring to FIG. 10, an electronic device (101) according to one embodiment may be configured in a sliding form. A processor (120) of the electronic device (101) according to one embodiment may identify a change in the length of a portion (1011) (e.g., form factor) of a housing (200) by sliding the portion (1011). According to one embodiment, when the length of a portion (e.g., form factor) of the housing (200) changes, the processor (120) may correct the position (e.g., upper or lower) of the angle of view of the camera (217) to improve the text recognition rate.
[0099] According to one embodiment, the processor (120) can improve the text recognition rate by correcting the position of the angle of view of the camera (217) along with the change in angle between the camera (217) and the subject (401) and / or the adjustment of the camera field of view.
[0100] According to one embodiment, the processor (120) of the electronic device (101) may perform operations for adjusting the display position of an object to improve text recognition rate using a plurality of cameras (e.g., cameras 214 and 217 of FIGS. 2A to 2D).
[0101] According to one embodiment, the electronic device (101) may further include a rotating camera, and may perform operations for adjusting the display position of an object based on adjusting the angle of a motor (e.g., an actuator) of the rotating camera. Here, the angle of the motor may be set to 0 to 350 degrees.
[0102] As such, in one embodiment, the main components of the electronic device (101) are described through the electronic device (101) of FIGS. 1 and 2A to 2D. However, in various embodiments, not all of the components illustrated through FIGS. 1 and 2A to 2D are essential components, and the electronic device (101) may be implemented with more components than the illustrated components, or may be implemented with fewer components. In addition, the positions of the main components of the electronic device (101) described above through FIGS. 1 and 2A to 2D may be changed according to various embodiments.
[0103] According to one embodiment, an electronic device (e.g., electronic device (101) of FIGS. 1 and 2A to 2D) may include a camera (e.g., camera module (180) of FIG. 1, cameras (214, 217) of FIGS. 2A to 2D), a display (e.g., display module (160) of FIG. 1, displays (161, 163) of FIGS. 2A to 2D), at least one processor (e.g., processor (120) of FIG. 1), and a memory (e.g., memory (130) of FIG. 1) including instructions).
[0104] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to control the display to display an image of a subject captured using the camera.
[0105] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to identify a text recognition rate of an object corresponding to the subject included in the image.
[0106] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to control the display to display first guidance information for adjusting a display position of the object based on a change in angle between the camera and the subject, based on the text recognition rate.
[0107] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to adjust the display position of the object based on the first guidance information and perform text recognition of the subject.
[0108] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to identify an angular change between the camera and the subject based on a change in a folding angle identified in response to folding of a portion of a housing of the electronic device, acquire text recognition result information of the subject by adjusting a display position of the object, control the display to display the text recognition result information, and perform a function of a designated application using the text recognition result information.
[0109] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to control the display to display second guidance information for adjusting a display position of the object by changing a field of view (FOV) of the camera.
[0110] According to one embodiment, at least one more sensor may be included.
[0111] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to identify, using the at least one sensor, a folding angle of a folding area of a housing of the electronic device, an extension length of a portion of the electronic device, or an inclination of the electronic device relative to a ground on which the subject is placed, and to identify an angle between the camera and the subject based on the folding angle, the extension length, or the inclination.
[0112] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to perform text recognition of the subject without adjusting the display position of the object based on the text recognition rate exceeding a threshold level.
[0113] According to one embodiment, the first guidance information may be displayed when the text recognition rate is below a threshold level.
[0114] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to control the display to display a button indicating text recognition based on the text recognition rate exceeding a threshold level.
[0115] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to identify that adjustment of a display position of the object is necessary when a portion of an object corresponding to the subject is outside a display area of the display or when a recognition rate of text included in an area of part or all of the object corresponding to the subject is below a threshold level.
[0116] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to perform text recognition using an optical character reading module and to control the display to display meaningful information extracted from the recognized text as text recognition result information of the subject.
[0117] According to one embodiment, the first guidance information includes a graphic element indicating a direction to adjust the display position of the object, a graphic element indicating the shape of the object, or text inducing a change in the angle between the camera and the subject.
[0118] According to one embodiment, the instructions, when executed by the at least one processor, may be configured to cause the electronic device to correct a position of an angle of view of the camera in response to a change in the length of a portion of a housing of the electronic device, control the display to display the object at an adjusted display position in response to the correction of the position of the angle of view, and perform text recognition of the object displayed at the adjusted display position.
[0119] FIG. 11 is a drawing showing an operating method in an electronic device according to one embodiment.
[0120] Referring to FIG. 11, an electronic device according to an embodiment (e.g., the electronic device (101) of FIGS. 1 and 2A to 2D) may, in operation 1101, execute a camera-related application, acquire an image of a subject by using a camera (e.g., the camera module (180) of FIG. 1, the camera (217) of FIG. 2B, or the camera (214) of FIGS. 2A, 2C, and 2D), and display the acquired image on a display (e.g., the display module (160) of FIG. 1, the display (161) of FIGS. 2A, 2C, and 2D, or the display (163) of FIG. 2B). According to one embodiment, the electronic device may divide the display into a first area (e.g., the first area (161-1) of FIG. 2A) and a second area (e.g., the first area (161-1) of FIG. 2A), and display an image captured in the first area (e.g., a preview image), and display buttons related to camera functions (e.g., a menu or graphic elements) in the second area.
[0121] In operation 1103, an electronic device according to one embodiment may identify a text recognition rate of an object corresponding to a subject included in an image. According to one embodiment, the electronic device may perform a text recognition operation on an object corresponding to a subject included in an image, and identify a text recognition rate according to the text recognition operation.
[0122] In operation 1105, an electronic device according to an embodiment may display first guidance information on a display for adjusting a display position of an object based on a text recognition rate and an angle change between a camera and a subject. According to an embodiment, in order to adjust the display position of the object, the electronic device may obtain angle information between the camera and the subject, and identify the angle or angle change between the camera and the subject and the display position of the object in an image displayed on the display. According to an embodiment, when a text included in the object is not recognized or the recognition rate is low (e.g., below a threshold level) at the identified display position, the electronic device may display first guidance information including a first graphic element indicating the shape of the object (e.g., a border line of the object) and a second graphic element for inducing movement of the display position in a first direction (e.g., upward (+y direction)). According to an embodiment, the electronic device may provide text or voice for angle information for improving a text recognition rate included in the first guidance information.
[0123] In operation 1107, an electronic device according to an embodiment may adjust the display position of an object based on the first guidance information and perform a text recognition operation on the object. According to an embodiment, when the text recognition rate is low (e.g., below a threshold level), the electronic device may perform an operation to adjust the display position of the object to improve text recognition. According to an embodiment, when the text recognition rate is high (e.g., above a threshold level), the electronic device may perform a text recognition operation to recognize text included in the object by directly analyzing the image without performing the operation to adjust the display position of the object.
[0124] In operation 1109, an electronic device according to one embodiment may perform a text recognition operation and display text recognition result information obtained by performing the text recognition operation on a display.
[0125] According to one embodiment, the electronic device may perform a text recognition operation to obtain text and apply visual effects (e.g., a shading effect, a box display, or a text color change) to the obtained text and display the recognized text as text recognition result information. According to one embodiment, the electronic device may extract meaningful (e.g., entity) information from the recognized text and apply the extracted meaningful information to a designated application (e.g., a message or messenger-related application, a call application, a product purchase-related application, or an application including an editing function such as copy or paste). Here, the text recognition result information may include the text obtained by performing the text recognition operation and / or meaningful (e.g., entity) information extracted from the recognized text.
[0126] According to one embodiment, the electronic device may adjust the field of view (FOV) of the camera for text recognition based on the display position and shape of the object. According to one embodiment, if the electronic device identifies that some areas of the object are not displayed (e.g., some areas are truncated) within the screen within the first region of the display based on the display position and shape of the object, the electronic device may identify that the text result information is low-accuracy text information in which the subject is not accurately entered. If the electronic device identifies that some areas are not displayed (e.g., some areas are truncated), the electronic device may select a button (e.g., a menu, an object, or a graphic element) for adjusting the field of view (FOV) displayed in the first region of the display to widen the angle and adjust the field of view (FOV) from a wide angle (e.g., 1X) to an ultra-wide angle (e.g., 0.5X) so that the subject is fully displayed on the screen. According to one embodiment, when the text recognition rate is identified as being below a threshold level, the electronic device may separately perform an operation of adjusting the field of view (FOV) to adjust the display position of the object. According to one embodiment, when the display position is not accurately recognized based on the change in angle between the camera and the subject, the electronic device performs an operation of adjusting the display position based on the change in angle between the camera and the subject, as in operation 1107 of FIG. 11, and further performs an operation of adjusting the field of view (FOV) to improve text recognition, thereby accurately recognizing the text. According to one embodiment, the electronic device may perform an operation of displaying second guidance information on the display for adjusting the display position of the object by the change in the field of view (FOV) of the camera.Here, the second guidance information may include wide-angle information of the current field of view (FOV) (e.g., applying a visual effect to the selected wide-angle button) and wide-angle information of the changed field of view (e.g., applying a visual effect to the selected wide-angle button), information indicating that the field of view (FOV) of the camera needs to be changed (e.g., a symbol, text, or voice), or information indicating that the field of view (FOV) of the camera is automatically changed (e.g., a symbol, text, or voice).
[0127] In one embodiment, when the electronic device is configured in a sliding form, the electronic device can identify a change in the length of a portion of the housing (e.g., form factor) by sliding the portion of the housing. When the length of the portion of the housing (200) changes, the electronic device can improve the text recognition rate by correcting the position of the angle of view of the camera (e.g., upper or lower). In one embodiment, the electronic device can improve the text recognition rate by correcting the position of the angle of view of the camera together with a change in the angle between the camera and the subject and / or an adjustment of the camera field of view.
[0128] According to one embodiment, the electronic device may perform operations for adjusting the display position of an object to improve text recognition rate using a plurality of cameras (e.g., cameras 214 and 217 of FIGS. 2A to 2D).
[0129] In one embodiment, the electronic device can perform operations for adjusting the display position of an object based on adjusting the angle of a motor (e.g., an actuator) of a rotating camera. Here, the angle of the motor can be set to 0 to 350 degrees.
[0130] The operating method of FIG. 11 described above can be performed in the same manner even when a portion of the housing of the electronic device (e.g., form factor) is configured in a form that changes (e.g., foldable, flexible, rollable, or sliding form) or is configured in a form in which the housing does not change.
[0131] According to one embodiment, an operating method in an electronic device (e.g., the electronic device (101) of FIGS. 1 and 2A to 2D) may include an operation of displaying an image of a subject captured using a camera of the electronic device (e.g., the camera module (180) of FIG. 1 or the camera (214 or 217) of FIGS. 2A to 2D) on a display of the electronic device (e.g., the display module (160) of FIG. 1 or the display (161, 163) of FIGS. 2A to 2D), an operation of identifying a text recognition rate of an object corresponding to the subject included in the image, an operation of displaying first guidance information on the display for adjusting a display position of the object based on a change in an angle between the camera and the subject based on the text recognition rate, and an operation of adjusting the display position of the object and performing text recognition of the subject based on the first guidance information.
[0132] According to one embodiment, the method may further include an operation of identifying a change in angle between the camera and the subject based on a change in a folding angle identified in response to folding of a part of a housing of the electronic device, an operation of obtaining text recognition result information of the subject by adjusting a display position of the object, an operation of displaying the text recognition result information on the display, and an operation of performing a function of a specified application using the text recognition result information.
[0133] According to one embodiment, the method may further include an operation of displaying second guidance information on the display for adjusting the display position of the object by changing the field of view (FOV) of the camera.
[0134] According to one embodiment, the method may further include an operation of identifying a folding angle of a folding area of a housing of the electronic device, an extension length of a portion of the electronic device, or an inclination of the electronic device relative to a ground on which the subject is placed, using at least one sensor of the electronic device, and an operation of identifying an angle between the camera and the subject based on the folding angle, the extension length, or the inclination.
[0135] According to one embodiment, the method further includes an operation of performing text recognition of the subject without adjusting the display position of the object based on the text recognition rate exceeding a threshold level, wherein the first guidance information can be displayed when the text recognition rate is below the threshold level.
[0136] According to one embodiment, the method may further include an action of displaying a button indicating text recognition on the display based on the text recognition rate exceeding a threshold level.
[0137] According to one embodiment, the operation of displaying the first guidance information on the display may include an operation of identifying that adjustment of the display position of the object is necessary when a part of an area of an object corresponding to the subject is outside the display area of the display or when a recognition rate of text included in an area of part or all of the object corresponding to the subject is below a threshold level.
[0138] According to one embodiment, the operation of performing text recognition of the subject may recognize text included in the object using an optical character reading module.
[0139] According to one embodiment, the first guidance information may include a graphic element indicating a direction to adjust the display position of the object, a graphic element indicating the shape of the object, or text inducing a change in the angle between the camera and the subject.
[0140] According to one embodiment, in a non-transitory storage medium storing a program, when the program is executed by at least one processor (e.g., the processor (120) of FIG. 1) of an electronic device (e.g., the electronic device (101) of FIGS. 1 and 2A to 2D), the electronic device displays an image of a subject captured by using a camera (e.g., the camera module (180) of FIG. 1 or the camera (214 or 217) of FIGS. 2A to 2D) of the electronic device on a display (e.g., the display module (160) of FIG. 1 or the display (161, 163) of FIGS. 2A to 2D), an operation of identifying a text recognition rate of an object corresponding to the subject included in the image, an operation of displaying first guidance information for adjusting a display position of the object based on a change in an angle between the camera and the subject based on the text recognition rate, on the display, and an operation of adjusting the display position of the object based on the first guidance information, It may include executable commands to perform actions that perform text recognition of the subject.
[0141] This document improves text recognition rate and enables accurate text recognition by adjusting the display position of objects in images captured by a camera based on changes in the angle between the camera and the subject and the display position of the objects in the image. Furthermore, various effects, directly or indirectly identified through this document, can be provided.
[0142] The embodiments disclosed in this document are presented for the purpose of explaining and understanding the disclosed technical content, and do not limit the scope of the technology described in this document. Therefore, the scope of this document should be interpreted to include all modifications or various other embodiments based on the technical concepts of this document.
[0143] Electronic devices according to the various embodiments disclosed in this document may take various forms. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to the embodiments of this document are not limited to the aforementioned devices.
[0144] The various embodiments of this document and the terminology used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the items, unless the context clearly indicates otherwise. In this document, each of the phrases "A or B", "at least one of A and B", "at least one of A or B", "A, B, or C", "at least one of A, B, and C", and "at least one of A, B, or C" can include any one of the items listed together in the corresponding phrase among those phrases, or all possible combinations thereof. Terms such as "first," "second," or "first" or "second" may be used merely to distinguish one component from another, and do not limit the components in any other respect (e.g., importance or order). When a component (e.g., a first component) is referred to as "coupled" or "connected" to another (e.g., a second component), with or without the terms "functionally" or "communicatively," it means that the component can be connected to the other component directly (e.g., wired), wirelessly, or through a third component.
[0145] The term "module" used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A module may be an integral component, or a minimum unit or part of such a component that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).
[0146] Various embodiments of the present document may be implemented as software (e.g., a program (140)) including one or more instructions stored in a storage medium (e.g., an internal memory (136) or an external memory (138)) readable by a machine (e.g., an electronic device (101)). For example, a processor (e.g., a processor (120)) of the machine (e.g., an electronic device (101)) may call at least one instruction among the one or more instructions stored from the storage medium and execute it. This enables the machine to operate to perform at least one function according to the at least one called instruction. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' simply means that the storage medium is a tangible device and does not contain signals (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently or temporarily on the storage medium.
[0147] According to one embodiment, the method according to various embodiments disclosed in this document may be provided as a computer program product. The computer program product may be traded between sellers and buyers as a product. The computer program product may be distributed in the form of a device-readable storage medium (e.g., compact disc read-only memory (CD-ROM)) or may be provided through an application store (e.g., Play Store). TM ) or directly between two user devices (e.g., smart phones), online distribution (e.g., downloading or uploading). In the case of online distribution, at least a portion of the computer program product may be at least temporarily stored or temporarily created in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or an intermediary server.
[0148] According to various embodiments, each component (e.g., a module or a program) of the above-described components may include one or more entities, and some of the entities may be separated and placed in other components. According to various embodiments, one or more components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (e.g., a module or a program) may be integrated into a single component. In such a case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. According to various embodiments, the operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.
Claims
1. In an electronic device (101), Camera (180, 214, 217); display(160, 161, 163); at least one processor (120); and Memory (130) for storing instructions; The above instructions, when executed by the at least one processor, cause the electronic device to: Control the display to display an image (403) of a subject (401) captured using the camera, Identify the text recognition rate of the object (405) corresponding to the subject included in the above image, Based on the text recognition rate, the display is controlled to display first guidance information for adjusting the display position of the object based on a change in angle between the camera and the subject. An electronic device that adjusts the display position of the object based on the first guidance information and performs text recognition of the subject.
2. In the first paragraph, the instructions, when executed by the at least one processor, cause the electronic device to: Identifying a change in angle between the camera and the subject based on a change in the identified folding angle corresponding to folding of a portion of the housing of the electronic device; By adjusting the display position of the above object, text recognition result information of the above subject is obtained, Control the display to display the text recognition result information, An electronic device that performs the function of a designated application by using the above text recognition result information.
3. In claim 1 or 2, the instructions, when executed by the at least one processor, cause the electronic device to: An electronic device that controls the display to display second guidance information for adjusting the display position of the object by changing the field of view (FOV) of the camera.
4. In any one of paragraphs 1 to 3, further comprising at least one sensor (215), The above instructions, when executed by the at least one processor, cause the electronic device to: Using at least one sensor, identify a folding angle of a folding area of a housing of the electronic device, an extended length of a portion of the electronic device, or an inclination of the electronic device relative to the ground on which the subject is placed; An electronic device that identifies the angle between the camera and the subject based on the folding angle, the extension length or the inclination.
5. In any one of paragraphs 1 to 4, the instructions, when executed by the at least one processor, cause the electronic device to: Based on the above text recognition rate exceeding a threshold level, text recognition of the subject is performed without adjusting the display position of the object, Control the display to display a button indicating the text recognition based on the text recognition rate exceeding a threshold level; The above first guidance information is an electronic device that is displayed when the text recognition rate is below a threshold level.
6. In any one of paragraphs 1 to 5, the instructions, when executed by the at least one processor, cause the electronic device to: An electronic device that identifies the need for adjustment of the display position of the object when a part of the object corresponding to the subject is out of the display area of the display or when the recognition rate of text included in a part or all of the area of the object corresponding to the subject is below a threshold level.
7. In any one of paragraphs 1 to 6, the instructions, when executed by the at least one processor, cause the electronic device to: The above text recognition is performed using an optical character recognition module, Control the display to display meaningful information extracted from the recognized text as text recognition result information of the subject, An electronic device, wherein the first guidance information includes a graphic element indicating a direction for adjusting the display position of the object, a graphic element indicating the shape of the object, or text inducing a change in the angle between the camera and the subject.
8. In any one of paragraphs 1 to 7, the instructions, when executed by the at least one processor, cause the electronic device to: Correcting the position of the angle of view of the camera in response to a change in the length of a portion of the housing of the electronic device; Controlling the display to display the object at an adjusted display position corresponding to the position correction of the above angle of view, An electronic device that performs text recognition of the object displayed at the adjusted display location.
9. In the operating method in the electronic device (101), An operation of displaying an image (403) of a subject (401) captured using a camera (180, 214, 217) of the electronic device on a display (160, 161, 163) of the electronic device; An operation for identifying a text recognition rate of an object (405) corresponding to the subject included in the above image; An operation of displaying first guidance information on the display for adjusting the display position of the object based on a change in angle between the camera and the subject based on the text recognition rate; and A method comprising: adjusting the display position of the object based on the first guidance information; and performing text recognition of the subject.
10. In paragraph 9, the method, An operation of identifying a change in angle between the camera and the subject based on a change in the identified folding angle corresponding to folding of a portion of the housing of the electronic device; An operation of obtaining text recognition result information of the subject by adjusting the display position of the object; An operation of displaying the text recognition result information on the display; and A method further comprising an operation of performing a function of a specified application using the text recognition result information.
11. In the 9th or 10th clause, the method, A method further comprising an action of displaying second guidance information on the display for adjusting the display position of the object by changing the field of view (FOV) of the camera.
12. In any one of clauses 9 to 11, the method, An operation of identifying a folding angle of a folding area of a housing of the electronic device, an extended length of a portion of the electronic device, or an inclination of the electronic device relative to the ground on which the subject is placed, by using at least one sensor (215) of the electronic device; and A method further comprising an action of identifying an angle between the camera and the subject based on the folding angle, the extension length or the inclination.
13. In any one of clauses 9 to 12, the method, An operation of performing text recognition of the subject without adjusting the display position of the object based on the text recognition rate exceeding a threshold level; and Further comprising an action of displaying a button indicating the text recognition on the display based on the text recognition rate exceeding a threshold level; The above first guidance information is displayed when the text recognition rate is below a threshold level. A method according to claim 1, wherein the first guidance information includes a graphic element indicating a direction for adjusting the display position of the object, a graphic element indicating the shape of the object, or text inducing a change in the angle between the camera and the subject.
14. In any one of clauses 9 to 13, the operation of displaying the first guidance information on the display is as follows: An operation for identifying that adjustment of the display position of the object is necessary when a part of an object corresponding to the subject is out of the display area of the display or when the recognition rate of text included in an area of part or all of the object corresponding to the subject is below a threshold level, A method wherein the operation of performing text recognition of the subject includes an operation of recognizing text included in the object using an optical character reading module.
15. In a non-transitory storage medium storing a program, the program, when executed by at least one processor (120) of an electronic device (101), the electronic device, An operation of displaying an image (403) of a subject (401) captured using a camera (180, 214, 217) of the electronic device on a display (160, 161, 163) of the electronic device; An operation for identifying a text recognition rate of an object (405) corresponding to the subject included in the above image; An operation of displaying first guidance information on the display for adjusting the display position of the object based on a change in angle between the camera and the subject based on the text recognition rate; and A non-transitory storage medium including executable commands for adjusting the display position of the object based on the first guidance information and performing text recognition of the subject.
Citation Information
Patent Citations
Device and method of improving recognition rate of LDWS(Lane Departure Warning System) using AVM side camera
KR1020130066242A
Method and device for recognizing biometric information
KR1020170028941A
Multi-Purpose Auxiliary Crane For Indirect Hot-Line Work
KR1020190014557A
Three dimensional scanning apparatus comprising body composition analysis and temperature sensing function
KR1020230116496A
KR20190034812A
