Display parameter adjustment method and display device
By acquiring images of writing trajectories on the smart whiteboard and adjusting display parameters based on their characteristics, the problem of poor display of written content on the smart whiteboard was solved, achieving adaptive matching of display parameters and improved performance.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGZHOU SHIYUAN ELECTRONICS CO LTD
- Filing Date
- 2024-12-02
- Publication Date
- 2026-06-02
AI Technical Summary
The problem of poor display of written content on smart whiteboards due to fixed display parameters during the writing process.
By acquiring images of the writing trajectory and adjusting the display parameters of the display device, such as brightness, contrast, and sharpness, based on the image characteristics, the display can be matched to the user's writing content.
It enables adaptive adjustment of display parameters and writing content, improving the display effect of writing content on the smart whiteboard.
Smart Images

Figure CN122131932A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display settings, and more particularly to display parameter adjustment methods and display devices. Background Technology
[0002] A smart whiteboard is a new type of teaching tool that integrates computer technology, electronic whiteboard technology, and internet technology. It connects traditional whiteboards to devices such as computers and projectors to enable digital teaching. On a smart whiteboard, users can record handwriting, annotations, drawings, and other content during the teaching process in real time; the user's handwriting can be displayed and stored on the smart whiteboard.
[0003] Current smart whiteboards typically offer users preset display modes (such as standard mode and cinema mode). Users can set the display mode before writing, and the smart whiteboard displays the text according to the parameters corresponding to the user-set mode during the writing process. This means that the text is displayed with fixed parameters. When displaying with fixed parameters, the written content on the smart whiteboard may not display well. Summary of the Invention
[0004] This application provides a method for adjusting display parameters and a display device to solve the technical problem of poor display effect of written content on a smart whiteboard.
[0005] Firstly, a method for adjusting display parameters is provided, applied to a display device, the method comprising:
[0006] Acquire a writing trajectory image, the writing trajectory image containing the writing trajectory corresponding to the writing operation performed on the display device;
[0007] The display parameters of the display device are adjusted based on the image features of the writing trajectory image.
[0008] In this technical solution, by acquiring a writing trajectory image and adjusting the display parameters of the display device according to the image features of the writing trajectory image, since the writing trajectory image contains the writing trajectory corresponding to the writing operation on the display device, the writing trajectory image reflects the content written by the user on the display device. Adjusting the display parameters of the display device according to the content written by the user on the display device can make the display parameters of the display device match the content written by the user, thereby achieving adaptive adjustment of the display parameters as the writing content changes, and thus improving the display effect of the writing content on the display device.
[0009] In conjunction with the first aspect, in one possible implementation, the display device is equipped with a multi-touch sensor, which is used to detect the writing operation; acquiring the writing trajectory image includes: acquiring a touch dataset detected by the multi-touch sensor, the touch dataset including at least one touch data, each touch data including touch position coordinates and touch timestamp; arranging the touch position coordinates of each touch data according to the touch timestamp in each touch data in the touch dataset to obtain writing trajectory data; and drawing the writing trajectory corresponding to the writing trajectory data into an image to obtain the writing trajectory image.
[0010] By arranging the touch position coordinates in the touch data detected by the multi-touch sensors in the display device according to the touch timestamp to form writing trajectory data, and drawing the writing trajectory corresponding to the writing trajectory data into an image, the writing trajectory image can be updated and displayed in real time.
[0011] In conjunction with the first aspect, in one possible implementation, adjusting the display parameters of the display device based on the image features of the writing trajectory image includes: adjusting the brightness and / or contrast of the display device based on the brightness features of the writing trajectory image.
[0012] Adjusting the brightness and / or contrast of the display device according to the brightness characteristics of the writing trajectory image can make the brightness and / or contrast of the display device match the brightness characteristics of the writing trajectory image, thereby improving the display effect of the writing trajectory image.
[0013] In conjunction with the first aspect, in one possible implementation, adjusting the brightness and / or contrast of the display device based on the brightness characteristics of the writing trajectory image includes: determining a brightness histogram of the writing trajectory image to obtain a global brightness histogram, wherein the global brightness histogram is used to reflect the brightness distribution of pixels in the writing trajectory image; and adjusting the brightness and / or contrast of the display device based on the global brightness histogram.
[0014] The brightness and / or contrast of the display device can be adjusted based on the global brightness histogram of the writing trajectory image. Since the global brightness histogram can reflect the brightness distribution of pixels in the writing trajectory image, the brightness and / or contrast of the display device can be matched with the brightness distribution of the writing trajectory image, thereby improving the vividness of the writing trajectory on the display device.
[0015] In conjunction with the first aspect, in one possible implementation, adjusting the brightness and / or contrast of the display device according to the global brightness histogram includes: determining the global contrast of the writing trajectory image according to the global brightness histogram, wherein the global contrast reflects the difference between the maximum brightness value corresponding to the global brightness histogram and the minimum brightness value corresponding to the global brightness histogram; increasing the contrast of the display device if the global contrast is less than a first preset contrast; and decreasing the contrast of the display device if the global contrast is greater than a second preset contrast, wherein the second preset contrast is greater than the first preset contrast.
[0016] If the global contrast ratio is less than the first preset contrast ratio, the writing trajectory image in the instruction manual will appear grayish overall. Increasing the contrast ratio of the display device can make the writing trajectory image appear more vivid on the display device. If the global contrast ratio is greater than the second preset contrast ratio, the contrast between light and dark in the writing trajectory image in the instruction manual will be too large. Decreasing the contrast ratio of the display device can make the writing trajectory image appear softer on the display device.
[0017] In conjunction with the first aspect, in one possible implementation, adjusting the brightness and / or contrast of the display device based on the global brightness histogram includes: determining the width of the global brightness histogram to obtain a global histogram width, wherein the global histogram width is used to reflect the brightness distribution range corresponding to the global brightness histogram; if the global histogram width is less than a first preset width, expanding the brightness range of the display device; if the global histogram width is greater than a second preset width, adjusting the contrast of the writing trajectory display area in the display device, wherein the writing trajectory display area is the area in the display area of the display device corresponding to the writing trajectory.
[0018] If the global histogram width is less than the first preset width, the brightness distribution of the writing trajectory image is concentrated. Increasing the brightness range of the display device can enhance the vividness of the writing trajectory image displayed on the display device. If the global histogram width is greater than the second preset width, the brightness distribution of the writing trajectory image is wider. Adjusting the contrast of the display area corresponding to the writing trajectory can make the writing trajectory in the writing trajectory image clearer on the display device.
[0019] In conjunction with the first aspect, in one possible implementation, adjusting the brightness and / or contrast of the display device according to the global brightness histogram includes: determining the brightness center value of the writing trajectory image according to the global brightness histogram, the brightness center value being used to reflect the average brightness value in the global brightness histogram; if the brightness center value is less than a first preset brightness value, increasing the brightness of the display device.
[0020] The brightness center value of the writing trajectory image is less than the first preset brightness value, and the writing trajectory image is generally dark. Increasing the brightness of the display device can make the writing trajectory image appear brighter and clearer on the display device.
[0021] In conjunction with the first aspect, in one possible implementation, adjusting the brightness and / or contrast of the display device based on the brightness characteristics of the writing trajectory image includes: determining a brightness histogram of a trajectory region in the writing trajectory image to obtain a trajectory brightness histogram, wherein the trajectory region is the image region corresponding to the writing trajectory, and the trajectory brightness histogram is used to reflect the brightness distribution of pixels in the trajectory region; and adjusting the brightness and contrast of the display device based on the trajectory brightness histogram.
[0022] The brightness and contrast of the display device are adjusted based on the brightness histogram of the image area corresponding to the writing trajectory in the writing trajectory image. Since the trajectory brightness histogram can reflect the brightness distribution of the writing in the writing trajectory image, the brightness and contrast of the display device can be adjusted to match the brightness distribution of the writing, thereby improving the vividness of the writing trajectory on the display device.
[0023] In conjunction with the first aspect, in one possible implementation, adjusting the brightness and contrast of the display device based on the trajectory brightness histogram includes: if the trajectory brightness histogram satisfies a first preset condition, increasing the brightness and contrast of the display device, wherein the first preset condition is: the ratio of the number of first pixels to the total number of pixels in the writing trajectory image is greater than or equal to a first preset ratio, and the ratio of the number of second pixels to the total number of pixels is less than or equal to a second preset ratio, wherein the first pixel count is the number of pixels in the trajectory brightness histogram whose brightness value is less than or equal to a first brightness value, and the second pixel count is the number of pixels in the trajectory brightness histogram whose brightness value is greater than the first brightness value; if the trajectory brightness histogram satisfies a second preset condition, decreasing the brightness and contrast of the display device, wherein the second preset condition is: the ratio of the number of third pixels to the total number of pixels is greater than or equal to the first preset ratio, and the ratio of the number of fourth pixels to the total number of pixels is less than or equal to the second preset ratio, wherein the third pixel count is greater than or equal to a first preset ratio, and the ratio of the number of fourth pixels to the total number of pixels is less than or equal to the second preset ratio, wherein the ratio of the number of third pixels to the total number of pixels ... fourth pixels to the total number of pixels is greater than or equal to a first preset ratio, and the ratio of the number of fourth pixels to the total number of pixels is less than or equal to a second preset ratio, wherein the ratio of the number of fourth pixels to the total number of pixels is greater than or equal to a first preset ratio, and the ratio of the number of fifth pixels to the total number of pixels is less than or equal to a second preset The fourth pixel count is the number of pixels in the trajectory brightness histogram whose brightness value is greater than or equal to the second brightness value, and the second brightness value is greater than the first brightness value. If the trajectory brightness histogram meets a third preset condition, the display device is subjected to contrast stretching. The third preset condition is: the ratio of the fifth pixel count to the total number of pixels is greater than or equal to a third preset ratio, and the ratio of the sixth pixel count to the total number of pixels is less than or equal to a fourth preset ratio, and the brightness standard deviation corresponding to the trajectory brightness histogram is less than a first preset standard deviation. The fifth pixel count is the number of pixels in the trajectory brightness histogram whose brightness value is greater than or equal to the third brightness value and less than or equal to the fourth brightness value, and the sixth pixel count is the number of pixels in the trajectory brightness histogram whose brightness value is less than the third brightness value or greater than the fourth brightness value, where the third brightness value is greater than the first brightness value, and the fourth brightness value is greater than the third brightness value and less than the second brightness value.
[0024] If the trajectory brightness histogram meets the first preset condition, the writing trajectory in the instruction manual is concentrated in the low brightness area, which increases the brightness and contrast of the display device and improves the overall visibility of the writing trajectory image on the display device. If the trajectory brightness histogram meets the second preset condition, the writing trajectory in the instruction manual is concentrated in the high brightness area, which reduces the brightness and contrast of the display device and can prevent the writing trajectory image from being overexposed and appearing unnatural. If the trajectory brightness histogram meets the third preset condition, the writing trajectory in the instruction manual is narrow and concentrated in the middle brightness area, which stretches the contrast of the display device and can expand the brightness distribution range of the writing trajectory image, making the details of the writing trajectory image more obvious.
[0025] In conjunction with the first aspect, in one possible implementation, adjusting the display parameters of the display device based on the image features of the writing trajectory image includes: adjusting the sharpness of the display device based on the clarity features of the writing trajectory image.
[0026] By conditionally adjusting the sharpness of the display device based on the sharpness characteristics of the writing trajectory image, the sharpness of the display device can be matched with the sharpness of the writing trajectory image, thereby improving the display effect of the writing trajectory image.
[0027] In conjunction with the first aspect, in one possible implementation, adjusting the sharpness of the display device based on the clarity features of the writing trajectory image includes: performing edge detection on the writing trajectory image to determine the mean edge intensity and the edge pixel ratio of the writing trajectory image; and adjusting the sharpness of the display device based on the mean edge intensity and the edge pixel ratio.
[0028] Adjusting the sharpness of the display device based on the average edge intensity and edge pixel ratio of the writing trajectory image can make the writing trajectory clearer on the display device.
[0029] In conjunction with the first aspect, in one possible implementation, adjusting the sharpness of the display device based on the mean edge intensity and the edge pixel ratio includes: increasing the sharpness of the display device if the mean edge intensity is less than a first edge threshold and the edge pixel ratio is less than a first edge ratio.
[0030] If the average edge intensity is less than the first edge threshold and the edge pixel ratio is less than the first edge ratio, the writing trajectory edges are blurry. By increasing the sharpness of the display device, the clarity of the writing trajectory in the writing trajectory image can be improved.
[0031] In conjunction with the first aspect, in one possible implementation, adjusting the sharpness of the display device based on the clarity characteristics of the writing trajectory image includes: determining the grayscale standard deviation of a trajectory region in the writing trajectory image, wherein the trajectory region is the image region corresponding to the writing trajectory; and increasing the sharpness of the display device if the grayscale standard deviation is less than a second preset standard deviation.
[0032] If the grayscale standard deviation of the image region containing the writing trajectory in the writing trajectory image is less than the second preset standard deviation, the details of the writing trajectory image are lost. Increasing the sharpness of the display device can increase the display details of the writing trajectory image on the display device.
[0033] Secondly, a display parameter adjustment device is provided, applied to a display device, the device comprising:
[0034] The image acquisition module is used to acquire a writing trajectory image, wherein the writing trajectory image contains the writing trajectory corresponding to the writing operation performed on the display device;
[0035] The display parameter adjustment module is used to adjust the display parameters of the display device according to the image features of the writing trajectory image.
[0036] Thirdly, a display device is provided, including a memory, a display panel, and a processor, wherein the memory and the display panel are connected to the processor, the display panel is used to display a writing trajectory image, and the processor is used to execute one or more computer programs stored in the memory, wherein when the processor executes one or more computer programs, the display device implements the display parameter adjustment method of the first aspect described above.
[0037] Fourthly, a computer-readable storage medium is provided, which stores a computer program, the computer program including program instructions, which, when executed by a processor, cause the processor to perform the display parameter adjustment method of the first aspect.
[0038] This application can achieve the following technical effects: Since the writing trajectory image contains the writing trajectory corresponding to the writing operation on the display device, the writing trajectory image reflects the content written by the user on the display device. By adjusting the display parameters of the display device according to the content written by the user on the display device, the display parameters of the display device can be matched with the content written by the user, thereby realizing the adaptive adjustment of the display parameters following the changes in the writing content, and thus improving the display effect of the writing content on the display device. Attached Figure Description
[0039] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 A flowchart illustrating a display parameter adjustment method provided in an embodiment of this application;
[0041] Figure 2 A schematic diagram of a writing trajectory image provided in an embodiment of this application;
[0042] Figure 3 A schematic diagram of a brightness histogram provided in an embodiment of this application;
[0043] Figure 4This is a schematic diagram of the structure of a display parameter adjustment device provided in an embodiment of this application;
[0044] Figure 5 This is a schematic diagram of the structure of a display device provided in an embodiment of this application. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0046] It should be noted that, unless there is a conflict, the various features in the embodiments of this application can be combined with each other, all of which are within the protection scope of this application. Furthermore, although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than the module division in the device or the order in the flowchart. Moreover, the terms "first," "second," and "third" used in this application do not limit the data or execution order, but only distinguish identical or similar items with essentially the same function and effect.
[0047] The technical solution of this application is applicable to display scenarios with display devices that have writing functions. Display devices with writing functions can be, for example, smart whiteboards, electronic blackboards, etc., and this application does not impose any restrictions.
[0048] Conventional display devices with writing functions display according to the display parameters corresponding to the user-set display mode. These parameters typically remain fixed while the user is writing. However, due to factors such as the environment in which the display device is located and the content being written, the display may show blurry or dim writing trails, resulting in poor display quality of the written content.
[0049] Some solutions propose adjusting the brightness and color temperature of the display device based on ambient light to match the brightness and color temperature of the ambient light, thereby improving the display effect.
[0050] Ambient light is an external factor, while the writing content is an internal factor. Due to the influence of the color, thickness, and background of the writing content, adjusting the brightness and color temperature of the display device according to the ambient light can only play a certain role in improvement and cannot completely solve the problem. There may still be situations such as dim or blurry writing trails, meaning that the display effect of the writing content is still not good.
[0051] In view of this, this application, based on the intrinsic factor of the writing content, obtains a writing trajectory image corresponding to the writing operation performed on the display device. The writing trajectory image contains the user's writing trajectory. The display parameters of the display device are adjusted according to the image features of the writing trajectory image. The writing trajectory image can reflect the content written by the user on the display device. The display parameters of the display device are dynamically adjusted according to the content written by the user on the display device, so that the parameters of the display device match the writing content. This can avoid the occurrence of blurry or dim writing content, and improve the display effect of the writing content on the display device.
[0052] The technical solution of this application can be applied to any display device with writing function. The technical solution of this application is described in detail below.
[0053] See Figure 1 , Figure 1 This is a flowchart illustrating a display parameter adjustment method provided in an embodiment of this application, as shown below. Figure 1 As shown, the method includes the following steps:
[0054] S101, Obtain the writing trajectory image.
[0055] Here, the writing trajectory image contains the writing trajectory corresponding to the writing operation performed on the display device. The writing trajectory can reflect the text, graphics, special symbols, annotations, etc. written by the user on the display device.
[0056] The writing trajectory image is obtained based on writing trajectory data, which is acquired by the display device from writing operations performed on the display device. The size of the writing trajectory image can be the same as the resolution of the display device. For example, if the resolution of the display device is 1027×768, then the size of the writing trajectory image can be 1027×768. Exemplarily, the writing trajectory image can be as follows: Figure 2 As shown, Figure 2 The contents of regions Q1 and Q2 are the writing trajectories corresponding to the writing operations performed on the display device.
[0057] The display device may include multi-touch sensors for detecting writing operations. In some cases, the multi-touch sensors may include capacitive touch sensors, which can be arrayed throughout the entire display device. The number of touch sensors in the display device may be the same as the display device's resolution; for example, if the display device's resolution is 1024×768, then the number of touch sensors in the display device may also be 1024×768. Of course, the number of touch sensors in the display device may also be different from the display device's resolution. For example, if the display device's resolution is 1024×768, the number of touch sensors may be 512*384, meaning one touch sensor is placed at every one-pixel interval. In other cases, the multi-touch sensors may also include infrared touch sensors. The infrared touch sensors are located at the edges of the display device. One edge of the display device has an infrared emitter, and the opposite edge has an infrared receiver. The infrared light emitted by the emitter can be received by the opposite infrared receiver, and the infrared light emitted by the emitters on different edges forms a grid or matrix.
[0058] When a touch operation is detected on the display device, the touch sensor can output a touch signal to indicate that a touch operation has been detected. When continuous touch operations are detected on the display device, writing operations are detected. The display device can also detect writing operations when the user activates writing mode to obtain an image of the writing trajectory.
[0059] In one specific implementation, the writing trajectory image can be obtained through the following steps A1-A3:
[0060] A1. Obtain the touch dataset detected by the multi-touch sensors within the display device.
[0061] Here, the touch dataset includes at least one touch data point, which is used to represent touch operations performed on the display device.
[0062] Each touch data point includes touch position coordinates and a touch timestamp. Touch data can be represented in the form (xi, yi, ti), where (xi, yi) represents the touch position coordinates in the i-th touch data point, and ti represents the touch timestamp in the i-th touch data point. The touch position coordinates indicate the touch location on the display device. (xi, yi) indicates that the touch operation corresponding to the i-th touch data point is performed at position coordinates (xi, yi) on the display device. The display device can use the position coordinates of the touch sensor that outputs the touch signal within the display device as the touch position coordinates. The touch timestamp indicates the touch time corresponding to the touch operation. The touch timestamp reflects the sequence of touch operations. ti indicates that the touch operation at position coordinates (xi, yi) on the display device was acquired at time ti. The display device can use the timestamp of the touch sensor that outputs the touch signal as the touch timestamp.
[0063] Specifically, the system can acquire touch datasets detected by the multi-touch sensors within the display device according to a preset time period. The duration of the preset time period is based on the image generation frequency of the writing trajectory images. For example, if the image generation frequency is 10 Hz, meaning 10 frames of writing trajectory images are generated per second, then the system can acquire touch data detected by the multi-touch sensors within the current time period (i.e., the latest 6 seconds) using a preset time period of 6 seconds to obtain the current touch dataset. The current touch dataset is then combined with touch datasets acquired in previous time periods to obtain the latest touch dataset.
[0064] A2. Based on the touch timestamps in each touch data in the touch dataset, arrange the touch position coordinates in each touch data to obtain the writing trajectory data.
[0065] The writing trajectory data can be obtained by arranging the touch position coordinates of the touch data with earlier touch timestamps in the touch dataset according to the chronological order of touch timestamps. The writing trajectory data consists of the touch position coordinates of each touch data point in the touch dataset and can be represented as {(x1, y1), (x2, y2), (x3, y3), ...,}. The touch time represented by the touch timestamp of (x1, y1) is earlier than that represented by the touch timestamp of (x2, y2), and so on, since the touch time represented by the touch timestamp of (x2, y2) is earlier than that represented by the touch timestamp of (x3, y3).
[0066] A3. Plot the writing trajectory corresponding to the writing trajectory data onto the image to obtain the writing trajectory image.
[0067] This involves creating a blank image with the same size as the resolution of the display device. Based on the writing parameters of the touch operation (such as writing color and thickness), image points corresponding to the writing operation are drawn at the touch position coordinates in the writing trajectory data of the blank image, thus obtaining the writing trajectory image.
[0068] It should be noted that the display device can execute the above steps A1-A3 according to the preset time period to generate a real-time writing trajectory image.
[0069] Optionally, after drawing image points corresponding to the writing operation of the touch operation at the touch position coordinates in the writing trajectory data in the blank image, the image points can be connected to form a smooth trajectory through interpolation or other methods to obtain the writing trajectory image.
[0070] By arranging the touch position coordinates in the touch data detected by the multi-touch sensors in the display device according to the touch timestamp to form writing trajectory data, and drawing the writing trajectory corresponding to the writing trajectory data into an image, the writing trajectory image can be updated and displayed in real time.
[0071] In some possible cases, after obtaining the writing trajectory image, image preprocessing and trajectory recognition can be performed on the writing trajectory image to obtain the recognition result of the writing trajectory contained in the writing trajectory image. The recognition result of the writing trajectory contained in the writing trajectory image can include the image region where the writing trajectory is located in the writing trajectory image, i.e., the trajectory region, and can also include the specific content corresponding to the writing trajectory, such as text, graphics, specific symbols, etc. Image preprocessing can include steps such as denoising, binarization, and edge detection. Filtering algorithms can be used to remove noise from the writing trajectory image to avoid noise affecting subsequent adjustments; binarization refers to converting the grayscale image into a binary image to highlight the outlines of text and graphics; edge detection algorithms such as Canny and Sobel can be used to detect the edges of the writing trajectory in the writing trajectory image. Trajectory recognition can include optical character recognition (OCR) and character graphic recognition. After preprocessing the writing trajectory image, an OCR recognition model can be used to recognize the preprocessed writing trajectory image to obtain the text corresponding to the writing trajectory contained in the writing trajectory image. Algorithms such as Huffman transform can be used to recognize the shape corresponding to the writing trajectory image contained in the writing trajectory image. Specific symbols and annotations corresponding to the writing trajectory image contained in the writing trajectory image can be recognized through template matching and machine learning algorithms.
[0072] S102, adjust the display parameters of the display device according to the image characteristics of the writing trajectory image.
[0073] Here, the image features of a writing trajectory image refer to the features that affect how the human eye perceives the writing trajectory image. Image features may include one or more of the following: brightness features, chromaticity features, texture features, or grayscale features of the writing trajectory image; the display parameters of the display device may include parameters that affect the display effect of the display device, such as brightness, contrast, sharpness, and color depth.
[0074] There are many ways to adjust the display parameters of a display device based on the image features of a writing trajectory image. Some implementation methods for adjusting the display parameters of a display device based on the image features of a writing trajectory image will be described in detail later.
[0075] exist Figure 1 In the corresponding technical solution, by acquiring the writing trajectory image and adjusting the display parameters of the display device according to the image features of the writing trajectory image, since the writing trajectory image contains the writing trajectory corresponding to the writing operation on the display device, the writing trajectory image reflects the content written by the user on the display device. Adjusting the display parameters of the display device according to the content written by the user on the display device can make the display parameters of the display device match the content written by the user, thereby realizing the adaptive adjustment of the display parameters following the changes in the writing content, and thus improving the display effect of the writing content on the display device.
[0076] In some possible cases, the brightness and / or contrast of the display device can be adjusted based on the brightness characteristics of the writing trajectory image. The brightness characteristics of the writing trajectory image refer to the features reflecting the lightness or darkness of the writing trajectory image. The lightness or darkness of the writing trajectory image affects its display effect on the display device. The brightness and / or contrast of the display device can be adjusted based on one brightness characteristic of the writing trajectory image, or multiple brightness characteristics of the writing trajectory image can be combined to adjust the brightness and / or contrast of the display device.
[0077] In one possible scenario, the brightness characteristics of a writing trajectory image can be characterized by its brightness histogram. A brightness histogram is a graphical representation of an image's brightness characteristics using a histogram; see reference [link to reference]. Figure 3 , Figure 3 This is a schematic diagram of a brightness histogram. The horizontal axis of the brightness histogram represents the brightness level, which ranges from 0 to 255. The vertical axis of the brightness histogram represents the number of pixels at each brightness level.
[0078] The brightness and / or contrast of the display device can be adjusted through the following steps B1-B2:
[0079] B1. Determine the brightness histogram of the writing trajectory image to obtain the global brightness histogram.
[0080] Here, the global brightness histogram is used to reflect the brightness distribution of pixels in the writing trajectory image.
[0081] Specifically, for a target brightness level, the number of pixels in the writing trajectory image with a brightness value corresponding to that target brightness level can be counted to obtain the pixel count for that target brightness level. The target brightness level can be any brightness level. For each brightness level, the corresponding pixel count is determined in the same way, thus obtaining the pixel count of the writing trajectory image at each brightness level. A histogram is then plotted between each brightness level and the pixel count of the writing trajectory image at each brightness level to obtain the global brightness histogram.
[0082] For example, the number of pixels with a brightness value of 0 in the writing trajectory image can be counted to obtain the number of pixels at brightness level 0; the number of pixels with a brightness value of 1 in the writing trajectory image can be counted to obtain the number of pixels at brightness level 1; the number of pixels with a brightness value of 2 in the writing trajectory image can be counted to obtain the number of pixels at brightness level 2; and so on, the number of pixels in the writing trajectory image at each brightness level can be obtained.
[0083] B2. Adjust the brightness and / or contrast of the display device based on the global brightness histogram.
[0084] There are several ways to adjust the brightness and / or contrast of a display device based on the global brightness histogram. Several feasible implementation methods are described below.
[0085] The first feasible implementation method is as follows: the global contrast of the writing trajectory image can be determined according to the global brightness histogram. The global contrast of the writing trajectory image is used to reflect the difference between the maximum brightness value and the minimum brightness value corresponding to the global brightness histogram. If the global contrast is less than the first preset contrast, the contrast of the display device is increased. If the global contrast is greater than the second preset contrast, the contrast of the display device is decreased. The second preset contrast is greater than the first preset contrast.
[0086] The maximum brightness value corresponding to the global brightness histogram refers to the highest brightness level in the global brightness histogram where the number of pixels is not zero, and the minimum brightness value corresponds to the lowest brightness level in the global brightness histogram where the number of pixels is not zero. For example, the global brightness histogram is as follows: Figure 3 As shown, the maximum brightness value corresponding to the global brightness histogram is 230, and the minimum brightness value corresponding to the global brightness histogram is 25.
[0087] In one possible calculation method, the global contrast can be calculated as: d1 = (lmax - lmin) / (lmax + lmin), where d1 represents the global contrast of the writing trajectory image, lmax represents the maximum brightness value corresponding to the global brightness histogram, and lmin represents the minimum brightness value corresponding to the global brightness histogram. Of course, other calculation formulas can also be used to calculate the global contrast, and this application does not impose any restrictions on this.
[0088] The first preset contrast ratio and the second preset contrast ratio are pre-set thresholds used to measure whether the contrast of the writing trajectory image is appropriate. For example, the first preset contrast ratio can be 20%, and the second preset contrast ratio can be 80%. It should be noted that the numerical representation of the first preset contrast ratio and the second preset contrast ratio will be different depending on the contrast calculation formula used.
[0089] If the global contrast ratio is less than the first preset contrast ratio, the writing trajectory image in the instruction manual will appear grayish overall. Increasing the contrast ratio of the display device can make the writing trajectory image appear more vivid on the display device. If the global contrast ratio is greater than the second preset contrast ratio, the contrast between light and dark in the writing trajectory image in the instruction manual will be too large. Decreasing the contrast ratio of the display device can make the writing trajectory image appear softer on the display device.
[0090] The second feasible implementation method is as follows: The width of the global brightness histogram can be determined to obtain the global histogram width. The global histogram width is used to reflect the brightness distribution range corresponding to the global brightness histogram. If the global histogram width is less than the first preset width, the brightness range of the display device is increased. If the global histogram width is greater than the second preset width, the contrast of the writing trajectory display area in the display device is adjusted. The writing trajectory display area in the display device is the area in the display area of the display device that corresponds to the writing trajectory.
[0091] The brightness distribution range corresponding to the global brightness histogram refers to the coverage range of brightness levels where the number of pixels in the global brightness histogram is not zero. The formula for calculating the width of the global histogram can be: d2 = lmax - lmin, where d2 represents the width of the global histogram.
[0092] The first preset width and the second preset width are preset thresholds used to measure whether the brightness distribution of the writing trajectory image is concentrated. The first preset width can be, for example, 50, and the second preset width can be, for example, 180.
[0093] If the global histogram width is less than the first preset width, the brightness distribution of the writing trajectory image is concentrated. Increasing the brightness range of the display device can enhance the vividness of the writing trajectory image displayed on the display device. If the global histogram width is greater than the second preset width, the brightness distribution of the writing trajectory image is wider. Adjusting the contrast of the display area corresponding to the writing trajectory can make the writing trajectory in the writing trajectory image clearer on the display device.
[0094] The third feasible implementation method is as follows: the brightness center value of the writing trajectory image can be determined according to the global brightness histogram. The brightness center value of the writing trajectory image is used to reflect the average brightness value in the global brightness histogram. If the brightness center value of the writing trajectory image is less than the first preset brightness value, the brightness of the display device is increased.
[0095] The average brightness value in the global brightness histogram reflects the center position of the histogram and can be understood as the central trend of the brightness distribution in the writing trajectory image. The formula for calculating the average brightness value in the global brightness histogram is:
[0096]
[0097] This represents the average brightness in the global brightness histogram, and N represents the total number of pixels in the writing trajectory image; l i h represents the i-th pixel level in the global luminance histogram, i.e., the x-coordinate value in the global luminance histogram. i This represents the number of pixels corresponding to the i-th pixel level in the global brightness histogram, which is the ordinate value corresponding to a certain horizontal coordinate value in the global brightness histogram.
[0098] If the center brightness value of the writing trajectory image is less than the first preset brightness value, the writing trajectory image is generally dark. Increasing the brightness of the display device will make the writing trajectory image appear brighter and clearer on the display device. If the center brightness value of the writing trajectory image is greater than or equal to the first preset brightness value, the brightness of the writing trajectory image is moderate, and the brightness of the display device does not need to be adjusted.
[0099] It should be noted that the three feasible implementation methods described above can also be combined. For example, the global contrast, global histogram width, and average brightness of the writing trajectory image can be determined separately. If the adjustment conditions in any of the above implementation methods are met, the brightness and / or contrast of the display device can be adjusted. This application does not limit how the three feasible implementation methods described above can be combined.
[0100] Through the above steps B1-B2, the brightness and / or contrast of the display device are adjusted according to the global brightness histogram of the writing trajectory image. Since the global brightness histogram can reflect the brightness distribution of pixels in the writing trajectory image, the brightness and / or contrast of the display device can be matched with the brightness distribution of the writing trajectory image, thereby improving the vividness of the writing trajectory on the display device.
[0101] In another possible scenario, the brightness characteristics of the writing trajectory image can also be characterized by the brightness histogram of the trajectory region in the writing trajectory image, where the trajectory region is the image region corresponding to the writing trajectory. For example, a writing trajectory image like... Figure 2 As shown, the trajectory region can be as follows Figure 2 Regions Q1 and Q2 in the image. The writing trajectory of the trajectory image is obtained by trajectory recognition. Through trajectory recognition, continuous writing trajectories (hereinafter referred to as continuous writing trajectories) can be written out in the writing trajectory image. After the continuous writing trajectories are identified, the maximum and minimum coordinate values of the continuous writing trajectories in two directions in the writing trajectory image can be determined. Based on the maximum and minimum coordinate values of the continuous writing trajectories in two directions in the writing trajectory image, the position coordinates of the four vertices of the trajectory region in the writing trajectory image are determined. The position coordinates of the four vertices of the trajectory region in the writing trajectory image are (x... min y min ), (x min y max ), (x max y min ), (x max y max ), x min and x max These represent the minimum and maximum coordinate values of the continuous writing trajectory along the x-axis in the writing trajectory image, respectively, and the y-axis value... min and y max These represent the minimum and maximum coordinate values of the continuous writing trajectory along the y-axis in the writing trajectory image, respectively. When there are multiple continuous writing trajectories in the writing trajectory image, the trajectory region corresponding to each continuous writing trajectory image can be determined in the same way, thus obtaining multiple trajectory regions.
[0102] The brightness and / or contrast of the display device can be adjusted using the following steps C1-C2:
[0103] C1. Determine the brightness histogram of the trajectory region in the writing trajectory image to obtain the trajectory brightness histogram.
[0104] Here, the trajectory brightness histogram is used to reflect the brightness distribution of pixels in the trajectory region of the writing trajectory image.
[0105] Specifically, for a target brightness level, the number of pixels in each trajectory region with a brightness value equal to that target brightness level can be counted to obtain the pixel count for that target brightness level. The target brightness level can be any brightness level. For each brightness level, the corresponding pixel count is determined in the same way, thus obtaining the pixel count of the trajectory region at each brightness level. A histogram is then plotted between each brightness level and the pixel count of the trajectory region at each brightness level to obtain the trajectory brightness histogram.
[0106] For example, the number of pixels with a brightness value of 0 in each trajectory region can be counted to obtain the number of pixels at brightness level 0; the number of pixels with a brightness value of 1 in each trajectory region can be counted to obtain the number of pixels at brightness level 1; the number of pixels with a brightness value of 2 in each trajectory region can be counted to obtain the number of pixels at brightness level 2; and so on, to obtain the number of pixels in the trajectory region at each brightness level.
[0107] C2. Adjust the brightness and contrast of the display device according to the trajectory brightness histogram.
[0108] In one feasible implementation, the brightness and contrast of the display device can be adjusted according to the following steps C21-C23:
[0109] C21. If the trajectory brightness histogram meets the first preset condition, increase the brightness and contrast of the display device.
[0110] Here, the first preset condition is: the ratio of the number of first pixels to the total number of pixels in the writing trajectory image is greater than or equal to the first preset ratio, and the ratio of the number of second pixels to the total number of pixels in the writing trajectory image is less than or equal to the second preset ratio. The number of first pixels is the number of pixels in the trajectory brightness histogram whose brightness value is less than or equal to the first brightness value, and the number of second pixels is the number of pixels in the trajectory brightness histogram whose brightness value is greater than the first brightness value.
[0111] The first brightness value, the first preset ratio, and the second preset ratio are thresholds used to evaluate whether the writing trajectory in the writing trajectory image is concentrated in a low-brightness area. For example, the first brightness value can be 50, the first preset ratio can be 70%, the second preset ratio can be 15%, and the first preset condition is: n1 / N≥70%, n2 / N≤15%, where n1 represents the number of pixels with a brightness value less than or equal to 50 in the trajectory brightness histogram, n2 represents the number of pixels with a brightness value greater than 50 in the trajectory brightness histogram, and N represents the total number of pixels in the writing trajectory image.
[0112] The trajectory brightness histogram meets the first preset condition, and the writing trajectory is concentrated in the low brightness area. Increasing the brightness and contrast of the display device can improve the overall visibility of the writing trajectory image on the display device.
[0113] C22. If the trajectory brightness histogram meets the second preset condition, reduce the brightness and contrast of the display device.
[0114] Here, the second preset condition is: the ratio of the number of third pixels to the total number of pixels in the writing trajectory image is greater than or equal to the first preset ratio, and the ratio of the number of fourth pixels to the total number of pixels in the writing trajectory image is less than or equal to the second preset ratio. The number of third pixels is the number of pixels in the trajectory brightness histogram whose brightness value is greater than or equal to the second brightness value, and the number of fourth pixels is the number of pixels in the trajectory brightness histogram whose brightness value is less than the second brightness value. The second brightness value is greater than the first brightness value.
[0115] The second brightness value is a threshold used to evaluate whether the writing trajectory in the writing trajectory image is concentrated in a high-brightness area. For example, the second brightness value can be 200, the first preset ratio can be 70%, and the second preset ratio can be 15%. Then the second preset condition is: n3 / N≥70%, n4 / N≤15%, where n3 represents the number of pixels in the trajectory brightness histogram with a brightness value greater than or equal to 200, and n4 represents the number of pixels in the trajectory brightness histogram with a brightness value less than or equal to 200.
[0116] The trajectory brightness histogram meets the second preset condition, and the writing trajectory in the instruction manual is concentrated in the high brightness area. Reducing the brightness and contrast of the display device can avoid the writing trajectory image from being overexposed and appearing unnatural.
[0117] C23. If the trajectory brightness histogram meets the third preset condition, perform contrast stretching on the display device.
[0118] Here, the third preset condition is: the ratio of the number of fifth pixels to the total number of pixels in the writing trajectory image is greater than or equal to the third preset ratio, and the ratio of the number of sixth pixels to the total number of pixels in the writing trajectory image is less than or equal to the fourth preset ratio, and the standard deviation of the brightness corresponding to the trajectory brightness histogram is less than the first preset standard deviation. The number of fifth pixels is the number of pixels in the trajectory brightness histogram whose brightness value is greater than or equal to the third brightness value and less than or equal to the fourth brightness value. The number of sixth pixels is the number of pixels in the trajectory brightness histogram whose brightness value is less than the third brightness value or greater than the fourth brightness value. The third brightness value is greater than the first brightness value, and the fourth brightness value is greater than the third brightness value and less than the second brightness value.
[0119] The third brightness value, the fourth brightness value, the third preset ratio, the fourth preset ratio, and the first preset standard deviation are thresholds used to evaluate whether the writing trajectory in the writing trajectory image is narrow and concentrated in the middle brightness area. For example, the third brightness value can be 100, the fourth brightness value can be 150, the third preset ratio can be 60%, the fourth preset ratio can be 20%, and the first preset standard deviation can be 40. Then the third preset condition is: n5 / N≥60%, n6 / N≤20%, σ1≤40, where n5 represents the number of pixels in the trajectory brightness histogram whose brightness value is within the brightness value range [100,150], n6 represents the number of pixels in the trajectory brightness histogram whose brightness value is not within the brightness value range [100,150], and σ1 represents the brightness standard deviation corresponding to the trajectory brightness histogram.
[0120] The formula for calculating the standard deviation of brightness corresponding to the trajectory brightness histogram is as follows:
[0121]
[0122] n represents the number of pixels in the trajectory region, l j h represents the j-th pixel level in the trajectory brightness histogram, i.e., the x-coordinate value in the trajectory brightness histogram. j This represents the number of pixels corresponding to the j-th pixel level in the trajectory brightness histogram, which is the ordinate value corresponding to a certain horizontal coordinate value in the trajectory brightness histogram.
[0123] The trajectory brightness histogram meets the third preset condition. The writing trajectory is narrow and concentrated in the middle brightness area. Contrast stretching of the display device can expand the brightness distribution range of the writing trajectory image, making the details of the writing trajectory image more obvious.
[0124] Optionally, if the trajectory brightness histogram does not meet the first, second, or third preset conditions, or if the trajectory brightness histogram meets the fourth preset condition, the brightness and contrast of the display device may not be adjusted. The fourth preset condition is: the ratio of the number of pixels in each brightness sub-interval of the trajectory brightness histogram to the total number of pixels in the writing trajectory image is greater than or equal to a fifth preset ratio, and the brightness standard deviation corresponding to the trajectory brightness histogram is greater than or equal to a second preset standard deviation. Each brightness sub-interval may include multiple consecutive brightness levels, such as 10 consecutive brightness levels.
[0125] For example, if the fifth preset ratio is 10% and the second preset standard deviation is 80, then the fourth preset condition is: the ratio of the number of pixels in each brightness sub-interval in the trajectory brightness histogram to the total number of pixels in the writing trajectory image is ≥10%, and σ1≥80.
[0126] If the trajectory brightness histogram does not meet the first, second, or third preset conditions, or if the trajectory brightness histogram meets the fourth preset condition, it indicates that the brightness of the writing trajectory in the writing trajectory image is broad and evenly distributed, i.e., the brightness is moderate.
[0127] Through the above steps C1-C2, the brightness and contrast of the display device are adjusted according to the brightness histogram of the image area corresponding to the writing trajectory in the writing trajectory image. Since the trajectory brightness histogram can reflect the brightness distribution of the writing in the writing trajectory image, the brightness and contrast of the display device can be adjusted to match the brightness distribution of the writing, thereby improving the vividness of the writing trajectory in the display device.
[0128] It should be noted that the brightness and / or contrast of the display device can also be adjusted by combining the global histogram and trajectory histogram mentioned above, and this application does not limit this.
[0129] Adjusting the brightness and / or contrast of the display device according to the brightness characteristics of the writing trajectory image can make the brightness and / or contrast of the display device match the brightness characteristics of the writing trajectory image, thereby improving the display effect of the writing trajectory image.
[0130] In other possible cases, the sharpness of the display device can be adjusted based on the sharpness characteristics of the writing trajectory image. The sharpness characteristics of the writing trajectory image refer to the features reflecting the clarity of the writing trajectory in the image, and the clarity of the writing trajectory affects the display effect of the writing trajectory image on the display device.
[0131] In one possible scenario, the sharpness of the writing trajectory image can be characterized by edge sharpness, which can be adjusted by adjusting the sharpness of the display device using the following steps D1-D2:
[0132] D1. Perform edge detection on the writing trajectory image to determine the mean edge intensity and the edge pixel ratio of the writing trajectory image.
[0133] Here, the mean edge intensity of the writing trajectory image refers to the magnitude of the gradient of the edge points in the writing trajectory image. The mean edge intensity reflects the clarity of the writing trajectory in the image; a larger mean edge intensity indicates a clearer writing trajectory, while a smaller mean edge intensity indicates a blurrier writing trajectory. The edge pixel ratio of the writing trajectory image refers to the ratio of the number of edge points corresponding to the writing trajectory to the total number of pixels in the writing trajectory image.
[0134] In one possible implementation, the gradient of each pixel in the writing trajectory image can be calculated. If the gradient is greater than a preset gradient, the pixel is identified as an edge point in the writing trajectory image. By judging the gradient of each pixel in the writing trajectory image, all edge points in the writing trajectory image can be identified. The average gradient of all edge points in the writing trajectory image is calculated to obtain the average edge intensity. The ratio of the number of edge points to the total number of pixels in the writing trajectory image is calculated to obtain the edge pixel ratio.
[0135] D2. Adjust the sharpness of the display device based on the average edge intensity and the edge pixel ratio of the writing trajectory image.
[0136] Specifically, if the average edge intensity of the writing trajectory image is less than the first edge threshold, and the edge pixel ratio of the writing trajectory image is less than the first edge ratio, the sharpness of the display device is increased.
[0137] In one specific implementation, if the average edge intensity of the writing trajectory image is less than a first edge threshold, and the edge pixel ratio of the writing trajectory image is less than a first edge ratio, the sharpness of the display device can be increased through edge enhancement technology.
[0138] If the average edge intensity is less than the first edge threshold and the edge pixel ratio is less than the first edge ratio, the writing trajectory edges are blurry. By increasing the sharpness of the display device, the clarity of the writing trajectory in the writing trajectory image can be improved.
[0139] By adjusting the sharpness of the display device based on the average edge intensity and edge pixel ratio of the writing trajectory image through the above steps D1-D2, the writing trajectory can be made clearer on the display device.
[0140] In another possible scenario, the sharpness of the writing trajectory image can also be characterized by grayscale contrast, and the sharpness of the display device can be adjusted through the following steps E1-E2:
[0141] E1. Determine the grayscale standard deviation of the trajectory region in the writing trajectory image.
[0142] Here, the trajectory region is the image region corresponding to the writing trajectory; the formula for calculating the grayscale standard deviation is:
[0143]
[0144] σ² represents the standard deviation of gray levels in the trajectory region, n represents the number of pixels in the trajectory region, and g k This represents the grayscale value of the k-th pixel in the trajectory region.
[0145] E2. If the grayscale standard deviation of the trajectory area is less than the second preset standard deviation, increase the sharpness of the display device.
[0146] In one specific implementation, if the grayscale standard deviation of the trajectory region is less than a second preset standard deviation, the sharpness of the display device can be increased through nonlinear enhancement technology.
[0147] If the grayscale standard deviation of the image region containing the writing trajectory in the writing trajectory image is less than the second preset standard deviation, the details of the writing trajectory image are lost. Increasing the sharpness of the display device can increase the display details of the writing trajectory image on the display device.
[0148] By conditionally adjusting the sharpness of the display device based on the sharpness characteristics of the writing trajectory image, the sharpness of the display device can be matched with the sharpness of the writing trajectory image, thereby improving the display effect of the writing trajectory image.
[0149] It is understandable that the brightness, contrast, and sharpness of the display device can be adjusted based on the image characteristics of the writing trajectory image. For the principles of adjustment, please refer to the steps mentioned above.
[0150] It should also be noted that adjusting the display parameters of the display device based on the image characteristics of the writing trajectory image is not limited to the above-described implementation method.
[0151] It should also be noted that the methods described above are all ways to adaptively adjust the display parameters of the display device. Adaptively adjusting the display parameters can be considered a display mode (hereinafter referred to as automatic mode). In addition to the regular manual adjustment display mode, the display device also has this automatic mode. When the user selects to enable automatic mode, the display device can execute the methods described above. The user can enable automatic mode or the regular manual adjustment display mode via the mode selection button on the display device's interface.
[0152] The method of this application has been described above; the apparatus of this application will be described below.
[0153] See Figure 4 , Figure 4 This is a schematic diagram of the structure of a display parameter adjustment device provided in an embodiment of this application, as shown below. Figure 4 As shown, the display parameter adjustment device 20 includes:
[0154] Image acquisition module 201 is used to acquire a writing trajectory image, wherein the writing trajectory image contains the writing trajectory corresponding to the writing operation performed on the display device;
[0155] The display parameter adjustment module 202 is used to adjust the display parameters of the display device according to the image features of the writing trajectory image.
[0156] In one possible design, the image acquisition module 201 described above is specifically used for: acquiring a touch dataset detected by the multi-touch sensor, the touch dataset including at least one touch data, each touch data including touch position coordinates and touch timestamp; arranging the touch position coordinates of each touch data according to the touch timestamp in each touch data in the touch dataset to obtain writing trajectory data; and drawing the writing trajectory corresponding to the writing trajectory data into an image to obtain the writing trajectory image.
[0157] In one possible design, the aforementioned display parameter adjustment module 202 is specifically used to: adjust the brightness and / or contrast of the display device according to the brightness characteristics of the writing trajectory image.
[0158] In one possible design, the above-mentioned display parameter adjustment module 202 is specifically used to: determine the brightness histogram of the writing trajectory image to obtain a global brightness histogram, wherein the global brightness histogram is used to reflect the brightness distribution of pixels in the writing trajectory image; and adjust the brightness and / or contrast of the display device according to the global brightness histogram.
[0159] In one possible design, the aforementioned display parameter adjustment module 202 is specifically used to: determine the global contrast of the writing trajectory image based on the global brightness histogram, wherein the global contrast reflects the difference between the maximum brightness value corresponding to the global brightness histogram and the minimum brightness value corresponding to the global brightness histogram; if the global contrast is less than a first preset contrast, increase the contrast of the display device; if the global contrast is greater than a second preset contrast, decrease the contrast of the display device, wherein the second preset contrast is greater than the first preset contrast.
[0160] In one possible design, the aforementioned display parameter adjustment module 202 is specifically used to: determine the width of the global brightness histogram to obtain the global histogram width, wherein the global histogram width is used to reflect the brightness distribution range corresponding to the global brightness histogram; if the global histogram width is less than a first preset width, expand the brightness range of the display device; if the global histogram width is greater than a second preset width, adjust the contrast of the writing trajectory display area in the display device, wherein the writing trajectory display area is the area in the display area of the display device corresponding to the writing trajectory.
[0161] In one possible design, the aforementioned display parameter adjustment module 202 is specifically used to: determine the brightness center value of the writing trajectory image based on the global brightness histogram, wherein the brightness center value is used to reflect the average brightness value in the global brightness histogram; and if the brightness center value is less than a first preset brightness value, increase the brightness of the display device.
[0162] In one possible design, the above-mentioned display parameter adjustment module 202 is specifically used to: determine the brightness histogram of the trajectory region in the writing trajectory image, obtain the trajectory brightness histogram, wherein the trajectory region is the image region corresponding to the writing trajectory, and the trajectory brightness histogram is used to reflect the brightness distribution of pixels in the trajectory region; and adjust the brightness and contrast of the display device according to the trajectory brightness histogram.
[0163] In one possible design, the aforementioned display parameter adjustment module 202 is specifically used for: increasing the brightness and contrast of the display device if the trajectory brightness histogram meets a first preset condition, wherein the first preset condition is: the ratio of the number of first pixels to the total number of pixels in the writing trajectory image is greater than or equal to a first preset ratio, and the ratio of the number of second pixels to the total number of pixels is less than or equal to a second preset ratio, wherein the first pixel count is the number of pixels in the trajectory brightness histogram whose brightness value is less than or equal to the first brightness value, and the second pixel count is the number of pixels in the trajectory brightness histogram whose brightness value is greater than the first brightness value; and decreasing the brightness and contrast of the display device if the trajectory brightness histogram meets a second preset condition, wherein the second preset condition is: the ratio of the number of third pixels to the total number of pixels is greater than or equal to the first preset ratio, and the ratio of the number of fourth pixels to the total number of pixels is less than or equal to the second preset ratio, wherein the third pixel count is the number of pixels in the trajectory brightness histogram whose brightness value is greater than the first brightness value; and decreasing the brightness and contrast of the display device if the trajectory brightness histogram meets a second preset condition, wherein the second preset condition is: the ratio of the number of third pixels to the total number of pixels is greater than or equal to the first preset ratio, and the ratio of the number of fourth pixels to the total number of pixels is less than or equal to the second preset ratio, wherein the third pixel count is the number of pixels in the trajectory brightness histogram whose brightness value is less than or equal to the first brightness value. The number of pixels with a brightness value greater than or equal to a second brightness value, wherein the fourth pixel count is the number of pixels with a brightness value less than the second brightness value in the trajectory brightness histogram, and the second brightness value is greater than the first brightness value; if the trajectory brightness histogram meets a third preset condition, the display device is subjected to contrast stretching, wherein the third preset condition is: the ratio of the number of fifth pixels to the total number of pixels is greater than or equal to a third preset ratio, and the ratio of the number of sixth pixels to the total number of pixels is less than or equal to a fourth preset ratio, and the brightness standard deviation corresponding to the trajectory brightness histogram is less than a first preset standard deviation, wherein the fifth pixel count is the number of pixels with a brightness value greater than or equal to a third brightness value and less than or equal to a fourth brightness value in the trajectory brightness histogram, and the sixth pixel count is the number of pixels with a brightness value less than the third brightness value or greater than the fourth brightness value in the trajectory brightness histogram, wherein the third brightness value is greater than the first brightness value, and the fourth brightness value is greater than the third brightness value and less than the second brightness value.
[0164] In one possible design, the aforementioned display parameter adjustment module 202 is specifically used to: adjust the sharpness of the display device according to the clarity characteristics of the writing trajectory image.
[0165] In one possible design, the aforementioned display parameter adjustment module 202 is specifically used to: perform edge detection on the writing trajectory image, determine the average edge intensity of the writing trajectory image and the edge pixel ratio of the writing trajectory image; and adjust the sharpness of the display device according to the average edge intensity and the edge pixel ratio.
[0166] In one possible design, the above-mentioned display parameter adjustment module 202 is specifically used to: increase the sharpness of the display device if the average edge intensity is less than a first edge threshold and the edge pixel ratio is less than a first edge ratio.
[0167] In one possible design, the above-mentioned display parameter adjustment module 202 is specifically used to: determine the grayscale standard deviation of the trajectory region in the writing trajectory image, wherein the trajectory region is the image region corresponding to the writing trajectory; if the grayscale standard deviation is less than a second preset standard deviation, increase the sharpness of the display device.
[0168] It should be noted that, Figure 4 For any content not mentioned in the corresponding embodiments, please refer to the description of the foregoing method embodiments, which will not be repeated here.
[0169] The aforementioned device acquires a writing trajectory image and adjusts the display parameters of the display device based on the image features of the writing trajectory image. Since the writing trajectory image contains the writing trajectory corresponding to the writing operation performed on the display device, and the writing trajectory image reflects the content written by the user on the display device, adjusting the display parameters of the display device according to the content written by the user on the display device can make the display parameters of the display device match the content written by the user, thereby achieving adaptive adjustment of the display parameters as the writing content changes, and thus improving the display effect of the writing content on the display device.
[0170] See Figure 5 , Figure 5 This is a schematic diagram of the structure of a display device provided in an embodiment of this application. The display device 30 includes a processor 301, a memory 302, and a display panel 303. The memory 302 and the display panel 303 are connected to the processor 301, for example, via a bus.
[0171] Processor 301 is configured to support the display device 30 in performing the corresponding functions in the methods described in the above method embodiments. Processor 301 may be a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof. The aforementioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The aforementioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0172] Display panel 303 is used to display the writing trajectory image. Display panel 303 can be a touch panel.
[0173] Memory 302 is used to store program code, etc. Memory 302 may include volatile memory (VM), such as random access memory (RAM); memory 302 may also include non-volatile memory (NVM), such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); memory 302 may also include combinations of the above types of memory.
[0174] The memory 302 is used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the display parameter adjustment method in the embodiments of this application. The processor cooperates to run the non-volatile software programs, instructions, and modules stored in the memory, thereby executing various functional applications and data processing of the display parameter adjustment method, that is, realizing the function of the display parameter adjustment method provided in the above method embodiments.
[0175] The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function. The data storage area may store data created based on the use of the display parameter adjustment device. In some embodiments, the memory may include memory remotely located relative to the processor, which can be connected to the display parameter adjustment device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0176] The one or more modules are stored in the memory. When executed by the one or more processors, they perform the display parameter adjustment method in any of the above method embodiments. For example, they perform the method steps described in the above method embodiments to realize the functions of the modules described in the above device embodiments.
[0177] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a computer, cause the computer to perform the method described in the foregoing embodiments.
[0178] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0179] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.
Claims
1. A method for adjusting display parameters, characterized in that, Applied to a display device, the method includes: Acquire a writing trajectory image, the writing trajectory image containing the writing trajectory corresponding to the writing operation performed on the display device; The display parameters of the display device are adjusted based on the image features of the writing trajectory image.
2. The method according to claim 1, characterized in that, Adjusting the display parameters of the display device based on the image features of the writing trajectory image includes: The brightness and / or contrast of the display device are adjusted based on the brightness characteristics of the writing trajectory image.
3. The method according to claim 2, characterized in that, Adjusting the brightness and / or contrast of the display device based on the brightness characteristics of the writing trajectory image includes: The brightness histogram of the writing trajectory image is determined to obtain a global brightness histogram, which is used to reflect the brightness distribution of pixels in the writing trajectory image; The brightness and / or contrast of the display device are adjusted based on the global brightness histogram.
4. The method according to claim 3, characterized in that, Adjusting the brightness and / or contrast of the display device according to the global brightness histogram includes: Based on the global brightness histogram, the global contrast of the writing trajectory image is determined. The global contrast is used to reflect the difference between the maximum brightness value corresponding to the global brightness histogram and the minimum brightness value corresponding to the global brightness histogram. If the global contrast ratio is less than the first preset contrast ratio, increase the contrast ratio of the display device; If the global contrast ratio is greater than the second preset contrast ratio, the contrast ratio of the display device is reduced, where the second preset contrast ratio is greater than the first preset contrast ratio.
5. The method according to claim 3, characterized in that, Adjusting the brightness and / or contrast of the display device according to the global brightness histogram includes: The width of the global brightness histogram is determined to obtain the global histogram width, which is used to reflect the brightness distribution range corresponding to the global brightness histogram. If the width of the global histogram is less than the first preset width, the brightness range of the display device is expanded; If the width of the global histogram is greater than the second preset width, the contrast of the writing trajectory display area in the display device is adjusted. The writing trajectory display area is the area in the display area of the display device that corresponds to the writing trajectory.
6. The method according to claim 3, characterized in that, Adjusting the brightness and / or contrast of the display device according to the global brightness histogram includes: Based on the global brightness histogram, the brightness center value of the writing trajectory image is determined, and the brightness center value is used to reflect the average brightness value in the global brightness histogram; If the center value of the brightness is less than the first preset brightness value, the brightness of the display device is increased.
7. The method according to claim 2, characterized in that, Adjusting the brightness and / or contrast of the display device based on the brightness characteristics of the writing trajectory image includes: The brightness histogram of the trajectory region in the writing trajectory image is determined to obtain the trajectory brightness histogram. The trajectory region is the image region corresponding to the writing trajectory. The trajectory brightness histogram is used to reflect the brightness distribution of pixels in the trajectory region. The brightness and contrast of the display device are adjusted based on the trajectory brightness histogram.
8. The method according to claim 7, characterized in that, Adjusting the brightness and contrast of the display device according to the trajectory brightness histogram includes: If the trajectory brightness histogram meets a first preset condition, the brightness and contrast of the display device are increased. The first preset condition is: the ratio of the number of first pixels to the total number of pixels in the writing trajectory image is greater than or equal to a first preset ratio, and the ratio of the number of second pixels to the total number of pixels is less than or equal to a second preset ratio. The number of first pixels is the number of pixels in the trajectory brightness histogram whose brightness value is less than or equal to a first brightness value, and the number of second pixels is the number of pixels in the trajectory brightness histogram whose brightness value is greater than the first brightness value. If the trajectory brightness histogram meets the second preset condition, the brightness and contrast of the display device are reduced. The second preset condition is: the ratio of the number of third pixels to the total number of pixels is greater than or equal to the first preset ratio, and the ratio of the number of fourth pixels to the total number of pixels is less than or equal to the second preset ratio. The number of third pixels is the number of pixels in the trajectory brightness histogram whose brightness value is greater than or equal to the second brightness value, and the number of fourth pixels is the number of pixels in the trajectory brightness histogram whose brightness value is less than the second brightness value, and the second brightness value is greater than the first brightness value. If the trajectory brightness histogram meets a third preset condition, the display device is subjected to contrast stretching. The third preset condition is: the ratio of the number of fifth pixels to the total number of pixels is greater than or equal to a third preset ratio, and the ratio of the number of sixth pixels to the total number of pixels is less than or equal to a fourth preset ratio, and the brightness standard deviation corresponding to the trajectory brightness histogram is less than a first preset standard deviation. The number of fifth pixels is the number of pixels in the trajectory brightness histogram whose brightness value is greater than or equal to a third brightness value and less than or equal to a fourth brightness value. The number of sixth pixels is the number of pixels in the trajectory brightness histogram whose brightness value is less than the third brightness value or greater than the fourth brightness value. The third brightness value is greater than the first brightness value, and the fourth brightness value is greater than the third brightness value and less than the second brightness value.
9. The method according to claim 1, characterized in that, Adjusting the display parameters of the display device based on the image features of the writing trajectory image includes: The sharpness of the display device is adjusted based on the clarity characteristics of the writing trajectory image.
10. The method according to claim 9, characterized in that, Adjusting the sharpness of the display device based on the clarity characteristics of the writing trajectory image includes: Edge detection is performed on the writing trajectory image to determine the mean edge intensity and the edge pixel ratio of the writing trajectory image; the sharpness of the display device is adjusted based on the mean edge intensity and the edge pixel ratio; or, Determine the grayscale standard deviation of the trajectory region in the writing trajectory image, where the trajectory region is the image region corresponding to the writing trajectory; if the grayscale standard deviation is less than a second preset standard deviation, increase the sharpness of the display device.
11. A display device, characterized in that, The device includes a memory, a display panel, and a processor, wherein the memory and the display panel are connected to the processor, the display panel is used to display a writing trajectory image, and the processor is used to execute one or more computer programs stored in the memory, wherein when the processor executes the one or more computer programs, the display device causes the display device to implement the method as described in any one of claims 1-10.