A display device and a multi-layer overlay method

By interpolating the touch trajectory pattern in the display device, adjusting its resolution to the resolution of the background pattern, and overlaying the display, it solves the problem of poor display effects and jaggedness when multiple layers are superimposed, and improves real-time Display quality.

CN115243094BActive Publication Date: 2024-10-01HISENSE VISUAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210821867.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-22
Publication Date
2024-10-01
Estimated Expiration
2040-12-22

AI Technical Summary

Technical Problem

The existing technology cannot flexibly change the transparency ratio of certain pixels of the layer when overlaying multiple layers, resulting in poor display effects. Especially when the layer resolutions are different, it cannot be accurately overlaid, and the interpolation algorithm causes the edges of the touch track patterns to appear. Jagged or black edges.

Method used

By obtaining the touch track pattern of the first layer and the background pattern of the second layer in the display device, an interpolation operation is performed to increase the resolution of the touch track pattern to the resolution of the background pattern, and overlay display is performed. Mitigates the effect of transparency on edge interpolation results.

Benefits of technology

It improves the real-time display effect when overlaying multiple layers, avoids jagged or black border problems, and improves the display quality of touch interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115243094B_ABST
    Figure CN115243094B_ABST
Patent Text Reader

Abstract

The present application provides a display device and a multi-layer overlay method, which can detect the touch track input by the user through the touch component while the display displays the user interface, and present the touch track pattern in real time in the first layer. After obtaining the touch track pattern, the touch track pattern in the first layer can also be interpolated according to the background pattern in the second layer to improve the resolution of the touch track pattern, and finally the converted pattern after the interpolation operation is superimposed with the background pattern and displayed in real time through the display. The display device can perform an interpolation operation on the touch track pattern according to the background pattern, which can alleviate the influence of the transparency of the first layer on the result of the touch track pattern edge interpolation algorithm, alleviate the problem of jagged edges or black edges when the touch track pattern is superimposed, and improve the real-time display effect.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of a domestic application, application number: 202011528031.6, application date: 2020-12-22, invention name: A display device and a multi-layer overlay method. Technical Field

[0002] The present application relates to the technical field of touch-controlled televisions, and in particular to a display device and a multi-layer overlay method. Background Art

[0003] Smart TV is a TV product based on Internet application technology, with an open operating system and chips. Smart TV has an open application platform and can realize two-way human-computer interaction. Smart TV integrates multiple functions such as audio and video, entertainment, and data to meet the diverse and personalized needs of users. There are many ways to interact with smart TVs. For example, touch components can be integrated on the display screen to form a touch TV to meet the touch interaction of users.

[0004] Users can input various types of interactive instructions to the touch TV through touch operations. For example, users can input touch action trajectories on the display screen, and the touch TV will display the corresponding trajectory images in real time based on the touch action trajectories. In the process of displaying the trajectory, the touch TV can display it in real time by superimposing multiple layers. The commonly used superposition method is to set the transparency of different layers respectively, and then display the content in different layers by adjusting the transparency of the layers. Usually, multiple layers share the same transparency. If you want to change the transparency processing of a certain layer during superposition, you generally need to change the transparency ratio of the entire layer at the same time.

[0005] It can be seen that when multiple layers are superimposed, the transparency ratio of certain pixels in the layer cannot be flexibly changed. Moreover, when the resolutions of the layers are different, they cannot be accurately superimposed. In order to accurately superimpose layers and improve the display effect, the low-resolution layer image can be upgraded to high resolution through interpolation, and then superimposed. When the elements of the same layer have different transparencies, using interpolation and other methods to increase the resolution will make the color of the boundary where the transparency connects different, affecting the final display effect. For example, when drawing lines, because the interpolation algorithm needs to interpolate the line color and the transparent color, jagged edges or black edges appear on the edge of the line pattern, affecting the display effect. Summary of the invention

[0006] The present application provides a display device and a multi-layer overlay method to solve the problem of poor final display effect caused by an interpolation algorithm in a traditional overlay method.

[0007] In a first aspect, the present application provides a display device, comprising: a display, a touch component, and a controller. The display is configured to display a user interface, the touch component is configured to detect a touch track input by a user, and the controller is configured to execute the following program steps:

[0008] Acquire a touch track pattern in a first layer, and acquire a background pattern in a second layer, where the second layer is a layer below the first layer;

[0009] According to the background pattern, an interpolation operation is performed on the touch track pattern to generate a conversion pattern, wherein a resolution of the conversion pattern is equal to a resolution of the background pattern;

[0010] The conversion pattern and the background pattern are superimposed to control the display to display the superposition result in real time.

[0011] It can be seen from the above technical solutions that the display device provided in the first aspect of the present application can detect the touch track input by the user through the touch component while the display displays the user interface, and present the touch track pattern in real time in the first layer. After obtaining the touch track pattern, the touch track pattern in the first layer can also be interpolated according to the background pattern in the second layer to improve the resolution of the touch track pattern, and finally the converted pattern after the interpolation operation is superimposed with the background pattern, and displayed in real time through the display. The display device can perform an interpolation operation on the touch track pattern according to the background pattern, which can alleviate the influence of the transparency of the first layer on the results of the touch track pattern edge interpolation algorithm, alleviate the problem of jagged edges or black edges when the touch track patterns are superimposed, and improve the real-time display effect.

[0012] In a second aspect, the present application further provides a multi-layer overlay method, which is applied to a display device, wherein the display device includes a display, a touch component, and a controller, wherein the touch component is configured to detect a touch track input by a user, and the multi-layer overlay method includes:

[0013] Acquire a touch track pattern in a first layer, and acquire a background pattern in a second layer, where the second layer is a layer below the first layer;

[0014] According to the background pattern, an interpolation operation is performed on the touch track pattern to generate a conversion pattern, wherein a resolution of the conversion pattern is equal to a resolution of the background pattern;

[0015] The conversion pattern and the background pattern are superimposed to control the display to display the superposition result in real time.

[0016] It can be seen from the above technical solutions that the multi-layer overlay method provided in the second aspect of the present application can be configured in the controller of the display device, and is used to display the touch track pattern in real time by overlaying multiple layers when the user inputs the touch track. The method can perform interpolation operations on the touch track pattern according to the background pattern, which can alleviate the influence of the transparency of the first layer on the results of the touch track pattern edge interpolation algorithm, solve the problem of jagged edges or black edges when the touch track pattern is overlaid, and improve the real-time display effect.

[0017] In a third aspect, the present application further provides a multi-layer overlay method, which is applied to a display device, wherein the display device includes a display, a touch component, and a controller, wherein the touch component is configured to detect a touch track input by a user, and the multi-layer overlay method includes:

[0018] Controlling the display to display a drawing interface, the drawing interface comprising a first layer and a second layer, the second layer being a layer located below the first layer;

[0019] In response to a user's touch action, a conversion pattern is displayed on the first layer, and a background pattern is displayed on the second layer, wherein the conversion pattern is generated by performing an interpolation operation on the touch track pattern, and a resolution of the conversion pattern is equal to a resolution of the background pattern;

[0020] The display is controlled to display a superimposed pattern in real time, wherein the superimposed pattern is obtained by superimposing a conversion pattern and the background pattern.

[0021] It can be seen from the above technical scheme that the multi-layer overlay method provided in the third aspect of the present application can control the display to display the drawing interface while the user is performing a demonstration action, and display the conversion pattern and the background pattern respectively through the first layer and the second layer of the drawing interface, and overlay and display the patterns in the first layer and the second layer in real time to alleviate the influence of the transparency of the first layer on the results of the touch track pattern edge interpolation algorithm, solve the problem of jagged edges or black edges when the touch track patterns are superimposed, and improve the real-time display effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0023] Figure 1 A schematic diagram of an operation scenario between a display device and a control device in an embodiment of the present application;

[0024] Figure 2This is a hardware configuration block diagram of a display device in an embodiment of the present application;

[0025] Figure 3 This is a hardware configuration block diagram of the control device in the embodiment of the present application;

[0026] Figure 4 A schematic diagram of the software configuration of the display device in the embodiment of the present application;

[0027] Figure 5 This is a schematic diagram of multiple layers of a display device in an embodiment of the present application;

[0028] Figure 6 This is a schematic diagram of the multi-layer overlay display effect in the embodiment of the present application;

[0029] Figure 7 This is a schematic diagram of the superposition effect of the interpolation operation based on the background pattern in the embodiment of the present application;

[0030] Figure 8 This is a schematic diagram of the process of the multi-layer overlay method in the embodiment of the present application;

[0031] Fig. 9 This is a schematic diagram of the superposition effect of the second layer and the third layer in the embodiment of the present application;

[0032] Fig.10 This is a schematic diagram of the interpolation effect of the second layer in the embodiment of the present application;

[0033] Fig.11 This is a schematic diagram of the superposition effect of a transparent or semi-transparent second layer in an embodiment of the present application;

[0034] Fig.12 This is a schematic diagram of the top display overlay effect in the embodiment of the present application. DETAILED DESCRIPTION

[0035] In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.

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

[0037] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.

[0038] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0039] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0040] Figure 1 Schematic diagram of a usage scenario of a display device according to an embodiment. Figure 1 As shown, the display device 200 also performs data communication with the server 400 , and the user can operate the display device 200 through the smart device 300 or the control apparatus 100 .

[0041] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and at least one of other short-range communication methods, to control the display device 200 wirelessly or wired. The user may control the display device 200 by inputting user commands through at least one of buttons on the remote controller, voice input, and control panel input.

[0042] In some embodiments, the smart device 300 may include any one of a mobile terminal, a tablet computer, a computer, a laptop computer, an AR / VR device, etc.

[0043] In some embodiments, the smart device 300 may also be used to control the display device 200. For example, the display device 200 may be controlled using an application running on the smart device.

[0044] In some embodiments, the smart device 300 and the display device may also be used to communicate data.

[0045] In some embodiments, the display device 200 can also be controlled in a manner other than the control device 100 and the smart device 300. For example, the user's voice command control can be directly received through a module for obtaining voice commands configured inside the display device 200, or the user's voice command control can be received through a voice control device set outside the display device 200.

[0046] In some embodiments, the display device 200 also communicates data with the server 400. The display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactions to the display device 200. The server 400 may be one cluster or multiple clusters, and may include one or more types of servers.

[0047] In some embodiments, the software steps executed by a step execution subject can be migrated to another step execution subject in data communication with it as needed for execution. Exemplarily, the software steps executed by a server can be migrated to a display device in data communication with it as needed for execution, and vice versa.

[0048] Figure 2 Schematically shows a block diagram of a configuration of the control device 100 according to an exemplary embodiment. Figure 2 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive input operation instructions from the user, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, playing the role of an interactive intermediary between the user and the display device 200.

[0049] In some embodiments, the communication interface 130 is used for communicating with the outside, and includes at least one of a WIFI chip, a Bluetooth module, NFC or an alternative module.

[0050] In some embodiments, the user input / output interface 140 includes at least one of a microphone, a touch pad, a sensor, a button, or alternative modules.

[0051] Figure 3 A hardware configuration block diagram of a display device 200 according to an exemplary embodiment is shown.

[0052] In some embodiments, the display apparatus 200 includes at least one of a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.

[0053] In some embodiments, the controller includes a central processing unit, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output.

[0054] In some embodiments, the display 260 includes a display screen component for presenting images, and a driving component for driving image display, for receiving image signals output from a controller, and for displaying video content, image content, and a menu control interface component and a user control UI interface.

[0055] In some embodiments, the display 260 may be at least one of a liquid crystal display, an OLED display, and a projection display, and may also be a projection device and a projection screen.

[0056] In some embodiments, the tuner-demodulator 210 receives broadcast television signals via wired or wireless reception, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.

[0057] In some embodiments, the communicator 220 is a component for communicating with an external device or server according to various communication protocol types. For example, the communicator may include at least one of a Wifi module, a Bluetooth module, a wired Ethernet module, and other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The display device 200 can establish transmission and reception of control signals and data signals with the control device 100 or the server 400 through the communicator 220.

[0058] In some embodiments, the detector 230 is used to collect signals of the external environment or external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; 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 sounds.

[0059] In some embodiments, the external device interface 240 may include, but is not limited to, any one or more of the following: a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It may also be a composite input / output interface formed by the above multiple interfaces.

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

[0061] In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200. For example: In response to receiving a user command for selecting a UI object to be displayed on the display 260, the controller 250 can perform operations related to the object selected by the user command.

[0062] In some embodiments, the object may be any one of the selectable objects, such as a hyperlink, an icon or other operable controls. Operations related to the selected object include: displaying a page, document, image, etc. connected to the hyperlink, or executing a program corresponding to the icon.

[0063] In some embodiments, the controller includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), RAM Random Access Memory (RAM), ROM (Read-Only Memory, ROM), a first interface to an nth interface for input / output, a communication bus (Bus), etc.

[0064] CPU processor. Used to execute operating system and application instructions stored in the memory, and to execute various applications, data and content according to various interactive instructions received from external input, so as to finally display and play various audio and video content. CPU processor may include multiple processors. For example, it includes a main processor and one or more sub-processors.

[0065] In some embodiments, the graphics processor is used to generate various graphic objects, such as at least one of icons, operation menus, and user input command display graphics. The graphics processor includes an operator, which performs operations by receiving various interactive instructions input by the user and displays various objects according to display attributes; and a renderer, which renders various objects obtained based on the operator, and the rendered objects are used to be displayed on the display.

[0066] In some embodiments, the video processor is used to receive an external video signal and perform at least one of the following video processing operations, such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image synthesis, according to a standard codec protocol of the input signal, to obtain a signal that can be directly displayed or played on the display device 200.

[0067] In some embodiments, the video processor includes at least one of a demultiplexing module, a video decoding module, an image synthesis module, a frame rate conversion module, and a display formatting module. The demultiplexing module is used to demultiplex the input audio and video data stream. The video decoding module is used to process the demultiplexed video signal, including decoding and scaling. The image synthesis module, such as an image synthesizer, is used to superimpose and mix the GUI signal generated by the graphics generator according to the user input or itself with the scaled video image to generate an image signal for display. The frame rate conversion module is used to convert the input video frame rate. The display formatting module is used to receive the video output signal after frame rate conversion and change the signal to conform to the display format signal, such as outputting an RGB data signal.

[0068] In some embodiments, the audio processor is used to receive an external audio signal, perform decompression and decoding according to a standard codec protocol of the input signal, and perform at least one of noise reduction, digital-to-analog conversion, and amplification processing to obtain a sound signal that can be played in a speaker.

[0069] In some embodiments, the user may input a user command through 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). Alternatively, the user may input a user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through a sensor.

[0070] In some embodiments, "user interface" is a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. A common form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be an interface element such as an icon, window, or control displayed on a display screen of an electronic device, wherein a control may include at least one of icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other visual interface elements.

[0071] In some embodiments, the user interface 280 is an interface that can be used to receive control input (such as a physical button on the display device body, or other interfaces).

[0072] In some embodiments, the system of the display device may include a kernel, a command parser (shell), a file system, and an application. The kernel, shell, and file system together form the basic operating system structure, which allows users to manage files, run programs, and use the system. After power-on, the kernel starts, activates the kernel space, abstracts the hardware, initializes hardware parameters, etc., runs and maintains virtual memory, schedulers, signals, and inter-process communication (IPC). After the kernel starts, the shell and user applications are loaded. After startup, the application is compiled into machine code to form a process.

[0073] See also Figure 4 In some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer"), and the kernel layer.

[0074] In some embodiments, at least one application is running in the application layer, and these applications can be window programs, system settings programs, clock programs, etc. provided by the operating system, or applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.

[0075] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Through the API interface, applications can access system resources and obtain system services during execution.

[0076] like Figure 4As shown, in the embodiment of the present application, the application framework layer includes managers, content providers, etc., wherein the manager includes at least one of the following modules: an activity manager (ActivityManager) is used to interact with all activities running in the system; a location manager (Location Manager) is used to provide system services or applications with access to system location services; a package manager (Package Manager) is used to retrieve various information related to the application package currently installed on the device; a notification manager (NotificationManager) is used to control the display and clearing of notification messages; a window manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers, and desktop components on the user interface.

[0077] In some embodiments, the activity manager is used to manage the life cycle of each application and the common navigation back function, such as controlling the exit, opening, and back of the application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling the display window changes (for example, reducing the display window, shaking the display, distorting the display, etc.).

[0078] In some embodiments, the system runtime layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system will run the C / C++ library contained in the system runtime layer to implement the functions to be implemented by the framework layer.

[0079] In some embodiments, the kernel layer is a layer between hardware and software. Figure 4 As shown, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.

[0080] Based on the above display device 200, the display device 200 can support touch interaction function by adding a touch component 276. Generally, the touch component 276 can form a touch screen together with the display 260. On the touch screen, the user can input different control instructions through touch operations. For example, the user can input touch instructions such as click, slide, long press, double click, etc. Different touch instructions can represent different control functions.

[0081] In order to realize the above-mentioned different touch actions, the touch component 276 can generate different electrical signals when the user inputs different touch actions, and send the generated electrical signals to the controller 250. The controller 250 can extract features from the received electrical signals, thereby determining the control function to be executed by the user according to the extracted features.

[0082] For example, when a user inputs a click touch action at any program icon position in the application interface, the touch component 276 will sense the touch action and generate an electrical signal. After receiving the electrical signal, the controller 250 can first determine the duration of the corresponding level of the touch action in the electrical signal, and when the duration is less than the preset time threshold, it recognizes that the user input is a click touch instruction. The controller 250 then extracts the position feature generated by the electrical signal to determine the touch position. When the touch position is within the display range of the application icon, it is determined that the user has input a click touch instruction at the application icon position. Accordingly, the click touch instruction is used to execute the function of running the corresponding application in the current scenario, so the controller 250 can start running the corresponding application.

[0083] For another example, when the user inputs a sliding action in the media display page, the touch component 276 also sends the sensed electrical signal to the controller 250. The controller 250 first determines the duration of the signal corresponding to the touch action in the electrical signal. When it is determined that the duration is greater than the preset time threshold, the position change of the signal generation is judged. Obviously, for interactive touch actions, the position where the signal is generated will change, thereby determining that the user has input a sliding touch command. The controller 250 then determines the sliding direction of the sliding touch command based on the change in the signal generation position, and controls the page turning of the display screen in the media display page to display more media options. Furthermore, the controller 250 can also extract the sliding speed, sliding distance and other features of the sliding touch command, and control the page turning screen according to the extracted features to achieve a hand-following effect, etc.

[0084] Similarly, for touch commands such as double-click and long press, the controller 250 can extract different features, determine the type of touch command through feature judgment, and then execute the corresponding control function according to the preset interaction rules. In some embodiments, the touch component 276 also supports multi-touch, so that the user can input touch actions on the touch screen through multiple fingers, such as multi-finger click, multi-finger long press, multi-finger slide, etc.

[0085] The above touch actions can also be combined with specific applications to achieve specific functions. For example, when the user opens the "Demonstration Whiteboard" application, the display 260 can present a drawing area, and the user can draw a specific touch action track in the drawing area by sliding the touch command. The controller 250 determines the touch action pattern through the touch action detected by the touch component 276, and controls the display 260 to display it in real time to meet the demonstration effect.

[0086] In order to achieve a real-time display effect, the display device 200 can display the hand-drawing process by superimposing multiple layers. Usually, the display device 200 can use one layer to display the sliding touch action trajectory corresponding to the user's hand-drawing in real time, and can use another layer to display the demonstration whiteboard interface. The picture presented on the final display 260 is formed by superimposing these two layers. For the sake of distinction, in an embodiment of the present application, the layer used to display the touch track pattern in real time is called the first layer, and the layer used to display the whiteboard interface is called the second layer. Obviously, in order to present the final picture, the layers that the display device 200 can present include not only the above two, but also other layers for displaying different screen contents.

[0087] For example, Figure 5 As shown, the display device 200 may include three layers, namely, the first layer: the group of pictures layer (Group of Pictures, GOP), the second layer: the on-screen display (OSD) adjustment layer, and the third layer: the video layer (Video). Among them, the GOP layer is also called the GOP2 layer or the acceleration layer, which can be used to display the temporarily drawn content displayed on the upper layer of the menu. The OSD layer is also called the middle layer or the menu layer, which is used to display the application interface, application menu, toolbar and other content. The Video layer is also called the bottom layer, which can generally be used to display the picture content corresponding to the external signal connected to the TV.

[0088] The hierarchical relationship between different layers can be set to achieve a specific display effect. For example, the hierarchical relationship between the GOP layer, OSD layer and Video layer can be: GOP layer-OSD layer-Video layer, that is, the Video layer is displayed at the bottom layer to show the content of the external signal screen, and the OSD layer is displayed above the Video layer, so that the application menu can float on the external signal screen for display, and the GOP layer is displayed above the OSD layer so that it can be highlighted when the user inputs and draws graphics.

[0089] Among them, for the GOP layer, since it is used to display temporarily drawn content, the picture displayed in the GOP layer will present different content as the user inputs the drawing action. Therefore, in actual applications, in order to meet the drawing requirements, after a sliding touch action input is completed, the display device 200 can update the drawn pattern to the OSD layer for display, and continue to display other touch track content through the GOP layer. This display method can make the pattern generated by the new drawing action cover the pattern generated by the previous drawing action to adapt to the user's operating habits.

[0090] It should be noted that for the patterns in the multiple layers that the display device 200 can present, the pattern expression form can be ARGB form, that is, based on the traditional RGB form, with transparency information, so as to facilitate the superposition of multiple layers of pictures. For example, for the picture drawn by the user, the part drawn by the brush is a specific touch track pattern, and the other part is a completely transparent pattern to avoid the part not drawn by the user from blocking the content in the underlying layer. Therefore, based on the above multiple layers, the display device 200 can present the final picture according to the specific pattern content and transparency in each layer.

[0091] Since each layer is used to display different specific contents, the patterns in each layer can have different screen resolutions. For example, if the resolution of the GOP layer is 2k, while the resolution of the OSD layer and the video layer is 4k, when the images are superimposed, the different resolutions will make it difficult for the patterns in each layer to align, resulting in display deviation or error.

[0092] To enable superimposed display, when there is a resolution difference between different layers, an interpolation operation can be performed on the pattern in the layer with lower resolution to improve the resolution of the layer. Figure 6 As shown, when the GOP2 layer, the OSD layer and the Video layer are superimposed, because the resolution of the GOP2 layer is 2K, while the resolutions of the OSD layer and the Video layer are 4K, the GOP2 layer must first be increased to 4K resolution through an interpolation algorithm, and then superimposed with the other two layers.

[0093] Among them, interpolation is an interpolation algorithm for an image, which can calculate the pixel content to be inserted through the content of multiple adjacent pixels in the image to improve the resolution of the image. However, since the superimposed layers include transparency information, and different layers are often set with different transparency, when the interpolation algorithm is performed, the content of adjacent pixels will be affected by transparency, causing the edge position of the drawn pattern to display incorrectly after the interpolation algorithm.

[0094] like Figure 6As shown, taking the electronic whiteboard application of the display device 200 as an example, the writing process of the electronic whiteboard is generally displayed in the GOP layer, and the lines drawn after writing are displayed in the OSD layer. The actual electronic whiteboard interface shows the superposition of the GOP layer and the OSD layer. When superimposing, if there are different layer resolutions, the low-resolution pattern is generally enlarged to a high resolution through interpolation, and then superimposed. When the GOP2 layer (2K) is to be superimposed with the OSD layer (4K), the GOP2 needs to be increased to a resolution of 4K first. At this time, an interpolation algorithm needs to be performed on the pixels. If the background of GOP2 is transparent (that is, the background color is: 0X00000000), the line color and the transparent color will be interpolated at the boundary of the line. Since transparent colors do not work in the interpolation algorithm, aliasing problems will occur when switching from 2K to 4K after interpolation. If the color value of the transparent color is 000000, it will become the line color and transparent black for the interpolation algorithm, and semi-transparent black will appear after interpolation, which is manifested as a black edge effect at the boundary of the line.

[0095] In order to improve the problem of the above-mentioned touch track pattern edge display error, some embodiments of the present application provide a multi-layer overlay method, which can be applied to a display device 200. In order to implement the multi-layer overlay method, the display device 200 includes a display 260, a touch component 276 and a controller 250, wherein the touch component 276 is configured to detect a touch track input by a user, such as Figure 7 , Figure 8 As shown, the multi-layer overlay method includes the following steps:

[0096] The touch track pattern in the first layer is obtained, and the background pattern in the second layer is obtained.

[0097] The first layer is used to display the touch track pattern, and the second layer is used to display the interface content such as the application interface, application menu, toolbar, etc. Therefore, the second layer is a layer located below the first layer. For example, the first layer is the GOP2 layer, and the second layer is the OSD layer.

[0098] The user can start the related application by clicking the application icon through the application startup interface. If the application started by the user is an application that can use the first layer, the application interface can be displayed in the second layer. At the same time, the touch track of the user input is detected in real time through the touch component 276, and the touch track pattern is presented in the first layer according to the user input action. In the embodiment of the present application, the content displayed in the second layer includes not only the application interface, application menu, toolbar and other application content, but also includes the painting content synchronized to the second layer after a touch action ends. Therefore, for the convenience of description, the application interface content displayed in the second layer is called the background pattern.

[0099] After acquiring the touch track pattern in the first layer and the background pattern in the second layer, the controller 250 may further perform an interpolation algorithm on the touch track pattern according to the background pattern to convert the touch track pattern into a conversion pattern having a resolution equal to that of the background pattern.

[0100] Among them, the interpolation algorithm is used to change the resolution of the touch track pattern. According to the different effect requirements of the processed image, the interpolation algorithm can adopt different forms, such as nearest neighbor interpolation, bilinear interpolation, bicubic interpolation, directional interpolation, etc. Taking the neighbor interpolation method as an example, when a 2k image needs to be transformed into a 4k image, the pixel value of each pixel in the 2k image can be traversed, and the average value of the pixel values ​​of two adjacent pixels can be calculated to obtain the pixel value corresponding to the pixel to be inserted. That is, when two adjacent pixels are (0, 255, 0) and (255, 255, 255), the values ​​in the RGB channels can be calculated respectively, that is, the R channel inserted pixel value is (0+255) / 2=128, the G channel inserted pixel value is (255+255) / 2=255, and the B channel inserted pixel value is (0+255) / 2=128.

[0101] When executing the interpolation algorithm, pixel image data can be extracted from the edge of the touch track pattern and the position close to the background pattern, respectively, so as to calculate the interpolated pixel image data according to the pixel data extracted from the background pattern and the touch track pattern.

[0102] For example, after acquiring the touch track pattern, the color of the touch track pattern can be extracted to obtain image data (192, 0, 255, 0), that is, the user hand-painted a pure green graphic with 75% opacity, and at the same time, the color is extracted from the background pattern to obtain the image data of the background pattern (255, 255, 255, 255), that is, the background pattern is a pure white interface. Therefore, according to the above extracted image data, the interpolated pixel data can be calculated as follows: the transparency channel value is maintained at 192 (that is, 75% opacity), the R channel interpolated pixel value is (0+255) / 2=128, the G channel interpolated pixel value is (255+255) / 2=255, and the B channel interpolated pixel value is (0+255) / 2=128, that is, the interpolated pixel point is (192, 128, 255, 128), that is, when the interpolation algorithm is executed to increase the resolution, the pixel point (192, 128, 255, 128) is inserted at the edge of the touch track pattern.

[0103] The conversion pattern and the background pattern are superimposed to control the display to display the superposition result in real time.

[0104] After performing the interpolation operation on the touch track pattern, the controller 250 may also perform superposition according to the result of the interpolation operation and the background pattern, and display the superposition result on the display 260. It can be seen that in the above embodiment, since the calculated interpolation pixel data is determined by the background pattern and the touch track pattern during the interpolation operation, when the two layer images are superimposed, no black edge or jagged edges will appear on the edge of the touch track pattern, thereby improving the display effect of the layer superposition process.

[0105] In the above embodiments, when performing interpolation operations on the touch track pattern, it is necessary to extract pattern data from the first layer and the second layer respectively. For the screen presented in the first layer, since its pattern is generated by the user's touch input, the extraction of the pattern in the first layer can be directly obtained from the user's touch operation. That is, in some embodiments, the step of obtaining the touch track pattern in the first layer also includes: receiving the touch track input by the user in real time; and extracting the foreground color in response to the touch track; and then presenting the touch track in the first layer according to the foreground color to generate the touch track pattern.

[0106] After the display device 200 starts running an application such as a presentation whiteboard application, the user can input a touch track through a touch action. After the touch component 276 detects the touch track, it can send it to the controller 250, so that the controller 250 extracts the foreground color in response to the touch track.

[0107] In the embodiment of the present application, the foreground color is the brush color selected by the user during the painting demonstration. For example, the user can select the brush shape in the toolbar window of the demonstration whiteboard application interface and set the foreground color to green. Then, after the user subsequently inputs a sliding touch operation, a green touch track can be formed in the whiteboard interface. Therefore, in order to obtain the pixel point data corresponding to the touch track pattern, the controller 250 can directly extract the foreground color and present the touch track in the first layer according to the foreground color to generate a touch track pattern.

[0108] While generating the touch track pattern, the controller 250 can also retain the extracted foreground color as pixel data corresponding to the touch track pattern. That is, when executing the interpolation algorithm, the interpolation calculation can be performed directly through the foreground color data and the background color data extracted from the second layer.

[0109] For example, a transparent color picker can be set in the presentation whiteboard program of the display device 200, and the color of the background part of the GOP layer can be set to the color of the transparent color picker, so that no boundary line will appear after the color of the drawn line and the color of the transparent color picker are interpolated.

[0110] For the case where the brush color or the interface color in the transparent layer is single, the transparent color picker is used to select the brush color or the interface color and set it to be fully transparent. In this way, the color at the boundary between the drawing line or the interface and the transparent layer is the value of the interpolated semi-transparent brush color, and there will be no obvious black or other boundary colors at the boundary.

[0111] However, in some demonstrations or painting processes, the brush used by the user may not be a fixed color, that is, the brush may be a colored pen including multiple colors, and this colored pen will present a combination of multiple colors as the touch track extends. When the user uses this colored pen to paint, when the controller 250 uses the foreground color as the pixel data of the touch track pattern, it will cause the extracted pixel data to be inconsistent with the actual touch track pattern, affecting the calculation result of the interpolation algorithm. To this end, in some embodiments, according to the background pattern, the step of performing an interpolation operation on the touch track pattern also includes: first extracting the boundary color and boundary position of the touch track pattern; then extracting the background color in the area associated with the boundary position from the second layer, so as to solve the interpolation result according to the boundary color and the background color, and perform an interpolation operation on the touch track pattern.

[0112] The controller 250 can extract the boundary of the touch track pattern by executing the image analysis program during the process of presenting the touch track pattern on the first layer, and obtain the boundary color and the location of the boundary pixel points. The image boundary can be obtained by traversing all the pixels in the image and determining the color value difference between two adjacent pixels. When the difference is large, the location of the two adjacent pixels is determined as the boundary of the touch track pattern. Since the first layer is displayed on the top layer, in order to overlay the display, the opacity of the pixels on the first layer that are not the touch track pattern is 0%, so the boundary of the touch track pattern can be determined based on the opacity.

[0113] After obtaining the boundary color and boundary position, the controller 250 can also extract the background color in the second layer. If the background pattern in the second layer is a solid color background, the background color can be extracted from any pixel in the background pattern; if the background pattern in the second layer is not a solid color background, it is necessary to search in the second layer according to the boundary position to determine the color of the pixel corresponding to the boundary position at the background pattern position as the background color.

[0114] Obviously, the touch motion track pattern boundary is a two-dimensional array composed of multiple pixels, so the background color extracted from the background pattern is also a two-dimensional array composed of multiple pixels. The controller 250 then solves the interpolation result based on the boundary color and the background color, thereby converting the touch track pattern into a higher resolution conversion pattern for performing overlay operations between multiple layers.

[0115] For example, for colored line drawings, the colors in the lines are not fixed. If the transparent color picker selects one of the colors, different colors will still appear at the boundary. For this situation, the transparent color picker can choose to select the color of the OSD layer. Because the resolution will eventually be superimposed together after the resolution is increased, the color of the next layer to be superimposed is selected. If the background color is a single color, the color of the transparent color picker selects the fully transparent value of the single color; if the background color is not a single transparent color, the transparent color picker is a one-dimensional array. For the area in the GOP layer where the content is to be displayed, obtain the color array of the corresponding position of the area in the OSD layer, and then take the fully transparent value of the color in the color array as the transparent color picker color.

[0116] Use this transparent color picker as the background of the content to be displayed. When overlaying, the color in the transparent color picker is the color value of the next layer of the boundary area to be overlaid. At this time, the boundary color after interpolation is the semi-transparent value of the color to be overlaid, so there will be no abnormal boundary line or boundary color after overlay.

[0117] According to the technical solution provided by the above embodiment, it can be known that by analyzing the boundary color and boundary position of the touch track pattern, the pixel points located at the boundary position can be directly determined, and the background color associated with the boundary pixel points can be determined at the same time to adapt to the color changes of the touch track in the first layer and the color changes of the background pattern in the second layer. Therefore, when the touch track pattern boundary is interpolated, an interpolation result that is compatible with the colors of the two layers can be obtained, so as to improve the image quality of the boundary area.

[0118] In practical applications, the interpolation algorithm is performed only when multiple layers have different resolutions. When the resolutions between layers are the same, there is no need to perform the interpolation algorithm processing on the touch track pattern. That is, in some embodiments, according to the background pattern, the step of performing the interpolation operation on the touch track pattern also includes: detecting the resolutions of the touch track pattern and the background pattern; and then executing different program steps according to the detection result. If the resolution of the touch track pattern is smaller than the resolution of the background pattern, the step of extracting the boundary color and boundary position of the touch track pattern is executed; if the resolution of the touch track pattern is equal to the resolution of the background pattern, the touch track pattern and the background pattern are superimposed.

[0119] The resolution of the touch track pattern and the background pattern can be obtained by the screen resolution supported by the display 260 of the display device 200 or the resolution supported by the currently running application. After the resolution of the touch track pattern and the background pattern is detected, the resolutions of the two layers can be compared, and the superposition method can be determined according to the comparison result.

[0120] When the resolution of the touch track pattern is smaller than the resolution of the background pattern, that is, the resolution of the content displayed in the first layer is smaller than the resolution of the content displayed in the second layer, at this time, it is necessary to add a pattern with a smaller resolution, that is, to perform an interpolation algorithm on the touch track pattern, that is, to perform the step of extracting the boundary color and boundary position of the touch track pattern.

[0121] Obviously, when executing the interpolation algorithm, the number of pixels to be inserted in the interpolation algorithm needs to be determined according to the resolution of the background pattern. For example, if the GOP layer has a 2k resolution and the OSD layer has a 4k resolution, then it is necessary to insert twice the number of pixels in the touch track pattern in the GOP layer so that the touch track pattern is also converted into a 4k pattern.

[0122] When the resolution of the touch track pattern is equal to the resolution of the background pattern, that is, the pattern resolutions in the first layer and the second layer are the same, there is no need to interpolate the touch track pattern, and the touch track pattern and the background pattern can be directly overlaid.

[0123] The display device 200 can also display different types of application program interfaces by overlaying multiple layers, that is, in addition to the first layer and the second layer, a third layer such as a video layer needs to be overlaid. Fig. 9 As shown, while the display device 200 displays the external signal content through the video layer, displays the program interface through the OSD layer, and completes the demonstration function through the GOP layer. At this time, not only the first layer has a transparency setting, but the second layer also has a transparency setting. When the controller 250 extracts the background pattern in the second layer, a transparent area may be extracted, thereby affecting the interpolation algorithm result and the superposition result.

[0124] Therefore, in some embodiments, the step of displaying the content in a specific external signal according to the background pattern and performing an interpolation operation on the touch track pattern also includes: detecting the transparency of the background pattern, and based on the detection result, if the transparency of the background pattern is fully transparent or semi-transparent, obtaining the underlying pattern in the third layer, and then superimposing the background pattern and the underlying pattern; thereby presenting the superimposed background pattern in the second layer.

[0125] In order to alleviate the influence of the transparent area in the second layer on the result of the interpolation algorithm, before executing the interpolation algorithm, the transparency of the background pattern can be detected to determine whether the background pattern in the second layer is a fully transparent or semi-transparent pattern. The specific detection process can be performed by traversing the opacity values ​​of each pixel in the background pattern. If there are pixels or areas with an opacity value of 0 in the background pattern, or the proportion of pixels with an opacity value of 0 to the total number of pixels is greater than a set value, the transparency of the background pattern is determined to be fully transparent or semi-transparent.

[0126] When the background pattern is a fully transparent or semi-transparent pattern, it is determined that the interpolation algorithm is affected by the transparent pattern in the second layer, and a boundary defect occurs partially or completely. At this time, the second layer and the third layer can be superimposed first, and then the pattern in the first layer can be interpolated. Among them, the third layer is a layer located under the second layer. For example, when it is detected that the pattern displayed on the OSD layer is a transparent or semi-transparent pattern, the underlying pattern displayed on the video layer can be extracted, and the underlying pattern and the background pattern in the second layer can be superimposed to eliminate the influence of the transparent area in the background pattern of the second layer, so that the transparent color will not be extracted when the background color is extracted in the second layer later, thereby ensuring the display effect of the touch track boundary.

[0127] Similarly, for multiple layers, the resolutions of the second layer and the third layer can be detected before the interpolation algorithm is executed on the touch track pattern, so that the resolutions can be adjusted to be consistent before superposition. That is, in the step of superimposing the background pattern and the bottom layer pattern, the resolutions of the background pattern and the bottom layer pattern can also be detected. If the resolution of the background pattern is smaller than the resolution of the bottom layer pattern, the bottom layer color is extracted from the third layer, and the interpolation algorithm is executed on the background pattern according to the bottom layer color; the background pattern processed by the interpolation algorithm is superimposed on the bottom layer pattern.

[0128] For example, Fig.10 As shown, by detecting the resolution of the background pattern and the underlying pattern, it is determined that the resolution of the background pattern in the OSD layer is 2k, and the resolution of the underlying pattern in the video layer is 4k, then the underlying color can be extracted in the video layer, and the specific extraction method is the same as the extraction method used in the first layer when superimposed, and the background pattern is interpolated according to the extracted underlying color to obtain a background pattern with a 4k resolution. The high-resolution background pattern processed by the interpolation algorithm is then superimposed with the underlying pattern to obtain the pattern finally displayed in the OSD layer.

[0129] It should be noted that since the third layer can be used as the bottom layer to display the picture content of the external signal, the display device 200 may not be able to directly obtain the bottom layer pattern. Therefore, when extracting the color in the bottom layer pattern, the video layer can be captured first, and after obtaining the screenshot, the bottom layer color can be extracted from the screenshot image.

[0130] It can be seen that in the above embodiment, before the interpolation algorithm and overlay display are performed on the image in the first layer, the background pattern in the second layer can be processed first, so that the background pattern displayed in the second layer can always be extracted to a valid background color, so that when the interpolation algorithm is executed on the first layer, the touch track pattern boundary can be reasonably interpolated to alleviate the boundary display defects.

[0131] Based on the above embodiment, in the actual layer overlay process, the following effects can be obtained: for example, if the OSD layer is full-screen non-transparent, then after overlay, the OSD layer will completely cover the Video layer. The user sees that the contents in the OSD layer and the GOP2 layer are displayed. If the OSD layer has transparency, the overlay effect is the effect of the three layers of the GOP2 layer, the OSD layer and the Video layer.

[0132] like Fig.11 As shown, in the case where the OSD layer is transparent or semi-transparent, the controller 250 can superimpose the OSD layer and the Video layer. If the OSD layer resolution is different from the Video layer resolution, the lower resolution layer is increased, that is, the 2K resolution OSD layer pattern is increased to 4K through interpolation.

[0133] If the background of the OSD layer is semi-transparent, you will need to use the transparent selector to select the color of the video layer to be superimposed and the corresponding color of semi-transparency for transparency color superposition during interpolation; if the background of the OSD layer is transparent, the transparent color selector needs to select the color of the video layer during interpolation. After superimposing the OSD layer and the Video layer, superimpose on the GOP2 layer. Since the background of the GOP2 layer is transparent, you can update the color of the transparent color selector to the color after the OSD layer and the Video layer are superimposed, and increase the resolution to 4K before superimposing.

[0134] In addition, the annotation function under the channel is a case where the OSD layer is a 2K transparent layer. The annotation is generally for the static display of the Video layer. When superimposed display, first obtain a screenshot of the Video layer, and the transparent color selector selects the color of the two-dimensional array of the screenshot. When the transparent OSD layer is interpolated, the color of the transparent color selector is used as the background for interpolation, and then the color of the transparent color selector is updated to the color after the OSD and Video layers are superimposed. When the GOP2 layer is superimposed, the updated transparent color selector is used as the background for superposition, and the superposition of the GOP2 layer, OSD and Video is obtained.

[0135] Since the first layer is often used to display temporary drawing patterns, that is, when the user is drawing, the display device 200 displays the drawing content through the first layer, and the user's drawing content is often composed of geometric figures such as points and lines, and the boundary area corresponding to the drawing content is small, the controller 250 does not need to extract the color in the entire background pattern, but only needs to extract the background color in a specific area to meet the requirements of the interpolation algorithm. That is, in some embodiments, the step of performing an interpolation operation on the touch track pattern also includes: traversing the feature points in the touch track; demarcating the color extraction area in the second layer according to the position of the feature points; extracting the pixel value and transparency value in the color extraction area to obtain the background pattern.

[0136] As the user draws, multiple feature points may be generated in the touch track. The controller 250 may locate one or more feature points according to the user's touch track. These feature points may be single points or line points in the touch track, and may be determined according to the touch track shape input by the user.

[0137] After locating the feature points, you can also define a color picking area in the background pattern according to the location of the feature points. The color picking area can be defined based on the type of feature points, the distance between feature points, and the specific interpolation method. For example, the color picking area can be a rectangular area containing a preset number of pixels. Obviously, the color picking area must be able to cover the boundary of the touch track pattern.

[0138] The controller 250 then selects the color value and transparency value of each pixel in the designated color picking area to obtain the background pattern. That is, in this embodiment, the background pattern can be only the pattern in the second layer located in the color picking area. Compared with the pattern displayed in the entire second layer, the designated color picking area is smaller in area, which can reduce the amount of data processing in the interpolation operation process.

[0139] For example, the writing process of the electronic whiteboard is the process of continuously connecting the line points to form the line. Therefore, during the writing process, only the area partially covered by the line is displayed, that is, when two line points are connected, only the previous line point and the current line point area are added. Therefore, during the line drawing process, only the rectangular area connecting the line points is drawn, and the line drawing process can be displayed by superimposing the color picking area of ​​the OSD layer. Therefore, during the superposition, the color area obtained by the color picker is a set of rectangular frames covering the line. By obtaining the local area, the amount of calculation can be reduced and the writing speed can be increased.

[0140] Since the touch track pattern in the first layer will be synchronized to the second layer after each single touch action, which will cause the background pattern in the second layer to change, in some embodiments of the present application, the step of superimposing the conversion pattern and the background pattern also includes: detecting an end point in the touch track input by the user; if the touch track contains the end point, adding the touch track pattern to the second layer; and updating the background pattern in the second layer.

[0141] The controller 250 can detect the end point of the touch track in real time during the process of the user inputting the touch track. Generally, for the user's drawing action, when the touch track input by the user has a breakpoint, it means that the user has ended a single drawing action, so the controller 250 can detect the end point by detecting the breakpoint of the touch track. When it is detected that the touch track contains an end point, it is determined that the user has completed a drawing action at this time, and the touch track pattern needs to be added to the second layer to update the background pattern in the second layer.

[0142] For example, the writing process of the electronic drawing board is displayed in the GOP2 layer, and the lines drawn after writing are displayed in the OSD layer. When the GOP2 layer is interpolated, the color picker must select the color of the OSD layer as the background. As the lines are drawn, the interface of the OSD layer keeps changing, so the color picker must be refreshed after each line drawing to ensure that the transparent background color of the next line drawing is the same as when the line was drawn. Similarly, when erasing on the writing board, the eraser and the erasing path are displayed in the GOP2 layer. After erasing, the OSD layer must be refreshed to ensure that the color picker obtains the latest background of the OSD layer when writing or erasing next time.

[0143] For another example, the erasing process of an electronic whiteboard is a process of constantly replacing background elements and drawing an eraser. In the GOP2 layer, the background of the path where the eraser passes through also has an eraser. Because the background of the GOP2 layer is transparent, when interpolating from 2K to 4K, there will be a black border at the boundary where the background and the transparent connection meet. In addition to using the method of using the transparent color picker provided in the above example to select the color array of the next layer, you can also use the method of using the transparent color picker to select the color of a partial area. That is, for the case of erasing the eraser, select a range of 16 pixels larger than the border range of the eraser area. The transparent color picker only selects the color of this part of the corresponding area in the next layer as the transparent color picker array range, which can also reduce the amount of calculation and increase the erasing speed.

[0144] Furthermore, in the application interface displayed in the second layer, some content can also be displayed on top. For example, when performing a drawing operation, some toolbars need to be displayed on the touch track after a drawing action is completed, so that the user can click in the subsequent drawing action. In order to achieve this effect, Fig.12 As shown, in some embodiments, the step of updating the background pattern in the second layer also includes: traversing the touch track to extract the pattern content covered by the touch track in the background pattern; if the pattern content is the top display content, displaying the pattern content on the upper layer of the touch track.

[0145] For example, the toolbar position is a special case. During the writing process, it is necessary to determine whether the writing and drawing are in the toolbar position. If the writing is within the toolbar range, the toolbar position must be refreshed each time you draw to ensure real-time refresh of the toolbar display and the drawing display.

[0146] It can be seen from the above technical solutions that the multi-layer overlay method provided in the above embodiments can be configured in the controller of the display device, and is used to display the touch track pattern in real time by overlaying multiple layers when the user inputs the touch track. The method can perform interpolation operations on the touch track pattern according to the background pattern, which can alleviate the influence of the transparency of the first layer on the result of the touch track pattern edge interpolation algorithm, alleviate the problem of jagged edges or black edges when the touch track pattern is overlaid, and improve the real-time display effect.

[0147] Based on the multi-layer overlay method provided in the above embodiment, a display device 200 is further provided in some embodiments of the present application, including: a display 260, a touch component 276 and a controller 250. The display 260 is configured to display a user interface, the touch component 276 is configured to detect a touch track input by a user, and the controller 250 is configured to execute the following program steps:

[0148] Acquire a touch track pattern in a first layer, and acquire a background pattern in a second layer, where the second layer is a layer below the first layer;

[0149] According to the background pattern, an interpolation operation is performed on the touch track pattern to generate a conversion pattern, wherein a resolution of the conversion pattern is equal to a resolution of the background pattern;

[0150] The conversion pattern and the background pattern are superimposed to control the display to display the superposition result in real time.

[0151] It can be seen from the above technical solution that the display device 200 provided in the above embodiment can perform interpolation operation on the touch track pattern in the first layer according to the background pattern in the second layer after acquiring the touch track pattern, thereby improving the resolution of the touch track pattern, and finally superimposing the conversion pattern after the interpolation operation with the background pattern, and displaying it in real time through the display. The display device can perform interpolation operation on the touch track pattern according to the background pattern, thereby alleviating the influence of the transparency of the first layer on the result of the touch track pattern edge interpolation algorithm, alleviating the problem of jagged edges or black edges when the touch track pattern is superimposed, and improving the real-time display effect.

[0152] The display device 200 can present the superposition effect in real time to improve the display quality. In order to present the final display effect, a multi-layer superposition method is also provided in some embodiments of the present application. The multi-layer superposition method can be applied to the display device 200, and the multi-layer superposition method includes the following steps:

[0153] First, the display 260 is controlled to display a drawing interface, wherein the drawing interface includes a first layer and a second layer located below the first layer. Secondly, the controller 250 may display a conversion pattern on the first layer and a background pattern on the second layer in response to the user's touch action. The conversion pattern is a pattern whose resolution is equal to the resolution of the background pattern generated by performing an interpolation operation on the touch track pattern. Finally, the controller 250 may control the display 260 to display in real time a superimposed pattern obtained by superimposing the conversion pattern and the background pattern.

[0154] It can be seen that the above-mentioned multi-layer overlay method can control the display to display the drawing interface while the user is performing a demonstration action, and display the conversion pattern and the background pattern respectively through the first layer and the second layer of the drawing interface, and overlay and display the patterns in the first layer and the second layer in real time to alleviate the influence of the transparency of the first layer on the results of the touch track pattern edge interpolation algorithm, solve the problem of jagged edges or black edges when the touch track patterns are superimposed, and improve the real-time display effect.

[0155] Similar parts between the embodiments provided in this application can be referenced to each other. The specific implementation methods provided above are only a few examples under the general concept of this application and do not constitute a limitation on the protection scope of this application. For those skilled in the art, any other implementation methods expanded based on the scheme of this application without creative work belong to the protection scope of this application.

Claims

1. A display device, characterized in that: include: monitor; Touch components; The controller is configured as: Detecting the touch track of the user input; Acquire a touch track pattern in a first layer, extract a color of the touch track pattern, and extract a color in a background pattern of a second layer, wherein the second layer is a layer located below the first layer, a resolution of the first layer is lower than a resolution of the second layer, the touch track pattern is in ARGB format, and the color of the touch track pattern carries transparency information; Solving the interpolation result according to the color of the touch track pattern and the color of the background pattern, performing an interpolation operation on the touch track pattern to generate a conversion pattern, wherein the resolution of the conversion pattern is equal to the resolution of the background pattern; The conversion pattern of the first layer is superimposed on the background of the second layer to control the display to display the superimposed result in real time.

2. The display device according to claim 1, characterized in that In the step of acquiring the touch track pattern in the first layer and extracting the color of the touch track pattern, the controller is further configured to: Receive the touch track input by the user in real time; In response to the touch track, extracting a foreground color; The touch track is presented in the first layer according to the foreground color to generate the touch track pattern.

3. The display device according to claim 1, characterized in that In the step of solving an interpolation result according to the color of the touch track pattern and the color of the background pattern and performing an interpolation operation on the touch track pattern, the controller is further configured to: detecting the transparency of the background; If the background has a certain degree of transparency, obtaining the background color in a third layer, where the third layer is a layer below the second layer; Overlaying the background of the second layer and the background of the third layer; An interpolation result is obtained by solving the touch track color and the color of the superimposed background, and an interpolation operation is performed on the touch track pattern.

4. The display device according to claim 1, characterized in that In the step of performing an interpolation operation on the touch track pattern, the controller is further configured to: Traversing the feature points in the touch track; Delimiting a color extraction area in the second layer according to the position of the feature point; Pixel values ​​and transparency values ​​in the color picking area are extracted to obtain the background of the second layer.

5. The display device according to claim 1, characterized in that In the step of superimposing the conversion pattern and the background pattern, the controller is further configured to: Detecting the end point in the touch trajectory of the user input; If the touch track includes the end point, adding the touch track pattern to the second layer; Update the background pattern in the second layer.

6. A multi-layer overlay method, characterized in that: Applied to a display device, the display device includes a display, a touch component and a controller, wherein the touch component is configured to detect a touch track input by a user, and the multi-layer overlay method includes: Detecting the touch track of the user input; Acquire a touch track pattern in a first layer, extract a color of the touch track pattern, and perform color extraction in a background pattern of a second layer, wherein the second layer is a layer located below the first layer, a resolution of the first layer is lower than a resolution of the second layer, the touch track pattern is in ARGB format, and the color of the touch track pattern carries transparency information; Solving the interpolation result according to the color of the touch track pattern and the color of the background pattern, performing an interpolation operation on the touch track pattern to generate a conversion pattern, wherein the resolution of the conversion pattern is equal to the resolution of the background pattern; The conversion pattern of the first layer is superimposed on the background of the second layer to control the display to display the superimposed result in real time.

7. The multi-layer overlay method according to claim 6, characterized in that: In the step of acquiring the touch track pattern in the first layer and extracting the color of the touch track pattern, the controller is further configured to: Receive the touch track input by the user in real time; In response to the touch track, extracting a foreground color; The touch track is presented in the first layer according to the foreground color to generate the touch track pattern.

8. The multi-layer overlay method according to claim 6, characterized in that: In the step of solving the interpolation result according to the touch track color and the background color and performing the interpolation operation on the touch track pattern, the controller is further configured to: detecting the transparency of the background; If the background has a certain degree of transparency, obtaining the background color in a third layer, where the third layer is a layer below the second layer; Overlaying the background of the second layer and the background of the third layer; An interpolation result is obtained by solving the color of the touch track pattern and the color of the superimposed background, and an interpolation operation is performed on the touch track pattern.

9. The multi-layer overlay method according to claim 6, characterized in that: The first layer is a GOP acceleration layer, and the second layer is an OSD layer or a VIDEO layer.