Projection display method, system and equipment of laser pen and medium
By building a communication channel and signal transfer device, the three-dimensional coordinates of the laser pen are obtained and converted into pixel coordinates, and the posture data is collected in real time. This solves the communication compatibility problem between the laser pen and different display screens and achieves accurate projection on various screens.
Patent Information
- Application Number
- CN202510654035.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2025-09-30
AI Technical Summary
Existing laser pointers cannot communicate with displays that do not have a USB interface or use monitor chips, resulting in an inability to form a projected light spot on these screens, affecting the use effect.
By building a communication channel between the laser pen and the display screen, the initial three-dimensional coordinates are obtained and converted into pixel coordinates, the posture transformation data is collected in real time and the two-dimensional displacement is calculated. The signal relay device is used to achieve compatibility with different interfaces and dynamically generate projection light spots.
It realizes the precise projection of laser pointers on different types of display screens, breaks through the limitations of hardware interfaces, and improves the usage effect and adaptability.
Smart Images

Figure CN120723091A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of laser pen display technology, and in particular to a laser pen projection display method, system, equipment and medium. Background Art
[0002] With the continuous development of computer technology, human-computer interaction methods are becoming increasingly diverse, from keyboards and mice to gestures and voice control, all of which are moving towards user-friendliness. However, laser pens are particularly useful during lectures or classes. Laser pens, also known as laser pointers, are pen-shaped emitters made from visible laser modules (diodes) in a portable, easy-to-grip design. They are commonly used in lectures, conferences, teaching, and guided tours to project a point of light onto a screen.
[0003] However, existing laser pens usually use a USB interface to send signals to a display screen. If the display screen does not have a USB interface or uses other interfaces to receive signals, such as a display screen using a monitor chip, the monitor chip does not support the input of USB devices and cannot receive the signal frequency or modulation method of the laser pen. As a result, the corresponding projection light spot of the laser pen cannot be formed, affecting the use of the laser pen. Summary of the Invention
[0004] In order to solve the above technical problems, the present invention discloses a projection display method, system, device and medium of a laser pen, which are used to improve the use effect of the laser pen.
[0005] In order to achieve the above-mentioned object, in a first aspect, the present invention discloses a projection display method of a laser pen, comprising:
[0006] In response to the projection requirement of the laser pen, a communication channel between the laser pen and the display screen is established;
[0007] Acquiring initial three-dimensional coordinates of the laser pen, and when determining that the initial three-dimensional coordinates are in a projection area corresponding to the display screen, converting the initial three-dimensional coordinates into pixel coordinates on the display screen;
[0008] Acquiring initial three-dimensional coordinates of the laser pen and acquiring posture transformation data of the laser pen, so as to obtain two-dimensional displacement data of the laser pen according to the posture transformation data;
[0009] Acquiring the two-dimensional displacement data to convert the two-dimensional displacement data into pixel displacement data on the display screen;
[0010] Obtaining the real-time pixel coordinates of the laser pen according to the pixel coordinates and the pixel displacement data;
[0011] The real-time pixel coordinates are sent to the display screen through the communication channel to generate a projection light spot corresponding to the laser pen on the display screen.
[0012] The present invention discloses a laser pen projection display method. This method overcomes the communication limitations between the laser pen and the display screen by constructing an independent communication channel, establishing a data transmission foundation between the laser pen and the display screen, and enabling communication between the laser pen and the display screen. The acquisition of initial three-dimensional coordinates and the determination of the projection area ensure positioning accuracy. Coordinate system conversion achieves the mapping from physical space to display pixels, improving projection accuracy. Real-time acquisition of posture transformation data forms the basis for dynamic tracking, and two-dimensional displacement data conversion maintains the correspondence between displacement and screen pixels. Finally, by calculating the pixel coordinates and superimposing the displacement, the light spot position is dynamically updated. Ultimately, a projection light spot is generated based on the real-time coordinates, forming a projection of the laser pen on the display screen, thereby improving the performance of the laser pen.
[0013] As a preferred example, responding to the projection demand of the laser pen and establishing a communication channel between the laser pen and the display screen includes:
[0014] Acquire a first communication interface of the laser pointer;
[0015] Acquire a second communication interface of the display screen;
[0016] Selecting a signal transfer device for communication connection with the display screen according to the first communication interface and the second communication interface;
[0017] A communication channel between the laser pen and the display screen is established through the signal transfer device.
[0018] In the above scheme, a signal transfer device is introduced to adapt to the different interface types of the laser pen and the display screen to ensure the communication compatibility between the laser pen and the display screen. First, by respectively obtaining the communication interface information of the laser pen and the display screen, the difference in the physical connection type between the two is clarified. Secondly, based on the two interface types, the corresponding signal transfer device is selected to simultaneously communicate with the laser pen and the display screen to solve the signal transmission obstacles caused by interface mismatch; finally, a stable communication channel is established through the transfer device to transmit the data of the laser pen to the display screen to avoid communication failures caused by direct interface incompatibility. Among them, the selection of the signal transfer device is the key. It needs to support the communication protocols of the first communication interface and the second communication interface at the same time, so as to realize data format conversion or signal modulation, and ensure that the projection requirements of the laser pen can be correctly recognized and processed by the display screen.
[0019] As a preferred example, the obtaining of the initial three-dimensional coordinates of the laser pen and, when determining that the initial three-dimensional coordinates are in a projection area corresponding to the display screen, converting the initial three-dimensional coordinates into pixel coordinates on the display screen includes:
[0020] Acquiring the initial three-dimensional coordinates sent by the laser pointer through the signal transfer device;
[0021] Matching the initial three-dimensional coordinates with a plurality of pre-saved three-dimensional coordinates of projected edges;
[0022] When the three-dimensional coordinates of the projection edge are consistent with the initial three-dimensional coordinates, determining that the initial three-dimensional coordinates are within the projection area corresponding to the display screen;
[0023] The initial three-dimensional coordinates are converted into pixel coordinates on the display screen according to a preset coordinate system conversion model.
[0024] In the above scheme, the coordinate data transmission between the laser pen and the display screen is realized through the signal relay device, which ensures the reliability of the initial three-dimensional coordinate acquisition. By directly matching the initial three-dimensional coordinates with the pre-stored three-dimensional coordinates of the projection edge, the complex spatial range calculation is avoided. The validity of the projection area can be quickly confirmed by simply judging the consistency of the coordinates, which improves the judgment efficiency. When the coordinates are consistent, the coordinate conversion condition is triggered, and the three-dimensional physical coordinates are converted into two-dimensional pixel coordinates using the preset coordinate system conversion model, ensuring the accuracy of the coordinate mapping. Among them, the pre-stored setting of the three-dimensional coordinates of the projection edge provides a clear physical space reference for the boundary of the projection area, and the existence of the coordinate system conversion model establishes a mathematical mapping relationship between the three-dimensional space and the two-dimensional screen pixels, realizing the precise projection of the laser pen onto the display screen.
[0025] As a preferred example, the obtaining of the initial three-dimensional coordinates of the laser pen and the obtaining of the posture transformation data of the laser pen, so as to obtain the two-dimensional displacement data of the laser pen according to the posture transformation data, includes:
[0026] Acquire the three-dimensional angular velocity and three-dimensional acceleration of the laser pen in real time according to a preset polling cycle; wherein the posture transformation data includes the three-dimensional angular velocity and the three-dimensional acceleration;
[0027] Horizontal displacement data and vertical displacement data of the laser pointer are calculated according to the three-dimensional angular velocity, the three-dimensional angular velocity, and the polling period.
[0028] In the above scheme, high-precision motion trajectory restoration is achieved by limiting the collection method of posture transformation data and the displacement calculation rules. Specifically, a polling cycle mechanism is used to ensure the stability of the real-time collection frequency of posture data, avoiding displacement calculation errors caused by fluctuations in data sampling intervals. By simultaneously acquiring two types of sensor data, three-dimensional angular velocity and three-dimensional acceleration, a composite motion parameter model is constructed to overcome the posture solution deviation caused by the insufficient dimension of a single sensor data. When calculating the displacement, the three-dimensional angular velocity data is combined with the polling cycle to calculate the rotation component, and the three-dimensional acceleration data is combined to calculate the translation component. Finally, by coupling the horizontal displacement and the vertical displacement, two-dimensional plane projection data is formed, so that the complex movement of the laser pen in three-dimensional space can be accurately mapped to the two-dimensional display screen plane.
[0029] As a preferred example, the acquiring of the two-dimensional displacement data to convert the two-dimensional displacement data into pixel displacement data on the display screen includes:
[0030] Acquiring the horizontal displacement data and the vertical displacement data through the signal transfer device;
[0031] Obtaining physical size information and pixel distribution information of the display screen to obtain a length value corresponding to each pixel;
[0032] Converting the horizontal displacement data into a horizontal pixel shift value and converting the vertical displacement data into a vertical pixel shift value according to the length value;
[0033] The pixel displacement data is obtained according to the horizontal pixel movement value and the vertical pixel movement value.
[0034] In the above scheme, the precise conversion of two-dimensional displacement to pixel displacement is achieved through the physical size and pixel distribution parameters of the display screen. First, the horizontal and vertical displacement data of the laser pen are obtained through the signal relay device to ensure the stability of data transmission. Then, the physical size and pixel distribution information of the display screen are obtained, and the actual length value corresponding to each pixel is calculated. This step solves the problem of displacement conversion error caused by pixel density differences under different screen specifications. Based on the calculated pixel length value, the horizontal displacement data is converted into the pixel movement in the horizontal direction, and the vertical displacement data is similarly converted into the pixel movement in the vertical direction. By dividing the physical displacement by the single pixel length, the precise mapping of the physical space to the screen pixel space is achieved. Finally, the pixel movement values in the horizontal and vertical dimensions are combined to generate complete pixel displacement data, providing accurate input for subsequent real-time coordinate calculations.
[0035] As a preferred example, obtaining the real-time pixel coordinates of the laser pen according to the pixel coordinates and the pixel displacement data includes:
[0036] Adding the horizontal pixel movement value to the horizontal pixel coordinate value in the pixel coordinate to obtain a real-time horizontal pixel coordinate value;
[0037] Adding the vertical pixel movement value to the vertical pixel coordinate value in the pixel coordinate to obtain a real-time vertical pixel coordinate value;
[0038] The real-time pixel coordinates of the laser pen are obtained according to the real-time horizontal pixel coordinate value and the real-time vertical pixel coordinate value.
[0039] In the above solution, the problem of projected light spot position deviation caused by signal transmission interface limitations is solved by dynamically superimposing two-dimensional displacement data with the initial coordinates. First, by adding the horizontal pixel movement value to the initial horizontal coordinate value, the displacement increment is directly used to update the horizontal display position, avoiding coordinate base misalignment caused by differences in signal relay devices or communication interfaces. Second, the vertical pixel movement value is superimposed with the initial vertical coordinate value to ensure that the vertical displacement can accurately correspond to the screen pixel points, thereby eliminating the impact of different display screen physical sizes or resolution differences on coordinate mapping. Finally, through the combination of real-time horizontal and vertical pixel coordinate values, screen coordinates that are completely synchronized with the actual movement of the laser pointer are dynamically generated. This makes the position of the projected light spot independent of the transmission characteristics of a specific signal interface, but is based on a unified coordinate conversion logic to achieve cross-hardware compatibility, improving the use effect of the laser pointer.
[0040] As a preferred example, the sending of the real-time pixel coordinates to the display screen through the communication channel to generate a projection light spot corresponding to the laser pen on the display screen includes:
[0041] sending the real-time pixel coordinates to the display screen via the communication channel and calling a pre-saved visualization graphic;
[0042] Adjusting the graphic area and graphic filling color of the visualization graphic to obtain a light spot graphic;
[0043] The light spot pattern is displayed on the display screen according to the real-time pixel coordinates to generate a projection light spot corresponding to the laser pen.
[0044] The above solution breaks through the limitations of the hardware interface through software movement and builds a projection generation mechanism independent of the physical interface. Pre-stored visual graphics are called to establish a programmable display template, avoiding dependence on specific hardware signal input. The technical feature of adjusting the graphic area can dynamically adapt the physical size of the light spot according to the screen pixel density, ensuring visual consistency under different resolutions. The operation of adjusting the fill color achieves the matching of the light spot color with the screen color gamut, preventing display anomalies caused by color space differences. By binding and moving the light spot graphic with real-time pixel coordinates, it not only ensures the accurate mapping of the light spot position, but also achieves real-time synchronization of the display effect and screen parameters. This secondary generation method based on software movement effectively circumvents hardware interface compatibility issues, while enhancing display adaptability through the parameter adjustment mechanism.
[0045] In a second aspect, the present invention discloses a projection display system for a laser pen, comprising a communication channel module, a coordinate conversion module, a displacement calculation module, a pixel displacement conversion module, a coordinate calculation module, and a projection display module;
[0046] The communication channel module is used to respond to the projection requirements of the laser pen and establish a communication channel between the laser pen and the display screen;
[0047] The coordinate conversion module is used to obtain the initial three-dimensional coordinates of the laser pen, and when determining that the initial three-dimensional coordinates are in the projection area corresponding to the display screen, convert the initial three-dimensional coordinates into pixel coordinates on the display screen;
[0048] The displacement calculation module is used to obtain the initial three-dimensional coordinates of the laser pen and obtain the posture transformation data of the laser pen, so as to obtain the two-dimensional displacement data of the laser pen according to the posture transformation data;
[0049] The pixel displacement conversion module is used to obtain the two-dimensional displacement data to convert the two-dimensional displacement data into pixel displacement data on the display screen;
[0050] The coordinate calculation module is used to obtain the real-time pixel coordinates of the laser pen according to the pixel coordinates and the pixel displacement data;
[0051] The projection display module is used to send the real-time pixel coordinates to the display screen through the communication channel, so as to generate a projection light spot corresponding to the laser pen on the display screen.
[0052] The present invention discloses a laser pen projection display system. This system overcomes the communication limitations between the laser pen and the display screen by constructing an independent communication channel, establishing a foundation for data transmission between the laser pen and the display screen, and enabling communication between the laser pen and the display screen. The acquisition of initial three-dimensional coordinates and the determination of the projection area ensure positioning accuracy. Coordinate system conversion achieves the mapping of physical space to display pixels, improving projection accuracy. Real-time acquisition of posture transformation data forms the basis for dynamic tracking, and two-dimensional displacement data conversion maintains the correspondence between displacement and screen pixels. Finally, by calculating the pixel coordinates and superimposing the displacement, the light spot position is dynamically updated. Ultimately, a projection light spot is generated based on the real-time coordinates, forming a projection of the laser pen on the display screen, thereby improving the performance of the laser pen.
[0053] In a third aspect, the present invention discloses a terminal device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a laser pen projection display method as described in the first aspect.
[0054] In a fourth aspect, the present invention discloses a computer-readable storage medium, comprising: a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a laser pen projection display method as described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the implementation. Obviously, the drawings described below are only some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0056] Figure 1 This is a flow chart of a projection display method of a laser pen disclosed in an embodiment of the present invention;
[0057] Figure 2 This is a schematic structural diagram of a projection display system for a laser pen disclosed in an embodiment of the present invention;
[0058] Figure 3 This is a flow chart of a projection display method of a laser pen disclosed in another embodiment of the present invention;
[0059] Figure 4 This is a schematic diagram of a communication channel between a laser pen and a display screen disclosed in yet another embodiment of the present invention. DETAILED DESCRIPTION
[0060] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions in this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0061] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.
[0062] In the description of the embodiments of this application, the technical terms "first," "second," etc. are used only to distinguish different objects and should not be understood to indicate or imply relative importance or to implicitly indicate the quantity, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, the meaning of "plurality" is more than two, unless otherwise specifically defined.
[0063] References to "embodiments" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0064] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.
[0065] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0066] In the description of the embodiments of the present application, unless otherwise expressly specified or limited, technical terms such as "installed," "connected," "connected," and "fixed" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integration; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; internal connections between two components or interactions between two components. Those skilled in the art can understand the specific meanings of the above terms in the embodiments of the present application based on specific circumstances.
[0067] See also Figure 1 In order to solve the technical problem of incompatibility between laser pens and display screens in the prior art, an embodiment of the present invention provides a projection display method of a laser pen, comprising:
[0068] Step 101: In response to the projection requirement of the laser pen, a communication channel between the laser pen and the display screen is established.
[0069] In this embodiment, this step mainly includes: obtaining the first communication interface of the laser pen; obtaining the second communication interface of the display screen; selecting a signal transfer device for communication connection with the display screen based on the first communication interface and the second communication interface; and constructing a communication channel between the laser pen and the display screen through the signal transfer device.
[0070] In this embodiment, the above steps ensure the communication compatibility between the laser pen and the display screen by introducing a signal transfer device to adapt to the different interface types of the laser pen and the display screen. First, by respectively obtaining the communication interface information of the laser pen and the display screen, the difference in the physical connection types between the two is clarified. Secondly, based on the two interface types, the corresponding signal transfer device is selected to simultaneously communicate with the laser pen and the display screen, solving the signal transmission obstacles caused by interface mismatch; finally, a stable communication channel is established through the transfer device to transmit the data of the laser pen to the display screen, avoiding communication failures caused by direct interface incompatibility. Among them, the selection of the signal transfer device is the key. It needs to support the communication protocols of the first communication interface and the second communication interface at the same time, so as to realize data format conversion or signal modulation, and ensure that the projection requirements of the laser pen can be correctly recognized and processed by the display screen.
[0071] Step 102: Acquire the initial three-dimensional coordinates of the laser pen, and when determining that the initial three-dimensional coordinates are in the projection area corresponding to the display screen, convert the initial three-dimensional coordinates into pixel coordinates on the display screen.
[0072] In this embodiment, this step mainly includes: obtaining the initial three-dimensional coordinates sent by the laser pen through the signal transfer device; matching the initial three-dimensional coordinates with several pre-saved projection edge three-dimensional coordinates; when the projection edge three-dimensional coordinates are consistent with the initial three-dimensional coordinates, determining that the initial three-dimensional coordinates are within the projection area corresponding to the display screen; and converting the initial three-dimensional coordinates into pixel coordinates on the display screen according to a preset coordinate system conversion model.
[0073] In this embodiment, the above steps implement coordinate data transmission between the laser pen and the display screen through a signal relay device, ensuring the reliability of initial three-dimensional coordinate acquisition. By directly matching the initial three-dimensional coordinates with the pre-stored three-dimensional coordinates of the projection edge, complex spatial range calculations are avoided. The validity of the projection area can be quickly confirmed by simply determining the consistency of the coordinates, thereby improving the efficiency of the determination. When the coordinates are consistent, the coordinate conversion condition is triggered, and the three-dimensional physical coordinates are converted into two-dimensional pixel coordinates using a preset coordinate system conversion model, ensuring the accuracy of the coordinate mapping. Among them, the pre-stored three-dimensional coordinates of the projection edge provide a clear physical space reference for the boundary of the projection area, and the existence of the coordinate system conversion model establishes a mathematical mapping relationship between three-dimensional space and two-dimensional screen pixels, achieving precise projection of the laser pen onto the display screen.
[0074] Step 103: Acquire the initial three-dimensional coordinates of the laser pen, and acquire the posture transformation data of the laser pen, so as to obtain the two-dimensional displacement data of the laser pen according to the posture transformation data.
[0075] In this embodiment, this step mainly includes: obtaining the three-dimensional angular velocity and three-dimensional acceleration of the laser pen in real time according to a preset polling period; wherein the posture transformation data includes the three-dimensional angular velocity and the three-dimensional acceleration; and calculating the horizontal displacement data and vertical displacement data of the laser pen according to the three-dimensional angular velocity, the three-dimensional angular velocity and the polling period.
[0076] In this embodiment, the above steps achieve high-precision motion trajectory restoration by limiting the collection method of posture transformation data and the displacement calculation rules. Specifically, a polling cycle mechanism is used to ensure the stability of the real-time collection frequency of posture data, avoiding displacement calculation errors caused by fluctuations in data sampling intervals. By simultaneously acquiring two types of sensor data, three-dimensional angular velocity and three-dimensional acceleration, a composite motion parameter model is constructed to overcome the posture solution deviation caused by the insufficient dimension of a single sensor data. When calculating the displacement, the three-dimensional angular velocity data is combined with the polling cycle to calculate the rotation component, and the three-dimensional acceleration data is combined to calculate the translation component. Finally, by coupling the horizontal displacement and the vertical displacement, two-dimensional plane projection data is formed, so that the complex movement of the laser pen in three-dimensional space can be accurately mapped to the two-dimensional display screen plane.
[0077] Step 104: Acquire the two-dimensional displacement data to convert the two-dimensional displacement data into pixel displacement data on the display screen.
[0078] In this embodiment, this step mainly includes: obtaining the horizontal displacement data and the vertical displacement data through the signal transfer device; obtaining the physical size information and pixel distribution information of the display screen to obtain the length value corresponding to each pixel; converting the horizontal displacement data into a horizontal pixel movement value and converting the vertical displacement data into a vertical pixel movement value according to the length value; and obtaining the pixel displacement data according to the horizontal pixel movement value and the vertical pixel movement value.
[0079] In this embodiment, the above steps achieve accurate conversion of two-dimensional displacement to pixel displacement through the physical size and pixel distribution parameters of the display screen. First, the horizontal and vertical displacement data of the laser pen are obtained through the signal relay device to ensure the stability of data transmission. Then, the physical size and pixel distribution information of the display screen are obtained, and the actual length value corresponding to each pixel is calculated. This step solves the problem of displacement conversion error caused by pixel density differences under different screen specifications. Based on the calculated pixel length value, the horizontal displacement data is converted into the pixel movement amount in the horizontal direction, and the vertical displacement data is similarly converted into the pixel movement amount in the vertical direction. By dividing the physical displacement amount by the single pixel length, an accurate mapping of the physical space to the screen pixel space is achieved. Finally, the pixel movement values in the horizontal and vertical dimensions are combined to generate complete pixel displacement data, providing accurate input for subsequent real-time coordinate calculations.
[0080] Step 105: Obtaining the real-time pixel coordinates of the laser pen according to the pixel coordinates and the pixel displacement data.
[0081] In this embodiment, this step mainly includes: adding the horizontal pixel movement value to the horizontal pixel coordinate value in the pixel coordinate to obtain a real-time horizontal pixel coordinate value; adding the vertical pixel movement value to the vertical pixel coordinate value in the pixel coordinate to obtain a real-time vertical pixel coordinate value; and obtaining the real-time pixel coordinates of the laser pen based on the real-time horizontal pixel coordinate value and the real-time vertical pixel coordinate value.
[0082] In this embodiment, the above steps address the problem of projected light spot position deviation caused by signal transmission interface limitations by dynamically superimposing the two-dimensional displacement data with the initial coordinates. First, by adding the horizontal pixel shift value to the initial horizontal coordinate value, the horizontal display position is directly updated using the displacement increment, avoiding coordinate reference misalignment caused by differences in signal relay devices or communication interfaces. Second, by superimposing the vertical pixel shift value with the initial vertical coordinate value, the vertical displacement is ensured to accurately correspond to the screen pixels, thereby eliminating the impact of differences in physical size or resolution of different display screens on coordinate mapping. Finally, by combining the real-time horizontal and vertical pixel coordinate values, screen coordinates are dynamically generated that are completely synchronized with the actual movement of the laser pointer. This ensures that the position of the projected light spot does not depend on the transmission characteristics of a specific signal interface, but is based on a unified coordinate conversion logic to achieve cross-hardware compatibility, improving the performance of the laser pointer.
[0083] Step 106: Send the real-time pixel coordinates to the display screen through the communication channel to generate a projection light spot corresponding to the laser pen on the display screen.
[0084] In this embodiment, this step mainly includes: calling a pre-saved visual graphic and adjusting the graphic area and graphic filling color of the visual graphic to obtain a spot graphic; displaying the spot graphic on the display screen according to the real-time pixel coordinates to generate a projection light spot corresponding to the laser pen;
[0085] In this embodiment, the above steps break through the hardware interface limitations through software movement and construct a projection generation mechanism independent of the physical interface. Calling pre-stored visual graphics to establish a programmable display template avoids dependence on specific hardware signal input. The technical feature of adjusting the graphic area can dynamically adapt the physical size of the light spot according to the screen pixel density to ensure visual consistency under different resolutions. The operation of adjusting the fill color achieves the matching of the light spot color with the screen color gamut, preventing display anomalies caused by color space differences. By binding and moving the light spot graphic with the real-time pixel coordinates, it not only ensures the accurate mapping of the light spot position, but also achieves real-time synchronization of the display effect and screen parameters. This secondary generation method based on software movement effectively circumvents the hardware interface compatibility problem, and at the same time enhances the display adaptability through the parameter adjustment mechanism.
[0086] like Figure 2 As shown, based on the above method embodiment, this embodiment also provides a projection display system for a laser pen, which mainly includes a communication channel module 201, a coordinate conversion module 202, a displacement calculation module 203, a pixel displacement conversion module 204, a coordinate calculation module 205 and a projection display module 206.
[0087] The communication channel module 201 is used to respond to the projection requirements of the laser pen and establish a communication channel between the laser pen and the display screen;
[0088] The coordinate conversion module 202 is used to obtain the initial three-dimensional coordinates of the laser pen and, when determining that the initial three-dimensional coordinates are in the projection area corresponding to the display screen, convert the initial three-dimensional coordinates into pixel coordinates on the display screen;
[0089] The displacement calculation module 203 is used to obtain the initial three-dimensional coordinates of the laser pen and obtain the posture transformation data of the laser pen, so as to obtain the two-dimensional displacement data of the laser pen according to the posture transformation data;
[0090] The pixel displacement conversion module 204 is used to obtain the two-dimensional displacement data to convert the two-dimensional displacement data into pixel displacement data on the display screen;
[0091] The coordinate calculation module 205 is used to obtain the real-time pixel coordinates of the laser pen according to the pixel coordinates and the pixel displacement data;
[0092] The projection display module 206 is configured to send the real-time pixel coordinates to the display screen via the communication channel, so as to generate a projection light spot corresponding to the laser pen on the display screen.
[0093] It can be understood that the above-mentioned device embodiment corresponds to the method embodiment, and can implement a laser pen projection display method provided by any one of the method embodiments.
[0094] It should be noted that the device embodiments described above are merely illustrative, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. Furthermore, in the drawings of the device embodiments provided by the present invention, the connection relationship between modules indicates that they have a communication connection, which may be implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement the present invention without inventive effort.
[0095] Based on the above-mentioned embodiment of the projection display method of a laser pen, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, a projection display method of a laser pen according to any embodiment of the present invention is implemented.
[0096] For example, in this embodiment, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to implement the present invention. The one or more module elements may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
[0097] The terminal device may be a computing device such as a desktop computer, a notebook computer, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0098] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, connecting various parts of the entire terminal device using various interfaces and lines.
[0099] Based on the above method embodiments, another embodiment of the present invention provides a computer-readable storage medium, including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a laser pen projection display method described in any one of the above method embodiments of the present invention.
[0100] Wherein, the module / unit integrated in the device / terminal equipment, if implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0101] This embodiment discloses a projection display method, system, device, and medium for a laser pen. By constructing an independent communication channel, the method overcomes the communication limitations between the laser pen and the display screen, establishes a data transmission foundation between the laser pen and the display screen, and realizes communication between the laser pen and the display screen. The acquisition of initial three-dimensional coordinates and the determination of the projection area ensure positioning accuracy. Coordinate system conversion achieves the mapping of physical space to display pixels, improving projection accuracy. Real-time acquisition of posture transformation data forms the basis for dynamic tracking, and two-dimensional displacement data conversion maintains the correspondence between the displacement and screen pixels. Finally, by calculating the pixel coordinates superimposed on the displacement, the dynamic update of the light spot position is achieved, and ultimately, a projection light spot is generated based on the real-time coordinates, forming a projection of the laser pen on the display screen, thereby improving the effectiveness of the laser pen.
[0102] Example 2
[0103] In the existing technology of using laser pens to form light spots on display screens, the laser pens used are all USB devices using USB interfaces. If the chip used in the display screen is a monitor-type chip that does not support the USB device, the display screen cannot receive the signal sent by the laser pen and thus cannot form a corresponding light spot, affecting the use effect of the laser pen.
[0104] In order to solve the above technical problems, this embodiment provides a projection display method for a laser pen, so as to display a light spot corresponding to the laser pen on any display screen, thereby improving the use effect of the laser pen.
[0105] Specifically, refer to Figure 3 , a laser pen projection display method provided in this embodiment includes:
[0106] Step 301: Construct a communication channel between the laser pointer and the display screen according to the communication interface of the display screen.
[0107] In this embodiment, according to the communication interface of the laser pen and the communication interface of the display screen, a communication transfer device is selected from the devices connected to the display screen to receive the signal sent by the laser pen and send the signal to the display screen.
[0108] In one embodiment of this invention, an all-in-one educational computer is used as an example, comprising a touch frame mainboard and an all-in-one mainboard utilizing a monitor chip as its core, which simultaneously controls the touch frame mainboard and a display. Upon determining that the MCU (microcontroller unit) of the touch frame mainboard is capable of receiving signals sent by a USB device and that the touch frame mainboard communicates with the all-in-one mainboard via a UART interface (universal asynchronous receiver / transmitter), a communication connection is established between the touch frame mainboard and the laser pointer, using the touch frame mainboard as a communication relay device connecting the laser pointer and the display screen.
[0109] Step 302: Acquire initial three-dimensional coordinates of the laser pen, and convert the initial three-dimensional coordinates into pixel coordinates on the display screen after determining that the laser pen is aligned with the display screen.
[0110] In this embodiment, referring to Figure 4 The laser pen has a 2.4G wireless communication function, and sends its own three-dimensional coordinates to the touch frame mainboard through 2.4G wireless communication and the 2.4G receiver, and then the touch frame mainboard sends the three-dimensional coordinates to the all-in-one mainboard.
[0111] In this embodiment, the three-dimensional coordinates can be matched with the three-dimensional coordinates of a reference point preset on the all-in-one mainboard. When the match is successful, it is determined that the laser pen is aligned with the display screen.
[0112] Next, a pre-built conversion model from three-dimensional space to two-dimensional pixel coordinates is used to complete the conversion from the three-dimensional coordinates to the pixel coordinates on the display screen, thereby obtaining the pixel coordinates corresponding to the laser pen.
[0113] Step 303: Acquire the three-dimensional posture data of the laser pen in real time to calculate the pixel displacement data of the laser pen moving on the display screen.
[0114] In this embodiment, a posture sensor, such as a three-axis gyroscope and a three-axis accelerometer, is provided inside the laser pen, and three-dimensional posture change data of the laser pen in space, such as angular velocity and spatial acceleration, is obtained through polling at a preset polling period, and then the displacement of the laser pen relative to the initial three-dimensional coordinates is obtained through calculation.
[0115] Next, the length value corresponding to each pixel on the display screen is determined according to the physical size information and pixel distribution information of the display screen, and the pixel displacement data of the laser pen moving on the display screen is calculated according to the length value and the displacement.
[0116] In this embodiment, the physical distance per pixel = W resolution / W physical. For example, if the screen width is 3840 pixels, which corresponds to a physical width of 50 cm, then each pixel corresponds to 0.013 cm.
[0117] Step 304: Obtain the real-time pixel coordinates of the laser pen on the display screen according to the pixel displacement data and the pixel coordinates.
[0118] In this embodiment, the pixel-level coordinate values (X, Y) obtained by calculation are packaged into a data frame and sent to the monitor main chip via the UART by the touch box MCU. After receiving the coordinate data (x, y) of the laser pen, the main chip of the all-in-one device calculates the relative position of its movement and generates the new position coordinates of the red dot (newX, newY); where the calculated x and y on the display screen are the relative position of the laser pen movement. For example, if the laser pen moves 10 pixels, the value is (x+10, y+10).
[0119] In one embodiment of this invention, when updating the position of the laser pointer on the screen, if the display exceeds the display range, the coordinates are corrected so that the red dot is displayed within the display range. If the resolution range (0-3840, 0-2160) is exceeded, the x and y coordinates are assigned the upper limit values.
[0120] Step 305: Constructing a projection light spot of the laser pen on the display screen according to the real-time pixel coordinates.
[0121] In this embodiment, referring to Figure 4 Since the Monitor chip does not have a complex UI rendering engine like Android that can display colorful visual graphics, it can only display very simple visual graphics and cannot achieve a gradient effect. Therefore, the projection light spot corresponding to the laser pen is replaced by a red dot. Specifically, the Monitor UI is reduced to the size of a red dot, and the display is set to a circle with a transparent periphery; the UI is filled with red. When the red dot is displayed, if the coordinate data is updated, the position of the red dot is moved, but it is not re-rendered; when the main chip of the all-in-one machine needs to call out other UIs, such as the Settings page or the Source page, the red dot is hidden and a new UI is redrawn. Directly call the main chip's image engine to fill in the image data and coordinate values.
[0122] The present embodiment provides a projection display method for a laser pen, which enables the display device to be independent of its dependence on a specific hardware interface. The touch frame mainboard is used to establish a communication channel with the laser pen, breaking through the limitations of the traditional USB interface and achieving compatible access to multiple types of display screens. By obtaining the initial three-dimensional coordinates and determining the projection area, the effectiveness of the laser pen's operating range is ensured, and invalid data transmission is avoided. The process of converting three-dimensional coordinates into pixel coordinates solves the mapping problem between the physical space and the screen pixel space. By deriving two-dimensional displacement through real-time acquisition of posture data, accurate tracking of the laser pen's movement is achieved. The displacement is converted into pixel displacement to ensure adaptability to screens of different sizes and resolutions. Finally, a projection light spot is generated based on the real-time pixel coordinates to form a virtual laser point rendering mechanism that does not rely on the hardware interface, so that the traditional laser pen function can be realized on any display device.
[0123] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A projection display method of a laser pen, characterized in that: include: In response to the projection requirement of the laser pen, a communication channel between the laser pen and the display screen is established; Acquiring initial three-dimensional coordinates of the laser pen, and when determining that the initial three-dimensional coordinates are in a projection area corresponding to the display screen, converting the initial three-dimensional coordinates into pixel coordinates on the display screen; Acquiring posture transformation data of the laser pen to obtain two-dimensional displacement data of the laser pen according to the posture transformation data; Acquiring the two-dimensional displacement data to convert the two-dimensional displacement data into pixel displacement data on the display screen; Obtaining the real-time pixel coordinates of the laser pen according to the pixel coordinates and the pixel displacement data; The real-time pixel coordinates are sent to the display screen through the communication channel to generate a projection light spot corresponding to the laser pen on the display screen.
2. The projection display method of a laser pen according to claim 1, characterized in that: The step of responding to the projection requirement of the laser pen and establishing a communication channel between the laser pen and the display screen includes: Acquire a first communication interface of the laser pointer; Acquire a second communication interface of the display screen; Selecting a signal transfer device for communication connection with the display screen according to the first communication interface and the second communication interface; A communication channel between the laser pen and the display screen is established through the signal transfer device.
3. The projection display method of a laser pen according to claim 2, characterized in that: The acquiring of the initial three-dimensional coordinates of the laser pen and, when determining that the initial three-dimensional coordinates are in a projection area corresponding to the display screen, converting the initial three-dimensional coordinates into pixel coordinates on the display screen includes: Acquiring the initial three-dimensional coordinates sent by the laser pointer through the signal transfer device; Matching the initial three-dimensional coordinates with a plurality of pre-saved three-dimensional coordinates of projected edges; When the three-dimensional coordinates of the projection edge are consistent with the initial three-dimensional coordinates, determining that the initial three-dimensional coordinates are within the projection area corresponding to the display screen; The initial three-dimensional coordinates are converted into pixel coordinates on the display screen according to a preset coordinate system conversion model.
4. The projection display method of a laser pen according to claim 2, characterized in that: The acquiring of the posture transformation data of the laser pen to obtain the two-dimensional displacement data of the laser pen according to the posture transformation data includes: Acquire the three-dimensional angular velocity and three-dimensional acceleration of the laser pen in real time according to a preset polling cycle; wherein the posture transformation data includes the three-dimensional angular velocity and the three-dimensional acceleration; Horizontal displacement data and vertical displacement data of the laser pointer are calculated according to the three-dimensional angular velocity, the three-dimensional angular velocity, and the polling period.
5. The projection display method of a laser pen according to claim 4, characterized in that: The acquiring of the two-dimensional displacement data to convert the two-dimensional displacement data into pixel displacement data on the display screen includes: Acquiring the horizontal displacement data and the vertical displacement data through the signal transfer device; Obtaining physical size information and pixel distribution information of the display screen to obtain a length value corresponding to each pixel; Converting the horizontal displacement data into a horizontal pixel shift value and converting the vertical displacement data into a vertical pixel shift value according to the length value; The pixel displacement data is obtained according to the horizontal pixel movement value and the vertical pixel movement value.
6. The projection display method of a laser pen according to claim 5, characterized in that: The step of obtaining the real-time pixel coordinates of the laser pen according to the pixel coordinates and the pixel displacement data includes: Adding the horizontal pixel movement value to the horizontal pixel coordinate value in the pixel coordinate to obtain a real-time horizontal pixel coordinate value; Adding the vertical pixel movement value to the vertical pixel coordinate value in the pixel coordinate to obtain a real-time vertical pixel coordinate value; The real-time pixel coordinates of the laser pen are obtained according to the real-time horizontal pixel coordinate value and the real-time vertical pixel coordinate value.
7. The projection display method of a laser pen according to claim 1, characterized in that: The step of sending the real-time pixel coordinates to the display screen through the communication channel to generate a projection light spot corresponding to the laser pen on the display screen includes: sending the real-time pixel coordinates to the display screen via the communication channel and calling a pre-saved visualization graphic; Adjusting the graphic area and graphic filling color of the visualization graphic to obtain a light spot graphic; The light spot pattern is displayed on the display screen according to the real-time pixel coordinates to generate a projection light spot corresponding to the laser pen.
8. A laser pointer projection display system, characterized in that: It includes a communication channel module, a coordinate conversion module, a displacement calculation module, a pixel displacement conversion module, a coordinate calculation module and a projection display module; The communication channel module is used to respond to the projection requirements of the laser pen and establish a communication channel between the laser pen and the display screen; The coordinate conversion module is used to obtain the initial three-dimensional coordinates of the laser pen, and when determining that the initial three-dimensional coordinates are in the projection area corresponding to the display screen, convert the initial three-dimensional coordinates into pixel coordinates on the display screen; The displacement calculation module is used to obtain the initial three-dimensional coordinates of the laser pen and obtain the posture transformation data of the laser pen, so as to obtain the two-dimensional displacement data of the laser pen according to the posture transformation data; The pixel displacement conversion module is used to obtain the two-dimensional displacement data to convert the two-dimensional displacement data into pixel displacement data on the display screen; The coordinate calculation module is used to obtain the real-time pixel coordinates of the laser pen according to the pixel coordinates and the pixel displacement data; The projection display module is used to send the real-time pixel coordinates to the display screen through the communication channel, so as to generate a projection light spot corresponding to the laser pen on the display screen.
9. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the projection display method of the laser pen according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that include: A stored computer program, wherein when the computer program is run, the device where the computer-readable storage medium is located is controlled to execute the projection display method of a laser pen according to any one of claims 1 to 7.
Citation Information
Patent Citations
Smart pen cursor display method and device, storage medium and electronic equipment
CN119718100A
Information input device and presentation system using this device
JP1995230354A
Laser virtual touch control method and system
WO2015139427A1