Identification method and device for infrared intelligent pen, equipment and storage medium
By receiving and processing infrared signals and touch trajectories sent by infrared smart pens, combined with the smart pen marking and signal sequence, multiple infrared smart pens are realized to display writing trajectories of different colors on the touch screen, solving the problem of difficulty in color distinction when used by multiple people in the prior art.
Patent Information
- Application Number
- CN202311356781.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-18
- Publication Date
- 2025-04-18
AI Technical Summary
The prior art cannot realize that multiple infrared smart pens write touch tracks of different colors on the touch screen, making it difficult to distinguish their writing colors when multiple people use them at the same time.
By receiving infrared signals carrying smart pen marks sent by multiple infrared smart pens, and obtaining multiple touch tracks, determining their color based on the smart pen marks of the target infrared smart pen, and determining the touch tracks of each infrared smart pen according to the order of receiving infrared signals and the order of obtaining touch tracks, and finally displaying them according to the corresponding color.
It realizes that when multiple infrared smart pens are written at the same time, the touch screen can display the writing colors of each infrared smart pen, solving the problem of difficulty in color distinction when multiple people use it.
Smart Images

Figure CN119847348A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smart pen recognition, and in particular to a recognition method, device, equipment, and storage medium for an infrared smart pen. Background Art
[0002] At present, interactive systems including infrared smart pens and touch screens are widely used in classrooms, conference rooms, lecture halls and other occasions.
[0003] During the interaction between the infrared smart pen and the touch screen, the related technology usually uses a color switching menu on the touch screen to switch the color of the infrared smart pen, so that a single infrared smart pen can write writing tracks of different colors on the touch screen.
[0004] However, in the actual use of infrared smart pens, there are situations where multiple people use multiple infrared smart pens to write at the same time, and in order to facilitate distinction, the touch tracks of multiple infrared smart pens need to display different colors. The related art cannot achieve a solution in which multiple infrared smart pens write touch tracks of different colors on a touch screen.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0007] The disclosed embodiments provide a method and apparatus, device, and storage medium for identifying an infrared smart pen. When multiple infrared smart pens are writing on a touch screen, the touch screen can display the writing color of each infrared smart pen.
[0008] In a first aspect, an embodiment of the present disclosure provides a method for identifying an infrared smart pen, which is applied to a touch screen. The method includes:
[0009] Receiving multiple infrared signals carrying smart pen identifiers sent by multiple infrared smart pens, and acquiring multiple touch tracks;
[0010] Determine the color of the target infrared smart pen according to the smart pen identifier of the target infrared smart pen; wherein the target infrared smart pen is any one of the multiple infrared smart pens;
[0011] Determine the touch track of the target infrared smart pen according to the order of receiving the multiple infrared signals and the order of acquiring the multiple touch tracks;
[0012] Make the touch track of the target infrared smart pen be displayed according to the color of the target infrared smart pen.
[0013] In a second aspect, an embodiment of the present disclosure provides a control method for an infrared smart pen, the method comprising:
[0014] When the tips of multiple infrared smart pens touch the touch screen, each infrared smart pen sends an infrared signal carrying a smart pen identifier to the touch screen, so that the touch screen identifies the target color of the target infrared smart pen according to the smart pen identifier of the target infrared smart pen, and makes the touch track of the target infrared smart pen display the target color; wherein the target infrared smart pen is any one of the multiple infrared smart pens.
[0015] In a third aspect, an embodiment of the present disclosure provides a recognition device for an infrared smart pen, which is integrated into a touch screen, and the device includes:
[0016] A signal receiving module, used for receiving a plurality of infrared signals carrying smart pen identifiers sent by a plurality of infrared smart pens, and obtaining a plurality of touch tracks;
[0017] A color recognition module is used to determine the color of a target infrared smart pen according to the smart pen identifier of the target infrared smart pen; wherein the target infrared smart pen is any one of the multiple infrared smart pens;
[0018] A trajectory matching module determines the touch trajectory of the target infrared smart pen according to the order in which the multiple infrared signals are received and the order in which the multiple touch trajectories are acquired;
[0019] The track display module enables the touch track of the target infrared smart pen to be displayed according to the color of the target infrared smart pen.
[0020] In a fourth aspect, an embodiment of the present disclosure provides a control device for an infrared smart pen, which is integrated in the infrared smart pen, and the device includes:
[0021] The signal sending module is used for each infrared smart pen to send an infrared signal carrying a smart pen identifier to the touch screen when the pen tips of multiple infrared smart pens touch the touch screen, so that the touch screen can identify the target color of the target infrared smart pen according to the smart pen identifier of the target infrared smart pen, and make the touch track of the target infrared smart pen display the target color; wherein the target infrared smart pen is any one of the multiple infrared smart pens.
[0022] In a fifth aspect, an embodiment of the present disclosure provides an interactive system, including a touch screen and a plurality of infrared smart pens, wherein:
[0023] A touch screen, used to implement the aforementioned recognition method for the infrared smart pen;
[0024] Each infrared smart pen is used for the aforementioned control method for the infrared smart pen.
[0025] In a sixth aspect, an embodiment of the present disclosure provides an electronic device, comprising a processor and a memory storing program instructions, wherein the processor is configured to execute the aforementioned recognition method for an infrared smart pen or the aforementioned control method for an infrared smart pen when running the program instructions.
[0026] In a seventh aspect, an embodiment of the present disclosure provides a storage medium storing program instructions, wherein when the program instructions are run, the program instructions execute the aforementioned recognition method for the infrared smart pen or the aforementioned control method for the infrared smart pen.
[0027] The recognition method, device, equipment, and storage medium for an infrared smart pen provided by the embodiments of the present disclosure can achieve the following technical effects:
[0028] When multiple infrared smart pens write on the touch screen, the multiple infrared smart pens will send infrared signals carrying their respective smart pen identifiers to the touch screen, and the touch screen can also obtain multiple touch tracks. In the disclosed embodiment, the smart pen identifier is used to identify the color of the infrared smart pen. In this way, the touch screen can determine the color of each infrared smart pen according to the smart pen identifier of each infrared smart pen. Moreover, since the transmission speed of the infrared signal is in the millisecond level, the order in which the touch screen receives the infrared signals sent by the multiple infrared smart pens corresponds to the order of the multiple touch tracks obtained by the touch screen. In view of this, the touch screen can determine the corresponding touch track of each infrared smart pen according to the corresponding relationship between the order of receiving multiple infrared signals and the order of obtaining multiple touch tracks, and make the touch track of each infrared smart pen display its corresponding color. Thus, when multiple infrared smart pens write on the touch screen, the touch screen can display the writing color of each infrared smart pen.
[0029] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0031] Figure 1 It is a schematic diagram of a traditional interactive system;
[0032] Figure 2 It is another schematic diagram of the traditional interactive system;
[0033] Figure 3 is a schematic diagram of an interactive system provided by an embodiment of the present disclosure;
[0034] Figure 4 is a control circuit diagram of an infrared signal provided by an embodiment of the present disclosure;
[0035] Figure 5 is a circuit diagram of an infrared signal transmission provided by an embodiment of the present disclosure;
[0036] Figure 6 is a schematic diagram of an infrared signal receiving circuit provided by an embodiment of the present disclosure;
[0037] Figure 7 is a flow chart of a method for identifying an infrared smart pen provided by an embodiment of the present disclosure;
[0038] Figure 8 is a waveform diagram of an infrared signal for an infrared smart pen provided by an embodiment of the present disclosure;
[0039] Fig. 9 is a flow chart of another method for identifying an infrared smart pen provided by an embodiment of the present disclosure;
[0040] Fig.10 is a flow chart of a control method for an interactive system provided by an embodiment of the present disclosure;
[0041] Fig.11 is a flow chart of a control method for an infrared smart pen provided by an embodiment of the present disclosure;
[0042] Fig.12 is a schematic diagram of a recognition device for an infrared smart pen provided by an embodiment of the present disclosure;
[0043] Fig.13 is a schematic diagram of a control device for an infrared smart pen provided by an embodiment of the present disclosure;
[0044] Fig.14 It is a schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0045] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0046] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0047] Unless otherwise specified, the term "plurality" means two or more. The term "multiple" means two or more.
[0048] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0049] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0050] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0051] In the disclosed embodiment, the infrared smart pen refers to a multifunctional mobile pen that can communicate with a matching operating platform compared to a traditional pen.
[0052] In the disclosed embodiment, the touch screen is an infrared touch screen. When a user writes at a certain position on the touch screen with an infrared smart pen, the infrared smart pen will block the horizontal and vertical infrared rays passing through that position, thereby determining the writing position of the infrared smart pen on the screen. The position points of the infrared smart pen on the screen are connected together to form a touch track of the infrared smart pen.
[0053] Combination Figure 1 As shown, the traditional interactive system includes an infrared smart pen 1 and a touch screen 2.
[0054] Combination Figure 2 As shown, in the conventional interactive system, the infrared smart pen 1 includes an MCU (Microcontroller Unit) 11 and a sending module 12. The touch screen 2 includes a receiving module 21, a controller 22, a processing module 23 and a detection module 24. The infrared smart pen 1 and the touch screen 2 communicate using infrared rays.
[0055] When the infrared smart pen 1 writes on the touch screen 2, the pressure signal generated by the tip of the infrared smart pen 1 is uploaded to the MCU 11, so that the MCU 11 controls the sending module 12 to send an infrared signal to the touch screen 2. The receiving module 21 of the touch screen 2 can receive the infrared signal from the infrared smart pen 1, and use the processing module 23 to convert the infrared signal into a digital signal, so that the controller 22 processes the digital signal. In addition, the detection module 24 of the touch screen 2 can detect the touch track of the infrared smart pen 1 on the touch screen 2.
[0056] Optionally, when the infrared smart pen 1 needs to switch colors, a color switching instruction is generated through the color switching menu on the touch screen 2 and uploaded to the controller 22 of the touch screen 2. The controller 22 can control the touch screen 2 to switch the display color of the touch track according to the color switching instruction.
[0057] However, in the actual use of infrared smart pens, there are situations where multiple people use multiple infrared smart pens to write at the same time, and in order to facilitate differentiation, multiple infrared smart pens need to display different colors. Traditional interactive systems cannot achieve the solution of multiple infrared smart pens writing different colors on the touch screen.
[0058] In view of this, the embodiments of the present disclosure provide a method and apparatus, device, and storage medium for identifying an infrared smart pen. When multiple infrared smart pens are writing on a touch screen, the touch screen can display the writing color of each infrared smart pen.
[0059] Combination Figure 3 As shown, an embodiment of the present disclosure provides an interactive system, including a touch screen 31 and multiple infrared smart pens 32, wherein: the touch screen 31 can realize the function of the touch screen 2 in the traditional interactive system, and each of the multiple infrared smart pens 32 can realize the function of the infrared smart pen 1 in the traditional interactive system.
[0060] Combination Figure 4 As shown, the embodiment of the present disclosure provides a control circuit of an infrared signal, which can be applied to Figure 3 For each of the multiple infrared smart pens 32 shown, the circuit includes a first wire 41, a second wire 42 and a switch 43. A connector 44 is provided inside the switch 43. The switch 43 is connected to the MCU of the infrared smart pen through the first wire 41, and the switch 43 is grounded through the second wire 42.
[0061] When the tip of the infrared smart pen touches the touch screen, the connector 44 moves to connect the M end of the first wire 41 to the N end of the second wire 42. In this way, since the circuit is grounded, the level in the circuit will change. When the MCU of the infrared smart pen detects the change in the circuit level, it will control the infrared smart pen to send out an infrared signal.
[0062] Combination Figure 5 As shown, the embodiment of the present disclosure provides an infrared signal transmitting circuit, which can be applied to Figure 3 In each of the plurality of infrared smart pens 32 shown, the circuit includes a first resistor R1, a second resistor R2, an infrared light emitting diode IR1 and a transistor Q1. Among them:
[0063] The base of transistor Q1 is connected to one end of the first resistor R1, and the other end of the first resistor R1 is connected to the MCU of the infrared smart pen, and is used to receive the control signal sent by the infrared smart pen MCU. The collector of transistor Q1 is connected to the cathode of infrared light emitting diode IR1, and the anode of infrared light emitting diode IR1 is connected to one end of the second resistor R2, and the other end of the second resistor R2 is connected to the power supply voltage VCC of the circuit. The second resistor R2 is used to control the current flowing through the infrared light emitting diode IR1. The emitter of transistor Q1 is grounded. In this way, the control signal for transmitting infrared signals sent by the infrared smart pen MCU can control the current of the base of transistor Q1, so that transistor Q1 is converted to the on state, and then the entire circuit is in the on state, and infrared light emitting diode IR1 sends infrared signals.
[0064] It should be noted that in the infrared signal transmitting circuit provided in the embodiment of the present disclosure, the number of infrared light emitting diodes can be set according to the requirements and is not limited thereto. Figure 6 As shown, the embodiment of the present disclosure provides an infrared signal receiving circuit, which can be applied to Figure 3 The touch screen shown in the figure includes an infrared receiving circuit 61, an amplifying circuit 62, an automatic gain control circuit 63, a bandpass filtering circuit 64, a signal demodulation circuit 65, a reverse output circuit 66 and a main control circuit 67. Among them, the infrared receiving circuit 61 is used to receive the infrared signal sent by the infrared smart pen, and transmit the infrared signal to the amplifying circuit 62 for amplification, and the automatic gain control circuit 63 can control the gain of the amplifying circuit 62 to the infrared signal, so that the gain of the amplifying circuit 62 is automatically adjusted with the signal strength. The bandpass filtering circuit 64 is used to filter the amplified infrared signal, and the filtered infrared signal can be transmitted to the signal demodulation circuit 65, so that the signal demodulation circuit 65 restores the infrared signal. The restored infrared signal is transmitted to the reverse output circuit 66, so that the reverse output circuit 66 can output the received infrared signal to the touch screen. In addition, the main control circuit 67 is used to control the processing process of the automatic gain control circuit 63, the bandpass filtering circuit 64 and the signal demodulation circuit 65 on the infrared signal.
[0065] based on Figure 3 The interactive system shown in the figure, the embodiment of the present disclosure provides a recognition method for an infrared smart pen, which is applied to a touch screen. Figure 7 As shown, the method includes:
[0066] S701, receiving a plurality of infrared signals carrying smart pen identifiers sent by a plurality of infrared smart pens.
[0067] S702: Acquire multiple touch tracks.
[0068] S703: Determine the color of the target infrared smart pen according to the smart pen identifier of the target infrared smart pen, wherein the target infrared smart pen is any one of the plurality of infrared smart pens.
[0069] S704, determining the touch track of the target infrared smart pen according to the order in which the multiple infrared signals are received and the order in which the multiple touch tracks are acquired.
[0070] S705, displaying the touch track of the target infrared smart pen according to the color of the target infrared smart pen.
[0071] Using the identification method for infrared smart pens provided in the embodiment of the present disclosure, when multiple infrared smart pens write on the touch screen, the multiple infrared smart pens will send infrared signals carrying their respective smart pen identifiers to the touch screen, and the touch screen can also obtain multiple touch tracks. In the embodiment of the present disclosure, the smart pen identifier is used to identify the color of the infrared smart pen. In this way, the touch screen can determine the color of each infrared smart pen according to the smart pen identifier of each infrared smart pen. Moreover, since the transmission speed of the infrared signal is in the millisecond level, the order in which the touch screen receives the infrared signals sent by the multiple infrared smart pens corresponds to the order of the multiple touch tracks obtained by the touch screen. In view of this, the touch screen can determine the corresponding touch track of each infrared smart pen according to the corresponding relationship between the order of receiving multiple infrared signals and the order of obtaining multiple touch tracks, and make the touch track of each infrared smart pen display its corresponding color. Therefore, when multiple infrared smart pens are writing on the touch screen, the touch screen can display the writing color of each infrared smart pen.
[0072] Optionally, in the embodiment of the present disclosure, in the process of receiving multiple infrared signals carrying smart pen identifications sent by multiple infrared smart pens, the reception time of each infrared signal can be recorded, and the reception order of the multiple infrared signals can be determined according to the reception time of each infrared signal.
[0073] Combination Figure 3As shown, the examples are as follows: for example, the receiving time of infrared signal A sent by infrared smart pen A is 15:05, the receiving time of infrared signal B sent by infrared smart pen B is 15:03, the receiving time of infrared signal C sent by infrared smart pen C is 15:08, and the receiving time of infrared signal C sent by infrared smart pen D is 15:10. According to the receiving time of multiple infrared signals, the receiving order of multiple infrared signals is B-A-C-D.
[0074] Optionally, in the embodiment of the present disclosure, in the process of acquiring multiple touch tracks, the acquisition time of each touch track may be recorded, and the acquisition order of the multiple touch tracks may be determined according to the acquisition time of each touch track.
[0075] Combination Figure 3 As shown, the example is as follows: For example, when four infrared smart pens write on the touch screen, the touch screen should acquire four touch tracks. Assume that the four touch tracks are touch track a, touch track b, touch track c, and touch track d, and the time when touch track a is acquired is 15:10, the time when touch track b is acquired is 15:08, the time when touch track c is acquired is 15:03, and the time when touch track d is acquired is 15:05. The acquisition order of the four touch tracks is c-d-b-a.
[0076] Optionally, in the embodiment of the present disclosure, determining the touch track of the target infrared smart pen according to the order of receiving the plurality of infrared signals and the order of acquiring the plurality of touch tracks includes: determining the target position of the infrared signal sent by the target infrared smart pen in the order of receiving the plurality of infrared signals. Determining the touch track having the same position as the target position in the order of acquiring the plurality of touch tracks as the touch track of the target infrared smart pen.
[0077] It should be noted that, since the transmission speed of infrared signals is in milliseconds, the order in which the touch screen receives infrared signals sent by multiple infrared smart pens corresponds to the order in which the touch screen obtains the touch tracks of the multiple infrared smart pens.
[0078] Based on the above example, it is assumed that the target infrared smart pen is infrared smart pen B, and the infrared signal B sent by infrared smart pen B is ranked first in the receiving sequence of multiple infrared signals B-A-C-D. In the acquisition sequence of multiple touch tracks c-d-b-a, the first touch track is c. In this way, it can be determined that touch track c is the touch track of infrared smart pen B. In addition, the touch tracks of infrared smart pens A, C and D can also be determined in the above manner, and the touch track of infrared smart pen A is d, the touch handwriting of infrared smart pen C is b, and the touch handwriting of infrared smart pen D is a.
[0079] Optionally, determining the color of the target infrared smart pen according to the smart pen identifier of the target infrared smart pen includes: according to a preset correspondence between the smart pen identifier and the color, using the color corresponding to the smart pen identifier of the target infrared smart pen as the color of the target infrared smart pen.
[0080] In the disclosed embodiment, the smart pen identification of each infrared smart pen can be pre-set. Figure 8 As shown, the code corresponding to the infrared signal sent by the infrared smart pen may include a guide code, a smart pen identification code, and a smart pen identification code inverse code. Among them, the guide code may include a 1.5ms carrier waveform with a carrier frequency of 38KHz and a 1ms off time. The guide code is used to guide the transmission of subsequent coded signals. In this way, the touch screen can determine the timing relationship of the corresponding code when the infrared signal is received according to the guide code corresponding to the infrared signal.
[0081] In the embodiment of the present disclosure, when encoding the infrared signal, pulse position modulation can be used, that is, the time interval between pulses is used to distinguish the "0" and "1" in the code. In addition, during the transmission process of the code corresponding to the infrared signal, after each 2-bit code is transmitted, the corresponding inverse code is also transmitted. This reduces the bit error rate of the system. Figure 8 As shown, during the infrared signal encoding process, the high level is the carrier waveform, code 0 can be represented by a high level of 0.56ms and a low level of 0.56ms, and data 1 can be represented by a high level of 0.56ms and a low level of 1.68ms.
[0082] Exemplarily, the encoding duration corresponding to infrared smart pens A, B, C and D can be 16ms respectively. Taking infrared smart pen B as an example, the corresponding encoding 1st to 2nd digits 01 are the smart pen identifier, 3rd to 4th digits 10 are the inverse code of the smart pen identifier, and 5th to 8th digits are repeated codes. According to the above encoding method, the encoding corresponding to infrared smart pen A can be 00110011, the encoding corresponding to infrared smart pen C can be 10011001, and the encoding corresponding to infrared smart pen D can be 11001100. Therefore, according to the encoding method of the infrared signal, the value of the smart pen identifier of infrared smart pen A can be set to 00, the value of the smart pen identifier of infrared smart pen B can be set to 01, the value of the smart pen identifier of infrared smart pen C can be set to 10, and the value of the smart pen identifier of infrared smart pen D can be set to 11. In addition, there is a corresponding relationship between the value of the smart pen identifier and the color, which can be used to characterize the color of the infrared smart pen. The corresponding relationship between the value of the smart pen identifier and the color can be shown in Table 1 below:
[0083] Table 1
[0084] The value of the smart pen ID color 00 red 01 green 10 blue 11 yellow
[0085] Based on the above Table 1, it can be determined that the color of infrared smart pen A is red, the color of infrared smart pen B is green, the color of infrared smart pen C is blue, and the color of infrared smart pen D is yellow.
[0086] In the disclosed embodiment, when the color and corresponding touch track of each infrared smart pen are determined, the touch track of each infrared smart pen on the touch screen can be displayed according to the corresponding color. Based on the above example, the touch track d of infrared smart pen A is displayed in red, the touch track c of infrared smart pen B is displayed in green, the touch track b of infrared smart pen C is displayed in blue, and the touch track a of infrared smart pen D is displayed in yellow.
[0087] based on Figure 3 The interactive system shown in the figure, the embodiment of the present disclosure provides another recognition method for an infrared smart pen, which is applied to a touch screen. Fig. 9 As shown, the method includes:
[0088] S901, receiving a plurality of infrared signals carrying smart pen identifiers sent by a plurality of infrared smart pens.
[0089] S902: Acquire multiple touch tracks.
[0090] S903: Determine the touch track of the target infrared smart pen according to the order of receiving the plurality of infrared signals and the order of acquiring the plurality of touch tracks, wherein the target infrared smart pen is any one of the plurality of infrared smart pens.
[0091] S904: Determine the color of the target infrared smart pen according to the smart pen identifier of the target infrared smart pen.
[0092] S905, displaying the touch track of the target infrared smart pen according to the color of the target infrared smart pen.
[0093] Using the identification method for infrared smart pens provided in the embodiment of the present disclosure, when multiple infrared smart pens write on the touch screen, the multiple infrared smart pens will send infrared signals carrying their respective smart pen identifiers to the touch screen, and the touch screen can also obtain multiple touch tracks. In the embodiment of the present disclosure, the smart pen identifier is used to identify the color of the infrared smart pen. In this way, the touch screen can determine the color of each infrared smart pen according to the smart pen identifier of each infrared smart pen. Moreover, since the transmission speed of the infrared signal is in the millisecond level, the order in which the touch screen receives the infrared signals sent by the multiple infrared smart pens corresponds to the order of the multiple touch tracks obtained by the touch screen. In view of this, the touch screen can determine the corresponding touch track of each infrared smart pen according to the corresponding relationship between the order of receiving multiple infrared signals and the order of obtaining multiple touch tracks, and make the touch track of each infrared smart pen display its corresponding color. Therefore, when multiple infrared smart pens write on the touch screen, the touch screen can display the writing color of each infrared smart pen.
[0094] based on Figure 3 The interactive system shown in the figure, the embodiment of the present disclosure provides a control method for the interactive system, and the embodiment of the present disclosure is described from the perspective of the interaction between the touch screen and the infrared smart pen. Fig.10 As shown, the above method provided by the embodiment of the present disclosure includes:
[0095] S111, infrared smart pen A sends an infrared signal A carrying a smart pen identifier to the touch screen.
[0096] S112, the infrared smart pen B sends an infrared signal B carrying a smart pen identifier to the touch screen.
[0097] S113: The touch screen acquires two touch tracks.
[0098] S114 , the touch screen determines the color R of the infrared smart pen A according to the smart pen identifier of the infrared smart pen A.
[0099] S115 , the touch screen determines the color G of the infrared smart pen B according to the smart pen identifier of the infrared smart pen B.
[0100] S116, the touch screen determines the touch track m of the infrared smart pen A according to the order of receiving the infrared signal A and the infrared signal B, and according to the order of acquiring the touch track m and the touch track n.
[0101] S117, the touch screen determines the touch track n of the infrared smart pen B according to the order of receiving the infrared signal A and the infrared signal B, and according to the order of acquiring the touch track m and the touch track n.
[0102] S118 , the touch screen displays the touch track m of the infrared smart pen A according to the color R of the infrared smart pen A.
[0103] S119 , the touch screen displays the touch track n of the infrared smart pen A according to the color G of the infrared smart pen B.
[0104] Using the control method for an interactive system provided by the embodiment of the present disclosure, when infrared smart pen A and infrared smart pen B write on the touch screen, infrared signals A and infrared signals B carrying their respective smart pen identifiers are sent to the touch screen, and the touch screen can obtain touch tracks m and touch tracks n. In the embodiment of the present disclosure, the smart pen identifier is used to identify the color of the infrared smart pen. In this way, the touch screen can determine the color of each infrared smart pen according to the smart pen identifier of each infrared smart pen. Moreover, since the transmission speed of the infrared signal is in the millisecond level, the order in which the touch screen receives the infrared signals sent by the two infrared smart pens corresponds to the order in which the touch screen obtains the touch tracks. In view of this, the touch screen can determine the corresponding touch tracks of each infrared smart pen according to the receiving order of infrared signal A and infrared signal B, and the corresponding relationship between the acquisition order of touch track m and touch track n, and make the touch tracks of each infrared smart pen display its corresponding color. Therefore, when multiple infrared smart pens are writing on the touch screen, the touch screen can display the writing color of each infrared smart pen.
[0105] In the disclosed embodiment, when the infrared smart pen A and / or the infrared smart pen B write on the touch screen, the infrared smart pen A and / or the infrared smart pen B will send an infrared signal to the touch screen, and when the infrared smart pen A or the infrared smart pen B writes on the touch screen, the touch tracks formed by the two pens on the touch screen are also transmitted in the form of infrared signals. In this way, the infrared signal sent by the infrared smart pen and the infrared signal formed when the touch screen generates the touch track may interfere with each other.
[0106] Usually, the frequency of the infrared signal sent by the infrared smart pen is different from the frequency of the infrared signal formed when the touch screen generates a touch track. Therefore, in order to avoid mutual interference between the infrared signal sent by the infrared smart pen and the infrared signal carrying the touch track received by the touch screen, in the embodiment of the present disclosure, the infrared signal sent by the infrared smart pen and the infrared signal carrying the touch track received by the touch screen can be distinguished according to the frequency of the infrared signal. Thereby, during the process of the touch screen recognizing the infrared smart pen, the situation of abnormal signal recognition is reduced. Based on Figure 3 The interactive system shown in the figure, the embodiment of the present disclosure provides a control method for an infrared smart pen, combined with Fig.11 As shown, the method includes:
[0107] S1101, when the tip of the target infrared smart pen contacts the touch screen, record the first moment.
[0108] S1102, when the tip of the target infrared smart pen touches the touch screen again, record a second moment.
[0109] S1103, calculating the time difference between the second moment and the first moment to obtain the screen touch interval duration.
[0110] S1104, determining whether the screen touch interval is less than a duration threshold.
[0111] S1105: When the time difference is less than the duration threshold, the target infrared smart pen is controlled to stop sending infrared signals to the touch screen.
[0112] S1106: When the time difference is greater than or equal to the duration threshold, control the target infrared smart pen to send an infrared signal to the touch screen.
[0113] The target infrared smart pen is any one of the multiple infrared smart pens.
[0114] Usually, when a user writes continuously with an infrared smart pen, the infrared smart pen will keep sending infrared signals to the touch screen, which increases the power consumption of the infrared smart pen. Using the control method for an infrared smart pen provided by the embodiment of the present disclosure, when a user uses an infrared smart pen to write on a touch screen, the interval time when the tip of the infrared smart pen contacts the touch screen can be used to determine whether the user is using the infrared smart pen to write continuously. Specifically, the first moment and the second moment when the target infrared smart pen contacts the touch screen are recorded respectively. The time difference between the second moment and the first moment indicates the interval time when the target infrared smart pen is used. If the interval time is short, it means that the user is using the infrared smart pen to write continuously. In this way, controlling the infrared smart pen to stop sending infrared signals to the touch screen can reduce the power consumption of the infrared smart pen when the user is using the infrared smart pen to write continuously. Thereby, it is beneficial to energy saving of the infrared smart pen.
[0115] Optionally, in the embodiment of the present disclosure, the duration threshold may be represented by t, where 0<t≤1s. More specifically, t=0.3s, 0.5s or 0.8s.
[0116] Combination Fig.12 As shown, the embodiment of the present disclosure provides a recognition device 1200 for an infrared smart pen, which is integrated on a touch screen and includes: a signal receiving module 121, a color recognition module 122, a track matching module 123, and a track display module 124. Among them:
[0117] The signal receiving module 121 is used to receive a plurality of infrared signals carrying smart pen identifiers sent by a plurality of infrared smart pens, and obtain a plurality of touch tracks.
[0118] The color recognition module 122 is used to determine the color of the target infrared smart pen according to the smart pen identifier of the target infrared smart pen; wherein the target infrared smart pen is any one of the multiple infrared smart pens.
[0119] The track matching module 123 determines the touch track of the target infrared smart pen according to the order of receiving the multiple infrared signals and the order of acquiring the multiple touch tracks.
[0120] The track display module 124 displays the touch track of the target infrared smart pen according to the color of the target infrared smart pen.
[0121] Optionally, the color recognition module 122 is used to determine the color of the target infrared smart pen according to the smart pen identifier of the target infrared smart pen, and to use the color corresponding to the smart pen identifier of the target infrared smart pen as the color of the target infrared smart pen according to a preset correspondence between the smart pen identifier and the color.
[0122] Optionally, the track matching module 123 is used to determine the target position of the infrared signal sent by the target infrared smart pen in the receiving sequence of the multiple infrared signals according to the receiving sequence of the multiple infrared signals and the acquiring sequence of the multiple touch tracks in the process of determining the touch track of the target infrared smart pen. The touch track with the same position as the target position in the acquiring sequence of the multiple touch tracks is determined as the touch track of the target infrared smart pen.
[0123] Optionally, the signal receiving module 121 is further configured to record the reception time of each infrared signal when receiving multiple infrared signals carrying smart pen identifiers sent by multiple infrared smart pens.
[0124] Optionally, after receiving a plurality of infrared signals with smart pen identifiers written thereon sent by a plurality of infrared smart pens, the signal receiving module 121 is further configured to determine a receiving order of the plurality of infrared signals according to a receiving time of each infrared signal.
[0125] Optionally, the signal receiving module 121 is further configured to record the acquisition time of each touch track during the process of acquiring multiple touch tracks.
[0126] Optionally, after acquiring the multiple touch tracks, the signal receiving module 121 is further configured to determine an acquisition order of the multiple touch tracks according to an acquisition time of each touch track.
[0127] The recognition device for the infrared smart pen provided in the embodiment of the present disclosure can execute the actions of the touch screen in the above embodiment. Its implementation principle and technical effects are similar and will not be repeated here.
[0128] Combination Fig.13As shown, the embodiment of the present disclosure provides a control device 1300 for an infrared smart pen, the control device 1300 for an infrared smart pen is integrated in the infrared smart pen, and the control device 1300 for an infrared smart pen includes a signal sending module. Among them:
[0129] The signal sending module 131 is used for each infrared smart pen to send an infrared signal carrying a smart pen identifier to the touch screen when the pen tips of multiple infrared smart pens touch the touch screen, so that the touch screen can identify the target color of the target infrared smart pen according to the smart pen identifier of the target infrared smart pen, and make the touch track of the target infrared smart pen display the target color; wherein the target infrared smart pen is any one of the multiple infrared smart pens.
[0130] The control device for the infrared smart pen provided in the embodiment of the present disclosure can execute the actions of the infrared smart pen in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0131] Combination Fig.14 As shown, an embodiment of the present disclosure provides an electronic device 1400, including a processor 100 and a memory 101. Optionally, the device may also include a communication interface 102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other through the bus 103. The communication interface 102 may be used for information transmission. The processor 100 may call the logic instructions in the memory 101 to execute the recognition method for the infrared smart pen of the above embodiment, or execute the control method for the infrared smart pen of the above embodiment, or execute the control method for the interactive system of the above embodiment.
[0132] In addition, the logic instructions in the memory 101 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0133] The memory 101 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present disclosure. The processor 100 executes functional applications and data processing by running the program instructions / modules stored in the memory 101, that is, implementing the recognition method for the infrared smart pen in the above embodiment, or implementing the control method for the infrared smart pen in the above embodiment, or implementing the control method for the interactive system in the above embodiment.
[0134] The memory 101 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 101 may include a high-speed random access memory and may also include a non-volatile memory.
[0135] An embodiment of the present disclosure provides a storage medium storing computer executable instructions, wherein the computer executable instructions are configured to execute the recognition method for the infrared smart pen of the above embodiment, or execute the control method for the infrared smart pen of the above embodiment, or execute the control method for the interactive system of the above embodiment.
[0136] The above-mentioned storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0137] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0138] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0139] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0140] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0141] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for identifying an infrared smart pen, characterized in that: Applied to a touch screen, the method comprises: Receiving multiple infrared signals carrying smart pen identifiers sent by multiple infrared smart pens, and acquiring multiple touch tracks; Determine the color of the target infrared smart pen according to the smart pen identifier of the target infrared smart pen; wherein the target infrared smart pen is any one of the multiple infrared smart pens; Determine the touch track of the target infrared smart pen according to the order of receiving the multiple infrared signals and the order of acquiring the multiple touch tracks; Make the touch track of the target infrared smart pen be displayed according to the color of the target infrared smart pen.
2. The method according to claim 1, characterized in that According to the smart pen identification of the target infrared smart pen, the color of the target infrared smart pen is determined, including: According to the preset corresponding relationship between the smart pen identifier and the color, the color corresponding to the smart pen identifier of the target infrared smart pen is used as the color of the target infrared smart pen.
3. The method according to claim 1, characterized in that According to the order of receiving the plurality of infrared signals and the order of acquiring the plurality of touch tracks, the touch track of the target infrared smart pen is determined, including: Determine the target position of the infrared signal sent by the target infrared smart pen in the receiving sequence of multiple infrared signals; In the acquisition sequence of the multiple touch tracks, the touch track with the same position as the target position is determined as the touch track of the target infrared smart pen.
4. The method according to claim 1, characterized in that Receiving multiple infrared signals carrying smart pen identifiers sent by multiple infrared smart pens, including: Record the reception time of each infrared signal.
5. The method according to claim 4, characterized in that After receiving a plurality of infrared signals with smart pen identifiers sent by a plurality of infrared smart pens, the method further comprises: The receiving order of the plurality of infrared signals is determined according to the receiving time of each infrared signal.
6. The method according to claim 1, characterized in that Get multiple touch tracks, including: Record the acquisition time of each touch track.
7. The method according to claim 6, characterized in that After acquiring a plurality of touch tracks, the method further includes: According to the acquisition time of each touch track, the acquisition order of the multiple touch tracks is determined.
8. A control method for an infrared smart pen, characterized in that: The method comprises: When the tips of multiple infrared smart pens touch the touch screen, each infrared smart pen sends an infrared signal carrying a smart pen identifier to the touch screen, so that the touch screen identifies the target color of the target infrared smart pen according to the smart pen identifier of the target infrared smart pen, and makes the touch track of the target infrared smart pen display the target color; wherein the target infrared smart pen is any one of the multiple infrared smart pens.
9. A recognition device for an infrared smart pen, characterized in that: Integrated in a touch screen, the device comprises: A signal receiving module, used for receiving a plurality of infrared signals carrying smart pen identifiers sent by a plurality of infrared smart pens, and obtaining a plurality of touch tracks; A color recognition module is used to determine the color of a target infrared smart pen according to the smart pen identifier of the target infrared smart pen; wherein the target infrared smart pen is any one of the multiple infrared smart pens; A trajectory matching module determines the touch trajectory of the target infrared smart pen according to the order in which the multiple infrared signals are received and the order in which the multiple touch trajectories are acquired; The track display module enables the touch track of the target infrared smart pen to be displayed according to the color of the target infrared smart pen.
10. A control device for an infrared smart pen, characterized in that: Integrated in an infrared smart pen, the device comprises: The signal sending module is used for each infrared smart pen to send an infrared signal carrying a smart pen identifier to the touch screen when the pen tips of multiple infrared smart pens touch the touch screen, so that the touch screen can identify the target color of the target infrared smart pen according to the smart pen identifier of the target infrared smart pen, and make the touch track of the target infrared smart pen display the target color; wherein the target infrared smart pen is any one of the multiple infrared smart pens.
11. An interactive system, characterized in that: Includes a touch screen and multiple infrared smart pens, including: A touch screen, used to implement the recognition method for an infrared smart pen as claimed in any one of claims 1 to 7; Each infrared smart pen is used to implement the control method for the infrared smart pen as claimed in claim 8.
12. An electronic device comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to perform the method according to any one of claims 1 to 8 when executing the program instructions.
13. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method according to any one of claims 1 to 8 is executed.