Abstract:
A text recognition method includes scaling a to-be-recognized image based on a first scale ratio, determining first coordinate information corresponding to a text line area in the scaled to-be-recognized image, determining, based on the first scale ratio, second coordinate information corresponding to the first coordinate information, where the second coordinate information is coordinate information of the text line area in the to-be-recognized image, performing character recognition on text line images corresponding to the second coordinate information by using a recognition model, and determining text line content corresponding to the text line images, where the to-be-recognized image includes the text line images.
Abstract:
A method includes displaying, on a display interface of a terminal, duration of a to-be-edited audio file; and displaying, on the display interface of the terminal, lyrics that are of the to-be-edited audio file and that correspond to a preset editing duration. The method further includes adjusting the editing duration according to at least one of a start moment or an end moment entered by a user; and displaying, on the display interface of the terminal, lyrics corresponding to the adjusted editing duration, for the user to determine audio file content corresponding to the editing duration. The method additionally includes acquiring an audio file corresponding to editing duration that is between the start moment and the end moment, in response to the user determining a start moment and an end moment for final editing.
Abstract:
A text recognition method includes scaling a to-be-recognized image based on a first scale ratio, determining first coordinate information corresponding to a text line area in the scaled to-be-recognized image, determining, based on the first scale ratio, second coordinate information corresponding to the first coordinate information, where the second coordinate information is coordinate information of the text line area in the to-be-recognized image, performing character recognition on text line images corresponding to the second coordinate information by using a recognition model, and determining text line content corresponding to the text line images, where the to-be-recognized image includes the text line images.
Abstract:
A resource statistics collection method and apparatus, and a terminal are provided. The method includes: recording a process running on a terminal at each of at least two time points; for each of the time points, obtaining at least one hardware resource invoked by the process running at the time point; obtaining a process set including processes running at the at least two time points; and obtaining, according to the hardware resource invoked by the process in the process set, information about the at least one hardware resource occupied by an application associated with the process in the process set. In embodiments of the present invention, statistics collection is performed per process, so that information about the hardware resource occupied by each application of the terminal can be obtained, and a statistical granularity is relatively fine.
Abstract:
A resource statistics collection method and apparatus, and a terminal are provided. The method includes: recording a process running on a terminal at each of at least two time points; for each of the time points, obtaining at least one hardware resource invoked by the process running at the time point; obtaining a process set including processes running at the at least two time points; and obtaining, according to the hardware resource invoked by the process in the process set, information about the at least one hardware resource occupied by an application associated with the process in the process set. In embodiments of the present invention, statistics collection is performed per process, so that information about the hardware resource occupied by each application of the terminal can be obtained, and a statistical granularity is relatively fine.
Abstract:
This disclosure provides service processing methods and apparatuses. In an implementation, a method includes, after a target camera is enabled, capturing, based on a first image output specification, an image for processing a first service, and after the second service starts, capturing, based on a second image output specification, an image for processing a second service, wherein the second image output specification is higher than the first image output specification, and wherein the second service comprises photographing, video recording, or video calling.
Abstract:
An air gesture-based interaction method includes displaying, by an electronic device, a first display interface of a first application; detecting, by the electronic device by using a camera, a first air gesture input by a user; moving, by the electronic device, an indication icon on the first display interface along a moving trajectory of the first air gesture in a preset direction in response to the first air gesture; and displaying, by the electronic device, a second display interface of the first application in response to the first air gesture.
Abstract:
An air gesture-based interaction method includes displaying, by an electronic device, a first display interface of a first application; detecting, by the electronic device by using a camera, a first air gesture input by a user; moving, by the electronic device, an indication icon on the first display interface along a moving trajectory of the first air gesture in a preset direction in response to the first air gesture; and displaying, by the electronic device, a second display interface of the first application in response to the first air gesture.
Abstract:
A resource statistics collection method and apparatus, and a terminal are provided. The method includes: recording a process running on a terminal at each of at least two time points; for each of the time points, obtaining at least one hardware resource invoked by the process running at the time point; obtaining a process set including processes running at the at least two time points; and obtaining, according to the hardware resource invoked by the process in the process set, information about the at least one hardware resource occupied by an application associated with the process in the process set. In embodiments of the present invention, statistics collection is performed per process, so that information about the hardware resource occupied by each application of the terminal can be obtained, and a statistical granularity is relatively fine.
Abstract:
A method and an apparatus for clearing a malicious power-consuming application, and a user terminal are provided. An application whose background working power consumption is not less than a power consumption threshold is determined as a malicious power-consuming application; and a wakelock occupying time of each application if a screen is turned off is periodically calculated, and if a background working application's wakelock occupying time is not less than a set time threshold, the application is determined as a malicious power-consuming application.