WO2022134181A1 - 笔迹的显示方法、装置、电子设备及存储介质 - Google Patents
笔迹的显示方法、装置、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2022134181A1 WO2022134181A1 PCT/CN2020/141777 CN2020141777W WO2022134181A1 WO 2022134181 A1 WO2022134181 A1 WO 2022134181A1 CN 2020141777 W CN2020141777 W CN 2020141777W WO 2022134181 A1 WO2022134181 A1 WO 2022134181A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- color
- handwriting
- color value
- display
- display mode
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000013507 mapping Methods 0.000 claims description 20
- 239000003086 colorant Substances 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 12
- 230000008569 process Effects 0.000 abstract description 14
- 238000010586 diagram Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 3
- 230000009977 dual effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000005055 memory storage Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013136 deep learning model Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012549 training Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Definitions
- the present application relates to the technical field of dual-system electronic devices, and in particular, to a method, device, electronic device and storage medium for displaying handwriting.
- a dual-system electronic device such as a smart interactive tablet has two operating systems, namely a first system and a second system.
- the first system may be an Android system and the second system may be a Windows system.
- the second system displays the handwriting corresponding to the writing operation, which usually requires a High Definition Multimedia Interface (High Definition Multimedia Interface) to the signal of the writing operation.
- HDMI High Definition Multimedia Interface
- HDMI decoding which are cumbersome and time-consuming, resulting in slow response speed of handwriting display.
- the first system in order to improve the speed at which the second system displays the handwriting corresponding to the writing operation, the first system usually receives the writing operation input by the user, and in the display interface of the second system of the second system, the first system corresponding to the first system A layer displays the handwriting of the handwriting operation, and sends the handwriting of the writing operation to the second system, so that the second layer corresponding to the second system in the display interface of the second system displays the handwriting of the writing operation, and the first layer
- the handwriting on one layer overlaps the handwriting on the second layer.
- there may be a large difference in color between the handwriting on the first layer and the handwriting on the second layer which leads to a decrease in the display quality of the handwriting displayed by the dual-system electronic device.
- Embodiments of the present application provide a method, device, electronic device, and storage medium for displaying handwriting, so as to solve the problem of low handwriting quality during the current electronic device displaying handwriting.
- an embodiment of the present application provides a method for displaying handwriting, which is applied to a first system of a dual-system electronic device, including:
- first display mode of the display screen of the dual-system electronic device wherein the first display mode is a display mode among N preset display modes, and different preset display modes have different image quality parameters, so Said N is an integer greater than 1;
- the first handwriting of the first writing operation is displayed in a second color on a second layer, wherein the second layer is a layer corresponding to the first system, and the second color is a layer with the The color of the first color value, the first handwriting and the second handwriting are superimposed, and the second handwriting is the handwriting displayed on the first layer by the second system based on the first writing operation.
- an embodiment of the present application provides a display device for handwriting, which is applied to a first system of a dual-system electronic device, including:
- a handwriting color information sending module configured to acquire the handwriting color information of the second system in the case of receiving the input of the first writing operation in the display interface of the second system of the dual-system electronic device, wherein the The handwriting color information is used to indicate the first color of the handwriting displayed on the first layer corresponding to the second system;
- a first display mode acquisition module configured to acquire a first display mode of the display screen of the dual-system electronic device, wherein the first display mode is a display mode among N preset display modes, and different preset display modes are displayed. modes have different image quality parameters, where N is an integer greater than 1;
- a first color value determination module for determining the first color value that the first system matches with the color handwriting information under the first display mode
- a handwriting display module configured to display the first handwriting of the first writing operation in a second color on a second layer, wherein the second layer is a layer corresponding to the first system, and the second layer is a layer corresponding to the first system.
- the second color is the color with the first color value, the first handwriting and the second handwriting are superimposed, and the second handwriting is displayed on the first layer by the second system based on the first writing operation 's handwriting.
- an embodiment of the present application provides a dual-system electronic device, including a first system, where the first system includes:
- a memory for storing the processor-executable instructions
- processor is configured to execute the instructions to implement the steps of the method of the first aspect.
- an embodiment of the present application provides a computer storage medium, where computer program instructions are stored thereon, and when the computer program instructions are executed by a processor, the steps of the method according to the first aspect are implemented.
- the first system in the process of receiving the input of the first writing operation on the display interface of the second system, the first system obtains the handwriting color information of the second system, and then matches the first system based on the handwriting color information of the second system.
- a system displays the handwriting on the layer of the first system with the color value corresponding to the handwriting color information in the first display mode finally with the matched color value.
- FIG. 1 is a schematic flowchart of a method for displaying handwriting provided by an embodiment of the present application
- FIG. 2 is a schematic structural diagram of a display device for handwriting provided by an embodiment of the present application
- FIG. 3 is a schematic diagram of a hardware structure of a dual-system electronic device provided by an embodiment of the present application.
- first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
- Objects are usually of one type, and the number of objects is not limited.
- the first writing operation may be one or multiple.
- “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
- an embodiment of the present application provides a method for displaying handwriting.
- the method for displaying handwriting is applied to a first system of a dual-system electronic device. As shown in FIG. 1 , the method includes the following steps:
- Step 101 In the case of receiving the input of the first writing operation in the display interface of the second system, obtain the handwriting color information of the second system, wherein the handwriting color information is used to indicate the first layer corresponding to the second system Display the first color of the handwriting;
- Step 102 Obtain a first display mode of the display screen of the dual-system electronic device, where the first display mode is a display mode among N preset display modes, and different preset display modes have different image quality parameters, where N is an integer greater than 1;
- Step 103 determining the first color value that matches the color handwriting information in the first display mode by the first system
- Step 104 Display the first handwriting of the first writing operation in a second color on a second layer, wherein the second layer is a layer corresponding to the first system, and the second color is a color with a first color value, The first handwriting and the second handwriting are superimposed, and the second handwriting is the handwriting displayed on the first layer by the second system based on the first writing operation.
- the first system in the process of receiving the input of the first writing operation on the display interface of the second system, the first system obtains the handwriting color information of the second system, and then matches the first system based on the handwriting color information of the second system.
- a system displays the handwriting on the layer corresponding to the first system with the color value corresponding to the color information of the handwriting in the first display mode.
- the above-mentioned dual-system electronic device includes a display screen, a first system and a second system, and the display screen is used to display the display interface of the first system or the second system, and an operation (such as a writing operation, etc.) to receive user input.
- the first system and the second system may be understood as devices or apparatuses respectively provided with different operating systems, and both the first system and the second system are provided with a processor and a memory to realize independent operation.
- the operating systems of the first system and the second system may include the Windows system or the Android system.
- the above-mentioned first system is a device or device for setting the Android system (hereinafter referred to as “the first system is the Android system”) and the above-mentioned second system is a device or device for setting the Windows system (hereinafter referred to as “the second system is the Windows system”) ”).
- the above-mentioned first system may be the main system of the above-mentioned dual-system electronic equipment
- the second system may be the auxiliary system of the dual-system electronic equipment
- the display interface of the second system is displayed under the first system in the form of a video stream, that is, the frame after the dual-system electronic device encodes the display interface of the second system through the High Definition Multimedia Interface (HDMI).
- HDMI High Definition Multimedia Interface
- the first system when the display interface of the second system is displayed under the first system, the first system is provided with a first layer and a second layer in the first display interface, and the first layer is used to display the second system's display interface. image, and the second layer is used to display the image of the first system, and the second layer can be overlaid on the first layer in a transparent form.
- step 101 in the case where the display interface of the second system is displayed on the display screen of the dual-system electronic device, if the dual-system electronic device receives the user's input of the first writing operation in the display interface of the second system, then The second system of the dual-system electronic device can obtain the handwriting color information used to indicate the first color used to display the handwriting, and send the obtained handwriting color information to the first system, and the first system can obtain the second handwriting color information. The system's handwriting color information.
- the above-mentioned handwriting color information may be any information used to indicate the first color currently used by the second system to display the handwriting.
- the first color information may include the name and serial number of the first color, etc. at least one of.
- the first color may be a color determined by the dual-system electronic device according to a color selection operation input by the user before receiving the first writing operation, and the color selection operation may be at least one preset under the second system. Set the operation of selecting a color from the color, or, it can also be an operation of adjusting the color value (such as RGB) to generate a new color.
- the above-mentioned second system may send the above-mentioned handwriting color information to the above-mentioned first system through an Open Pluggable Specification (OPS).
- OPS Open Pluggable Specification
- the Windows system when the dual-system electronic device receives the operation of writing "one” (ie, the first writing operation) on the display interface of the Windows system, And the handwriting display color set by the Windows system is red (ie, the first color). At this time, the Windows system can obtain the handwriting color information as "red", and send the obtained handwriting color information to the Android system through OPS.
- the first system may obtain the current first display mode of the display screen of the dual-system electronic device.
- the first display mode may be one of multiple preset display modes, and among the multiple display modes, different display modes have different image quality parameters, and the image quality parameters may include contrast, brightness, saturation at least one of degree and color temperature.
- the display screen of the dual-system electronic device is preset with display modes such as standard mode, bright mode, vivid mode, and eye protection mode. as the above-mentioned first display mode.
- the first system of the dual-system electronic device can obtain the color of the handwriting in the first display mode according to the color handwriting information. information that matches the first color value.
- the color value corresponding to red is (255, 0, 0), but in the bright display mode, due to factors such as the brightness of the display screen, the color value displayed by (255, 0, 0) is used. There is a difference between "red" and the standard display mode. Therefore, in the bright display mode, to display the same red, the corresponding color value may be (205, 0, 0).
- the above-mentioned first color value matching the above-mentioned color handwriting information in the first display mode may be realized by the first system of the dual-system electronic device according to a preset rule or method.
- the above step 103 may include:
- a first color value relationship table corresponding to the first display mode is determined, wherein the N color value relationship tables are in one-to-one correspondence with N preset display modes, and each The color relationship table includes at least one set of mapping relationships between colors and color values;
- the color value that has a mapping relationship with the first color indicated by the handwriting color information is the first color value.
- the first system of the above-mentioned dual-system electronic device may determine the above-mentioned first color value according to the corresponding relationship between the preset display mode and the color value relationship table, and the mapping relationship between colors and color values in the color value relationship table, so that the In the process of determining the first color value, the computational complexity is reduced, thereby improving the processing efficiency of the dual-system electronic device.
- each display mode corresponds to a color value relationship table, and each color value relationship table includes at least one set of colors and the corresponding color values.
- the color value corresponding to the color therefore, through the corresponding color value relationship table in the current display mode, the color value corresponding to the color in the handwriting color information of the first writing operation can be matched, that is, the first color value.
- the preset standard display mode corresponds to the color value relationship table 1
- the color value relationship table 1 includes a mapping relationship between red and (255, 0, 0)
- the preset bright display mode corresponds to the color value relationship table 2
- the color relationship table 2 includes the mapping relationship between red and (205,0,0).
- the above handwriting color information is "red” and the display screen is in the standard display mode (ie the target display mode)
- the above paragraph A system determines that the color value (255, 0, 0) (ie the first color value) in the color value relationship table 1 (ie the first color value relationship table) matches "red”; or, in the above handwriting color information is In the case of "red” and the display screen is in the bright display mode (ie the target display mode), the above-mentioned first system determines the color value (205, 0, 0) in the color value relationship table 2 (ie the first color value relationship table) ) (ie the first color value) matches "red".
- the above-mentioned dual-system electronic device can create files in the color value relationship table corresponding to each display mode of several colors commonly used in writing in the second system in advance, that is, add colors and colors.
- a mapping of values For example, if users often write handwriting in colors such as black, white, red, yellow, green, and blue, they can add black, white, red, yellow, green, Colors such as blue and their corresponding color values.
- mapping relationship may be realized by the dual-system electronic device according to the operation of the user; or, before the above-mentioned step 103, the above-mentioned method may further include;
- the display screen displays the display interface of the second system in the second display mode
- the second color value of the handwriting of the first layer displaying the second writing operation is acquired, wherein the first layer
- the two-color handwriting is the color information of the third color used for the second system to display the handwriting
- the second color value relationship table in the first system a mapping relationship between the third color and the second color value is added, wherein the second color value relationship table corresponds to the second display mode.
- the dual-system electronic device may display the second writing operation according to the third color used by the second system to display the handwriting of the second writing operation during the second writing operation in the display interface history of the second system, and the third color is displayed in the second display
- the color value in the mode establishes a second color value relationship table corresponding to the second display mode, so that the operation of building the color relationship table is more convenient, and the determined color value matching the color information of the handwriting is more suitable, further improving the dual system Electronic devices display the display quality of handwriting.
- the canvas layer of the dual-system electronic device receives that the user uses black (ie the second color) in the display interface of the Windows system (ie the second system).
- black ie the second color
- the standard display if the color value corresponding to the color black of the writing handwriting obtained by the second system at this time is (0,0,0) (that is, the second color value), then the standard display
- the mapping relationship between black and (0,0,0) is added to the color value relationship table corresponding to the mode (ie, the second color value relationship table);
- the canvas layer of the dual-system electronic device receives that the user uses black (ie the second color) in the display interface of the Windows system (ie the second system).
- black ie the second color
- the soft display A mapping relationship between black and (10, 10, 10) is added to the color value relationship table corresponding to the mode (ie, the second color value relationship table), and so on.
- the above-mentioned second system can send indication information to the first system through OPS.
- Information about the correspondence between the mode and the color value relationship table so that the first system can obtain the color value relationship table and the information for indicating the corresponding relationship between each display mode and the color value relationship table.
- the above-mentioned determination of the first color value of the first system that matches the color handwriting information in the first display mode may also be obtained through model prediction or calculation.
- the above step 103 may include:
- the color handwriting information is input into the target color value prediction model to obtain the first color value, wherein the target color value prediction model is associated with the first display mode.
- the first color value can be obtained through the first color value prediction model associated with the first display mode, so that the manner in which the dual-system electronic device has determined the first color value is more flexible and diverse.
- each color value prediction model may be preset for different display modes, and each color value prediction model may be composed of a calculation formula with color information as input and color value as output; Alternatively, each color value prediction model may also be a model obtained by training a deep learning model through a large amount of labeled data of colors and color values.
- the display interface of the second system of the dual-system electronic device when the display interface of the second system of the dual-system electronic device is displayed in the form of a video stream under the first system, the frame rate used by the second system to transmit frame data to the first system
- the first color indicated by the color handwriting information is input into the target color value prediction model to obtain the first color value, which may include:
- the target frame rate and color handwriting information are input into the target color value prediction model to obtain the first color value.
- the first system of the dual-system electronic device uses the target frame rate and the color handwriting information as indicators for predicting or calculating the first color value at the same time, so that the determined The first color value is more accurate, so that the color corresponding to the obtained first color value is infinitely close to the first color. Therefore, it is avoided that the color difference between the handwriting on the first layer and the handwriting on the second layer is too large. Further improve the display quality of the display.
- the second layer of the first system displays the first color value of the first writing operation in the second color corresponding to the first color value.
- One stroke, the second stroke superimposed on the first stroke is displayed in the first color on the first layer of the second system.
- the canvas layer of the first system may display the handwriting of the first writing operation on its second layer, and display the first writing operation on the second layer.
- the manipulated handwriting is sent to the second system so that the second system displays it on its first layer, and the first handwriting displayed on the second layer overlays the second handwriting on the first layer.
- the second system since the speed of the second system to generate handwriting is usually slower than the speed of the first system to generate handwriting, that is, the second system has a certain delay in displaying the handwriting of the writing operation on its corresponding first layer, so the second system in the second system
- the second handwriting displayed on a layer may be part of the first handwriting, and of course, the second handwriting may also be all the first handwriting.
- the user writes the handwriting "one” in red, and the first color value corresponding to red in the standard mode is 255. Then, the layer (ie the second layer) in the Android system uses the color corresponding to 255 (ie the first color). Two colors) to display the handwriting "one", the layer (ie the first layer) of the Windows system displays a part of the "one” or the complete “one” (ie the second handwriting) of the handwriting written by the user in red.
- the above-mentioned dual-system electronic device display screen is in different display modes, because the image quality parameters of each display mode are different, and the same handwriting color display will also be different in different display modes of the display screen. Therefore, in the embodiment of the present application, the handwriting display color value of the display screen is determined according to the first color value matching the color handwriting information in the current display mode of the first system, and the accurate handwriting display color of the display screen can be obtained, In this way, the handwriting displayed on the display screen is prevented from having a large color difference.
- an embodiment of the present application provides a handwriting display device, which is applied to a first system of a dual-system electronic device.
- the handwriting display device 200 includes:
- the handwriting color information sending module 201 is used to obtain the handwriting color information of the second system in the case of receiving the input of the first writing operation in the display interface of the second system, wherein the handwriting color information is used to indicate the communication with the second system.
- the corresponding first layer displays the first color of the handwriting;
- the first display mode acquisition module 202 is used to acquire the first display mode of the display screen of the dual-system electronic device, wherein the first display mode is a display mode among N preset display modes, and different preset display modes have different
- the image quality parameter of , N is an integer greater than 1;
- a first color value determination module 203 configured to determine a first color value that matches the color handwriting information of the first system in the first display mode
- the handwriting display module 204 is used for the second layer to display the first handwriting of the first writing operation in a second color, wherein the second layer is a layer corresponding to the first system, and the second color is a layer with a first color value The color of the first handwriting and the second handwriting are superimposed, and the second handwriting is the handwriting displayed on the first layer by the second system based on the first writing operation.
- the note display device 200 may obtain the handwriting color information of the second system in the process of receiving the first writing operation input in the display interface of the second system, and then match the first writing operation based on the handwriting color information of the second system In the first display mode, the system displays the handwriting on the layer corresponding to the first system with the color value corresponding to the color information of the handwriting finally. In this way, it can be avoided that the handwriting of the first layer and the handwriting of the second layer have a large color difference, thereby improving the display quality of the handwriting displayed by the dual-system electronic device in displaying the writing operation.
- the first color value determination module 203 includes:
- the first color value relationship table determination unit is used to determine, among the N color value relationship tables of the first system, a first color value relationship table corresponding to the first display mode, wherein the N color value relationship tables are the same as the N color value relationship tables.
- the preset display modes are in one-to-one correspondence, and each color relationship table includes at least one set of mapping relationships between colors and color values;
- the first color value determination unit is configured to determine, in the first color value relationship table, a color value that has a mapping relationship with the first color indicated by the handwriting color information as the first color value.
- the first system of the note display device 200 may determine the above-mentioned first color value according to the corresponding relationship between the preset display mode and the color value relationship table, and the mapping relationship between colors and color values in the color value relationship table, so that the In the process of determining the first color value, the computational complexity is reduced, thereby improving the processing efficiency of the dual-system electronic device.
- the display device 200 for handwriting further includes:
- the second color value acquisition unit is configured to acquire the handwriting of the first layer displaying the second writing operation if the second writing operation is received when the display screen displays the display interface of the second system in the second display mode
- the second color value of wherein the second color handwriting is the color information of the third color used for the second system to display the handwriting
- the color and color value mapping relationship adding unit is used to add the mapping relationship between the second color and the second color value in the second color value relationship table in the first system, wherein the second color value relationship table and the second display mode corresponds.
- the note display device 200 may display the handwriting of the second writing operation according to the third color used by the second system during the second writing operation in the display interface history of the second system, and in the second display mode
- a second color value relationship table corresponding to the second display mode is established, so that the operation of constructing the color relationship table is more convenient, and the determined color value matching the color information of the handwriting is more suitable, further improving the dual The display quality of the handwriting displayed by the system electronics.
- the first color value determination module is specifically used for:
- the color handwriting information is input into the target color value prediction model to obtain the first color value, wherein the target color value prediction model is associated with the first display mode.
- the handwriting display apparatus 200 can obtain the first color value through the first color value prediction model associated with the first display mode, so that the manner in which the dual-system electronic device has determined the first color value is more flexible and diverse.
- the display device 200 for handwriting further includes:
- a target frame rate acquisition unit configured to acquire a target frame rate for displaying the display interface of the second system under the first system
- the first color value calculation unit is configured to input the target frame rate and the first color indicated by the color handwriting information into the color value prediction model in the first system to obtain the first color value.
- the first system of the handwriting display device 200 uses the above target frame rate and the color handwriting information as indicators for predicting or calculating the first color value, so as to determine the first color value.
- the first color value is more accurate, so that the color corresponding to the obtained first color value is infinitely close to the first color. Therefore, it is avoided that the color difference between the handwriting of the first layer and the handwriting of the second layer is too large. , to further improve the display quality of the display.
- the handwriting display device provided in the embodiment of the present application can implement each process implemented by the method embodiment in FIG. 1 , and to avoid repetition, details are not described here.
- FIG. 3 shows a schematic diagram of a hardware structure of a dual-system electronic device provided by an embodiment of the present application.
- the aforementioned dual-system electronic device includes a first system, and the first system may include a processor 301 and a memory 302 storing computer program instructions.
- the above-mentioned processor 301 may include a central processing unit (CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
- CPU central processing unit
- ASIC Application Specific Integrated Circuit
- Memory 302 may include mass storage for data or instructions.
- memory 302 may include a Hard Disk Drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a Universal Serial Bus (USB) drive or two or more A combination of more than one of the above.
- Memory 302 may include removable or non-removable (or fixed) media, where appropriate.
- Storage 302 may be internal or external to the integrated gateway disaster recovery device, where appropriate.
- memory 302 is non-volatile solid state memory.
- Memory may include read only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical/tangible memory storage devices.
- ROM read only memory
- RAM random access memory
- magnetic disk storage media devices e.g., magnetic disks
- optical storage media devices e.g., magnetic disks
- flash memory devices e.g., electrical, optical or other physical/tangible memory storage devices.
- a memory includes one or more tangible (non-transitory) computer-readable storage media (eg, memory devices) encoded with software including computer-executable instructions, and when the software is executed (eg, by a or multiple processors), it is operable to perform the operations described with reference to a method according to an aspect of the present application.
- the processor 301 reads and executes the computer program instructions stored in the memory 302 to implement any one of the handwriting display methods in the foregoing embodiments.
- the dual system electronic device may also include a communication interface 303 and a bus 310 .
- the processor 301 , the memory 302 , and the communication interface 303 are connected through the bus 310 and complete the communication with each other.
- the communication interface 303 is mainly used to implement communication between modules, apparatuses, units, and/or devices in the embodiments of the present application.
- the bus 310 includes hardware, software, or both, coupling the components of the online data flow metering device to each other.
- the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), HyperTransport (HT) Interconnect, Industry Standard Architecture (ISA) Bus, Infiniband Interconnect, Low Pin Count (LPC) Bus, Memory Bus, Microchannel Architecture (MCA) Bus, Peripheral Component Interconnect (PCI) Bus, PCI-Express (PCI-X) Bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or a combination of two or more of the above.
- Bus 310 may include one or more buses, where appropriate. Although embodiments of this application describe and illustrate a particular bus, this application contemplates any suitable bus or interconnect.
- the dual-system electronic device can acquire the handwriting color information of the second system and send it to the first system in the process of receiving the first writing operation input in the display interface of the second system, and then based on the handwriting of the second system
- the color information matches the color value corresponding to the handwriting color information in the first system in the first display mode, and finally displays the handwriting on the layer of the first system with the matched color value to perform the display of the handwriting in the embodiment of the present application method, so as to realize the method and device for displaying handwriting described in conjunction with FIG. 1 and FIG. 2 .
- the embodiments of the present application may provide a computer storage medium for implementation.
- Computer program instructions are stored on the computer storage medium; when the computer program instructions are executed by the processor, any one of the methods for displaying handwriting in the foregoing embodiments is implemented.
- Examples of computer storage media include non-transitory storage media such as read only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical/tangible memory storage device.
- the functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof.
- it When implemented in hardware, it may be, for example, an electronic circuit, an application specific integrated circuit (ASIC), suitable firmware, a plug-in, a function card, or the like.
- ASIC application specific integrated circuit
- elements of the present application are programs or code segments used to perform the required tasks.
- the program or code segments may be stored in a machine-readable medium or transmitted over a transmission medium or communication link by a data signal carried in a carrier wave.
- a "machine-readable medium” may include any medium that can store or transmit information.
- machine-readable media examples include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and the like.
- the code segments may be downloaded via a computer network such as the Internet, an intranet, or the like.
- processors may be, but are not limited to, general purpose processors, special purpose processors, application specific processors, or field programmable logic circuits. It will also be understood that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can also be implemented by special purpose hardware that performs the specified functions or actions, or that special purpose hardware and/or A combination of computer instructions is implemented.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
本申请公开了一种笔迹的显示方法、装置、电子设备及存储介质。该方法应用于双系统电子设备,方法包括:在接收到在第二系统的显示界面中输入第一书写操作的情况下,获取第二系统的笔迹颜色信息;获取双系统电子设备的显示屏的第一显示模式,第一显示模式为N种预设显示模式中的显示模式,且不同预设显示模式具有不同的图像质量参数;确定第一系统在第一显示模式下与颜色笔迹信息匹配的第一颜色值;在第二图层以第二颜色显示第一书写操作的第一笔迹。根据本申请实施例,能够解决目前电子设备在显示笔迹过程中出现笔迹质量较低的问题。
Description
相关申请的交叉引用
本申请要求享有于2020年12月25日提交的名称为“笔迹的显示方法、装置、电子设备及存储介质”的中国专利申请202011567157.4的优先权,该申请的全部内容通过引用并入本文中。
本申请涉及双系统电子设备技术领域,具体涉及一种笔迹的显示方法、装置、电子设备及存储介质。
智能交互平板等双系统电子设备有两个操作系统,即第一系统和第二系统,例如,第一系统可以是安卓系统且第二系统为Windows系统等。其中,目前双系统电子设备在第二系统下接收到用户输入的书写操作情况下,第二系统显示书写操作对应的笔迹,通常需要对书写操作的信号进行高清晰度多媒体接口(High Definition Multimedia Interface,HDMI)编码、传输以及HDMI解码等处理,繁琐且费时,从而导致笔迹显示的响应速度慢。
目前,为提升第二系统显示书写操作对应的笔迹的速度,通常是通过第一系统接收用户输入的书写操作,在第二系统的所述第二系统的显示界面中与第一系统对应的第一图层显示手写操作的笔迹,并将书写操作的笔迹发送至第二系统,以在所述第二系统的显示界面中与第二系统对应的第二图层显示书写操作的笔迹,且第一图层的笔迹和第二图层的笔迹重合。但是,在第一图层的笔迹和第二图层的笔迹可能出现颜色差异较大的情况,从而导致双系统电子设备显示笔迹的显示质量降低。
发明内容
本申请实施例提供一种笔迹的显示方法、装置、电子设备及存储介质,以解决目前电子设备在显示笔迹过程中出现笔迹质量较低的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供一种笔迹的显示方法,应用于双系统电子设备的第一系统,包括:
在接收到在所述双系统电子设备的第二系统的显示界面中输入第一书写操作的情况下,获取所述第二系统的笔迹颜色信息,其中,所述笔迹颜色信息用于指示与所述第二系统对应的第一图层显示笔迹的第一颜色;
获取所述双系统电子设备的显示屏的第一显示模式,其中,所述第一显示模式为N种预设显示模式中的显示模式,且不同预设显示模式具有不同的图像质量参数,所述N为大于1的整数;
确定所述第一系统在所述第一显示模式下与所述颜色笔迹信息匹配的第一颜色值;
在第二图层以第二颜色显示所述第一书写操作的第一笔迹,其中,所述第二图层为与所述第一系统对应的图层,所述第二颜色为具有所述第一颜色值的颜色,所述第一笔迹与第二笔迹叠设,且所述第二笔迹为所述第二系统基于所述第一书写操作在第一图层显示的笔迹。
第二方面,本申请实施例提供一种笔迹的显示装置,应用于双系统电子设备的第一系统,包括:
笔迹颜色信息发送模块,用于在接收到在所述双系统电子设备的第二系统的显示界面中输入第一书写操作的情况下,获取所述第二系统的笔迹颜色信息,其中,所述笔迹颜色信息用于指示与所述第二系统对应的第一图层显示笔迹的第一颜色;
第一显示模式获取模块,用于获取所述双系统电子设备的显示屏的第一显示模式,其中,所述第一显示模式为N种预设显示模式中的显示模式,且不同预设显示模式具有不同的图像质量参数,所述N为大于1的整数;
第一颜色值确定模块,用于确定所述第一系统在所述第一显示模式下 与所述颜色笔迹信息匹配的第一颜色值;
笔迹显示模块,用于在第二图层以第二颜色显示所述第一书写操作的第一笔迹,其中,所述第二图层为与所述第一系统对应的图层,所述第二颜色为具有所述第一颜色值的颜色,所述第一笔迹与第二笔迹叠设,且所述第二笔迹为所述第二系统基于所述第一书写操作在第一图层显示的笔迹。
第三方面,本申请实施例提供了一种双系统电子设备,包括第一系统,该第一系统包括:
处理器;
用于存储所述处理器可执行指令的存储器;
其中,所述处理器被配置为执行所述指令,以实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种计算机存储介质,所述计算机存储介质上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现如第一方面所述的方法的步骤。
在本申请实施例中,在接收到在第二系统的显示界面中输入第一书写操作的过程中,第一系统获取第二系统的笔迹颜色信息,然后基于第二系统的笔迹颜色信息匹配第一系统在第一显示模式下与笔迹颜色信息所对应的颜色值,最终以匹配到的颜色值在第一系统的图层上显示笔迹。如此,通过本申请实施例,可以避免在第一图层的笔迹和第二图层的笔迹出现颜色差异较大的情况,从而提升双系统电子设备显示在显示书写操作的笔迹的显示质量。
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单的介绍,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种笔迹的显示方法的流程示意图;
图2是本申请实施例提供的一种笔迹的显示装置的结构示意图;
图3是本申请实施例提供的一种双系统电子设备的硬件结构示意图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一书写操作可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体地实施例及其应用场景对本申请实施例提供的笔迹的显示方法进行详细地说明。
请参见图1,本申请实施例提供一种笔迹的显示方法,该笔迹的显示方法应用于双系统电子设备的第一系统,如图1所示,方法包括如下步骤:
步骤101、在接收到在第二系统的显示界面中输入第一书写操作的情况下,获取第二系统的笔迹颜色信息,其中,笔迹颜色信息用于指示与第二系统对应的第一图层显示笔迹的第一颜色;
步骤102、获取双系统电子设备的显示屏的第一显示模式,其中,第一显示模式为N种预设显示模式中的显示模式,且不同预设显示模式具有不同的图像质量参数,N为大于1的整数;
步骤103、确定第一系统在第一显示模式下与颜色笔迹信息匹配的第一颜色值;
步骤104、在第二图层以第二颜色显示第一书写操作的第一笔迹,其 中,第二图层为与第一系统对应的图层,第二颜色为具有第一颜色值的颜色,第一笔迹与第二笔迹叠设,且第二笔迹为第二系统基于第一书写操作在第一图层显示的笔迹。
在本申请实施例中,在接收到在第二系统的显示界面中输入第一书写操作的过程中,第一系统获取第二系统的笔迹颜色信息,然后基于第二系统的笔迹颜色信息匹配第一系统在第一显示模式下与笔迹颜色信息所对应的颜色值,最终以匹配到的颜色值在与第一系统的对应图层上显示笔迹。如此,通过本申请实施例,可以避免在第一图层的笔迹和第二图层的笔迹出现颜色差异较大的情况,从而提升双系统电子设备显示在显示书写操作的笔迹的显示质量。
需要说明的是,上述双系统电子设备包括显示屏、第一系统第二系统,显示屏用于显示第一系统或者第二系统的显示界面,以及,接收用户输入的操作(如书写操作等);第一系统和第二系统可以理解为分别设置有不同操作系统的设备或者装置,第一系统和第二系统均设置有处理器以及存储器以实现独立运行。上述第一系统和第二系统的操作系统可以是包括Windows系统或者Android系统。具体地,上述第一系统为设置Android系统的设备或者装置(后续简称“第一系统为Android系统”)且上述第二系统为设置Windows系统的设备或者装置(后续简称“第二系统为Windows系统”)。
其中,上述第一系统可以是上述双系统电子设备的主系统,且第二系统可以是双系统电子设备的辅系统,双系统电子设备的显示屏在显示第二系统的显示界面的情况下,实际上是第二系统的显示界面以视频流的形式在第一系统下进行显示,即双系统电子设备通过高清多媒体接口(High Definition Multimedia Interface,HDMI)将第二系统的显示界面编码后的帧数据并传输至第一系统,第一系统对接收到的帧数据进行解码后,将第二系统的显示界面在双系统电子设备的显示屏中进行显示。
另外,在第一系统下显示第二系统的显示界面的情况下,第一系统在第一显示界面中设置有第一图层和第二图层,第一图层用于显示第二系统的图像,而第二图层用于显示第一系统的图像,且第二图层可以是以透明 形式覆盖于第一图层上。
在上述步骤101中,在双系统电子设备的显示屏中显示有第二系统的显示界面的情况下,若双系统电子设备接收到用户在第二系统的显示界面中输入第一书写操作,则双系统电子设备的第二系统可以获取到用于指示其显示笔迹所采用的第一颜色的笔迹颜色信息,并将获取到的笔迹颜色信息发送给第一系统,第一系统可以获取到第二系统的笔迹颜色信息。
本申请实施例中,上述笔迹颜色信息可以是任何用于指示第二系统当前显示笔迹所采用的第一颜色的信息,具体地,该第一颜色信息可以包括第一颜色的名称和序号等中的至少一项。
其中,上述第一颜色可以是双系统电子设备在接收到上述第一书写操作之前,根据用户输入的颜色选择操作确定的颜色,且该颜色选择操作可以是在第二系统下的至少一种预设颜色中选取颜色的操作,或者,也可以是调节颜色值(如RGB)以生成新的颜色的操作。
另外,在第二系统获取到上述颜色笔迹信息之后,上述第二系统可以是通过开放式拔插电脑规范(Open Pluggable Specification,OPS)将上述笔迹颜色信息发送至上述第一系统。
在此,以第一系统为Android系统,第二系统为Windows系统为例,在双系统电子设备接收到在Windows系统的显示界面书写“一”(即第一书写操作)的操作的情况下,且Windows系统设置的笔迹显示颜色为红色(即第一颜色),此时,Windows系统可以获取到笔迹颜色信息为“红色”,并将获取到的笔迹颜色信息通过OPS发送给Android系统。
在上述步骤102中,在第一系统获取到第二系统发送的笔迹颜色信息之后,第一系统可以获取到双系统电子设备的显示屏当前的第一显示模式。
其中,上述第一显示模式可以是预先设置的多种显示模式中的一种,且上述多种显示模式中,不同显示模式具有不同的图像质量参数,该图像质量参数可以包括对比度、亮度、饱和度以及色温等中的至少一项。
例如,双系统电子设备的显示屏中预设有标准模式、明亮模式、鲜艳模式以及护眼模式等显示模式,在显示屏当前的显示模式为明亮模式情况 下,上述第一系统可以将明亮模式作为上述第一显示模式。
在上述步骤103中,在获取到双系统电子设备显示屏当前的第一显示模式的情况下,双系统电子设备的第一系统可以根据上述颜色笔迹信息,得到在第一显示模式下与笔迹颜色信息相匹配的第一颜色值。
需要说明的是,由于在不同的显示模式下,人眼对于颜色的感知存在差异,即对于同一颜色值,在不同显示模式下会发生细微的色差,那么,用户在不同显示模式下所观察的同一颜色,实际在不同模式下所对应的颜色值不同。
例如,在标准显示模式中,红色所对应的颜色值是(255,0,0),但是在明亮显示模式下,由于受到显示屏的亮度等因素影响,使用(255,0,0)显示的“红色”和标准显示模式下的存在差异,因此,在明亮显示模式下,要想显示一样的红色,那么对应的颜色值可能为(205,0,0)。
本申请实施例中,上述在第一显示模式下与上述颜色笔迹信息匹配的第一颜色值,可以是双系统电子设备的第一系统根据预设的规则或者方法实现。具体地,上述步骤103,可以包括:
在第一系统的N个颜色值关系表中,确定与第一显示模式对应的第一颜色值关系表,其中,N个颜色值关系表与N种预设显示模式一一对应,且每一颜色关系表包括至少一组颜色与颜色值的映射关系;
在第一颜色值关系表中,确定与笔迹颜色信息所指示的第一颜色存在映射关系的颜色值为第一颜色值。
这里,上述双系统电子设备的第一系统可以根据预设的显示模式与颜色值关系表的对应关系,以及颜色值关系表中颜色与颜色值的映射关系,确定上述第一颜色值,从而使确定上述第一颜色值的过程中运算复杂度降低,进而提升双系统电子设备的处理效率。
在本申请实施例中,双系统电子设备的显示屏预设的多种显示模式中,每一种显示模式都对应一个颜色值关系表,每一个颜色值关系表中包含至少一组颜色和与其颜色对应的颜色值,因此,通过当前显示模式下对应的颜色值关系表,则可以匹配出和第一书写操作的笔迹颜色信息中的颜色对应的颜色值,即第一颜色值。
例如,假设预设标准显示模式与颜色值关系表1对应,且颜色值关系表1包括红色和(255,0,0)的映射关系;以及,预设明亮显示模式与颜色值关系表2对应,且颜色关系表2包括红色和(205,0,0)的映射关系.那么,在上述笔迹颜色信息为“红色”且显示屏处于标准显示模式(即目标显示模式)的情况下,上述第一系统在确定颜色值关系表1(即第一颜色值关系表)中的颜色值(255,0,0)(即第一颜色值)与“红色”匹配;或者,在上述笔迹颜色信息为“红色”且显示屏处于明亮显示模式(即目标显示模式)的情况下,上述第一系统在确定颜色值关系表2(即第一颜色值关系表)中的颜色值(205,0,0)(即第一颜色值)与“红色”匹配。
另外,上述双系统电子设备可以根据用户在第二系统的书写操作习惯,第二系统预先将书写时常用的几种颜色在各个显示模式对应的颜色值关系表中建立档案,即添加颜色及颜色值的映射关系。例如,用户常用黑、白、红、黄、绿、蓝等颜色书写笔迹,则可以在预设的多个显示模式所对应的颜色值关系表中分别添加黑、白、红、黄、绿、蓝等颜色和所对应的颜色值。
需要说明的是,上述映射关系的建立可以是双系统电子设备根据用户的操作实现;或者,在上述步骤103之前,上述方法还可以包括;
在显示屏在第二显示模式下显示第二系统的显示界面的情况下,若接收到第二书写操作,则获取第一图层显示第二书写操作的笔迹的第二颜色值,其中,第二颜色笔迹为用于第二系统显示笔迹的第三颜色的颜色信息;
在第一系统中的第二颜色值关系表中,添加第三颜色与第二颜色值的映射关系,其中,第二颜色值关系表与第二显示模式对应。
这里,双系统电子设备可以在第二系统的显示界面历史进行第二书写操作的过程中,根据第二系统显示第二书写操作的笔迹所采用的第三颜色,以及第三颜色在第二显示模式下的颜色值,建立与第二显示模式对应的第二颜色值关系表,从而使构建颜色关系表的操作更便捷,且确定的与笔迹颜色信息匹配的颜色值更合适,进一步提升双系统电子设备显示笔迹 的显示质量。
例如,当前显示屏处于标准显示模式(即第二显示模式)的情况下,双系统电子设备的画布层接收到用户在Windows系统(即第二系统)的显示界面中使用黑色(即第二颜色)书写笔迹(即第二书写操作)时,若此时第二系统获取到书写笔迹的颜色黑色所对应的颜色值为(0,0,0)(即第二颜色值),则在标准显示模式对应的颜色值关系表(即第二颜色值关系表)中添加黑色与(0,0,0)的映射关系;
或者,当前显示屏处于柔和显示模式(即第二显示模式)的情况下,双系统电子设备的画布层接收到用户在Windows系统(即第二系统)的显示界面中使用黑色(即第二颜色)书写笔迹(即第二书写操作)时,若此时第二系统获取到书写笔迹的颜色黑色所对应的颜色值为(10,10,10)(即第二颜色值),则在柔和显示模式对应的颜色值关系表(即第二颜色值关系表)中添加黑色与(10,10,10)的映射关系,等等。
需要说明的是,上述第二系统获取到与各显示模式对应的颜色值关系表之后,可以通过OPS向第一系统发送指示信息,该指示信息可以携带有颜色值关系表以及用于指示各显示模式与颜色值关系表的对应关系的信息,以使第一系统获取到颜色值关系表以及用于指示各显示模式与颜色值关系表的对应关系的信息。
当然,上述确定第一系统在第一显示模式下与颜色笔迹信息匹配的第一颜色值,也可以是通过模型预测或者计算得到。具体地,上述步骤103,可以包括:
在第一系统中,将颜色笔迹信息输入至目标颜色值预测模型中,得到第一颜色值,其中,目标颜色值预测模型与第一显示模式关联。
这里,可以通过与第一显示模式关联的第一颜色值预测模型得到上述第一颜色值,从而使双系统电子设备确定过上述第一颜色值的方式更灵活多样。
需要说明的是,上述第一系统中可以针对不同的显示模式预设有不同的颜色值预测模型,且各颜色值预测模型可以是由以颜色信息作为输入且颜色值作为输出的计算公式组成;或者,各颜色值预测模型也可以是通过 大量的颜色与颜色值的标注数据,对深度学习模型进行训练得到的模型。
另外,在本申请实施例中,双系统电子设备的第二系统的显示界面以视频流的形式在第一系统下显示的情况下,第二系统向第一系统传输帧数据所采用的帧率对显示的笔迹颜色,即不同帧率下同一颜色的颜色值不同。因此,上述在第一系统中,将颜色笔迹信息所指示的第一颜色输入至目标颜色值预测模型中,得到第一颜色值,可以包括:
获取在第一系统下显示第二系统的显示界面的目标帧率;
在第一系统中,将目标帧率以及颜色笔迹信息输入至目标颜色值预测模型中,得到第一颜色值。
这里,双系统电子设备的第一系统在确定笔迹颜色信息对应的第一颜色值的过程中,将上述目标帧率以及颜色笔迹信息同时作为预测或者计算第一颜色值的指标,从而使确定的第一颜色值更准确,使得得出的第一颜色值所对应的颜色无限接近于第一颜色,因此,避免了在第一图层的笔迹和第二图层的笔迹显示颜色差异过大,进一步提升显示屏的显示质量。
在上述步骤104中,在确定与笔迹颜色信息相匹配的第一颜色值的情况下,在第一系统的第二图层以第一颜色值所对应的第二颜色显示第一书写操作的第一笔迹,在第二系统的第一图层以第一颜色显示和第一笔迹叠设的第二笔迹。
本申请实施例中,在双系统电子设备接收到第一书写操作过程中,第一系统的画布层可以是将第一书写操作的笔迹在其第二图层上进行显示,并将第一书写操作的笔迹发送至第二系统,以使第二系统在其第一图层上进行显示,且第二图层显示的第一笔迹覆盖第一图层上的第二笔迹。
其中,由于第二系统生成笔迹的速度通常比第一系统生成笔迹的速度慢,即第二系统在其对应的第一图层显示书写操作的笔迹存在一定延时,故在第二系统的第一图层显示的第二笔迹可以为第一笔迹的部分笔迹,当然,第二笔迹也可以为第一笔迹的全部笔迹。
用户使用红色书写笔迹“一”,匹配出在标准模式下红色所对应的第一颜色值为255,那么,在Android系统的图层(即第二图层)以255所对应的颜色(即第二颜色)来显示笔迹“一”,在Windows系统的图层(即 第一图层)以红色显示用户书写的笔迹的一部分的“一”或者完整的“一”(即第二笔迹)。
这里,上述双系统电子设备显示屏在不同的显示模式下,因为每一个显示模式的图像质量参数不同,在显示屏不同的显示模式下,相同的笔迹颜色显示也会存在差异。因此,在本申请实施例中,根据第一系统在当前显示模式下与颜色笔迹信息匹配的第一颜色值,来确定显示屏的笔迹显示颜色值,可以得到准确的显示屏的笔迹显示颜色,进而避免显示屏显示的笔迹出现颜色差异较大的情况。
请参见图2,本申请实施例提供一种笔迹的显示装置,应用于双系统电子设备的第一系统,如图2所示,该笔迹的显示装置200包括:
笔迹颜色信息发送模块201,用于在接收到在第二系统的显示界面中输入第一书写操作的情况下,获取第二系统的笔迹颜色信息,其中,笔迹颜色信息用于指示与第二系统对应的第一图层显示笔迹的第一颜色;
第一显示模式获取模块202,用于获取双系统电子设备的显示屏的第一显示模式,其中,第一显示模式为N种预设显示模式中的显示模式,且不同预设显示模式具有不同的图像质量参数,N为大于1的整数;
第一颜色值确定模块203,用于确定第一系统在第一显示模式下与颜色笔迹信息匹配的第一颜色值;
笔迹显示模块204,用于第二图层以第二颜色显示第一书写操作的第一笔迹,其中,第二图层为与第一系统对应的图层,第二颜色为具有第一颜色值的颜色,第一笔迹与第二笔迹叠设,且第二笔迹为第二系统基于第一书写操作在第一图层显示的笔迹。
这里,笔记的显示装置200可以通过在接收到在第二系统的显示界面中输入第一书写操作的过程中,获取第二系统的笔迹颜色信息,然后基于第二系统的笔迹颜色信息匹配第一系统在第一显示模式下与笔迹颜色信息所对应的颜色值,最终以匹配到的颜色值在与第一系统对应的图层上显示笔迹。如此,可以避免在第一图层的笔迹和第二图层的笔迹出现颜色差异较大的情况,从而提升双系统电子设备显示在显示书写操作的笔迹的显示质量。
可选的,第一颜色值确定模块203,包括:
第一颜色值关系表确定单元,用于在第一系统的N个颜色值关系表中,确定与第一显示模式对应的第一颜色值关系表,其中,N个颜色值关系表与N种预设显示模式一一对应,且每一颜色关系表包括至少一组颜色与颜色值的映射关系;
第一颜色值确定单元,用于在第一颜色值关系表中,确定与笔迹颜色信息所指示的第一颜色存在映射关系的颜色值为第一颜色值。
这里,笔记的显示装置200的第一系统可以根据预设的显示模式与颜色值关系表的对应关系,以及颜色值关系表中颜色与颜色值的映射关系,确定上述第一颜色值,从而使确定上述第一颜色值的过程中运算复杂度降低,进而提升双系统电子设备的处理效率。
可选的,笔迹的显示装置200,还包括:
第二颜色值获取单元,用于在显示屏在第二显示模式下显示第二系统的显示界面的情况下,若接收到第二书写操作,则获取第一图层显示第二书写操作的笔迹的第二颜色值,其中,第二颜色笔迹为用于第二系统显示笔迹的第三颜色的颜色信息;
颜色及颜色值映射关系添加单元,用于在第一系统中的第二颜色值关系表中,添加第二颜色与第二颜色值的映射关系,其中,第二颜色值关系表与第二显示模式对应。
这里,笔记的显示装置200可以在第二系统的显示界面历史进行第二书写操作的过程中,根据第二系统显示第二书写操作的笔迹所采用的第三颜色,以及在第二显示模式下第三颜色的颜色值,建立与第二显示模式对应的第二颜色值关系表,从而使构建颜色关系表的操作更便捷,且确定的与笔迹颜色信息匹配的颜色值更合适,进一步提升双系统电子设备显示笔迹的显示质量。
可选的,第一颜色值确定模块,具体用于:
在第一系统中,将颜色笔迹信息输入至目标颜色值预测模型中,得到第一颜色值,其中,目标颜色值预测模型与第一显示模式关联。
这里,笔迹的显示装置200可以通过与第一显示模式关联的第一颜色 值预测模型得到上述第一颜色值,从而使双系统电子设备确定过上述第一颜色值的方式更灵活多样。
可选的,笔迹的显示装置200,还包括:
目标帧率获取单元,用于获取在第一系统下显示第二系统的显示界面的目标帧率;
第一颜色值计算单元,用于在第一系统中,将目标帧率以及颜色笔迹信息所指示的第一颜色输入至颜色值预测模型中,得到第一颜色值。
这里,笔迹的显示装置200的第一系统在确定笔迹颜色信息对应的第一颜色值的过程中,将上述目标帧率以及颜色笔迹信息同时作为预测或者计算第一颜色值的指标,从而使确定的第一颜色值更准确,使得得出的第一颜色值所对应的颜色无限接近于第一颜色,因此,避免了在第一图层的笔迹和第二图层的笔迹显示颜色差异过大,进一步提升显示屏的显示质量。
本申请实施例提供的笔迹的显示装置能够实现图1的方法实施例实现的各个过程,为避免重复,这里不再赘述。
图3示出了本申请实施例提供的双系统电子设备的硬件结构示意图。
上述双系统电子设备包括第一系统,且第一系统可以包括处理器301以及存储有计算机程序指令的存储器302。
具体地,上述处理器301可以包括中央处理器(CPU),或者特定集成电路(Application Specific Integrated Circuit,ASIC),或者可以被配置成实施本申请实施例的一个或多个集成电路。
存储器302可以包括用于数据或指令的大容量存储器。举例来说而非限制,存储器302可包括硬盘驱动器(Hard Disk Drive,HDD)、软盘驱动器、闪存、光盘、磁光盘、磁带或通用串行总线(Universal Serial Bus,USB)驱动器或者两个或更多个以上这些的组合。在合适的情况下,存储器302可包括可移除或不可移除(或固定)的介质。在合适的情况下,存储器302可在综合网关容灾设备的内部或外部。在特定实施例中,存储器302是非易失性固态存储器。
存储器可包括只读存储器(ROM),随机存取存储器(RAM),磁 盘存储介质设备,光存储介质设备,闪存设备,电气、光学或其他物理/有形的存储器存储设备。因此,通常,存储器包括一个或多个编码有包括计算机可执行指令的软件的有形(非暂态)计算机可读存储介质(例如,存储器设备),并且当该软件被执行(例如,由一个或多个处理器)时,其可操作来执行参考根据本申请的一方面的方法所描述的操作。
处理器301通过读取并执行存储器302中存储的计算机程序指令,以实现上述实施例中的任意一种笔迹的显示方法。
在一个示例中,双系统电子设备还可包括通信接口303和总线310。其中,如图3所示,处理器301、存储器302、通信接口303通过总线310连接并完成相互间的通信。
通信接口303,主要用于实现本申请实施例中各模块、装置、单元和/或设备之间的通信。
总线310包括硬件、软件或两者,将在线数据流量计费设备的部件彼此耦接在一起。举例来说而非限制,总线可包括加速图形端口(AGP)或其他图形总线、增强工业标准架构(EISA)总线、前端总线(FSB)、超传输(HT)互连、工业标准架构(ISA)总线、无限带宽互连、低引脚数(LPC)总线、存储器总线、微信道架构(MCA)总线、外围组件互连(PCI)总线、PCI-Express(PCI-X)总线、串行高级技术附件(SATA)总线、视频电子标准协会局部(VLB)总线或其他合适的总线或者两个或更多个以上这些的组合。在合适的情况下,总线310可包括一个或多个总线。尽管本申请实施例描述和示出了特定的总线,但本申请考虑任何合适的总线或互连。
该双系统电子设备可以在接收到在第二系统的显示界面中输入第一书写操作的过程中,获取第二系统的笔迹颜色信息并将其发送至第一系统,然后基于第二系统的笔迹颜色信息匹配第一系统在第一显示模式下与笔迹颜色信息所对应的颜色值,最终以匹配到的颜色值在第一系统的图层上显示笔迹执行本申请实施例中的在笔迹的显示方法,从而实现结合图1和图2描述的笔迹的显示方法和装置。
另外,结合上述实施例中的笔迹的显示方法,本申请实施例可提供一 种计算机存储介质来实现。该计算机存储介质上存储有计算机程序指令;该计算机程序指令被处理器执行时实现上述实施例中的任意一种笔迹的显示方法。计算机存储介质的示例包括非暂态存储介质,如只读存储器(ROM),随机存取存储器(RAM),磁盘存储介质设备,光存储介质设备,闪存设备,电气、光学或其他物理/有形的存储器存储设备。
需要明确的是,本申请并不局限于上文所描述并在图中示出的特定配置和处理。为了简明起见,这里省略了对已知方法的详细描述。在上述实施例中,描述和示出了若干具体的步骤作为示例。但是,本申请的方法过程并不限于所描述和示出的具体步骤,本领域的技术人员可以在领会本申请的精神后,作出各种改变、修改和添加,或者改变步骤之间的顺序。
以上所述的结构框图中所示的功能块可以实现为硬件、软件、固件或者它们的组合。当以硬件方式实现时,其可以例如是电子电路、专用集成电路(ASIC)、适当的固件、插件、功能卡等等。当以软件方式实现时,本申请的元素是被用于执行所需任务的程序或者代码段。程序或者代码段可以存储在机器可读介质中,或者通过载波中携带的数据信号在传输介质或者通信链路上传送。“机器可读介质”可以包括能够存储或传输信息的任何介质。机器可读介质的例子包括电子电路、半导体存储器设备、ROM、闪存、可擦除ROM(EROM)、软盘、CD-ROM、光盘、硬盘、光纤介质、射频(RF)链路,等等。代码段可以经由诸如因特网、内联网等的计算机网络被下载。
还需要说明的是,本申请中提及的示例性实施例,基于一系列的步骤或者装置描述一些方法或系统。但是,本申请不局限于上述步骤的顺序,也就是说,可以按照实施例中提及的顺序执行步骤,也可以不同于实施例中的顺序,或者若干步骤同时执行。
上面参考根据本申请的实施例的方法、装置、双系统电子设备和计算机程序产品的流程图和/或框图描述了本申请的各方面。应当理解,流程图和/或框图中的每个方框以及流程图和/或框图中各方框的组合可以由计算机程序指令实现。这些计算机程序指令可被提供给通用计算机、专用计算机、或其它可编程数据处理装置的处理器,以产生一种机器,使得经由计 算机或其它可编程数据处理装置的处理器执行的这些指令使能对流程图和/或框图的一个或多个方框中指定的功能/动作的实现。这种处理器可以是但不限于是通用处理器、专用处理器、特殊应用处理器或者现场可编程逻辑电路。还可理解,框图和/或流程图中的每个方框以及框图和/或流程图中的方框的组合,也可以由执行指定的功能或动作的专用硬件来实现,或可由专用硬件和计算机指令的组合来实现。
以上所述,仅为本申请的具体实施方式,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、模块和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。应理解,本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。
Claims (10)
- 一种笔迹的显示方法,应用于双系统电子设备的第一系统,所述方法包括:在接收到在所述双系统电子设备的第二系统的显示界面中输入第一书写操作的情况下,获取所述第二系统的笔迹颜色信息,其中,所述笔迹颜色信息用于指示与所述第二系统对应的第一图层显示笔迹的第一颜色;获取所述双系统电子设备的显示屏的第一显示模式,其中,所述第一显示模式为N种预设显示模式中的显示模式,且不同预设显示模式具有不同的图像质量参数,所述N为大于1的整数;确定所述第一系统在所述第一显示模式下与所述颜色笔迹信息匹配的第一颜色值;在第二图层以第二颜色显示所述第一书写操作的第一笔迹,其中,所述第二图层为与所述第一系统对应的图层,所述第二颜色为具有所述第一颜色值的颜色,所述第一笔迹与第二笔迹叠设,且所述第二笔迹为所述第二系统基于所述第一书写操作在第一图层显示的笔迹。
- 根据权利要求1所述的方法,其中,所述确定所述第一系统在所述第一显示模式下与所述颜色笔迹信息匹配的第一颜色值,包括:在所述第一系统的N个颜色值关系表中,确定与所述第一显示模式对应的第一颜色值关系表,其中,所述N个颜色值关系表与所述N种预设显示模式一一对应,且每一颜色关系表包括至少一组颜色与颜色值的映射关系;在所述第一颜色值关系表中,确定与所述笔迹颜色信息所指示的第一颜色存在映射关系的颜色值为第一颜色值。
- 根据权利要求2所述的方法,其中,所述在第一系统的N个颜色值关系表中,确定与所述第一显示模式对应的第一颜色值关系表之前,还包括:在所述显示屏在第二显示模式下显示所述第二系统的显示界面的情况下,若接收到第二书写操作,则获取所述第一图层显示所述第二书写操作 的笔迹的第二颜色值,其中,所述第二颜色笔迹为用于所述第二系统显示笔迹的第三颜色的颜色信息;在所述第一系统中的第二颜色值关系表中,添加所述第三颜色与所述第二颜色值的映射关系,其中,所述第二颜色值关系表与所述第二显示模式对应。
- 根据权利要求1所述的方法,其中,所述确定所述第二系统在所述第一显示模式下与所述颜色笔迹信息匹配的第一颜色值,包括:在所述第一系统中,将所述颜色笔迹信息输入至目标颜色值预测模型中,得到第一颜色值,其中,所述目标颜色值预测模型与所述第一显示模式关联。
- 根据权利要求4所述的方法,其中,所述在所述第一系统中将所述颜色笔迹信息所指示的第一颜色输入至预设的颜色值预测模型中,得到第一颜色值,包括:获取在所述第一系统下显示所述第二系统的显示界面的目标帧率;在所述第一系统中,将所述目标帧率以及所述颜色笔迹信息输入至所述目标颜色值预测模型中,得到第一颜色值。
- 一种笔迹的显示装置,应用于双系统电子设备的第一系统,所述装置包括:笔迹颜色信息发送模块,用于在接收到在所述双系统电子设备的第二系统的显示界面中输入第一书写操作的情况下,获取所述第二系统的笔迹颜色信息,其中,所述笔迹颜色信息用于指示与所述第二系统对应的第一图层显示笔迹的第一颜色;第一显示模式获取模块,用于获取所述双系统电子设备的显示屏的第一显示模式,其中,所述第一显示模式为N种预设显示模式中的显示模式,且不同预设显示模式具有不同的图像质量参数,所述N为大于1的整数;第一颜色值确定模块,用于确定所述第一系统在所述第一显示模式下与所述颜色笔迹信息匹配的第一颜色值;笔迹显示模块,用于在第二图层以第二颜色显示所述第一书写操作的 第一笔迹,其中,所述第二图层为与所述第一系统对应的图层,所述第二颜色为具有所述第一颜色值的颜色,所述第一笔迹与第二笔迹叠设,且所述第二笔迹为所述第二系统基于所述第一书写操作在第一图层显示的笔迹。
- 根据权利要求6所述的装置,其中,所述第一颜色值确定模块,包括:第一颜色值关系表确定单元,用于在所述第一系统的N个颜色值关系表中,确定与所述第一显示模式对应的第一颜色值关系表,其中,所述N个颜色值关系表与所述N种预设显示模式一一对应,且每一颜色关系表包括至少一组颜色与颜色值的映射关系;第一颜色值确定单元,用于在所述第一颜色值关系表中,确定与所述笔迹颜色信息所指示的第一颜色存在映射关系的颜色值为第一颜色值。
- 根据权利要求6所述的装置,其中,所述第一颜色值确定模块,具体用于:在所述第一系统中,将所述颜色笔迹信息输入至目标颜色值预测模型中,得到第一颜色值,其中,所述目标颜色值预测模型与所述第一显示模式关联。
- 一种双系统电子设备,包括第一系统,所述第一系统包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现如权利要求1至5中任一项所述的笔迹的显示方法。
- 一种计算机存储介质,所述存储介质上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现如权利要求1-5任意一项所述的笔迹的显示方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011567157 | 2020-12-25 | ||
CN202011567157.4 | 2020-12-25 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022134181A1 true WO2022134181A1 (zh) | 2022-06-30 |
Family
ID=82158738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/141777 WO2022134181A1 (zh) | 2020-12-25 | 2020-12-30 | 笔迹的显示方法、装置、电子设备及存储介质 |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2022134181A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024113630A1 (zh) * | 2022-12-02 | 2024-06-06 | 北京鸿合爱学教育科技有限公司 | 加速书写方法、装置、电子设备及计算机可读存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107450831A (zh) * | 2017-07-21 | 2017-12-08 | 广州视源电子科技股份有限公司 | 基于双系统的笔迹显示处理方法和系统、存储介质及设备 |
CN107450833A (zh) * | 2017-07-21 | 2017-12-08 | 广州视源电子科技股份有限公司 | 基于双系统的笔迹书写设置方法和系统、存储介质及设备 |
CN108958630A (zh) * | 2018-07-06 | 2018-12-07 | 广州视源电子科技股份有限公司 | 书写内容显示方法、装置及电子设备 |
US20200133409A1 (en) * | 2018-10-27 | 2020-04-30 | Synaptics Incorporated | Single-layer sensor array scan |
-
2020
- 2020-12-30 WO PCT/CN2020/141777 patent/WO2022134181A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107450831A (zh) * | 2017-07-21 | 2017-12-08 | 广州视源电子科技股份有限公司 | 基于双系统的笔迹显示处理方法和系统、存储介质及设备 |
CN107450833A (zh) * | 2017-07-21 | 2017-12-08 | 广州视源电子科技股份有限公司 | 基于双系统的笔迹书写设置方法和系统、存储介质及设备 |
CN108958630A (zh) * | 2018-07-06 | 2018-12-07 | 广州视源电子科技股份有限公司 | 书写内容显示方法、装置及电子设备 |
US20200133409A1 (en) * | 2018-10-27 | 2020-04-30 | Synaptics Incorporated | Single-layer sensor array scan |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024113630A1 (zh) * | 2022-12-02 | 2024-06-06 | 北京鸿合爱学教育科技有限公司 | 加速书写方法、装置、电子设备及计算机可读存储介质 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111858318B (zh) | 一种响应时间的测试方法、装置、设备和计算机存储介质 | |
CN103871383A (zh) | 显示设备、显示面板驱动器和显示设备的操作方法 | |
US10235596B2 (en) | System and method for transferring data using image code, outputting image code on display device, and decoding image code | |
EP4439446A2 (en) | Electronic apparatus and control method thereof | |
WO2022134181A1 (zh) | 笔迹的显示方法、装置、电子设备及存储介质 | |
CN113220118B (zh) | 虚拟界面展示方法、头戴式显示设备和计算机可读介质 | |
WO2017107426A1 (zh) | 图像处理方法、装置、设备及非易失性计算机存储介质 | |
KR20080041904A (ko) | 문자 처리 장치 및 방법 | |
EP4280601A1 (en) | Image processing method and apparatus, and electronic device | |
WO2017107424A1 (zh) | 图像处理方法、装置、设备及非易失性计算机存储介质 | |
EP3240291A1 (en) | Content providing apparatus, display apparatus and control method therefor | |
WO2022134179A1 (zh) | 目标区域的设置方法、装置、电子设备及存储介质 | |
CN105336306B (zh) | 一种色温调整方法及电子设备 | |
US10251057B2 (en) | Authentication for device connection using visible patterns | |
US11011096B2 (en) | Self-diagnostic imaging method, self-diagnostic imaging program, display device, and self-diagnostic imaging system | |
EP2955712A1 (en) | Image processing apparatus and method | |
WO2022134180A1 (zh) | 笔迹的显示方法、装置、电子设备及存储介质 | |
US11336905B2 (en) | Storing index information for pixel combinations with similarity to a pixel to replace the pixel information | |
US10157335B2 (en) | Information processing apparatus and non-transitory computer readable medium | |
US11275924B2 (en) | Eye-protection mode processing method, device, terminal and computer-readable storage medium in fingerprint recognition mode | |
CN106454304A (zh) | 白平衡的调节方法及装置 | |
US20180191998A1 (en) | Video communication method and system | |
CN113691866B (zh) | 视频处理方法、装置、电子设备和介质 | |
US20240314866A1 (en) | Online pairing method and computer-readable storage medium | |
CN117640907A (zh) | 一种投屏方法、装置、设备和存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20966743 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20966743 Country of ref document: EP Kind code of ref document: A1 |