CN115408986A - Character adjusting method and device - Google Patents

Character adjusting method and device Download PDF

Info

Publication number
CN115408986A
CN115408986A CN202211186590.2A CN202211186590A CN115408986A CN 115408986 A CN115408986 A CN 115408986A CN 202211186590 A CN202211186590 A CN 202211186590A CN 115408986 A CN115408986 A CN 115408986A
Authority
CN
China
Prior art keywords
screenshot
character
interface
characters
text
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.)
Pending
Application number
CN202211186590.2A
Other languages
Chinese (zh)
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 CN202211186590.2A priority Critical patent/CN115408986A/en
Publication of CN115408986A publication Critical patent/CN115408986A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images
    • G06V20/635Overlay text, e.g. embedded captions in a TV program

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a character adjusting method and device, and belongs to the technical field of display. Receiving first input of a first screenshot, wherein the first screenshot is obtained by screenshot of a first interface, and the first interface comprises characters; in response to the first input, the text in the first screenshot is adjusted, and the text in the first interface is adjusted.

Description

Character adjusting method and device
Technical Field
The application belongs to the technical field of display, and particularly relates to a character adjusting method and device.
Background
With the continuous development of electronic technology and screen technology, the screen size of the terminal device is larger and larger, and more contents can be displayed on the terminal device. However, in the use scenes of chatting, watching videos and the like, the situation that a part of characters in the screen are too small often occurs, so that the characters are difficult to see by the user, and the size of the characters needs to be adjusted.
Currently, the adjustment of the size of the screen display characters is generally performed by setting system fonts, that is, the font size of the system is uniformly adjusted on a system character configuration interface. However, the font size of the whole screen can be changed synchronously by adjusting the font size of the system, and the system cannot meet the diversified requirements of the user on font display, so that the user experience is reduced.
Disclosure of Invention
The embodiment of the application aims to provide a character adjusting method and a character adjusting device, and the problem that in the prior art, the user experience is reduced due to the fact that the font size adjusting mode of a system is adjusted cannot meet the diversified requirements of users on font display.
In a first aspect, an embodiment of the present application provides a text adjustment method, where the method includes:
receiving a first input of a first screenshot, wherein the first screenshot is obtained by screenshot of a first interface, and the first interface comprises characters;
and responding to the first input, adjusting the characters in the first screenshot, and adjusting the characters in the first interface.
In a second aspect, an embodiment of the present application provides a text adjusting apparatus, including a first input module and a text adjusting module, where:
the first input module is configured to receive a first input of a first screenshot, wherein the first screenshot is obtained by screenshot a first interface, and the first interface comprises characters;
the text adjusting module is configured to respond to the first input, adjust the text in the first screenshot, and adjust the text in the first interface.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the characters in the first screenshot are adjusted according to the first input of the first screenshot obtained from the first interface screenshot, the characters in the first interface are adjusted, the characters displayed in the first interface can be adjusted according to the user demand adaptability, the diversified demands of the user on the font display are met, and the user experience is improved.
Drawings
Fig. 1 is a flowchart of a text adjustment method according to an embodiment of the present application;
FIG. 2 is a flow chart of another text adjustment method provided in the embodiments of the present application;
fig. 3 is a schematic view of a video playing interface provided in an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a configuration of text information on a screen based on a selected area of the screen according to an embodiment of the present application;
fig. 5 is a schematic diagram of a display effect of characters to be displayed based on a selected area of a screen according to an embodiment of the present application;
FIG. 6 is a schematic view of a chat interface display provided in an embodiment of the present application;
FIG. 7 is a diagram illustrating a screen text information selection based on screen element types according to an embodiment of the present application;
FIG. 8 is a diagram illustrating a configuration of text information for a screen based on screen element types according to an embodiment of the present application;
fig. 9 is a schematic diagram of a to-be-displayed text display effect based on screen element types according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a text adjusting apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 12 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application are capable of operation in sequences other than those illustrated or described herein, and that the terms "first," "second," etc. are generally used in a generic sense and do not limit the number of terms, e.g., a first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
In the related art, when content is viewed by using a terminal device, a part of characters are displayed too small, which affects character viewing experience, and especially on a large-screen terminal device, too small characters easily cause that the character content is not clearly seen. For example, a folding screen mobile phone can provide a larger screen size in an unfolded state, but when watching video and chatting, the large screen size more easily causes the text content to be difficult to see, and needs to adjust the font that the user wants to increase the display.
At present, the adjustment of fonts is generally performed through font adjustment in system setting, that is, the system font size is set in the system font setting, but the font adjustment mode can cause the content (including the text and the content layout) on the whole screen to be changed synchronously, so that the content displayed on the screen is reduced, and the user experience is poor. The fonts in part of application scenarios do not support the change with the change of the system fonts, for example, the subtitle texts when watching the video are still displayed according to a fixed size no matter how the system fonts are adjusted, and the font display requirements of the user cannot be met, which affects the user experience.
In order to solve the technical problem, the scheme adjusts the characters in the first screenshot according to the first input of the first screenshot obtained from the first interface screenshot, adjusts the characters in the first interface, realizes the adjustment of the characters in the first interface, can adjust the characters displayed in the first interface according to the user demand adaptability, meets the diversified demands of users on font display, and improves the user experience.
The following describes the text adjustment method provided in the embodiments of the present application in detail through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Fig. 1 is a flowchart of a text adjustment method provided in an embodiment of the present application, and with reference to fig. 1, the text adjustment method includes:
s101: receiving a first input of a first screenshot, wherein the first screenshot is obtained by screenshot of a first interface, and the first interface comprises characters.
The first interface provided by the scheme can be a video interface when a video is played, a chat interface when a social application is used for chatting, and the like, and characters (such as subtitle characters in the video interface, chat messages in the chat interface, and the like) exist on the first interface. And initiating screenshot operation under the condition of displaying the first interface, performing screenshot on the first interface to obtain a first screenshot, and initiating first input on the first screenshot in a mode of editing characters in the first screenshot. The first input to the first screenshot may be a character configuration operation performed on characters in the first screenshot, where the character configuration operation is used to set font parameters such as size, color, and font of the characters, and generate corresponding character configuration information according to the set font parameters.
For example, after the first interface is subjected to screenshot to obtain the first screenshot, a first input of the first screenshot may be waited, and when the first input of the first screenshot is received, the step S102 is skipped to perform a response operation on the first input. The first input to the first screenshot may be to adjust a text in the first screenshot, for example, to adjust font parameters such as a size, a color, and a font of the text in the first screenshot.
S102: and responding to the first input, adjusting the characters in the first screenshot, and adjusting the characters in the first interface.
Illustratively, after receiving a first input for the first screenshot, adjusting the text in the first screenshot in response to the first input to adjust the display effect of the text in the first screenshot according to the first input, for example, adjusting the display effect of the text in the first screenshot according to the text configuration information. The user can judge whether the expected character display effect is achieved according to the character display effect of the adjusted characters in the first screenshot, and if the expected character display effect is not achieved, the user can continue to initiate first input to the first screenshot so that the character display effect of the adjusted characters in the first screenshot achieves the expected character display effect.
Further, in response to the first input of the first screenshot, the characters appearing in the first interface are adjusted according to the adjustment mode of the first input on the characters in the first screenshot, so that the display effect of the characters of the adjusted characters in the first interface is consistent with the display effect of the characters of the adjusted characters in the first screenshot. For example, the text display effect of the text appearing in the first interface is adjusted according to the text configuration information.
According to the character adjusting method, the characters in the first screenshot are adjusted according to the first input of the first screenshot obtained from the first interface screenshot, the characters in the first screenshot are adjusted, the characters in the first interface are adjusted, the characters displayed in the first interface can be adjusted according to the user demand adaptability, the diversified demands of a user on font display are met, and the user experience is improved.
Optionally, the first screenshot may be obtained by screenshot on a first interface of the first application, adjusting the text in the first screenshot, and after adjusting the text in the first interface, may further include adjusting the text in the first application.
In one embodiment, the text adjustment method provided by the present solution further includes:
s103: and receiving a fourth input of a third screenshot, wherein the third screenshot is obtained by screenshot of a second interface, and the second interface and the first interface are different interfaces of the same application.
Optionally, a screenshot operation is initiated under the condition that the second interface is displayed, a third screenshot is obtained by screenshot the second interface, and fourth input for the third screenshot can be initiated in a mode of editing characters in the third screenshot. The second interface and the first interface provided by the scheme are different interfaces of the same application. The fourth input to the third screenshot may be a character configuration operation performed on characters in the third screenshot, where the character configuration operation is used to set font parameters such as size, color, and font of the characters, and generate corresponding character configuration information according to the set font parameters.
For example, after the third screenshot is obtained by screenshot the second interface, a fourth input to the third screenshot may be waited, and when the fourth input to the third screenshot is received, the step S104 is skipped to perform a response operation on the fourth input. The fourth input to the third screenshot may be to adjust the text in the third screenshot, for example, to adjust font parameters such as size, color, and font of the text in the third screenshot.
S104: and responding to the fourth input, adjusting the characters in the third screenshot, and adjusting the characters in the second interface.
Illustratively, after receiving a fourth input for the third screenshot, adjusting the text in the third screenshot in response to the fourth input to adjust the display effect of the text in the third screenshot according to the fourth input, for example, adjusting the display effect of the text in the third screenshot according to the text configuration information. The user can judge whether the expected character display effect is achieved according to the character display effect of the adjusted characters in the third screenshot, and if the expected character display effect is not achieved, the user can continue to initiate fourth input to the third screenshot, so that the character display effect of the adjusted characters in the third screenshot achieves the expected character display effect.
Further, in response to a fourth input to the third screenshot, the characters appearing in the second interface are adjusted according to the adjustment mode of the fourth input to the characters in the third screenshot, so that the display effect of the characters of the adjusted characters in the second interface is consistent with the display effect of the characters of the adjusted characters in the third screenshot. For example, the character display effect of the characters appearing in the second interface is adjusted according to the character configuration information. At this time, the text display effect of the text appearing in the second interface is changed from the text display effect corresponding to the first input to the text display effect corresponding to the fourth input.
According to the scheme, the first input of the first screenshot or the fourth input of the third screenshot can be initiated in different time periods, so that the characters in the first interface or the second interface can be adjusted in different time periods, the effect of different fonts in different time periods can be achieved, namely different character configuration operations for the screenshots are initiated in different time periods, and the personalized setting of the fonts in different time periods can be achieved. For example, when different fonts need to be played in different playing time periods, the character configuration operation can be started at different time points of the video, each character configuration operation acts in different time intervals, so that different font display effects exist in the time periods corresponding to the two character configuration operations, and the font display effects are more flexibly set.
In one possible embodiment, after receiving the first input of the first screenshot, the first screenshot corresponding to the first input and the text configuration information of the text may be saved to obtain a second saved screenshot and the text configuration information. When the character display effect needs to be adjusted, the character configuration information of a new screenshot (a first screenshot) can be rapidly configured based on the stored second screenshot and the corresponding character configuration information. Based on this, the text adjustment method provided by the present scheme further includes:
s105: a third input is received for the first screenshot and the second screenshot.
S106: and responding to the third input, adjusting the characters in the first screenshot according to the adjustment mode of the characters in the second screenshot, and adjusting the characters in the first interface.
The third input to the first screenshot and the second screenshot may be an interactive operation on the first video screenshot and the second screenshot, for example, the second screenshot is dragged to the first screenshot, so that the text configuration information corresponding to the second screenshot is copied to the text configuration information of the second screenshot, and thus the text display effect of the text corresponding to the second screenshot is controlled.
Illustratively, after the first interface is subjected to screenshot to obtain the first screenshot, a font editing interface for performing font parameter configuration on the text in the first screenshot and a screenshot selecting interface for the stored second screenshot and corresponding text configuration information are provided, and a third input for the first screenshot and the second screenshot is initiated in response to a selected screenshot copying operation (for example, dragging the selected second screenshot to the first screenshot) performed on the stored second screenshot.
Further, determining character configuration information corresponding to the selected second screenshot, and adjusting the display effect of the characters in the first screenshot according to the character configuration information. The user can judge whether the expected character display effect is achieved or not according to the character display effect of the adjusted characters in the first screenshot, and if the expected character display effect is not achieved, the user can continue to initiate first input to the first screenshot or reselect the second screenshot to initiate third input, so that the character display effect of the adjusted characters in the first screenshot achieves the expected character display effect.
Further, in response to a third input of the first screenshot and the second screenshot, the characters appearing in the first interface are adjusted according to the adjustment mode of the characters in the second screenshot, so that the display effect of the characters of the adjusted characters in the first interface is consistent with the display effect of the characters of the adjusted characters in the second screenshot. According to the scheme, the character configuration information is rapidly configured in a screen capture dragging mode, the configuration efficiency of the character configuration information is improved, and the user experience is optimized.
Optionally, input of the first screenshot and the second screenshot is received, the text in the first screenshot is adjusted according to the text in the second screenshot, and the text in the first interface is adjusted. Therefore, the characters in the first screenshot can be conveniently adjusted according to the second screenshot, and the display effect of the characters in the first screenshot can be the same as that of the characters in the first screenshot.
In a possible embodiment, if it is desired to restore the font display effect of the font after the adjustment mode of the text in the first interface is set, the binding of the text adjustment to the first interface is released by deleting the corresponding screenshot. Based on this, the text adjustment method provided by the present scheme further includes:
s107: and under the condition that the deleting operation of the first screenshot is received, deleting the first screenshot, and restoring the display mode of the characters in the first interface.
Optionally, a screenshot management interface of the first screenshot is provided, the first screenshot corresponding to different first inputs is stored in the screenshot management interface, and the user can select the first screenshot corresponding to the font to be restored according to the need of the character display effect and initiate a deletion operation of the first screenshot. And when the deleting operation of the first screenshot is received, deleting the corresponding first screenshot, and restoring the display mode of the characters corresponding to the first screenshot in the first interface, wherein the character display effect of the characters in the first interface is changed to be consistent with the character display effect before the character adjustment is carried out. According to the scheme, the character configuration information of the characters is quickly restored by deleting the screenshot, the configuration efficiency of the character configuration information is improved, and the user experience is optimized.
On the basis of the foregoing embodiment, fig. 2 is a flowchart of another text adjustment method provided in an embodiment of the present application, and with reference to fig. 2, the text adjustment method includes:
s201: receiving a first input of a first screenshot, wherein the first screenshot is obtained by screenshot of a first interface, and the first interface comprises characters.
S202: and responding to the character adjusting range corresponding to the first input, adjusting the characters in the character adjusting range in the first screenshot, and adjusting the characters in the character adjusting range in the first interface.
The character adjusting method provided by the scheme can be carried out according to the set character adjusting range when the characters in the first interface are adjusted. The text adjustment range provided by the scheme can be understood as a range for performing text adjustment on the first interface or the first cut chart, and the text adjustment range can be a set area in a screen or a set element type (for example, different types of visual controls, components and the like). Optionally, when a first input of the first screenshot is issued, the text adjustment range of the first input may be set by the first input, or when the first screenshot is obtained by screenshot on the first interface, the text adjustment range of the first input may be determined by setting a range of the first screenshot on the first interface.
The first input to the first screenshot may be a text setting operation and a text configuration operation performed on a text in the first screenshot. The text setting operation is used to set a text adjustment range for extracting text on the screen, and the text setting operation can be used to specify a display area on the screen or elements (e.g., text-related controls, components, etc.) displayed on the screen. The character configuration operation is used for setting font parameters such as size, color and font of the characters corresponding to the character adjustment range, and generating character configuration information corresponding to the character adjustment range according to the set font parameters.
For example, when a partial range of fonts on a screen needs to be customized, a text setting operation may be initiated on the text adjusting device, and a text adjusting range corresponding to the extracted text is selected on the screen, and the text adjusting device will determine the text adjusting range in response to the text setting operation, and extract the screen text information currently displayed on the screen based on the text adjusting range. The triggering mode of the text setting operation may be implemented by long-time pressing of a screen, setting of a gesture, triggering of a control of the text setting operation, and the like, and the scheme is not limited.
Optionally, when extracting the screen character information based on the character adjustment range, if the characters in the character adjustment range are successfully extracted, the extracted characters are used as the screen character information, and if the characters in the character adjustment range are not extracted, default characters set in advance are used as the screen character information.
After the character adjusting range is determined in response to the character setting operation and the screen character information is acquired based on the character adjusting range, a font editing interface for performing font parameter configuration on the screen character information is provided, and the screen character information is displayed on the font editing interface. The user can execute the character configuration operation on the font editing interface according to the display requirement of the characters, and the font parameters of the screen character information are set. The character adjusting device sets the font parameters of the screen character information according to the character configuration operation and determines the character configuration information corresponding to the character adjusting range.
Optionally, when displaying the screen text information, the font parameters corresponding to the initial screen text information may be consistent with the font parameters when the initial screen text information is initially displayed on the screen, that is, when displaying the screen text information on the font editing interface, the display effect of the screen text information is consistent with the display effect when setting the text adjustment range (initiating the text setting operation). And if the screen character information is the default character, displaying according to default font parameters preset by the default character.
Illustratively, a first interface (for example, a whole screen display area or a picture to be displayed in a video playing area or an element to be displayed on a screen) is acquired, a text adjustment range corresponding to a first input is determined, text is extracted from the first interface according to the text adjustment range, and the extracted text is determined as text to be displayed. Optionally, the extracting of the text from the first interface may be acquiring text information in a text adjustment range, performing text recognition on a picture corresponding to the text adjustment range, or reading text information to be displayed in a corresponding element.
The method and the device adjust the character display effect of the characters in the character adjustment range corresponding to the first input according to the character configuration information corresponding to the first input, wherein the character configuration information is used for configuring font parameters of the extracted characters to be displayed, such as the size, color, font and other font parameters of the characters to be displayed, and the character configuration information corresponds to the character adjustment range, such as the character configuration information is set while the character adjustment range is set. Optionally, when the text configuration information is set, the text adjustment may be performed on the text extracted in the text adjustment range or the default text, the adjusted text display effect is synchronously displayed, and the text configuration information is determined according to the adjustment result.
Illustratively, after the to-be-displayed text is extracted from the first interface based on the text adjustment range, the extracted to-be-displayed text is updated according to the text configuration information corresponding to the text adjustment range (for example, font parameters such as size, color, font, etc. of the to-be-displayed text are updated), and when the updated to-be-displayed text is displayed, the display effect of the to-be-displayed text corresponds to the text configuration information.
Illustratively, after the text to be displayed is updated based on the text configuration information, the updated text to be displayed is displayed in the corresponding text adjustment range. At this time, the display effect of the characters to be displayed corresponds to the character configuration information, for example, after the size of the characters in the character configuration information is increased and/or the color of the characters is changed, the updated characters to be displayed are displayed according to the updated size and/or color of the characters.
It can be understood that, when the updated characters to be displayed are displayed, the content (including the character content and the content layout) outside the character adjustment range on the screen is still displayed according to the original display mode, and cannot be changed along with the change of the characters to be displayed, so that the requirement of personalized customization of the characters in the screen area is met.
In one possible embodiment, the text setting operation provided by the scheme comprises a first setting operation acting on the selected area of the screen and/or a second setting operation acting on the type of the screen element. The first setting operation is used for setting a screen selection area in a display range of a screen, for example, an area corresponding to a displayed video caption is defined on the screen, and the area is used as the screen selection area corresponding to the first setting operation. The second setting operation is used to set a screen element type in the display range of the screen, for example, select various types of controls (visual controls) displayed on the screen, and use the control type corresponding to the selected control as the screen element type corresponding to the second setting operation.
Exemplarily, when an area for determining a text adjustment range needs to be set on a screen, a first setting operation may be triggered on the screen, and an area is selected on the screen, where the selected area is a screen selection area, and a text adjustment range corresponding to the first setting operation is the screen selection area. For example, a first setting operation is triggered in a video playing interface by long-pressing a screen, and a screen selection area is set in a subtitle area (for example, a rectangular area below the video playing interface) of the video playing interface, where the screen selection area is a text adjustment range.
Alternatively, when the first setting operation is triggered on the screen, a selection box with adjustable size and position (a selection box with default size and position may be generated by default, or a selection box with corresponding size and position may be generated according to the generation operation on the selection box) may be displayed on the screen in response to the triggering of the first setting operation, and the user may identify and customize the size and position of the selection box according to the area of the text as desired. After the adjustment of the selection frame is completed, a text adjustment range is determined based on the size and the position of the selection frame.
Further, after the character adjusting range is determined, screen character information in the screen selection area is obtained. For example, screenshot is performed on the selected area of the screen, character recognition is performed on the screenshot, and character information obtained through the character recognition is used as screen character information in the selected area of the screen.
In one possible embodiment, when the video playing interface receives a first setting operation acting on a selected area of the screen, the determined character adjustment range can be bound with the video playing interface, the video player or the video resource, when the video playing interface, the video player or the playing and displaying of the video resource are left, the extraction of characters to be displayed and the updating of the characters to be displayed according to the character adjustment range can be stopped, and when the video playing interface, the video player or the video resource is played and displayed, the extraction of the characters to be displayed and the updating of the characters to be displayed according to the character adjustment range are only stopped, so that the character display effect can be updated dynamically according to the requirements of a user on character customization. After the character adjusting range is determined in the video playing interface, video resources are obtained, screenshot is conducted on the video resources, and character recognition is conducted on the screenshot to obtain screen character information in the screen selection area.
Correspondingly, when the text to be displayed is extracted from the first interface according to the text adjustment range corresponding to the first input, the method specifically comprises the following steps: and extracting characters to be displayed in the picture to be displayed based on the screen selection area corresponding to the character adjustment range corresponding to the first input.
Illustratively, a to-be-displayed picture to be displayed on a screen is acquired in real time, and character recognition is performed on the to-be-displayed picture in a screen selection area corresponding to a character adjustment range corresponding to the first input, so that characters to be displayed in the screen selection area are extracted from the first interface. The picture to be displayed can be a picture to be displayed on the whole screen, and can also be a video frame corresponding to the video resource. According to the scheme, the screen selection area corresponding to the character adjustment range is set on the screen or the video playing interface, a user can conveniently and quickly set the character adjustment range on the screen or the video playing interface, the characters to be displayed are extracted from the picture to be displayed based on the screen selection area, when character configuration information is set, the display effect of the updated characters to be displayed is consistent with the display effect of the characters to be displayed after the character configuration information is configured, the character adjustment range and the character configuration information are set more visually, and the setting efficiency of the character adjustment range and the character configuration information is improved.
In a possible embodiment, when the adjusted text needs to be displayed after adjusting the text in the text adjustment range in the first interface, the method specifically includes: and displaying the updated characters to be displayed based on the screen selection area corresponding to the adjusted characters.
Illustratively, after the characters to be displayed are extracted from the picture to be displayed, the characters to be displayed are updated based on the character configuration information corresponding to the current character adjustment range, and the updated characters to be displayed are displayed in the selected area of the screen. At the moment, the display position of the character to be displayed after the font is updated is consistent with the display position of the character to be displayed on the screen or the video playing interface, so that the habit of the character watching position of a user is kept, the character display effect is consistent with the character customizing requirement of the user, and the customizing requirement of the user on regional characters is met.
As shown in a video playing interface display diagram provided in fig. 3, taking a folding screen mobile phone as a text adjusting device as an example, a larger screen size can be provided when the folding screen mobile phone is in an unfolded state. However, the larger screen size easily causes the subtitle to be displayed too small, which affects the video viewing experience. In order to increase the font of the subtitle in the video viewing process, a first setting operation can be triggered by pressing a video playing interface (a video playing interface in the figure) for a long time, a selection box (a selection box B in the figure) is displayed on the video playing interface, a user can adjust the size and the position of the selection box according to the range and the position corresponding to the subtitle, and the range corresponding to the size and the position of the selection box is the character adjusting range. And (4) screenshot the picture of the character adjusting range, and identifying the characters in the screenshot to obtain screen character information (characters corresponding to the 'caption characters' in the picture).
As shown in the schematic diagram for configuring the screen text information based on the selected area on the screen provided in fig. 4, after the screen text information corresponding to the text adjustment range is obtained, a font editing interface (a font editing interface C in the figure) for configuring font parameters of the screen text information is provided at a position corresponding to the text adjustment range, and the screen text information is displayed on the font editing interface. The user can execute the character configuration operation on the font editing interface according to the display requirement of the characters, set the font parameters of the screen character information to determine the character configuration information corresponding to the character adjustment range, and store the set character adjustment range and the corresponding character configuration information.
As shown in fig. 5, after setting a text adjustment range and text configuration information, the text adjustment device obtains a first interface (video data stream) in real time, captures a screen of the first interface according to the text adjustment range, identifies a text to be displayed in the captured screen, updates a font parameter of the text to be displayed according to the corresponding text configuration information, and displays the updated text to be displayed at a position corresponding to the text adjustment range. Therefore, the display effect of the characters to be displayed is consistent with the final display effect of the screen character information when the character adjustment range and the character configuration information are set, and the personalized configuration of the characters in the character adjustment range by the user is realized.
Optionally, the set text adjustment range and the text configuration information may be bound to a video source played by the video playing interface, and the subtitle text is updated according to the text adjustment range and the text configuration information only when the video source is played, and is not updated according to the text adjustment range and the text configuration information any longer when other videos are played or the playing of the video source is exited. The caption text can be updated according to the bound text adjustment range and the text configuration information when the video is played.
According to the character adjusting method, the characters in the first screenshot are adjusted according to the first input of the first screenshot obtained from the first interface screenshot, the characters in the first screenshot are adjusted, the characters in the first interface are adjusted, the characters displayed in the first interface can be adjusted according to the user demand adaptability, the diversified demands of a user on font display are met, and the user experience is improved. Furthermore, the characters to be displayed are extracted from the first interface according to the set character adjusting range, the extracted characters to be displayed are updated according to the character configuration information corresponding to the character adjusting range, the updated characters to be displayed are displayed, the characters in the character adjusting range are adjusted, the displayed characters can be adjusted according to the user demand adaptability, the diversified demands of users on character display are met, and the user experience is improved. Meanwhile, by setting a screen selection area corresponding to the character adjustment range on the screen or the video playing interface, the display effect of the updated characters to be displayed is consistent with the display effect of the characters to be displayed after the character configuration information is configured, the character adjustment range and the character configuration information are set more visually, and the setting efficiency of the character adjustment range and the character configuration information is improved.
In a possible embodiment, the text adjustment method provided by the present scheme further includes: receiving a fifth input of a first element in the first screenshot, wherein the first element is obtained by extracting the first interface; and responding to the fifth input, and adjusting the characters in the first element. Correspondingly, when the character adjusting method provided by the scheme is used for adjusting the characters in the first interface, the method comprises the following steps: and responding to a fifth input, and adjusting the characters in a second element of the same type as the first element in the first interface.
Wherein the fifth input to the first element may be a text setting operation (second setting operation) applied to the screen element type. An element is understood to be a tool such as a control, a component, etc. for displaying content on a screen, and different types of elements can realize different content presentation or different interactive functions. For example, the element may be presented in the form of a View control, and correspondingly, the element type may be one or a combination of more of a text type (e.g., textView for processing text content), a Button type (e.g., button for being clicked), a picture type (e.g., imageView for processing picture content), an input box type (e.g., editText for receiving user information input), a progress bar type (e.g., progressBar for processing a progress bar class), and the like, or the element type may be determined according to the content type corresponding to the element, for example, the element type may be divided into a title, a contact name, a chat message, an interaction Button, a reminder message, and the like, and the content type of the element may also be determined according to a flag for setting the element.
It will be understood that one or more different types of elements may be present at the same time, and that one or more elements of the same type may be present at the same time in one interactive interface. For example, in a chat interface, there is typically only one element of the input box type (i.e., a chat input box), and there are multiple types of text that the user has uttered and/or that the chat object has uttered (i.e., messages that the user or chat object has uttered).
For example, when a screen element type used for determining a text adjustment range needs to be set on the screen, a second setting operation may be triggered on the screen, and an element type displayed on the screen is selected, where the selected element type is a screen element type corresponding to the second setting operation, and the text adjustment range corresponding to the second setting operation is the screen element type (i.e., a fifth input to the first element in the first screenshot is initiated). For example, a second setting operation is triggered by pressing the screen in a chat interface of the social software, the text adjustment device obtains the first element displayed on the current screen in response to the triggering of the second setting operation, determines the selection operation of the user on the first element, takes the element type corresponding to the selected first element as the screen element type corresponding to the second setting operation, and determines the screen element type as the text adjustment range corresponding to the second setting operation.
Further, after the character adjusting range is determined based on the screen element type, screen character information corresponding to the screen element type is acquired, and a user performs character configuration operation on the screen character information to obtain character configuration information corresponding to the character adjusting range.
In one possible embodiment, when screen text information corresponding to a screen element type is obtained, if only one element corresponding to the screen element type exists on a screen, text corresponding to the element is directly obtained as the screen text information, and if multiple elements corresponding to the screen element types exist on the screen, text corresponding to one of the elements (for example, an element which appears first and is located most forward) is obtained as the screen text information. Based on this, before receiving the fifth input for the first element in the first screenshot, the present scheme further includes: receiving a sixth input to the first interface, extracting third elements displayed on the first interface, and determining the element type of each third element; and normalizing the third element based on the element types to obtain a third element corresponding to different element types, and determining the first element according to a seventh input to the third element.
And after the sixth input is initiated to the first interface and the elements displayed on the screen are extracted, determining the extracted elements as third elements and determining the element types of the third elements. The third elements may be normalized based on the element types of the respective third elements to obtain third elements corresponding to different element types, and the first element may be determined according to a seventh input to the third elements, where the seventh input to the third elements may be a selection operation of the third elements.
Illustratively, when the trigger of the second setting operation is detected, the text adjusting apparatus acquires each third element displayed on the current screen, and determines the element type corresponding to the third elements. Further, after determining the element type of each third element displayed on the screen, normalizing the third elements according to the element type, where only one third element is reserved for each third element type in the normalized third elements (for example, the first-appearing third element, that is, the third element such as a control or a group displayed on the screen is atomically classified, extracted and arranged according to the element type, the same third element is normalized, and only the first-appearing third element is displayed), and a character corresponding to the reserved third element is determined as the screen character information of the corresponding element type. According to the scheme, the third elements are subjected to normalization processing, so that the situation that the same type of third elements excessively influence the display spaces of the third elements of other element types is reduced, the operation efficiency is improved, and the user experience is optimized.
In a possible embodiment, when extracting the text to be displayed from the first interface according to the set text adjustment range, the method specifically includes: and extracting characters to be displayed from the picture to be displayed based on the screen element type corresponding to the set character adjusting range.
Illustratively, after determining the text adjustment range based on the screen element type, determining each second element that needs to be displayed on the screen, and determining the element type corresponding to each second element. And when the element type of the second element is consistent with the first element type corresponding to the character adjusting range, extracting characters in the second element, wherein the characters identified in the second element are the characters to be displayed in the character adjusting range in the picture to be displayed. It can be understood that, for an element whose element type is inconsistent with the screen element type, the font parameter of the text is not changed, and the text is still displayed according to the original display effect. According to the scheme, the characters to be displayed are extracted from the elements corresponding to the picture to be displayed according to the screen element types corresponding to the character adjusting ranges, and the character contents which need to be customized by the user in a personalized mode are displayed in a personalized mode.
In a possible embodiment, when displaying the updated to-be-displayed text, the method specifically includes: and displaying the updated characters to be displayed based on the screen element type corresponding to the characters to be displayed.
Illustratively, after the text to be displayed is updated based on the text configuration information corresponding to the text adjustment range, a second element corresponding to the screen element type is added to the screen (the adding position of the second element on the screen is consistent with the adding position on the screen when the text to be displayed is not updated), and the updated displayed text is displayed on the second element. According to the scheme, the characters to be displayed identified on the second element are updated through the character configuration information, the updated characters to be displayed are displayed on the second element, more flexible character updating is achieved, even if the display position of the second element changes, the characters on the second element are still displayed according to the updated display effect, and the flexibility of character display is higher.
As shown in the schematic view of a chat interface display provided in fig. 6, taking a folding-screen mobile phone as a text adjustment device as an example, a larger screen size can be provided when the folding-screen mobile phone is in an unfolded state. However, the larger screen size easily causes the text display of the chat message to be too small, which affects the chat experience. In order to increase the font of the chat message in the chat process, the second setting operation can be triggered by pressing the chat interface (chat interface D in the figure) for a long time.
As shown in the schematic diagram for selecting screen text information based on screen element types provided in fig. 7, the text adjusting device extracts third elements displayed on the screen in response to the second setting operation, determines the element types of the third elements, normalizes the third elements to obtain screen text information corresponding to different element types, and displays the screen text information corresponding to different element types in an element list (element list E in the drawing). Assume that the element types contained in the graph include contact name (corresponding to "contact 1" in the graph), chat message (normalized "good morning" in the graph), interactive button (sent "in the graph), and reminder message (input content in the graph). The user can select the screen character information corresponding to different third element types, the element type corresponding to the selected screen character information is the character adjusting range, and the selected third element is the first element.
As shown in fig. 8, after selecting a screen element type from the element list, a font editing interface (font editing interface F in the figure) for configuring font parameters of screen text information corresponding to the selected screen element type is provided, and screen text information corresponding to the selected screen element type is displayed on the font editing interface (assuming that the selected screen element type is a chat message). The user can execute the character configuration operation on the font editing interface according to the display requirement of the characters, set the font parameters of the screen character information to determine the character configuration information corresponding to the character adjustment range, and store the set character adjustment range and the corresponding character configuration information.
As shown in the schematic diagram of the display effect of the text to be displayed based on the screen element type provided in fig. 9, after setting the text adjustment range and the text configuration information, the text adjustment device obtains the first interface in real time, that is, obtains the second elements to be displayed on the chat interface, and determines the element type corresponding to each second element. And when the element type of the second element is consistent with the element type of the first element corresponding to the character adjusting range, extracting characters in the second element as characters to be displayed, updating font parameters of the characters to be displayed according to corresponding character configuration information, and displaying the corresponding second element in the chat interface and displaying the updated characters to be displayed on the elements to be displayed. And displaying the character configuration information on the screen according to the character configuration information, wherein the character configuration information is displayed in a character adjusting range of the screen. The size corresponding to the second element may be adaptively changed according to the text parameter of the text to be displayed (for example, the size corresponding to the second element is increased).
In one possible embodiment, certain objects (e.g., people, events, places, times, etc.) that appear within the first interface (e.g., within a text adjustment range in the first interface) may be distinctively displayed. For example, different characters in the video can have different fonts by setting corresponding character display effects of the first character and the first character in the first screenshot and applying the character display effects to the whole video. Based on this, when the first interface is a video interface, the method for receiving the first input of the first cut chart includes: a second input is received for the first character and the first text in the first screenshot.
The second input provided by the scheme can be a target setting operation for the first character and the first character in the first screenshot (namely setting the character name corresponding to the first character and the font display effect of the first character). For example, the user may initiate a target setting operation for the first character and the first text, for example, input a character name corresponding to the first character in a target input box provided in the text configuration information editing interface, and perform a text configuration operation for the first text on the font editing interface according to a font display requirement for the first character, thereby initiating the target setting operation for the first character and the first text. The character adjusting device provides a target font editing interface for editing the font parameter configuration of the first character after receiving the target setting operation on the first character and the first character, and determines and sets target configuration information (for indicating the font display effect of the character corresponding to the first character) corresponding to the first character according to the font parameter configuration of the first character on the target font editing interface. Optionally, one or more second inputs to different first characters and first words in the first screenshot may be initiated in the video playback interface, and the different first characters may configure the same or different target configuration information.
Correspondingly, after receiving a second input of a first character and a first character in the first screenshot, the scheme responds to the first input, adjusts the character in the first screenshot, and when adjusting the character in the first interface, the scheme includes: and responding to the second input, adjusting the characters corresponding to the first character and the first character in the first screenshot, and adjusting the characters corresponding to the first character and the first character in the video corresponding to the video interface.
Illustratively, the first text in the first screenshot is adjusted in response to the second input to adjust a display effect of the first text in the first screenshot according to the second input. Furthermore, characters to be displayed are extracted from the video corresponding to the video interface, and whether the characters to be displayed include characters corresponding to the first person (for example, lines corresponding to the first person) are judged. And if the characters to be displayed contain the characters corresponding to the first person, determining the characters as the characters corresponding to the first person and the first characters in the video corresponding to the video interface, and updating the characters corresponding to the first person and the first characters in the video corresponding to the video interface based on the corresponding character configuration information.
It can be understood that, after the to-be-displayed characters are updated based on the character configuration information and the target characters are updated based on the target configuration information, when the updated to-be-displayed characters are displayed, the display effect of the characters except the target characters to be displayed in the to-be-displayed characters corresponds to the character configuration information, and the display effect of the target characters to be displayed corresponds to the target configuration information. For example, when a video or a chat is watched and a text corresponding to a certain character needs to be highlighted, the character name of the character can be used as a first character, the text corresponding to the character can be used as a first text, and a second input aiming at the first character and the first text is initiated by performing target setting operation on the first character and the first text, for example, target configuration information is set to be bold font, and then the corresponding text of the character (for example, when the corresponding text to be displayed is recognized as a subtitle corresponding to the first character) is bold-displayed when a video subtitle or a chat message appears.
In addition, the target effective time for setting the target characters or the target configuration information can be set, and the target characters to be displayed are updated only within the target effective time according to the target configuration information. Based on this, this scheme is adjusting the characters that correspond with first personage and first characters in the video that corresponds to the video interface, includes: and adjusting the characters corresponding to the first character and the first characters in the video corresponding to the video interface within the effective time of the second input.
Illustratively, while initiating the second input of the first character and the first text in the first screenshot, an effective time corresponding to the second input is also set. Where the validation time may be one or more time periods. In the process of playing the video on the video interface, if the current time is within the effective time corresponding to the second input, the characters corresponding to the first character and the first characters in the video corresponding to the video interface are continuously adjusted, and if the current time exceeds the effective time corresponding to the second input, the characters corresponding to the first character and the first characters in the video corresponding to the video interface do not need to be adjusted according to the expired second input.
The scheme realizes the updating of characters corresponding to the characters by configuring the first characters and the character display effects corresponding to the first characters, and performs differentiated display on the characters corresponding to the characters concerned by the user while displaying the characters in a customized manner, so that the use experience of the user is enriched. And the effective time of the second input is set, and the action time period of the second input can be set through the effective time, so that the characters are displayed more flexibly.
According to the character adjusting method, the characters in the first screenshot are adjusted according to the first input of the first screenshot obtained from the first interface screenshot, the characters in the first screenshot are adjusted, the characters in the first interface are adjusted, the characters displayed in the first interface can be adjusted according to the user demand adaptability, the diversified demands of a user on font display are met, and the user experience is improved. Furthermore, the characters to be displayed are extracted from the first interface according to the set character adjusting range, the extracted characters to be displayed are updated according to the character configuration information corresponding to the character adjusting range, the updated characters to be displayed are displayed, the characters in the character adjusting range are adjusted, the displayed characters can be adjusted according to the user requirement adaptability, the diversified requirements of users on character display are met, and the user experience is improved. Meanwhile, by setting a screen selection area corresponding to the character adjustment range on the screen or the video playing interface, the display effect of the updated characters to be displayed is consistent with the display effect of the characters to be displayed after the character configuration information is configured, the character adjustment range and the character configuration information are set more visually, and the setting efficiency of the character adjustment range and the character configuration information is improved. In addition, characters to be displayed can be extracted from elements corresponding to the picture to be displayed for updating according to the screen element types corresponding to the character adjusting ranges, and character contents which need to be customized by a user can be displayed in a personalized mode in a more targeted mode.
It should be noted that, in the text adjustment method provided in the embodiment of the present application, the execution main body may be a text adjustment device, or a control module for executing a text display method in the text adjustment device. In the embodiment of the present application, a method for performing text display by using a text adjustment device is taken as an example to describe the text adjustment device provided in the embodiment of the present application.
Fig. 10 is a schematic structural diagram of a text adjusting apparatus according to an embodiment of the present disclosure, and as shown in fig. 10, the text adjusting method includes a first input module 201 and a text adjusting module 202.
Wherein: a first input module 201, configured to receive a first input of a first screenshot, where the first screenshot is obtained by screenshot for a first interface, and the first interface includes text; and the character adjusting module 202 is configured to adjust the characters in the first screenshot in response to the first input, and adjust the characters in the first interface.
Optionally, the first input module 201 comprises a second input unit, wherein:
the second configuration unit is configured to receive second input of a first character and a first character in the first portrait under the condition that the first interface is a video interface;
the text adjustment module 202 includes a first text adjustment unit, wherein:
the first character adjusting unit is configured to respond to a second input, adjust characters corresponding to the first character and the first character in the first screenshot, and adjust characters corresponding to the first character and the first character in a video corresponding to the video interface.
Optionally, the text adjusting module 202 includes a second text adjusting unit, wherein:
and the second character adjusting unit is configured to adjust characters corresponding to the first character and the first character in the video corresponding to the video interface within the effective time of the second input.
Optionally, the text adjusting module 202 includes a second text adjusting unit, wherein:
and the second character adjusting unit is configured to respond to the character adjusting range corresponding to the first input, adjust the characters in the character adjusting range in the first screenshot, and adjust the characters in the character adjusting range in the first interface.
Optionally, the text adjusting apparatus further includes a text restoring module, wherein:
and the character restoration module is configured to delete the first screenshot and restore the display mode of the characters in the first interface under the condition that the deletion operation of the first screenshot is received.
Optionally, the text adjusting apparatus further includes a third input module, and the text adjusting module 202 includes a third text adjusting unit, wherein:
a third input module configured to receive a third input of the first screenshot and the second screenshot;
and the third character adjusting unit is configured to respond to a third input, adjust the characters in the first screenshot according to the adjusting mode of the characters in the second screenshot, and adjust the characters in the first interface.
Optionally, the text adjusting apparatus further comprises a fourth input module, and the text adjusting module 202 comprises a fourth text adjusting unit, wherein:
the fourth input module is configured to receive a fourth input of a third screenshot, wherein the third screenshot is obtained by screenshot of a second interface, and the second interface and the first interface are different interfaces of the same application;
and the fourth character adjusting unit is configured to respond to a fourth input, adjust the characters in the third screenshot and adjust the characters in the second interface.
Optionally, the text adjusting apparatus further includes a fifth input module, and the text adjusting module 202 includes a fifth text adjusting unit and a fifth text adjusting unit, wherein:
the fifth input module is configured to receive a fifth input of a first element in the first screenshot, wherein the first element is obtained by performing element extraction on the first interface;
a fifth character adjusting unit configured to adjust the character in the first element in response to a fifth input;
and the fifth character adjusting unit is also configured to respond to a fifth input and adjust the characters in a second element of the same type as the first element in the first interface.
Optionally, the text adjusting apparatus further includes a sixth input module, and the text adjusting module 202 includes a sixth text adjusting unit, wherein:
a sixth input module configured to receive a sixth input to the first interface, extract third elements displayed on the first interface, and determine an element type of each of the third elements;
and the sixth character adjusting unit is configured to perform normalization processing on the third element based on the element types to obtain a third element corresponding to different element types, and determine the first element according to a seventh input to the third element.
The character adjusting device provided by the embodiment of the application adjusts the characters in the first screenshot according to the first input of the first screenshot obtained from the screenshot of the first interface, adjusts the characters in the first interface, can adjust the characters displayed in the first interface according to the adaptability of user requirements, meets the diversified requirements of users on font display, and improves the user experience.
The character adjusting device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The text adjusting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The text adjusting device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 9, and is not described here again to avoid repetition.
Optionally, as shown in fig. 11, an electronic device 1100 is further provided in an embodiment of the present application, and includes a processor 1101, a memory 1102, and a program or an instruction stored in the memory 1102 and executable on the processor 1101, where the program or the instruction is executed by the processor 1101 to implement each process of the foregoing text adjustment method embodiment, and can achieve the same technical effect, and no repeated description is provided here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 12 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1200 includes, but is not limited to: radio frequency unit 1201, network module 1202, audio output unit 1203, input unit 1204, sensors 1205, display unit 1206, user input unit 1207, interface unit 1208, memory 1209, and processor 1210.
Those skilled in the art will appreciate that the electronic device 1200 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 1210 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation to the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The user input unit 1207 is configured to receive a first input of a first screenshot, where the first screenshot is obtained by screenshot on a first interface, and the first interface includes text;
a processor 1210 configured to adjust the text in the first screenshot and adjust the text in the first interface in response to the first input.
According to the method, the characters in the first screenshot are adjusted according to the first input of the first screenshot obtained from the first interface screenshot, the characters in the first screenshot are adjusted, the characters in the first interface can be adjusted according to the user demand adaptability, the diversified demands of the user on font display are met, and the user experience is improved.
A processor 1210 further configured to: determining a character adjusting range and screen character information under the condition of receiving character setting operation; and determining character configuration information corresponding to the character adjustment range according to the character configuration operation on the screen character information. The character setting operation comprises a first setting operation acting on a selected area of the screen and/or a second setting operation acting on the type of the screen element.
The user input unit 1207 is further configured to receive a second input of the first character and the first text in the first screenshot;
the processor 1210 is further configured to adjust, in response to the second input, the text corresponding to the first character and the first text in the first screenshot, and adjust the text corresponding to the first character and the first text in the video corresponding to the video interface.
The processor 1210 is further configured to adjust, within the second input effective time, texts corresponding to the first character and the first text in the video corresponding to the video interface.
The processor 1210 is further configured to adjust, in response to a text adjustment range corresponding to the first input, text in the text adjustment range in the first screenshot, and adjust text in the text adjustment range in the first interface.
The processor 1210 is further configured to delete the first screenshot and restore a display manner of the text in the first interface when the deletion operation for the first screenshot is received.
The user input unit 1207 is further configured to receive a third input of the first screenshot and the second screenshot;
the processor 1210 is further configured to adjust the text in the first screenshot and adjust the text in the first interface according to an adjustment manner for the text in the second screenshot in response to the third input.
The user input unit 1207 is further configured to receive a fourth input of a third screenshot, where the third screenshot is obtained by screenshot on a second interface, and the second interface and the first interface are different interfaces of the same application;
processor 1210 is further configured to adjust text in the third screenshot and adjust text in the second interface in response to the fourth input.
The user input unit 1207 is further configured to receive a fifth input on a first element in the first screenshot, where the first element is obtained by performing element extraction on the first interface;
a processor 1210 further configured to adjust the text in the first element in response to a fifth input; and responding to a fifth input, and adjusting the characters in a second element of the same type as the first element in the first interface.
A user input unit 1207, further configured to receive a sixth input to the first interface before receiving a fifth input to the first element in the first screenshot;
a processor 1210 further configured to: in response to a sixth input, extracting third elements displayed on the first interface and determining the element type of each third element; and normalizing the third element based on the element types to obtain a third element corresponding to different element types, and determining the first element according to a seventh input to the third element.
According to the character adjusting method, the characters in the first screenshot are adjusted according to the first input of the first screenshot obtained from the first interface screenshot, the characters in the first screenshot are adjusted, the characters in the first interface are adjusted, the characters displayed in the first interface can be adjusted according to the user demand adaptability, the diversified demands of a user on font display are met, and the user experience is improved. Furthermore, the characters to be displayed are extracted from the first interface according to the set character adjusting range, the extracted characters to be displayed are updated according to the character configuration information corresponding to the character adjusting range, the updated characters to be displayed are displayed, the characters in the character adjusting range are adjusted, the displayed characters can be adjusted according to the user requirement adaptability, the diversified requirements of users on character display are met, and the user experience is improved. Meanwhile, by setting a screen selection area corresponding to the character adjustment range on the screen or the video playing interface, the display effect of the updated characters to be displayed is consistent with the display effect of the characters to be displayed after the character configuration information is configured, the character adjustment range and the character configuration information are set more visually, and the setting efficiency of the character adjustment range and the character configuration information is improved.
It should be understood that, in the embodiment of the present application, the input Unit 1204 may include a Graphics Processing Unit (GPU) 12041 and a microphone 12042, and the Graphics Processing Unit 12041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1207 includes a touch panel 12071 and other input devices 12072. A touch panel 12071, also referred to as a touch screen. The touch panel 12071 may include two parts of a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1209 may be used to store software programs and various data, including but not limited to application programs and an operating system. Processor 1210 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1210.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing text adjustment method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing text adjustment method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as a system-on-chip, or a system-on-chip.
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 phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatuses in the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions recited, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application may be embodied in the form of a computer 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, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A character adjusting method is characterized by comprising the following steps:
receiving a first input of a first screenshot, wherein the first screenshot is obtained by screenshot of a first interface, and the first interface comprises characters;
and responding to the first input, adjusting the characters in the first screenshot, and adjusting the characters in the first interface.
2. The method of adjusting words according to claim 1, wherein, in a case that the first interface is a video interface, the receiving a first input of a first screenshot comprises:
receiving second input of a first character and a first character in the first screenshot;
the adjusting the text in the first screenshot and the adjusting the text in the first interface in response to the first input includes:
and responding to the second input, adjusting characters corresponding to the first character and the first character in the first screenshot, and adjusting characters corresponding to the first character and the first character in a video corresponding to the video interface.
3. The character adjustment method of claim 2, wherein the adjusting the characters corresponding to the first character and the first character in the video corresponding to the video interface comprises:
and adjusting the characters corresponding to the first character and the first character in the video corresponding to the video interface within the effective time of the second input.
4. The method of claim 1, wherein the adjusting the text in the first screenshot and the adjusting the text in the first interface in response to the first input comprises:
and responding to a character adjusting range corresponding to the first input, adjusting characters in the character adjusting range in the first screenshot, and adjusting characters in the character adjusting range in the first interface.
5. The method for adjusting words according to claim 1, further comprising:
and under the condition that the deleting operation of the first screenshot is received, deleting the first screenshot, and restoring the display mode of the characters in the first interface.
6. The method of claim 1, further comprising:
receiving a third input of the first screenshot and the second screenshot;
and responding to the third input, adjusting the characters in the first screenshot according to the adjustment mode of the characters in the second screenshot, and adjusting the characters in the first interface.
7. The method of claim 1, further comprising:
receiving a fourth input of a third screenshot, wherein the third screenshot is obtained by screenshot of a second interface, and the second interface and the first interface are different interfaces of the same application;
and responding to the fourth input, adjusting the characters in the third screenshot, and adjusting the characters in the second interface.
8. The method for adjusting words according to claim 1, further comprising:
receiving a fifth input of a first element in the first screenshot, wherein the first element is obtained by performing element extraction on a first interface;
adjusting the text in the first element in response to the fifth input;
the adjusting the characters in the first interface comprises:
and responding to the fifth input, and adjusting the characters in a second element of the same type as the first element in the first interface.
9. The text adjustment method of claim 8, wherein before receiving a fifth input for the first element in the first screenshot, further comprising:
receiving a sixth input to the first interface, extracting third elements displayed on the first interface, and determining the element type of each third element;
and normalizing the third element based on the element type to obtain a third element corresponding to different element types, and determining the first element according to a seventh input of the third element.
10. The character adjusting device is characterized by comprising a first input module and a character adjusting module, wherein:
the first input module is configured to receive a first input of a first screenshot, wherein the first screenshot is obtained by screenshot of a first interface, and the first interface comprises characters;
the text adjustment module is configured to adjust text in the first screenshot and adjust text in the first interface in response to the first input.
CN202211186590.2A 2022-09-26 2022-09-26 Character adjusting method and device Pending CN115408986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211186590.2A CN115408986A (en) 2022-09-26 2022-09-26 Character adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211186590.2A CN115408986A (en) 2022-09-26 2022-09-26 Character adjusting method and device

Publications (1)

Publication Number Publication Date
CN115408986A true CN115408986A (en) 2022-11-29

Family

ID=84168712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211186590.2A Pending CN115408986A (en) 2022-09-26 2022-09-26 Character adjusting method and device

Country Status (1)

Country Link
CN (1) CN115408986A (en)

Similar Documents

Publication Publication Date Title
US11706485B2 (en) Display device and content recommendation method
CN111612873A (en) GIF picture generation method and device and electronic equipment
CN112099707A (en) Display method and device and electronic equipment
CN112306607A (en) Screenshot method and device, electronic equipment and readable storage medium
CN112911147B (en) Display control method, display control device and electronic equipment
CN111722775A (en) Image processing method, device, equipment and readable storage medium
CN111857510B (en) Parameter adjusting method and device and electronic equipment
CN113467660A (en) Information sharing method and electronic equipment
US20230269418A1 (en) Video display method, apparatus and storage medium
CN111694490B (en) Setting method and device and electronic equipment
CN115065874A (en) Video playing method and device, electronic equipment and readable storage medium
CN113596555B (en) Video playing method and device and electronic equipment
CN112099714B (en) Screenshot method and device, electronic equipment and readable storage medium
JP2023544544A (en) Screen capture methods, devices and electronic equipment
CN112684963A (en) Screenshot method and device and electronic equipment
CN112866798A (en) Video generation method, device, equipment and storage medium
CN112817676A (en) Information processing method and electronic device
CN115408986A (en) Character adjusting method and device
CN113436297A (en) Picture processing method and electronic equipment
CN113704517A (en) Multimedia file playing method and device
CN110633117B (en) Data processing method, device, electronic equipment and readable medium
CN112764625A (en) Notification message display method and device
CN112130738A (en) Screenshot processing method and device, electronic equipment and storage medium
CN111639474A (en) Document style reconstruction method and device and electronic equipment
CN112788178B (en) Message display method and device

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