WO2019233316A1 - 数据处理方法、装置、移动终端以及存储介质 - Google Patents
数据处理方法、装置、移动终端以及存储介质 Download PDFInfo
- Publication number
- WO2019233316A1 WO2019233316A1 PCT/CN2019/088870 CN2019088870W WO2019233316A1 WO 2019233316 A1 WO2019233316 A1 WO 2019233316A1 CN 2019088870 W CN2019088870 W CN 2019088870W WO 2019233316 A1 WO2019233316 A1 WO 2019233316A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- target text
- text information
- area
- duration
- target
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Definitions
- the present application relates to the technical field of mobile terminals, and more particularly, to a data processing method, device, mobile terminal, and storage medium.
- the touch display set on the mobile terminal more users choose to control the mobile terminal through a series of touch operations in the touch display.
- the touch screen is used to process the text content displayed on the display screen.
- the touch operation process is still cumbersome and the user experience is not high.
- this application proposes a data processing method, device, mobile terminal, and storage medium to achieve the improvement of the above problems.
- the present application provides a data processing method applied to a mobile terminal.
- the method includes: detecting a touch operation acting on a target area; and if a touch operation that detects a touch area meeting a preset threshold area is detected After that, the duration of the touch operation that is continuously acting is detected; if it is detected that the duration of the action satisfies a preset duration, the data displayed in the target area is processed to obtain the target text information; the display is related to the target Information associated with text messages.
- the present application provides a data processing device running on a mobile terminal.
- the device includes: a touch operation detection unit for detecting a touch operation acting on a target area; and a duration detection unit for After the touch operation detection unit detects a touch operation in which the touch area satisfies a preset threshold area, the touch operation duration of the touch operation that is continuously acting is detected; and the target text acquisition unit is configured to detect the duration of the operation if the touch operation is detected. After the preset duration is satisfied, the data displayed in the target area is processed to obtain target text information; and an information display unit is configured to display information associated with the target text information.
- the present application provides a mobile terminal including one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by all The one or more processors execute, and the one or more programs are configured to perform the method described above.
- a computer-readable storage medium provided by the present application, the computer-readable storage medium including a stored program, wherein the method is executed when the program is run by a processor.
- FIG. 1 shows a flowchart of a data processing method provided by the present application
- FIG. 2 is a schematic diagram showing a state of a touch area in a data processing method proposed by the present application
- FIG. 3 is a schematic diagram of another state of a touch area in a data processing method proposed in the present application.
- FIG. 4 shows a flowchart of another data processing method provided by the present application.
- FIG. 5 shows a schematic diagram of a target area of a data processing method proposed in the present application
- FIG. 6 illustrates a state diagram of a progress display control in a data processing method proposed by the present application
- FIG. 7 illustrates another state diagram of a progress display control in a data processing method proposed by the present application
- FIG. 8 is a schematic diagram showing a display manner of still another data processing method according to the present application.
- FIG. 9 shows a structural block diagram of a connection control device proposed in the present application.
- FIG. 10 shows a structural block diagram of another connection control device proposed by the present application.
- FIG. 11 shows a structural block diagram of a mobile terminal proposed by the present application.
- FIG. 12 shows a structural block diagram of a mobile terminal for executing a data processing method according to an embodiment of the present application
- FIG. 13 is a storage unit for storing or carrying a program code for implementing a data processing method according to an embodiment of the present application.
- the user can press two fingers to the text recognition area. After detecting that the user's two-finger pressing time exceeds a certain length of time or the two-finger pressing pressure exceeds a certain force, the text in the pressed area is started. Recognize to extract keywords, and then search the keywords to get information associated with the keywords for display. Alternatively, you can also use single-finger pressing to start recognizing the text of the pressed area after detecting that the pressing area exceeds a certain area, to extract keywords, and then search the keywords to obtain information related to the keywords. Display it.
- the data processing object of the data processing method provided in this application may be a picture or a text.
- the mobile terminal first recognizes the text in the picture, obtains the text content in the picture, and then performs subsequent data processing steps, for example, splitting keywords from the text content to perform Search etc.
- the text processed by the data processing method provided in this application may be part of the text displayed by the mobile terminal, or all text displayed by the mobile terminal.
- a data processing method provided in this application is applied to a mobile terminal, and the method includes:
- Step S110 Detect a touch operation acting on the target area.
- the touch operation includes a pressing operation and a sliding operation.
- the pressing operation refers to an operation that continuously generates a certain pressure on the touched position in the display screen after touching the display screen of the mobile terminal.
- the sliding operation refers to an operation of moving a touch point from the position to another position after touching a position in the display screen, and keeps touching the display screen during the movement.
- Step S120 After detecting a touch operation in which the touch area satisfies a preset threshold area, detecting the duration of the continuous operation of the touch operation.
- the touch area detection method will be different. For example, for a pressing operation, it is the area where a touch to the screen position is detected. For the sliding operation, the area of the sliding track passing area is detected. For example, as shown in FIG. 2, when the touch operation is a pressing operation, the pressing area is the area of area A in the figure, and when the touch operation is a sliding operation, as shown in FIG. 3, the touch area is Is the area of area B in the figure.
- the mobile terminal after the mobile terminal detects a touch operation where the touch area of the touch operation satisfies a preset threshold area at a certain time, it starts to detect the touch operation that is continuously acting.
- the duration of the action, and the process of detecting the duration of the action will not be interrupted because the touch area is smaller than the preset threshold area during the continuous operation of the touch operation.
- Step S130 if it is detected that the action duration satisfies a preset duration, the data displayed in the target area is processed to obtain target text information.
- the detection of the time of the touch operation within a time period from the moment when the touch area satisfies the preset threshold area to the moment when the action duration satisfies the preset duration is detected. Whether the touch area always meets the preset threshold; if yes, execute the processing on the data displayed in the target area to obtain target text information.
- Step S140 Display information associated with the target text information.
- a data processing method provided by the present application is that after detecting a touch operation whose touch area satisfies a preset threshold area, detecting a duration of the touch operation that continuously acts, and when the duration of the effect is detected, the pre- After setting the duration, the data displayed in the target area is processed to obtain the target text information, and finally the information associated with the target text information is displayed, thereby simplifying the user's operation steps in the text recognition process and improving the user Experience.
- a data processing method provided in this application is applied to a mobile terminal, and the method includes:
- Step S210 Detect a touch operation acting on the target area.
- Step S220 After detecting a touch operation in which the touch area satisfies a preset threshold area, detecting the duration of the touch operation that continues to work.
- Step S230 If it is detected that the action duration satisfies a preset duration, the data displayed in the target area is processed to obtain target text information.
- the mobile terminal may perform a preset basic function operation on the text displayed in the target area, where the preset basic operation includes copying, selecting, searching, Forward or translate. It can be understood that the difference between the preset basic function and the process mentioned in step S230 is whether to process the text displayed in the target area and extract the target text information.
- step S230 whether the mobile terminal performs a preset basic function operation on the text displayed in the target area or whether it is an operation shown in step S230 may be determined by whether a touch operation is detected in an area other than the target area. Then, as a method, if it is detected that the action duration satisfies a preset duration and no touch operation is detected in an area other than the target area, the data displayed in the target area is processed to obtain the target Text information; if it is detected that the action duration satisfies a preset duration, and after a touch operation is detected in an area other than the target area, a preset basic operation is directly performed on the entire text displayed in the target area.
- the target area is the area where the touch operation is performed, or the entire area of the display screen of the mobile terminal.
- the detected target area of the touch operation is the area A shown in the figure, that is, when the contact 131 falls on the area A
- the mobile terminal displays the picture or text displayed in the area A. Line processing to extract target text information from the picture or text displayed in area A.
- the mobile terminal can parse out the target text information from the target area based on the existing semantic parsing technology.
- the semantic parsing technology can be used to split the data in the picture or text of the target area into a single completed word or word. For example, the text displayed in the target area is "Let's go watch a movie at night", then the target text information parsed by the mobile terminal based on the semantic parsing technology can include "we", “evening", "go”, “see”, “ Movie "and” let's go. "
- the target text information parsed from the target area is still related to the database data used. For example, if the text displayed in the target area is "Go to the Avengers", and the database corresponding to the semantic parsing technology does not store “Avengers”, then the mobile terminal parses the text of the target area to obtain the target text information. Including “that", “go”, “see”, “Avenger” and “Union”, and if "Avengers" is stored in the database, the target text information obtained after the text of the target area parsed by the mobile terminal includes "That", “Go", “Look”, “Avengers”.
- Step S240 It is detected whether information associated with the target text information has been acquired.
- the information associated with the target text information can be read locally on the mobile terminal or obtained from the network. In this case of reading from the local, the mobile terminal finds the information associated with the target text information locally, and determines that the information associated with the target text information has been acquired. For example, if the obtained target text information includes "Emeishan", then when a picture of information about Emeishan is found in the pictures stored locally, or when a document about Emeishan is found, it is determined that the "Emeishan" related information.
- whether the information associated with the target text information has been successfully acquired may be determined based on a network protocol used. For example, when a mobile terminal requests data from the network based on the http protocol or the https protocol, if the mobile terminal receives a response header including a 200 identifier in the response header of the network (characterizing that the information is successfully obtained from the network), it determines that the target text information is related The relevant information has been obtained.
- a network protocol used for example, when a mobile terminal requests data from the network based on the http protocol or the https protocol, if the mobile terminal receives a response header including a 200 identifier in the response header of the network (characterizing that the information is successfully obtained from the network), it determines that the target text information is related The relevant information has been obtained.
- the mobile terminal may also adopt other private protocols or common protocols, which are not specifically limited in this application.
- Step S250 if it is detected that the information associated with the target text information has not been acquired, displaying a preset transition animation.
- the mobile terminal may display a progress control, and the progress control is used to represent the progress of obtaining the information associated with the target text information.
- the state of the control is displayed at the time when the information associated with the target text information starts to be acquired, and as shown in FIG. 7, the time when the information associated with the target text information is completed is displayed The status of the control is displayed.
- Step S260 if it is detected that obtaining the information associated with the target text information has been completed, perform displaying the information associated with the target text information.
- the information associated with the target text information includes the target text information itself.
- the mobile terminal can directly display “us”, “Evening,” “Going,” “Watching,” “Movie,” and “Bar.”
- the user can continue to manually select the text he needs from the information such as "us”, “night”, “go”, “watch”, “movie”, and “bar” for translation, search, or copying, etc. operating.
- the mobile terminal may further search the parsed target text information and obtain information associated with the target text information in addition to the target text information. For example, taking the "Avengers Alliance" obtained by the analysis above as an example, when the mobile terminal retrieves the name of a movie, it can display the brief information of the movie, or display the click-through entrance of the ticket purchase software. It can be understood that, after the user clicks the click entry, the mobile terminal can start the ticket purchase software, and directly cause the ticket purchase software to directly display the "Avengers" ticket purchase page. As shown in FIG. 8, in a case where a card is used to display information associated with the target text information, the card's profile information can be displayed through the card 141, and the click entry of the ticket purchase software TPP can be displayed through the card 142.
- a data processing method provided by the present application is that after detecting a touch operation whose touch area satisfies a preset threshold area, detecting a duration of the touch operation that continuously acts, and when the duration of the effect is detected, the pre- After setting the duration, processing the data displayed in the target area to obtain target text information, and then displaying the information associated with the target text information after detecting that the information associated with the target text information has been obtained, This simplifies the user's operation steps in the text recognition process and improves the user experience.
- a data processing device 300 provided in this application runs on a mobile terminal.
- the device 300 includes:
- the touch operation detection unit 310 is configured to detect a touch operation acting on a target area.
- the duration detection unit 320 is configured to detect a duration of the touch operation that is continuously performed after the touch operation detection unit detects a touch operation whose touch area meets a preset threshold area.
- the target text obtaining unit 330 is configured to process the data displayed in the target area if it is detected that the action duration satisfies a preset duration to obtain target text information.
- the target text obtaining unit 330 detects the time period between the time when the touch area satisfies the preset threshold area and the time when the action duration satisfies the preset duration. After the touch area of the touch operation always meets the preset threshold, the data displayed in the target area is processed to obtain target text information.
- the target text obtaining unit 330 is configured to, if the detected duration meets a preset duration and no touch operation is detected in a region other than the target region, detect the target text.
- the data displayed in the area is processed to obtain the target text information; if it is detected that the duration of action satisfies a preset duration, and a touch operation is detected in an area outside the target area, the target area is directly displayed in the target area.
- the text as a whole performs a preset basic operation.
- the preset basic operations include copying, selecting, searching, forwarding, or translating.
- the target text obtaining unit 330 is further configured to detect whether the touch operation has a displacement exceeding a preset amplitude during the continuous action; if it is detected that the touch operation does not exceed a preset during the continuous action The magnitude of the displacement, after performing the processing, if the detected duration meets the preset duration, the data displayed in the target area is processed to obtain the target text information; if it is detected that there is If the displacement exceeds a preset range, the process ends.
- An information display unit 340 is configured to display information associated with the target text information.
- a data processing device 400 provided in the present application runs on a mobile terminal.
- the device 400 includes:
- the touch operation detection unit 410 is configured to detect a touch operation acting on a target area.
- the duration detection unit 420 is configured to detect a duration of the touch operation that is continuously performed after the touch operation detection unit detects a touch operation in which a touch area meets a preset threshold area.
- the target text obtaining unit 430 is configured to process the data displayed in the target area if it is detected that the action duration satisfies a preset duration to obtain target text information.
- the information acquisition unit 440 is configured to acquire information associated with the target text information, and detect whether the acquisition of information associated with the target text information has been completed.
- the information display unit 450 is configured for the information acquisition unit 440 to detect that the information associated with the target text information has been acquired, and display the information associated with the target text information.
- the information display unit 450 is further configured to display that the information acquisition unit 440 has not yet completed acquiring the information associated with the target text information, and display a preset transition animation.
- a data processing method, device, mobile terminal, and storage medium provided in this application detect a touch operation that continues to work after detecting a touch operation whose touch area meets a preset threshold area.
- the duration of action After detecting that the duration of action satisfies a preset duration, the data displayed in the target area is processed to obtain target text information, and finally the information associated with the target text information is displayed, thereby simplifying the text.
- the user's operation steps improve the user experience.
- a mobile terminal provided in the present application will be described below with reference to FIG. 11 and FIG. 12.
- an embodiment of the present application further provides a mobile terminal 100 that can execute the foregoing data processing method.
- the mobile terminal 100 includes an electronic body portion 10 including a housing 12 and a first screen 120 provided on the housing 12.
- the casing 12 can be made of metal, such as steel and aluminum alloy.
- the first screen 120 and the second screen 121 generally include a display panel 111, and may also include a circuit for responding to a touch operation on the display panel 111, and the like.
- the display panel 111 may be a liquid crystal display (Liquid Crystal Display, LCD). In some embodiments, the display panel 111 is a touch screen 109 at the same time.
- the mobile terminal 100 can be used as a smart phone terminal.
- the electronic body portion 10 usually further includes one or more (only shown in the figure) (A) The processor 102, the memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122.
- A The processor 102, the memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122.
- the present application does not limit the structure of the electronic body portion 10.
- the electronic body portion 10 may further include more or fewer components than those shown in the figure, or have a configuration different from that shown in the figure.
- peripheral interface 124 may be implemented based on the following standards: Universal Asynchronous Receiver / Transmitter (UART), General Input / Output (GPIO), Serial Peripheral Interface , SPI), Inter-Integrated Circuit (I2C), but not limited to the above standards.
- UART Universal Asynchronous Receiver / Transmitter
- GPIO General Input / Output
- SPI Serial Peripheral Interface
- I2C Inter-Integrated Circuit
- the peripheral interface 124 may only include a bus; in other examples, the peripheral interface 124 may further include other elements, such as one or more controllers, for example, for connecting the display panel.
- these controllers can also be separated from the peripheral interface 124 and integrated into the processor 102 or a corresponding peripheral.
- the memory 104 may be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104.
- the memory 104 may store a data processing device.
- the data processing apparatus may be the aforementioned apparatus 300 or apparatus 400.
- the memory 104 may include a high-speed random access memory, and may further include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memory.
- the memory 104 may further include memories remotely disposed with respect to the processor 102, and these remote memories may be connected to the electronic body portion 10 or the first screen 120 through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
- the wireless module 106 is used to receive and send electromagnetic waves, and realize mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other equipment.
- the wireless module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, a memory, and the like .
- the wireless module 106 can communicate with various networks such as the Internet, an intranet, and a wireless network, or communicate with other devices through a wireless network.
- the wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
- the above wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data Communication Technology (GSM) Environment, EDGE, Broadband Code Division multiple access technology (wideband code division multiple access, W-CDMA), code division multiple access technology (Code division access, CDMA), time division multiple access technology (time division multiple access, TDMA), wireless fidelity technology (Wireless, Fidelity , WiFi) (such as the American Institute of Electrical and Electronics Engineers standards IEEE 802.10A, IEEE 802.11b, IEEE802.11g, and / or IEEE 802.11n), Voice over Internet (Internet Protocol, VoIP), Global Microwave Interoperability (Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for mail, instant messaging, and short messaging, and any other suitable communication protocol, even those that have not yet been developed.
- GSM Global System for Mobile Communication
- GSM Global System for Mobile Communication
- GSM Global System for Mobile Communication
- GSM Global System for Mobile Communication
- EDGE Broadband
- the audio circuit 110, the speaker 101, the sound jack 103, and the microphone 105 collectively provide an audio interface between the user and the electronic body portion 10 or the first screen 120.
- the audio circuit 110 receives sound data from the processor 102, converts the sound data into electrical signals, and transmits the electrical signals to the speaker 101.
- the speaker 101 converts electrical signals into sound waves that human ears can hear.
- the audio circuit 110 also receives electrical signals from the microphone 105, converts the electrical signals into sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be obtained from the memory 104 or through the wireless module 106. In addition, the audio data may also be stored in the memory 104 or transmitted through the wireless module 106.
- the wireless module 106 may be a Bluetooth communication module, a WIFI communication module, or a module supporting other wireless communication protocols.
- the sensor 114 is disposed in the electronic body portion 10 or the first screen 120.
- Examples of the sensor 114 include, but are not limited to, a light sensor, a running sensor, a pressure sensor, an infrared thermal sensor, a distance sensor, Gravitational acceleration sensors, and other sensors.
- the light sensor may include a light sensor 114F and a pressure sensor 114G.
- the pressure sensor 114G can detect a pressure generated by pressing on the mobile terminal 100. That is, the pressure sensor 114G detects the pressure generated by the contact or pressing between the user and the mobile terminal, such as the pressure generated by the contact or pressing between the user's ear and the mobile terminal. Therefore, the pressure sensor 114G can be used to determine whether a contact or a press has occurred between the user and the mobile terminal 100, and the magnitude of the pressure.
- the light sensor 114F and the pressure sensor 114G are disposed adjacent to the display panel 111.
- the light sensor 114F may turn off the display output when an object approaches the first screen 120, for example, when the electronic body part 10 moves to the ear.
- a gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of the mobile terminal 100 (such as horizontal and vertical Screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap) and so on.
- the electronic body portion 10 may be configured with other sensors such as a gyroscope, a barometer, a hygrometer, and a thermometer, which are not described herein again.
- the input module 118 may include the touch screen 109 provided on the first screen 120, and the touch screen 109 may collect a touch operation performed by the user on or near the touch screen (such as a user using a finger, a stylus Wait for any suitable object or accessory to be operated on or near the touch screen 109), and drive the corresponding connection device according to a preset program.
- the touch screen 109 may include a touch detection device and a touch controller. The touch detection device detects a user's touch position, and detects a signal caused by a touch operation, and transmits the signal to the touch controller.
- the touch controller receives touch information from the touch detection device, and The touch information is converted into touch point coordinates, and then sent to the processor 102, and can receive and execute commands sent by the processor 102.
- multiple touch types such as resistive, capacitive, infrared, and surface acoustic waves can be used to implement the touch detection function of the touch screen 109.
- the input module 118 may further include other input devices, such as keys.
- the keys may include, for example, character keys for inputting characters, and control keys for triggering control functions. Examples of the control buttons include a "return to the home screen" button, an on / off button, and the like.
- the first screen 120 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic body portion 10, and these graphical user interfaces may include graphics, text, icons, numbers, videos, and
- the touch panel 109 may be arranged in any combination.
- the touch screen 109 may be disposed on the display panel 111 so as to form a whole with the display panel 111.
- the power module 122 is configured to provide power to the processor 102 and other components.
- the power module 122 may include a power management system, one or more power sources (such as a battery or AC power), a charging circuit, a power failure detection circuit, an inverter, a power status indicator, and any other electronic components Components related to the generation, management, and distribution of power within the unit 10 or the first screen 120.
- the mobile terminal 100 further includes a locator 119, which is configured to determine an actual location where the mobile terminal 100 is located.
- the locator 119 uses a positioning service to implement positioning of the mobile terminal 100.
- the positioning service should be understood as obtaining position information (such as latitude and longitude coordinates) of the mobile terminal 100 through a specific positioning technology. ), A technology or service for marking the location of an object on an electronic map.
- the above-mentioned mobile terminal 100 is not limited to a smart phone terminal, and it should refer to a computer device that can be used in mobile. Specifically, the mobile terminal 100 refers to a mobile computer device equipped with a smart operating system.
- the mobile terminal 100 includes, but is not limited to, a smart phone, a smart watch, a tablet computer, and the like.
- first and second are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as “first” and “second” may explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "plurality” is at least two, for example, two, three, etc., unless it is specifically and specifically defined otherwise.
- Any process or method description in a flowchart or otherwise described herein can be understood as representing a module, fragment, or portion of code that includes one or more executable instructions for implementing a particular logical function or step of a process
- the scope of the preferred embodiments of the present application includes additional implementations, in which the functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present application pertain.
- a sequenced list of executable instructions that can be considered to implement a logical function can be embodied in any computer-readable medium,
- the instruction execution system, device, or device such as a computer-based system, a system including a processor, or other system that can fetch and execute instructions from the instruction execution system, device, or device), or combine these instruction execution systems, devices, or devices Or equipment.
- a "computer-readable medium” may be any device that can contain, store, communicate, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
- computer-readable media include the following: electrical connections (mobile terminals) with one or more wirings, portable computer disk enclosures (magnetic devices), random access memory (RAM), Read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disk read-only memory (CDROM).
- the computer-readable medium may even be paper or other suitable medium on which the program can be printed, because, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or other suitable Processing to obtain the program electronically and then store it in computer memory.
- each part of the application may be implemented by hardware, software, firmware, or a combination thereof.
- multiple steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system.
- a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it may be implemented using any one or a combination of the following techniques known in the art: Discrete logic circuits, application specific integrated circuits with suitable combinational logic gate circuits, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
- each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist separately physically, or two or more units may be integrated into one module.
- the above integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
- the aforementioned storage medium may be a read-only memory, a magnetic disk, or an optical disk.
- FIG. 13 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
- the computer-readable medium 800 stores program code, and the program code can be called by a processor to execute the method described in the foregoing method embodiment.
- the computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM.
- the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium.
- the computer-readable storage medium 800 has a storage space for program code 810 that performs any of the method steps in the above-described methods. These program codes can be read from or written into one or more computer program products.
- the program code 810 may be compressed, for example, in a suitable form.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
本申请实施例公开了一种数据处理方法、装置、移动终端以及存储介质。所述方法,包括:检测作用于目标区域的触控操作;若检测到触控面积满足预设阈值面积的触控操作后,检测持续作用的所述触控操作的作用时长;若检测到所述作用时长满足预设时长后,对所述目标区域显示的数据进行处理,以得到目标文本信息;显示与所述目标文本信息相关联的信息。本方法在检测到触控面积满足预设阈值面积的触控操作后,检测持续作用的所述触控操作的作用时长,当在检测到所述作用时长满足预设时长后,对所述目标区域显示的数据进行处理,得到目标文本信息,最后显示与所述目标文本信息相关联的信息,从而简化了文本识别过程中,用户的的操作步骤,提升了用户体验。
Description
相关申请的交叉引用
本申请要求于2018年6月7日提交的申请号为201810607159.8的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。
本申请涉及移动终端技术领域,更具体地,涉及一种数据处理方法、装置、移动终端以及存储介质。
随着移动终端上设置的触控显示屏的发展,更多的用户选择在触控显示屏中通过一系列的触控操作来控制移动终端。例如,通过触控显示屏来处理显示屏中所显示的文本内容,但是在该触控过程中,触控操作流程还比较烦琐,用户体验不高。
发明内容
鉴于上述问题,本申请提出了一种数据处理方法、装置、移动终端以及存储介质,以实现改善上述问题。
第一方面,本申请提供了一种数据处理方法,应用于移动终端,所述方法,包括:检测作用于目标区域的触控操作;若检测到触控面积满足预设阈值面积的触控操作后,检测持续作用的所述触控操作的作用时长;若检测到所述作用时长满足预设时长后,对所述目标区域显示的数据进行处理,以得到目标文本信息;显示与所述目标文本信息相关联的信息。
第二方面,本申请提供了一种数据处理装置,运行于移动终端,所述装置,包括:触控操作检测单元,用于检测作用于目标区域的触控操作;时长检测单元,用于若所述触控操作检测单元检测到触控面积满足预设阈值面积的触控操作后,检测持续作用的所述触控操作的作用时长;目标文本获取单元,用于若检测到所述作用时长满足预设时长后,对所述目标区域显示的数据进行处理,以得到目标文本信息;信息显示单元,用于显示与所述目标文本信息相关联的信息。
第三方面,本申请提供了一种移动终端,包括一个或多个处理器以及存储器;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。
第四方面,本申请提供的一种计算机可读取存储介质,所述计算机可读取存储介质包括存储的程序,其中,在所述程序被处理器运行时执行上述的方法。
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请提出的一种数据处理方法的流程图;
图2示出了本申请提出的一种数据处理方法中触控面积的一种状态示意图;
图3示出了本申请提出的一种数据处理方法中触控面积的另一种状态示意图;
图4示出了本申请提出的另一种数据处理方法的流程图;
图5示出了本申请提出的一种数据处理方法的一种目标区域的示意图;
图6示出了本申请提出的一种数据处理方法中进度显示控件的一种状态示意图;
图7示出了本申请提出的一种数据处理方法中进度显示控件的另一种状态示意图;
图8示出了本申请提出的再一种数据处理方法的显示方式的示意图;
图9示出了本申请提出的一种连接控制装置的结构框图;
图10示出了本申请提出的另一种连接控制装置的结构框图;
图11示出了本申请提出的一种移动终端的结构框图;
图12示出了本申请的用于执行根据本申请实施例的数据处理方法的移动终端的结构框图;
图13是本申请实施例的用于保存或者携带实现根据本申请实施例的数据处理方法的程序代码的存储单元。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
在移动终端技术的发展初期,移动终端只配置有物理按键,用户都是通过触控移动终端配置的物理按键来对移动终端进行控制。而随着触控显示屏的出现,移动终端更多的配置有触控显示屏,使得用户可以通过触控显示屏即可实现对移动终端的控制。
例如,在文本识别场景中,用户可以通过双指按压到文本识别区域,在检测到用户的双指按压时长超过一定时长或者双指按压力度超过一定力度后,开始对所按压的区域的文本进行识别,以提取出关键词,进而对关键词进行搜索得到与关键词关联的信息以进行显示。或者,也可以通过单指按压,在检测到按压面积超过一定面积后,开始对所按压的区域的文本进行识别,以提取出关键词,进而对关键词进行搜索得到与关键词关联的信息以进行显示。
而发明人发现,在一些触控场景中,用户无法直观的感知触控时长情况以及终端的当前反馈情况,造成用户体验不高。因此,发明人提出了本申请中可以实现直观体现用户的触控操作情况的的数据处理方法、装置、移动终端以及存储介质。
下面将先对本申请所涉及的应用环境进行介绍。
本申请所提供的数据处理方法的数据处理对象可以是图片也可以是文本。其中,在处理对象为图片的情况下,移动终端会先对图片中的文本进行识别,得到图片中的文本内容,再进行后续的数据处理步骤,例如,从文本内容中拆分出关键词进行搜索等。再者,本申请提供的数据处理方法所处理的文本可以为移动终端显示的部分文本,也可以为移动终端所显示的所有文本。
下面将结合附图具体描述本申请的各实施例。
请参阅图1,本申请提供的一种数据处理方法,应用于移动终端,所述方法包括:
步骤S110:检测作用于目标区域的触控操作。
其中,触控操作包括按压操作以及滑动操作。其中,按压操作是指触碰到移动终端的显示屏后,对该显示屏中的触碰位置持续产生一定压力的操作。而滑动操作是指在触碰到显示屏中的一位置后,使触碰点从该位置移动到另一位置的操作,且在移动过程中一直与显示屏保持触碰。
步骤S120:若检测到触控面积满足预设阈值面积的触控操作后,检测持续作用的所述触控操作的作用时长。
对于不同的触控操作,触控面积的检测方式会有不同。例如,对于按压操作,则为检测到触碰到屏幕位置出的面积。而对于滑动操作,则为检测滑动轨迹经过区域的面积。例如,如图2所示,在触控操作为按压操作的情况下,按压面积为图中区域A的面积,而在触控操作为滑动操作的情况下,如图3所示,触控面积为图中区域B的面积。
其中,可以理解的是,在本步骤中是移动终端在检测到触控操作的触控面积在某一时刻满足预设阈值面积的触控操作后,开始检测持续作用的所述触控操作的作用时长,而在检测作用时长的过程,不会因为触控操作持续作用过程中触控面积小于预设阈值面积而中断。
步骤S130:若检测到所述作用时长满足预设时长后,对所述目标区域显示的数据进行处理,以得到目标文本信息。
其中,作为一种方式,检测在从所述触控面积满足所述预设阈值面积的时刻到所述作用时长满足所述预设时长的时刻之间的时间段内,所述触控操作的触控面积是否一直满足所述预设阈值;若是,则执行所述对所述目标区域显示的数据进行处理,以得到目标文本信息。
步骤S140:显示与所述目标文本信息相关联的信息。
本申请提供的一种数据处理方法,在检测到触控面积满足预设阈值面积的触控操作后,检测持续作用的所述触控操作的作用时长,当在检测到所述作用时长满足预设时长后,对所述目标区域显示的数据进行处理,得到目标文本信息,最后显示与所述目标文本信息相关联的信息,从而简化了文本识别过程中,用户的的操作步骤,提升了用户体验。
请参阅图4,本申请提供的一种数据处理方法,应用于移动终端,所述方法包括:
步骤S210:检测作用于目标区域的触控操作。
步骤S220:若检测到触控面积满足预设阈值面积的触控操作后,检测持续作用的所述触控操作的作用时长。
步骤S230:若检测到所述作用时长满足预设时长后,对所述目标区域显示的数据进行处理,以得到目标文本信息。
需要说明的是,作为一种方式,移动终端可以对目标区域显示的文本进行预设基础功能的操作,其中,所述预设基础操作包括对目标区域显示的文本整体进行复制、选择、搜索、转发或者翻译。可以理解的是,该预设基础功能与步骤S230中提起的流程的区别在于是否对目标区域显示的文本进行处理,提取目标文本信息。
那么作为一种方式,可以通过是否在目标区域以外的区域检测到触控操作来判断移动终端是对目标区域显示的文本执行预设基础功能的操作,还是步骤S230所示的操作。则作为一种方式,若检测到所述作用时长满足预设时长,且在处所述目标区域以外的区域未检测到触控操作后,对所述目标区域显示的数据进行处理,以得到目标文本信息;若检测到所述作用时长满足预设时长,且在处所述目标区域以外的区域检测到触控操作后,直接对所述目标区域显示的文本整体执行预设基础操作。
下面再对得到目标文本信息的流程进行介绍。
其中,作为一种方式,目标区域为所述触控操作所作用的区域,或者为移动终端的显示屏的全部区域。例如,如图5所示,若检测到触控操作的目标区域为图中所示的区域A时,也是就是触点131落在区域A时,移动终端会对区域A中显示的图片或者文本行处理,以从区域A显示的图片或者文本中提取中目标文本信息。
其中,移动终端可以基于现有的语义解析技术从目标区域中解析出来目标文本信息。其 中,利用语义解析技术可以将目标区域的图片或者文本中的数据拆分为单个完成的词语或者字。例如,目标区域显示的文本为“我们晚上去看电影吧”,那么移动终端基于语义解析技术所解析得到的目标文本信息可以包括“我们”、“晚上”、“去”、“看”、“电影”以及“吧”。
可以理解的是,即使采用现有的语义解析技术,对于从目标区域中解析得到的目标文本信息还与所采用的数据库数据有关联。例如,如果目标区域显示的文本为“那去看复仇者联盟”,而语义解析技术对应的数据库中并没有存储“复仇者联盟”,那么移动终端所解析目标区域的文本后得到的目标文本信息包括“那”、“去”、“看”、“复仇者”以及“联盟”,而如果数据库中存储有“复仇者联盟”,那么移动终端所解析目标区域的文本后得到的目标文本信息包括“那”、“去”、“看”、“复仇者联盟”。
步骤S240:检测是否已经完成获取与所述目标文本信息相关联的信息。
其中,与目标文本信息关联的信息可以在移动终端本地读取,也可以从网络中获取。在从本地读取的这种情况下,移动终端在本地查找到了与目标文本信息关联的信息,则判定已经获取到了与目标文本信息关联的信息。例如,得到的目标文本信息中包括“峨眉山”,那么在查找到本地存储的图片中查找到有关于峨眉山的信息的图片时,或者是查找到有关于峨眉山的文档时,则判定已经查找到与“峨眉山”关联的信息。
另外,对于从网络中获取与所述目标文本信息相关联的信息的情况下,可以基于所使用的网络协议来确定是否已经成功获取到与所述目标文本信息相关联的信息。例如,移动终端基于http协议或者https协议向网络请求数据时,如果移动终端接收到网络返回响应头中包括200标识的响应头(表征从网络获取信息成功)时,判定与所述目标文本信息相关联的信息已经获取到。当然,除了http协议和https协议,移动终端还可以采用其他的私有协议或者共有协议,本申请不做具体的限定。
步骤S250:若检测到还未完成获取与所述目标文本信息相关联的信息,显示预设过渡动画。
其中,作为一种方式,移动终端可以显示一进度控件,所述进度控件用于表征所述获取与所述目标文本信息相关联的信息的进度。如图6所示,为开始获取与所述目标文本信息相关联的信息的时刻时,显示控件的状态,而如图7所示,为完成获取与所述目标文本信息相关联的信息的时刻,显示控件的状态。
步骤S260:若检测到已经完成获取与所述目标文本信息相关联的信息,执行所述显示与所述目标文本信息相关联的信息。
作为一种方式,与所述目标文本信息相关联的信息包括所述目标文本信息本身。依然以上述内容为例,在解析得到目标文信息包括“我们”、“晚上”、“去”、“看”、“电影”以及“吧”的情况下,移动终端可以直接显示“我们”、“晚上”、“去”、“看”、“电影”以及“吧”等。在这种情况下,用户可以继续从“我们”、“晚上”、“去”、“看”、“电影”以及“吧”等信息中手动选择自己所需的文本进行翻译、搜索或者复制等操作。
再者,移动终端还可以进一步的对所解析得到的目标文本信息进行搜索,与得到除了目标文本信息以外与目标文本信息关联的信息。例如,以上述解析得到的“复仇者联盟”为例,移动终端在检索其为电影名称的情况下,可以显示该电影的简介信息,或者显示一购票软件的点击入口。可以理解的是,在用户点击该点击入口后,移动终端可以启动该购票软件,并且直接使购票软件直接显示“复仇者联盟”的购票页面。如图8所示,在以卡片显示与所述目标文本信息相关联的信息的情况下,可以通过卡片141来显示电影的简介信息,通过卡片142开显示购票软件TPP的点击入口。
需要说明的是,类似图8所示,在目标文本信息有多个的情况下,对于不同目标文本信息对应的关联信息,或者是同一个目标文本信息对应的不同的关联信息,可以用多个卡片分别展示。
需要说明的是,若在显示与所述目标文本信息相关联的信息前显示有进度控件,则在若 检测到已经完成获取与所述目标文本信息相关联的信息,取消显示所述进度显示控件。
本申请提供的一种数据处理方法,在检测到触控面积满足预设阈值面积的触控操作后,检测持续作用的所述触控操作的作用时长,当在检测到所述作用时长满足预设时长后,对所述目标区域显示的数据进行处理,得到目标文本信息,然后在检测到已经获取到与所述目标文本信息相关联的信息后显示与所述目标文本信息相关联的信息,从而简化了文本识别过程中,用户的的操作步骤,提升了用户体验。
请参阅图9,本申请提供的一种数据处理装置300,运行于移动终端,所述装置300,包括:
触控操作检测单元310,用于检测作用于目标区域的触控操作。
时长检测单元320,用于若所述触控操作检测单元检测到触控面积满足预设阈值面积的触控操作后,检测持续作用的所述触控操作的作用时长。
目标文本获取单元330,用于若检测到所述作用时长满足预设时长后,对所述目标区域显示的数据进行处理,以得到目标文本信息。
作为一种方式,目标文本获取单元330在检测在从所述触控面积满足所述预设阈值面积的时刻到所述作用时长满足所述预设时长的时刻之间的时间段内,所述触控操作的触控面积一直满足所述预设阈值后,对所述目标区域显示的数据进行处理,以得到目标文本信息。
再者,作为一种方式,目标文本获取单元330,用于若检测到所述作用时长满足预设时长,且在处所述目标区域以外的区域未检测到触控操作后,对所述目标区域显示的数据进行处理,以得到目标文本信息;若检测到所述作用时长满足预设时长,且在处所述目标区域以外的区域检测到触控操作后,直接对所述目标区域显示的文本整体执行预设基础操作。其中,所述预设基础操作包括复制、选择、搜索、转发或者翻译。
作为一种方式,目标文本获取单元330,还用于检测所述触控操作在所述持续作用过程中是否有超过预设幅度的位移;若检测到在所述持续作用过程中没有超过预设幅度的位移,执行所述若检测到所述作用时长满足所述预设时长后,对所述目标区域显示的数据进行处理,以得到目标文本信息;若检测到在所述持续作用过程中有超过预设幅度的位移,结束流程。
信息显示单元340,用于显示与所述目标文本信息相关联的信息。
请参阅图10,本申请提供的一种数据处理装置400,运行于移动终端,所述装置400,包括:
触控操作检测单元410,用于检测作用于目标区域的触控操作。
时长检测单元420,用于若所述触控操作检测单元检测到触控面积满足预设阈值面积的触控操作后,检测持续作用的所述触控操作的作用时长。
目标文本获取单元430,用于若检测到所述作用时长满足预设时长后,对所述目标区域显示的数据进行处理,以得到目标文本信息。
信息获取单元440,用于获取与所述目标文本信息相关联的信息,并检测是否已经完成获取与所述目标文本信息相关联的信息。
信息显示单元450,用于信息获取单元440检测到已经完成获取与所述目标文本信息相关联的信息,显示与所述目标文本信息相关联的信息。
信息显示单元450,还用于信息获取单元440检测到还未完成获取与所述目标文本信息相关联的信息,显示预设过渡动画。
综上所述,本申请提供的一种数据处理方法、装置、移动终端以及存储介质,在检测到触控面积满足预设阈值面积的触控操作后,检测持续作用的所述触控操作的作用时长,当在检测到所述作用时长满足预设时长后,对所述目标区域显示的数据进行处理,得到目标文本信息,最后显示与所述目标文本信息相关联的信息,从而简化了文本识别过程中,用户的的操作步骤,提升了用户体验。
下面将结合图11以及图12对本申请提供的一种移动终端进行说明。
请参阅图11,基于上述的数据处理方法、装置,本申请实施例还提供一种可以执行前述 数据处理方法的移动终端100。移动终端100包括电子本体部10,所述电子本体部10包括壳体12及设置在所述壳体12上的第一屏幕120。所述壳体12可采用金属、如钢材、铝合金制成。本实施例中,所述第一屏幕120以及第二屏幕121通常包括显示面板111,也可包括用于响应对所述显示面板111进行触控操作的电路等。所述显示面板111可以为一个液晶显示面板(Liquid Crystal Display,LCD),在一些实施例中,所述显示面板111同时为一个触摸屏109。
如图12所示,在实际的应用场景中,所述移动终端100可作为智能手机终端进行使用,在这种情况下所述电子本体部10通常还包括一个或多个(图中仅示出一个)处理器102、存储器104、RF(Radio Frequency,射频)模块106、音频电路110、传感器114、输入模块118、电源模块122。本领域普通技术人员可以理解,本申请并不对所述电子本体部10的结构造成限定。例如,所述电子本体部10还可包括比图中所示更多或者更少的组件,或者具有与图中所示不同的配置。
本领域普通技术人员可以理解,相对于所述处理器102来说,所有其他的组件均属于外设,所述处理器102与这些外设之间通过多个外设接口124相耦合。所述外设接口124可基于以下标准实现:通用异步接收/发送装置(Universal Asynchronous Receiver/Transmitter,UART)、通用输入/输出(General Purpose Input Output,GPIO)、串行外设接口(Serial Peripheral Interface,SPI)、内部集成电路(Inter-Integrated Circuit,I2C),但不并限于上述标准。在一些实例中,所述外设接口124可仅包括总线;在另一些实例中,所述外设接口124还可包括其他元件,如一个或者多个控制器,例如用于连接所述显示面板111的显示控制器或者用于连接存储器的存储控制器。此外,这些控制器还可以从所述外设接口124中脱离出来,而集成于所述处理器102内或者相应的外设内。
所述存储器104可用于存储软件程序以及模块,所述处理器102通过运行存储在所述存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理。例如,存储器104中可以存储有数据处理装置。该数据处理装置可以为前述的装置300或者装置400。所述存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,所述存储器104可进一步包括相对于所述处理器102远程设置的存储器,这些远程存储器可以通过网络连接至所述电子本体部10或所述第一屏幕120。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
所述无线模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。所述无线模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述无线模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信***(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced Data GSM Environment,EDGE),宽带码分多址技术(wideband code division multiple access,W-CDMA),码分多址技术(Code division access,CDMA)、时分多址技术(time division multiple access,TDMA),无线保真技术(Wireless,Fidelity,WiFi)(如美国电气和电子工程师协会标准IEEE 802.10A,IEEE 802.11b,IEEE802.11g和/或IEEE 802.11n)、网络电话(Voice over internet protocal,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。
音频电路110、扬声器101、声音插孔103、麦克风105共同提供用户与所述电子本体部10或所述第一屏幕120之间的音频接口。具体地,所述音频电路110从所述处理器102处接收声音数据,将声音数据转换为电信号,将电信号传输至所述扬声器101。所述扬声器101 将电信号转换为人耳能听到的声波。所述音频电路110还从所述麦克风105处接收电信号,将电信号转换为声音数据,并将声音数据传输给所述处理器102以进行进一步的处理。音频数据可以从所述存储器104处或者通过所述无线模块106获取。此外,音频数据也可以存储至所述存储器104中或者通过所述无线模块106进行发送。该无线模块106可以为蓝牙通信模块、WIFI通信模块或者支持其他无线通信协议的模块。
所述传感器114设置在所述电子本体部10内或所述第一屏幕120内,所述传感器114的实例包括但并不限于:光传感器、运行传感器、压力传感器、红外热传感器、距离传感器、重力加速度传感器、以及其他传感器。
具体地,所述光传感器可包括光线传感器114F、压力传感器114G。其中,压力传感器114G可以检测由按压在移动终端100产生的压力的传感器。即,压力传感器114G检测由用户和移动终端之间的接触或按压产生的压力,例如由用户的耳朵与移动终端之间的接触或按压产生的压力。因此,压力传感器114G可以用来确定在用户与移动终端100之间是否发生了接触或者按压,以及压力的大小。
请再次参阅图12,具体地在图12所示的实施例中,所述光线传感器114F及所述压力传感器114G邻近所述显示面板111设置。所述光线传感器114F可在有物体靠近所述第一屏幕120时,例如所述电子本体部10移动到耳边时,所述处理器102关闭显示输出。
作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别所述移动终端100姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。另外,所述电子本体部10还可配置陀螺仪、气压计、湿度计、温度计等其他传感器,在此不再赘述,
本实施例中,所述输入模块118可包括设置在所述第一屏幕120上的所述触摸屏109,所述触摸屏109可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在所述触摸屏109上或在所述触摸屏109附近的操作),并根据预先设定的程序驱动相应的连接装置。可选的,所述触摸屏109可包括触摸检测装置和触摸控制器。其中,所述触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给所述触摸控制器;所述触摸控制器从所述触摸检测装置上接收触摸信息,并将该触摸信息转换成触点坐标,再送给所述处理器102,并能接收所述处理器102发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多分类型实现所述触摸屏109的触摸检测功能。除了所述触摸屏109,在其它变更实施方式中,所述输入模块118还可以包括其他输入设备,如按键。所述按键例如可包括用于输入字符的字符按键,以及用于触发控制功能的控制按键。所述控制按键的实例包括“返回主屏”按键、开机/关机按键等等。
所述第一屏幕120用于显示由用户输入的信息、提供给用户的信息以及所述电子本体部10的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成,在一个实例中,所述触摸屏109可设置于所述显示面板111上从而与所述显示面板111构成一个整体。
所述电源模块122用于向所述处理器102以及其他各组件提供电力供应。具体地,所述电源模块122可包括电源管理***、一个或多个电源(如电池或者交流电)、充电电路、电源失效检测电路、逆变器、电源状态指示灯以及其他任意与所述电子本体部10或所述第一屏幕120内电力的生成、管理及分布相关的组件。
所述移动终端100还包括***119,所述***119用于确定所述移动终端100所处的实际位置。本实施例中,所述***119采用定位服务来实现所述移动终端100的定位,所述定位服务,应当理解为通过特定的定位技术来获取所述移动终端100的位置信息(如经纬度坐标),在电子地图上标出被定位对象的位置的技术或服务。
应当理解的是,上述的移动终端100并不局限于智能手机终端,其应当指可以在移动中使用的计算机设备。具体而言,移动终端100,是指搭载了智能操作***的移动计算机设备, 移动终端100包括但不限于智能手机、智能手表、平板电脑,等等。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行***、装置或设备(如基于计算机的***、包括处理器的***或其他可以从指令执行***、装置或设备取指令并执行指令的***)使用,或结合这些指令执行***、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行***、装置或设备或结合这些指令执行***、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(移动终端),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行***执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。
请参考图13,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计 算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。
Claims (20)
- 一种数据处理方法,其特征在于,应用于移动终端,所述方法,包括:检测作用于目标区域的触控操作;若检测到触控面积满足预设阈值面积的触控操作后,检测持续作用的所述触控操作的作用时长;若检测到所述作用时长满足预设时长后,对所述目标区域显示的数据进行处理,以得到目标文本信息;显示与所述目标文本信息相关联的信息。
- 根据权利要求1所述的方法,其特征在于,所述对所述目标区域显示的数据进行处理,以得到目标文本信息的步骤之前还包括:检测在从所述触控面积满足所述预设阈值面积的时刻到所述作用时长满足所述预设时长的时刻之间的时间段内,所述触控操作的触控面积是否一直满足所述预设阈值;若是,则执行所述对所述目标区域显示的数据进行处理,以得到目标文本信息。
- 根据权利要求1所述的方法,其特征在于,若检测到所述作用时长满足预设时长后,对所述目标区域显示的数据进行处理,以得到目标文本信息的步骤包括:若检测到所述作用时长满足预设时长,且在处所述目标区域以外的区域未检测到触控操作后,对所述目标区域显示的数据进行处理,以得到目标文本信息;若检测到所述作用时长满足预设时长,且在处所述目标区域以外的区域检测到触控操作后,直接对所述目标区域显示的文本整体执行预设基础操作。
- 根据权利要求3所述的方法,其特征在于,所述预设基础操作包括复制、选择、搜索、转发或者翻译。
- 根据权利要求1所述的方法,其特征在于,所述若检测到所述作用时长满足所述预设时长后,对所述目标区域显示的数据进行处理,以得到目标文本信息的步骤之前还包括:检测所述触控操作在所述持续作用过程中是否有超过预设幅度的位移;若检测到在所述持续作用过程中没有超过预设幅度的位移,执行所述若检 测到所述作用时长满足所述预设时长后,对所述目标区域显示的数据进行处理,以得到目标文本信息;若检测到在所述持续作用过程中有超过预设幅度的位移,结束流程。
- 根据权利要求1所述的方法,其特征在于,显示与所述目标文本信息相关联的信息的步骤之前还包括:检测是否已经完成获取与所述目标文本信息相关联的信息;若检测到已经完成获取与所述目标文本信息相关联的信息,执行所述显示与所述目标文本信息相关联的信息;若检测到还未完成获取与所述目标文本信息相关联的信息,显示预设过渡动画。
- 根据权利要求6所述的方法,其特征在于,显示与所述目标文本信息相关联的信息的步骤之前还包括:显示一进度显示控件,所述进度显示控件用于表征所述获取与所述目标文本信息相关联的信息的进度;所述方法还包括:若检测到已经完成获取与所述目标文本信息相关联的信息,取消显示所述进度显示控件。
- 根据权利要求1-7任一所述的方法,其特征在于,所述显示与所述目标文本信息相关联的信息的步骤包括:显示所述目标文本信息。
- 根据权利要求8所述的方法,其特征在于,所述显示与所述目标文本信息相关联的信息的步骤还包括:对所解析得到的目标文本信息进行搜索,得到除了所述目标文本信息以外与所述目标文本信息关联的信息;显示所述除了所述目标文本信息以外与所述目标文本信息关联的信息。
- 根据权利要求9所述的方法,其特征在于,所述对所解析得到的目标文本信息进行搜索的步骤包括:在本地对所解析得到的目标文本信息进行搜索,或者从网络中对所解析得到的目标文本信息进行搜索。
- 根据权利要求10所述的方法,其特征在于,所述从网络中对所解析得到的目标文本信息进行搜索的步骤包括:基于http协议、https协议或者私有协议从网络中对所解析得到的目标文本信息进行搜索。
- 根据权利要求1-11任一所述的方法,其特征在于,所述触控操作包括按压操作或者滑动操作。
- 根据权利要求1-11任一所述的方法,其特征在于,所述目标区域为所述触控操作所作用的区域。
- 根据权利要求1-11任一所述的方法,其特征在于,所述目标区域为移动终端的显示屏的全部区域。
- 根据权利要求1-14任一所述的方法,其特征在于,所述目标文本信息有多个,所述显示与所述目标文本信息相关联的信息的步骤包括:显示多个卡片,在每个卡片上展示一个目标文本信息对应的关联信息。
- 根据权利要求1-14任一所述的方法,其特征在于,所述显示与所述目标文本信息相关联的信息的步骤包括:显示多个卡片用于显示所述目标文本信息对应的不同的关联信息。
- 一种数据处理装置,其特征在于,运行于移动终端,所述装置,包括:触控操作检测单元,用于检测作用于目标区域的触控操作;时长检测单元,用于若所述触控操作检测单元检测到触控面积满足预设阈值面积的触控操作后,检测持续作用的所述触控操作的作用时长;目标文本获取单元,用于若检测到所述作用时长满足预设时长后,对所述目标区域显示的数据进行处理,以得到目标文本信息;信息显示单元,用于显示与所述目标文本信息相关联的信息。
- 根据权利要求17所述的装置,其特征在于,所述目标文本获取单元,具体用于检测在从所述触控面积满足所述预设阈值面积的时刻到所述作用时长满足所述预设时长的时刻之间的时间段内,所述触控操作的触控面积是否一直满足所述预设阈值;若是,则执行所述对所述目标区域显示的数据进行处理,以得到目标文本信息。
- 一种移动终端,其特征在于,包括一个或多个处理器以及存储器;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行权利要求1-16任一所述的方法。
- 一种存储有处理器可执行的程序代码的计算机可读存储介质,其特 征在于,所述计算机可读取存储介质包括存储的程序,其中,在所述程序被处理器运行时执行权利要求1-16任一所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810607159.8 | 2018-06-07 | ||
CN201810607159.8A CN108932102B (zh) | 2018-06-07 | 2018-06-07 | 数据处理方法、装置以及移动终端 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019233316A1 true WO2019233316A1 (zh) | 2019-12-12 |
Family
ID=64446507
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/088870 WO2019233316A1 (zh) | 2018-06-07 | 2019-05-28 | 数据处理方法、装置、移动终端以及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108932102B (zh) |
WO (1) | WO2019233316A1 (zh) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108932102B (zh) * | 2018-06-07 | 2020-12-08 | Oppo广东移动通信有限公司 | 数据处理方法、装置以及移动终端 |
CN109933275A (zh) * | 2019-02-12 | 2019-06-25 | 努比亚技术有限公司 | 一种识屏方法、终端及计算机可读存储介质 |
CN109885233B (zh) * | 2019-02-21 | 2021-04-13 | Oppo广东移动通信有限公司 | 屏幕内容识别方法、装置、电子设备及存储介质 |
CN109933260A (zh) * | 2019-03-15 | 2019-06-25 | Oppo广东移动通信有限公司 | 识屏方法、装置、终端及存储介质 |
CN110069161B (zh) * | 2019-04-01 | 2023-03-10 | 努比亚技术有限公司 | 屏幕识别方法、移动终端和计算机可读存储介质 |
CN110119237A (zh) * | 2019-04-02 | 2019-08-13 | 努比亚技术有限公司 | 一种识屏控制方法、终端及计算机可读存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140181740A1 (en) * | 2012-12-21 | 2014-06-26 | Nokia Corporation | Method and apparatus for related user inputs |
CN105511784A (zh) * | 2015-12-02 | 2016-04-20 | 北京新美互通科技有限公司 | 一种基于压力检测的信息输入方法、装置,及移动终端 |
CN106503471A (zh) * | 2016-11-05 | 2017-03-15 | 深圳市前海安测信息技术有限公司 | 基于电子病历的医疗数据查询***及方法 |
CN106873899A (zh) * | 2017-03-21 | 2017-06-20 | 网易(杭州)网络有限公司 | 输入信息的获取方法及装置、存储介质和处理器 |
CN108932102A (zh) * | 2018-06-07 | 2018-12-04 | Oppo广东移动通信有限公司 | 数据处理方法、装置以及移动终端 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103677594B (zh) * | 2012-09-04 | 2018-04-27 | 中兴通讯股份有限公司 | 文本处理方法和装置 |
CN103019596B (zh) * | 2012-12-07 | 2016-12-21 | Tcl通讯(宁波)有限公司 | 一种基于触摸屏实现虚拟按键操作的方法及移动终端 |
CN105116996A (zh) * | 2015-07-28 | 2015-12-02 | 广东欧珀移动通信有限公司 | 一种智能手表的控制方法及智能手表 |
CN106951113A (zh) * | 2016-01-06 | 2017-07-14 | 中兴通讯股份有限公司 | 一种防误操作方法及装置 |
CN106569990B (zh) * | 2016-10-31 | 2019-06-07 | 努比亚技术有限公司 | 移动终端及文档编辑方法 |
CN107256109B (zh) * | 2017-05-27 | 2021-03-16 | 北京小米移动软件有限公司 | 信息显示方法、装置及终端 |
CN107402911A (zh) * | 2017-07-19 | 2017-11-28 | 三星电子(中国)研发中心 | 用于终端的文本编辑方法和装置 |
-
2018
- 2018-06-07 CN CN201810607159.8A patent/CN108932102B/zh active Active
-
2019
- 2019-05-28 WO PCT/CN2019/088870 patent/WO2019233316A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140181740A1 (en) * | 2012-12-21 | 2014-06-26 | Nokia Corporation | Method and apparatus for related user inputs |
CN105511784A (zh) * | 2015-12-02 | 2016-04-20 | 北京新美互通科技有限公司 | 一种基于压力检测的信息输入方法、装置,及移动终端 |
CN106503471A (zh) * | 2016-11-05 | 2017-03-15 | 深圳市前海安测信息技术有限公司 | 基于电子病历的医疗数据查询***及方法 |
CN106873899A (zh) * | 2017-03-21 | 2017-06-20 | 网易(杭州)网络有限公司 | 输入信息的获取方法及装置、存储介质和处理器 |
CN108932102A (zh) * | 2018-06-07 | 2018-12-04 | Oppo广东移动通信有限公司 | 数据处理方法、装置以及移动终端 |
Also Published As
Publication number | Publication date |
---|---|
CN108932102B (zh) | 2020-12-08 |
CN108932102A (zh) | 2018-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019233212A1 (zh) | 文本识别方法、装置、移动终端以及存储介质 | |
WO2019233316A1 (zh) | 数据处理方法、装置、移动终端以及存储介质 | |
CN108289244B (zh) | 视频字幕处理方法、移动终端及计算机可读存储介质 | |
US11237703B2 (en) | Method for user-operation mode selection and terminals | |
CN109032491B (zh) | 数据处理方法、装置以及移动终端 | |
CN108710458B (zh) | 一种分屏控制方法和终端设备 | |
CN109101498B (zh) | 翻译方法、装置及移动终端 | |
CN109165292A (zh) | 数据处理方法、装置以及移动终端 | |
US9921735B2 (en) | Apparatuses and methods for inputting a uniform resource locator | |
CN108958576B (zh) | 内容识别方法、装置及移动终端 | |
CN108536509B (zh) | 一种应用分身方法及移动终端 | |
CN108664475A (zh) | 翻译显示方法、装置、移动终端及存储介质 | |
CN110674662A (zh) | 一种扫描方法及终端设备 | |
WO2019165997A1 (zh) | 显示方法、装置、移动终端以及存储介质 | |
WO2019141130A1 (zh) | 支付方法及终端设备 | |
WO2019228370A1 (zh) | 数据处理方法、装置、移动终端以及存储介质 | |
CN107154894B (zh) | 一种即时通讯信息的处理方法、装置、***及存储介质 | |
CN111597542A (zh) | 验证信息共享方法、装置及电子设备及存储介质 | |
WO2017161994A1 (zh) | 一种显示页面的方法及装置、计算机存储介质 | |
WO2019201109A1 (zh) | 文字处理方法、装置、移动终端及存储介质 | |
CN107992615B (zh) | 一种网址推荐方法、服务器及终端 | |
CN108803961B (zh) | 数据处理方法、装置以及移动终端 | |
WO2019223484A1 (zh) | 信息显示方法、装置、移动终端以及存储介质 | |
CN111142759B (zh) | 信息的发送方法及电子设备 | |
CN113325981A (zh) | 处理方法、移动终端及存储介质 |
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: 19814477 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19814477 Country of ref document: EP Kind code of ref document: A1 |