Display method, device, electronic device and storage medium

By acquiring and processing the movement and posture information of the electronic pen, combined with the relative position information of the display device, the problem that the electronic pen cannot achieve splash-ink painting is solved, the function of splash-ink painting on the electronic pen is realized, and the user experience is improved.

CN113360031BActive Publication Date: 2024-10-29VIVO MOBILE COMM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110318668.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-25
Publication Date
2024-10-29
Estimated Expiration
2041-03-25

AI Technical Summary

Technical Problem

Existing electronic pens cannot realize splash-ink painting and cannot meet the needs of splash-ink painting users.

Method used

By obtaining the motion information, posture information and relative position information of the electronic pen to the display device, the splashed ink image information is determined, and the splashed ink image information is sent to the display device to achieve the splashed ink painting effect.

Benefits of technology

Realize splash-ink painting when using an electronic pen to meet user needs and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113360031B_ABST
    Figure CN113360031B_ABST
Patent Text Reader

Abstract

The present application discloses a display method, device, electronic device and storage medium, belonging to the technical field of electronic devices. The method is applied to an electronic pen, including: obtaining motion information and posture information of the electronic pen, and relative position information between the electronic pen and the screen of a display device; determining ink splashing image information according to the motion information, posture information and relative position information; sending the ink splashing image information to the display device, so that the display device displays the ink splashing image represented by the ink splashing image information. According to the embodiment of the present application, ink splashing painting can be realized when using the electronic pen, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a display method, device, electronic equipment and storage medium. Background Art

[0002] As the application scope of display devices becomes wider and wider, users have an increasing demand for the convenience of using display devices. At present, various electronic pens have been developed as handwriting input tools, and users can directly use electronic pens to input handwriting on display devices, which improves the convenience of human-computer interaction.

[0003] Electronic pens can be used with painting software to replace traditional pencils, pens, brushes, etc. for text input and painting, bringing a convenient experience to users. However, currently, when using electronic pens, the painting form of ink splashing cannot be realized, and the use needs of ink splashing painting users cannot be met. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a display method, device, electronic device and storage medium, which can realize ink-splashing painting when using an electronic pen, thereby improving the user experience.

[0005] In order to solve the above technical problems, this application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a display method, which is applied to an electronic pen, the electronic pen is communicatively connected to a display device, and the method includes:

[0007] Acquire motion information and posture information of the electronic pen, and relative position information between the electronic pen and the screen of the display device;

[0008] Determine ink splashing image information according to the motion information, posture information and relative position information;

[0009] The ink splashing image information is sent to a display device, so that the display device displays an ink splashing image represented by the ink splashing image information.

[0010] In a second aspect, an embodiment of the present application provides a display method, which is applied to a display device, the display device is communicatively connected with an electronic pen, and the method includes:

[0011] receiving ink splashing image information sent by the electronic pen, wherein the ink splashing image information is determined by the electronic pen according to motion information and posture information of the electronic pen, and relative position information between the electronic pen and a screen of a display device;

[0012] An ink splash image showing information representation of the ink splash image.

[0013] In a third aspect, an embodiment of the present application provides a display device, which is applied to an electronic pen, and the electronic pen is communicatively connected to a display device, and the device includes:

[0014] An acquisition module, used to acquire motion information and posture information of the electronic pen, and relative position information between the electronic pen and the screen of the display device;

[0015] A determination module, used for determining ink splashing image information according to motion information, posture information and relative position information;

[0016] The sending module is used to send the ink splashing image information to the display device, so that the display device displays the ink splashing image represented by the ink splashing image information.

[0017] In a fourth aspect, an embodiment of the present application provides a display device, which is applied to a display device, and the display device is communicatively connected with an electronic pen, and the device includes:

[0018] A receiving module, used for receiving ink splashing image information sent by the electronic pen, wherein the ink splashing image information is determined by the electronic pen according to the motion information and posture information of the electronic pen, and the relative position information between the electronic pen and the screen of the display device;

[0019] The display module is used to display the ink-splashing image represented by the ink-splashing image information.

[0020] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction implements the steps of the method of the first aspect when executed by the processor, or implements the steps of the method of the second aspect when executed by the processor.

[0021] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented, or when the program or instruction is executed by a processor, the steps of the method of the second aspect are implemented.

[0022] In the seventh aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the first aspect, or to implement the method of the second aspect.

[0023] In the embodiment of the present application, the electronic pen can determine the ink splashing image information according to the motion information and posture information of the electronic pen and the relative position information between the electronic pen and the screen of the display device, and send the ink splashing image information to the display device. Thus, the display device can display the ink splashing image represented by the ink splashing image information. In this way, ink splashing painting can be realized when using the electronic pen, meeting the user's ink splashing painting needs and improving the user's experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 is a schematic diagram of the architecture of a display system provided in an embodiment of the present application;

[0025] Figure 2 It is a flow chart of a display method provided in an embodiment of the present application;

[0026] Figure 3 is a schematic diagram of an acceleration curve provided in an embodiment of the present application;

[0027] Figure 4 is a flow chart of another display method provided in an embodiment of the present application;

[0028] Figure 5 is a flow chart of another display method provided in an embodiment of the present application;

[0029] Figure 6 is a structural schematic diagram of a display device provided in an embodiment of the present application;

[0030] Figure 7 is a schematic structural diagram of another display device provided in an embodiment of the present application;

[0031] Figure 8 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0032] Fig. 9 It is a schematic diagram of the hardware structure of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

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

[0035] In view of the problems in the background technology, the embodiments of the present application provide a display method, device, electronic device and storage medium. The electronic pen can determine the ink splashing image information according to the motion information and posture information of the electronic pen and the relative position information between the electronic pen and the screen of the display device, and send the ink splashing image information to the display device. Thus, the display device can display the ink splashing image represented by the ink splashing image information. In this way, ink splashing painting can be realized when using the electronic pen, meeting the user's use needs of ink splashing painting and improving the user's use experience.

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

[0037] Figure 1 is a schematic diagram of the architecture of a display system provided in an embodiment of the present application, such as Figure 1 As shown, the display system may include an electronic pen 110 and a display device 120 , which is not limited herein.

[0038] The electronic pen 110 is a device for writing or drawing on the screen of the display device 120, and has multiple sensors built in, such as a gravity sensor, an acceleration sensor, etc. The acceleration sensor may be a gyroscope. The display device 120 is a device with a screen, which may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, or an ultra-mobile personal computer (UMPC), etc., and the non-mobile electronic device may be a server, a network attached storage (NAS), or a personal computer (PC), etc.

[0039] like Figure 1As shown, the electronic pen 110 is connected to the display device 120 for communication. Optionally, the communication mode may be wired communication or wireless communication. Exemplarily, the electronic pen 110 and the display device 120 may communicate via Bluetooth.

[0040] As an example, the display system can be applied to the application scenario of ink splashing painting. Figure 1 The electronic pen 110 can obtain the motion information and posture information of the main body, as well as the relative position information between the main body and the screen of the display device, and determine the ink splashing image information used to represent the ink splashing image according to the motion information, posture information and relative position information, and then send the ink splashing image information to the display device 120, so that the display device 120 displays the ink splashing image represented by the ink splashing image information. In this way, the user's ink splashing painting needs can be met and the user experience can be improved.

[0041] The following will introduce the display method provided by the embodiment of the present invention. The display method can be applied to Figure 1 The display system shown in .

[0042] Figure 2 is a flow chart of a display method provided in an embodiment of the present application, such as Figure 2 As shown, the following steps may be included:

[0043] S210: The electronic pen obtains movement information and posture information of the electronic pen, and relative position information between the electronic pen and the screen of the display device.

[0044] In one embodiment, the electronic pen can first obtain the motion information of the body, and when the motion information meets the preset conditions, that is, when the electronic pen is in the ink-splashing painting state, obtain the posture information of the body and the relative position information of the body and the screen of the display device, thereby reducing the data acquisition pressure of the electronic pen.

[0045] The motion information may include acceleration, such as the acceleration of the electronic pen on the X-axis, Y-axis, and Z-axis in the spatial rectangular coordinate system centered on the electronic pen. The posture information may include angles, such as the angles between the electronic pen and the X-axis, Y-axis, and Z-axis in the spatial rectangular coordinate system centered on the electronic pen. The relative position information is used to characterize the relative position information relationship between the electronic pen and the display device, and may include relative distance and relative direction, such as the distance and direction of the electronic pen relative to the screen of the display device when the screen of the display device is used as a reference point.

[0046] For example, the electronic pen can obtain the acceleration of the electronic pen in real time, and obtain the posture information and relative position information when the magnitude of the acceleration is greater than or equal to the preset acceleration threshold. It can be understood that the preset acceleration threshold can be flexibly set according to actual conditions and is not limited here. In this way, by monitoring the acceleration, it can be accurately determined whether the electronic pen is in the ink-splashing painting state.

[0047] In a specific embodiment, the electronic pen can collect the acceleration of the electronic pen through a gyroscope to generate an acceleration curve. Figure 3 As shown, when the acceleration curve exceeds the preset acceleration threshold, the angle of the electronic pen is collected by the gravity sensor, and the relative distance and relative direction between the electronic pen and the screen of the display device collected by the front camera, TOF module or dot matrix projector of the display device are obtained from the display device.

[0048] Taking the acquisition of relative distance and relative direction by the front camera as an example, the display device can acquire the electronic pen image through the front camera, and determine the relative distance and relative direction between the electronic pen and the screen of the display device according to the size and position of the electronic pen in the image.

[0049] S220: The electronic pen determines ink splashing image information according to the motion information, the posture information and the relative position information.

[0050] In one embodiment, the ink splashing image information may include the display position, display shape and display size of the ink drop.

[0051] The electronic pen can first determine the initial speed of the ink droplet, that is, the speed at which the ink droplet leaves the electronic pen, based on the motion information and the posture information. And determine the flight time of the ink droplet based on the relative position information and the initial speed. Determine the terminal position of the ink droplet falling on the plane where the screen is located based on the relative position information, the initial speed and the flight time. Then determine whether the terminal position is located in the screen, that is, determine whether the ink droplet falls in the screen. In the case where the terminal position is located in the screen, determine the terminal position as the display position of the ink droplet. Then, determine the terminal speed of the ink droplet falling in the display position based on the initial speed and the flight time, that is, the speed at which the ink droplet falls in the screen. Thus, based on the terminal speed, determine the display shape and display size of the ink droplet, and accurately determine the ink splashing image information used to characterize the ink splashing image.

[0052] As an example, the electronic pen can first calculate the first velocity component, the second velocity component and the third velocity component of the terminal velocity. Among them, the first velocity component is the velocity component of the terminal velocity in the first direction, the second velocity component is the velocity component of the terminal velocity in the second direction, and the third velocity component is the velocity component of the terminal velocity in the third direction. The first direction and the second direction are located in the plane where the screen is located, the third direction is perpendicular to the plane where the screen is located, and the first direction and the second direction are perpendicular to the third direction. Then, according to the first velocity component and the second velocity component, the display shape of the ink droplet is determined, and according to the third velocity component, the display size of the ink droplet is determined. In this way, the display shape and display size of the ink droplet can be accurately determined according to the velocity components in different directions.

[0053] Exemplarily, the display shape corresponding to the first velocity component and the second velocity component can be found from the preset correspondence between the first velocity component and the second velocity component and the display shape, and the display shape can be used as the display shape of the ink drop. The display size corresponding to the third velocity component can be found from the preset correspondence between the third velocity component and the display size, and the display size can be used as the display size of the ink drop. Optionally, the third velocity component can be input into the liquid area calculation formula to calculate the liquid area corresponding to the third velocity component, and the liquid area can be used as the display size of the ink drop.

[0054] S230: The electronic pen sends ink splashing image information to the display device.

[0055] S240: The display device displays the ink splashing image represented by the ink splashing image information.

[0056] Specifically, the display device receives the ink-splashing image information sent by the electronic pen, and displays the ink-splashing image represented by the ink-splashing image information.

[0057] In the embodiment of the present application, the electronic pen can determine the ink splashing image information according to the motion information and posture information of the electronic pen and the relative position information between the electronic pen and the screen of the display device, and send the ink splashing image information to the display device. Thus, the display device can display the ink splashing image represented by the ink splashing image information. In this way, ink splashing painting can be realized when using the electronic pen, meeting the user's ink splashing painting needs and improving the user's experience.

[0058] The following is a detailed description of the display method provided in the embodiment of the present application in conjunction with a specific example, as follows:

[0059] Step 1: The electronic pen collects the acceleration of the electronic pen in a spatial rectangular coordinate system centered on the electronic pen in real time through a built-in gyroscope, and records the acceleration collected in a first time period, wherein the first time period is a time period in which the magnitude of the acceleration is greater than or equal to a preset acceleration threshold. Then, the magnitude of the initial velocity of the ink drop is calculated based on the acceleration in the first time period and the duration of the first time period.

[0060] Step 2: The electronic pen collects the angle of the electronic pen in a spatial rectangular coordinate system centered on the electronic pen through a built-in gravity sensor during the first time period, and determines the direction of the initial velocity of the ink droplet according to the angle.

[0061] Step 3: The electronic pen obtains an image of the electronic pen from the display device within the first time period. The display device collects the image of the electronic pen through forward photography, and determines the relative distance and relative direction between the electronic pen and the display device according to the size of the electronic pen in the image.

[0062] Step 4: The electronic pen establishes a spatial rectangular coordinate system with the display device as the center. The coordinate origin may be the center of the screen of the display device, the X axis may be the width direction of the screen, the Y axis may be the length direction of the screen, and the Z axis may be the direction perpendicular to the plane where the screen is located. It can be understood that the X axis, Y axis, and Z axis of the spatial rectangular coordinate system with the display device as the center are the first direction, the second direction, and the third direction, respectively.

[0063] Step 5: The electronic pen performs coordinate system conversion on the initial velocity, from the spatial rectangular coordinate system centered on the electronic pen to the spatial rectangular coordinate system centered on the display device, and determines the starting point coordinates of the ink drop in the spatial rectangular coordinate system centered on the display device according to the relative distance and relative direction.

[0064] Step 6: The electronic pen calculates the flight time of the ink droplet based on the starting point coordinates and the converted initial speed, and calculates the terminal coordinates, i.e., the terminal position, of the ink droplet in the spatial rectangular coordinate system centered on the electronic pen based on the starting point coordinates, the converted initial speed, and the flight time. When the terminal coordinates are located on the screen, the terminal coordinates are determined to be the display position of the ink droplet. Then, based on the converted initial speed and the flight time, the terminal speed at which the ink droplet lands at the display position is calculated. Thus, based on the terminal speed, the display shape and display size of the ink droplet are determined, and the ink splashing image information including the display position, display shape, and display size of the ink droplet is obtained. It can be understood that the number of ink droplets can be determined by the acceleration of the electronic pen, and there can be multiple ink droplets, which is not limited here.

[0065] For example, when the screen of the display device is placed horizontally, the starting coordinates of the ink droplet may be D0: (x0, y0, z0), the ending coordinates may be D1: (x1, y1, 0), and the converted initial velocity of the ink droplet may be The termination speed of the ink drop can be in, Since the ink droplets are only affected by gravity when they fly out,

[0066] The flight time may be calculated according to a first formula, wherein the first formula may be as follows:

[0067]

[0068] Where T is the flight time and g is the acceleration due to gravity.

[0069] Then x1 can be calculated according to the second formula, and y1 can be calculated according to the third formula, where the second formula and the third formula can be shown as follows:

[0070] x1=x0+V x0 T (2)

[0071] y1=y0+V y0 T (3)

[0072] It can be understood that the center of the screen is the origin of the entire coordinate system, and the coordinates of the screen boundary can be obtained, and then it can be determined whether D1: (x1, y1, 0) is located within the screen of the display device. In the case that D1: (x1, y1, 0) is located within the screen of the display device, V can be calculated according to the fourth formula z1 , where the fourth formula can be shown as follows:

[0073] V z1 =V z0 +gT (4)

[0074] Then, according to V x0 and V y0 Determine the display shape of the ink droplet, according to V z1 The display size of the ink drop is determined to obtain image information including ink splashing.

[0075] Step 7: The electronic pen sends ink splashing information to the display device via Bluetooth.

[0076] Step 8: The display device receives the ink splashing information sent by the display device via Bluetooth, and displays an ink splashing image represented by the ink splashing information.

[0077] In one embodiment, the electronic pen can also simulate the unique scenes of writing with a traditional pen. For example, after an ordinary fountain pen or gel pen is flicked, the ink in the pen tip will increase and the handwriting will become thicker when writing.

[0078] Figure 4 is a flow chart of another display method provided in an embodiment of the present application, such as Figure 4As shown, the display method is applied to an electronic pen, the electronic pen is connected to a display device for communication, and the display method includes the following steps:

[0079] S410, acquiring motion information and posture information of the electronic pen, and relative position information between the electronic pen and the screen of the display device.

[0080] In one embodiment, the electronic pen can obtain motion information, and when the motion information meets a preset condition, obtain posture information and relative position information, thereby reducing the pressure of data acquisition of the electronic pen.

[0081] For example, the motion information may include acceleration, and the electronic pen may obtain the posture information and relative position information when the magnitude of the acceleration is greater than or equal to a preset acceleration threshold, so that by monitoring the acceleration, it is possible to accurately determine whether the electronic pen is in the ink-splashing drawing state.

[0082] S420, determining ink splashing image information according to the motion information, the posture information and the relative position information.

[0083] In one embodiment, the ink splashing image information may include the display position, display shape and display size of the ink drop.

[0084] The electronic pen can first determine the initial speed of the ink droplet according to the motion information and the posture information. And determine the flight time of the ink droplet according to the relative position information and the initial speed. According to the relative position information, the initial speed and the flight time, determine the terminal position of the ink droplet falling on the plane where the screen is located. Then determine whether the terminal position is located in the screen. In the case where the terminal position is located in the screen, determine the terminal position as the display position of the ink droplet. Then, according to the initial speed and the flight time, determine the terminal speed of the ink droplet falling on the display position. Therefore, according to the terminal speed, determine the display shape and display size of the ink droplet, and accurately determine the ink splashing image information used to characterize the ink splashing image.

[0085] As an example, the electronic pen can first calculate the first velocity component, the second velocity component and the third velocity component of the terminal velocity. Among them, the first velocity component is the velocity component of the terminal velocity in the first direction, the second velocity component is the velocity component of the terminal velocity in the second direction, and the third velocity component is the velocity component of the terminal velocity in the third direction. The first direction and the second direction are located in the plane where the screen is located, the third direction is perpendicular to the plane where the screen is located, and the first direction and the second direction are perpendicular to the third direction. Then, according to the first velocity component and the second velocity component, the display shape of the ink droplet is determined, and according to the third velocity component, the display size of the ink droplet is determined. In this way, the display shape and display size of the ink droplet can be accurately determined according to the velocity components in different directions.

[0086] S430, sending the ink splashing image information to a display device, so that the display device displays the ink splashing image represented by the ink splashing image information.

[0087] In the embodiment of the present application, the electronic pen can determine the ink splashing image information according to the motion information and posture information of the electronic pen and the relative position information between the electronic pen and the screen of the display device, and send the ink splashing image information to the display device, so that the display device can display the ink splashing image represented by the ink splashing image information. In this way, ink splashing painting can be realized when using the electronic pen, meeting the user's ink splashing painting needs and improving the user's experience.

[0088] Figure 4 The method performed by the electronic pen in the embodiment shown is Figure 2 The method steps executed by the electronic pen in the illustrated embodiment are the same and will not be repeated here for the sake of brevity.

[0089] Figure 5 is a flow chart of another display method provided in an embodiment of the present application, such as Figure 5 As shown, the display method is applied to a display device, the display device is connected to the electronic pen for communication, and the display method includes the following steps:

[0090] S510, receiving ink splashing image information sent by the electronic pen.

[0091] The ink splashing image information is determined by the electronic pen according to the motion information and posture information of the electronic pen, and the relative position information between the electronic pen and the screen of the display device.

[0092] S520, displaying the ink-splashing image represented by the ink-splashing image information.

[0093] In the embodiment of the present application, the display device can receive the ink splashing image information sent by the electronic pen and display the ink splashing image represented by the ink splashing image information. It can realize ink splashing painting when using the electronic pen, meet the user's ink splashing painting needs, and improve the user's experience.

[0094] Figure 5 The method performed by the display device in the embodiment shown is Figure 2 The method steps executed by the display device in the illustrated embodiment are the same and will not be described again for brevity.

[0095] It should be noted that the execution subject of the display method provided in the embodiment of the present application may be a display device applied to an electronic pen, or a control module in the display device for executing the display method; the execution subject of the display method provided in the embodiment of the present application may be a display device applied to a display device, or a control module in the display device for executing the display method; in the embodiment of the present application, the display device applied to an electronic pen and the display device applied to a display device are taken as examples to illustrate the display device applied to an electronic pen and the display device applied to a display device provided in the embodiment of the present application.

[0096] Figure 6 is a schematic diagram of the structure of a display device provided in an embodiment of the present application, such as Figure 6 As shown, the display device 600 is applied to an electronic pen, the electronic pen is connected to a display device for communication, and the display device 600 includes:

[0097] The acquisition module 610 is used to acquire the motion information and posture information of the electronic pen, and the relative position information between the electronic pen and the screen of the display device.

[0098] The determination module 620 is used to determine the ink splashing image information according to the motion information, the posture information and the relative position information.

[0099] The sending module 630 is used to send the ink splashing image information to the display device, so that the display device displays the ink splashing image represented by the ink splashing image information.

[0100] In the embodiment of the present application, the electronic pen can determine the ink splashing image information according to the motion information and posture information of the electronic pen and the relative position information between the electronic pen and the screen of the display device, and send the ink splashing image information to the display device, so that the display device can display the ink splashing image represented by the ink splashing image information. In this way, ink splashing painting can be realized when using the electronic pen, meeting the user's ink splashing painting needs and improving the user's experience.

[0101] In one embodiment, the acquisition module 610 includes:

[0102] The acquisition unit is used to acquire motion information.

[0103] The acquisition unit is also used to acquire posture information and relative position information when the motion information meets preset conditions, thereby reducing the data acquisition pressure of the electronic pen.

[0104] In one embodiment, the ink splashing image information includes the display position, display shape and display size of the ink drop.

[0105] The determination module 620 includes: a determination unit, configured to determine the initial velocity of the ink droplet according to the motion information and the posture information.

[0106] The determination unit is also used to determine the flight time of the ink droplet according to the relative position information and the initial velocity.

[0107] The determination unit is also used to determine the end point position of the ink droplet falling on the plane where the screen is located according to the relative position information, the initial speed and the flight time.

[0108] The determination unit is also used to determine the terminal velocity of the ink droplet landing on the display position according to the initial velocity and the flight time.

[0109] The determination unit is also used to determine the display shape and display size of the ink drop according to the termination speed, and accurately determine the ink splashing image information used to characterize the ink splashing image.

[0110] In one embodiment, the determination unit is specifically used to calculate the first velocity component, the second velocity component and the third velocity component of the terminal velocity, wherein the first velocity component is the velocity component of the terminal velocity in the first direction, the second velocity component is the velocity component of the terminal velocity in the second direction, and the third velocity component is the velocity component of the terminal velocity in the third direction, the first direction and the second direction are located in the plane where the screen is located, the third direction is perpendicular to the plane where the screen is located, and the first direction, the second direction and the third direction are perpendicular to each other.

[0111] The display shape of the ink drop is determined according to the first velocity component and the second velocity component.

[0112] The displayed size of the ink drop is determined according to the third velocity component. Thus, the displayed shape and displayed size of the ink drop can be accurately determined according to the velocity components in different directions.

[0113] Figure 7 is a schematic diagram of the structure of another display device provided in an embodiment of the present application, such as Figure 7 As shown, the display device 700 is applied to a display device, the display device is connected to the electronic pen for communication, and the display device 700 includes:

[0114] The receiving module 710 is used to receive the ink splashing image information sent by the electronic pen, wherein the ink splashing image information is determined by the electronic pen according to the motion information and posture information of the electronic pen, and the relative position information between the electronic pen and the screen of the display device.

[0115] The display module 720 is used to display the ink splashing image represented by the ink splashing image information.

[0116] In the embodiment of the present application, the display device can receive the ink splashing image information sent by the electronic pen and display the ink splashing image represented by the ink splashing image information. It can realize ink splashing painting when using the electronic pen, meet the user's ink splashing painting needs, and improve the user's experience.

[0117] It is worth noting that the display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0118] It can be understood that the display device provided in the embodiment of the present application can achieve Figures 2 to 5 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0119] like Figure 8 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801, a memory 802, and a program or instruction stored in the memory 802 and executable on the processor 801. When the program or instruction is executed by the processor 801, each process of the above-mentioned display method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0120] Fig. 9 1 is a schematic diagram of the hardware structure of another electronic device provided in an embodiment of the present application. The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910.

[0121] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0122] The sensor 905 is used to obtain the motion information and posture information of the electronic pen, and the relative position information between the electronic pen and the screen of the display device.

[0123] The processor 910 is used to determine the ink splashing image information according to the motion information, the posture information and the relative position information.

[0124] The radio frequency unit 901 is used to send the ink splashing image information to the display device, so that the display device displays the ink splashing image represented by the ink splashing image information.

[0125] In the embodiment of the present application, the ink splashing image information can be determined based on the motion information and posture information of the electronic pen and the relative position information between the electronic pen and the screen of the display device, and the ink splashing image information can be sent to the display device so that the display device can display the ink splashing image represented by the ink splashing image information. In this way, ink splashing painting can be realized when using the electronic pen, meeting the user's ink splashing painting needs and improving the user's experience.

[0126] In one embodiment, the sensor 905 is specifically used to obtain motion information, and when the motion information meets a preset condition, obtain posture information and relative position information, thereby reducing the data acquisition pressure of the electronic pen.

[0127] In one embodiment, the ink splashing image information includes the display position, display shape and display size of the ink drop.

[0128] The processor 910 is specifically used to determine the initial velocity of the ink droplet according to the motion information and the posture information.

[0129] The flight time of the ink drop is determined based on the relative position information and the initial velocity.

[0130] The final position of the ink drop on the plane where the screen is located is determined based on the relative position information, initial velocity and flight time.

[0131] Based on the initial velocity and flight time, the final velocity of the ink droplet landing at the display position is determined.

[0132] According to the termination speed, the display shape and display size of the ink drop are determined, and the ink splashing image information used to characterize the ink splashing image is accurately determined.

[0133] In one embodiment, the processor 910 is specifically configured to: calculate a first velocity component, a second velocity component, and a third velocity component of the terminal velocity, wherein the first velocity component is a velocity component of the terminal velocity in a first direction, the second velocity component is a velocity component of the terminal velocity in a second direction, and the third velocity component is a velocity component of the terminal velocity in a third direction, the first direction and the second direction are located in a plane where the screen is located, the third direction is perpendicular to the plane where the screen is located, and the first direction, the second direction, and the third direction are perpendicular to each other.

[0134] The display shape of the ink drop is determined according to the first velocity component and the second velocity component.

[0135] The displayed size of the ink drop is determined according to the third velocity component. Thus, the displayed shape and displayed size of the ink drop can be accurately determined according to the velocity components in different directions.

[0136] The present application also provides an electronic device, such as Fig. 9 shown.

[0137] The radio frequency unit 901 is used to receive ink splashing image information sent by the electronic pen, wherein the ink splashing image information is determined by the electronic pen according to the motion information and posture information of the electronic pen, and the relative position information between the electronic pen and the screen of the display device.

[0138] The display unit 906 is used to display the ink splashing image represented by the ink splashing image information.

[0139] In the embodiment of the present application, ink splashing image information sent by the electronic pen can be received, and the ink splashing image represented by the ink splashing image information can be displayed. Ink splashing painting can be realized when using the electronic pen, meeting the user's ink splashing painting needs and improving the user's experience.

[0140] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) and a microphone, and the graphics processor processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 906 may include a display panel, and the display panel may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel and other input devices. The touch panel is also called a touch screen. The touch panel may include two parts: a touch detection device and a touch controller. Other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 909 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 910 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 910.

[0141] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned display method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0142] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0143] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0144] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0145] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0146] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0147] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A display method, characterized in that: The method is applied to an electronic pen, the electronic pen is communicatively connected with a display device, and the method comprises: Acquiring motion information and posture information of the electronic pen, and relative position information between the electronic pen and the screen of the display device; Determining ink splashing image information according to the motion information, the posture information and the relative position information; Sending the ink splashing image information to the display device, so that the display device displays the ink splashing image represented by the ink splashing image information; The ink splashing image information includes a display position, a display shape, and a display size of an ink drop, and determining the ink splashing image information according to the motion information, the posture information, and the relative position information includes: Determining an initial velocity of the ink droplet according to the motion information and the posture information; determining a flight time of the ink droplet according to the relative position information and the initial velocity; Determine the end point position of the ink droplet landing on the plane where the screen is located according to the relative position information, the initial speed and the flight time; In the case where the end point position is located on the screen, determining the end point position as a display position of the ink drop; Determining the termination speed of the ink droplet landing on the display position according to the initial speed and the flight time; The display shape and display size of the ink drop are determined according to the termination speed.

2. The method according to claim 1, characterized in that The acquiring of the motion information and posture information of the electronic pen, and the relative position information between the electronic pen and the display device includes: Acquiring the motion information; When the motion information meets a preset condition, the posture information and the relative position information are acquired.

3. The method according to claim 2, characterized in that Determining the display shape and display size of the ink droplet according to the termination speed includes: Calculate a first velocity component, a second velocity component, and a third velocity component of the termination velocity, wherein the first velocity component is a velocity component of the termination velocity in a first direction, the second velocity component is a velocity component of the termination velocity in a second direction, and the third velocity component is a velocity component of the termination velocity in a third direction, the first direction and the second direction are located in a plane where the screen is located, the third direction is perpendicular to the plane where the screen is located, and the first direction, the second direction, and the third direction are perpendicular to each other; determining a display shape of the ink droplet according to the first velocity component and the second velocity component; The display size of the ink drop is determined according to the third velocity component.

4. A display method, characterized in that: The method is applied to a display device, the display device is communicatively connected with an electronic pen, and the method comprises: receiving ink splashing image information sent by the electronic pen, wherein the ink splashing image information is determined by the electronic pen according to motion information and posture information of the electronic pen, and relative position information between the electronic pen and a screen of a display device; Displaying an ink-splashed image represented by the ink-splashed image information; The ink-splashing image information includes the display position, display shape and display size of the ink drop. The electronic pen determines the initial speed of the ink drop according to the motion information and the posture information; determines the flight time of the ink drop according to the relative position information and the initial speed; determines the terminal position of the ink drop on the plane where the screen is located according to the relative position information, the initial speed and the flight time; when the terminal position is located in the screen, determines the terminal position as the display position of the ink drop; determines the terminal speed of the ink drop falling at the display position according to the initial speed and the flight time; and determines the display shape and display size of the ink drop according to the terminal speed.

5. A display device, characterized in that: The device is applied to an electronic pen, the electronic pen is communicatively connected with a display device, and the device comprises: An acquisition module, used to acquire motion information and posture information of the electronic pen, and relative position information between the electronic pen and the screen of the display device; A determination module, used for determining ink splashing image information according to the motion information, the posture information and the relative position information; A sending module, used for sending the ink splashing image information to the display device, so that the display device displays the ink splashing image represented by the ink splashing image information; The ink splashing image information includes the display position, display shape and display size of the ink drop, and the determination module includes: a determination unit, configured to determine an initial velocity of the ink droplet according to the motion information and the posture information; The determining unit is further used to determine the flight time of the ink droplet according to the relative position information and the initial speed; The determining unit is further used to determine the end point position of the ink droplet falling on the plane where the screen is located according to the relative position information, the initial speed and the flight time; The determining unit is further configured to determine the end point position as a display position of the ink drop when the end point position is located on the screen; The determining unit is further used to determine the termination speed of the ink droplet landing on the display position according to the initial speed and the flight time; The determination unit is further configured to determine a display shape and a display size of the ink droplet according to the termination speed.

6. A display device, characterized in that: The device is applied to a display device, the display device is communicatively connected with an electronic pen, and the device comprises: A receiving module, used for receiving ink splashing image information sent by the electronic pen, wherein the ink splashing image information is determined by the electronic pen according to the motion information and posture information of the electronic pen, and the relative position information between the electronic pen and the screen of the display device; A display module, used for displaying the ink-splashed image represented by the ink-splashed image information; The ink-splashing image information includes the display position, display shape and display size of the ink drop. The electronic pen determines the initial speed of the ink drop according to the motion information and the posture information; determines the flight time of the ink drop according to the relative position information and the initial speed; determines the terminal position of the ink drop on the plane where the screen is located according to the relative position information, the initial speed and the flight time; when the terminal position is located in the screen, determines the terminal position as the display position of the ink drop; determines the terminal speed of the ink drop falling at the display position according to the initial speed and the flight time; and determines the display shape and display size of the ink drop according to the terminal speed.

7. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the display method as described in any one of claims 1 to 3, or implements the steps of the display method as described in claim 4 when executed by the processor.

8. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the display method according to any one of claims 1 to 3 are implemented, or when the program or instruction is executed by the processor, the steps of the display method according to claim 4 are implemented.

Citation Information

Patent Citations

  • Electronic device and input method of electronic device

    CN107924286A

  • Intelligent input method, system and device and readable storage medium

    CN112183521A

  • Game scene display method and device, storage medium and electronic equipment

    CN112402974A