Display device and character drawing method

By generating multiple text areas and using different font styles, the problem of a single text drawing style on display devices is solved, and the artistry of the text and user experience are improved.

CN120780261APending Publication Date: 2025-10-14JUHAOKAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510898701.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-10-14

AI Technical Summary

Technical Problem

When existing display devices draw text, the styles are relatively simple, resulting in poor text effects, lack of artistry and innovation, and affecting user experience.

Method used

By obtaining the contour point information of the target text, multiple contour lines are generated, and segmentation points are set at curves, and no segmentation points are set at straight lines, multiple text areas are generated and expressed using different font styles to improve the artistry and creativity of the text.

Benefits of technology

It realizes the diversified drawing of text, improves the artistry and innovation of text, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120780261A_ABST
    Figure CN120780261A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a display device and a character drawing method. The display device can determine serial number information of a plurality of contour points in a character according to character information of the character to be displayed and generate a contour line according to on-line points adjacent to the serial number. Wherein when the contour line is a curve, a segmentation point is arranged in the contour line, and when the contour line is a straight line, the segmentation point is not arranged. And setting region end points through the end points of the contour line and the segmentation points, generating a plurality of character regions according to the region end points, and forming the whole character part by the plurality of character regions. The display device can draw a plurality of character areas of the target character so as to realize character drawing. The character can be represented through the plurality of character areas, and different character areas are independent, so that the character can be represented by adopting different font styles, the artistry and innovation of the character are improved, the character effect is improved, and the use experience of a user is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of display devices, and in particular to a display device and a text drawing method. BACKGROUND

[0002] A display device refers to a terminal device capable of outputting a specific display screen. With the wide application of display devices, people have higher and higher requirements for display devices, and display devices have more and more functions. Display devices can realize bidirectional man-machine interaction, integrate audio, video, entertainment, data and other functions, and meet the diversified and personalized needs of users.

[0003] The display device can display images or text and the like. For example, when a user has not operated for a long time, the display device can start a screen protection function and display preset content. The display device can draw text according to information corresponding to the text or display a preset image.

[0004] However, the information corresponding to the text limits the font style of the text, so that the text drawn using the text information has a relatively single style and poor text effect is exhibited to the user. SUMMARY

[0005] The present application provides a display device and a text drawing method to solve the problem that the text drawn using the text information has a relatively single style and poor text effect is exhibited to the user in the related art.

[0006] In a first aspect, some embodiments of the present application provide a display device, comprising a display and a controller. The controller is configured to:

[0007] In response to a text drawing instruction, obtain text information of a target text; the text information comprises serial number information of a plurality of contour points in the target text;

[0008] Generate a plurality of contour lines based on the serial number information; the contour line comprises on-line points adjacent in serial number, and the on-line point is a contour point located in a line body of the target text;

[0009] When it is detected that the contour line is a curve, set a split point in the contour line, and when it is detected that the contour line is a straight line, do not set a split point in the contour line;

[0010] Obtain region endpoints of the target text, the region endpoints comprising endpoints and split points of the plurality of contour lines;

[0011] Generate a plurality of text regions of the target text based on the region endpoints; the text region comprises a preset number of region endpoints, and different text regions do not overlap;

[0012] drawing a plurality of character regions of the target character, the plurality of character regions corresponding to at least one font style.

[0013] The technical scheme has the following beneficial effects: the display device can determine the serial number information of the plurality of contour points in the character according to the character information of the character to be displayed, and generate the contour line according to the line points adjacent in the serial number. When the contour line is a curve, a split point is arranged in the contour line, and when the contour line is a straight line, no split point is arranged. The region end point is arranged by the end point and the split point of the contour line, and the plurality of character regions are generated according to the region end point, and the plurality of character regions constitute the entire character part. The display device can draw the plurality of character regions of the target character, so as to realize the drawing of the character. The character can be expressed by the plurality of character regions, and the different character regions are independent, so that different font styles can be used for expression, the artistic and innovative performance of the character is improved, the character effect is increased, and the use experience of the user is ensured.

[0014] In some embodiments, the character information further includes a flag bit of the plurality of contour points; and the controller is configured to generate the plurality of contour lines based on the serial number information, and specifically configured to:

[0015] obtain the point type of the plurality of contour points based on the flag bit of the plurality of contour points; the point type includes a line point and an off-line point; the off-line point is a contour point located outside the line body of the target character;

[0016] obtain a plurality of line point combinations based on the serial number information; the off-line point combination includes two line points adjacent in the serial number;

[0017] obtain a contour point combination based on the serial number information, the contour point combination including the line point combination and all off-line points between the line point combinations;

[0018] generate a contour line corresponding to the contour point combination.

[0019] The technical scheme has the following beneficial effects: the flag bit of the contour point is used to determine whether the contour point is a line point or an off-line point, so that the contour line is accurately generated, and the clarity of the character display is improved.

[0020] In some embodiments, the controller is configured to generate the contour line corresponding to the contour point combination, and specifically configured to:

[0021] detect the contour point combination;

[0022] if the contour point combination does not include an off-line point, generate a line segment with the line point combination as the end point to obtain a contour line;

[0023] If the line-out point is included in the contour point combination, a curve is generated with the line-on point combination as end points and the line-out point in the contour point combination as a curve control point, to obtain the contour line.

[0024] The technical scheme has the beneficial effects that when the contour line is generated, a line segment or a curve can be selected according to whether the line-out point is included in the contour point combination, and the accuracy of the contour line is improved.

[0025] In some embodiments, the controller, when detecting that the contour line is a curve, sets a split point in the contour line, and is specifically configured to:

[0026] calculate the curvature of the contour line;

[0027] If the curvature of the contour line is greater than a curvature threshold, a split point is set in the contour line.

[0028] The technical scheme has the beneficial effects that when the contour line is detected as a curve, the controller determines whether a split point needs to be set in the contour line according to the relationship between the curvature of the contour line and a preset curvature threshold, and the generation accuracy of the contour is improved.

[0029] In some embodiments, the controller sets a split point in the contour line, and is specifically configured to:

[0030] set a first number of candidate points in the contour line;

[0031] divide the contour line into a plurality of continuous candidate lines based on the candidate points and end points of the contour line;

[0032] calculate the inclination angle of the candidate line;

[0033] determine the first number of candidate points as the split point of the contour line based on detecting that the first angle difference of the inclination angles of all adjacent candidate line combinations is less than or equal to a first angle threshold; the adjacent candidate line combination is two continuous candidate lines.

[0034] The technical scheme has the beneficial effects that the display device sets a split point on the contour line, divides the curve into a plurality of polyline segments, and improves the artistic effect of the text.

[0035] In some embodiments, after the controller calculates the inclination angle of the plurality of continuous candidate lines, the controller is further configured to:

[0036] update the first number to a second number based on detecting that the first angle difference of the inclination angles of the adjacent candidate line combination is greater than the first angle threshold; the second number is greater than the first number.

[0037] a second number of candidate points are arranged in the contour line;

[0038] the contour line is divided into a plurality of continuous candidate lines based on the second number of candidate points and end points of the contour line;

[0039] an inclination angle of the candidate line is calculated;

[0040] the second number of candidate points are determined as segmentation points of the contour line based on that all first angle differences of inclination angles of all adjacent candidate line combinations are less than or equal to a first angle threshold.

[0041] In some embodiments, the controller performing the calculation of the inclination angle of the candidate line is specifically configured to:

[0042] coordinates of two end points of the candidate line are obtained;

[0043] a width of the candidate line is calculated based on horizontal coordinates of the two end points, and a height of the candidate line is calculated based on vertical coordinates of the two end points;

[0044] an arctangent value is calculated based on the height of the candidate line and the width of the candidate line, and the arctangent value is determined as the inclination angle of the candidate line.

[0045] The above technical solution has the following beneficial effects: the display device calculates the inclination angle of the candidate line, thereby dividing the curve into a plurality of polyline, and improving the artistic effect of the text.

[0046] In some embodiments, the controller performing the obtaining of the region end points is specifically configured to:

[0047] inclination angles of the plurality of contour lines are calculated;

[0048] a second angle difference of the inclination angles of each two adjacent contour lines is calculated;

[0049] if the second angle difference is less than or equal to a second angle threshold, a common end point shared between the adjacent contour lines is retained; if the second angle difference is greater than the second angle threshold, the common end point shared between the adjacent contour lines is deleted;

[0050] the retained common end points and segmentation points of the plurality of contour lines are determined as region end points.

[0051] The above technical solution has the following beneficial effects: the display device can screen the points on the line, thereby dividing the target text into a plurality of text regions, and improving the artistic effect of the text.

[0052] In some embodiments, before the controller performing the obtaining of the text information of the target text, the controller is further configured to:

[0053] The display device displays a text selection interface; the text selection interface is used to display a plurality of text controls;

[0054] In response to a click operation of a target text control by a user, a text corresponding to the target text control is determined as a target text.

[0055] The above technical solution has the following beneficial effects: the user can select the text to be drawn by himself / herself, thereby improving the user experience.

[0056] In a second aspect, some embodiments of the present application provide a text drawing method applied to the display device described above, and the method comprises:

[0057] In response to a text drawing instruction, text information of a target text is obtained; the text information comprises serial number information of a plurality of contour points in the target text;

[0058] A plurality of contour lines are generated based on the serial number information; the contour line comprises on-line points with adjacent serial numbers, and the on-line points are contour points in a line body of the target text;

[0059] When it is detected that the contour line is a curve, a split point is set in the contour line, and when it is detected that the contour line is a straight line, no split point is set in the contour line;

[0060] Region endpoints of the target text are obtained; the region endpoints comprise endpoints and split points of the plurality of contour lines;

[0061] A plurality of text regions of the target text are generated based on the region endpoints; each text region comprises a preset number of region endpoints, and different text regions do not overlap;

[0062] The plurality of text regions of the target text are drawn, and the plurality of text regions correspond to at least one font style. BRIEF DESCRIPTION OF DRAWINGS

[0063] In order to more clearly illustrate the technical solutions of the present application, the drawings required in the embodiments will be briefly introduced as follows: obviously, other drawings can also be obtained by those skilled in the art without creative labor on the basis of these drawings.

[0064] Figure 1 A schematic diagram of an operation scenario between a display device and a control device provided by some embodiments is shown;

[0065] Figure 2 A hardware configuration block diagram of a display device in some embodiments is shown;

[0066] Figure 3 FIG. 1 shows a software configuration diagram of a display device in some embodiments;

[0067] Figure 4 FIG. 2 shows a schematic diagram of a user interface in some embodiments;

[0068] Figure 5 FIG. 3 shows a schematic diagram of an application list interface in some embodiments;

[0069] Figure 6 FIG. 4 shows a flowchart of the interaction of the components of a display device in some embodiments;

[0070] Figure 7 FIG. 5 shows a schematic diagram of a user interface displayed by a display device in some embodiments;

[0071] Figure 8 FIG. 6 shows a schematic diagram of a system settings interface displayed by a display device in some embodiments;

[0072] Figure 9 FIG. 7 shows a content type selection interface of a screen saver function in some embodiments;

[0073] Figure 10 FIG. 8 shows a schematic diagram of a character selection interface in some embodiments;

[0074] Figure 11 FIG. 9 shows a schematic diagram of a plurality of contour points of a character in some embodiments;

[0075] Figure 12 FIG. 10 shows a schematic diagram of a candidate point in a contour line in some embodiments;

[0076] Figure 13 FIG. 11 shows a schematic diagram of an area endpoint of a target character in some embodiments. DETAILED DESCRIPTION

[0077] The embodiments will be described in detail with reference to the drawings, of which examples are shown. The following description is directed to the accompanying drawings, in which the same numbers represent the same or similar elements throughout the several figures. The implementations described in this detailed description with respect to the embodiments are not meant to be all-inclusive or represent all implementations consistent with the present disclosure. Rather, they are merely examples of systems and methods consistent with some aspects of the present disclosure as detailed in the claims.

[0078] It should be noted that the brief description of terms in this application is only for the convenience of understanding the implementations described next, and is not intended to limit the implementations of the present application. Unless otherwise specified, these terms should be understood according to their ordinary and common meanings.

[0079] The terms "first", "second", "third", and the like in the description and in the claims of the present application and above-described drawings are used for distinguishing between similar or identical objects and do not necessarily have a specific temporal or chronological order unless otherwise noted. It is to be understood that the terms so used are interchangeable under appropriate circumstances.

[0080] The terms "comprises", "comprising", "includes", "including", "has", "having", "contains", "containing", or any other variation thereof, are intended to cover a non-exclusive inclusion, for example, a product or a process that comprises a list of compositions or steps does not necessarily disclose only those compositions or steps but can include other compositions or steps not expressly listed or inherent to such product or process.

[0081] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software codes that can perform the functions described with such element.

[0082] In the embodiments of the present application, the display device 200 refers to a device with the ability of picture display and data processing. For example, the display device 200 includes but is not limited to a smart television, a mobile terminal, a computer, a monitor, an advertising screen, a wearable device, a virtual reality device, an augmented reality device, etc.

[0083] Figure 1 The schematic diagram of the operation scenario between the display device and the control device provided by some embodiments is shown. As shown in Figure 1 As shown in the middle, the user can operate the display device 200 through the touch operation, the mobile terminal 300 and the control device 100. The control device 100 is used to receive the operation instruction input by the user and convert the operation instruction into a control instruction that can be recognized and responded by the display device 200. For example, the control device 100 can be a remote controller, a stylus, a handle, etc.

[0084] The mobile terminal 300 can be used as a kind of control device to perform the human-computer interaction between the user and the display device 200. The mobile terminal 300 can also be used as a kind of communication device to establish a communication connection with the display device 200 and perform data interaction. In some embodiments, the mobile terminal 300 can install a software application with the display device 200, realize the connection communication through a network communication protocol, and achieve the purpose of one-to-one control operation and data communication. The mobile terminal 300 can also transmit the audio and video content displayed thereon to the display device 200 to realize the synchronous display function.

[0085] In some embodiments, the mobile terminal 300 or other electronic device can also simulate the function of the control device 100 by running an application program for controlling the display device 200.

[0086] As shown in Figure 1It is also shown that the display device 200 also communicates data with the server 400 through various communication modes. The display device 200 can be allowed to communicate through a local area network (LAN), a wireless local area network (WLAN), and other networks.

[0087] The display device 200 can provide a broadcast receiving television function, and can also provide an intelligent network television function with computer support function, including but not limited to, network television, smart television, Internet protocol television (IPTV), etc.

[0088] Figure 2 A hardware configuration block diagram of the display device in some embodiments is shown.

[0089] In some embodiments, the display device 200 can include at least one of a tuning demodulator 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface.

[0090] In some embodiments, the detector 230 is used to collect signals of external environment or external interaction. For example, the detector 230 includes a light receiver for collecting ambient light intensity; or the detector 230 includes an image collector such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or the detector 230 includes a sound collector such as a microphone, etc., for receiving external sound.

[0091] In some embodiments, the display 260 includes a display function component for presenting a picture, and a driving component for driving image display. The display 260 is used to receive image signals output from the controller 250 for display. For example, the display 260 can be used to display video content, image content, and components of a menu control interface, as well as user control UI interface, etc.

[0092] In some embodiments, the communication device 220 is a component for communicating with external devices or the server 400 according to various communication protocol types. The display device 200 can be provided with multiple communication devices 220 according to different supported communication modes. For example, when the display device 200 supports wireless network communication, the display device 200 can be provided with a communication device 220 containing WiFi function. When the display device 200 supports Bluetooth connection communication, the display device 200 needs to be provided with a communication device 220 containing Bluetooth function.

[0093] The communication device 220 can connect the display device 200 to the external device or the server 400 through a wired or wireless connection. The wired connection can connect the display device 200 to the external device through a data line, an interface, or the like. The wireless connection can connect the display device 200 to the external device through a wireless signal or a wireless network. The display device 200 can directly establish a connection relationship with the external device, or indirectly establish a connection relationship through a gateway, a router, a connection device, or the like.

[0094] In some embodiments, the controller 250 can include at least one of a central processor, a video processor, an audio processor, a graphics processor, a power supply processor, a first interface to an n-th interface for input / output, and the controller 250 controls the operation of the display device and responds to the user's operation by controlling various software control programs stored on the memory. The controller 250 controls the overall operation of the display device 200.

[0095] In some embodiments, the controller 250 and the tuner demodulator 210 can be located in different split devices, that is, the tuner demodulator 210 can also be in an external device of the main device where the controller 250 is located, such as an external set-top box, etc.

[0096] In some embodiments, the user can input a user command in a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the graphical user interface (GUI).

[0097] In some embodiments, the audio output device 270 can be a native speaker of the display device 200, or an audio output device connected to the display device 200. For the audio output device connected to the display device 200, the display device 200 can also be provided with an external audio output terminal, and the audio output device can be connected to the display device 200 through the external audio output terminal to output the sound of the display device 200.

[0098] In some embodiments, the user input interface 280 can be used to receive instructions from the user input.

[0099] In order to perform user interaction, in some embodiments, the display device 200 can run an operating system. The operating system is a computer program for managing and controlling hardware resources and software resources in the display device 200. The operating system can control the display device 200 to provide a user interface, for example, the operating system can directly control the display device 200 to provide a user interface, or can provide a user interface by running an application program. The operating system also allows the user to interact with the display device 200.

[0100] It should be noted that the operating system can be a native operating system based on a specific operating platform, a third-party operating system based on a specific operating platform, or an independent operating system specially developed for the display device 200.

[0101] The operating system can be divided into different modules or levels according to the implemented functions. Figure 3 A software configuration diagram in the display device 200 in some embodiments is shown. As shown, in some embodiments, the system is divided into four layers, from top to bottom, the Applications layer (referred to as the "application layer"), the Application Framework layer (referred to as the "framework layer"), the system library layer, and the kernel layer. Figure 3

[0102] In some embodiments, the application layer is used to provide services and interfaces for applications, so that the display device 200 can run the applications and interact with the user based on the applications. At least one application can be run in the application layer, which can be a window (Window) program, a system setting program, or a clock program, etc. provided by the operating system; or an application developed by a third-party developer. For example, it can include a browser application, a shortcut function application, etc. The browser application can access various web pages on the network, and the shortcut function application can provide a shortcut start of some functions of the display device, such as a bookmark shortcut display function, an automatic picture quality adjustment function, and an automatic sound effect adjustment function. In specific implementation, the application package in the application layer is not limited to the above examples.

[0103] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. The application framework layer includes some pre-defined functions. The application framework layer is equivalent to a processing center that decides which application in the application layer to act. The application can access the resources in the system and obtain the services of the system through the API interface in the execution.

[0104] As shown in FIG. 2B, in some embodiments, the system is divided into three layers, from top to bottom, the Applications layer (referred to as the "application layer"), the Application Framework layer (referred to as the "framework layer"), and the system library layer. Figure 3 ​As shown, the application framework layer in the embodiments of the present application includes a view system, managers, a content provider, etc., wherein the view system can design and implement the interface and interaction of the application program, and the view system includes lists, grids, text boxes, buttons, etc. The managers include at least one of the following modules: an activity manager for interacting with all activities running in the system; a location manager for providing system location services to system services or applications; a package manager for retrieving various information related to the application package currently installed on the device; a notification manager for controlling the display and clearing of notification messages; and a window manager for managing icons, windows, toolbars, wallpapers and desktop components on the user interface.

[0105] In some embodiments, the activity manager is used to manage the life cycle of each application program and the general navigation back function, such as controlling the exit, opening, back, etc. of the application program. The window manager is used to manage all window programs, such as obtaining the size of the display screen, determining whether there is a status bar, locking the screen, intercepting the screen, controlling the display window change, for example, reducing the display window, shaking the display, twisting the display, etc.

[0106] In some embodiments, the system runtime library layer can provide support for the framework layer. When the framework layer is used, the operating system runs the instruction library contained in the system runtime library layer, such as the C / C++ instruction library, to realize the functions to be realized by the framework layer.

[0107] In some embodiments, the kernel layer is a functional layer between the hardware and software of the display device 200. The kernel layer can realize functions such as hardware abstraction, multitasking, memory management, etc. For example, as shown, the kernel layer can be configured with a hardware driver, and the kernel layer contains at least one of the following drivers: an audio driver, a display driver, a Bluetooth driver, a camera driver, a WIFI driver, a USB driver, an HDMI driver, a sensor driver (such as a fingerprint sensor, a temperature sensor, a pressure sensor, etc.), and a power supply driver, etc. Figure 3

[0108] ​It should be noted that the above examples are only simple divisions of the operating system functions, and do not constitute a limitation on the specific operating system form of the display device 200 in the embodiments of the present application. Depending on the function of the display device 200, the type of operating system, and other factors, the number and specific types of levels included in the operating system can take other forms.

[0109] The display device 200 can have multiple functions, such as browsing web pages, playing media, entertainment games, screen projection, etc., thereby providing a variety of services to the user. The user can control the display device 200 to start a certain related application, thereby starting the corresponding function.

[0110] In some embodiments, when the user controls the display device 200 to start, the controller 250 can control the display 260 to display a user interface. The user interface can be a specific target image, such as various media obtained from a network signal source, including video, picture, and other content. The user interface can also be some pages obtained by the display device 200, including web pages provided by a browser, some UI interfaces of the display device 200, such as a system main interface, and various control interfaces of the application programs installed in the display device 200, etc.

[0111] Figure 4 A schematic diagram of a user interface in some embodiments is shown. As Figure 4 shown, the user interface includes a first navigation bar 400, a second navigation bar 410, a function bar 420, and a content display area 430. The function bar 420 includes multiple function controls such as "view record", "my collection", and "my application", etc. The user can control the display device 200 to display an application list interface by clicking the "my application" control. The application list interface includes application programs installed in the display device 200, i.e., functions supported by the display device 200. After receiving an application start instruction input by the user based on the application list interface, the display device 200 runs the corresponding application, so that the display device 200 supports the function of the application. It should be noted that the application installed in the display device 200 can be a system application or a third-party application. The user controls the display device 200 to implement the corresponding function of the application program by starting the application program.

[0112] Figure 5 A schematic diagram of an application list interface in some embodiments is shown. As Figure 5As shown, the application list interface includes three controls, namely, "cable TV", "network media", and "browser". The display device 200 implements different functions by detecting touch operations of the user. In response to a touch operation of the user on the "cable TV" control, the display device 200 can display a media channel interface to enable the user to select a media channel for playing. In response to a touch operation of the user on the "network media" control, the display device 200 can start a network media application to play various network media. In response to a touch operation of the user on the "browser" control, the display device 200 starts a browser application, and the user can access various web pages provided in the network through the browser application.

[0113] In some embodiments, the display device can display fixed content, such as image or text content. The image content can be a preset picture, such as a picture stored locally by the display device. The user can open a local picture library of the display device and control the display device to display a selected picture for viewing.

[0114] The text content can be content drawn by the display device based on information corresponding to the text. The text content can be text instructed by the user to be displayed by the display device, such as text drawn by the display device based on a function of an electronic whiteboard or artistic text.

[0115] The display device can also display image or text content based on a specific scenario, such as a screen saver scenario. When the user does not operate the display device for a long time, the display device can start a screen saver function to display a screen saver wallpaper. The screen saver wallpaper can be preset text content or picture content.

[0116] The display device can draw text based on text information of the text to be displayed. The text information can include position information of the text, font information, and drawing information. The position information indicates a position coordinate of the text in an interface displayed by the display device. The font information is used to define a font color and other styles of the text. The drawing information can be position information of a plurality of key points in the text font. The text content can be obtained by connecting the plurality of key points.

[0117] However, the information corresponding to the text defines a font color and other styles of the text. When the display device directly draws the text based on the text information, the drawn text has a fixed style, i.e., a style defined by the font information. The style of the text is relatively single and lacks artistic and innovative features, which can not attract the user's interest in viewing. Therefore, the display device displays poor text effects to the user, which affects the user's experience.

[0118] In some embodiments, to solve the above problems, the display device can be provided with a character drawing function. The display device can determine the serial number information of the plurality of contour points in the character according to the character information of the character to be displayed, and generate a contour line according to the line points adjacent in the serial number. Wherein, when the contour line is a curve, a division point is set in the contour line, and when the contour line is a straight line, no division point is set. The region end point is set through the end point and the division point of the contour line, and a plurality of character regions are generated according to the region end point, and the plurality of character regions and the entire character part are composed. The display device can draw a plurality of character regions of the target character to realize the drawing of the character. The character can be represented by a plurality of character regions, and different character regions are independent, so different font styles can be used to represent, improve the artistic and innovative nature of the character, increase the character effect, and ensure the user experience.

[0119] Figure 6 The interaction flowchart of the components of the display device in some embodiments is shown, including the following steps:

[0120] S601, in response to a character drawing instruction, obtaining character information of a target character; the character information includes serial number information of a plurality of contour points in the target character;

[0121] S602, generating a plurality of contour lines based on the serial number information; the contour line includes line points adjacent in the serial number, and the line point is a contour point located in the line body of the target character;

[0122] S603, when it is detected that the contour line is a curve, a division point is set in the contour line, and when it is detected that the contour line is a straight line, no division point is set in the contour line;

[0123] S604, obtaining the region end point of the target character, the region end point including the end point and the division point of the plurality of contour lines;

[0124] S605, generating a plurality of character regions of the target character based on the region end point; the character region includes a preset number of region end points, and different character regions do not overlap;

[0125] S606, drawing a plurality of character regions of the target character, the plurality of character regions corresponding to at least one font style.

[0126] In some embodiments, the display device 200 is provided with a text drawing function. For a text to be drawn, the text to be drawn is referred to as target text in the embodiments of the present application, and the display device 200 can draw the outline of the text in combination with the text information, but can not display the text according to the style such as color and font in the text information. The display device 200 can divide the text as a whole into a plurality of text regions, so as to draw each text region respectively. The plurality of text regions do not affect each other, and can be displayed by different styles to improve the artistic quality of the text.

[0127] The user can input an operation of starting the text drawing function to the display device 200 to send a text drawing instruction to the display device 200, so as to instruct the display device 200 to start the text drawing function.

[0128] In some embodiments, the operation of starting the text drawing function can be that the user directly inputs the text drawing instruction to the display device 200. In response to the text drawing instruction input by the user, the display device 200 can draw the target text.

[0129] The user can input the text drawing instruction to the display device 200 through a control device matched with the display device 200, such as a remote controller or a smart terminal. Taking the remote controller as an example, the remote controller can be pre-provided with a specified key corresponding to the text drawing function. The user can send the text drawing instruction to the display device 200 by operating the specified key of the remote controller. The correspondence between the text drawing instruction and the key of the remote controller is pre-bound in the actual application, for example, a special text drawing function key can be set in the remote controller. When the user touches the key, the remote controller can send the text drawing instruction to the display device 200. The remote controller can send the signal corresponding to the key to the display device 200 after encoding processing by sending a wireless signal, such as sending an infrared signal or a Bluetooth signal.

[0130] The display device 200 can detect the signal sent by the remote controller in real time and analyze the signal to obtain instruction information. After analyzing the text drawing instruction, the display device 200 can start the text drawing function. When the user touches the key or a return key again through the remote controller, the display device 200 can exit the text drawing function.

[0131] For a smart terminal such as a mobile phone, the text drawing instruction can also be sent to the display device 200. In the actual application, a control can be set in the mobile phone, and the user can control the mobile phone to send the text drawing instruction to the display device 200 through the control.

[0132] It should be noted that the display device 200 can enable the text drawing function in response to the text drawing instruction sent by the control device in the case of displaying any interface.

[0133] In some embodiments, the user can use the sound collector of the display device 200, such as a microphone, to send a text drawing instruction to the display device 200 in the form of voice input, such as the voice input "open the text drawing function", to control the display device 200 to start the text drawing function. The display device 200 can be provided with a smart voice system, and the smart voice system can recognize the voice of the user to extract the instruction content input by the user.

[0134] In some embodiments, the operation of the user inputting to start the text drawing function can be a starting operation applied by the user to the function entrance corresponding to the text drawing function of the display device 200.

[0135] The function entrance corresponding to the text drawing function can be in the form of a control, such as being set in the user interface displayed by the display device 200 in the form of a function icon. Figure 7 A schematic diagram of a user interface displayed by the display device in some embodiments is shown. As Figure 7 shown, the user interface displayed by the display device 200 includes a first navigation bar 701, a content display area 702, and a text drawing function control 703. Among them, the first navigation bar 701 displays the function types supported by the display device 200, such as channels, movies and television, games, etc. The content display area 702 can play media content, etc. The text drawing function control 703 is used to enable the text drawing function.

[0136] After detecting the clicking operation of the user on the text drawing function control 703, the display device 200 can start the text drawing function. It should be noted that the text drawing function control 703 can be located at a preset position of the user interface, such as the lower left corner, or can be located at other positions, such as the upper right corner, and the embodiments of the present application do not limit this.

[0137] In some embodiments, the function entrance corresponding to the text drawing function can also be set in the system setting interface of the display device 200. In response to the operation of the user starting the system setting, the display device 200 can display the system setting interface. Among them, the system setting interface can include a plurality of setting items of the display device 200.

[0138] Figure 8 A schematic diagram of the display device displaying the system setting interface in some embodiments is shown. As Figure 8As shown, the system setting interface of the display device 200 can include a plurality of setting items, such as a screen setting item, a sound setting item, a more function setting item, a network setting item, and a factory reset. After detecting a click operation of the user on the more function setting item, the display device 200 can display function controls corresponding to a plurality of supported functions, including a voice input control, a shutdown control, a restart control, a global search control, and a text drawing control. Each function control can be provided with an enable icon, which is used to indicate the enablement of the corresponding function. After detecting a click operation of the user on the enable icon in a certain function control, the display device 200 can enable the function corresponding to the function control.

[0139] The user can input an operation of starting the text drawing function to the display device 200, which can be a click operation on the enable icon in the text drawing function control. It should be noted that the content in the interface shown in FIG. 6 is only used as a schematic display and is not specifically limited. Figure 8 Figure 7 Figure 8 The content in the interface shown in FIG. 6 is only used as a schematic display and is not specifically limited.

[0140] In some embodiments, the display device 200 is provided with a text drawing application, which can have a text drawing function. Therefore, in response to a text drawing instruction, the controller 250 can start the text drawing application, the controller 250 can call a service corresponding to the text drawing application through a framework layer of the system of the display device 200, and start the text drawing application through the service, so that the text drawing application draws the target text.

[0141] In some embodiments, the display device 200 can enable the text drawing function in a specific scenario, such as a screen protection scenario.

[0142] The user can control the display device to start the screen protection function, for example, can instruct the display device to start the screen protection through the system setting interface of the display device. Alternatively, when detecting that the user has not operated for a long time, the display device can start the screen protection function. For example, the display device can be pre-set with a detection period, for example, one hour. After detecting a user instruction, the controller can control the timer set in the display device to start timing. If a new input instruction of the user is received within the detection period, the controller will not control the display device to start the screen protection function, and if the new input instruction of the user is not received at all, the controller can control the display device to start the screen protection function.

[0143] After starting the screen protection function, the controller can control the display to display a screen protection wallpaper, which can be preset content, such as a preset picture or text content, etc. The user can instruct the content type displayed by the display device when the screen protection function is started. Figure 9 ​​A content type selection interface of the screen protection function in some embodiments is shown. As Figure 9 shown, after the display device starts the screen protection function, the controller can control the display to display a content type selection interface of the screen protection function, which includes a picture mode control, a text mode control, and a confirm control.

[0144] In response to a selection operation of the text mode control by the user, it is considered that a text drawing instruction is received.

[0145] In some embodiments, in response to the text drawing instruction input by the user, the controller can obtain a text to be drawn, referred to as a target text in the embodiments of the present application. The target text can be a text set by the user, or a text set by the display device itself.

[0146] A text database can be provided in the display device, and a plurality of texts are pre-stored in the text database. In response to the text drawing instruction, the controller can obtain the target text from the text database. A text display quantity can be pre-set in the display device, for example, the text display quantity can be 4, and the controller can select 4 texts from the text database as the target text. The selection manner of the target text can use a random selection manner, or use a sequential selection manner according to the text order, which is not limited in the embodiments of the present application. For example, in response to the text drawing instruction, the controller can obtain a historical text displayed last time, and select a text after the historical text in the text database as the target text.

[0147] In some embodiments, the display device can guide the user to select the target text by himself.

[0148] The controller can control the display to display a text selection interface. The text selection interface is used to display a plurality of text controls. Figure 10 A schematic diagram of the text selection interface in some embodiments is shown. As Figure 10 shown, the text selection interface can include a prompt title, a plurality of text controls, and a confirm control. The prompt title is used to prompt the user to select a text, and can be "Please select the text to be drawn". The plurality of text controls can be arranged in the form of a list, and each text control displays a text. The text control can be in the form of a rectangular frame, and the text content is displayed inside the text control. The text content can be a text pre-stored in the text database.

[0149] The user can select a text to be drawn by the display device from the plurality of text controls. For example, the user can select a plurality of text controls and click the confirm control. The text controls selected by the user are referred to as target text controls in the embodiments of the present application, such as the A, B, C, and D text controls in Figure 10 .

[0150] In response to the click operation of the target text control by the user, the controller can determine the text corresponding to the target text control as the target text. After determining the target text, the controller can control the display device to draw the target text.

[0151] In some embodiments, in response to the text drawing instruction, the controller can obtain the target text, and can obtain text information of the target text. The target text can be a text pre-stored in a text database of the display device, and the text database can also store text information of each text.

[0152] The text information is used to indicate the drawing mode of the text, including point set information of the text. The point set information refers to a set of point information of a plurality of contour points of the text. The contour points are key points corresponding to the text, and the text can be composed of a plurality of contour points. The text shape can be drawn according to the contour points, and the text shape is the overall contour of the text, which is the basic form of the text information.

[0153] The contour points can include on-line points and off-line points. The on-line points are points in the text line, which can be points in a straight line or end points of the line. The off-line points are points outside the text line, which can be points near a curved line and can limit the bending degree of the curved line.

[0154] The point information of the contour points includes position information, flag information and serial number information of the contour points. The position information refers to coordinate information of the contour points, including horizontal coordinates and vertical coordinates. The flag information is used to represent the type of the contour points, i.e., whether the contour points are on-line points or off-line points. The serial number information can represent the position and arrangement of the contour points in the text. A plurality of contour points are each assigned a serial number, and the plurality of contour points are sequentially drawn and connected according to the serial numbers, so that the overall contour of the text can be obtained. Therefore, the serial number can represent the arrangement relationship of the contour points, and the contour points with adjacent serial numbers can form a text line.

[0155] Figure 11 A schematic diagram of a plurality of contour points of a text in some embodiments is shown. As shown in Figure 11 The text "Wan" includes 33 contour points, and the serial numbers are 0-32, respectively. The solid points represent on-line points, and the hollow points represent off-line points. The serial numbers of the solid points are 0, 2, 3, 5, 6, 8, 9, 11, 12, 14, 16, 18, 20, 22, 23, 24, 26, 28, 31, 32 and 34, respectively. The serial numbers of the hollow points are 1, 4, 7, 10, 13, 15, 17, 19, 21, 25, 27, 29, 30 and 33, respectively. There can be 0-2 hollow points between every two on-line points.

[0156] In some embodiments, the controller can obtain serial number information of a plurality of contour points of the target text.

[0157] The controller can generate a plurality of contour lines based on the serial number information. The contour lines can include contour points with adjacent serial numbers. The contour lines can be part of the overall contour of the text, and the complete line can be drawn by adjacent contour points. The controller can connect a plurality of contour points to form a plurality of contour lines, which can outline the contour of the text.

[0158] The controller can obtain the point types of the plurality of contour points based on the flag bits of the plurality of contour points. The point types include on-line points and off-line points. The on-line points and the off-line points can be identified by the flag bits, for example, the flag bits can be set to 0 and 1. When the flag bit is 0, it indicates that the contour point is an off-line point. When the flag bit is 1, it indicates that the contour point is an on-line point.

[0159] The controller can obtain a plurality of on-line point combinations based on the serial number information. The on-line point combination refers to a combination of two adjacent on-line points, and the serial numbers of the two on-line points are adjacent in all on-line points. For example, the serial numbers of 10 contour points are 0-9. The serial numbers of the on-line points are 0, 1, 3, 6, and 8, respectively, and the serial numbers of the off-line points are 2, 4, 5, 7, and 9, respectively. According to the serial numbers of all on-line points, the on-line point combinations (0, 1), (1, 3), (3, 6), (6, 8), and (8, 0) can be obtained, and there are a total of 5 on-line point combinations.

[0160] Since the contour line is part of the overall contour of the text, the on-line point is also located in the contour line, and the off-line point is located outside the contour line. When generating the contour line based on the contour points, the on-line point can be used as the end point of the line segment of the contour line, that is, the two end points of the contour line are on-line points. To ensure the effect of drawing the text, there can be only two on-line points in each contour line, that is, the on-line points only serve as the end points of the contour line and will not be in the middle part of the contour line. Each on-line point combination is the end point of a contour line.

[0161] Based on the serial number information of the contour points, the controller can obtain all the contour points between the on-line point combinations to obtain contour point combinations. It should be noted that although the off-line point is not located in the contour line, it can limit the drawing process of the contour line. The on-line point combination can include 0 to 2 off-line points, and the off-line point and the on-line point combination can jointly represent the line contour of the contour line. When there is no off-line point between the on-line point combinations, it indicates that there are only two on-line points in the contour line, and therefore the contour line can be a straight line. When there is an off-line point between the on-line point combinations, it indicates that the middle part of the contour line is limited by the off-line point, and the off-line point can be used as a curve control point of the contour line, and therefore the contour line can be a curve.

[0162] The contour point combination includes all the off-line points between the on-line point combinations and the off-line point combinations. Taking the serial numbers of the above 10 contour points as an example, the contour point combinations corresponding to the 5 on-line point combinations are (0, 1), (1, 2, 3), (3, 4, 5, 6), (6, 7, 8) and (8, 9, 0)

[0163] The controller can generate the contour line corresponding to the contour point combination. The overall contour of the text includes a plurality of contour lines. When the contour line is a straight line, the contour line includes the on-line points at both ends and does not include the off-line points in the middle. When the contour line is a curve, the contour line includes the on-line points at both ends and the off-line points in the middle. The controller can draw each contour line separately, and the overall contour of the target text is formed after the plurality of contour lines are connected.

[0164] In some embodiments, the controller can draw different contour lines according to the type of the contour line. The controller can first detect the type of the contour line. The controller can detect the contour point combination corresponding to the contour line. Whether the contour point combination includes the off-line points determines whether the contour line is a straight line or a curve.

[0165] If the contour point combination does not include the off-line points, it means that all the points in the contour point combination are on the line. Therefore, the contour line is a straight line. The controller can directly connect the on-line point combination to generate a line segment corresponding to the two on-line points, thereby obtaining the contour line.

[0166] If the contour point combination includes the off-line points, it means that the contour line is a curve. The controller can generate a curve by taking the on-line point combination as the end points and the off-line points in the contour point combination as the control points of the curve, thereby obtaining the contour line. If the contour point combination includes one off-line point, the controller can draw a second-order curve. If the contour point combination includes two off-line points, the controller can draw a third-order curve. In this way, the controller draws the curve by using the off-line points.

[0167] It should be noted that the on-line point combination includes two on-line points. Therefore, the controller can detect the number of contour points in the contour point combination. If the number of contour points is 2, it means that the contour point combination does not include the off-line points. If the number of contour points is greater than 2, it means that the contour point combination includes the off-line points.

[0168] In some embodiments, after obtaining the glyph outline of the target text, the controller can segment the text, so as to divide the text into multiple independent text regions. By drawing the multiple text regions respectively, the artistic effect of the text can be improved. It should be noted that after obtaining the basic outline of the text, the number of outline points in the outline can be large, which can result in complex and dense outline points, and is not conducive to text segmentation. Therefore, the controller can perform update processing, such as filtering, screening, and transformation, on the outline points. The controller can perform transformation processing on the glyph outline according to the updated point set.

[0169] Since the off-line points are located outside the text outline, the off-line points do not affect text segmentation. Therefore, the controller can delete all off-line points in the outline points.

[0170] In the text outline, the degree of change of the curve as a whole can be large. The controller can divide the curve into several parts, so as to realize the curve in the form of a polyline. The polyline can simplify the degree of change of the curve and can maintain the overall shape and outline of the curve, thereby realizing text segmentation.

[0171] For a curve outline, the controller can add multiple points to the curve, so as to divide the curve into a polyline through the points. The controller can detect the type of each outline.

[0172] When it is detected that the outline is a curve, the controller can set a division point in the outline. The division point can divide the curve into multiple small segments, so as to update the curve to a polyline. Each segment of the polyline can accurately fit the curve outline.

[0173] In addition, when it is detected that the outline is a straight line, the controller can not set a division point in the outline. The outline in the form of a line segment can remain in the original form.

[0174] In some embodiments, considering that the overall curvature degree of the curve form of the outline can be low, the degree of change of the curve is small, and therefore the division can not be performed.

[0175] When it is detected that the outline is a curve, the controller can calculate the curvature of the outline. The curvature is a physical quantity for describing the bending degree of the curve, and can quantify the bending degree of the outline. Each point in the curve can correspond to a curvature value. The controller can select several points in the outline, can equally divide the curve, for example, four equal divisions, and obtain the curvature values of the multiple equally divided points. The controller can determine the maximum curvature value as the curvature of the outline.

[0176] The controller can detect the relationship between the curvature of the outline and a curvature threshold. The display device can pre-set a curvature threshold, which is used to measure the critical value of the bending degree of the curve, so as to determine whether the curve needs to be divided.

[0177] If the curvature of the contour line is greater than the curvature threshold, indicating that the contour line has a significant bending feature, the controller can set a split point in the segment of the contour line. If the curvature of the contour line is less than or equal to the curvature threshold, indicating that the contour line has a small bending degree, the controller can not set a split point in the contour line.

[0178] In some embodiments, when the controller sets the split point in the contour line, the controller can first set a first number of split points in the contour line, which are referred to as candidate points in the embodiments of the present application. The candidate point controller can uniformly set a certain number of candidate points on the contour line, and the contour line can be equally divided by the candidate points. For example, the first number can be 1, and the controller sets a two-division point in the contour line, thereby dividing the contour line into two segments on average. Alternatively, the first number can be 2, and the controller sets two three-division points in the contour line, thereby dividing the contour line into three segments on average. The first number can be 1 when the candidate points are first set in the contour line.

[0179] The controller can divide the contour line into a plurality of continuous candidate lines based on the candidate points and the end points of the contour line. Each candidate line is bounded by two adjacent candidate points or one candidate point and one end point. Taking the first number as 1 as an example, the contour line includes two end points and one candidate point, and the three points can divide the contour line into two continuous lines, which are referred to as candidate lines in the embodiments of the present application.

[0180] The controller can calculate the inclination angle of the candidate line. The inclination angle refers to the internal angle of a right-angled triangle with the candidate line as the hypotenuse.

[0181] The controller can obtain the coordinates of the two end points of the candidate line, including the horizontal coordinates and the vertical coordinates of the end points. It should be noted that the end points of the candidate line can be line points in the contour points or candidate points in the form of division points in the contour line. The coordinates of the line points can be directly determined by the point information, i.e., the position information of the line points. The coordinates of the division points in the contour line can be calculated by the path formula of the curve. Since the contour line is a curve, the controller can use the Bezier curve formula to calculate the coordinates of the division points in the curve.

[0182] The controller can calculate the lengths of the two right-angled sides of the right-angled triangle with the candidate line as the hypotenuse. The coordinates of the two end points of the candidate line are represented as (x1, y1) and (x2, y2).

[0183] The controller can calculate the width of the candidate line based on the horizontal coordinates of the two end points, and calculate the height of the candidate line based on the vertical coordinates of the two end points. The width of the candidate line is the length of the horizontal right-angled side of the right-angled triangle, which is obtained by calculating the difference between the horizontal coordinates of the two end points. The height of the candidate line is the length of the vertical right-angled side of the right-angled triangle, which is obtained by calculating the difference between the vertical coordinates of the two end points.Figure 12 A schematic diagram of candidate points in a contour line in some embodiments is shown. As shown, the end points of the contour line in the form of a curve are P1 and P2. The controller sets a candidate point H1 in the contour line, dividing the contour line into candidate lines P1H1 and H1P2. The controller can calculate the angle of inclination of the candidate line P1H1, and the angle of inclination of the candidate line H1P2. Figure 12

[0184] Taking the candidate line P1H1 as an example, the coordinates of the two end points are P1(x1, y1) and H1(x2, y2). The candidate line P1H1 is a right triangle with the hypotenuse being J1, and the candidate line H1P2 is a right triangle with the hypotenuse being J2.

[0185] The width of the right triangle J1 can be represented as dx1=x2-x1, and the height can be represented as dy1=y2-y1.

[0186] The controller can calculate the arctangent value based on the height and the width, and determine the arctangent value as the angle of inclination of the candidate line. The arctangent value is the angle of inclination, which can be represented as angle1=arctan(dy1 / dx1). The controller can calculate the ratio of the height and the width, and take the arctangent value of the ratio to obtain the angle value of the angle of inclination.

[0187] In some embodiments, the controller can detect the angles of inclination of multiple candidate lines in the contour line. In the embodiments of the present application, two consecutive candidate lines are referred to as a combination of adjacent candidate lines.

[0188] The controller can detect the angle difference of the angle of inclination of each combination of adjacent candidate lines, which is referred to as a first angle difference in the embodiments of the present application. For example, when there are two candidate lines in the contour line, the controller can calculate one first angle difference; when there are three candidate lines in the contour line, the controller can divide the three candidate lines into two combinations of adjacent candidate lines, and calculate two first angle differences of the two combinations of adjacent candidate lines.

[0189] Based on detecting that the first angle difference of the angle of inclination of all combinations of adjacent candidate lines is less than or equal to a first angle threshold, i.e., the first angle difference of the angle of inclination of each two consecutive candidate lines is less than or equal to the first angle threshold, the controller can determine the first number of candidate points as the segmentation points of the contour line. The first angle threshold can be set to 20 degrees.

[0190] If the first angle difference is less than or equal to the first angle threshold, it is considered that the degree of change in inclination between the two candidate lines is small. Therefore, when the first angle difference of the angle of inclination of each two adjacent candidate lines is within the first angle threshold, it is considered that the degree of change in inclination of multiple candidate lines in the contour line is small, and the degree of continuous change of multiple candidate lines is relatively gentle, so the candidate points can be determined as segmentation points. ​

[0191] In some embodiments, if the first angle difference of the inclination angles of the adjacent candidate line combination is greater than the first angle threshold, i.e., the first angle difference of the inclination angles of the two continuous candidate lines is greater than the first angle threshold, it is proved that the inclination degree between the two continuous candidate lines in the contour line changes greatly, the continuous change degree of the plurality of candidate lines has a mutation condition, and is not a gentle condition, and therefore the current candidate point cannot be determined as a segmentation point.

[0192] The controller can reset the candidate points. The controller can update the originally set first quantity to a second quantity. The second quantity is greater than the originally set first quantity. For example, when the originally set first quantity is 1, the second quantity can be 2, and the controller updates the first quantity to 2.

[0193] The controller can set the second quantity of candidate points in the contour line, and the controller can continue to detect new candidate points until the candidate points can be used as segmentation points of the contour line.

[0194] The controller can divide the contour line into a plurality of continuous candidate lines based on the second quantity of candidate points and the end points of the contour line, and calculate the inclination angles of the candidate lines.

[0195] Based on detecting that the first angle difference of the inclination angles of all adjacent candidate line combinations is less than or equal to the first angle threshold, the controller can determine the second quantity of candidate points as the segmentation points of the contour line.

[0196] In some embodiments, after setting the segmentation points for the contour line in the form of a curve, the controller can obtain the region end points of the target text. The region end points can be used as the vertices of the text regions after segmentation of the target text, and limit the boundaries of the text regions. For example, the text regions can be set as quadrilaterals, and each text region can have four region end points. The region end points can include the end points and the segmentation points of the plurality of contour lines, i.e., the region end points are selected from the end points and the segmentation points of the contour lines.

[0197] It should be noted that for the contour point in the form of a line point, it is the common end point of two continuous contour lines. The change degree of the two continuous contour lines can be small, and therefore the common end point can be deleted as a text region. Therefore, the controller can detect whether each line point needs to be deleted.

[0198] The controller can calculate the inclination angles of the plurality of contour lines.

[0199] The controller can calculate the angle difference of the inclination angles of each two adjacent contour lines, which is referred to as a second angle difference in the embodiments of the present application. The common end point of each two adjacent contour lines is a line point. A second angle threshold can be preset in the display device to measure the critical value of the change degree of the two contour lines.

[0200] If the second angle difference is less than or equal to the second angle threshold, the controller may retain the common endpoint of the two adjacent contour lines. If the second angle difference is greater than the second angle threshold, the controller may delete the common endpoint of the two adjacent contour lines.

[0201] The controller may determine the retained common endpoints and the division points of the plurality of contour lines as region endpoints.

[0202] Figure 13 Schematic diagram showing the region endpoints of target text in some embodiments. Figure 13 As shown, for Figure 11 For the target character "万" (wan), all off-line points can be deleted, and the on-line points can be filtered to delete points 2, 3, 8, 22, and 32. In the target character, segmentation points 35, 36, and 37 can be generated. The retained on-line points and the newly generated segmentation points constitute the region endpoints of the target character.

[0203] In some embodiments, the controller can generate multiple text regions of the target text based on the region endpoints. Each text region includes a preset number of region endpoints, and the multiple region endpoints form a closed graphic area, and different text regions do not overlap. The text region can be set to a preset shape, such as a quadrilateral or a triangle. When the text region is set to a quadrilateral, it can have four region endpoints. Multiple text regions are arranged continuously and together constitute the target text, so there is no overlapping area between different text regions.

[0204] It should be noted that region endpoints are used as vertices of the text region. However, given the diversity of text, some text regions may contain vertices of other text regions within their lines. Therefore, when dividing the target text into multiple text regions, the vertices of the text regions are used as region endpoints, and multiple text regions do not overlap, forming a complete target text.

[0205] by Figure 13 Taking the target character "万" shown as an example, points 0, 5, 6, and 34 can form a character area; points 9, 11, 37, and 31 can form a character area; points 11, 12, 23, and 24 can form a character area; points 12, 14, 20, and 23 can form a character area; points 14, 16, 18, and 20 can form a character area; points 24, 35, 36, and 37 can form a character area; and points 35, 26, 28, and 36 can form a character area.

[0206] In some embodiments, the controller may draw multiple text regions of the target text. Different text regions may have different font styles, such as different colors, shadow effects, and other font styles.

[0207] The plurality of character regions present the complete target character.

[0208] The embodiment of the present application further provides a character drawing method, which is applied to a display device, and the method comprises the following steps:

[0209] In step S601, in response to a character drawing instruction, character information of a target character is acquired; the character information comprises serial number information of a plurality of contour points in the target character;

[0210] In step S602, a plurality of contour lines are generated based on the serial number information; the contour line comprises on-line points with adjacent serial numbers, and the on-line points are contour points in a line body of the target character;

[0211] In step S603, when it is detected that the contour line is a curve, a split point is arranged in the contour line, and when it is detected that the contour line is a straight line, no split point is arranged in the contour line;

[0212] In step S604, region end points of the target character are acquired, and the region end points comprise end points and split points of the plurality of contour lines;

[0213] In step S605, a plurality of character regions of the target character are generated based on the region end points; the character region comprises a preset number of region end points, and different character regions do not overlap;

[0214] In step S606, the plurality of character regions of the target character are drawn, and the plurality of character regions correspond to at least one font style.

[0215] The same and similar parts among various embodiments in the present specification can be referred to each other, and details are not described herein.

[0216] Those skilled in the art can clearly understand that the technology in the embodiments of the present application can be realized by means of software and necessary general hardware platforms. Based on such understanding, the technical solutions in the embodiments of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the method of various embodiments or some parts of the embodiments of the present application.

[0217] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit the present application; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can still be modified, or some or all of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

[0218] The foregoing description has been presented for the purpose of illustration and description. It is not intended to be exhaustive or to limit the embodiments to the precise forms disclosed. Modifications and variations are possible in light of the above teachings or can be acquired from practice of the embodiments. The described embodiments were chosen and described in order to explain the principles of the embodiments and its practical application and to enable others skilled in the art to best use the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.

Claims

1. A display device, characterized in that: include: monitor; The controller is configured as: In response to a text drawing instruction, obtaining text information of a target text; the text information includes sequence number information of a plurality of contour points in the target text; Generate a plurality of contour lines based on the serial number information; the contour lines include on-line points with adjacent serial numbers, and the on-line points are contour points located in the line body of the target text; When the contour line is detected to be a curve, a segmentation point is set in the contour line, and when the contour line is detected to be a straight line, no segmentation point is set in the contour line; Acquire the region endpoints of the target text, wherein the region endpoints include the endpoints and segmentation points of the plurality of contour lines; generating a plurality of text regions of the target text based on the region endpoints; The text area includes a preset number of area endpoints, and different text areas do not overlap; Draw a plurality of text areas of the target text, wherein the plurality of text areas correspond to at least one font style.

2. The display device according to claim 1, wherein The text information further includes flags of multiple contour points; the controller generates multiple contour lines based on the sequence number information, and is specifically configured as follows: Obtaining point types of the plurality of contour points based on flag bits of the plurality of contour points; the point types include in-line points and out-line points; the out-line points are contour points located outside the line of the target text; Acquire multiple on-line point combinations based on the sequence number information; the off-line point combination includes two on-line points with adjacent sequence numbers; Acquire a contour point combination based on the sequence number information, where the contour point combination includes the on-line point combination and all off-line points between the on-line point combinations; Generate a contour line corresponding to the contour point combination.

3. The display device according to claim 2, wherein The controller generates a contour line corresponding to the contour point combination, and is specifically configured to: detecting the contour point combination; If the contour point combination does not include any off-line points, a line segment is generated with the on-line point combination as an endpoint to obtain a contour line; If the contour point combination includes off-line points, the on-line point combination is used as the endpoint and the off-line points in the contour point combination are used as the curve control points to generate a curve and obtain a contour line.

4. The display device according to claim 1, wherein The controller sets a segmentation point in the contour line when detecting that the contour line is a curve, and is specifically configured to: calculating the curvature of the contour line; If the curvature of the contour line is greater than a curvature threshold, a segmentation point is set in the contour line.

5. The display device according to claim 1, wherein The controller sets a segmentation point in the contour line, and is specifically configured to: Setting a first number of candidate points in the contour line; Dividing the contour line into a plurality of continuous candidate lines based on the candidate points and the endpoints of the contour line; Calculating the inclination angle of the candidate line; Based on detecting that the first angle differences of the inclination angles of all adjacent candidate line combinations are less than or equal to a first angle threshold, the first number of candidate points are determined as segmentation points of the contour line; and the adjacent candidate lines are combined into two continuous candidate lines.

6. The display device according to claim 5, wherein: After calculating the inclination angle of the candidate line, the controller is further configured to: Based on detecting that a first angle difference between tilt angles of adjacent candidate line combinations is greater than the first angle threshold, updating the first number to a second number, where the second number is greater than the first number; setting a second number of candidate points in the contour line; dividing the contour line into a plurality of continuous candidate lines based on the second number of candidate points and endpoints of the contour line; Calculating the inclination angle of the candidate line; Based on detecting that the first angle differences of the inclination angles of all adjacent candidate line combinations are less than or equal to a first angle threshold, the second number of candidate points are determined as segmentation points of the contour line.

7. The display device according to claim 5, wherein: The controller calculates the inclination angle of the candidate line, and is specifically configured to: Obtaining the coordinates of the two endpoints of the candidate line; Calculating the width of the candidate line based on the abscissas of the two endpoints, and calculating the height of the candidate line based on the ordinates of the two endpoints; An inverse tangent value is calculated based on the height of the candidate line and the width of the candidate line, and the inverse tangent value is determined as the inclination angle of the candidate line.

8. The display device according to claim 1, wherein The controller executes the acquisition of region endpoints, which is specifically configured as follows: calculating the inclination angles of the plurality of contour lines; Calculate the second angle difference of the inclination angles of every two adjacent contour lines; If the second angle difference is less than or equal to a second angle threshold, retaining the common endpoints shared by the adjacent contour lines; If the second angle difference is greater than the second angle threshold, deleting the common endpoints shared by the adjacent contour lines; The retained common endpoints and the segmentation points of the plurality of contour lines are determined as region endpoints.

9. The display device according to claim 1, wherein Before the controller executes the acquisition of text information of the target text, the controller is further configured to: Controlling the display to display a text selection interface; the text selection interface is used to display multiple text controls; In response to a user clicking operation on a target text control, the text corresponding to the target text control is determined as the target text.

10. A method for drawing text, characterized in that: Applied to the display device according to any one of claims 1 to 9, the method comprises: In response to a text drawing instruction, obtaining text information of a target text; the text information includes sequence number information of a plurality of contour points in the target text; Generate a plurality of contour lines based on the serial number information; the contour lines include on-line points with adjacent serial numbers, and the on-line points are contour points located in the line body of the target text; When the contour line is detected to be a curve, a segmentation point is set in the contour line, and when the contour line is detected to be a straight line, no segmentation point is set in the contour line; Acquire the region endpoints of the target text, wherein the region endpoints include the endpoints and segmentation points of the plurality of contour lines; Generating a plurality of text regions of the target text based on the region endpoints; the text regions include a preset number of region endpoints, and different text regions do not overlap; Draw a plurality of text areas of the target text, wherein the plurality of text areas correspond to at least one font style.