Method and apparatus for determining writing height, storage medium and electronic device
By acquiring the infrared height variation trend of the writing device through an infrared device, and processing the infrared matrix feature information using a time series model and a convolutional neural network, the writing height is adjusted, solving the problem of excessive writing height in infrared touch technology and improving writing accuracy and user experience.
Patent Information
- Application Number
- CN202210133632.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-14
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-02-14
AI Technical Summary
In existing infrared touch technology, setting the writing height too high results in a poor user experience and low accuracy of writing marks, while glass deformation affects the positioning accuracy of the infrared device.
The infrared height variation trend of the writing device relative to the display device is obtained by an infrared device. The infrared height variation is predicted by using a time series model and attention mechanism. The infrared matrix feature information is processed by a convolutional neural network, and the preset writing height is adjusted to optimize the user experience.
It improved the accuracy of writing height, reduced the writing height, optimized the user experience, and enhanced the accuracy of writing marks and user satisfaction.
Smart Images

Figure CN116627273B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display devices, and more particularly to a method, apparatus, storage medium, and electronic device for determining writing height. Background Technology
[0002] With the rapid development of science and technology and the ever-increasing demands for work efficiency, various interactive devices using touch technology have emerged on the market, such as conference tablets, touch laptops, and human-computer interaction all-in-one machines. These interactive devices all include a display device and a writing device. The display device shows the traces of movement of the writing device; for example, the display device is a tablet screen, and the writing device is an electronic pen, allowing the user to write on the tablet screen using the electronic pen.
[0003] Currently, most interactive device touch technologies employ infrared touch technology. The specific principle involves using an infrared device formed by infrared emitting and receiving units mounted on the periphery of the display device to detect and locate the writing device. The writing height is specifically set as the vertical distance H between the writing device and the display device surface (i.e., the height of the writing device from the display device). When the height of the writing device is less than or equal to H, the display device begins to display traces of the writing device's movement. When the height of the writing device is greater than H, the display device does not display traces of the writing device's movement. In other words, the writing height H is the threshold height of the writing device from the display device at which the display device displays traces of the writing device's movement.
[0004] Infrared touch control has the advantage of good stability, but its disadvantage is the relatively high writing height. This is because when a display device is installed, the glass surface covering it deforms under pressure. If the writing height is set too low, the deformed part of the glass may block the infrared device from transmitting and receiving infrared light, leading to mispositioning. In some cases, the writing device may not even be able to leave a mark on the deformed part of the display device, severely affecting usability. Therefore, a relatively high writing height is usually set, such as 5mm. However, an excessively high writing height will result in a poor user experience, and the accuracy of the writing marks produced by the writing device on the display device will also be lower. Summary of the Invention
[0005] This application provides a method, apparatus, storage medium, and electronic device for determining writing height, which can improve the accuracy of the target writing height and reduce the writing height. The technical solution is as follows:
[0006] In a first aspect, embodiments of this application provide a method for determining writing height, the method comprising:
[0007] The infrared device is used to obtain the changing trend of the infrared height of the writing device from the display device.
[0008] The preset writing height is adjusted according to the changing trend of the infrared height to obtain the target writing height; wherein, the writing height is the height threshold of the writing device from the display device when the display device displays the writing marks generated by the movement of the writing device.
[0009] Secondly, embodiments of this application provide a device for determining writing height, the device comprising:
[0010] The height change module is used to obtain the changing trend of the infrared height of the writing device from the display device based on the infrared device.
[0011] A height determination module is used to adjust a preset writing height based on the changing trend of the infrared height to obtain a target writing height; wherein, the writing height is a height threshold of the writing device from the display device when the display device displays the writing marks generated by the movement of the writing device.
[0012] Thirdly, embodiments of this application provide a computer storage medium storing a plurality of instructions adapted for loading by a processor and executing the above-described method steps.
[0013] Fourthly, embodiments of this application provide an electronic device that may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to execute the above-described method steps.
[0014] The beneficial effects of the technical solutions provided in some embodiments of this application include at least the following:
[0015] This application uses an infrared device to obtain the changing trend of the infrared height between the writing device and the display device, and further adjusts the preset writing height according to the changing trend of the infrared height to obtain the target writing height. In other words, this application extracts a large amount of feature information from the infrared matrix collected by the infrared device, and adjusts the writing height from the perspective of data analysis and combined with the objective laws of user writing. This makes up for the shortcomings of the prior art that only improves the hardware conditions of the display device, improves the accuracy of the target writing height, reduces the writing height, and optimizes the user experience. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a schematic diagram of the structure of a display device and a writing device provided in an embodiment of this application;
[0018] Figure 2 This is a schematic diagram illustrating the principle of displaying writing marks using a display device provided in an embodiment of this application;
[0019] Figure 3 This is a flowchart illustrating a method for determining writing distance provided in an embodiment of this application;
[0020] Figure 4 This is a dynamic schematic diagram illustrating the changing trend of infrared altitude provided in an embodiment of this application;
[0021] Figure 5 This is a schematic diagram illustrating the trend of infrared altitude variation using a time series model, as provided in an embodiment of this application.
[0022] Figure 6 This is a flowchart illustrating a method for determining writing distance provided in an embodiment of this application;
[0023] Figure 7 This is a schematic diagram of the infrared matrix data corresponding to the x-direction provided in the embodiments of this application;
[0024] Figure 8 This is a schematic diagram of a device for determining writing distance provided in an embodiment of this application;
[0025] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0026] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0027] In the description of this application, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. In the description of this application, it should be noted that, unless otherwise expressly specified and limited, "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances. Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.
[0028] The present application will now be described in detail with reference to specific embodiments.
[0029] In one embodiment, such as Figure 1 The diagram shown is a structural schematic of a display device and a writing device provided in an embodiment of this application, including: a display device 10 and a writing device 20. The display device 10 is equipped with an infrared device, which includes at least one set of infrared emitting units and infrared receiving units. The infrared receiving units receive infrared rays from the infrared emitting units. For example, the infrared receiving units and infrared emitting units are symmetrically arranged. Infrared emitting units 1011, 1012, ..., 101N are arranged on the frame of the display device 10 along the x-axis. Infrared emitting units 1021, 1022, ..., 102M are arranged on the frame of the display device 10 along the y-axis. Infrared receiving units 1031, 1032, ..., 103N are arranged on the frame of the display device 10 along the x-axis. Infrared receiving units 1041, 1042, ..., 104M are arranged on the frame of the display device 10 along the y-axis. M and N can be the same or different, and N and M are positive integers greater than 0.
[0030] like Figure 2The diagram shown is a schematic diagram of the principle of displaying writing marks on a display device according to an embodiment of this application. The display device 10 uses an infrared emitting unit 1011 and an infrared receiving unit 1031 installed on its periphery to detect and locate the vertical distance H between the writing device 20 and the infrared reference surface of the display device 10, that is, the height H of the writing device 20 from the infrared reference surface of the display device 10, which is also the infrared height.
[0031] The principle is that the closer the writing device 20 is to the display device 10, the more infrared light is blocked by the writing device 20, and the less intensity value of the infrared light received by the infrared receiving unit 1031 will be. Therefore, the mapping relationship between the intensity value of the infrared light and the infrared height of the writing device 20 is obtained.
[0032] When the height of the writing device 20 from the display device is less than or equal to H0, the display device 10 begins to display traces of the writing device 10's movement. When the height of the writing device 20 from the display device 10 is greater than H0, the display device 20 does not display traces of the writing device's movement. In other words, the writing height H0 is the height threshold of the writing device 20 from the display device 10 when the display device 10 displays the writing traces generated by the movement of the writing device 20; for example, H0 is 5mm.
[0033] It is worth noting that infrared height refers to the height value of the writing device 10 from the infrared reference surface of the display device 10, as collected by the display device 10 through an infrared device. This infrared reference surface is the reference surface calibrated when the display device 10 is installed. However, in actual use, due to issues such as screen deformation and unstable placement, there is a deviation between the infrared reference surface and the actual screen of the display device 20. Therefore, the infrared height cannot accurately reflect the actual distance between the writing device 20 and the display device 10. For example, if the infrared height between the writing device 20 and the display device 10 is 2mm, the actual height between them is 0.1mm.
[0034] In one embodiment, such as Figure 3 As shown, a method for determining writing distance is proposed. This method can be implemented using a computer program and can run on a writing distance determination device based on the von Neumann architecture. This computer program can be integrated into applications or run as a standalone utility application.
[0035] Specifically, the method for determining the writing distance includes:
[0036] S101. Obtain the trend of change in the infrared height of the writing device from the display device based on the infrared device.
[0037] The trend of changes in the infrared height of the writing device 20 relative to the display device 10 includes decreasing infrared height, increasing infrared height, or remaining unchanged infrared height. Decreasing infrared height means the writing device 20 is moving closer to the display device 10; increasing infrared height means the writing device 20 is moving further away from the display device 10; and remaining unchanged infrared height means the writing device 20 is moving parallel to the display device 10.
[0038] In this embodiment, the display device 10 acquires multiple infrared heights corresponding to different times, predicts the multiple infrared heights corresponding to different times, and obtains the changing trend of the infrared height of the writing device from the display device.
[0039] like Figure 4 The diagram shown is a dynamic illustration of the infrared height variation trend provided in an embodiment of this application. Multiple infrared heights of the writing device 20 were acquired at different times, including infrared heights H1, H2, H3, H4, H5, and H6. The curve formed by these multiple infrared heights was smoothed to obtain curve L1 corresponding to each infrared height. The variation trend of the infrared height of the writing device 20 was obtained based on curve L1. For example, as shown in Figure 4, the variation trend is that the infrared height decreases, and the writing device 20 moves closer to the display device 10.
[0040] In one embodiment, this application uses a time series model with an added attention mechanism to predict a sequence composed of multiple infrared altitudes. Under the premise of obtaining a more accurate trend of infrared altitude changes, it is not necessary to collect a large number of infrared altitudes. That is, the trend of infrared altitude changes is predicted by short sequences of infrared altitudes.
[0041] Specifically, such as Figure 5 The diagram shown is a schematic of a time series model for predicting the trend of infrared altitude change provided in an embodiment of this application. The diagram includes a Long Short Term Memory (LSTM) network, which is a typical time series model.
[0042] X1, X2, X3, ..., X m These are the inputs to each Long Short-Term Memory (LSTM) network, i.e., each infrared height. For example, X1 is... Figure 4 The infrared heights H1 and X2 shown are Figure 4 The infrared height H2 is shown in the diagram. First, the current time step is input into the Long Short-Term Memory network, for example, by... Figure 5The infrared height H1 is shown as X1 input to the Long Short-Term Memory (LSTM) network, and the infrared height H2 is shown as X2 input to the LSTM network. In the LSTM network, the input values pass through three fully connected layers with sigmoid activation functions, which are used to compute the input gate I. t Forgotten Gate F t and output gate O t The value of the output gate O t Including the gate mechanism of Long Short-Term Memory (LSTM) networks, input gate I t Select which current information to input, forget gate F t By selectively forgetting past information, we can resolve long-term dependency issues and ultimately output the hidden state value corresponding to each input value. For example, we obtain the hidden state value h1 corresponding to the infrared height H1 as input value X1, the hidden state value h2 corresponding to the infrared height H2 as input value X2, and so on.
[0043] Furthermore, the attention mechanism mimics the human brain's attention mechanism, enabling it to grasp key information from long sequences by weighting the hidden state values of all input values and focusing attention on more important information. For example... Figure 5 As shown in the attention box, the attention layer first transforms the hidden state values output by each Long Short-Term Memory (LSTM) network into a representation function U for the hidden state through a nonlinear transformation. t Then represent the function U t The attention mechanism matrix U corresponding to each hidden state value w Perform a dot product and then Softmax normalization to obtain the weight coefficient α for each input value. t The weight coefficients are summed with the output of the Long Short-Term Memory (LSTM) network to obtain the output S. t The output S t This refers to the predicted value for the next step corresponding to the input value of the current step, including the following formula:
[0044] U t =tanh(h) t W w +b w )
[0045]
[0046] S t =∑ t α t h t
[0047] For example, in a time-series model using an attention mechanism, infrared heights H4, H5, and H6 are used as input values X4, X5, and X6, respectively, and fed into a Long Short-Term Memory (LSTM) network to obtain hidden state values h4, h5, and h6 corresponding to input values X4, X5, and X6. Further, weight coefficients α4, α5, and α6 are derived from these hidden state values using an attention mechanism. These weight coefficients are then weighted and summed with the hidden state values to obtain the output S7, which is the predicted infrared height H7. Furthermore, the relationship between infrared heights H4, H5, H6, and H7 reveals the trend of infrared height variation. For instance, if infrared height H7 is less than infrared height H6, the trend of infrared height variation decreases.
[0048] In this embodiment, a time series model with an attention mechanism is used to predict a sequence composed of multiple infrared altitudes. This allows for a more accurate prediction of the changing trend of infrared altitudes without the need to collect a large amount of infrared altitude data. In other words, the changing trend of infrared altitudes is predicted using short sequences of infrared altitudes.
[0049] S102. Adjust the preset writing height according to the changing trend of infrared height to obtain the target writing height.
[0050] Specifically, when the detected infrared height shows a decreasing trend, the preset writing height is reduced. For example, if the preset writing height is 5mm, the display device will start displaying writing marks caused by the movement of the writing device when the height of the writing device from the display device is less than or equal to 5mm. As the detected infrared height of the writing device decreases further, for example, if the detected infrared height sequence is 5mm, 4.5mm, 4mm, 3.5mm, the preset writing height will also be gradually reduced. It is understandable that during the process of reducing the preset height, the display device may continue to display writing marks caused by the movement of the writing device, or it may not display writing marks caused by the movement of the writing device, which can be set by the staff according to their work needs.
[0051] During the process of reducing the preset writing height, if the detected trend of infrared height change is unchanged, the infrared height with the unchanged trend is determined as the target writing height. In other words, if the infrared height of the writing device remains unchanged during movement, the actual height of the writing device from the display device is likely 0. This infrared height is taken as the target writing height, and the display device shows the writing marks caused by the movement of the writing device based on the target writing height, thus avoiding the user feeling like they are writing in thin air, significantly improving the user experience. For example, if the detected infrared height sequence of the writing device is 3.5mm, 3.5mm, 3.5mm, 3.5mm, the trend of infrared height change is unchanged, and 3.5mm is taken as the target writing height.
[0052] This application uses an infrared device to obtain the changing trend of the infrared height between the writing device and the display device, and further adjusts the preset writing height according to the changing trend of the infrared height to obtain the target writing height. In other words, this application extracts a large amount of feature information from the infrared matrix collected by the infrared device, and adjusts the writing height from the perspective of data analysis and combined with the objective laws of user writing. This makes up for the shortcomings of the prior art that only improves the hardware conditions of the display device, improves the accuracy of the target writing height, reduces the writing height, and optimizes the user experience.
[0053] In one embodiment, such as Figure 6 As shown, a method for determining writing distance is proposed. This method can be implemented using a computer program and can run on a writing distance determination device based on the von Neumann architecture. This computer program can be integrated into applications or run as a standalone utility application.
[0054] Specifically, the method for determining the writing distance includes:
[0055] S201. During the movement of the writing device, multiple infrared matrices corresponding to different times are acquired through an infrared device.
[0056] like Figure 1 As shown, during the movement of the writing device 20, the display 10 obtains the intensity values of multiple infrared rays corresponding to different times through the infrared device, and combines the multiple infrared intensity values into an infrared matrix, that is, obtains the infrared matrix corresponding to different times.
[0057] In one embodiment, to prevent the infrared receiving units in the x-direction and y-direction from interleaving and receiving infrared signals, thus generating signal noise, under certain hardware settings, the infrared receiving unit in the x-direction can only receive infrared light emitted from the infrared emitting unit in the x-direction, and the infrared receiving unit in the y-direction can only receive infrared light emitted from the infrared emitting unit in the y-direction. For example, the infrared receiving unit 1031 can receive N infrared rays from infrared emitting units 1011, 1012, ..., 101N.
[0058] For any coordinate position (x, y) of the writing device 20 and the height H of the writing device 20 from the display device 10, an N×N two-dimensional matrix can be obtained in the x direction and an M×M two-dimensional matrix can be obtained in the y direction.
[0059] like Figure 7 The diagram shows a data representation of an infrared matrix corresponding to the x-direction provided in an embodiment of this application. The first row, X(1,1), X(1,2), X(1,3), ..., X(1,N), represents the intensity values of infrared light received by the infrared receiving unit 1031 from N infrared emitting units. The first column, X(1,1), X(2,1), X(3,1), ..., X(N,1), represents the intensity values of infrared light emitted by the infrared emitting unit 1011 after being received by N infrared receiving units. It can be understood that the infrared matrix corresponding to the y-direction is in the form of... Figure 7 As shown.
[0060] In one embodiment, multiple acquired infrared matrices and their corresponding acquisition times are saved to a Hadoop Distributed File System (Hadoop Distributed File System). For example, each acquisition time is associated with the infrared matrix in the x-direction and the infrared matrix in the y-direction as a partition, and this partition data is stored in the Hadoop Distributed File System. The advantages of this data acquisition and storage scheme are: for extremely large datasets, saving multiple partitions to the Hadoop Distributed File System facilitates access, is fast, and is convenient for data processing.
[0061] S202. Based on at least one infrared intensity value included in each infrared matrix, obtain the infrared feature information corresponding to the infrared matrix.
[0062] Each infrared matrix includes multiple intensity values of infrared light, such as Figure 7 As shown. Infrared feature information can be understood as information representing the infrared matrix obtained after processing the infrared matrix by summing, multiplying, finding the median, finding the minimum value, etc.
[0063] In one embodiment, each infrared matrix is preprocessed to obtain a preprocessed infrared matrix, wherein the preprocessing includes at least noise reduction processing; and infrared feature information corresponding to the infrared matrix is obtained based on at least one infrared intensity value included in each preprocessed infrared matrix.
[0064] Due to deviations between the actual and preset values of infrared light emitted by each infrared emitting unit during operation, and the obstruction of infrared light caused by screen deformation of the display device, the acquired infrared matrix contains background noise. Therefore, in this application, the infrared matrix is preprocessed before obtaining the infrared feature information corresponding to the infrared matrix to improve the accuracy of the obtained infrared feature information.
[0065] In one embodiment, a convolutional neural network is used to calculate at least one infrared intensity value included in the infrared matrix to obtain infrared feature information corresponding to the infrared matrix, wherein the infrared feature information includes feature information in multiple dimensions.
[0066] In neural networks, the network used to process image data is called a Convolutional Neural Network (CNN). A CNN has a pooling layer, which reduces the sensitivity to location and also reduces the sensitivity to spatial downsampling representation. This application uses a CNN to process the infrared matrix, improves the utilization of the infrared intensity values included in the infrared matrix, and further improves the accuracy of the obtained infrared feature information.
[0067] Convolutional neural network pooling layers include max pooling and average pooling. This application also includes any one or more pooling layer types such as minimum pooling, median pooling, and standard deviation pooling. For example, in a max pooling layer, the pooling layer operator consists of a fixed-shape window that slides across all regions of the input according to its stride, computing an output for each position traversed by the fixed-shape window (sometimes called a pooling window). Pooling layers do not contain parameters and are deterministic. Each pooling layer corresponds to one dimension of feature information.
[0068] The infrared matrix is processed through multiple convergence layers to obtain the output value corresponding to each convergence layer. Further processing of these output values yields infrared feature values. For example, the gradient boosting algorithm can be used to make decisions on the output values, ultimately outputting infrared feature values. Gradient boosting is a machine learning algorithm for regression, classification, and ranking tasks, belonging to the boosting algorithm family. It's an algorithm that integrates multiple weak classifiers into a strong classifier. The most commonly used weak classifier is the decision tree (usually a CART tree), also known as the gradient boosting decision tree (GBDT).
[0069] For example, in the maximum pooling layer, the infrared matrix includes a 144×144 matrix in the x-direction. Using a maximum pooling layer with a stride of 6 and a pooling window of 6×6, the dimension of the output data is (144 / 6)×(144 / 6)=24×24, which is flattened to 24×24=576 dimensions. The infrared matrix includes a 102×102 matrix in the y-direction. Using the same maximum pooling layer, the dimension of the output data is (102 / 6)×(102 / 6)=17×17, which is flattened to 17×17=289 dimensions.
[0070] Furthermore, the output value (x) of the maximum convergence layer is further improved using the gradient boosting algorithm. n y n The infrared feature values are calculated. Specifically, a dataset T = {(x1, y1), (x2, y2), ..., (x...} is obtained, consisting of multiple output values from the maximum convergence layer. N y N )}, obtain the gradient boosting tree f M (x), initialize f0(x) = 0, where m = 1, 2, ..., M, and calculate the residuals using the following formula:
[0071] r mi =y i -f m-1 (x i ), i = 1, 2, ..., N;
[0072] Fitting residual r mi Learning a regression tree yields the regression tree T(x; σ). m Update the gradient boosting tree according to the following formula:
[0073] f m (x)=f m-1 (x)+T(x;σ m );
[0074] The gradient boosting tree for the regression problem is obtained as follows, and σ is output. m As an infrared characteristic value;
[0075]
[0076] In this embodiment, the output value of each convergence layer is calculated using a gradient boosting tree to obtain infrared feature information, thereby improving the utilization rate of the infrared intensity values included in the infrared matrix and further improving the accuracy of the obtained infrared feature information.
[0077] S203. Based on the correspondence between the infrared feature information obtained from training and the infrared height, determine the infrared height corresponding to each infrared matrix.
[0078] During training, various auxiliary methods such as robotic arms and positioning rulers are used to collect the infrared matrix during the movement of the writing device, as well as the infrared height of the writing device from the display device. Infrared feature information is extracted from the collected infrared matrix using steps S201 and S202, and this feature information is then associated with and stored along with the corresponding infrared height. For example, multiple infrared matrices and corresponding infrared heights H are collected at different times. The infrared matrices are then processed using a convolutional neural network and a gradient boosting tree to obtain the infrared feature information σ. m , will infrared feature information σ m With the corresponding infrared height H m Save the associated information. Based on the correspondence between the saved infrared feature information and infrared altitude, determine the infrared altitude corresponding to each infrared matrix.
[0079] S204. Based on multiple infrared heights corresponding to different times, obtain the changing trend of the infrared height between the writing device and the display device.
[0080] S204 is the same as S101 above, and will not be repeated here.
[0081] S205. Adjust the preset writing height according to the changing trend of infrared height to obtain the target writing height.
[0082] S205 is the same as S102 above, and will not be repeated here.
[0083] This application uses an infrared device to obtain the changing trend of the infrared height between the writing device and the display device, and further adjusts the preset writing height according to the changing trend of the infrared height to obtain the target writing height. In other words, this application extracts a large amount of feature information from the infrared matrix collected by the infrared device, and adjusts the writing height from the perspective of data analysis and combined with the objective laws of user writing. This makes up for the shortcomings of the prior art that only improves the hardware conditions of the display device, improves the accuracy of the target writing height, reduces the writing height, and optimizes the user experience.
[0084] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0085] Please see Figure 8 This illustration shows a schematic diagram of a writing distance determination device provided in an exemplary embodiment of this application. The writing distance determination device can be implemented as all or part of a device through software, hardware, or a combination of both. The device includes a height variation module 801 and a height determination module 802.
[0086] The height change module 801 is used to obtain the changing trend of the infrared height of the writing device from the display device based on the infrared device.
[0087] The height determination module 802 is used to adjust the preset writing height according to the changing trend of the infrared height to obtain the target writing height; wherein, the writing height is the height threshold of the writing device from the display device when the display device displays the writing marks generated by the movement of the writing device.
[0088] In one embodiment, the height determination module 802 includes:
[0089] The height reduction unit is used to reduce the preset writing height until the target writing height is obtained when the detected trend of the infrared height change is getting smaller.
[0090] In one embodiment, the height reduction unit is specifically used to determine the infrared height with no change in trend as the target writing height when the infrared height is detected to be unchanged during the process of reducing the preset writing height.
[0091] In one embodiment, the height variation module 801 includes:
[0092] The acquisition unit is used to acquire multiple infrared heights corresponding to different times.
[0093] The prediction unit is used to predict multiple infrared heights corresponding to different times to obtain the changing trend of the infrared height between the writing device and the display device.
[0094] In one embodiment, the height variation module 801 includes:
[0095] A matrix acquisition unit is used to acquire multiple infrared matrices corresponding to different times through the infrared device during the movement of the writing device; wherein, the infrared device includes at least one set of infrared emitting units and infrared receiving units, the infrared receiving unit receives infrared rays from the infrared emitting units and acquires the infrared intensity value corresponding to the infrared rays;
[0096] An infrared feature unit is used to obtain infrared feature information corresponding to each infrared matrix based on at least one infrared intensity value included in each infrared matrix.
[0097] A height unit is defined to determine the infrared height corresponding to each infrared matrix based on the correspondence between the infrared feature information obtained during training and the infrared height.
[0098] A change determination unit is used to obtain the changing trend of the infrared height of the writing device from the display device based on multiple infrared heights corresponding to different times.
[0099] In one embodiment, the infrared feature unit is specifically used to preprocess each of the infrared matrices to obtain a preprocessed infrared matrix; wherein the preprocessing includes at least noise reduction processing;
[0100] And based on at least one infrared intensity value included in each of the preprocessed infrared matrices, infrared feature information corresponding to the infrared matrix is obtained.
[0101] In one embodiment, the infrared feature unit is specifically used to calculate at least one infrared intensity value included in the infrared matrix using a convolutional neural network to obtain infrared feature information corresponding to the infrared matrix; wherein, the infrared feature information includes feature information in multiple dimensions.
[0102] It should be noted that the above embodiments of the writing distance determination device are only illustrated by the division of the above functional modules when executing the writing distance determination method. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the writing distance determination device and the writing distance determination method embodiments provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.
[0103] This application uses an infrared device to obtain the changing trend of the infrared height between the writing device and the display device, and further adjusts the preset writing height according to the changing trend of the infrared height to obtain the target writing height. In other words, this application extracts a large amount of feature information from the infrared matrix collected by the infrared device, and adjusts the writing height from the perspective of data analysis and combined with the objective laws of user writing. This makes up for the shortcomings of the prior art that only improves the hardware conditions of the display device, improves the accuracy of the target writing height, reduces the writing height, and optimizes the user experience.
[0104] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0105] This application also provides a computer storage medium that can store multiple instructions, which are adapted to be loaded and executed by a processor as described above. Figures 1-7 The method for determining the writing distance in the illustrated embodiment can be found in the following documentation for a detailed execution process. Figures 1-7 The specific details of the illustrated embodiments will not be elaborated here.
[0106] This application also provides a computer program product storing at least one instruction, which is loaded and executed by the processor as described above. Figures 1-7 The method for determining the writing distance in the illustrated embodiment can be found in the following documentation for a detailed execution process. Figures 1-7 The specific details of the illustrated embodiments will not be elaborated here.
[0107] Please see Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 9 As shown, the electronic device 900 may include: at least one processor 901, at least one network interface 904, a user interface 903, a memory 905, and at least one communication bus 902.
[0108] The communication bus 902 is used to enable communication between these components.
[0109] The user interface 903 may include a display screen and a camera. Optionally, the user interface 903 may also include a standard wired interface and a wireless interface.
[0110] The network interface 904 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0111] The processor 901 may include one or more processing cores. The processor 901 connects to various parts of the server 900 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 905, and by calling data stored in the memory 905. Optionally, the processor 901 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 901 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor 901.
[0112] The memory 905 may include random access memory (RAM) or read-only memory. Optionally, the memory 905 may include a non-transitory computer-readable storage medium. The memory 905 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 905 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 905 may also be at least one storage device located remotely from the aforementioned processor 901. Figure 9 As shown, the memory 905, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an application for determining writing distance.
[0113] exist Figure 9In the illustrated electronic device 900, the user interface 903 is mainly used to provide an input interface for the user and to acquire user input data; while the processor 901 can be used to call the writing distance determination application stored in the memory 905 and specifically perform the following operations:
[0114] The infrared device is used to obtain the changing trend of the infrared height of the writing device from the display device.
[0115] The preset writing height is adjusted according to the changing trend of the infrared height to obtain the target writing height; wherein, the writing height is the height threshold of the writing device from the display device when the display device displays the writing marks generated by the movement of the writing device.
[0116] In one embodiment, the processor 901 performs the adjustment of the preset writing height based on the changing trend of the infrared height to obtain the target writing height, specifically:
[0117] When the infrared height is detected to be decreasing, the preset writing height is reduced until the target writing height is obtained.
[0118] In one embodiment, the processor 901 executes the step of reducing the preset writing height when the detected trend of the infrared height changing to be increasingly smaller, until the target writing height is obtained. Specifically, the following is executed:
[0119] During the process of reducing the preset writing height, if the trend of the infrared height change is detected to be unchanged, the infrared height with the unchanged trend is determined as the target writing height.
[0120] In one embodiment, the processor 901 executes the step of obtaining the changing trend of the infrared height between the writing device and the display device based on the infrared device, specifically performing:
[0121] Obtain multiple infrared altitudes corresponding to different times;
[0122] By predicting multiple infrared heights corresponding to different times, the changing trend of the infrared height between the writing device and the display device is obtained.
[0123] In one embodiment, the processor 901 executes the step of obtaining the changing trend of the infrared height of the writing device from the display device based on the infrared device, specifically by:
[0124] During the movement of the writing device, multiple infrared matrices corresponding to different times are acquired by the infrared device; wherein, the infrared device includes at least one set of infrared emitting units and infrared receiving units, the infrared receiving units receive infrared rays from the infrared emitting units and acquire the infrared intensity value corresponding to the infrared rays;
[0125] Based on at least one infrared intensity value included in each infrared matrix, the infrared feature information corresponding to the infrared matrix is obtained;
[0126] Based on the correspondence between the infrared feature information and infrared height obtained from training, the infrared height corresponding to each infrared matrix is determined;
[0127] Based on the multiple infrared heights corresponding to different times, the changing trend of the infrared height of the writing device from the display device is obtained.
[0128] In one embodiment, the processor 901 executes the step of obtaining infrared feature information corresponding to the infrared matrix based on at least one infrared intensity value included in each infrared matrix, specifically executing:
[0129] Each of the infrared matrices is preprocessed to obtain a preprocessed infrared matrix; wherein the preprocessing includes at least noise reduction processing;
[0130] Infrared feature information corresponding to each infrared matrix is obtained based on at least one infrared intensity value included in each of the preprocessed infrared matrices.
[0131] In one embodiment, the processor 901 executes the step of obtaining infrared feature information corresponding to the infrared matrix based on at least one infrared intensity value included in each infrared matrix, specifically executing:
[0132] The infrared feature information corresponding to the infrared matrix is obtained by calculating at least one infrared intensity value included in the infrared matrix using a convolutional neural network; wherein the infrared feature information includes feature information in multiple dimensions.
[0133] This application uses an infrared device to obtain the changing trend of the infrared height between the writing device and the display device, and further adjusts the preset writing height according to the changing trend of the infrared height to obtain the target writing height. In other words, this application extracts a large amount of feature information from the infrared matrix collected by the infrared device, and adjusts the writing height from the perspective of data analysis and combined with the objective laws of user writing. This makes up for the shortcomings of the prior art that only improves the hardware conditions of the display device, improves the accuracy of the target writing height, reduces the writing height, and optimizes the user experience.
[0134] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory, or random access memory, etc.
[0135] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.
Claims
1. A method for determining writing height, characterized in that, The method includes: The infrared device is used to obtain the changing trend of the infrared height of the writing device from the display device. The preset writing height is adjusted according to the trend of infrared height change to obtain the target writing height; wherein, the writing height is the height threshold of the writing device from the display device when the display device displays the writing marks generated by the movement of the writing device. When the trend of infrared height change is detected to be getting smaller and smaller, the preset writing height is reduced. During the process of reducing the preset writing height, when the trend of infrared height change is detected to be unchanged, the infrared height with the unchanged trend is determined as the target writing height.
2. The method according to claim 1, characterized in that, The step of obtaining the trend of infrared height change between the writing device and the display device based on the infrared device includes: Obtain multiple infrared altitudes corresponding to different times; By predicting multiple infrared heights corresponding to different times, the changing trend of the infrared height between the writing device and the display device is obtained.
3. The method according to claim 1, characterized in that, The step of obtaining the changing trend of the infrared height of the writing device from the display device based on the infrared device includes: During the movement of the writing device, multiple infrared matrices corresponding to different times are acquired by the infrared device; wherein, the infrared device includes at least one set of infrared emitting units and infrared receiving units, the infrared receiving units receive infrared rays from the infrared emitting units and acquire the infrared intensity value corresponding to the infrared rays; Based on at least one infrared intensity value included in each infrared matrix, the infrared feature information corresponding to the infrared matrix is obtained; Based on the correspondence between the infrared feature information and infrared height obtained from training, the infrared height corresponding to each infrared matrix is determined; Based on the multiple infrared heights corresponding to different times, the changing trend of the infrared height of the writing device from the display device is obtained.
4. The method according to claim 3, characterized in that, The step of obtaining the infrared feature information corresponding to each infrared matrix based on at least one infrared intensity value included in each infrared matrix includes: Each of the infrared matrices is preprocessed to obtain a preprocessed infrared matrix; wherein the preprocessing includes at least noise reduction processing; Infrared feature information corresponding to each infrared matrix is obtained based on at least one infrared intensity value included in each of the preprocessed infrared matrices.
5. The method according to claim 4, characterized in that, The step of obtaining the infrared feature information corresponding to each infrared matrix based on at least one infrared intensity value included in each infrared matrix includes: The infrared feature information corresponding to the infrared matrix is obtained by calculating at least one infrared intensity value included in the infrared matrix using a convolutional neural network; wherein the infrared feature information includes feature information in multiple dimensions.
6. A device for determining writing height, characterized in that, The device includes: The height change module is used to obtain the changing trend of the infrared height of the writing device from the display device based on the infrared device. A height determination module is used to adjust a preset writing height based on the changing trend of the infrared height to obtain a target writing height; wherein, the writing height is a height threshold of the writing device from the display device when the display device displays the writing marks generated by the movement of the writing device; when the changing trend of the infrared height is detected to be decreasing, the preset writing height is reduced; when the changing trend of the infrared height is detected to be unchanged during the process of reducing the preset writing height, the infrared height with the unchanged changing trend is determined as the target writing height.
7. A computer storage medium, characterized in that, The computer storage medium stores a plurality of instructions, which are adapted to be loaded by a processor and executed as the method steps of any one of claims 1 to 5.
8. An electronic device, characterized in that, include: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed the method steps as claimed in any one of claims 1 to 5.
Citation Information
Patent Citations
Touch system, method for sensing height of referent and method for sensing coordinates of referent
CN102033657A
Processing device, sensitivity adjustment method and program
WO2013190857A1
