CN107943390B - Character copying method and mobile terminal - Google Patents

Character copying method and mobile terminal Download PDF

Info

Publication number
CN107943390B
CN107943390B CN201711131842.0A CN201711131842A CN107943390B CN 107943390 B CN107943390 B CN 107943390B CN 201711131842 A CN201711131842 A CN 201711131842A CN 107943390 B CN107943390 B CN 107943390B
Authority
CN
China
Prior art keywords
information
control
display interface
character
text information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711131842.0A
Other languages
Chinese (zh)
Other versions
CN107943390A (en
Inventor
林雄周
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711131842.0A priority Critical patent/CN107943390B/en
Publication of CN107943390A publication Critical patent/CN107943390A/en
Application granted granted Critical
Publication of CN107943390B publication Critical patent/CN107943390B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • 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

Abstract

The invention provides a character copying method and a mobile terminal, wherein the method comprises the following steps: when a character recognition instruction of a display interface is received, recognizing characters in the display interface to obtain character information in the display interface and position information of the character information; according to the position information, marking and displaying the character information; and if the selection operation aiming at the marked and displayed character information is detected, copying the marked and displayed character information. The mobile terminal provided by the invention can identify the character information in the display interface and mark and display the character information when receiving the character identification instruction of the display interface, so that a user can copy the character information only by executing selection operation aiming at the marked and displayed character information, thereby obtaining better character copying efficiency.

Description

Character copying method and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a character method and a mobile terminal.
Background
With the increasing popularity of mobile terminals, people often use mobile terminals to perform various transactions, such as browsing social network sites, reading novels, watching news or editing text contents, and during the transactions, users can copy and paste interesting text contents. At present, when characters displayed on a display interface of a mobile terminal need to be copied, a user is usually required to manually select the characters to be copied and perform a copy confirmation operation.
Therefore, the character copying method adopted by the existing mobile terminal has the problem of poor copying efficiency.
Disclosure of Invention
The embodiment of the invention provides a character copying method and a mobile terminal, and aims to solve the problem that the character copying method adopted by the existing mobile terminal is poor in copying efficiency.
In order to solve the technical problem, the invention is realized as follows: a character copying method is applied to a mobile terminal, and comprises the following steps:
when a character recognition instruction of a display interface is received, recognizing characters in the display interface to obtain character information in the display interface and position information of the character information;
according to the position information, marking and displaying the character information;
and if the selection operation aiming at the marked and displayed character information is detected, copying the marked and displayed character information.
In a first aspect, an embodiment of the present invention provides a text copying method, which is applied to a mobile terminal, and the method includes:
when a character recognition instruction of a display interface is received, recognizing characters in the display interface to obtain character information in the display interface and position information of the character information;
according to the position information, marking and displaying the character information;
and if the selection operation aiming at the marked and displayed character information is detected, copying the marked and displayed character information.
In a second aspect, an embodiment of the present invention provides a mobile terminal, including:
the identification module is used for identifying characters in a display interface when receiving a character identification instruction of the display interface to obtain character information in the display interface and position information of the character information;
the marking module is used for marking and displaying the text information according to the position information;
the first copying module is used for copying the marked and displayed text information if the selection operation aiming at the marked and displayed text information is detected.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps in the above-mentioned text copying method.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps in the text copying method.
In the embodiment of the invention, the mobile terminal can identify the character information in the display interface and mark and display the character information when receiving the character identification instruction of the display interface, so that a user can copy the character information only by executing selection operation aiming at the marked and displayed character information, thereby obtaining better character copying efficiency.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a text copying method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating another text copying method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of text information in a control marked with a box according to an embodiment of the present invention;
FIG. 4a is a schematic diagram of original mark positions of a first box and a second box according to an embodiment of the present invention;
fig. 4b is a schematic diagram illustrating positions of marks of the first frame and the second frame after the first frame is dragged according to the embodiment of the present invention;
fig. 4c is a schematic diagram of a mark position of the third box after the third box is generated according to the embodiment of the present invention;
FIG. 4d is a schematic diagram of a mark position of the third frame after the third frame is dragged according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic flow chart of a text copying method provided in an embodiment of the present invention, which is applied to a mobile terminal, and as shown in fig. 1, the method includes the following steps:
step 101, when a character recognition instruction of a display interface is received, recognizing characters in the display interface to obtain character information in the display interface and position information of the character information.
In this step, the display interface may be an interface currently displayed by the mobile terminal, where text information is generally displayed on the mobile display interface. In this step, the text information displayed on the display interface may be obtained by performing text recognition on the display interface, where the text information may include text content information, and may also include information such as text font and size, and the position information of the text information may be coordinate position information of the text information in the display interface.
In the step, the character information in the display interface and the position information of the character information can be obtained by identifying the characters in the display interface, so that the identified character information can be marked according to the position information of the character information for copying.
And 102, marking and displaying the character information according to the position information.
In this step, after the position information of the text information is determined, the area where the text information is located in the display interface may be determined according to the position information, so that the text information may be marked according to the area where the text information is located, and the marked text information is displayed, for example: the area where the text information is located can be marked by lines, or the area where the text information is located is covered by a light-color layer, and then the marked text information is displayed on the display interface.
In the step, the text information in the display interface is displayed through the mark, so that a user can perform corresponding copying operation according to the marked and displayed text information.
And 103, copying the marked and displayed character information if the selection operation for the marked and displayed character information is detected.
In this embodiment, after the text information in the display interface is marked and displayed, the user may complete the copying of the marked and displayed text information by performing a selection operation on the marked and displayed text information. Therefore, in this step, if a selection operation for the marked and displayed text information is detected, the marked and displayed text information is copied, where the selection operation may be a single-click operation, a double-click operation, a long-press operation, or the like, and the copied and displayed text information may be the text content of the copied text information or the font and size of the copied text information.
In the step, the marked and displayed text information is copied by detecting the selection operation aiming at the marked and displayed text information, so that a user can copy any text in a display interface and can complete the copying only by simple operation, and better text copying efficiency can be obtained.
In this embodiment of the present invention, the mobile terminal may be any device having a storage medium, for example: terminal devices such as computers (Computer), Mobile phones, Tablet Personal computers (Tablet Personal Computer), laptop computers (laptop Computer), Personal Digital Assistants (PDA), Mobile Internet Devices (MID), and Wearable devices (Wearable Device).
In the text copying method in this embodiment, the mobile terminal may recognize the text information in the display interface and mark and display the text information when receiving the text recognition instruction of the display interface, so that a user only needs to perform a selection operation on the marked and displayed text information to complete the copying of the text information, thereby obtaining a better text copying efficiency and a better text copying efficiency.
Referring to fig. 2, fig. 2 is a flowchart illustrating another text copying method according to an embodiment of the present invention, which is applied to a mobile terminal, and as shown in fig. 2, the method includes the following steps:
step 201, if a touch operation for a virtual key is detected, confirming that a character recognition instruction of a display interface is received, recognizing characters in the display interface, and obtaining character information in the display interface and position information of the character information, wherein the virtual key is displayed on the display interface.
In this embodiment, the display interface may display a virtual key for starting a text recognition function, and when a touch operation for the virtual key is detected, it is determined that a text recognition instruction of the display interface is received, and text in the display interface is recognized at the same time, where the touch operation for the virtual key may be an operation of clicking the virtual key.
The specific implementation of the step of identifying the text in the display interface may refer to the related implementation of step 101 in the method embodiment shown in fig. 1, and the same beneficial effects can be achieved, and in order to avoid repetition, details are not repeated here.
In this step, if a touch operation for the virtual key is detected, it is confirmed that a character recognition instruction of the display interface is received, and characters in the display interface are recognized, so that a user can start a character recognition function by touching the virtual key, and user experience is improved.
Optionally, the step of identifying the text in the display interface includes:
identifying a control in a display interface and the type of the control;
if the control is identified to be a text control, identifying characters in the control to obtain character information in the control and position information of the character information;
and if the control is identified to be a picture control, carrying out character identification on the control by utilizing an image character identification technology to obtain character information in the control and position information of the character information.
In this embodiment, because a plurality of different controls are generally displayed on the display interface of the mobile terminal, the identifying of the text in the display interface may be performed by first identifying the controls and the types of the controls on the display interface to obtain the related information of the controls, such as the category attribute and the position of the controls, and then performing text identification on the controls in different ways according to the specific types of the controls to obtain the text information in the controls and the position information of the text information.
If the control is identified to be a text type control, that is, the control is a pure text type control, and no picture is included therein, the text in the control can be directly identified, specifically, information such as text content, font, size, and position in the control can be obtained by searching from the attribute information of the control, so as to determine the text information of the control and the position information of the text information.
If the control is identified as a picture control, Character identification can be performed on the control by using an image Character identification technology, so that Character information in the control and position information of the Character information can be obtained, wherein the image Character identification technology can be an Optical Character Recognition (OCR) technology, and the OCR technology has a high identification rate and a high identification accuracy, or a technology for identifying characters in an image by identifying parameters such as a matrix high texture feature or a convolutional neural network feature of the image.
In the embodiment, by identifying the control and the type of the control in the display interface and according to the different types of the control, the characters in the control are identified by adopting different corresponding identification modes, so that the character information of the control and the position information of the character information are obtained, and the mobile terminal is further ensured to mark the identified character information according to the position information of the character information.
Of course, the same can be applied to the embodiment shown in fig. 1 and the same advantageous effects can be achieved.
Step 202, according to the position information, marking and displaying the character information.
The specific implementation of this step can refer to the related implementation of step 102 in the method embodiment shown in fig. 1, and the same beneficial effects can be achieved, and for avoiding repetition, details are not described here again.
Optionally, step 202 includes:
according to the position information, a marking frame is adopted to mark and display the area where the character information is located;
after the step of displaying the area where the text information is located by using the mark frame according to the position information, the method further includes:
and if the dragging operation of a first mark frame for marking the text information in the first control on the display interface is detected, and the first mark frame is partially overlapped with a second mark frame for marking the text information in the second control on the display interface after the dragging operation, generating a third mark frame, wherein the third mark frame is used for marking and displaying the text information in the first control and the text information in the second control.
In this embodiment, a marking frame may be used to mark the area where the text information is located, where the marking frame may be a linear frame such as a square frame or a circular frame, for example: as shown in fig. 3, the text information in the control on the display interface is marked by using a box 301, so that the user can copy the text in the box by clicking a certain box.
After the text information is marked by the mark frame, the function of copying the text information in more than two controls at the same time can be realized by dragging the mark frame. Specifically, if a drag operation of a first mark frame for marking text information in a first control on the display interface is detected, and after the drag operation, the first mark frame overlaps with a second mark frame for marking text information in a second control on the display interface, that is, the first mark frame covers part or all of text information in another mark frame after the drag operation, a third mark frame may be generated adaptively, where the third mark frame is used to mark and display text information in the first control and text information in the second control, and the third mark frame may be a mark frame adaptively adjusted based on the first mark frame, or may be a newly generated mark frame, and the former may generate the third mark frame and simultaneously clear the second mark frame, and the latter may clear the first marker box and the second marker box while generating the third marker box.
For example: before the drag is not performed, the areas marked by the first box 401 and the second box 402 are as shown in fig. 4a, and if the first box 401 after the drag is as shown in fig. 4b, it can be seen that the first box 401 and the second box 402 are partially overlapped, so that a third box 403 can be generated, wherein the third box 403 covers the characters in the first box 401 and the second box 402, as shown in fig. 4c, so that the third box 403 realizes the marking of the character information in the first box and the character information in the second box.
Conversely, after the third mark box is generated to mark both the text information in the first control and the text information in the second control, the third mark box may be dragged again to restore the marked areas of the first mark box and the second mark box before the last dragging. For example: after the dragging again, the area marked by the third box 403 is as shown in fig. 4d, and at this time, the first box 401 and the second box 402 can be adaptively restored to the original positions, that is, the marked positions shown in fig. 4 a.
In the embodiment, a user can update the marked area of the dragged mark frame by dragging a mark frame in the display interface to a part or all of the marked area of another mark frame, so that the user can select the text information required to be copied according to the requirement of the user, and can copy the text information in different controls at the same time, thereby obtaining better user experience.
Of course, the same can be applied to the embodiment shown in fig. 1 and the same advantageous effects can be achieved.
Optionally, after the step of generating a third mark frame if a drag operation for a first mark frame used for marking text information in a first control on the display interface is detected and the first mark frame after the drag operation partially overlaps with a second mark frame used for marking text information in a second control on the display interface, the method further includes:
if the selection operation aiming at the third mark frame is detected, copying the character information in the third mark frame;
and if the pasting operation is detected, pasting the text information in the third mark frame, and performing sectional typesetting on the text information in different controls in the third mark frame.
In this embodiment, after the third mark frame is generated, if a selection operation for the third mark frame is detected, the text information in the third mark frame is copied, so that the text information marked by the third mark frame and located in different controls can be copied at a time, and the text copying efficiency is greatly improved.
After copying the text information in the third mark frame, if a paste operation is detected, the text information in the third mark frame may be pasted, specifically, the text information in the third mark frame may be pasted to the position according to the position of the information input when the paste operation is performed, and the text information in the third mark frame located in different controls may be typeset in segments, for example: because the third mark frame comprises the text information in the first control and the text information in the second control, when the text information in the third mark frame is pasted, the text information in the first control can be pasted on one paragraph, and the text information in the second control is pasted on another paragraph.
Therefore, in the embodiment, when the text information in the different controls is copied and pasted, the text information in the different controls can be typeset in a segmented manner according to the different controls, so that the pasted text information has a good typesetting effect, and the user experience is improved.
Step 203, if the selection operation for the marked displayed character information is detected, copying the marked displayed character information.
The specific implementation of this step can refer to the related implementation of step 103 in the method embodiment shown in fig. 1, and the same beneficial effects can be achieved, and for avoiding repetition, details are not described here.
In this embodiment, on the basis of the embodiment shown in fig. 1, the step of identifying the characters in the display interface when the character identification instruction of the display interface is received is refined, so that the triggering manner of the step of identifying the characters in the display interface is defined. In addition, a plurality of optional implementation manners are added to the embodiment shown in fig. 1, and these optional implementation manners may be implemented in combination with each other or individually, and all the implementation manners may achieve the technical effect of obtaining better text copying efficiency.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 5, the mobile terminal 500 includes:
the identification module 501 is configured to identify characters in a display interface when a character identification instruction of the display interface is received, and obtain character information in the display interface and position information of the character information;
a mark display module 502, configured to perform mark display on the text information according to the position information;
the first copying module 503 is configured to copy the marked and displayed text information if a selection operation for the marked and displayed text information is detected.
Optionally, the display interface displays virtual keys;
the identification module 501 is configured to, if a touch operation for the virtual key is detected, confirm that a character identification instruction of a display interface is received, identify characters in the display interface, and obtain character information in the display interface and position information of the character information.
Optionally, as shown in fig. 6, the identifying module 501 includes:
the first identification unit 5011 is used for identifying a control in a display interface and the type of the control;
the second identifying unit 5012 is configured to identify a character in the control to obtain character information in the control and position information of the character information if the control is identified as a text control;
the third identifying unit 5013 is configured to perform text identification on the control by using an image text identification technology if the control is identified as a photo type control, so as to obtain text information in the control and position information of the text information.
Optionally, the mark display module 502 is configured to display a mark of the area where the text information is located by using a mark frame according to the position information;
as shown in fig. 7, the mobile terminal 500 further includes:
a generating module 504, configured to generate a third mark frame if a drag operation of a first mark frame for marking text information in a first control on the display interface is detected, and after the drag operation, the first mark frame overlaps with a second mark frame for marking text information in a second control on the display interface, where the third mark frame is used to mark and display the text information in the first control and the text information in the second control.
Optionally, as shown in fig. 8, the mobile terminal 500 further includes:
a second copying module 505, configured to copy, if a selection operation for the third mark frame is detected, text information in the third mark frame;
and the pasting module 506 is configured to paste the text information in the third markup frame and perform the segment typesetting on the text information in different controls in the third markup frame if the pasting operation is detected.
The mobile terminal 500 can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition. The mobile terminal 500 of the embodiment of the invention can identify the character information in the display interface and mark and display the character information when receiving the character identification instruction of the display interface, so that a user can copy the character information only by executing selection operation aiming at the marked and displayed character information, thereby obtaining better character copying efficiency.
Fig. 9 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and a power supply 911. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 9 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 910 is configured to, when receiving a text identification instruction of a display interface, identify text in the display interface to obtain text information in the display interface and position information of the text information;
according to the position information, marking and displaying the character information;
and if the selection operation aiming at the marked and displayed character information is detected, copying the marked and displayed character information.
Optionally, the display interface displays virtual keys;
the processor 910 is further configured to:
and if the touch operation aiming at the virtual key is detected, confirming that a character recognition instruction of the display interface is received, and recognizing characters in the display interface.
Optionally, the processor 910 is further configured to:
identifying a control in a display interface and the type of the control;
if the control is identified to be a text control, identifying characters in the control to obtain character information in the control and position information of the character information;
and if the control is identified to be a picture control, carrying out character identification on the control by utilizing an image character identification technology to obtain character information in the control and position information of the character information.
Optionally, the processor 910 is further configured to:
according to the position information, a marking frame is adopted to mark and display the area where the character information is located;
and if the dragging operation of a first mark frame for marking the text information in the first control on the display interface is detected, and the first mark frame is partially overlapped with a second mark frame for marking the text information in the second control on the display interface after the dragging operation, generating a third mark frame, wherein the third mark frame is used for marking and displaying the text information in the first control and the text information in the second control.
Optionally, the processor 910 is further configured to:
if the selection operation aiming at the third mark frame is detected, copying the character information in the third mark frame;
and if the pasting operation is detected, pasting the text information in the third mark frame, and performing sectional typesetting on the text information in different controls in the third mark frame.
The mobile terminal 900 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, the details are not described here. The mobile terminal 900 of the embodiment of the invention can identify the character information in the display interface and mark the character information when receiving the character identification instruction of the display interface, so that the user can copy the character information only by executing selection operation aiming at the marked and displayed character information, thereby obtaining better character copying efficiency.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 901 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 910; in addition, the uplink data is transmitted to the base station. Generally, the radio frequency unit 901 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 901 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 902, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 903 may convert audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output as sound. Also, the audio output unit 903 may also provide audio output related to a specific function performed by the mobile terminal 900 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.
The input unit 904 is used to receive audio or video signals. The input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics processor 9041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 906. The image frames processed by the graphic processor 9041 may be stored in the memory 909 (or other storage medium) or transmitted via the radio frequency unit 901 or the network module 902. The microphone 9042 can receive sounds and can process such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 901 in case of the phone call mode.
The mobile terminal 900 also includes at least one sensor 905, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 9061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 9061 and/or backlight when the mobile terminal 900 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 905 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described in detail herein.
The display unit 906 is used to display information input by the user or information provided to the user. The Display unit 906 may include a Display panel 9061, and the Display panel 9061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 907 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 9071 (e.g., operations by a user on or near the touch panel 9071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 9071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 910, receives a command from the processor 910, and executes the command. In addition, the touch panel 9071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 907 may include other input devices 9072 in addition to the touch panel 9071. Specifically, the other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, and the like), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 9071 may be overlaid on the display panel 9061, and when the touch panel 9071 detects a touch operation on or near the touch panel 9071, the touch panel is transmitted to the processor 910 to determine the type of the touch event, and then the processor 910 provides a corresponding visual output on the display panel 9061 according to the type of the touch event. Although in fig. 9, the touch panel 9071 and the display panel 9061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 9071 and the display panel 9061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 908 is an interface through which an external device is connected to the mobile terminal 900. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 908 may be used to receive input from external devices (e.g., data information, power, etc.) and transmit the received input to one or more elements within the mobile terminal 900 or may be used to transmit data between the mobile terminal 900 and external devices.
The memory 909 may be used to store software programs as well as various data. The memory 909 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 909 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 910 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 909 and calling data stored in the memory 909, thereby performing overall monitoring of the mobile terminal. Processor 910 may include one or more processing units; preferably, the processor 910 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The mobile terminal 900 may also include a power supply 911 (e.g., a battery) for powering the various components, and preferably, the power supply 911 is logically connected to the processor 910 through a power management system that provides power management functions to manage charging, discharging, and power consumption.
In addition, the mobile terminal 900 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 910, a memory 909, and a computer program that is stored in the memory 909 and can be run on the processor 910, and when the computer program is executed by the processor 910, the computer program implements each process of the above-mentioned text copying method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the method for copying a character, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (6)

1. A character copying method is applied to a mobile terminal, and is characterized by comprising the following steps:
when a character recognition instruction of a display interface is received, recognizing characters in the display interface to obtain character information in the display interface and position information of the character information;
according to the position information, marking and displaying the character information;
if the selection operation aiming at the marked and displayed text information is detected, copying the marked and displayed text information;
the step of identifying the characters in the display interface comprises the following steps:
identifying a control in a display interface and the type of the control;
if the control is identified to be a text control, identifying characters in the control to obtain character information in the control and position information of the character information;
if the control is identified to be a picture control, character identification is carried out on the control by utilizing an image character identification technology to obtain character information in the control and position information of the character information;
the step of displaying the character information by marking according to the position information comprises the following steps:
according to the position information, a marking frame is adopted to mark and display the area where the character information is located;
after the step of displaying the area where the text information is located by using the mark frame according to the position information, the method further includes:
if the dragging operation of a first mark frame for marking the text information in the first control on the display interface is detected, and the first mark frame is partially overlapped with a second mark frame for marking the text information in the second control on the display interface after dragging, generating a third mark frame, wherein the third mark frame is used for marking and displaying the text information in the first control and the text information in the second control;
and if the selection operation aiming at the third mark frame is detected, copying the character information in the third mark frame.
2. The method of claim 1, wherein the display interface displays virtual keys;
when a character recognition instruction of the display interface is received, the step of recognizing characters in the display interface comprises the following steps:
and if the touch operation aiming at the virtual key is detected, confirming that a character recognition instruction of the display interface is received, and recognizing characters in the display interface.
3. The method according to claim 1, wherein after the step of generating a third markup frame if a drag operation for a first markup frame on the display interface for markup text information in a first control is detected and after the drag operation, the first markup frame partially overlaps with a second markup frame on the display interface for markup text information in a second control, the method further comprises:
and if the pasting operation is detected, pasting the text information in the third mark frame, and performing sectional typesetting on the text information in different controls in the third mark frame.
4. A mobile terminal, comprising:
the identification module is used for identifying characters in a display interface when receiving a character identification instruction of the display interface to obtain character information in the display interface and position information of the character information;
the mark display module is used for performing mark display on the character information according to the position information;
the first copying module is used for copying the marked and displayed text information if the selection operation aiming at the marked and displayed text information is detected;
the identification module comprises:
the first identification unit is used for identifying a control in a display interface and the type of the control;
the second identification unit is used for identifying characters in the control to obtain character information in the control and position information of the character information if the control is identified to be a text control;
the third identification unit is used for carrying out character identification on the control by utilizing an image character identification technology to obtain character information in the control and position information of the character information if the control is identified to be a picture control;
the mark display module is used for marking and displaying the area where the text information is located by adopting a mark frame according to the position information;
the mobile terminal further includes:
the generating module is configured to generate a third mark frame if a drag operation of a first mark frame for marking text information in a first control on the display interface is detected, and the first mark frame is partially overlapped with a second mark frame for marking text information in a second control on the display interface after the drag operation, where the third mark frame is used for marking and displaying the text information in the first control and the text information in the second control;
and the second copying module is used for copying the character information in the third mark frame if the selection operation aiming at the third mark frame is detected.
5. The mobile terminal of claim 4, wherein the display interface displays virtual keys;
the identification module is used for confirming that a character identification instruction of a display interface is received if touch operation aiming at the virtual key is detected, identifying characters in the display interface and obtaining character information in the display interface and position information of the character information.
6. The mobile terminal of claim 4, wherein the mobile terminal further comprises:
and the pasting module is used for pasting the text information in the third mark frame and performing sectional typesetting on the text information in different controls in the third mark frame if the pasting operation is detected.
CN201711131842.0A 2017-11-15 2017-11-15 Character copying method and mobile terminal Active CN107943390B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711131842.0A CN107943390B (en) 2017-11-15 2017-11-15 Character copying method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711131842.0A CN107943390B (en) 2017-11-15 2017-11-15 Character copying method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107943390A CN107943390A (en) 2018-04-20
CN107943390B true CN107943390B (en) 2020-04-24

Family

ID=61932324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711131842.0A Active CN107943390B (en) 2017-11-15 2017-11-15 Character copying method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107943390B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739416B (en) * 2018-04-19 2020-07-03 北京字节跳动网络技术有限公司 Text extraction method and device
CN110941947A (en) * 2018-09-21 2020-03-31 广州金山移动科技有限公司 Document editing method and device, computer storage medium and terminal
CN109376806A (en) * 2018-10-26 2019-02-22 深圳点猫科技有限公司 A kind of method and electronic equipment based on Web page intelligent detection webpage text
CN109976847A (en) * 2019-02-28 2019-07-05 努比亚技术有限公司 Information display method, mobile terminal and non-transient computer readable storage medium
CN110568981A (en) * 2019-09-12 2019-12-13 北京安云世纪科技有限公司 Character operation method and device
CN111310667B (en) * 2020-02-18 2023-09-01 北京小马慧行科技有限公司 Method, device, storage medium and processor for determining whether annotation is accurate
CN111460765B (en) * 2020-03-30 2020-12-29 掌阅科技股份有限公司 Electronic book labeling processing method, electronic equipment and storage medium
CN112162672A (en) * 2020-10-19 2021-01-01 腾讯科技(深圳)有限公司 Information flow display processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516674A (en) * 2014-12-19 2015-04-15 网易有道信息技术(北京)有限公司 Word processing method and device
CN106598409A (en) * 2016-11-30 2017-04-26 宇龙计算机通信科技(深圳)有限公司 Text replication method and device, and intelligent terminal
CN106791115A (en) * 2016-12-26 2017-05-31 努比亚技术有限公司 A kind of information of mobile terminal clone method and mobile terminal
CN107077292A (en) * 2014-08-29 2017-08-18 三星电子株式会社 Clip and paste information providing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107077292A (en) * 2014-08-29 2017-08-18 三星电子株式会社 Clip and paste information providing method and device
CN104516674A (en) * 2014-12-19 2015-04-15 网易有道信息技术(北京)有限公司 Word processing method and device
CN106598409A (en) * 2016-11-30 2017-04-26 宇龙计算机通信科技(深圳)有限公司 Text replication method and device, and intelligent terminal
CN106791115A (en) * 2016-12-26 2017-05-31 努比亚技术有限公司 A kind of information of mobile terminal clone method and mobile terminal

Also Published As

Publication number Publication date
CN107943390A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
CN108762954B (en) Object sharing method and mobile terminal
CN107943390B (en) Character copying method and mobile terminal
CN108469898B (en) Image processing method and flexible screen terminal
CN108737904B (en) Video data processing method and mobile terminal
CN111338530B (en) Control method of application program icon and electronic equipment
CN109240577B (en) Screen capturing method and terminal
CN111031398A (en) Video control method and electronic equipment
CN109739407B (en) Information processing method and terminal equipment
CN108646960B (en) File processing method and flexible screen terminal
CN108763540B (en) File browsing method and terminal
CN111610904B (en) Icon arrangement method, electronic device and storage medium
CN107783747B (en) Interface display processing method and mobile terminal
CN109189303B (en) Text editing method and mobile terminal
CN109271262B (en) Display method and terminal
WO2020220893A1 (en) Screenshot method and mobile terminal
CN109597546B (en) Icon processing method and terminal equipment
CN109669656B (en) Information display method and terminal equipment
CN111061446A (en) Display method and electronic equipment
CN108600498B (en) Information prompting method and device
CN107908329B (en) Application icon management method and mobile terminal
WO2020192662A1 (en) Operation method and terminal device
CN110213437B (en) Editing method and mobile terminal
CN110515507B (en) Icon display method and terminal
CN110333803B (en) Multimedia object selection method and terminal equipment
CN111522613A (en) Screen capturing method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant