Character display method and device, electronic equipment, vehicle and medium

By dynamically adjusting text display parameters using the display method evaluation model in the display device, the problem of low flexibility in traditional text display methods is solved, and the readability of text display and the improvement of user experience is achieved.

CN119167882APending Publication Date: 2024-12-20CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411152163.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

Traditional text display methods are less flexible in a diverse display device environment and cannot meet users' demanding requirements for readability.

Method used

By obtaining the display image of the display device, extracting text display parameters, and using the display method to evaluate the legibility of the model, dynamically adjusting the text display parameters until the preset scoring threshold is reached, the flexibility of text display is improved.

Benefits of technology

It improves the readability and adaptability of text display, and improves the user's reading experience and human-computer interaction effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119167882A_ABST
    Figure CN119167882A_ABST
Patent Text Reader

Abstract

The invention relates to the field of visual interaction, in particular to a character display method and device, electronic equipment, a vehicle and a medium. The method comprises the steps of obtaining a first display image of display equipment; obtaining a first character display parameter of the display device according to the first display image, wherein the first character display parameter is used for representing a character display mode of the first display image; inputting the first character display parameter into a display mode evaluation model, and obtaining a first readability score output by the display mode evaluation model according to the first character display parameter; under the condition that the first readability score is smaller than a preset score threshold value, the first character display parameter is adjusted, and a second character display parameter is obtained; and controlling the display device to display characters according to the second character display parameter. Thus, the electronic equipment can dynamically adjust the character display mode according to the actual display effect, the character display flexibility of the display equipment is improved, and the adaptability and man-machine interaction experience of the display equipment are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of visual interaction, and in particular to a text display method, device, electronic equipment, vehicle and medium. Background Art

[0002] In related technologies, the way text is displayed directly affects the user's reading experience and information acquisition efficiency, especially in a variety of display device environments, such as smartphones, tablets, e-readers, etc., where users have more stringent requirements for text readability. Traditional text display methods usually render text based on fixed parameters such as preset font size, line spacing, color contrast, etc., resulting in low flexibility in text display. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a text display method, device, electronic device, vehicle and medium, aiming to improve the flexibility of the display device in displaying text.

[0004] In a first aspect, an embodiment of the present application provides a text display method, including: Acquire a first display image of a display device; Acquire a first text display parameter of the display device according to the first display image, where the first text display parameter is used to characterize a text display mode of the first display image; Inputting the first character display parameter into a display mode evaluation model, and obtaining a first readability score output by the display mode evaluation model according to the first character display parameter; When the first readability score is less than a preset score threshold, adjusting the first text display parameter to obtain the second text display parameter; The display device is controlled to display text according to the second text display parameter.

[0005] In some implementations, adjusting the first text display parameter to obtain the second text display parameter includes: adjusting the first character display parameter, and inputting the adjusted first character display parameter into the display mode evaluation model; When the readability score output by the display mode evaluation model according to the adjusted first character display parameter is less than the preset score threshold, continue to adjust the first character display parameter until the readability score output by the display mode evaluation model according to the adjusted first character display parameter is greater than or equal to the preset score threshold, and stop adjusting the first character display parameter; The first character display parameter after stopping adjustment is determined as the second character display parameter.

[0006] In some implementations, after controlling the display device to display text according to the adjusted second text display parameter, the method further includes: recording the second text display parameter as a high-quality text display parameter; Acquire a third display image of the display device; Acquire a third text display parameter of the display device according to the third display image, wherein the third text display parameter is used to characterize a text display mode of the third display image; In the case where the third text display parameter matches the first text display parameter, adjusting the third text display parameter to the high-quality text display parameter; The display device is controlled to display text according to the high-quality text display parameters.

[0007] In some implementations, inputting the first text display parameter into a display mode evaluation model to obtain a first readability score output by the display mode evaluation model according to the first text display parameter includes: In the case where no readability score input operation is received from the user, the first text display parameter is input into a display mode evaluation model to obtain a first readability score output by the display mode evaluation model according to the first text display parameter, wherein the readability score input operation is used to input a readability score for a display image of the display device; The method further comprises: In the case of receiving a readability score input operation from a user, in response to the readability score input operation, obtaining the input readability score; When the readability score of the input is less than the preset score threshold, acquiring a fourth display image of the display device; Acquire a fourth text display parameter of the display device according to the fourth display image, wherein the fourth text display parameter is used to characterize a text display mode of the fourth display image; The fourth text display parameter is adjusted, and the display device is controlled to display text according to the adjusted fourth text display parameter.

[0008] In some implementations, before acquiring the first display image of the display device, the method includes: Acquire a plurality of display images of a display device and a plurality of readability scores corresponding to the plurality of display images; Determining a plurality of text display parameters corresponding to the plurality of display images according to the plurality of display images, each of the text display parameters being used to characterize a text display mode of a corresponding display image; Using the multiple readability scores, annotating the multiple text display parameters to obtain a data set; Using the data set to perform model training on the model to be trained, so as to obtain the display mode evaluation model; In the case of receiving a readability score input operation from a user, in response to the readability score input operation, acquiring an input readability score and a display image corresponding to the input readability score, wherein the readability score input operation is used to input a readability score for a display image of the display device; When the number of the obtained readability scores of the input is greater than or equal to a preset number threshold, using the readability scores of the inputs to annotate the text display parameters of the display image corresponding to the readability scores of the inputs, so as to obtain an optimized data set; The optimized data set is used to adjust model parameters of the display mode evaluation model.

[0009] In some implementations, adjusting the first text display parameter to obtain the second text display parameter includes: Get the ambient lighting parameters; The first text display parameter is adjusted according to the ambient lighting parameter to obtain the second text display parameter.

[0010] In some implementations, the first text display parameter includes text density, and acquiring the first text display parameter of the display device according to the first display image includes: extracting a text area of ​​the first display image; Recognize the characters in the character area and determine the number of characters in the character area; The text density is determined according to the size of the text area and the number of the text.

[0011] Second aspect: An embodiment of the present application provides a text display device, the device comprising: An image acquisition module, used to acquire a first display image of a display device; a parameter acquisition module, configured to acquire a first text display parameter of the display device according to the first display image, wherein the first text display parameter is used to characterize a text display mode of the first display image; a score acquisition module, configured to input the first character display parameter into a display mode evaluation model, and acquire a first readability score output by the display mode evaluation model according to the first character display parameter; a parameter adjustment module, configured to adjust the first text display parameter to obtain the second text display parameter when the first readability score is less than a preset score threshold; A display control module is used to control the display device to display text according to the second text display parameter. In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the text display method provided in the first aspect of the embodiment of the present application are implemented.

[0012] In a fourth aspect, an embodiment of the present application provides a vehicle, comprising the electronic device provided in the third aspect of the embodiment of the present application.

[0013] In a fifth aspect, an embodiment of the present application provides a machine-readable storage medium, on which instructions are stored. When the instructions are executed by a processor, the processor enables the processor to implement the text display method provided in the first aspect of the embodiment of the present application.

[0014] In an embodiment of the present application, the electronic device firstly acquires the first display image of the display device, and can accurately capture the current display state of the electronic device, ensuring that the subsequent optimization is based on real display data. Then, by extracting the first text display parameter, the display mode of the text can be accurately described, which provides a reliable basis for subsequent evaluation and adjustment. The electronic device introduces a display mode evaluation model in the text display method to improve the degree of intelligence in the text display process. The model can automatically evaluate the readability of the text based on the existing parameters, and provides a basis for whether adjustment is needed. When the readability score is lower than the preset score threshold, the electronic device adjusts the first text display parameter to improve the readability of the text. Finally, the second text display parameter obtained after adjustment is used to re-control the text presentation of the display device. In this way, the electronic device can dynamically adjust the text display mode according to the actual display effect, improve the flexibility of the display device for text display, and effectively improve the adaptability and human-computer interaction experience of the display device. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a flowchart of a text display method provided in an embodiment of the present application; Figure 2 is a structural schematic diagram of a text display device provided in an embodiment of the present application; Figure 3is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application; Figure 4 It is a schematic diagram of the structure of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

[0016] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0017] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0018] The text display method, device, electronic device, vehicle and medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0019] See also Figure 1 , is a flowchart of a text display method provided in an embodiment of the present application. In a first aspect, an embodiment of the present application provides a text display method, including the following steps S100 to S500: Step S100: Acquire a first display image of a display device; The electronic device first obtains the real display content by capturing the image currently displayed on the screen of the display device as the first display image. The electronic device can use a screenshot function or a hardware camera for the display device to capture the first display image. It can be understood by those skilled in the art that the electronic device used to execute the text display method provided in the first aspect of the embodiment of the present application can be integrated with the display device in the same device (that is, the display device is a component of the electronic device), or it can be two different devices connected in communication. For example, assuming that the user is reading an article, the electronic device will capture the content (including text, background, color, etc.) of the current display device (screen) and generate an image file containing the current screen display, which is the first display image.

[0020] Step S200: acquiring a first text display parameter of a display device according to a first display image, wherein the first text display parameter is used to characterize a text display mode of the first display image.

[0021] The electronic device extracts parameters related to text display from the acquired first display image as first text display parameters, with the purpose of quantitatively describing the current text display mode. The first text display parameters may include font size, font color, background color, contrast, text line spacing, character spacing, etc., and may also include physical parameters of the display device, such as screen size and resolution. The electronic device may also use optical character recognition (OCR) technology to identify text content in the first display image, and use the text content as a type of parameter in the first text display parameters.

[0022] Exemplarily, the electronic device extracts first text display parameters from the first display image, and the first text display parameters may be: font size - 12px, font color - black (#000000), background color - white (#FFFFFF), character spacing - 2px, line spacing - 1.5 times the line spacing, etc.

[0023] Step S300: inputting the first text display parameter into the display mode evaluation model, and obtaining a first readability score output by the display mode evaluation model according to the first text display parameter.

[0024] The electronic device inputs the extracted first text display parameters into a pre-trained display mode evaluation model. The model evaluates the input first text display parameters and outputs a score representing readability, namely a first readability score. The first readability score represents the reading experience of the first display image in the eyes of the user.

[0025] Exemplarily, the first text display parameter is input into the display mode evaluation model, and the display mode evaluation model evaluates that the readability score is 60 points (out of 100 points), which indicates that the current text display is difficult to read to a certain extent.

[0026] Step S400: When the first readability score is less than a preset score threshold, the first text display parameter is adjusted to obtain a second text display parameter.

[0027] If the first readability score output by the display mode evaluation model is lower than the preset score threshold, the first text display parameter needs to be adjusted to obtain the second text display parameter. The electronic device can dynamically adjust the first text display parameter using an optimization algorithm (such as a genetic algorithm, simulated annealing, etc.), and these adjustments may include increasing the font, increasing the contrast between the text and the background, changing the line spacing, etc., to improve readability.

[0028] Exemplarily, because the first readability score is lower than the preset score threshold of 70 points, the electronic device decides to increase the font size from 12px to 14px, and at the same time increase the character spacing to 3px, optimizing the contrast of the text to make the black font more prominent.

[0029] Step S500: controlling the display device to display text according to the second text display parameter.

[0030] The electronic device uses the adjusted text display parameters, namely the second text display parameters, to update the settings of the display device and re-render the text display to meet the new parameter requirements. Exemplarily, the electronic device redisplays the text according to the second text display parameter. At this time, the text seen by the user becomes larger, the line spacing and character spacing are more comfortable, the black-and-white contrast is stronger, and the reading experience is significantly improved.

[0031] Through the above steps S100-S500, the electronic device firstly obtains the first display image of the display device, which can accurately capture the current display state of the electronic device and ensure that the subsequent optimization is based on real display data. Then, by extracting the first text display parameter, the display mode of the text can be accurately described, which provides a reliable basis for subsequent evaluation and adjustment. The electronic device introduces a display mode evaluation model in the text display method to improve the degree of intelligence in the text display process. The model can automatically evaluate the readability of the text based on the existing parameters, and provides a basis for whether adjustment is needed. When the readability score is lower than the preset score threshold, the electronic device adjusts the first text display parameter to improve the readability of the text. Finally, the second text display parameter obtained after adjustment is used to re-control the text presentation of the display device. In this way, the electronic device can dynamically adjust the text display mode according to the actual display effect, improve the flexibility of the display device for text display, and effectively improve the adaptability and human-computer interaction experience of the display device.

[0032] In some implementations, adjusting the first text display parameter to obtain the second text display parameter may include: Adjusting the first character display parameter, and inputting the adjusted first character display parameter into the display mode evaluation model; When the readability score output by the display mode evaluation model according to the adjusted first character display parameter is less than the preset score threshold, continue to adjust the first character display parameter until the readability score output by the display mode evaluation model according to the adjusted first character display parameter is greater than or equal to the preset score threshold, and stop adjusting the first character display parameter; The first character display parameter after stopping adjustment is determined as the second character display parameter.

[0033] When the electronic device initially evaluates that the first readability score of the first text display parameter is lower than the preset score threshold, the electronic device adjusts the first text display parameter. The adjustment may include changing the font size, font color, line spacing, character spacing, contrast, etc., in order to improve the readability of the text display.

[0034] The electronic device can adjust the first text display parameter multiple times, and input the adjusted first text display parameter into the display mode evaluation model again. The model will recalculate a new readability score based on the adjusted first text display parameter each time. In this process, if the readability score after adjustment still does not reach the preset score threshold, the electronic device continues to adjust the first text display parameter. The electronic device can further increase the font, adjust the color contrast, or increase the line spacing until the score reaches or exceeds the preset score threshold, stop adjusting, determine the first text display parameter after the adjustment stops as the second text display parameter, and apply it to the display configuration of the display device. In this way, the electronic device can ensure that the text presentation of the display device achieves the optimal readability effect.

[0035] Exemplarily, the first readability score is 55 points, which is lower than the preset score threshold set to 70 points; The first adjustment: The electronic device increases the font size from 12px to 14px, and adjusts the character spacing from 2px to 3px. These adjusted first text display parameters are input into the display mode evaluation model, and the new readability score output by the model is 65 points, which still does not reach the preset score threshold of 70 points; Second adjustment: The electronic device further optimizes the first text display parameters, changes the font color from black (#000000) to a darker black (#111111), and changes the background color from gray (#CCCCCC) to light gray (#EEEEEE) to increase the contrast. The first text display parameters after the second adjustment are input into the display mode evaluation model again, and the new readability score output by the model is 72 points, reaching the preset score threshold. The electronic device stops adjusting the first text display parameters and determines that the current parameters are the second text display parameters.

[0036] In some implementations, after controlling the display device to display text according to the adjusted second text display parameter, the method may further include: recording the second text display parameter as a high-quality text display parameter; Acquire a third display image of the display device; Acquire a third text display parameter of the display device according to the third display image, where the third text display parameter is used to characterize a text display mode of the third display image; When the third text display parameter matches the first text display parameter, adjusting the third text display parameter to a high-quality text display parameter; The display device is controlled to display text according to the high-quality text display parameters.

[0037] The second text display parameter is recorded as the high-quality text display parameter: After the electronic device has adjusted the first text display parameter and determined it as the second text display parameter, the electronic device stores it as a high-quality text display parameter, that is, the parameter has been verified by the readability score and can provide a reference for text display in similar scenarios in the future, reducing the number of repeated adjustments.

[0038] When the display device displays new content (ie, the third display image), the electronic device again captures the current display image of the display device as the third display image, and the third display image may be new text or content.

[0039] The electronic device extracts the current text display parameter from the third display image as the third text display parameter for analyzing and evaluating the current display effect.

[0040] The electronic device compares the third text display parameter with the previous first text display parameter to check whether they are similar or match. If the two are found to match, it indicates that the third display image is similar to the previous first display image. The electronic device can skip the intermediate adjustment step and directly replace the third text display parameter with the stored high-quality text display parameter, and use the high-quality text display parameter to directly update and control the current display device, so that the device renders the text with the optimal parameters, thereby improving the user's reading experience. In this way, the computing resources of the electronic device are saved, and the best readability is maintained consistently under similar display conditions.

[0041] For example, suppose that after a user reads an article, the electronic device optimizes the text display effect and records the second text display parameters (such as font size 14px, character spacing 3px, black font #111111, light gray background #EEEEEE) as "high-quality text display parameters". The user opens another article, and the electronic device captures the third display image and extracts the current third text display parameters. The electronic device detects that this parameter (such as font size 14px, character spacing 3px, black font #111111, light gray background #EEEEEE) matches the first text display parameters before adjustment.

[0042] Therefore, the electronic device directly replaces the third text display parameter with the previously recorded high-quality text display parameter, that is, a font size of 14px, a character spacing of 3px, and a combination of black and light gray with better color contrast. Finally, the display device renders the text according to the high-quality parameters, and the user immediately sees the optimized display effect without the need for additional adjustment steps.

[0043] In some implementations, inputting the first text display parameter into a display mode evaluation model, and obtaining a first readability score output by the display mode evaluation model according to the first text display parameter may include: In the case where no readability score input operation is received from the user, the first text display parameter is input into the display mode evaluation model to obtain a first readability score output by the display mode evaluation model according to the first text display parameter, wherein the readability score input operation is used to input a readability score for a display image of the display device; The method also includes: In the case of receiving a readability score input operation from the user, in response to the readability score input operation, obtaining the input readability score; When the input readability score is less than a preset score threshold, acquiring a fourth display image of the display device; Acquire a fourth text display parameter of the display device according to the fourth display image, where the fourth text display parameter is used to characterize a text display mode of the fourth display image; The fourth character display parameter is adjusted, and the display device is controlled to display characters according to the adjusted fourth character display parameter.

[0044] Without user intervention and readability score input operation, the electronic device automatically operates and inputs the first text display parameter into the display mode evaluation model. The display mode evaluation model evaluates the readability of the current display based on the previously trained data set and gives an evaluated readability score.

[0045] If the user is not satisfied with the current display effect, the user can provide subjective feedback by inputting a readability score. The electronic device captures the readability score input by the user and records the score.

[0046] If the readability score given by the user is lower than the preset score threshold, the electronic device determines that the current display effect needs to be further optimized. Then the electronic device captures a fourth display image of the display device, which reflects the text display effect given a low score by the user.

[0047] The electronic device extracts display parameters related to the text from the fourth display image as fourth text display parameters, and these parameters represent the current text display mode. According to the readability score input by the user, the electronic device adjusts the fourth text display parameters to improve the readability of the text. For example, the electronic device may increase the font size, change the color contrast, or increase the character spacing. After the adjustment, the electronic device applies these new parameters to the display device and re-renders the text to improve the user's reading experience.

[0048] In this way, the electronic device combines the evaluation of the display mode evaluation model with the user's subjective feedback, and can further optimize the display effect according to the user's actual experience. This not only improves the intelligent level of the display, but also ensures a personalized reading experience.

[0049] For example, a user is using a reading app, and the electronic device automatically evaluates the current text display effect (for example, black 12px font displayed on a gray background with small line spacing), and calculates a readability score of 75. However, the user feels that the reading experience is still not good, so a subjective readability score of 50 is provided through the interface.

[0050] The electronic device detected that the score was below the threshold of 70 points, so it captured the fourth display image, extracted the fourth text display parameters, and adjusted the fourth text display parameters, increasing the font from 12px to 14px, changing the background color to light gray, and increasing the line spacing and character spacing. The adjusted fourth text display parameters were used to control the display device, and the text seen by the user became larger and clearer, and the reading experience was significantly improved.

[0051] In some embodiments, before acquiring the first display image of the display device, the method may include: Acquire a plurality of display images of a display device and a plurality of readability scores corresponding to the plurality of display images; Determining a plurality of text display parameters corresponding to the plurality of display images according to the plurality of display images, each text display parameter being used to characterize a text display mode of a corresponding display image; Using multiple readability scores to annotate multiple text display parameters to obtain a data set; The dataset is used to train the model to be trained, so as to obtain a display evaluation model.

[0052] In order to train the model to be trained to obtain a display mode evaluation model, the electronic device obtains multiple display images of the display device and multiple readability scores corresponding to the multiple display images. The multiple display images may show different text display methods (such as different fonts, colors, layouts, etc.). At the same time, the multiple display images have corresponding readability scores. The readability scores of the multiple display images can be provided manually by the user or generated by an automated tool. The automated tool scores based on factors such as the visual quality, contrast, and font size of the image.

[0053] The electronic device extracts relevant text display parameters from each collected display image. These parameters are used to quantitatively describe the text display method in the image, such as font size, color, background color, character spacing, line spacing, contrast, etc. The electronic device associates the text display parameters extracted from multiple display images with their corresponding readability scores to form a labeled data set. This data set is used to train the model and includes text display parameters under multiple different display conditions and their corresponding readability scores.

[0054] After the data set is determined, the electronic device uses the data set to train a model to be trained. Through the data set, the model to be trained will learn the impact of different text display parameters on readability, and then be able to predict the readability score under new text display conditions. After the training is completed, the model becomes a display mode evaluation model, which can be applied to new display scenarios in the future to evaluate its readability.

[0055] Exemplarily, in order to train a display evaluation model, the electronic device first collects 1,000 display images from different reading environments, which show different text typesetting styles (for example, some with large fonts, some with small fonts, different background colors, and different line spacing and character spacing). Each image has a readability score entered by the user, ranging from 1 to 100 points, representing good or bad readability. The electronic device then extracts text display parameters from these images. For example, an image may correspond to 12px black font, a light gray background color, 1.5 times the line spacing, and 2px character spacing. The electronic device then pairs the readability score of each image with its text display parameters. For example, an image with 12px black font may have scored 65 points, while an image with 20px white font on a dark blue background may have scored 85 points. In this way, the electronic device constructs a data set.

[0056] The electronic device uses this data set to train the training model. By learning this data, the training model gradually understands which text display parameters lead to a higher readability score. After multiple iterations of training, the electronic device obtains a display mode evaluation model.

[0057] In some embodiments, the method may further include: In the case of receiving a readability score input operation by the user, in response to the readability score input operation, acquiring an input readability score and a display image corresponding to the input readability score, wherein the readability score input operation is used to input a readability score for a display image of the display device; When the number of readability scores of the inputs obtained is greater than or equal to a preset number threshold, the text display parameters of the display images corresponding to the readability scores of the inputs are annotated using the readability scores of the inputs to obtain an optimized data set; The optimized data set is used to adjust the model parameters of the display evaluation model.

[0058] When reading, the user can input the readability score at any time. When the user inputs the score, the electronic device will record the current display image, that is, the electronic device saves the readability score input by the user and the display image at that time at the same time.

[0059] The electronic device records the readability scores of the user inputs obtained. When the number of readability scores of the inputs obtained is greater than or equal to a preset number threshold, the scores are used to annotate the text display parameters of the corresponding display image to generate an optimized data set. This optimized data set includes the readability scores and corresponding text display parameters fed back by multiple users, and can reflect the user's subjective experience.

[0060] The electronic device uses the optimized data set to retrain or adjust the parameters of the display evaluation model. In this way, the display evaluation model can learn new user preferences and give a readability score that is more in line with user expectations in future evaluations. The display evaluation model will optimize its internal parameters through this data, so that it can better meet the needs and preferences of users when evaluating new images.

[0061] In some implementations, adjusting the first text display parameter to obtain the second text display parameter may include: Get the ambient lighting parameters; The first text display parameter is adjusted according to the ambient lighting parameter to obtain the second text display parameter.

[0062] Get the ambient lighting parameters: The electronic device can first obtain the current lighting conditions, that is, obtain the ambient lighting parameters, through a light sensor (such as an ambient light sensor of a mobile phone, tablet or e-reader). These parameters may include light intensity (brightness) and light color temperature (warm and cold tones). For example, the electronic device can obtain whether the user's environment is bright daylight or dim indoor lighting. After obtaining the ambient lighting parameters, the electronic device will automatically adjust the first text display parameters, that is, the text display parameters of the currently displayed image, according to the detected lighting conditions to obtain the second text display parameters. In this way, the electronic device can ensure that the display effect of the text achieves optimal readability under different lighting conditions.

[0063] For example, if the electronic device detects that the ambient light is very bright (the light intensity reaches 8000 lux), the electronic device will start to automatically adjust the text display parameters. For example, the font size increases from 12px to 16px, the font color is adjusted from gray to a darker black, and the background changes from light gray to white to increase the contrast and make the text more clearly visible under strong light; if the electronic device detects that the light intensity is low (only 50 lux), the electronic device will start to adjust the text display parameters, the font size may remain unchanged, but the font color may change from black to light gray, and the background may be adjusted from white to dark gray or black, activating the dark mode.

[0064] In some implementations, the first text display parameter may include text density, and acquiring the first text display parameter of the display device according to the first display image may include: extracting a text area of ​​the first display image; Recognize the characters in the text area and determine the number of characters in the text area; The text density is determined based on the size of the text area and the number of characters.

[0065] The electronic device first obtains the current display image (i.e., the first display image) from the display device. Next, the electronic device can use image processing technology or optical character recognition (OCR) technology to identify the area in the image that contains text; the text area refers to the part of the screen where the text is actually displayed, and does not include the image, background or blank part; after identifying the text area, the electronic device further analyzes the area and identifies all the text in the area. The electronic device can convert the text in the image into text through OCR technology and count the total number of words in the text area.

[0066] The area of ​​a text area can be measured by image processing technology to determine its height and width, usually in pixels. Based on the size of the area and the amount of text it contains, the electronic device can determine the text density. If the text density is too high, the text will appear crowded and may affect readability; if the text density is too low, screen space may be wasted and reading efficiency may be reduced.

[0067] In this way, the electronic device can determine the text density through the first display image. In the subsequent parameter adjustment process, the electronic device can dynamically adjust the text density to ensure that the text maintains the best readability on the screen. When the text density is too high, the electronic device can automatically adjust it to avoid crowded text affecting readability; when the text density is too low, the electronic device can also improve the visual effect by appropriately increasing the font or adjusting the spacing. This adjustment based on text density makes the text display effect more flexible and intelligent, adapting to the needs of different content and screen sizes.

[0068] See also Figure 2 , is a structural diagram of a text display device provided in an embodiment of the present application. In a second aspect, an embodiment of the present application provides a text display device 200, and the device 200 includes: An image acquisition module 210 is used to acquire a first display image of a display device; A parameter acquisition module 220, configured to acquire a first text display parameter of a display device according to the first display image, wherein the first text display parameter is used to characterize a text display mode of the first display image; A score acquisition module 230, configured to input the first text display parameter into a display mode evaluation model, and acquire a first readability score output by the display mode evaluation model according to the first text display parameter; A parameter adjustment module 240, configured to adjust the first text display parameter to obtain a second text display parameter when the first readability score is less than a preset score threshold; The display control module 250 is used to control the display device to display text according to the second text display parameter.

[0069] The text display device 200 provided in the second aspect of the embodiment of the present application can implement each process implemented in the above-mentioned method embodiment and achieve the same beneficial effects. To avoid repetition, it will not be described again here.

[0070] See also Figure 3 , is a structural diagram of an electronic device provided in an embodiment of the present application. The third aspect of the embodiment of the present application provides an electronic device 300, including a processor 310 and a memory 320. The memory 320 stores machine executable instructions that can be executed by the processor 310. The processor 310 can execute the machine executable instructions to implement the above-mentioned text display method.

[0071] See also Figure 4 , is a schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The fourth aspect of the embodiment of the present application provides a vehicle 400, and the vehicle 400 includes the electronic device 300 provided in the third aspect of the present application.

[0072] A fifth aspect of an embodiment of the present application provides a machine-readable storage medium, on which instructions are stored. When the instructions are executed by a processor, the processor implements the above-mentioned text display method.

[0073] In one embodiment of the present application, a computer program product is further provided, including a computer program, and when the computer program is executed by a processor, the text display method according to the above-mentioned embodiment is implemented.

[0074] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0075] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0076] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0077] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0078] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0079] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0080] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

[0081] In addition, various embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the present invention, they should also be regarded as the contents disclosed by the present invention.

Claims

1. A text display method, characterized in that: The method comprises: Acquire a first display image of a display device; Acquire a first text display parameter of the display device according to the first display image, where the first text display parameter is used to characterize a text display mode of the first display image; Inputting the first character display parameter into a display mode evaluation model, and obtaining a first readability score output by the display mode evaluation model according to the first character display parameter; When the first readability score is less than a preset score threshold, adjusting the first text display parameter to obtain the second text display parameter; The display device is controlled to display text according to the second text display parameter.

2. The method according to claim 1, characterized in that The adjusting the first text display parameter to obtain the second text display parameter includes: adjusting the first character display parameter, and inputting the adjusted first character display parameter into the display mode evaluation model; When the readability score output by the display mode evaluation model according to the adjusted first character display parameter is less than the preset score threshold, continue to adjust the first character display parameter until the readability score output by the display mode evaluation model according to the adjusted first character display parameter is greater than or equal to the preset score threshold, and stop adjusting the first character display parameter; The first character display parameter after stopping adjustment is determined as the second character display parameter.

3. The method according to claim 2, characterized in that After controlling the display device to display text according to the adjusted second text display parameter, the method further includes: recording the second text display parameter as a high-quality text display parameter; Acquire a third display image of the display device; Acquire a third text display parameter of the display device according to the third display image, wherein the third text display parameter is used to characterize a text display mode of the third display image; In the case where the third text display parameter matches the first text display parameter, adjusting the third text display parameter to the high-quality text display parameter; The display device is controlled to display text according to the high-quality text display parameters.

4. The method according to claim 1, characterized in that The step of inputting the first character display parameter into a display mode evaluation model and obtaining a first readability score output by the display mode evaluation model according to the first character display parameter includes: In the case where no readability score input operation is received from the user, the first text display parameter is input into a display mode evaluation model to obtain a first readability score output by the display mode evaluation model according to the first text display parameter, wherein the readability score input operation is used to input a readability score for a display image of the display device; The method further comprises: In the case of receiving a readability score input operation from a user, in response to the readability score input operation, obtaining the input readability score; When the readability score of the input is less than the preset score threshold, acquiring a fourth display image of the display device; Acquire a fourth text display parameter of the display device according to the fourth display image, wherein the fourth text display parameter is used to characterize a text display mode of the fourth display image; The fourth text display parameter is adjusted, and the display device is controlled to display text according to the adjusted fourth text display parameter.

5. The method according to claim 1, characterized in that Before acquiring the first display image of the display device, the method includes: Acquire a plurality of display images of a display device and a plurality of readability scores corresponding to the plurality of display images; Determining a plurality of text display parameters corresponding to the plurality of display images according to the plurality of display images, each of the text display parameters being used to characterize a text display mode of a corresponding display image; Using the multiple readability scores, annotating the multiple text display parameters to obtain a data set; Using the data set to perform model training on the model to be trained, so as to obtain the display mode evaluation model; In the case of receiving a readability score input operation from a user, in response to the readability score input operation, acquiring an input readability score and a display image corresponding to the input readability score, wherein the readability score input operation is used to input a readability score for a display image of the display device; When the number of the obtained readability scores of the input is greater than or equal to a preset number threshold, using the readability scores of the inputs to annotate the text display parameters of the display image corresponding to the readability scores of the inputs, so as to obtain an optimized data set; The optimized data set is used to adjust model parameters of the display mode evaluation model.

6. The method according to claim 1, characterized in that The adjusting the first text display parameter to obtain the second text display parameter includes: Get the ambient lighting parameters; The first text display parameter is adjusted according to the ambient lighting parameter to obtain the second text display parameter.

7. The method according to claim 1, characterized in that The first text display parameter includes text density, and the acquiring the first text display parameter of the display device according to the first display image includes: extracting a text area of ​​the first display image; Recognize the characters in the character area and determine the number of characters in the character area; The text density is determined according to the size of the text area and the number of the text.

8. A text display device, characterized in that: The device comprises: An image acquisition module, used to acquire a first display image of a display device; a parameter acquisition module, configured to acquire a first text display parameter of the display device according to the first display image, wherein the first text display parameter is used to characterize a text display mode of the first display image; a score acquisition module, configured to input the first character display parameter into a display mode evaluation model, and acquire a first readability score output by the display mode evaluation model according to the first character display parameter; a parameter adjustment module, configured to adjust the first text display parameter to obtain the second text display parameter when the first readability score is less than a preset score threshold; The display control module is used to control the display device to display text according to the second text display parameter.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the text display method according to any one of claims 1 to 7 are implemented.

10. A vehicle, characterized in that: The vehicle comprises the electronic device as claimed in claim 9.

11. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions, which, when executed by a processor, enable the processor to implement the text display method according to any one of claims 1-7.