WO2024063346A1 - 텍스트를 표시하기 위한 전자 장치 및 그 방법 - Google Patents

텍스트를 표시하기 위한 전자 장치 및 그 방법 Download PDF

Info

Publication number
WO2024063346A1
WO2024063346A1 PCT/KR2023/012361 KR2023012361W WO2024063346A1 WO 2024063346 A1 WO2024063346 A1 WO 2024063346A1 KR 2023012361 W KR2023012361 W KR 2023012361W WO 2024063346 A1 WO2024063346 A1 WO 2024063346A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
visual object
display
image
text
Prior art date
Application number
PCT/KR2023/012361
Other languages
English (en)
French (fr)
Inventor
김도현
이동혁
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from KR1020220141917A external-priority patent/KR20240039983A/ko
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Publication of WO2024063346A1 publication Critical patent/WO2024063346A1/ko

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/32Digital ink

Definitions

  • Electronic devices are being developed to extract text from handwriting represented by strokes drawn by a user. For example, a user moves a finger, stylus, and/or digitizer in contact with the display of the electronic device, or moves a pointing device (e.g., mouse) connected to the electronic device to draw strokes representing handwriting. You can. From the strokes, the electronic device can identify letters such as the alphabet. Based on identifying one or more characters, the electronic device can identify text containing the one or more characters.
  • a pointing device e.g., mouse
  • an electronic device may include a display and a processor.
  • the processor may display an image within the display.
  • the processor may, based on a first input indicating selection of text from the image, display a first visual object overlaid on a portion within the image selected by the first input.
  • the processor displays, in association with the first visual object, a second visual object including the one or more characters based on the one or more characters included in the portion of the image that overlaps the first visual object. can do.
  • the processor is configured to, based on a second input indicating to adjust the size of the first visual object overlaid on the image, based on the portion of the image overlaid with the first visual object having the adjusted size.
  • the one or more characters included in the second visual object can be changed.
  • a method of an electronic device may include an operation of displaying an image on a display.
  • the method of the electronic device includes, based on a first input indicating selection of text from the image, displaying a first visual object overlaid on the portion within the image selected by the first input. can do.
  • the method of the electronic device includes, based on one or more characters included in the portion of the image overlapping with the first visual object, a second image comprising the one or more characters, in association with the first visual object. May include actions that display visual objects.
  • the method of the electronic device may, based on a second input indicating adjusting the size of the first visual object overlaid on the image, adjust the size of the image overlaid with the first visual object having the adjusted size. Based on the portion, the method may include changing the one or more characters included in the second visual object.
  • the one or more programs included in a computer-readable storage medium storing one or more programs may display an image on a display when executed by a processor of an electronic device.
  • the one or more programs, when executed by the processor of the electronic device may, based on a first input indicating selection of text from the image, overlay a portion within the image selected by the first input, 1 may cause the processor of the electronic device to display a visual object.
  • the one or more programs, when executed by the processor of the electronic device associate with the first visual object based on one or more characters included in the portion of the image overlapping with the first visual object, and cause the processor of the electronic device to display a second visual object including the one or more characters.
  • the one or more programs when executed by the processor of the electronic device, based on a second input indicating adjusting the size of the first visual object superimposed on the image, the first visual object having the adjusted size. 1 may cause the processor of the electronic device to change the one or more characters included in the second visual object based on the portion of the image that overlaps the visual object.
  • FIG. 1 is an example of a block diagram of an electronic device in a network environment, according to an embodiment.
  • Figure 2 is an example of a screen of an electronic device for obtaining text included in an image, according to an embodiment.
  • Figure 3 is an example of a block diagram of an electronic device, according to an embodiment.
  • FIG. 4A is an example of a screen of an electronic device displaying text included in an image, according to an embodiment.
  • FIG. 4B is an example of a screen of an electronic device that displays text included in an image, according to an embodiment.
  • FIG. 5A is an example of a screen of an electronic device for obtaining text included in an image, according to an embodiment.
  • FIG. 5B is an example of a screen of an electronic device for obtaining text included in an image, according to an embodiment.
  • FIG. 5C is an example of a screen of an electronic device for obtaining text included in an image, according to an embodiment.
  • Figure 6 is an example of an operation of an electronic device that segments text using distribution information obtained from an image, according to an embodiment.
  • Figure 7 is an example of a flowchart regarding the operation of an electronic device, according to an embodiment.
  • FIG. 1 is an example of a block diagram of an electronic device in a network environment, according to an embodiment.
  • the electronic device 101 communicates with the electronic device 102 through a first network 198 (e.g., a short-range wireless communication network) or a second network 199. It is possible to communicate with at least one of the electronic device 104 or the server 108 through (e.g., a long-distance wireless communication network). According to one embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108.
  • a first network 198 e.g., a short-range wireless communication network
  • a second network 199 e.g., a long-distance wireless communication network.
  • the electronic device 101 may communicate with the electronic device 104 through the server 108.
  • the electronic device 101 includes a processor 120, a memory 130, an input module 150, an audio output module 155, a display module 160, an audio module 170, and a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or may include an antenna module 197.
  • at least one of these components eg, the connection terminal 178) may be omitted or one or more other components may be added to the electronic device 101.
  • some of these components e.g., sensor module 176, camera module 180, or antenna module 197) are integrated into one component (e.g., display module 160). It can be.
  • the processor 120 for example, executes software (e.g., program 140) to operate at least one other component (e.g., hardware or software component) of the electronic device 101 connected to the processor 120. It can be controlled and various data processing or calculations can be performed. According to one embodiment, as at least part of data processing or computation, the processor 120 stores commands or data received from another component (e.g., sensor module 176 or communication module 190) in volatile memory 132. The commands or data stored in the volatile memory 132 can be processed, and the resulting data can be stored in the non-volatile memory 134.
  • software e.g., program 140
  • the processor 120 stores commands or data received from another component (e.g., sensor module 176 or communication module 190) in volatile memory 132.
  • the commands or data stored in the volatile memory 132 can be processed, and the resulting data can be stored in the non-volatile memory 134.
  • the processor 120 includes a main processor 121 (e.g., a central processing unit or an application processor) or an auxiliary processor 123 that can operate independently or together (e.g., a graphics processing unit, a neural network processing unit ( It may include a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor).
  • a main processor 121 e.g., a central processing unit or an application processor
  • auxiliary processor 123 e.g., a graphics processing unit, a neural network processing unit ( It may include a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor.
  • the electronic device 101 includes a main processor 121 and a secondary processor 123
  • the secondary processor 123 may be set to use lower power than the main processor 121 or be specialized for a designated function. You can.
  • the auxiliary processor 123 may be implemented separately from the main processor 121 or as part of it.
  • the auxiliary processor 123 may, for example, act on behalf of the main processor 121 while the main processor 121 is in an inactive (e.g., sleep) state, or while the main processor 121 is in an active (e.g., application execution) state. ), together with the main processor 121, at least one of the components of the electronic device 101 (e.g., the display module 160, the sensor module 176, or the communication module 190) At least some of the functions or states related to can be controlled.
  • co-processor 123 e.g., image signal processor or communication processor
  • may be implemented as part of another functionally related component e.g., camera module 180 or communication module 190. there is.
  • the auxiliary processor 123 may include a hardware structure specialized for processing artificial intelligence models.
  • Artificial intelligence models can be created through machine learning. For example, such learning may be performed in the electronic device 101 itself on which the artificial intelligence model is performed, or may be performed through a separate server (e.g., server 108).
  • Learning algorithms may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but It is not limited.
  • An artificial intelligence model may include multiple artificial neural network layers.
  • Artificial neural networks include deep neural network (DNN), convolutional neural network (CNN), recurrent neural network (RNN), restricted boltzmann machine (RBM), belief deep network (DBN), bidirectional recurrent deep neural network (BRDNN), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the examples described above.
  • artificial intelligence models may additionally or alternatively include software structures.
  • the memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176) of the electronic device 101. Data may include, for example, input data or output data for software (e.g., program 140) and instructions related thereto.
  • Memory 130 may include volatile memory 132 or non-volatile memory 134.
  • the program 140 may be stored as software in the memory 130 and may include, for example, an operating system 142, middleware 144, or application 146.
  • the input module 150 may receive commands or data to be used in a component of the electronic device 101 (e.g., the processor 120) from outside the electronic device 101 (e.g., a user).
  • the input module 150 may include, for example, a microphone, mouse, keyboard, keys (eg, buttons), or digital pen (eg, stylus pen).
  • the sound output module 155 may output sound signals to the outside of the electronic device 101.
  • the sound output module 155 may include, for example, a speaker or a receiver. Speakers can be used for general purposes such as multimedia playback or recording playback.
  • the receiver can be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from the speaker or as part of it.
  • the display module 160 can visually provide information to the outside of the electronic device 101 (eg, a user).
  • the display module 160 may include, for example, a display, a hologram device, or a projector, and a control circuit for controlling the device.
  • the display module 160 may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of force generated by the touch.
  • the audio module 170 can convert sound into an electrical signal or, conversely, convert an electrical signal into sound. According to one embodiment, the audio module 170 acquires sound through the input module 150, the sound output module 155, or an external electronic device (e.g., directly or wirelessly connected to the electronic device 101). Sound may be output through the electronic device 102 (e.g., speaker or headphone).
  • the electronic device 102 e.g., speaker or headphone
  • the sensor module 176 detects the operating state (e.g., power or temperature) of the electronic device 101 or the external environmental state (e.g., user state) and generates an electrical signal or data value corresponding to the detected state. can do.
  • the sensor module 176 includes, for example, a gesture sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, humidity sensor, or light sensor.
  • the interface 177 may support one or more designated protocols that can be used to connect the electronic device 101 directly or wirelessly with an external electronic device (eg, the electronic device 102).
  • 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.
  • HDMI high definition multimedia interface
  • USB universal serial bus
  • SD card interface Secure Digital Card interface
  • audio interface audio interface
  • connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102).
  • the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
  • the haptic module 179 can convert electrical signals into mechanical stimulation (e.g., vibration or movement) or electrical stimulation that the user can perceive through tactile or kinesthetic senses.
  • the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • the camera module 180 can capture still images and moving images.
  • the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
  • the power management module 188 can manage power supplied to the electronic device 101.
  • the power management module 188 may be implemented as at least a part of, for example, a power management integrated circuit (PMIC).
  • PMIC power management integrated circuit
  • the battery 189 may supply power to at least one component of the electronic device 101.
  • the battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
  • Communication module 190 is configured to provide a direct (e.g., wired) communication channel or wireless communication channel between electronic device 101 and an external electronic device (e.g., electronic device 102, electronic device 104, or server 108). It can support establishment and communication through established communication channels. Communication module 190 operates independently of processor 120 (e.g., an application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication.
  • processor 120 e.g., an application processor
  • the communication module 190 is 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., : LAN (local area network) communication module, or power line communication module) may be included.
  • 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
  • GNSS global navigation satellite system
  • wired communication module 194 e.g., : LAN (local area network) communication module, or power line communication module
  • the corresponding communication module is 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., legacy It may communicate with an external electronic device 104 through a telecommunication network such as a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., LAN or WAN).
  • a telecommunication network such as a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., LAN or WAN).
  • a telecommunication network such as a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., LAN or WAN).
  • a telecommunication network such as a cellular network, a 5G network, a next-generation communication network
  • the wireless communication module 192 uses subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 to communicate within a communication network such as the first network 198 or the second network 199.
  • subscriber information e.g., International Mobile Subscriber Identifier (IMSI)
  • IMSI International Mobile Subscriber Identifier
  • the wireless communication module 192 may support 5G networks after 4G networks and next-generation communication technologies, for example, NR access technology (new radio access technology).
  • NR access technology provides high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low latency). -latency communications)) can be supported.
  • the wireless communication module 192 may support high frequency bands (eg, mmWave bands), for example, to achieve high data rates.
  • the wireless communication module 192 uses various technologies to secure performance in high frequency bands, for example, beamforming, massive array multiple-input and multiple-output (MIMO), and full-dimensional multiplexing. It can support technologies such as input/output (FD-MIMO: full dimensional MIMO), array antenna, analog beam-forming, or large scale antenna.
  • the wireless communication module 192 may support various requirements specified in the electronic device 101, an external electronic device (e.g., electronic device 104), or a network system (e.g., second network 199).
  • the wireless communication module 192 supports Peak data rate (e.g., 20 Gbps or more) for realizing eMBB, loss coverage (e.g., 164 dB or less) for realizing mmTC, or U-plane latency (e.g., 164 dB or less) for realizing URLLC.
  • Peak data rate e.g., 20 Gbps or more
  • loss coverage e.g., 164 dB or less
  • U-plane latency e.g., 164 dB or less
  • the antenna module 197 may transmit signals or power to or receive signals or power from the outside (e.g., an external electronic device).
  • the antenna module 197 may include an antenna including a radiator made of a conductor or a conductive pattern formed on a substrate (eg, PCB).
  • the antenna module 197 may include a plurality of antennas (eg, 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 is connected to the plurality of antennas by, for example, the communication module 190. can be selected Signals or power may be transmitted or received between the communication module 190 and an external electronic device through the at least one selected antenna.
  • other components eg, radio frequency integrated circuit (RFIC) may be additionally formed as part of the antenna module 197.
  • RFIC radio frequency integrated circuit
  • the antenna module 197 may form a mmWave antenna module.
  • a mmWave antenna module includes a printed circuit board, an RFIC disposed on or adjacent to a first side (e.g., bottom side) of the printed circuit board and capable of supporting a designated high frequency band (e.g., mmWave band); And a plurality of antennas (e.g., array antennas) disposed on or adjacent to the second side (e.g., top or side) of the printed circuit board and capable of transmitting or receiving signals in the designated high frequency band. can do.
  • a mmWave antenna module includes a printed circuit board, an RFIC disposed on or adjacent to a first side (e.g., bottom side) of the printed circuit board and capable of supporting a designated high frequency band (e.g., mmWave band); And a plurality of antennas (e.g., array antennas) disposed on or adjacent to the second side (e.g., top or side) of the
  • peripheral devices e.g., bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)
  • signal e.g. commands or data
  • commands or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199.
  • Each of the external electronic devices 102 or 104 may be of the same or different type as the electronic device 101.
  • all or part of the operations performed in the electronic device 101 may be executed in one or more of the external electronic devices 102, 104, or 108.
  • the electronic device 101 may perform the function or service instead of executing the function or service on its own.
  • one or more external electronic devices may be requested to perform at least part of the function or service.
  • One or more external electronic devices that have received the request may execute at least part 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 part of a response to the request.
  • cloud computing distributed computing, mobile edge computing (MEC), or client-server computing technology can be used.
  • the electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing.
  • the external electronic device 104 may include an Internet of Things (IoT) device.
  • Server 108 may be an intelligent server using machine learning and/or neural networks.
  • the external electronic device 104 or server 108 may be included in the second network 199.
  • the electronic device 101 may be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.
  • Electronic devices may be of various types.
  • 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 embodiments of this document are not limited to the above-described devices.
  • first, second, or first or second may be used simply to distinguish one component from another, and to refer to that component in other respects (e.g., importance or order) is not limited.
  • One (e.g., first) component is said to be “coupled” or “connected” to another (e.g., second) component, with or without the terms “functionally” or “communicatively.”
  • any of the components can be connected to the other components directly (e.g. wired), wirelessly, or through a third component.
  • module used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as logic, logic block, component, or circuit, for example. It can be used as A module may be an integrated part or a minimum unit of the parts or a part thereof that performs one or more functions. For example, according to one embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • Various embodiments of the present document are one or more instructions stored in a storage medium (e.g., built-in memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). It may be implemented as software (e.g., program 140) including these.
  • a processor e.g., processor 120
  • the one or more instructions may include code generated by a compiler or code that can be executed by an interpreter.
  • a storage medium that can be read by a device may be provided in the form of a non-transitory storage medium.
  • 'non-transitory' only means that the storage medium is a tangible device and does not contain signals (e.g. electromagnetic waves), and this term refers to cases where data is semi-permanently stored in the storage medium. There is no distinction between temporary storage cases.
  • Computer program products are commodities and can be traded between sellers and buyers.
  • the computer program product may be distributed in the form of a machine-readable storage medium (e.g. compact disc read only memory (CD-ROM)) or through an application store (e.g. Play StoreTM) or on two user devices (e.g. It can be distributed (e.g. downloaded or uploaded) directly between smart phones) or online.
  • a machine-readable storage medium e.g. compact disc read only memory (CD-ROM)
  • an application store e.g. Play StoreTM
  • two user devices e.g. It can be distributed (e.g. downloaded or uploaded) directly between smart phones) or online.
  • 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 a relay server.
  • each component (e.g., module or program) of the above-described components may include a single or plural entity, and some of the plurality of entities may be separately placed in other components. there is.
  • one or more of the components or operations described above may be omitted, or one or more other components or operations may be added.
  • multiple components eg, modules or programs
  • the integrated component may perform one or more functions of each component of the plurality of components in the same or similar manner as those performed by the corresponding component of the plurality of components prior to the integration. .
  • 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, or omitted. Alternatively, one or more other operations may be added.
  • Figure 2 is an example of a screen of an electronic device for obtaining text included in an image, according to an embodiment.
  • the electronic device 101 of FIG. 2 may be an example of the electronic device of FIG. 1 .
  • the operations of FIG. 2 may be executed by the processor 120 of FIG. 1 .
  • the electronic device 101 may include a display 210 .
  • the electronic device 101 can display an image on the display 210 .
  • the display 210 of the electronic device 101 includes a sensor (e.g., a touch screen panel (TSP)) to detect an external object (e.g., a user's finger, a stylus pen) on the display 210. can do.
  • TSP touch screen panel
  • the electronic device 101 may detect an external object that is in contact with the display 210 or floating on the display 210 .
  • the electronic device 101 may identify an input to an area where the external object is detected based on detecting the external object.
  • the electronic device 101 may display the first visual object 220 matching the input on at least a portion of the image.
  • the first visual object 220 may be displayed together with second visual objects 220-1 and 220-2 to indicate the area selected based on the input.
  • the electronic device 101 may receive an input for selecting at least a portion of the image based on the image being displayed through the display 210. For example, based on receiving an input for selecting at least a part of the image, the electronic device 101 may display the first visual object 220 in an overlapping manner on the part matching the selection. .
  • the electronic device 101 may identify one or more characters included in the first visual object 220 while displaying the first visual object 220 . For example, the electronic device 101 may identify one or more characters matching a selected area within the image. Based on identifying the one or more characters, the electronic device 101 may display a second visual object that matches the characters and is different from the first visual object 220 . An operation of displaying one or more characters using a second visual object different from the first visual object 220 will be described later in FIG. 4 .
  • the electronic device 101 includes second visual objects 220-1 and 220-2 that are different from the first visual object 220 to indicate the area of the first visual object 220. ) can be displayed.
  • the second visual objects 220-1 and 220-2 may display the width w of the first visual object 220.
  • the electronic device 101 may receive an input for adjusting the size of the first visual object 220.
  • an input for adjusting the size of the first visual object 220 may include an input for the second visual objects 220-1 and 220-2.
  • the electronic device 101 may receive input for the second visual objects 220-1 and 220-2.
  • the input for the second visual objects 220-1 and 220-2 may include an input for dragging at least one of the second visual objects 220-1 and 220-2. there is.
  • the input to the second visual objects 220-1 and 220-2 includes dragging one end (e.g., at least one of the start end or the end end) of the first visual object 220. May contain input.
  • One operation for adjusting the first visual object 220 and/or the second visual objects 220-1 and 220-2 will be described later with reference to FIGS. 5A and/or 5B.
  • the electronic device 101 displays one or more characters matching the first visual object 220 through the display 210, based on identifying the first visual object 220. can do.
  • an operation for dividing one or more characters included in the first visual object 220 is described later in FIG. 6. do.
  • the electronic device 101 may identify one or more characters matched to the first visual object 220. Based on identifying the matched one or more characters, the electronic device 101 displays a second visual object different from the first visual object 220 to indicate selection of the matched one or more characters. It can be displayed overlaid on the image displayed in (210). The electronic device 101 may enhance the user experience of the electronic device 101 by displaying text matching the one or more characters on the display 210 based on identifying the one or more characters.
  • Figure 3 is an example of a block diagram of an electronic device, according to an embodiment.
  • the electronic device 101 of FIG. 3 may be an example of the electronic device 101 of FIG. 1 and/or FIG. 2 .
  • the display 210 of FIG. 3 may be an example of the display 210 of FIG. 2 .
  • the operations of FIG. 3 may be executed by the processor 120 of FIG. 1 .
  • the electronic device 101 may include a processor 120 and/or a display 210.
  • the processor 120 and the display 210 may be electrically and/or operably coupled to each other by an electronic component such as a communication bus 310. with each other).
  • an electronic component such as a communication bus 310. with each other).
  • some of the hardware components shown in FIG. 3 e.g., processor 120, and/or display 210) may be included in a single integrated circuit, such as a system on a chip (SoC). there is.
  • SoC system on a chip
  • the type and/or number of hardware components included in the electronic device 101 are not limited to those shown in FIG. 3 .
  • the electronic device 101 may include only some of the hardware components shown in FIG. 3 .
  • the processor 120 and/or the display 210 are shown as singular, but may be plural.
  • the processor 120 of the electronic device 101 may correspond to at least a portion of the processor 120 of FIG. 1.
  • the processor 120 may include hardware components for processing data based on one or more instructions.
  • Hardware components for processing data include, for example, an arithmetic and logic unit (ALU), a floating point unit (FPU), a field programmable gate array (FPGA), an application processor (AP), a micro-computer (Micom), and/ or micom controller), and/or a central processing unit (CPU).
  • the number of processors 120 may be one or more.
  • the processor 120 may have the structure of a multi-core processor, such as a dual core, quad core, or hexa core.
  • the processor 120 may have the structure of a single core processor, such as a single core.
  • the display 210 of the electronic device 101 may be controlled by a controller such as the processor 120 to output visualized information to the user.
  • the display 210 may include a flat panel display (FPD) and/or electronic paper.
  • the display 210 may include a deformable display.
  • the FPD may include a light emitting diode (LCD).
  • the LED may include an organic light emitting diode (OLED).
  • the display 210 receives power applied from a cover panel (C-panel, or cover panel) to protect the display 210, a base substrate, and a thin film transistor (TFT) layer formed on the base substrate. It may include at least one of a pixel layer (or organic light emitting diode layer) including pixels that emit light based on voltage, or a polarization layer disposed on the pixel layer.
  • the substrate may be formed of multiple layers.
  • the processor 120 of the electronic device 101 may control the display 210 to display an image on the display 210.
  • the processor 120 may receive an input for selecting a portion of the image through the display 210 while the image is displayed on the display 210 .
  • the processor 120 may receive a first input indicating selection of text from the image. Based on the first input, the processor 120 displays a first visual object (e.g., the first visual object 220 of FIG. 2) overlaid on the portion within the image selected by the first input. can do.
  • a first visual object e.g., the first visual object 220 of FIG. 2
  • the processor 120 may identify one or more characters included in a portion of the image that overlaps the first visual object. For example, when identifying the one or more characters, the processor 120 of the electronic device 101 may execute an optical character recognition (OCR) function.
  • OCR optical character recognition
  • the OCR function may include the function of identifying one or more characters from at least a portion of an image and converting them into text.
  • the OCR function may include converting at least one character identified in the image into binary data.
  • the OCR function may include a function of obtaining text based on at least one character converted to the binary data.
  • the processor 120 may display a second visual object including the one or more characters in association with the first visual object.
  • the electronic device 101 may obtain text by dividing one or more characters included in the first visual object. A description of the operation of displaying the second visual object will be described later with reference to FIGS. 4A and/or 4B.
  • the processor 120 may receive a second input indicating adjusting the size of the first visual object overlaid on the image.
  • the second input may include an input for a second visual object displayed together with the first visual object.
  • the second visual object may include a visual object for displaying one or more characters identified in the first visual object.
  • the second input may include an input for dragging the second visual object.
  • the processor 120 may identify a first visual object whose size is adjusted based on the second input.
  • the processor 120 may display the first visual object having the adjusted size by overlapping it with a portion of the image.
  • the processor 120 may change one or more characters included in the second visual object based on a portion of the image overlapping with the first visual object having the adjusted size.
  • the processor 120 may display the second visual object in an overlapping manner on the first visual object.
  • the second visual object displayed as overlapping may include a visual object for identifying one or more characters included in the first visual object and displaying them as text.
  • the second visual object may be displayed within substantially the same area as the first visual object.
  • the processor 120 of the electronic device 101 may display a first text included in a first visual object in a second visual object displayed in the display 210.
  • the first text may include one or more characters identified within the first visual object.
  • the processor 120 may display a second text included within the second visual object and within another portion connected to a portion of the image that overlaps the first visual object.
  • the processor 120 of the electronic device 101 may display a first text within the second visual object based on the first designated color.
  • the processor 120 may display the first text in a first designated color.
  • the processor 120 may display a second text that is different from the first text in a second designated color.
  • the second text may include one or more characters that are part of one or more characters identified in the first visual object.
  • the electronic device 101 may display a first visual object based on an input indicating selection of text from an image.
  • the electronic device 101 may display a second visual object based on the first visual object.
  • the electronic device 101 may identify one or more characters included in the first visual object within the second visual object and display them as text.
  • the electronic device 101 may enhance the user experience of the electronic device 101 by displaying the text on the second visual object.
  • FIG. 4A is an example of a screen of an electronic device displaying text included in an image, according to an embodiment.
  • FIG. 4B is an example of a screen of an electronic device that displays text included in an image, according to an embodiment.
  • the electronic device 101 of FIGS. 4A and/or 4B may be an example of the electronic device 101 of FIGS. 1, 2, and/or 3.
  • the display 210 of FIGS. 4A and/or 4B may be an example of the display 210 of FIGS. 2 and/or 3 .
  • the operations of FIGS. 4A and/or 4B may be executed by the processor 120 of FIGS. 1 and/or 3 .
  • the electronic device 101 may display an image on the display 210 .
  • the electronic device 101 may receive a first input indicating selecting text from the image.
  • the electronic device 101 may display the first visual object 220 overlaid on a portion of the image selected by the first input.
  • the electronic device 101 generates a second visual object in association with the first visual object 220, based on one or more characters included in the portion of the image overlapping with the first visual object 220. (420) can be displayed.
  • the second visual object 420 may include a menu 420-1 for executing functions (eg, share, search, select all, translate, copy).
  • the menu 420-1 may be composed of buttons for receiving input.
  • the menu 420-1 may be displayed with an icon to indicate the function.
  • the electronic device 101 may perform a function matching the input for text included in the first visual object 220, based on the input for at least one of the menus 420-1. It can be run.
  • the electronic device 101 is configured to transmit text matching the first visual object 220 to an external electronic device based on the input to the 'Share' button in the menu 420-1.
  • the function can be executed.
  • the electronic device 101 may include an application that displays text matching the first visual object 220 and an image based on the input to the 'Search' button in the menu 420-1.
  • the search function can be performed.
  • the search function may be executed based on an Internet application and/or at least a portion of an application included in the electronic device 101.
  • the second visual object 420 may include a third visual object 420-2 for representing text obtained based on the one or more characters.
  • the electronic device 101 may display text such as 'nice to' included in the first visual object 220 in the third visual object 420-2.
  • the electronic device 101 may display the menu 420-1 and the third visual object 420-2 together based on the first visual object 220.
  • the operation of displaying the menu 420-1 and the third visual object 420-2 together is an example and is not limited thereto.
  • the electronic device 101 includes a first text obtained from a first visual object 220, and another portion 410 connected to the portion of the image overlapping with the first visual object 220. ) can display the second text included within.
  • the electronic device 101 displays another part 410 connected to the first visual object 220.
  • the second text obtained from 'meet you. How are you? 'I'm fine thank you.' can be displayed together within the second visual object 420.
  • the electronic device 101 may display at least a portion of the second text obtained from the other part 410 in the second visual object 420.
  • the electronic device 101 may display 'meet you.', which is at least part of the text obtained from the other part 410, together with the first text 'nice to'.
  • the operation of displaying the menu 420-1 and the third visual object 420-2 together is an example and is not limited thereto.
  • the electronic device 101 displays a first visual object 220 on a portion of the image selected by the first input, based on a first input indicating selection of text from the image. It can be displayed. While displaying the first visual object 220, the electronic device 101 may display a second visual object 420 for displaying one or more characters included in the first visual object 220. . The electronic device 101 may display the second visual object 420 in an area different from the area where the image is displayed.
  • the electronic device 101 may display the first text within the second visual object 420 based on the first designated color.
  • the first text may include text obtained based on input indicating selection of one or more characters included in the image.
  • the first text may include texts matching the first visual object 220.
  • the electronic device 101 may display a second text based on a second specified color that is different from the first specified color while displaying the first text based on the first specified color.
  • the second text may include text obtained from another part 410.
  • the electronic device 101 displays the first text in the first designated color and displays the second text in the second designated color, so that the electronic device 101 It can enhance the user experience.
  • the electronic device 101 may display text 430 obtained based on one or more characters included in the image.
  • the electronic device 101 may display text 430 obtained from the one or more characters in an area 440 including the one or more characters by overlapping the one or more characters.
  • the electronic device 101 may receive an input indicating selection of text within the area 440. Based on the input, the electronic device 101 may highlight and display at least part of the text 430 to indicate the input. For example, the electronic device 101 may display text matching the input in a designated color. For example, the electronic device 101 may distinguish and display an area displaying text matching the input in a color different from the color of the text. For example, the electronic device 101 may display text by shading it.
  • the electronic device 101 may display text matching the input in bold.
  • the electronic device 101 may display text that matches the input by processing it in italics.
  • the electronic device 101 may enhance the user experience of the electronic device 101 by displaying selected text based on a designated color.
  • the electronic device 101 may enhance the user experience of the electronic device 101 by displaying the text in bold.
  • the electronic device 101 may enhance the user experience of the electronic device 101 by italicizing and displaying the text.
  • the electronic device 101 displays at least a portion of text matching the one or more characters through the display 210 while identifying one or more characters included in the area 440. You can.
  • the electronic device 101 may change the display of at least part of the text 430 based on at least part of one or more characters included in the first visual object 220 being selected.
  • the electronic device 101 may shade and display the text 430 based on at least a portion of one or more characters included in the first visual object 220 being selected.
  • the electronic device 101 may display the text 430 by italicizing it, based on at least a portion of one or more characters included in the first visual object 220 being selected.
  • the electronic device 101 may display the text 430 in bold based on at least a portion of one or more characters included in the first visual object 220 being selected.
  • the electronic device 101 may identify lines included in the area 440.
  • the lines may contain one or more characters.
  • the electronic device 101 may receive an input indicating selection of one of the lines. Based on the input, the electronic device 101 may display text matching one or more characters included in the line on which the input was received.
  • the electronic device 101 displays a second visual object 420 and/or text 430 that displays text obtained based on a portion of an image.
  • input may be received from the display 210 that displays the image.
  • the electronic device may stop displaying the second visual object 420 and/or text 430 based on receiving the input.
  • the input may include a gesture of tapping the display 210.
  • the input may include dragging the second visual object 420 and/or text 430 in a first designated direction.
  • the electronic device may stop displaying the second visual object 420 and/or the text 430 based on a dragging input in the first designated direction.
  • the electronic device may receive an input for dragging in a second designated direction that is different from the first designated direction.
  • the electronic device may display the second visual object 420 and/or text 430 based on a dragging input in the second designated direction.
  • the electronic device 101 may enhance the user experience of the electronic device 101 by displaying the second visual object 420 and/or the text 430.
  • FIG. 5A is an example of a screen of an electronic device for obtaining text included in an image, according to an embodiment.
  • FIG. 5B is an example of a screen of an electronic device for obtaining text included in an image, according to an embodiment.
  • FIG. 5C is an example of a screen of an electronic device for obtaining text included in an image, according to an embodiment.
  • the electronic device 101 of FIGS. 5A, 5B, and/or 5C may be an example of the electronic device 101 of FIGS. 1, 2, 3, 4A, and/or 4B.
  • the display 210 of FIGS. 5A, 5B, and/or 5C may be an example of the display 210 of FIGS. 2, 3, 4A, and/or 4B.
  • the operations of FIGS. 5A, 5B, and/or 5C may be executed by the processor 120 of FIGS. 1 and/or 3.
  • the electronic device 101 may display an image on the display 210.
  • the electronic device 101 may receive a first input indicating selection of text from the image.
  • the electronic device 101 may display a first visual object 220 on a portion of the image selected by the first input. While displaying the first visual object 220, the electronic device 101 displays second visual objects different from the first visual object 220 for displaying a region in which the first visual object 220 is selected. (220-1, 220-2) can be displayed.
  • the electronic device 101 may receive a second input 510 indicating adjusting the size of the first visual object 220.
  • the second input 510 may include an input for dragging one end of the first visual object 220.
  • the second input 510 may include an input for dragging at least one of the second visual objects 220-1 and 220-2.
  • the electronic device 101 may display the first visual object 520 with an adjusted size on the display 210 based on the second input 510. For example, referring to FIG. 5B, while the size of the first visual object 220 is changed based on the second input 510, the electronic device 101 has the size during the change.
  • the first visual object 220 may be displayed.
  • the electronic device 101 displays the first text obtained from the first visual object 220 while displaying the first visual object 220. It can be displayed within (210).
  • the electronic device 101 may receive a second input 510 indicating adjusting the size of the first visual object 220 while displaying text obtained from the first visual object 220. .
  • the electronic device 101 may display text matching the first visual object 520 whose size is adjusted based on the second input 510 on the display 210 .
  • the text may include the first visual object 220, the second visual objects 220-1, 220-2, and/or a visual object that is different from the first visual object 520 having the adjusted size. It can be displayed based on the object.
  • the text may be displayed by the electronic device 101 overlapping on the first visual object 220 and/or on the first visual object 520 having an adjusted size.
  • the electronic device 101 displays the first visual object 220 and/or the second visual objects 220- 1, 220-2) can be displayed.
  • the electronic device 101 may display text matching the first visual object 220 while displaying the first visual object 220 .
  • the electronic device 101 may receive a second input 510 that adjusts the size of the first visual object 220.
  • the electronic device 101 may display the first visual object 520 with an adjusted size based on receiving the second input 510.
  • the electronic device 101 displays text matching the first visual object 220 based on changing the display from the first visual object 220 to the first visual object 520 having an adjusted size,
  • the text may be changed and displayed to match the first visual object 520 having the adjusted size.
  • the electronic device 101 may enhance the user experience of the electronic device 101 by changing and displaying text that matches the first visual object 520 having the adjusted size.
  • Figure 6 is an example of an operation of an electronic device that segments text using distribution information obtained from an image, according to an embodiment.
  • the electronic device of FIG. 6 may be an example of the electronic device 101 of FIGS. 1, 2, 3, 4A, 4B, 5A, 5B, and/or 5C.
  • the operations of FIG. 6 may be executed by the processor 120 of FIG. 1 and/or FIG. 3 .
  • the electronic device is within a display (e.g., display 210 of Figures 2, 3, 4A, 4B, 5A, 5B, and/or 5C). Images can be displayed. While displaying the image, the electronic device may acquire an image of a portion matching the input based on an input indicating selection of text from the image. The electronic device can identify the image and obtain text matching one or more characters included in the image.
  • a display e.g., display 210 of Figures 2, 3, 4A, 4B, 5A, 5B, and/or 5C.
  • the electronic device may identify a portion 610 in the image that matches the first input. For example, the electronic device may display a first visual object matching the portion 610 in the image selected based on the first input.
  • the electronic device provides, within the portion 610 selected by the first input, distribution information including a distribution of a third visual object of the image representing one or more characters within the portion 610. It can be obtained.
  • the third visual object may be related to the strokes of one or more characters included in a portion of the image.
  • the third visual object may be associated with one or more strokes representing one or more characters.
  • distribution information including the distribution of the third visual object may include a histogram obtained from a portion 610 of the image.
  • the histogram may be obtained based on pixels within the image that can be identified with one or more letters.
  • the electronic device may obtain a cumulative histogram of the histogram based on obtaining the histogram based on pixels.
  • the cumulative histogram may be a histogram obtained by adding values obtained from the starting point of the histogram.
  • the electronic device may obtain a normalized average histogram based on obtaining the cumulative histogram.
  • the electronic device 101 obtains a normalized average histogram based on the accumulated histogram, thereby obtaining the normalized average histogram more quickly than when the accumulated histogram is not used. can do.
  • the average histogram may be a histogram of the average value of histograms within a window 640 having a specified width (w).
  • the normalized average histogram may be a histogram obtained by normalizing the average histogram.
  • the normalized average histogram may be a histogram in which frequency values are normalized to values between 0 and 1 based on the maximum value within the average histogram. Frequency values displayed within the normalized average histogram may be matched to strokes for forming one or more characters within positions where each of the frequency values is displayed.
  • the electronic device may display a first visual object based on an input indicating selection of text within an image.
  • the electronic device may obtain text included in the first visual object.
  • the electronic device may obtain a histogram (eg, normalized average histogram) obtained from a portion 610 of the image.
  • the electronic device may segment one or more characters included in the first visual object based on the histogram obtained from the first visual object.
  • the electronic device may identify segment intensity for segmenting the one or more characters based on the histogram.
  • the electronic device may identify the segmentation intensity based on a frequency value identified within the histogram.
  • the electronic device may identify that the intensity of the division intensity is high based on the frequency value being identified as being less than a specified size.
  • the electronic device may identify that the intensity of the division intensity is low based on the fact that the frequency value is identified as being greater than or equal to a specified size.
  • the electronic device may obtain distribution information by applying a window 640 of a specified size to a portion 610 of the image.
  • the window of the specified size may have a width different from the width of the window 640 of the specified width (w).
  • the window 640 of the specified size may have a width (w) of about 0.3 times the height (h) of the portion 610 of the image.
  • the electronic device may move the window 640 of the specified size by sliding it from one end of the histogram including the distribution information to the other end.
  • the electronic device may obtain candidate positions 630 for segmenting one or more characters from the distribution information based on the window 640 of the designated size that is slid and moved.
  • the electronic device may acquire local minimum values that appear within the window 640 of the specified size based on the window 640 of the specified size that slides and moves the distribution information. .
  • m1 to m13 in FIG. 6 may match each of the minimum values obtained while the window 640 of the specified size is sliding and moving.
  • the electronic device may identify candidate positions 630 of a border line between one or more characters based on the minimum values. The candidate locations may be obtained based on the segmentation strength.
  • the electronic device may apply a cost function to a combination of the candidate locations 630.
  • the electronic device may obtain a result value of a cost function that matches each of the cases representing a combination of the candidate locations 630.
  • the cost function may be Equation 1 below.
  • the weight may be specified differently based on the type of text.
  • the weight of text with a Korean type may be specified as 1.0.
  • the weight of text having a lowercase alphabetic character type may be specified as 0.5.
  • the weight of text that is alphabetical and has a relatively broad type may be specified as 0.8.
  • text that is alphabetic and has a relatively broad type may be referred to as the lowercase alphabet letter 'w', and/or the lowercase alphabet letter 'm'.
  • the weight of text that is alphabetical and has a relatively narrow type may be specified as 0.1.
  • the weight may be obtained based on the font of a portion 610 of the image obtained based on the first input.
  • the weight can be obtained using a font.
  • the electronic device may obtain the weight based on at least one of the information included in the font.
  • the electronic device may obtain the weight based on width information of the font included in the font.
  • information included in the font may include width information of the font and/or position information of characters of the font.
  • Equation 2 may be Equation 2 below.
  • Equation 2 may be the result of a cost function for obtaining the candidate locations 630.
  • electronic device above The case with the smallest result value can be identified. The electronic device is Based on identifying the case with the smallest result value, segmentation of one or more characters matching the case may be performed.
  • Equation 2 within Equation 2, may represent the i-th division width. may represent the number of positions that can be divided. may represent the length of the j-th blank area. can represent the number of blank areas. remind is, practically It can mean.
  • Equation 1 may be Equation 3 below.
  • the electronic device may identify the division intensity cost of a portion 610 of the image by applying Equation 3 above.
  • Equation 3 above may mean coordinates matching the j-th candidate location.
  • the segmentation strength cost may indicate the strength of the segmentation intensity within a location or region where one or more characters should be segmented.
  • the electronic device may identify that the intensity of the division is strong based on identifying the strokes of one or more characters identified within the distribution information.
  • the electronic device may identify the size of the expected character area. For example, it may mean the size of the expected character area or the size of each of one or more characters.
  • the electronic device can identify the size of the separation area.
  • the size of the separation area may mean the size of an area including a point for dividing one or more characters to convert them into text.
  • the electronic device may acquire candidate locations 630 based on distribution information 620 obtained from a portion of the image 610 of FIG. 6 .
  • the candidate locations may be obtained based on minimal values (eg, m1 to m14) identified within the distribution information 620.
  • each of the candidate locations may be matched to each of the minimum values (m1 to m14) identified within the distribution information 620.
  • the electronic device can identify 8 characters and/or 1 blank area from the portion 610 of the image.
  • the electronic device may apply a weight of 0.5 to each of the eight characters.
  • the electronic device can apply a weight of 1.0 to one blank area.
  • the electronic device may identify a case in which 'fo' and 'nt that' are divided within a portion 610 of the image.
  • the above case may be an example of dividing words and words.
  • the electronic device may identify the expected widths of 'fo' and 'nt that' as the same width within the case.
  • the expected width is expressed in Equation 2 It can be referred to as .
  • the electronic device can identify the expected width corresponding to each of 'fo' and 'nt that'.
  • the electronic device may identify 0.4, which is the expected width corresponding to 'fo'.
  • the electronic device may identify 0.4, which is the expected width corresponding to 'nt that'.
  • the electronic device can identify the current width of 'fo'.
  • the electronic device can identify the current width of 'nt that'.
  • the current width is expressed in Equation 2 It can be referred to as .
  • the electronic device may identify the current width of 'fo' as 0.2.
  • the electronic device may identify the current width of 'nt that' as 0.8.
  • the electronic device may apply a cost function based on obtaining the expected widths and the current widths.
  • the above case is an example of dividing into words and between words, and an example of dividing into 'font' and 'that' identified in a case different from the above case may be the most preferable example.
  • the electronic device within the case, applies a division function to can be obtained.
  • the electronic device within the case, The resulting value of It can be obtained as follows.
  • the result value obtained by applying the cost function may be a relatively larger value than the result value of the cost function obtained from the case divided into 'font' and 'that'.
  • the equation for obtaining can be referred to as equation 2.
  • an electronic device may, within the case, can be obtained.
  • the electronic device may apply Equation 3 based on the minimum value m3 in FIG. 6 being identified as 0.3.
  • the electronic device applies Equation 3 above, can be obtained.
  • the electronic device may obtain text by dividing one or more characters based on distribution information. By segmenting one or more characters based on the distribution information, the electronic device can segment the one or more characters relatively accurately compared to the case where the one or more characters are not segmented based on the distribution information.
  • FIG. 7 is an example of a flowchart regarding the operation of an electronic device, according to an embodiment.
  • the electronic device of FIG. 7 is one of the electronic devices 101 of FIGS. 1, 2, 3, 4A, 4B, 5A, 5B, and/or 5C, and/or the electronic device of FIG. 6. Yes it could be.
  • the operations of FIG. 7 may be executed by the processor 120 of FIG. 1 and/or FIG. 3 .
  • the electronic device may display an image on the display.
  • the electronic device may identify a first input indicating selection of text from the image displayed within the display. Based on the first input, the electronic device may display a first visual object overlaid on a portion of the image selected by the first input.
  • the first visual object may be referred to as an area for identifying one or more characters included in the image.
  • the first visual object may be created based on the user's first input.
  • the electronic device may display a second visual object including the one or more characters in association with the first visual object based on the one or more characters.
  • the electronic device may display text obtained from the first visual object within the second visual object.
  • the text may be obtained based on the one or more characters.
  • the electronic device may segment the one or more characters to obtain the text.
  • distribution information including the distribution of a third visual object of the image representing the one or more characters within the portion may be obtained.
  • the third visual object may be associated with strokes of one or more characters included in the first visual object.
  • the electronic device may obtain distribution information by applying a window of a specified size to a portion of the image.
  • the distribution information may be related to the histogram described in FIG. 6.
  • the electronic device may identify one or more local minimum values included in the distribution information.
  • the electronic device may obtain the distribution information based on a window having a specified size.
  • the electronic device may identify candidate positions of a boundary line between one or more characters based on the one or more minimal values.
  • the electronic device may obtain text based on the one or more characters based on identifying the candidate locations.
  • the electronic device may display the obtained text within a second visual object.
  • the electronic device may identify a second input indicating adjusting the size of the first visual object overlaid on the image. For example, the electronic device may change the display of the first visual object based on the size of the first visual object being adjusted. For example, the first visual object may have a size adjusted based on the second input. Based on the second input, the electronic device displays one or more texts corresponding to one or more characters included in the second visual object based on a portion of the image overlapping with the first visual object having an adjusted size. can be changed. Based on a second input indicating adjusting the size of the first visual object overlaid on the image, the electronic device adjusts the portion of the image overlapping with the first visual object having the adjusted size.
  • the display of the one or more texts corresponding to the one or more characters included in the second visual object may be changed.
  • the electronic device may display one or more characters included within the first visual object, and characters that are distinct from the one or more characters associated with the first visual object. may be displayed within the second visual object.
  • the electronic device may change the properties of one or more characters included in the second visual object based on the second input. For example, the electronic device may change the properties (or characteristics) of text displayed within the second visual object. For example, an electronic device may display text in bold. For example, the electronic device may display the text by shading it. The electronic device may display the text by italicizing it.
  • the electronic device may display text displayed in the second visual object based on the incorrect identification. For example, based on misrecognizing one or more characters included in the first visual object, the electronic device may display text matching the misrecognized characters in the second visual object. The electronic device may display text corresponding to misrecognized characters in the second visual object.
  • the electronic device may enhance the user experience of the electronic device by changing the one or more characters included in the second visual object based on the second input.
  • an electronic device e.g., the electronic device 101 of FIGS. 1, 2, 3, 4A, 4B, 5A, and/or 5B
  • a display e.g., display 210 in FIGS. 2, 3, 4A, 4B, 5A, and/or 5B
  • a processor e.g., processor 120 in FIGS. 1 and/or 3
  • the processor may display an image within the display.
  • the processor based on a first input indicating selection of text from the image, selects a first visual object (e.g., Figure 2, The first visual object 220 of FIGS. 4A, 4B, and/or 5A may be displayed.
  • the processor is configured to, based on the one or more characters included in the portion of the image overlapping the first visual object, generate, in association with the first visual object, a second visual object (e.g. , the second visual object 420 of FIG. 4A) may be displayed.
  • the processor based on a second input indicating that the size of the first visual object superimposed on the image is adjusted (e.g., the second input 510 in FIG. 5A), displays the first visual object having the adjusted size. 1 Based on the portion of the image overlapping with the visual object, the one or more characters included in the second visual object may be changed.
  • the processor is configured to: within the second visual object displayed within the display, first text included within the first visual object, and another text connected to the portion of the image overlapping the first visual object.
  • a second text included within the portion e.g., another portion 410 in FIG. 4A may be displayed.
  • the processor may display the first text within the second visual object based on a first designated color.
  • the processor may display the second text based on a second designated color that is different from the first designated color.
  • the processor may be configured to display, within the second visual object, the first text based on a first specified color and display the second text based on a second specified color that is different from the first specified color. It can be displayed.
  • the processor may display the second visual object by overlapping it on the first visual object.
  • the processor includes, within the portion of the image selected by the first input, a distribution of third visual objects of the image representing the one or more characters within the portion.
  • Distribution information eg, distribution information 620 in FIG. 6 can be obtained.
  • the processor may obtain the distribution information by applying a window of a specified size (eg, window 640 in FIG. 6) within the portion of the image.
  • a window of a specified size eg, window 640 in FIG. 6
  • the processor based on one or more minimal values included in the distribution information, creates candidate positions of a border line between the one or more characters (e.g., FIG. 6 Candidate locations 630) can be identified.
  • the processor may determine the position of a boundary line between the one or more characters by applying a cost function to the combination of the candidate positions.
  • the processor may display the first visual object based on the location of the boundary line.
  • an electronic device e.g., the electronic device 101 of FIGS. 1, 2, 3, 4A, 4B, 5A, and/or 5B
  • the method may include displaying an image in a display (e.g., display 210 of FIGS. 2, 3, 4A, 4B, 5A, and/or 5B).
  • the method of the electronic device based on a first input indicating selection of text from the image, selects a first visual object (e.g., a portion) in the image selected by the first input. , may include an operation of displaying the first visual object 220 of FIGS. 2, 4A, 4B, and/or 5A).
  • the method of the electronic device includes, based on one or more characters included in the portion of the image overlapping with the first visual object, a second image comprising the one or more characters, in association with the first visual object. It may include an operation of displaying a visual object (eg, the second visual object 420 in FIG. 4A).
  • the method of the electronic device is based on a second input indicating adjusting the size of the first visual object superimposed on the image (e.g., the second input 510 in FIG. 5A), adjusting the adjusted size. and changing the one or more characters included in the second visual object based on the portion of the image overlapping with the first visual object having .
  • the method of the electronic device includes: within the second visual object displayed in the display, a first text included within the first visual object, and the image overlapping with the first visual object. It may include an operation of displaying a second text included in another part (eg, another part 410 in FIG. 4A) connected to the part.
  • the method of the electronic device may include displaying the first text within the second visual object based on a first designated color.
  • the method of the electronic device may include displaying the second text based on a second designated color that is different from the first designated color.
  • the method of the electronic device is configured to display, within the second visual object, the first text based on the first designated color, and display the second text based on a second designated color that is different from the first designated color. It may include an action that displays .
  • the method of the electronic device may include an operation of overlapping and displaying the second visual object on the first visual object.
  • the method of the electronic device includes, within the portion selected by the first input, a distribution of third visual objects of the image representing the one or more characters within the portion. It may include an operation of acquiring distribution information (eg, distribution information 620 of FIG. 6).
  • the method of the electronic device may include an operation of applying a window (eg, window 640 in FIG. 6) of a size stored in the portion.
  • the method of the electronic device may include an operation of obtaining the distribution information by applying the window of a specified size to the portion.
  • the method of the electronic device may include identifying one or more minimal values included in the distribution information.
  • the method of the electronic device generates candidate positions of a border line between the one or more characters (e.g., the candidate positions in FIG. 6) based on one or more minimal values included in the distribution information.
  • An operation of identifying locations 630 may be included.
  • the method of the electronic device may include applying a cost function to a combination of the candidate locations.
  • the method of the electronic device may include determining a position of a boundary line between the one or more characters.
  • the method of the electronic device may include determining the location of a boundary line between the one or more characters by applying a cost function to the combination of the candidate locations.
  • the method of the electronic device may include displaying the first visual object based on the location of the boundary line.
  • a computer-readable storage medium storing one or more programs
  • the one or more programs are stored on an electronic device (e.g., FIGS. 1, 2, 3, and 3).
  • a processor e.g., processor 120 of FIGS. 1 and/or 3
  • a display e.g., FIG. 2
  • the processor of the electronic device may display an image within the display 210 of FIGS. 3, 4A, 4B, 5A, and/or 5B.
  • the one or more programs when executed by the processor of the electronic device, may, based on a first input indicating selection of text from the image, overlay a portion within the image selected by the first input, 1 may cause the processor of the electronic device to display a visual object (e.g., the first visual object 220 of FIGS. 2, 4A, 4B, and/or 5A).
  • the one or more programs when executed by the processor of the electronic device, associate the first visual object with the first visual object based on one or more characters included in the portion of the image that overlaps the first visual object. may cause the processor of the electronic device to display a second visual object including one or more characters (e.g., second visual object 420 in FIG. 4A).
  • the one or more programs when executed by the processor of the electronic device, based on a second input indicating adjusting the size of the first visual object superimposed on the image, the first visual object having the adjusted size. 1 based on the portion of the image overlapping with the visual object, cause the processor of the electronic device to change the one or more characters included in the second visual object.
  • the one or more programs when executed by the processor of the electronic device, include first text included in the first visual object, within the second visual object displayed in the display, and the first visual object. and cause the processor of the electronic device to display second text included within another portion (e.g., another portion 410 in FIG. 4A) connected to the portion of the image overlapping a visual object.
  • the one or more programs when executed by the processor of the electronic device, display the first text within the second visual object based on the first specified color, and display the first text based on the first specified color. and cause the processor of the electronic device to display the second text based on a second specified color that is different from the color.
  • the one or more programs when executed by the processor of the electronic device, cause the processor of the electronic device to display the second visual object overlaid on the first visual object. can do.
  • the one or more programs when executed by the processor of the electronic device, provide a program of the image representing the one or more characters within the portion selected by the first input. 3 May cause the processor of the electronic device to obtain distribution information including the distribution of visual objects (e.g., distribution information 620 in FIG. 6).
  • the distribution information is obtained by applying a window (e.g., window 640 in FIG. 6) of a specified size within the portion.
  • a window e.g., window 640 in FIG. 6
  • it may cause the processor of the electronic device to do so.
  • the one or more programs generate candidate positions of boundary lines between the one or more characters (e.g., candidate positions 630 in FIG. 6) based on one or more minimal values included in the distribution information. ) may cause the processor of the electronic device to identify.
  • the one or more programs when executed by the processor, apply a cost function to the combination of the candidate positions to determine a position of a boundary line between the one or more characters. This can cause the processor.
  • the one or more programs when executed by the processor of the electronic device, may cause the processor of the electronic device to display the first visual object based on the location of the boundary line.
  • the one or more programs when executed by the processor 120, are based on misrecognizing the one or more characters included in the first visual object 220. 2 May cause the processor 120 of the electronic device 101 to display text corresponding to one or more characters misrecognized within the visual object 420.
  • Electronic devices may be of various types.
  • Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, electronic devices, or home appliances.
  • Electronic devices according to embodiments of this document are not limited to the above-described devices.
  • first, second, or first or second may be used simply to distinguish one component from another, and to refer to that component in other respects (e.g., importance or order) is not limited.
  • One (e.g., first) component is said to be “coupled” or “connected” to another (e.g., second) component, with or without the terms “functionally” or “communicatively.” Where mentioned, it means that any of the components can be connected to the other components directly (e.g. wired), wirelessly, or through a third component.
  • module used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as logic, logic block, component, or circuit, for example. It can be used as A module may be an integrated part or a minimum unit of the parts or a part thereof that performs one or more functions. For example, according to one embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • Various embodiments of the present document are one or more instructions stored in a storage medium (e.g., built-in memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). It may be implemented as software (e.g., program 140) including these.
  • a processor e.g., processor 120
  • the one or more instructions may include code generated by a compiler or code that can be executed by an interpreter.
  • a storage medium that can be read by a device may be provided in the form of a non-transitory storage medium.
  • 'non-transitory' only means that the storage medium is a tangible device and does not contain signals (e.g. electromagnetic waves), and this term refers to cases where data is semi-permanently stored in the storage medium. There is no distinction between temporary storage cases.
  • Computer program products are commodities and can be traded between sellers and buyers.
  • the computer program product may be distributed in the form of a machine-readable storage medium (e.g. compact disc read only memory (CD-ROM)) or through an application store (e.g. Play StoreTM) or on two user devices (e.g. It can be distributed (e.g. downloaded or uploaded) directly between smart phones) or online.
  • a machine-readable storage medium e.g. compact disc read only memory (CD-ROM)
  • an application store e.g. Play StoreTM
  • two user devices e.g. It can be distributed (e.g. downloaded or uploaded) directly between smart phones) or online.
  • 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 a relay server.
  • each component (e.g., module or program) of the above-described components may include a single or plural entity, and some of the plurality of entities may be separately placed in other components. there is.
  • one or more of the components or operations described above may be omitted, or one or more other components or operations may be added.
  • multiple components eg, modules or programs
  • the integrated component may perform one or more functions of each component of the plurality of components in the same or similar manner as those performed by the corresponding component of the plurality of components prior to the integration. .
  • 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, or omitted. Alternatively, one or more other operations may be added.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

일 실시 예에 따른, 전자 장치는, 디스플레이 내에 이미지를 표시할 수 있다. 상기 전자 장치는, 상기 이미지로부터 텍스트를 선택함을 나타내는 제1 입력에 기반하여, 상기 제1 입력에 의해 선택된 상기 이미지 내 일부분(a portion) 상에 중첩으로, 제1 시각적 객체를 표시할 수 있다. 상기 전자 장치는, 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분 내에 포함된 하나 이상의 문자들에 기반하여, 상기 제1 시각적 객체와 연계로, 상기 하나 이상의 문자들을 포함하는 제2 시각적 객체를 표시할 수 있다. 상기 전자 장치는, 상기 이미지 상에 중첩된 상기 제1 시각적 객체의 사이즈를 조절함을 나타내는 제2 입력에 기반하여, 상기 조절된 사이즈를 가지는 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분에 기반하여, 상기 제2 시각적 객체 내에 포함된 상기 하나 이상의 문자들을 변경할 수 있다.

Description

텍스트를 표시하기 위한 전자 장치 및 그 방법
아래의 설명들은, 텍스트를 표시하기 위한 전자 장치 및 그 방법에 관한 것이다.
사용자에 의해 그려진 획들에 의해 나타나는 손 글씨(handwriting)로부터 텍스트를 추출하는 전자 장치가 개발되고 있다. 예를 들어, 사용자는 전자 장치의 디스플레이 상에 접촉된 손가락, 스타일러스, 및/또는 디지타이저를 이동하거나, 또는 상기 전자 장치에 연결된 포인팅 장치(예, 마우스)를 이동하여, 손 글씨를 나타내는 획들을 그릴 수 있다. 상기 획들로부터, 전자 장치는 알파벳과 같은 글자를 식별할 수 있다. 하나 이상의 문자들을 식별하는 것에 기반하여, 전자 장치는, 상기 하나 이상의 문자들이 포함된 텍스트를 식별할 수 있다.
일 실시 예(an embodiment)에 따른, 전자 장치(electronic device)는, 디스플레이, 및 프로세서를 포함할 수 있다. 상기 프로세서는, 상기 디스플레이 내에 이미지를 표시할 수 있다. 상기 프로세서는, 상기 이미지로부터 텍스트를 선택함을 나타내는 제1 입력에 기반하여, 상기 제1 입력에 의해 선택된 상기 이미지 내 일부분(a portion) 상에 중첩으로, 제1 시각적 객체를 표시할 수 있다. 상기 프로세서는, 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분 내에 포함된 하나 이상의 문자들에 기반하여, 상기 제1 시각적 객체와 연계로, 상기 하나 이상의 문자들을 포함하는 제2 시각적 객체를 표시할 수 있다. 상기 프로세서는, 상기 이미지 상에 중첩된 상기 제1 시각적 객체의 사이즈를 조절함을 나타내는 제2 입력에 기반하여, 상기 조절된 사이즈를 가지는 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분에 기반하여, 상기 제2 시각적 객체 내에 포함된 상기 하나 이상의 문자들을 변경할 수 있다.
일 실시 예에 따른, 전자 장치의 방법은, 디스플레이 내에 이미지를 표시하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 이미지로부터 텍스트를 선택함을 나타내는 제1 입력에 기반하여, 상기 제1 입력에 의해 선택된 상기 이미지 내 일부분 상에 중첩으로, 제1 시각적 객체를 표시하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분 내에 포함된 하나 이상의 문자들에 기반하여, 상기 제1 시각적 객체와 연계로, 상기 하나 이상의 문자들을 포함하는 제2 시각적 객체를 표시하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 이미지 상에 중첩된 상기 제1 시각적 객체의 사이즈를 조절함을 나타내는 제2 입력에 기반하여, 상기 조절된 사이즈를 가지는 상기 제1 시각적 객체와 중첩된 상기 이미지의 일부분에 기반하여, 상기 제2 시각적 객체 내에 포함된 상기 하나 이상의 문자들을 변경하는 동작을 포함할 수 있다.
일 실시 예에 따른, 하나 이상의 프로그램들을 저장하는 컴퓨터 판독가능 저장 매체에 포함된 상기 하나 이상의 프로그램들은, 전자 장치의 프로세서에 의해 실행될 때에, 디스플레이 내에 이미지를 표시할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 상기 이미지로부터 텍스트를 선택함을 나타내는 제1 입력에 기반하여, 상기 제1 입력에 의해 선택된 상기 이미지 내 일부분 상에 중첩으로, 제1 시각적 객체를 표시하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분 내에 포함된 하나 이상의 문자들에 기반하여, 상기 제1 시각적 객체와 연계로, 상기 하나 이상의 문자들을 포함하는 제2 시각적 객체를 표시하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 상기 이미지 상에 중첩된 상기 제1 시각적 객체의 사이즈를 조절함을 나타내는 제2 입력에 기반하여, 상기 조절된 사이즈를 가지는 상기 제1 시각적 객체와 중첩된 상기 이미지의 일부분에 기반하여, 상기 제2 시각적 객체 내에 포함된 상기 하나 이상의 문자들을 변경하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다.
도 1은, 일 실시 예에 따른, 네트워크 환경 내의 전자 장치의 블록도의 일 예이다.
도 2는, 일 실시 예에 따른, 이미지 내에 포함된 텍스트를 획득하기 위한 전자 장치의 화면의 일 예이다.
도 3은, 일 실시 예에 따른, 전자 장치의 블록도의 일 예이다.
도 4a는, 일 실시 예에 따른, 이미지 내에 포함된 텍스트를 표시하는 전자 장치의 화면의 일 예이다.
도 4b는, 일 실시 예에 따른, 이미지 내에 포함된 텍스트를 표시하는 전자 장치의 화면의 일 예이다.
도 5a는, 일 실시 예에 따른, 이미지 내에 포함된 텍스트를 획득하기 위한 전자 장치의 화면의 일 예이다.
도 5b는, 일 실시 예에 따른, 이미지 내에 포함된 텍스트를 획득하기 위한 전자 장치의 화면의 일 예이다.
도 5c는, 일 실시 예에 따른, 이미지 내에 포함된 텍스트를 획득하기 위한 전자 장치의 화면의 일 예이다.
도 6은, 일 실시 예에 따른, 이미지로부터 획득된 분포 정보를 이용하여 텍스트를 분할하는 전자 장치의 동작의 일 예이다.
도 7은, 일 실시 예에 따른, 전자 장치의 동작에 관한 흐름도의 일 예이다.
도 1은, 일 실시 예에 따른, 네트워크 환경 내의 전자 장치의 블록도의 일 예이다.
도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.
보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다.
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다.
입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.
음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.
디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다.
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다.
인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.
배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.
통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제1 네트워크(198) 또는 제2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다.
무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.
다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.
일실시예에 따르면, 명령 또는 데이터는 제2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다.
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.
본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다.
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.
일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어™)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.
도 2는, 일 실시 예에 따른, 이미지 내에 포함된 텍스트를 획득하기 위한 전자 장치의 화면의 일 예이다. 도 2의 전자 장치(101)는, 도 1의 전자 장치의 일 예일 수 있다. 도 2의 동작들은, 도 1의 프로세서(120)에 의해 실행될 수 있다.
도 2를 참조하면, 전자 장치(101)는, 디스플레이(210)를 포함할 수 있다. 전자 장치(101)는, 디스플레이(210) 내에 이미지를 표시할 수 있다. 예를 들어, 전자 장치(101)의 디스플레이(210)는, 디스플레이(210) 상의 외부 객체(예, 사용자의 손가락, 스타일러스 펜)를 탐지하기 위한 센서(예, TSP(touch screen panel))를 포함할 수 있다. 예를 들어, TSP에 기반하여, 전자 장치(101)는, 디스플레이(210)와 접촉하거나, 또는 디스플레이(210)을 부유하는(floating) 외부 객체를 탐지할 수 있다. 예를 들어, 전자 장치(101)는 상기 외부 객체를 탐지할 것에 기반하여, 상기 외부 객체가 탐지된 영역에 대한 입력을 식별할 수 있다. 예를 들어, 전자 장치(101)는, 상기 외부 객체로부터 입력을 수신한 것에 기반하여, 상기 이미지 내의 적어도 일부에 상기 입력에 매칭된 제1 시각적 객체(220)를 표시할 수 있다. 예를 들어, 상기 제1 시각적 객체(220)는, 상기 입력에 기반하여 선택된 영역을 나타내기 위한 제2 시각적 객체들(220-1, 220-2)과 함께 표시될 수 있다.
일 실시 예에 따른, 전자 장치(101)는, 디스플레이(210)를 통해 이미지를 표시한 것에 기반하여, 상기 이미지 내의 적어도 일부분(a portion)을 선택하기 위한 입력을 수신할 수 있다. 예를 들어, 전자 장치(101)는, 상기 이미지 내의 적어도 일부분을 선택하기 위한 입력을 수신한 것에 기반하여, 상기 선택에 매칭되는 일부분 상에 제1 시각적 객체(220)를 중첩으로 표시할 수 있다.
일 실시 예에 따른, 전자 장치(101)는, 상기 제1 시각적 객체(220)를 표시하는 동안, 상기 제1 시각적 객체(220) 내에 포함된 하나 이상의 문자들을 식별할 수 있다. 예를 들어, 전자 장치(101)는, 상기 이미지 내에 선택된 영역에 매칭되는 하나 이상의 문자들을 식별할 수 있다. 전자 장치(101)는, 상기 하나 이상의 문자들을 식별한 것에 기반하여, 상기 문자들에 매칭된, 상기 제1 시각적 객체(220)와 상이한 제2 시각적 객체를 표시할 수 있다. 상기 제1 시각적 객체(220)와 상이한 제2 시각적 객체를 이용하여 하나 이상의 문자들을 표시하는 동작은 도 4에서 후술된다.
일 실시 예에 따른, 전자 장치(101)는, 상기 제1 시각적 객체(220)의 영역을 나타내기 위한 상기 제1 시각적 객체(220)와 상이한 제2 시각적 객체들(220-1, 220-2)을 표시할 수 있다. 예를 들어, 상기 제2 시각적 객체들(220-1, 220-2)은, 제1 시각적 객체(220)의 너비(w)를 표시할 수 있다. 전자 장치(101)는, 상기 제1 시각적 객체(220)의 사이즈를 조절하기 위한 입력을 수신할 수 있다. 예를 들어, 상기 제1 시각적 객체(220)의 사이즈를 조절하기 위한 입력은, 제2 시각적 객체들(220-1, 220-2)에 대한 입력을 포함할 수 있다. 전자 장치(101)는, 상기 제2 시각적 객체들(220-1, 220-2)에 대한 입력을 수신할 수 있다. 예를 들어, 상기 제2 시각적 객체들(220-1, 220-2)에 대한 입력은, 상기 제2 시각적 객체들(220-1, 220-2) 중 적어도 하나를 드래그하는 입력을 포함할 수 있다. 예를 들어, 상기 제2 시각적 객체들(220-1, 220-2)에 대한 입력은, 제1 시각적 객체(220)의 일 단(예, 시작 단, 또는 끝 단 중 적어도 하나)을 드래그하는 입력을 포함할 수 있다. 상기 제1 시각적 객체(220), 및/또는 상기 제2 시각적 객체들(220-1, 220-2)을 조절하기 위한 동작은 도 5a, 및/또는 도 5b에서 후술된다.
일 실시 예에 따른, 전자 장치(101)는, 상기 제1 시각적 객체(220)를 식별한 것에 기반하여, 상기 제1 시각적 객체(220)에 매칭되는 하나 이상의 문자들을 디스플레이(210)를 통해 표시할 수 있다. 상기 제1 시각적 객체(220)에 매칭되는 하나 이상의 문자들을 디스플레이(210)를 통해 표시하기 위하여, 상기 제1 시각적 객체(220) 내에 포함된 하나 이상의 문자들을 분할하기 위한 동작은, 도 6에서 후술된다.
상술한 바에 따른, 일 실시 예에 따른, 전자 장치(101)는, 제1 시각적 객체(220)에 매칭된 하나 이상의 문자들을 식별할 수 있다. 전자 장치(101)는 상기 매칭된 하나 이상의 문자들을 식별한 것에 기반하여, 상기 매칭된 하나 이상의 문자들의 선택을 나타내기 위한 상기 제1 시각적 객체(220)와 상이한 제2 시각적 객체를 이용하여, 디스플레이(210) 내에 표시된 이미지에 중첩으로 표시할 수 있다. 전자 장치(101)는, 상기 하나 이상의 문자들을 식별한 것에 기반하여, 상기 하나 이상의 문자들에 매칭된 텍스트를 디스플레이(210) 내에 표시함으로써, 전자 장치(101)의 사용자 경험을 강화할 수 있다.
도 3은, 일 실시 예에 따른, 전자 장치의 블록도의 일 예이다. 도 3의 전자 장치(101)는, 도 1, 및/또는 도 2의 전자 장치(101)의 일 예일 수 있다. 도 3의 디스플레이(210)는 도 2의 디스플레이(210)의 일 예일 수 있다. 도 3의 동작들은, 도 1의 프로세서(120)에 의해 실행될 수 있다.
도 3을 참조하면, 일 실시 예에 따른, 전자 장치(101)는, 프로세서(120), 및/또는 디스플레이(210)를 포함할 수 있다. 프로세서(120), 디스플레이(210)는, 통신 버스(a communication bus)(310)와 같은 전자 소자(electronic component)에 의해 서로 전기적으로 및/또는 작동적으로 연결될 수 있다(electronically and/or operably coupled with each other). 예를 들어, 상이한 블록들에 기반하여 도시되었으나, 실시 예가 이에 한정되는 것은 아니다. 예를 들어, 도 3에 도시된 하드웨어 컴포넌트 중 일부분(예, 프로세서(120), 및/또는 디스플레이(210))이 SoC(system on a chip)와 같이 단일 집적 회로(single integrated circuit)에 포함될 수 있다. 전자 장치(101)에 포함된 하드웨어 컴포넌트의 타입, 및/또는 개수는, 도 3에 도시된 바에 제한되지 않는다. 예를 들어, 전자 장치(101)는, 도 3에 도시된 하드웨어 컴포넌트 중 일부만 포함할 수 있다. 프로세서(120), 및/또는 디스플레이(210)는, 단수로 도시되었으나 복수일 수 있다.
일 실시 예에 따른, 전자 장치(101)의 프로세서(120)는, 도 1의 프로세서(120)의 적어도 일부에 상응할 수 있다. 일 실시 예에 따른, 프로세서(120)는, 하나 이상의 인스트럭션들에 기반하여 데이터를 처리하기 위한 하드웨어 컴포넌트를 포함할 수 있다. 데이터를 처리하기 위한 하드웨어 컴포넌트는, 예를 들어, ALU(arithmetic and logic unit), FPU(floating point unit), FPGA(field programmable gate array), AP(application processor), Micom(micro-computer, 및/또는 micom controller), 및/또는 CPU(central processing unit)을 포함할 수 있다. 프로세서(120)의 개수는 하나 이상일 수 있다. 예를 들어, 프로세서(120)는, 듀얼 코어(dual core), 쿼드 코어(quad core), 또는 헥사 코어(hexa core)와 같은 멀티-코어 프로세서의 구조를 가질 수 있다. 예를 들어, 프로세서(120)는, 싱글 코어(single core)와 같은 단일 코어 프로세서의 구조를 가질 수 있다.
일 실시 예에 따른, 전자 장치(101)의 디스플레이(210)는, 프로세서(120)와 같은 컨트롤러에 의해 제어되어, 사용자에게 시각화된 정보(visualized information)를 출력할 수 있다. 상기 디스플레이(210)는, FPD(flat panel display), 및/또는 전자 종이(electronic paper)를 포함할 수 있다. 상기 디스플레이(210)는, 변형 가능한(deformable) 디스플레이를 포함할 수 있다. 상기 FPD는, LCD(light emitting diode)를 포함할 수 있다. 상기 LED는, OLED(organic light emitting diode)를 포함할 수 있다.
예를 들어, 디스플레이(210)는, 디스플레이(210)를 보호하기 위한 커버 패널(C-panel, 또는 cover panel), 베이스 기판, 베이스 기판에 형성된 박막 트랜지스터(TFT, thin film transistor) 레이어로부터 인가되는 전압에 기반하여 발광되는 픽셀들을 포함하는 픽셀 레이어(또는 유기 발광(organic light emitting diode) 레이어), 또는 상기 픽셀 레이어 상에 배치되는 편광 레이어 중 적어도 하나를 포함할 수 있다. 예를 들어, 상기 기판은 복수의 레이어들로 형성될 수 있다.
일 실시 예에 따른, 전자 장치(101)의 프로세서(120)는, 디스플레이(210)를 제어하여, 상기 디스플레이(210) 내에 이미지를 표시할 수 있다. 상기 프로세서(120)는, 상기 디스플레이(210) 내에 이미지를 표시한 상태 내에서, 디스플레이(210)를 통하여, 상기 이미지의 일부분(a portion)을 선택하기 위한 입력을 수신할 수 있다. 상기 프로세서(120)는, 상기 이미지로부터 텍스트를 선택함을 나타내는 제1 입력을 수신할 수 있다. 상기 프로세서(120)는, 상기 제1 입력에 기반하여, 상기 제1 입력에 의해 선택된 상기 이미지 내 일부분 상에 중첩으로, 제1 시각적 객체(예, 도 2의 제1 시각적 객체(220)를 표시할 수 있다.
일 실시 예에 따른, 프로세서(120)는, 제1 시각적 객체와 중첩된 이미지의 일부분 내에 포함된 하나 이상의 문자들을 식별할 수 있다. 예를 들어, 상기 하나 이상의 문자들을 식별할 때에, 전자 장치(101)의 프로세서(120)는, OCR(optical character recognition) 기능을 실행할 수 있다. 예를 들어, 상기 OCR 기능은, 이미지의 적어도 일부분으로부터 하나 이상의 문자들을 식별하여 텍스트로 변환하는 기능을 포함할 수 있다. 예를 들어, 상기 OCR 기능은, 이미지 내에서 식별된 적어도 하나의 문자들을 이진법 데이터로 변환하는 동작을 포함할 수 있다. 상기 OCR 기능은, 상기 이진법 데이터로 변환된 적어도 하나의 문자들에 기반하여, 텍스트를 획득하는 기능을 포함할 수 있다. 프로세서(120)는 상기 하나 이상의 문자들에 기반하여, 상기 제1 시각적 객체와 연계로 상기 하나 이상의 문자들을 포함하는 제2 시각적 객체를 표시할 수 있다. 일 실시 예에 따른, 전자 장치(101)는, 상기 제1 시각적 객체 내에 포함된 하나 이상의 문자들을 분할하여 텍스트를 획득할 수 있다. 상기 제2 시각적 객체를 표시하는 동작에 대한 설명은, 도 4a, 및/또는 도 4b에서 후술된다.
일 실시 예에 따른, 프로세서(120)는, 이미지 상에 중첩된 제1 시각적 객체의 사이즈를 조절함을 나타내는 제2 입력을 수신할 수 있다. 예를 들어, 상기 제2 입력은, 제1 시각적 객체와 함께 표시되는 제2 시각적 객체에 대한 입력을 포함할 수 있다. 예를 들어, 상기 제2 시각적 객체는, 상기 제1 시각적 객체 내에서 식별된 하나 이상의 문자들을 표시하기 위한 시각적 객체를 포함할 수 있다. 예를 들어, 상기 제2 입력은, 상기 제2 시각적 객체를 드래그하는 입력을 포함할 수 있다. 상기 프로세서(120)는, 상기 제2 입력에 기반하여 조절된 사이즈를 가지는 제1 시각적 객체를 식별할 수 있다. 상기 프로세서(120)는, 상기 조절된 사이즈를 가지는 상기 제1 시각적 객체를 이미지의 일부분에 중첩으로 표시할 수 있다. 상기 프로세서(120)는, 상기 조절된 사이즈를 가지는 상기 제1 시각적 객체와 중첩된 상기 이미지의 일부분에 기반하여, 상기 제2 시각적 객체 내에 포함된 하나 이상의 문자들을 변경할 수 있다. 일 실시 예에 따른, 프로세서(120)는, 상기 제2 시각적 객체를, 상기 제1 시각적 객체 상에 중첩으로 표시할 수 있다. 상기 중첩으로 표시된 제2 시각적 객체는, 제1 시각적 객체 내에 포함된 하나 이상의 문자들을 식별하여 텍스트로 나타내기 위한 시각적 객체를 포함할 수 있다. 제2 시각적 객체가 제1 시각적 객체와 중첩으로 표시된 경우, 상기 제2 시각적 객체는 상기 제1 시각적 객체와 실질적으로 동일한 영역 내에서 표시될 수 있다.
일 실시 예에 따른, 전자 장치(101)의 프로세서(120)는, 디스플레이(210) 내에 표시된 제2 시각적 객체 내에, 제1 시각적 객체 내에 포함된 제1 텍스트를 표시할 수 있다. 상기 제1 텍스트는, 제1 시각적 객체 내에서 식별된 하나 이상의 문자들을 포함할 수 있다. 프로세서(120)는, 상기 제2 시각적 객체 내에, 상기 제1 시각적 객체와 중첩된 상기 이미지의 일부분에 연결된 다른 부분 내에 포함된 제2 텍스트를 표시할 수 있다.
일 실시 예에 따른, 전자 장치(101)의 프로세서(120)는, 상기 제2 시각적 객체 내에서, 제1 지정된 색상에 기반하여, 제1 텍스트를 표시할 수 있다. 프로세서(120)는, 제1 텍스트를 제1 지정된 색상으로 표시할 수 있다. 프로세서(120)는, 상기 제1 텍스트와 상이한 제2 텍스트를 제2 지정된 색상으로 표시할 수 있다. 상기 제2 텍스트는, 상기 제1 시각적 객체 내에서 식별된 하나 이상의 문자들과 연결된 일부분의 하나 이상의 문자들을 포함할 수 있다.
상술한 바와 같이, 일 실시 예에 따른, 전자 장치(101)는, 이미지로부터 텍스트를 선택함을 나타내는 입력에 기반하여, 제1 시각적 객체를 표시할 수 있다. 전자 장치(101)는, 상기 제1 시각적 객체에 기반하여, 제2 시각적 객체를 표시할 수 있다. 전자 장치(101)는, 상기 제2 시각적 객체 내에, 상기 제1 시각적 객체에 포함된 하나 이상의 문자들을 식별하여 텍스트로 표시할 수 있다. 전자 장치(101)는, 상기 텍스트를, 상기 제2 시각적 객체에 표시함으로써, 전자 장치(101)의 사용자 경험을 강화할 수 있다.
도 4a는, 일 실시 예에 따른, 이미지 내에 포함된 텍스트를 표시하는 전자 장치의 화면의 일 예이다. 도 4b는, 일 실시 예에 따른, 이미지 내에 포함된 텍스트를 표시하는 전자 장치의 화면의 일 예이다. 도 4a, 및/또는 도 4b의 전자 장치(101)는, 도 1, 도 2, 및/또는 도 3의 전자 장치(101)의 일 예일 수 있다. 도 4a, 및/또는 도 4b의 디스플레이(210)는, 도 2, 및/또는 도 3의 디스플레이(210)의 일 예일 수 있다. 도 4a, 및/또는 도 4b의 동작들은, 도 1, 및/또는 도 3의 프로세서(120)에 의해 실행될 수 있다.
도 4a, 및/또는 도 4b를 참조하면, 일 실시 예에 따른, 전자 장치(101)는, 디스플레이(210) 내에 이미지를 표시할 수 있다. 예를 들어, 전자 장치(101)는, 상기 이미지를 표시하는 동안, 상기 이미지로부터 텍스트를 선택함을 나타내는 제1 입력을 수신할 수 있다. 전자 장치(101)는, 상기 제1 입력을 수신한 것에 기반하여, 상기 제1 입력에 의해 선택된 상기 이미지 내 일부분 상에 중첩으로, 제1 시각적 객체(220)를 표시할 수 있다. 전자 장치(101)는, 상기 제1 시각적 객체(220)와 중첩된 상기 이미지의 상기 일부분 내에 포함된 하나 이상의 문자들에 기반하여, 상기 제1 시각적 객체(220)와 연계로, 제2 시각적 객체(420)를 표시할 수 있다. 예를 들어, 상기 제2 시각적 객체(420)는, 기능(예, 공유, 검색, 모두 선택, 번역, 복사)을 실행하기 위한 메뉴(420-1)를 포함할 수 있다. 예를 들어, 상기 메뉴(420-1)는, 입력을 수신하기 위한 버튼들로 구성될 수 있다. 예를 들어, 상기 메뉴(420-1)는, 상기 기능을 나타내기 위한 아이콘과 함께 표시될 수 있다. 예를 들어, 전자 장치(101)는, 상기 메뉴(420-1) 중 적어도 하나에 대한 입력에 기반하여, 상기 제1 시각적 객체(220) 내에 포함된 텍스트에 대하여, 상기 입력에 매칭되는 기능을 실행할 수 있다. 예를 들어, 전자 장치(101)는, 상기 메뉴(420-1) 중 '공유' 버튼에 대한 입력에 기반하여, 상기 제1 시각적 객체(220)에 매칭되는 텍스트를 외부 전자 장치로 송신하기 위한 기능을 실행할 수 있다. 예를 들어, 전자 장치(101)는, 상기 메뉴(420-1) 중 '검색' 버튼에 대한 입력에 기반하여, 상기 제1 시각적 객체(220)에 매칭되는 텍스트를, 이미지를 표시하는 어플리케이션과 상이한 어플리케이션에 기반하여, 검색 기능을 수행할 수 있다. 상기 검색 기능은, 인터넷 어플리케이션, 및/또는 전자 장치(101) 내에 포함된 어플리케이션의 적어도 일부에 기반하여 실행될 수 있다.
예를 들어, 상기 제2 시각적 객체(420)는, 상기 하나 이상의 문자들에 기반하여 획득된 텍스트를 나타내기 위한 제3 시각적 객체(420-2)를 포함할 수 있다. 도 4를 참조하면, 전자 장치(101)는, 제1 시각적 객체(220) 내에 포함된 'nice to'와 같은 텍스트를, 제3 시각적 객체(420-2) 내에 표시할 수 있다. 예를 들어, 전자 장치(101)는, 상기 제1 시각적 객체(220)에 기반하여, 상기 메뉴(420-1), 및 제3 시각적 객체(420-2)를 함께 표시할 수 있다. 상기 메뉴(420-1), 및 제3 시각적 객체(420-2)를 함께 표시하는 동작은, 일 예시(an example)이며, 이에 제한되지 않는다.
일 실시 예에 따른, 전자 장치(101)는, 제1 시각적 객체(220)로부터 획득된 제1 텍스트, 및 상기 제1 시각적 객체(220)와 중첩된 상기 이미지의 상기 일부분에 연결된 다른 부분(410) 내에 포함된 제2 텍스트를 표시할 수 있다. 도 4를 참조하면, 전자 장치(101)는, 제1 시각적 객체(220)로부터 획득된 제1 텍스트인 'nice to'를 표시하는 동안, 상기 제1 시각적 객체(220)와 연결된 다른 부분(410)으로부터 획득된 제2 텍스트인 'meet you. How are you? I'm fine thank you.'를, 제2 시각적 객체(420) 내에 함께 표시할 수 있다. 예를 들어, 전자 장치(101)는, 상기 다른 부분(410)로부터 획득된 제2 텍스트 중 적어도 일부를 제2 시각적 객체(420) 내에 표시할 수 있다. 예를 들어, 전자 장치(101)는, 상기 다른 부분(410)로부터 획득된 적어도 일부인, 'meet you.'를 제1 텍스트인 'nice to'와 함께 표시할 수 있다. 상기 메뉴(420-1), 및 제3 시각적 객체(420-2)를 함께 표시하는 동작은, 일 예시(an example)이며, 이에 제한되지 않는다.
일 실시 예에 따른, 전자 장치(101)는, 이미지로부터 텍스트를 선택함을 나타내는 제1 입력에 기반하여, 상기 제1 입력에 의해 선택된 상기 이미지 내 일부분 상에, 제1 시각적 객체(220)를 표시할 수 있다. 상기 제1 시각적 객체(220)를 표시하는 동안, 전자 장치(101)는, 상기 제1 시각적 객체(220) 내에 포함된 하나 이상의 문자들을 표시하기 위한 제2 시각적 객체(420)를 표시할 수 있다. 전자 장치(101)는, 상기 제2 시각적 객체(420)를 상기 이미지를 표시하는 영역과 상이한 영역 내에 표시할 수 있다.
일 실시 예에 따른, 전자 장치(101)는, 제2 시각적 객체(420) 내에서, 제1 지정된 색상에 기반하여 제1 텍스트를 표시할 수 있다. 예를 들어, 상기 제1 텍스트는, 이미지 내에 포함된 하나 이상의 문자들을 선택함을 나타내는 입력에 기반하여 획득된 텍스트를 포함할 수 있다. 예를 들어, 상기 제1 텍스트는, 제1 시각적 객체(220)에 매칭되는 텍스트들을 포함할 수 있다. 전자 장치(101)는, 상기 제1 지정된 색상에 기반하여 제1 텍스트를 표시하는 동안, 상기 제1 지정된 색상과 상이한 제2 지정된 색상에 기반하여 제2 텍스트를 표시할 수 있다. 상기 제2 텍스트는, 다른 부분(410)로부터 획득된 텍스트를 포함할 수 있다. 상술한 바와 같이, 일 실시 예에 따른, 전자 장치(101)는, 상기 제1 지정된 색상으로 제1 텍스트를 표시하고, 상기 제2 지정된 색상으로 제2 텍스트를 표시하여, 전자 장치(101)의 사용자 경험을 강화할 수 있다.
도 4b를 참조하면, 일 실시 예에 따른, 전자 장치(101)는, 이미지 내에 포함된 하나 이상의 문자들에 기반하여 획득된 텍스트(430)를 표시할 수 있다. 전자 장치(101)는, 상기 하나 이상의 문자들이 포함된 영역(440) 내에 상기 하나 이상의 문자들로부터 획득된 텍스트(430)를 상기 하나 이상의 문자들에 중첩으로 표시할 수 있다. 전자 장치(101)는, 상기 영역(440) 내에 텍스트를 선택함을 나타내는 입력을 수신할 수 있다. 전자 장치(101)는, 상기 입력에 기반하여, 상기 입력을 나타내기 위해 상기 텍스트(430)의 적어도 일부를, 강조하여 표시할 수 있다. 예를 들어, 전자 장치(101)는, 상기 입력에 매칭되는 텍스트를, 지정된 색상으로 표시할 수 있다. 예를 들어, 전자 장치(101)는, 상기 입력에 매칭되는 텍스트를 표시하는 영역을, 상기 텍스트의 색상과 상이한 색상으로 구별하여 표시할 수 있다. 예를 들어, 전자 장치(101)는, 텍스트를 음영 처리하여 표시할 수 있다. 예를 들어, 전자 장치(101)는, 상기 입력에 매칭되는 텍스트를, 볼드(bold) 처리하여 표시할 수 있다. 예를 들어, 전자 장치(101)는, 상기 입력에 매칭되는 텍스트를, 이탤릭(italic) 처리하여 표시할 수 있다. 상술한 바와 같이, 일 실시 예에 따른, 전자 장치(101)는, 지정된 색상에 기반하여, 선택된 텍스트를 표시함으로써, 전자 장치(101)의 사용자 경험을 강화할 수 있다. 전자 장치(101)는, 상기 텍스트를 볼드 처리하여 표시함으로써, 전자 장치(101)의 사용자 경험을 강화할 수 있다. 전자 장치(101)는, 상기 텍스트를 이탤릭 처리하여 표시함으로써, 전자 장치(101)의 사용자 경험을 강화할 수 있다.
일 실시 예에 따른, 전자 장치(101)는, 영역(440) 내에 포함된 하나 이상의 문자들을 식별하는 동안, 디스플레이(210)를 통하여, 상기 하나 이상의 문자들에 매칭되는 텍스트 중 적어도 일부를 표시할 수 있다. 예를 들어, 전자 장치(101)는, 제1 시각적 객체(220) 내에 포함된 하나 이상의 문자들의 적어도 일부가 선택된 것에 기반하여, 상기 텍스트(430)의 적어도 일부의 표시를 변경할 수 있다. 예를 들어, 전자 장치(101)는, 제1 시각적 객체(220) 내에 포함된 하나 이상의 문자들의 적어도 일부가 선택된 것에 기반하여, 상기 텍스트(430)를 음영 처리하여 표시할 수 있다. 예를 들어, 전자 장치(101)는, 제1 시각적 객체(220) 내에 포함된 하나 이상의 문자들의 적어도 일부가 선택된 것에 기반하여, 상기 텍스트(430)를 이탤릭 처리하여 표시할 수 있다. 예를 들어, 전자 장치(101)는, 제1 시각적 객체(220) 내에 포함된 하나 이상의 문자들의 적어도 일부가 선택된 것에 기반하여, 상기 텍스트(430)를 볼드 처리하여 표시할 수 있다.
일 실시 예에 따른, 전자 장치(101)는, 영역(440) 내에 포함된 라인들(lines)을 식별할 수 있다. 상기 라인들은, 하나 이상의 문자들을 포함할 수 있다. 전자 장치(101)는, 상기 라인들 중 하나를 선택함을 나타내는 입력을 수신할 수 있다. 전자 장치(101)는, 상기 입력에 기반하여, 상기 입력이 수신된 라인 내에 포함된 하나 이상의 문자들에 매칭되는 텍스트를 표시할 수 있다.
도 4a 내지 도 4b를 참조하면, 일 실시 예에 따른, 전자 장치(101)는, 이미지의 일부분에 기반하여 획득된 텍스트를 표시하는 제2 시각적 객체(420), 및/또는 텍스트(430)를 표시하는 동안, 이미지를 표시하는 디스플레이(210)로부터 입력을 수신할 수 있다. 예를 들어, 전자 장치는, 상기 입력을 수신한 것에 기반하여, 제2 시각적 객체(420), 및/또는 텍스트(430)의 표시를 중단할 수 있다. 예를 들어, 상기 입력은, 상기 디스플레이(210)를 탭(tap)하는 제스쳐를 포함할 수 있다. 예를 들어, 상기 입력은, 제2 시각적 객체(420), 및/또는 텍스트(430)을, 제1 지정된 방향으로 드래그하는 입력을 포함할 수 있다. 전자 장치는, 상기 제1 지정된 방향으로 드래그하는 입력에 기반하여, 상기 제2 시각적 객체(420), 및/또는 텍스트(430)의 표시를 중단할 수 있다. 전자 장치는, 상기 제1 지정된 방향과 상이한 제2 지정된 방향으로 드래그하는 입력을 수신할 수 있다. 전자 장치는, 상기 제2 지정된 방향으로 드래그하는 입력에 기반하여, 상기 제2 시각적 객체(420), 및/또는 텍스트(430)을 표시할 수 있다. 상술한 바와 같이, 일 실시 예에 따른, 전자 장치(101)는, 제2 시각적 객체(420), 및/또는 텍스트(430)를 표시함으로써, 전자 장치(101)의 사용자 경험을 강화할 수 있다.
도 5a는, 일 실시 예에 따른, 이미지 내에 포함된 텍스트를 획득하기 위한 전자 장치의 화면의 일 예이다. 도 5b는, 일 실시 예에 따른, 이미지 내에 포함된 텍스트를 획득하기 위한 전자 장치의 화면의 일 예이다. 도 5c는, 일 실시 예에 따른, 이미지 내에 포함된 텍스트를 획득하기 위한 전자 장치의 화면의 일 예이다. 도 5a, 도 5b, 및/또는 도 5c의 전자 장치(101)는, 도 1, 도 2, 도 3, 도 4a, 및/또는 도 4b의 전자 장치(101)의 일 예일 수 있다. 도 5a, 도 5b, 및/또는 도 5c의 디스플레이(210)는, 도 2, 도 3, 도 4a, 및/또는 도 4b의 디스플레이(210)의 일 예일 수 있다. 도 5a, 도 5b, 및/또는 도 5c의 동작들은, 도 1, 및/또는 도 3의 프로세서(120)에 의해 실행될 수 있다.
도 5a, 도 5b, 및/또는 도 5c를 참조하면, 일 실시 예에 따른, 전자 장치(101)는, 디스플레이(210) 내에 이미지를 표시할 수 있다. 전자 장치(101)는, 상기 이미지로부터 텍스트를 선택합을 나타내는 제1 입력을 수신할 수 있다. 전자 장치(101)는, 상기 제1 입력에 의해 선택된 상기 이미지 내 일부분 상에, 제1 시각적 객체(220)를 표시할 수 있다. 전자 장치(101)는, 상기 제1 시각적 객체(220)를 표시하는 동안, 상기 제1 시각적 객체(220)가 선택된 영역을 표시하기 위한 상기 제1 시각적 객체(220)와 상이한 제2 시각적 객체들(220-1, 220-2)을 표시할 수 있다.
일 실시 예에 따른, 전자 장치(101)는, 제1 시각적 객체(220)의 사이즈를 조절함을 나타내는 제2 입력(510)을 수신할 수 있다. 예를 들어, 상기 제2 입력(510)은, 제1 시각적 객체(220)의 일 단을 드래그하는 입력을 포함할 수 있다. 예를 들어, 상기 제2 입력(510)은, 제2 시각적 객체들(220-1, 220-2) 중 적어도 하나를 드래그하는 입력을 포함할 수 있다. 전자 장치(101)는, 상기 제2 입력(510)에 기반하여, 조절된 사이즈를 가지는 제1 시각적 객체(520)를 디스플레이(210) 내에 표시할 수 있다. 예를 들어, 도 5b를 참조하면, 전자 장치(101)는, 상기 제2 입력(510)에 기반하여, 제1 시각적 객체(220)의 사이즈가 변경되는 동안, 상기 변경되는 동안의 사이즈를 가지는 제1 시각적 객체(220)를 표시할 수 있다.
도 5a 내지 도 5c를 참조하면, 일 실시 예에 따른, 전자 장치(101)는, 제1 시각적 객체(220)를 표시하는 동안, 상기 제1 시각적 객체(220)로부터 획득된 제1 텍스트를 디스플레이(210) 내에 표시할 수 있다. 전자 장치(101)는, 상기 제1 시각적 객체(220)로부터 획득된 텍스트를 표시하는 동안, 상기 제1 시각적 객체(220)의 사이즈를 조절함을 나타내는 제2 입력(510)을 수신할 수 있다. 전자 장치(101)는, 상기 제2 입력(510)에 기반하여 조절된 사이즈를 가지는 제1 시각적 객체(520)에 매칭되는 텍스트를 디스플레이(210) 내에 표시할 수 있다. 예를 들어, 상기 텍스트는, 상기 제1 시각적 객체(220), 제2 시각적 객체들(220-1, 220-2), 및/또는 조절된 사이즈를 가지는 제1 시각적 객체(520)와 상이한 시각적 객체에 기반하여 표시될 수 있다. 상기 텍스트는, 제1 시각적 객체(220), 및/또는 조절된 사이즈를 가지는 제1 시각적 객체(520) 상에 중첩으로, 전자 장치(101)에 의해 표시될 수 있다.
상술한 바와 같이, 일 실시 예에 따른, 전자 장치(101)는, 텍스트를 선택함을 나타내는 제1 입력에 기반하여, 제1 시각적 객체(220), 및/또는 제2 시각적 객체들(220-1, 220-2)을 표시할 수 있다. 전자 장치(101)는, 상기 제1 시각적 객체(220)를 표시하는 동안, 상기 제1 시각적 객체에 매칭되는 텍스트를 표시할 수 있다. 전자 장치(101)는 상기 제1 시각적 객체(220)의 사이즈를 조절하는 제2 입력(510)를 수신할 수 있다. 전자 장치(101)는, 상기 제2 입력(510)를 수신한 것에 기반하여, 조절된 사이즈를 가지는 제1 시각적 객체(520)를 표시할 수 있다. 전자 장치(101)는, 제1 시각적 객체(220)로부터 조절된 사이즈를 가지는 제1 시각적 객체(520)로 표시를 변경한 것에 기반하여, 상기 제1 시각적 객체(220)에 매칭되는 텍스트를, 상기 조절된 사이즈를 가지는 제1 시각적 객체(520)에 매칭되는 텍스트로 변경하여 표시할 수 있다. 전자 장치(101)는, 상기 조절된 사이즈를 가지는 제1 시각적 객체(520)에 매칭되는 텍스트로 변경하여 표시함으로써, 전자 장치(101)의 사용자 경험을 강화할 수 있다.
도 6은, 일 실시 예에 따른, 이미지로부터 획득된 분포 정보를 이용하여 텍스트를 분할하는 전자 장치의 동작의 일 예이다. 도 6의 전자 장치는, 도 1, 도 2, 도 3, 도 4a, 도 4b, 도 5a, 도 5b, 및/또는 도 5c의 전자 장치(101)의 일 예일 수 있다. 도 6의 동작들은, 도 1, 및/또는 도 3의 프로세서(120)에 의해 실행될 수 있다.
도 6을 참조하면, 일 실시 예에 따른, 전자 장치는, 디스플레이(예, 도 2, 도 3, 도 4a, 도 4b, 도 5a, 도 5b, 및/또는 도 5c의 디스플레이(210)) 내에 이미지를 표시할 수 있다. 전자 장치는, 상기 이미지를 표시하는 동안, 상기 이미지로부터 텍스트를 선택함을 나타내는 입력에 기반하여, 상기 입력에 매칭되는 부분의 이미지를 획득할 수 있다. 전자 장치는, 상기 이미지를 식별하여, 상기 이미지 내에 포함된 하나 이상의 문자들에 매칭되는 텍스트를 획득할 수 있다.
일 실시 예에 따른, 전자 장치는, 제1 입력에 기반하여, 상기 제1 입력에 매칭되는 이미지 내의 일부분(610)을 식별할 수 있다. 예를 들어, 전자 장치는, 상기 제1 입력에 기반하여 선택된 상기 이미지 내의 상기 일부분(610)에 매칭되는 제1 시각적 객체를 표시할 수 있다. 전자 장치는, 상기 제1 입력에 의해 선택된 상기 일부분(610) 내에서, 상기 일부분(610) 내에서 하나 이상의 문자들을 표현하는(representing) 상기 이미지의 제3 시각적 객체의 분포를 포함하는 분포 정보를 획득할 수 있다. 예를 들어, 상기 제3 시각적 객체는, 이미지의 일부분에 포함된 하나 이상의 문자들의 획들과 관련될 수 있다. 예를 들어, 상기 제3 시각적 객체는, 하나 이상의 문자들을 표현하는 하나 이상의 획들과 관련될 수 있다. 예를 들어, 상기 제3 시각적 객체의 분포를 포함하는 분포 정보는, 상기 이미지의 일부분(610)로부터 획득된 히스토그램(histogram)을 포함할 수 있다. 예를 들어, 상기 히스토그램은, 상기 이미지 내에서, 하나 이상의 문자들로 식별될 수 있는 픽셀들에 기반하여 획득될 수 있다. 전자 장치는, 픽셀들에 기반하여 상기 히스토그램을 획득한 것에 기반하여, 상기 히스토그램의 누적 히스토그램을 획득할 수 있다. 상기 누적 히스토그램은, 히스토그램의 시작 점으로부터 획득된 값들은 가산하여 획득된 히스토그램일 수 있다. 전자 장치는, 상기 누적 히스토그램을 획득한 것에 기반하여, 정규화된 평균 히스토그램을 획득할 수 있다. 상술한 바와 같이, 일 실시 예에 따른, 전자 장치(101)는, 상기 누적 히스토그램에 기반하여, 정규화된 평균 히스토그램을 획득함으로써, 누적 히스토그램을 이용하지 않는 경우에 비해 더 빠르게 정규화된 평균 히스토그램을 획득할 수 있다. 상기 평균 히스토그램은, 지정된 너비(w)를 가지는 윈도우(640) 내의 히스토그램의 평균 값에 대한 히스토그램일 수 있다. 상기 정규화된 평균 히스토그램은, 상기 평균 히스토그램을 정규화한 히스토그램일 수 있다. 예를 들어, 상기 정규화된 평균 히스토그램은, 상기 평균 히스토그램 내에서 최대 값을 기준으로 빈도 값을 0 내지 1 사이의 값으로 정규화한 히스토그램일 수 있다. 상기 정규화된 평균 히스토그램 내에서 표시되는 빈도 값들은, 상기 빈도 값들 각각이 표시되는 위치 내에 하나 이상의 문자들을 구성하기 위한 획들에 매칭될 수 있다.
일 실시 예에 따른, 전자 장치는, 이미지 내에 텍스트를 선택함을 나타내는 입력에 기반하여, 제1 시각적 객체를 표시할 수 있다. 전자 장치는, 상기 제1 시각적 객체 내에 포함된 텍스트를 획득할 수 있다. 예를 들어, 전자 장치는, 상기 이미지의 일부분(610)로부터 획득된 히스토그램(예, 정규화된 평균 히스토그램)을 획득할 수 있다. 전자 장치는, 상기 제1 시각적 객체로부터 획득된 상기 히스토그램에 기반하여, 상기 제1 시각적 객체 내에 포함된 하나 이상의 문자들을 분할할 수 있다. 전자 장치는, 상기 히스토그램에 기반하여, 상기 하나 이상의 문자들을 분할하기 위한 분할 강도(segment intensity)를 식별할 수 있다. 예를 들어, 전자 장치는, 상기 히스토그램 내에서 식별되는 빈도 값에 기반하여 상기 분할 강도를 식별할 수 있다. 예를 들어, 전자 장치는, 상기 빈도 값이 지정된 크기 미만으로 식별된 것에 기반하여, 상기 분할 강도의 세기가 높은 것을 식별할 수 있다. 예를 들어, 전자 장치는, 상기 빈도 값이 지정된 크기 이상으로 식별된 것에 기반하여, 상기 분할 강도의 세기가 낮은 것을 식별할 수 있다.
일 실시 예에 따른, 전자 장치는, 이미지의 일부분(610) 내에 지정된 사이즈의 윈도우(640)를 적용하여, 분포 정보를 획득할 수 있다. 상기 지정된 사이즈의 윈도우는, 상기 지정된 너비(w)의 윈도우(640)의 너비와 상이한 너비를 가질 수 있다. 예를 들어, 상기 지정된 사이즈의 윈도우(640)는, 상기 이미지의 일부분(610)의 높이(h)의 약 0.3 배의 너비(w)를 가질 수 있다. 예를 들어, 전자 장치는, 상기 지정된 사이즈의 윈도우(640)를, 상기 분포 정보를 포함하는 히스토그램의 일 단으로부터 타 단으로 슬라이딩되어 이동할 수 있다. 전자 장치는, 상기 슬라이딩되어 이동되는 상기 지정된 사이즈의 윈도우(640)에 기반하여, 상기 분포 정보로부터, 하나 이상의 문자들을 분할하기 위한 후보 위치들(candidate positions)(630)을 획득할 수 있다. 예를 들어, 전자 장치는, 상기 분포 정보를 슬라이딩되어 이동하는 상기 지정된 사이즈의 윈도우(640)에 기반하여, 상기 지정된 사이즈의 윈도우(640) 내에 나타나는 극소 값들(local minimum values)을 획득할 수 있다. 예를 들어, 도 6의 m1 내지 m13은, 상기 지정된 사이즈의 윈도우(640)이 슬라이딩되어 이동하는 동안 획득된 극소 값들 각각에 매칭될 수 있다. 전자 장치는, 상기 극소 값들에 기반하여, 하나 이상의 문자들 사이의 경계 선(border line)의 후보 위치들(candidate positions)(630)을 식별할 수 있다. 상기 후보 위치들은, 상기 분할 강도에 기반하여 획득될 수 있다.
일 실시 예에 따른, 전자 장치는, 상기 후보 위치들(630)의 조합에 비용 함수를 적용할 수 있다. 예를 들어, 전자 장치는, 상기 후보 위치들(630)의 조합을 나타내는 케이스들 각각에 매칭되는 비용 함수의 결과 값을 획득할 수 있다. 예를 들어, 상기 비용 함수는, 하기 수학식 1일 수 있다.
Figure PCTKR2023012361-appb-img-000001
수학식 1을 참조하면,
Figure PCTKR2023012361-appb-img-000002
는, 너비에 대한 가중치를 의미할 수 있다. 상기 가중치는, 텍스트의 타입에 기반하여 상이하게 지정될 수 있다. 예를 들어, 한국어의 타입을 가지는 텍스트의 가중치는, 1.0으로 지정될 수 있다. 예를 들어, 알파벳 소문자의 타입을 가지는 텍스트의 가중치는, 0.5로 지정될 수 있다. 예를 들어, 알파벳이고 상대적으로 넓은 타입을 가지는 텍스트의 가중치는, 0.8로 지정될 수 있다. 예를 들어, 알파벳이고 상대적으로 넓은 타입을 가지는 텍스트는, 알파벳 소문자 'w', 및/또는 알파벳 소문자 'm'으로 참조될 수 있다. 예를 들어, 알파벳이고 상대적으로 좁은 타입을 가지는 텍스트의 가중치는, 0.1로 지정될 수 있다. 알파벳이고 상대적으로 좁은 타입을 가지는 텍스트는, 알파벳 대문자 'I', 및/또는 알파벳 소문자 'l'로 참조될 수 있다. 하지만, 이에 제한되는 것은 아니다. 상기 가중치는, 제1 입력에 기반하여 획득되는 이미지의 일부분(610)의 폰트(font)에 기반하여 획득될 수 있다. 상기 가중치는, 폰트를 이용하여 획득될 수 있다. 전자 장치는, 상기 폰트에 포함된 정보들 중 적어도 하나에 기반하여, 상기 가중치를 획득할 수 있다. 예를 들어, 전자 장치는, 상기 폰트에 포함된, 상기 폰트의 너비 정보에 기반하여, 상기 가중치를 획득할 수 있다. 예를 들어, 상기 폰트에 포함된 정보는, 상기 폰트의 너비 정보, 및/또는 상기 폰트의 문자들의 글자의 위치 정보를 포함할 수 있다.
상기 수학식 1 내에서,
Figure PCTKR2023012361-appb-img-000003
는, 하기 수학식 2일 수 있다.
Figure PCTKR2023012361-appb-img-000004
수학식 2를 참조하면,
Figure PCTKR2023012361-appb-img-000005
는, 상기 후보 위치들(630)을 획득하기 위한 비용 함수의 결과 값일 수 있다. 전자 장치, 상기
Figure PCTKR2023012361-appb-img-000006
의 결과 값이 가장 작은 케이스를 식별할 수 있다. 전자 장치는, 상기
Figure PCTKR2023012361-appb-img-000007
의 결과 값이 가장 작은 케이스를 식별한 것에 기반하여, 상기 케이스에 매칭된 하나 이상의 문자들의 분할을 실행할 수 있다.
수학식 2를 참조하면, 상기 수학식 2 내에서,
Figure PCTKR2023012361-appb-img-000008
는, i 번 째의 분할 너비를 나타낼 수 있다.
Figure PCTKR2023012361-appb-img-000009
는, 분할될 수 있는 위치의 수를 나타낼 수 있다.
Figure PCTKR2023012361-appb-img-000010
는, j 번 째의 공백 영역의 길이를 나타낼 수 있다.
Figure PCTKR2023012361-appb-img-000011
는, 공백 영역의 수를 나타낼 수 있다. 상기
Figure PCTKR2023012361-appb-img-000012
는, 실질적으로
Figure PCTKR2023012361-appb-img-000013
을 의미할 수 있다.
수학식 1에 포함된
Figure PCTKR2023012361-appb-img-000014
은, 하기 수학식 3일 수 있다.
Figure PCTKR2023012361-appb-img-000015
일 실시 예에 따른, 전자 장치는, 상기 수학식 3을 적용하여, 이미지의 일부분(610)의 분할 강도 비용을 식별할 수 있다. 상기 수학식 3의
Figure PCTKR2023012361-appb-img-000016
는, j 번째 후보 위치에 매칭되는 좌표를 의미할 수 있다. 예를 들어, 상기 분할 강도 비용은, 하나 이상의 문자들이 분할되어야 하는 위치, 또는 영역 내에서 분할 강도의 세기를 나타낼 수 있다. 예를 들어, 전자 장치는, 분포 정보를 식별하는 동안, 상기 분포 정보 내에서 식별되는 하나 이상의 문자들의 획을 식별한 것에 기반하여, 상기 분할 강도의 세기가 강한 것을 식별할 수 있다.
일 실시 예에 따른, 전자 장치는, 예상되는 글자 영역의 크기를 식별할 수 있다. 예를 들어, 상기 예상되는 글자 영역의 크기, 하나 이상의 문자들 각각의 크기를 의미할 수 있다. 전자 장치는, 분리 영역의 크기를 식별할 수 있다. 예를 들어, 상기 분리 영역의 크기는, 하나 이상의 문자들을 텍스트로 변환하기 위해 분할하기 위한 지점을 포함하는 영역의 크기를 의미할 수 있다.
예를 들어, 도 6 내에서, 상기 수학식들을 적용하는 예에 대해 설명한다. 예를 들어, 전자 장치는, 도 6의 이미지의 일부분(610)으로부터 획득된 분포 정보(620)에 기반하여, 후보 위치들(630)을 획득할 수 있다. 예를 들어, 상기 후보 위치들은, 상기 분포 정보(620) 내에서 식별되는 극소 값들(예, m1 내지 m14)에 기반하여 획득될 수 있다. 예를 들어, 상기 후보 위치들 각각은, 상기 분포 정보(620) 내에서 식별된 극소 값들(m1 내지 m14) 각각에 매칭될 수 있다. 전자 장치는, 상기 이미지의 일부분(610)로부터 8 개의 문자들, 및/또는 1 개의 공백 영역을 식별할 수 있다. 전자 장치는, 상기 8 개의 문자들 각각에, 0.5의 가중치를 적용할 수 있다. 전자 장치는, 1 개의 공백 영역에 1.0의 가중치를 적용할 수 있다. 예를 들어, 전자 장치는, 이미지의 일부분(610) 내에서, 'fo', 및 'nt that'를 분할한 케이스를 식별할 수 있다. 예를 들어, 상기 케이스는, 단어, 및 단어 사이를 분할하는 일 예일 수 있다. 예를 들어, 전자 장치는, 상기 케이스 내에서, 'fo', 및 'nt that'의 기대 너비를 동일한 너비로 식별할 수 있다. 예를 들어, 상기 기대 너비는, 수학식 2의
Figure PCTKR2023012361-appb-img-000017
로 참조될 수 있다. 예를 들어, 전자 장치는, 'fo', 및 'nt that' 각각에 대응하는 기대 너비를 식별할 수 있다. 예를 들어, 전자 장치는, 'fo'에 대응하는 기대 너비인, 0.4를 식별할 수 있다. 예를 들어, 전자 장치는, 'nt that'에 대응하는 기대 너비인, 0.4를 식별할 수 있다. 전자 장치는, 'fo'의 현재 너비를 식별할 수 있다. 전자 장치는, 'nt that'의 현재 너비를 식별할 수 있다. 예를 들어, 상기 현재 너비는, 수학식 2의
Figure PCTKR2023012361-appb-img-000018
로 참조될 수 있다. 예를 들어, 전자 장치는, 'fo'의 현재 너비인 0.2를 식별할 수 있다. 예를 들어, 전자 장치는, 'nt that'의 현재 너비인 0.8을 식별할 수 있다. 전자 장치는, 상기 기대 너비들, 및 상기 현재 너비들을 획득한 것에 기반하여 비용 함수를 적용할 수 있다. 상기 케이스는, 단어, 및 단어 사이를 분할하는 일 예이며, 상기 케이스와 상이한 케이스에서 식별되는 'font', 및 'that'으로 분할되는 일 예가 가장 바람직한 일 예일 수 있다. 전자 장치는, 상기 케이스 내에서, 분할 함수를 적용하여
Figure PCTKR2023012361-appb-img-000019
를 획득할 수 있다. 전자 장치는, 상기 케이스 내에서,
Figure PCTKR2023012361-appb-img-000020
의 결과 값을
Figure PCTKR2023012361-appb-img-000021
과 같이 획득할 수 있다. 상기 케이스 내에서, 비용 함수를 적용하여 획득된 결과 값은, 'font', 및 'that'으로 분할된 케이스로부터 획득된 비용 함수의 결과 값보다 상대적으로 큰 값일 수 있다. 예를 들어,
Figure PCTKR2023012361-appb-img-000022
를 획득하기 위한 수학식은, 수학식 2로 참조될 수 있다. 예를 들어, 전자 장치는, 상기 케이스 내에서,
Figure PCTKR2023012361-appb-img-000023
을 획득할 수 있다. 예를 들어, 전자 장치는, 도 6의 극소 값(m3)이 0.3으로 식별된 것에 기반하여, 수학식 3을 적용할 수 있다. 전자 장치는, 상기 수학식 3을 적용하여,
Figure PCTKR2023012361-appb-img-000024
를 획득할 수 있다.
상술한 바와 같이, 일 실시 예에 따른, 전자 장치는, 분포 정보에 기반하여, 하나 이상의 문자들을 분할하여 텍스트를 획득할 수 있다. 전자 장치는, 상기 분포 정보에 기반하여, 하나 이상의 문자들을 분할함으로써, 상기 분포 정보를 통해 하나 이상의 문자들을 분할하지 않는 경우에 비해 상대적으로 정확하게 상기 하나 이상의 문자들을 분할할 수 있다.
도 7은, 일 실시 예에 따른, 전자 장치의 동작에 관한 흐름도의 일 예이다. 도 7의 전자 장치는, 도 1, 도 2, 도 3, 도 4a, 도 4b, 도 5a, 도 5b, 및/또는 도 5c의 전자 장치(101), 및/또는 도 6의 전자 장치의 일 예일 수 있다. 도 7의 동작들은, 도 1, 및/또는 도 3의 프로세서(120)에 의해 실행될 수 있다.
도 7을 참조하면, 동작 701에서, 일 실시 예에 따른, 전자 장치는, 디스플레이 내에 이미지를 표시할 수 있다. 전자 장치는, 상기 디스플레이 내에 표시된 상기 이미지로부터 텍스트를 선택함을 나타내는 제1 입력을 식별할 수 있다. 전자 장치는, 상기 제1 입력에 기반하여, 상기 제1 입력에 의해 선택된 이미지 내 일부분 상에 중첩으로, 제1 시각적 객체를 표시할 수 있다. 예를 들어, 상기 제1 시각적 객체는, 이미지 내에 포함된 하나 이상의 문자들을 식별하기 위한 영역으로 참조될 수 있다. 예를 들어, 상기 제1 시각적 객체는, 사용자의 제1 입력에 기반하여 생성될 수 있다.
동작 703에서, 일 실시 예에 따른, 전자 장치는, 하나 이상의 문자들에 기반하여, 제1 시각적 객체와 연계로, 상기 하나 이상의 문자들을 포함하는 제2 시각적 객체를 표시할 수 있다. 전자 장치는, 상기 제2 시각적 객체 내에, 상기 제1 시각적 객체로부터 획득된 텍스트를 표시할 수 있다. 상기 텍스트는, 상기 하나 이상의 문자들에 기반하여 획득될 수 있다. 전자 장치는, 상기 텍스트를 획득하기 위해 상기 하나 이상의 문자들을 분할할 수 있다. 전자 장치 제1 입력에 의해 선택된 일부분 내에서, 상기 일부분 내에서 상기 하나 이상의 문자들을 표현하는 상기 이미지의 제3 시각적 객체의 분포를 포함하는 분포 정보를 획득할 수 있다. 상기 제3 시각적 객체는, 상기 제1 시각적 객체 내에 포함된 하나 이상의 문자들의 획들과 관련될 수 있다.
일 실시 예에 따른, 전자 장치는, 이미지의 일부분 내에 지정된 사이즈의 윈도우를 적용하여, 분포 정보를 획득할 수 있다. 예를 들어, 상기 분포 정보는, 도 6 내에서 설명된 히스토그램과 관련될 수 있다. 전자 장치는, 상기 분포 정보에 포함된 하나 이상의 극소 값들(local minimum values)을 식별할 수 있다. 예를 들어, 전자 장치는, 지정된 사이즈를 가지는 윈도우에 기반하여, 상기 분포 정보를 획득할 수 있다. 전자 장치는, 상기 하나 이상의 극소 값들에 기반하여, 하나 이상의 문자들 사이의 경계 선의 후보 위치들을 식별할 수 있다. 전자 장치는, 상기 후보 위치들을 식별한 것에 기반하여, 상기 하나 이상의 문자들에 기반한 텍스트를 획득할 수 있다. 전자 장치는, 상기 획득된 텍스트를, 제2 시각적 객체 내에 표시할 수 있다.
동작 705에서, 일 실시 예에 따른, 전자 장치는, 이미지 상에 중첩된 제1 시각적 객체의 사이즈를 조절함을 나타내는 제2 입력을 식별할 수 있다. 예를 들어, 전자 장치는, 상기 제1 시각적 객체의 사이즈가 조절된 것에 기반하여, 상기 제1 시각적 객체의 표시를 변경할 수 있다. 예를 들어, 상기 제1 시각적 객체는, 상기 제2 입력에 기반하여 조절된 사이즈를 가질 수 있다. 전자 장치는, 상기 제2 입력에 기반하여, 조절된 사이즈를 가지는 제1 시각적 객체와 중첩된 이미지의 일부분에 기반하여, 제2 시각적 객체 내에 포함된 하나 이상의 문자들에 대응하는 하나 이상의 텍스트들의 표시를 변경할 수 있다. 전자 장치는, 상기 이미지 상에 중첩된 상기 제1 시각적 객체의 사이즈를 조절함을 나타내는 제2 입력에 기반하여 상기 조절된 사이즈를 가지는 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분에 기반하여, 상기 제2 시각적 객체 내에 포함된 상기 하나 이상의 문자들에 대응하는 상기 하나 이상의 텍스트들의 표시를 변경할 수 있다. 예를 들어, 전자 장치는, 상기 제1 시각적 객체의 사이즈가 변경되는 동안, 상기 제1 시각적 객체 내에 포함된 하나 이상의 문자들, 및 상기 제1 시각적 객체에 연결된 상기 하나 이상의 문자들과 구별되는 문자들을, 상기 제2 시각적 객체 내에 표시할 수 있다.
일 실시 예에 따른, 전자 장치는, 제2 입력에 기반하여, 제2 시각적 객체 내에 포함된 하나 이상의 문자들의 속성을 변경할 수 있다. 예를 들어, 전자 장치는, 상기 제2 시각적 객체 내에 표시되는 텍스트의 속성(또는 특성)을 변경할 수 있다. 예를 들어, 전자 장치는, 텍스트를 볼드 처리하여 표시할 수 있다. 예를 들어, 전자 장치는, 상기 텍스트를 음영 처리하여 표시할 수 있다. 전자 장치는, 상기 텍스트를 이탤릭 처리하여 표시할 수 있다.
일 실시 예에 따른, 전자 장치는, 제1 시각적 객체 내에 포함된 하나 이상의 문자들을 잘못 식별한 때에, 제2 시각적 객체 내에 표시되는 텍스트를 잘못 식별한 것에 기반하여 표시할 수 있다. 예를 들어, 전자 장치는, 제1 시각적 객체 내에 포함된 하나 이상의 문자들을 오인식한 것(misrecognizing)에 기반하여, 상기 제2 시각적 객체 내에 오인식된 문자들에 매칭되는 텍스트를 표시할 수 있다. 전자 장치는, 제2 시각적 객체 내에 오인식된 문자들에 대응하는 텍스트를 표시할 수 있다.
상술한 바와 같이, 일 실시 예에 따른, 전자 장치는, 제2 입력에 기반하여, 제2 시각적 객체 내에 포함된 상기 하나 이상의 문자들을 변경함으로써, 전자 장치의 사용자 경험을 강화할 수 있다.
상술한 바와 같이, 일 실시 예에 따른, 전자 장치(electronic device)(예, 도 1, 도 2, 도 3, 도 4a, 도 4b, 도 5a, 및/또는 도 5b의 전자 장치(101))는, 디스플레이(예, 도 2, 도 3, 도 4a, 도 4b, 도 5a, 및/또는 도 5b의 디스플레이(210)), 및 프로세서(예, 도 1, 및/또는 도 3의 프로세서(120))를 포함할 수 있다. 상기 프로세서는, 상기 디스플레이 내에 이미지를 표시할 수 있다. 상기 프로세서는, 상기 이미지로부터 텍스트를 선택함을 나타내는 제1 입력에 기반하여, 상기 제1 입력에 의해 선택된 상기 이미지 내 일부분(a portion) 상에 중첩으로, 제1 시각적 객체(예, 도 2, 도 4a, 도 4b, 및/또는 도 5a의 제1 시각적 객체(220))를 표시할 수 있다. 상기 프로세서는, 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분 내에 포함된 하나 이상의 문자들에 기반하여, 상기 제1 시각적 객체와 연계로, 상기 하나 이상의 문자들을 포함하는 제2 시각적 객체(예, 도 4a의 제2 시각적 객체(420))를 표시할 수 있다. 상기 프로세서는, 상기 이미지 상에 중첩된 상기 제1 시각적 객체의 사이즈를 조절함을 나타내는 제2 입력(예, 도 5a의 제2 입력(510))에 기반하여, 상기 조절된 사이즈를 가지는 상기 제1 시각적 객체와 중첩된 상기 이미지의 일부분에 기반하여, 상기 제2 시각적 객체 내에 포함된 상기 하나 이상의 문자들을 변경할 수 있다.
일 실시 예에 따른, 상기 프로세서는, 상기 디스플레이 내에 표시된 상기 제2 시각적 객체 내에, 상기 제1 시각적 객체 내에 포함된 제1 텍스트, 및 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분에 연결된 다른 부분(예, 도 4a의 다른 부분(410)) 내에 포함된 제2 텍스트를 표시할 수 있다.
일 실시 예에 따른, 상기 프로세서는, 상기 제2 시각적 객체 내에서, 제1 지정된 색상에 기반하여 상기 제1 텍스트를 표시할 수 있다. 상기 프로세서는, 상기 제1 지정된 색상과 상이한 제2 지정된 색상에 기반하여 상기 제2 텍스트를 표시할 수 있다. 예를 들어, 상기 프로세서는, 상기 제2 시각적 객체 내에서, 제1 지정된 색상에 기반하여 상기 제1 텍스트를 표시하고, 상기 제1 지정된 색상과 상이한 제2 지정된 색상에 기반하여 상기 제2 텍스트를 표시할 수 있다.
일 실시 예에 따른, 상기 프로세서는, 상기 제2 시각적 객체를, 상기 제1 시각적 객체 상에 중첩하여 표시할 수 있다.
일 실시 예에 따른, 상기 프로세서는, 상기 제1 입력에 의해 선택된 상기 이미지의 상기 일부분 내에서, 상기 일부분 내에서 상기 하나 이상의 문자들을 표현하는(representing) 상기 이미지의 제3 시각적 객체의 분포를 포함하는 분포 정보(예, 도 6의 분포 정보(620))를 획득할 수 있다.
일 실시 예에 따른, 상기 프로세서는, 상기 이미지의 상기 일부분 내에 지정된 사이즈의 윈도우(예, 도 6의 윈도우(640))를 적용하여, 상기 분포 정보를 획득할 수 있다.
일 실시 예에 따른, 상기 프로세서는, 상기 분포 정보에 포함된 하나 이상의 극소 값들에 기반하여, 상기 하나 이상의 문자들 사이의 경계 선(border line)의 후보 위치들(candidate positions)(예, 도 6의 후보 위치들(630))를 식별할 수 있다.
일 실시 예에 따른, 상기 프로세서는, 상기 후보 위치들의 조합에 비용 함수를 적용하여, 상기 하나 이상의 문자들 사이의 경계 선의 위치를 결정할 수 있다. 상기 프로세서는, 상기 경계 선의 위치에 기반하여, 상기 제1 시각적 객체를 표시할 수 있다.
상술한 바와 같이, 일 실시 예에 따른, 전자 장치(electronic device)(예, 도 1, 도 2, 도 3, 도 4a, 도 4b, 도 5a, 및/또는 도 5b의 전자 장치(101))의 방법은, 디스플레이(예, 도 2, 도 3, 도 4a, 도 4b, 도 5a, 및/또는 도 5b의 디스플레이(210)) 내에 이미지를 표시하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 이미지로부터 텍스트를 선택함을 나타내는 제1 입력에 기반하여, 상기 제1 입력에 의해 선택된 상기 이미지 내 일부분(a portion) 상에 중첩으로, 제1 시각적 객체(예, 도 2, 도 4a, 도 4b, 및/또는 도 5a의 제1 시각적 객체(220))를 표시하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분 내에 포함된 하나 이상의 문자들에 기반하여, 상기 제1 시각적 객체와 연계로, 상기 하나 이상의 문자들을 포함하는 제2 시각적 객체(예, 도 4a의 제2 시각적 객체(420))를 표시하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 이미지 상에 중첩된 상기 제1 시각적 객체의 사이즈를 조절함을 나타내는 제2 입력(예, 도 5a의 제2 입력(510))에 기반하여, 상기 조절된 사이즈를 가지는 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분에 기반하여, 상기 제2 시각적 객체 내에 포함된 상기 하나 이상의 문자들을 변경하는 동작을 포함할 수 있다.
일 실시 예에 따른, 상기 전자 장치의 상기 방법은, 상기 디스플레이 내에 표시된 상기 제2 시각적 객체 내에, 상기 제1 시각적 객체 내에 포함된 제1 텍스트, 및 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분에 연결된 다른 부분(예, 도 4a의 다른 부분(410)) 내에 포함된 제2 텍스트를 표시하는 동작을 포함할 수 있다.
일 실시 예에 따른, 상기 전자 장치의 상기 방법은, 상기 제2 시각적 객체 내에서, 제1 지정된 색상에 기반하여 상기 제1 텍스트를 표시하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 제1 지정된 색상과 상이한 제2 지정된 색상에 기반하여 상기 제2 텍스트를 표시하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 제2 시각적 객체 내에서, 상기 제1 지정된 색상에 기반하여 상기 제1 텍스트를 표시하고, 상기 제1 지정된 색상과 상이한 제2 지정된 색상에 기반하여 상기 제2 텍스트를 표시하는 동작을 포함할 수 있다.
일 실시 예에 따른, 상기 전자 장치의 상기 방법은, 상기 제2 시각적 객체를, 상기 제1 시각적 객체 상에 중첩하여 표시하는 동작을 포함할 수 있다.
일 실시 예에 따른, 상기 전자 장치의 상기 방법은, 상기 제1 입력에 의해 선택된 상기 일부분 내에서, 상기 일부분 내에서 상기 하나 이상의 문자들을 표현하는(representing) 상기 이미지의 제3 시각적 객체의 분포를 포함하는 분포 정보(예, 도 6의 분포 정보(620))를 획득하는 동작을 포함할 수 있다.
일 실시 예에 따른, 상기 전자 장치의 상기 방법은, 상기 일부분 내에 저장된 사이즈의 윈도우(예, 도 6의 윈도우(640))를 적용하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 일부분 내에 지정된 사이즈의 상기 윈도우를 적용하여, 상기 분포 정보를 획득하는 동작을 포함할 수 있다.
일 실시 예에 따른, 상기 전자 장치의 상기 방법은, 상기 분포 정보에 포함된 하나 이상의 극소 값들을 식별하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 분포 정보에 포함된 하나 이상의 극소 값들에 기반하여, 상기 하나 이상의 문자들 사이의 경계 선(border line)의 후보 위치들(candidate positions)(예, 도 6의 후보 위치들(630))을 식별하는 동작을 포함할 수 있다.
일 실시 예에 따른, 상기 전자 장치의 상기 방법은, 상기 후보 위치들의 조합에 비용 함수를 적용하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 하나 이상의 문자들 사이의 경계 선의 위치를 결정하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 후보 위치들의 조합에 비용 함수를 적용하여, 상기 하나 이상의 문자들 사이의 경계 선의 위치를 결정하는 동작을 포함할 수 있다. 상기 전자 장치의 상기 방법은, 상기 경계 선의 위치에 기반하여, 상기 제1 시각적 객체를 표시하는 동작을 포함할 수 있다.
상술한 바와 같이, 일 실시 예에 따른, 하나 이상의 프로그램들을 저장하는 컴퓨터 판독가능 저장 매체에 있어서, 상기 하나 이상의 프로그램들은, 전자 장치(electronic device)(예, 도 1, 도 2, 도 3, 도 4a, 도 4b, 도 5a, 및/또는 도 5b의 전자 장치(101))의 프로세서(예, 도 1, 및/또는 도 3의 프로세서(120))에 의해 실행될 때에, 디스플레이(예, 도 2, 도 3, 도 4a, 도 4b, 도 5a, 및/또는 도 5b의 디스플레이(210)) 내에 이미지를 표시하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 상기 이미지로부터 텍스트를 선택함을 나타내는 제1 입력에 기반하여, 상기 제1 입력에 의해 선택된 상기 이미지 내 일부분 상에 중첩으로, 제1 시각적 객체(예, 도 2, 도 4a, 도 4b, 및/또는 도 5a의 제1 시각적 객체(220))를 표시하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분 내에 포함된 하나 이상의 문자들에 기반하여, 상기 제1 시각적 객체와 연계로 상기 하나 이상의 문자들을 포함하는 제2 시각적 객체(예, 도 4a의 제2 시각적 객체(420))를 표시하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 상기 이미지 상에 중첩된 상기 제1 시각적 객체의 사이즈를 조절함을 나타내는 제2 입력에 기반하여, 상기 조절된 사이즈를 가지는 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분에 기반하여, 상기 제2 시각적 객체 내에 포함된 상기 하나 이상의 문자들을 변경하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다.
일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 상기 디스플레이 내에 표시된 상기 제2 시각적 객체 내에, 상기 제1 시각적 객체 내에 포함된 제1 텍스트, 및 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분에 연결된 다른 부분(예, 도 4a의 다른 부분(410)) 내에 포함된 제2 텍스트를 표시하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다.
일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 상기 제2 시각적 객체 내에서, 제1 지정된 색상에 기반하여 상기 제1 텍스트를 표시하고, 상기 제1 지정된 색상과 상이한 제2 지정된 색상에 기반하여 상기 제2 텍스트를 표시하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다.
일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 상기 제2 시각적 객체를, 상기 제1 시각적 객체 상에 중첩하여 표시하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다.
일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 상기 제1 입력에 의해 선택된 상기 일부분 내에서, 상기 일부분 내에서 상기 하나 이상의 문자들을 표현하는 상기 이미지의 제3 시각적 객체의 분포를 포함하는 분포 정보(예, 도 6의 분포 정보(620))를 획득하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다.
일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 상기 일부분 내에 지정된 사이즈의 윈도우(예, 도 6의 윈도우(640))를 적용하여, 상기 분포 정보를 획득하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다.
일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 분포 정보에 포함된 하나 이상의 극소 값들에 기반하여, 상기 하나 이상의 문자들 사이의 경계 선의 후보 위치들(예, 도 6의 후보 위치들(630))을 식별하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다.
일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 프로세서에 의해 실행될 때에, 상기 후보 위치들의 조합에 비용함수를 적용하여, 상기 하나 이상의 문자들 사이의 경계 선의 위치를 결정하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다. 상기 하나 이상의 프로그램들은, 상기 전자 장치의 상기 프로세서에 의해 실행될 때에, 상기 경계 선의 위치에 기반하여, 상기 제1 시각적 객체를 표시하도록, 상기 전자 장치의 상기 프로세서를 야기할 수 있다.
일 실시 예에 따른, 상기 하나 이상의 프로그램들은, 상기 프로세서(120)에 의해 실행될 때에, 상기 제1 시각적 객체(220) 내에 포함된 상기 하나 이상의 문자들을 오인식한 것(misrecognizing)에 기반하여, 상기 제2 시각적 객체(420) 내에 오인식된 하나 이상의 문자들에 대응하는 텍스트를 표시하도록, 상기 전자 장치(101)의 상기 프로세서(120)를 야기할 수 있다.
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 전자 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.
본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다.
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.
일 실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어™)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.

Claims (15)

  1. 전자 장치(electronic device)에 있어서,
    디스플레이; 및
    프로세서를 포함하고,
    상기 프로세서는,
    상기 디스플레이 내에 이미지를 표시하고;
    상기 이미지로부터 텍스트를 선택함을 나타내는 제1 입력에 기반하여, 상기 제1 입력에 의해 선택된 상기 이미지 내 일부분(a portion) 상에 중첩으로, 제1 시각적 객체를 표시하고;
    상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분 내에 포함된 하나 이상의 문자들에 기반하여, 상기 제1 시각적 객체와 연계로, 상기 하나 이상의 문자들을 포함하는 제2 시각적 객체를 표시하고; 및
    상기 이미지 상에 중첩된 상기 제1 시각적 객체의 사이즈를 조절함을 나타내는 제2 입력에 기반하여 상기 조절된 사이즈를 가지는 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분에 기반하여, 상기 제2 시각적 객체 내에 포함된 상기 하나 이상의 문자들을 변경하도록, 구성된,
    전자 장치.
  2. 제1 항에 있어서,
    상기 프로세서는,
    상기 디스플레이 내에 표시된 상기 제2 시각적 객체 내에, 상기 제1 시각적 객체 내에 포함된 제1 텍스트, 및 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분에 연결된 다른 부분 내에 포함된 제2 텍스트를 표시하도록, 구성된,
    전자 장치.
  3. 제2 항에 있어서,
    상기 프로세서는,
    상기 제2 시각적 객체 내에서, 제1 지정된 색상에 기반하여 상기 제1 텍스트를 표시하고, 상기 제1 지정된 색상과 상이한 제2 지정된 색상에 기반하여 상기 제2 텍스트를 표시하도록, 구성된,
    전자 장치.
  4. 제1 항에 있어서,
    상기 프로세서는,
    상기 제2 시각적 객체를, 상기 제1 시각적 객체 상에 중첩하여 표시하도록, 구성된,
    전자 장치.
  5. 제1 항에 있어서,
    상기 프로세서는,
    상기 제1 입력에 의해 선택된 상기 일부분 내에서, 상기 일부분 내에서 상기 하나 이상의 문자들을 표현하는(representing) 상기 이미지의 제3 시각적 객체의 분포를 포함하는 분포 정보를 획득하도록, 구성된,
    전자 장치.
  6. 제5 항에 있어서,
    상기 프로세서는,
    상기 일부분 내에 지정된 사이즈의 윈도우를 적용하여, 상기 분포 정보를 획득하도록, 구성된,
    전자 장치.
  7. 제5 항에 있어서,
    상기 프로세서는,
    상기 분포 정보에 포함된 하나 이상의 극소 값들에 기반하여, 상기 하나 이상의 문자들 사이의 경계 선(border line)의 후보 위치들(candidate positions)을 식별하도록, 구성된,
    전자 장치.
  8. 제7 항에 있어서,
    상기 프로세서는,
    상기 후보 위치들의 조합에 비용 함수를 적용하여, 상기 하나 이상의 문자들 사이의 경계 선의 위치를 결정하고; 및
    상기 경계 선의 위치에 기반하여, 상기 제1 시각적 객체를 표시하도록, 구성된,
    전자 장치.
  9. 전자 장치(electronic device)의 방법에 있어서,
    디스플레이 내에 이미지를 표시하는 동작;
    상기 이미지로부터 텍스트를 선택함을 나타내는 제1 입력에 기반하여, 상기 제1 입력에 의해 선택된 상기 이미지 내 일부분(a portion) 상에 중첩으로, 제1 시각적 객체를 표시하는 동작;
    상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분 내에 포함된 하나 이상의 문자들에 기반하여, 상기 제1 시각적 객체와 연계로, 상기 하나 이상의 문자들을 포함하는 제2 시각적 객체를 표시하는 동작; 및
    상기 이미지 상에 중첩된 상기 제1 시각적 객체의 사이즈를 조절함을 나타내는 제2 입력에 기반하여, 상기 조절된 사이즈를 가지는 상기 제1 시각적 객체와 중첩된 상기 이미지의 일부분에 기반하여, 상기 제2 시각적 객체 내에 포함된 상기 하나 이상의 문자들을 변경하는 동작을 포함하는,
    방법.
  10. 제9 항에 있어서,
    상기 전자 장치의 방법은,
    상기 디스플레이 내에 표시된 상기 제2 시각적 객체 내에, 상기 제1 시각적 객체 내에 포함된 제1 텍스트, 및 상기 제1 시각적 객체와 중첩된 상기 이미지의 상기 일부분에 연결된 다른 부분 내에 포함된 제2 텍스트를 표시하는 동작을 포함하는,
    방법.
  11. 제10 항에 있어서,
    상기 전자 장치의 상기 방법은,
    상기 제2 시각적 객체 내에서, 제1 지정된 색상에 기반하여 상기 제1 텍스트를 표시하고, 상기 제1 지정된 색상과 상이한 제2 지정된 색상에 기반하여 상기 제2 텍스트를 표시하는 동작을 포함하는,
    방법.
  12. 제9 항에 있어서,
    상기 전자 장치의 상기 방법은,
    상기 제2 시각적 객체를, 상기 제1 시각적 객체 상에 중첩하여 표시하는 동작을 포함하는,
    방법.
  13. 제9 항에 있어서,
    상기 전자 장치의 상기 방법은,
    상기 제1 입력에 의해 선택된 상기 일부분 내에서, 상기 일부분 내에서 상기 하나 이상의 문자들을 표현하는(representing) 상기 이미지의 제3 시각적 객체의 분포를 포함하는 분포 정보를 획득하는 동작을 포함하는,
    방법.
  14. 제13 항에 있어서,
    상기 전자 장치의 상기 방법은,
    상기 일부분 내에 지정된 사이즈의 윈도우를 적용하여, 상기 분포 정보를 획득하는 동작을 포함하는,
    방법.
  15. 제13 항에 있어서,
    상기 전자 장치의 상기 방법은,
    상기 분포 정보에 포함된 하나 이상의 극소 값들에 기반하여, 상기 하나 이상의 문자들 사이의 경계 선(border line)의 후보 위치들(candidate positions)을 식별하는 동작을 포함하는,
    방법.
PCT/KR2023/012361 2022-09-20 2023-08-21 텍스트를 표시하기 위한 전자 장치 및 그 방법 WO2024063346A1 (ko)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
KR10-2022-0118513 2022-09-20
KR20220118513 2022-09-20
KR10-2022-0141917 2022-10-28
KR1020220141917A KR20240039983A (ko) 2022-09-20 2022-10-28 텍스트를 표시하기 위한 전자 장치 및 그 방법

Publications (1)

Publication Number Publication Date
WO2024063346A1 true WO2024063346A1 (ko) 2024-03-28

Family

ID=90454618

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2023/012361 WO2024063346A1 (ko) 2022-09-20 2023-08-21 텍스트를 표시하기 위한 전자 장치 및 그 방법

Country Status (1)

Country Link
WO (1) WO2024063346A1 (ko)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012238124A (ja) * 2011-05-10 2012-12-06 Kyocera Corp 電子機器、制御方法及び制御プログラム
KR20140133153A (ko) * 2013-05-10 2014-11-19 엘지전자 주식회사 이동 단말기 및 이동 단말기의 제어 방법
KR20190021146A (ko) * 2017-08-22 2019-03-05 삼성전자주식회사 디스플레이에 표시된 텍스트를 번역하는 방법 및 장치
KR20210156228A (ko) * 2020-06-16 2021-12-24 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. 광학 문자 인식 방법, 장치, 전자기기 및 기록매체
KR20220006237A (ko) * 2020-07-08 2022-01-17 삼성전자주식회사 손글씨를 텍스트로 변환하기 위한 전자 장치 및 그에 관한 방법

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012238124A (ja) * 2011-05-10 2012-12-06 Kyocera Corp 電子機器、制御方法及び制御プログラム
KR20140133153A (ko) * 2013-05-10 2014-11-19 엘지전자 주식회사 이동 단말기 및 이동 단말기의 제어 방법
KR20190021146A (ko) * 2017-08-22 2019-03-05 삼성전자주식회사 디스플레이에 표시된 텍스트를 번역하는 방법 및 장치
KR20210156228A (ko) * 2020-06-16 2021-12-24 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. 광학 문자 인식 방법, 장치, 전자기기 및 기록매체
KR20220006237A (ko) * 2020-07-08 2022-01-17 삼성전자주식회사 손글씨를 텍스트로 변환하기 위한 전자 장치 및 그에 관한 방법

Similar Documents

Publication Publication Date Title
WO2022085885A1 (en) Method for controlling window and electronic device therefor
WO2021075786A1 (en) Electronic device and method of processing pop-up window using multi-window thereof
WO2022080616A1 (en) An electronic device and method for inducing input
WO2022097857A1 (en) Electronic device and method for displaying image on flexible display
WO2022211271A1 (ko) 학습 기반의 필기 입력을 처리하는 전자 장치, 그 동작 방법 및 저장매체
WO2022097858A1 (en) Electronic device capable of expanding display region and method for controlling screen thereof
WO2022030933A1 (ko) 전자 장치 및 그의 필기 입력을 처리하는 방법
WO2023008745A1 (ko) 전자 장치 및 필기 인식 방법
WO2024063346A1 (ko) 텍스트를 표시하기 위한 전자 장치 및 그 방법
WO2022030890A1 (ko) 다중 윈도우 이미지 캡쳐 방법 및 이를 위한 전자 장치
WO2022010279A1 (en) Electronic device for converting handwriting to text and method therefor
WO2021091226A1 (en) Method and electronic device for correcting handwriting input
WO2020060121A1 (ko) 필기 입력에 대한 보정 방법, 이를 위한 전자 장치 및 저장 매체
WO2022131617A1 (ko) 필기 입력을 처리하는 전자 장치 및 그 작동 방법
WO2024014655A1 (ko) 획들에 의해 나타나는 문장을 식별하기 위한 전자 장치 및 방법
WO2024080709A1 (ko) 음성 신호에 기반하여 실행가능한 객체를 제어하는 전자 장치, 방법, 및 비일시적 컴퓨터 판독가능 저장 매체
WO2023195617A1 (ko) 손글씨 동기화 방법 및 전자 장치
WO2024080838A1 (ko) 키보드 입력의 오타 보정을 위한 전자 장치 및 방법
WO2024085460A1 (ko) 이미지 내에 포함된 글자들을 식별하기 위한 전자 장치 및 그 방법
WO2024111943A1 (ko) 복수의 카메라를 이용하여 코드 정보에 대응하는 시각적 객체를 식별하기 위한 전자 장치, 방법, 및 컴퓨터 판독 가능 저장 매체
WO2022010092A1 (ko) 컨텐츠 공유를 지원하는 전자 장치
KR20240039983A (ko) 텍스트를 표시하기 위한 전자 장치 및 그 방법
WO2023191305A1 (ko) 플렉서블 디스플레이를 갖는 전자 장치
WO2023146077A1 (ko) 가상 키보드 상의 터치 입력으로부터 사용자 의도를 인식하기 위한 전자 장치, 방법, 및 비일시적 컴퓨터 판독가능 저장 매체
WO2023013894A1 (ko) 촬영된 영상에 시각 효과를 적용하고 태그를 설정하는 방법 및 장치

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23868403

Country of ref document: EP

Kind code of ref document: A1