Touch recognition method, device and optical touch control system
By using the synchronous control of the first and second light in the touch control system, the touch activation device emits light only when taking a picture and synchronizes with the shutter of the image acquisition device, the problem of power waste and misidentification is solved, and the recognition accuracy is improved and equipment life.
Patent Information
- Application Number
- CN202411147650.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-08-21
AI Technical Summary
In the existing touch control system, the touch activation device still emits light when it is not required to operate, resulting in waste of power and shortened life, and ambient light is prone to misidentification.
The light emitting device of the control device triggers the touch device to emit the first light ray, and the received and returned second light is used for the image acquisition device to determine the position of the touch activation device, emit light only when taking a picture, and synchronize with the shutter of the image acquisition device. , remove ambient light.
It realizes accurate identification of the position of the touch activation device without wasting power, improves data recognition accuracy, avoids misidentification, and extends the service life of the touch activation device.
Smart Images

Figure CN118672431B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical touch technology, and in particular to a touch recognition method, device and optical touch control system. Background Art
[0002] In the touch control system in the prior art, the touch activation device (such as a stylus) is always on. Even when it is not within the recognition range of the camera, the touch activation device still emits light, which will lead to a waste of power of the touch activation device and a shortened device life.
[0003] In other touch control systems, if it is not the touch activation device that emits light but other light sources, then the object illuminated by the light source will be identified as the touch object, which can easily lead to misidentification. Summary of the invention
[0004] In view of this, an object of the present invention is to provide a touch recognition method, device and optical touch system, which stop emitting light when the touch activation device does not need to work, thereby achieving the purpose of saving power, and can ensure that the touch activation device emits light synchronously with the camera shutter of the touch device, thereby removing ambient light and improving data recognition accuracy.
[0005] In a first aspect, an embodiment of the present invention provides a touch recognition method, which is applied to a control device, and the control device is matched with a touch device. The method includes: responding to a photo-taking instruction, triggering a light-emitting device of the touch device to emit a first light; receiving a second light returned by a touch activation device matched with the touch device based on the first light; capturing an image of the touch device by a preset image capture device, and determining a touch position of the touch activation device on the touch device in combination with the second light.
[0006] In combination with the first aspect, an embodiment of the present invention provides a first possible implementation of the first aspect, wherein the step of acquiring an image of a touch device through a preset image acquisition device includes: controlling the image acquisition device to acquire an image of the surface of the touch device to obtain a first acquired image; and starting a timing function, when the timing duration reaches a preset duration threshold, triggering the image acquisition device to perform a second image acquisition on the surface of the touch device to obtain a second acquired image corresponding to the first acquired image.
[0007] In combination with the first aspect, an embodiment of the present invention provides a second possible implementation of the first aspect, wherein the step of determining the touch position of the touch activation device on the touch device in combination with the second light includes: performing difference processing on the first acquired image and the second acquired image to obtain a difference image corresponding to the first acquired image and the second acquired image; and determining the touch position of the touch activation device on the touch device based on the position of the second light in the difference image.
[0008] In combination with the first aspect, an embodiment of the present invention provides a third possible implementation of the first aspect, wherein the second light is the light emitted by the touch activation device when receiving the first light; the above method also includes: triggering the light emitting device of the touch device to emit the first light according to a preset frequency; when the touch activation device emits the second light, controlling the image acquisition device to capture the image of the surface of the touch device to obtain a first captured image; wherein the first captured image is an image containing the second light.
[0009] In combination with the first aspect, an embodiment of the present invention provides a fourth possible implementation of the first aspect, wherein the second captured image is an image that does not contain the second light; the above method also includes: after starting the timing function, sending a trigger signal to the touch activation device to trigger the touch activation device to stop emitting the second light.
[0010] In a second aspect, an embodiment of the present invention provides a touch recognition method, wherein the method is applied to a touch activation device, the touch activation device is matched with a touch device, and the method includes: responding to a first light emitted by a light emitting device of the touch device; emitting a second light to the touch device so that a control device matched with the touch device determines the touch position of the touch activation device on the touch device based on the second light, and, through an image acquisition device capturing an image of the touch device.
[0011] In combination with the second aspect, an embodiment of the present invention provides a first possible implementation of the second aspect, wherein the above method also includes: after emitting the second light to the touch device, starting a timing function, and continuously emitting the second light to the touch device during the timing process, so that the image acquisition device acquires a first acquisition image containing the second light; when the timing duration of the timing function reaches a preset duration, stopping emitting the second light to the touch device, so that the image acquisition device acquires a second acquisition image that does not contain the second light.
[0012] In a third aspect, an embodiment of the present invention provides a touch recognition device, wherein the device is applied to a control device, and the control device is matched with a touch device. The device includes: a control module, which is used to respond to a photo-taking instruction and trigger a light-emitting device of the touch device to emit a first light; a communication module, which is used to receive a second light returned by a touch activation device matched with the touch device based on the first light; and an execution module, which is used to capture an image of the touch device through a preset image capture device, and determine the touch position of the touch activation device on the touch device in combination with the second light.
[0013] In a fourth aspect, an embodiment of the present invention provides a touch recognition device, wherein the device is applied to a touch activation device, and the touch activation device is matched with a touch device; the device includes: a signal receiving module, which is used to respond to a first light emitted by a light emitting device of the touch device; an output module, which is used to emit a second light to the touch device, so that a control device matched with the touch device determines the touch position of the touch activation device on the touch device based on the second light and an image captured by an image acquisition device on the touch device.
[0014] In a fifth aspect, an embodiment of the present invention further provides an optical touch system, wherein the optical touch system includes a control device, a touch device, and a touch activation device matched with the touch device; the touch device is configured with an image acquisition device, the control device is matched with the touch device, and is communicatively connected with the image acquisition device.
[0015] The embodiments of the present invention bring the following beneficial effects: A touch recognition method, device and optical touch system provided by the present invention are applied to a control device or a touch activation device. When taking a photo is required, the control device triggers the light emitting device of the touch device to emit a first light to give a photo signal to the touch activation device. Further, when the touch activation device returns a second light based on the first light, the image acquisition device can acquire an image of the touch activation device at the touch position of the touch device. Based on this, the touch activation device of the embodiment of the present invention will emit light only when taking a photo is required, which can achieve the purpose of saving power and avoid misidentification of the touch device. While the touch activation device emits the second light, the shutter of the image acquisition device takes photos synchronously. The light emission time of the touch activation device is short, which can save power and fill in the touch position based on the second light to determine the touch position of the touch activation device on the touch device.
[0016] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description and the drawings.
[0017] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 A flow chart of a touch recognition method provided by an embodiment of the present invention;
[0020] Figure 2 A flowchart of another touch recognition method provided by an embodiment of the present invention;
[0021] Figure 3 A schematic diagram of a touch control device provided by an embodiment of the present invention;
[0022] Figure 4 A flowchart of a third touch recognition method provided by an embodiment of the present invention;
[0023] Figure 5 A schematic diagram of the structure of a touch recognition device provided by an embodiment of the present invention;
[0024] Figure 6 A schematic diagram of the structure of another touch recognition device provided by an embodiment of the present invention;
[0025] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the following embodiments of the present disclosure are described by specific specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0027] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described in the present invention may be embodied in a wide variety of forms, and any specific structure and / or function described in the present invention is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described in the present invention may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described in the present invention may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described in the present invention may be used to implement this device and / or practice this method.
[0028] It should also be noted that the diagrams provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure, and the diagrams only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation. The type, quantity and proportion of each component in actual implementation can be changed at will, and the component layout type may also be more complicated. In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that aspects can be practiced without these specific details.
[0029] A touch recognition method, device and optical touch system provided by the embodiments of the present invention can stop emitting light when a touch activation device does not need to work, thereby saving power. In addition, it can ensure that the light emission of the touch activation device is synchronized with the camera shutter of the touch device, thereby removing ambient light and improving data recognition accuracy.
[0030] Embodiment 1
[0031] To facilitate understanding of this embodiment, a touch recognition method disclosed in an embodiment of the present invention is first introduced in detail. The method is applied to a control device, and the control device is matched with a touch control device. Figure 1 A flow chart of a touch recognition method provided by an embodiment of the present invention is shown. Figure 1 As shown, the method comprises the following steps:
[0032] Step S102, in response to a photographing instruction, triggering a light emitting device of the touch device to emit a first light.
[0033] Step S104: receiving a second light beam returned by a touch activation device matched with the touch device based on the first light beam.
[0034] The touch device includes a touch component to form a touch-enabled device, such as a touch screen of a mobile phone, a display, etc. In one embodiment, the touch activation device is a stylus. The touch device includes a touch surface or a touch screen to perform touch control through the touch activation device. In a specific implementation, the touch component of the embodiment of the present invention is installed on a television or an all-in-one machine.
[0035] Among them, when it is necessary to take a photo, the embodiment of the present invention controls the timing of the touch device emitting the first light and the timing of the image acquisition device taking a photo through the control device. At the same time, the touch activation device matched with the touch device emits the second light at a timing corresponding to the first light (that is, the touch activation device of the embodiment of the present invention returns the second light when receiving the first light). Based on this, the touch activation device only emits light when it is necessary to take a photo, thereby achieving the purpose of saving power. In addition, the light emission of the touch activation device is synchronized with the shutter of the photo, which can avoid the capture error of the touch position.
[0036] In a specific implementation, the control device proposed in the embodiment of the present invention can be an independent controller, which controls the emission timing of the first light and the timing of taking pictures by communicating with the touch device; or, it can be a control unit configured for the touch device, which controls the emission timing of the first light of the matched touch device through the control unit.
[0037] Step S106: capturing an image of the touch device through a preset image capturing device, and combining the second light to determine a touch position of the touch activation device on the touch device.
[0038] When the touch activation device is at the touch position of the touch device, the embodiment of the present invention is implemented by an image acquisition device, which can be a camera or other image acquisition device installed at a preset position of the touch device, and is connected to the above-mentioned control device through communication to enable the control device to control the timing of taking pictures.
[0039] In a specific implementation, when taking a photo is required, the touch activation device touches the touch position of the touch device (such as a display screen). Correspondingly, the control device controls the emission timing of the first light, and captures an image of the touch device by controlling the image acquisition device. After the first light is emitted, the touch activation device emits a second light based on the received first light. Based on this, the touch position of the touch activation device on the touch device can be determined in combination with the second light.
[0040] In summary, in the embodiments of the present invention, the touch activation device is in a non-luminous state except when taking a photo. When taking a photo, the touch activation device emits a first light to make it illuminate. At the same time, the image of the touch device is captured by the image acquisition device, and the touch position of the touch activation device can be determined in combination with the second light. The touch activation device can only receive the first light when it is within the detection range of the touch device. Except when the touch activation device receives the first light, the touch activation device will not emit light autonomously, thereby achieving the purpose of power saving. Moreover, the light emission of the touch activation device is synchronized with the camera shutter of the image acquisition device, and the second light can fill in the light for the touch activation device, so as to accurately identify the touch position of the touch activation device on the touch device in combination with the second light, and reduce the recognition error caused by the delay in taking a photo.
[0041] In one embodiment, the light emitting device of the touch device can emit infrared light of 940 nm wavelength (i.e., the first light), and correspondingly, the touch activation device includes a 940 nm light receiving device. The touch activation device also includes a light emitting device, which can emit infrared light of a preset wavelength (i.e., the second light). The preset wavelength can be 850 nm. It should be noted that the wavelengths and light forms corresponding to the first light and the second light are not limited in the embodiments of the present invention. The wavelengths of the first light and the second light are different and can be distinguished.
[0042] A touch recognition method provided by an embodiment of the present invention can trigger a light emitting device of a touch device to emit a first light when taking a photo is required, and when the touch activation device receives a second light returned based on the first light, the second light and the image captured by the image acquisition device can be combined to determine the touch position of the touch activation device on the touch device. In addition, the touch activation device only emits the second light when taking a photo is required, which can avoid misidentification caused by light reflection, and this method can also achieve the purpose of power saving. The second light is emitted by the touch activation device when the first light is received, and the image acquisition device is controlled by the control device to take a photo. The light emission of the touch activation device is synchronized with the shutter of the image acquisition device, which can avoid the delay in taking a photo affecting the recognition accuracy. The light emission duration is short, and the second light can also play a fill light role for the touch activation device to accurately determine the touch position of the touch activation device on the touch device.
[0043] Furthermore, based on the above embodiments, an embodiment of the present invention also provides another touch recognition method, wherein the above control device, in addition to controlling the emission timing of the first light and the photo taking timing of the image acquisition device, also processes the image to determine the touch position of the touch activation device on the touch device in combination with the second light. Figure 2 FIG. 4 is a flow chart showing another touch recognition method provided by an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:
[0044] Step S202, in response to a photographing instruction, triggering a light emitting device of the touch device to emit a first light.
[0045] Step S204: receiving a second light beam returned by a touch activation device matched with the touch device based on the first light beam.
[0046] Step S206: Control a preset image acquisition device to acquire an image of the surface of the touch device to obtain a first acquired image.
[0047] In one embodiment, a photo taking instruction can be generated by setting a photo taking time. In addition, the control device acts as a master control to make the light emitting device of the touch device emit a first light according to a certain period, and controls the image acquisition device to acquire an image. After receiving the first light, the touch activation device emits a second light, so that the light emitted by the touch activation device can be seen in the acquired image, and the touch position of the touch activation device is confirmed according to the position of the light.
[0048] When the touch activation device is not within the detection range of the touch device, the touch activation device will not receive the first light and will not emit the second light. At this time, there is no touch activation device information in the captured image.
[0049] Furthermore, after the touch device is started, the main control chip of the touch device (that is, the above-mentioned control device) can control the image acquisition device to take pictures at a fixed frequency, such as once every 8ms. Each picture is equivalent to responding to a picture taking instruction. Among them, the first captured image is an image containing the second light. The shooting frequency can be synchronized with the emission timing of the second light, such as pre-triggering the touch device to emit the first light, so that when the second light is received, the image captured by the image acquisition device contains the second light, and correspondingly, the image is the first captured image.
[0050] In a specific implementation, the first captured image can be obtained through the following steps: triggering the light emitting device of the touch device to emit the first light according to a preset frequency; when the touch activation device emits the second light based on receiving the first light, the image capturing device captures the surface of the touch device (such as the image of the surface of the display) to obtain the first captured image. That is, the image containing the second light is taken as the first captured image.
[0051] In one embodiment, the image acquisition device may be a camera installed at a diagonal position of the touch device. In addition, the light emitting device of the touch device may be a lamp bead arranged at a diagonal position of the touch device. Figure 3 , Figure 3A schematic diagram of a touch device is shown, which is used to indicate the relative position of the touch activation device when touching the touch device, including the relative positions of the first light, the second light, and the image acquisition device. The light emitting device at the diagonal position of the touch device emits the first light (such as 940nm infrared light), and the touch activation device emits the second light (such as 850nm infrared light) after receiving the first light through the 940nm light receiver. At the same time, the image acquisition device installed at the above position captures the image of the surface of the touch device to achieve touch recognition. In a specific implementation, there can be two or more cameras. The touch device is photographed by multiple cameras, and the positions of the touch activation device photographed by each camera are intersected to determine the touch position of the touch activation device on the touch device.
[0052] Step S208, starting the timing function, when the timing duration reaches a preset duration threshold, triggering the image acquisition device to perform secondary image acquisition on the surface of the touch device to obtain a second acquired image corresponding to the first acquired image.
[0053] Step S210: performing a difference process on the first collected image and the second collected image to obtain a difference image corresponding to the first collected image and the second collected image.
[0054] Step S212: determining the touch position of the touch activation device on the touch device based on the position of the second light in the difference image.
[0055] Based on the above steps, a first captured image in which a second light exists is obtained. In order to remove the interference of ambient light, an embodiment of the present invention further captures a second captured image, and performs difference processing on the first captured image and the second captured image to determine the touch position of the touch activation device on the touch device.
[0056] In a specific implementation, the second captured image is an image that does not contain the second light. The image capture device can capture two images at a certain interval to ensure that one image is captured when the touch activation device emits light and the other image is captured when the touch activation device does not emit light. The two images are subjected to difference processing to eliminate the interference of ambient light.
[0057] In one embodiment, the embodiment of the present invention acquires images based on a preset frequency (e.g., 8ms) to obtain a first acquired image, and determines a second acquired image by taking a second image at a certain time interval (e.g., 1ms interval). Correspondingly, the touch activation device emits a second light for a moment when receiving the first light, and the second light is captured in the first acquired image, while the image acquired after a certain time interval does not have the second light. Based on this, a difference processing between the two images can be performed. The value of the time interval is as short as possible, so that in the same photo command, one frame of image with the second light and one frame of image without the second light are obtained.
[0058] In another embodiment, after the timing function is started, a trigger signal may be sent to the touch activation device to trigger the touch activation device to stop emitting the second light. At this time, the image acquisition device may also acquire the second acquired image without the second light. Correspondingly, in the current embodiment, the touch activation device may continue to emit the second light when receiving the first light, until the trigger signal is received, and then the second light is stopped, so as to acquire the second acquired image for image difference processing.
[0059] Specifically, the embodiment of the present invention uses a two-frame difference method to remove the interference of ambient light. The two-frame difference image is further calculated and processed to obtain the actual touch position and state of the touch activation device. In a specific implementation, the two frames of images can be compared, such as comparing the pixel points between the two frames of images, so as to remove the interference of ambient light in the image after the two frames of images are differenced. A weighted difference method can be used for the two frames of images to obtain a frame of data corresponding to the current photo instruction, in which the interference of ambient light is removed, and the touch position of the touch activation device on the touch device can be determined.
[0060] Embodiment 2
[0061] Furthermore, an embodiment of the present invention also provides a third touch recognition method, which is applied to a touch activation device, and the touch activation device is matched with a touch device. Figure 4 FIG. 4 shows a flow chart of a third touch recognition method provided by an embodiment of the present invention. Figure 4 As shown, the method comprises the following steps:
[0062] Step S302 , responding to a first light emitted by a light emitting device of the touch control device.
[0063] Step S304, emitting a second light to the touch device, so that a control device matched with the touch device determines a touch position of the touch activation device on the touch device according to the second light and an image captured by the image capture device.
[0064] The third touch recognition method provided in the embodiment of the present invention has the same technical features as the method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects. For the sake of simplicity, it will not be described in detail here.
[0065] Furthermore, based on the above embodiment, the embodiment of the present invention starts the timing function after emitting the second light to the touch device, and continues to emit the second light to the touch device during the timing process, so that the image acquisition device can acquire the first acquisition image containing the second light.
[0066] Furthermore, when the timing duration of the timing function reaches a preset duration, the second light is stopped from being emitted to the touch device, so that the image acquisition device acquires a second acquisition image that does not contain the second light. Based on this method, the image is processed by the control device to obtain an image after removing the ambient light, so as to determine the touch position of the touch activation device on the touch device based on the image combined with the second light.
[0067] Embodiment 3
[0068] Furthermore, based on the above method embodiment, an embodiment of the present invention also provides a touch recognition device, which is applied to a control device, and the control device is matched with a touch control device. Figure 5 FIG. 4 shows a schematic diagram of a touch recognition device provided by an embodiment of the present invention. Figure 5 As shown, the device includes: a control module 100, which is used to respond to a photo-taking instruction and trigger a light-emitting device of a touch device to emit a first light; a communication module 200, which is used to receive a second light returned by a touch activation device matched with the touch device based on the first light; and an execution module 300, which is used to capture an image of the touch device through a preset image capture device, and determine a touch position of the touch activation device on the touch device in combination with the second light.
[0069] A touch recognition device provided in an embodiment of the present invention has the same technical features as the touch recognition method provided in the above embodiment, and can therefore solve the same technical problems and achieve the same technical effects.
[0070] Furthermore, based on the above-mentioned embodiment, the embodiment of the present invention also provides another touch recognition device, and the above-mentioned execution module 300 is also used to control a preset image acquisition device to perform image acquisition on the surface of the touch device to obtain a first acquired image; and to start a timing function. When the timing duration reaches a preset duration threshold, the image acquisition device is triggered to perform a second image acquisition on the surface of the touch device to obtain a second acquired image corresponding to the first acquired image.
[0071] The execution module 300 is also used to perform difference processing on the first collected image and the second collected image to obtain a difference image corresponding to the first collected image and the second collected image; and determine the touch position of the touch activation device on the touch device based on the position of the second light in the difference image.
[0072] Among them, the second light is the light emitted by the touch activation device when it receives the first light; the above-mentioned execution module 300 is also used to trigger the light emitting device of the touch device to emit the first light according to a preset frequency; when the touch activation device emits the second light, the image acquisition device is controlled to capture the image of the surface of the touch device to obtain a first captured image; wherein the first captured image is an image containing the second light.
[0073] The second collected image is an image that does not contain the second light. The execution module 300 is also used to send a trigger signal to the touch activation device after starting the timing function to trigger the touch activation device to stop emitting the second light.
[0074] Embodiment 4
[0075] On the basis of the above-mentioned embodiment, the embodiment of the present invention further provides another touch recognition device, which is applied to a touch activation device, and the touch activation device is matched with a touch device. Figure 6 FIG. 4 shows a schematic diagram of the structure of a third touch recognition device provided by an embodiment of the present invention. Figure 6 As shown, the touch recognition device includes: a signal receiving module 10, which is used to respond to a first light emitted by a light emitting device of a touch device; an output module 20, which is used to emit a second light to the touch device, so that a control device matched with the touch device determines the touch position of the touch activation device on the touch device based on the second light and an image captured by an image acquisition device on the touch device.
[0076] The output module 20 is further configured to start a timing function after emitting the second light to the touch device, and continuously emit the second light to the touch device during the timing process, so that the image acquisition device acquires a first acquisition image containing the second light; and when the timing duration of the timing function reaches a preset duration, stop emitting the second light to the touch device, so that the image acquisition device acquires a second acquisition image that does not contain the second light.
[0077] Another touch recognition device provided by an embodiment of the present invention has the same technical features as the touch recognition method provided by the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.
[0078] Embodiment 5
[0079] Based on the above embodiments, an embodiment of the present invention further provides an optical touch system, which includes a control device, a touch device, and a touch activation device matched with the touch device. The touch device is equipped with an image acquisition device, the control device is matched with the touch device, and is connected to the image acquisition device for communication. In a specific implementation, the control device is used to control the image acquisition timing of the image acquisition device, and at the same time, control the first light emission timing of the touch device.
[0080] The timing of emitting the second light of the touch activation device is also designed, and the second light is emitted when the touch activation device receives the first light. Based on this, the touch device is imaged by the image acquisition device, and after the control device processes the image, the touch position of the touch activation device on the touch device can be determined in combination with the second light. The embodiment of the present invention can synchronize the emission of the second light with the photo taking timing of the image acquisition device to avoid capture delay; the touch activation device emits the second light only when it needs to emit light, which can achieve the purpose of power saving.
[0081] An embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above Figures 1 to 3 The embodiment of the present invention also provides a computer-readable storage medium having a computer program stored thereon, and the computer program is executed by a processor to perform the above Figures 1 to 3 Any of the steps of the method shown.
[0082] The embodiment of the present invention also provides a schematic diagram of the structure of an electronic device, such as Figure 7 FIG. 1 is a schematic diagram of the structure of the electronic device, wherein the electronic device includes a processor 71 and a memory 70, the memory 70 stores computer executable instructions that can be executed by the processor 71, and the processor 71 executes the computer executable instructions to implement the above Figures 1 to 3 The method shown.
[0083] exist Figure 7In the illustrated embodiment, the electronic device further includes a bus 72 and a communication interface 73, wherein the processor 71, the communication interface 73 and the memory 70 are connected via the bus 72. The memory 70 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 73 (which may be wired or wireless), and the Internet, a wide area network, a local area network, a metropolitan area network, etc. may be used. The bus 72 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. It may also be an AMBA (Advanced Microcontroller Bus Architecture) bus, where AMBA defines three types of buses, including an APB (Advanced Peripheral Bus) bus, an AHB (Advanced High-performance Bus) bus, and an AXI (Advanced Xtensible Interface) bus. The bus 72 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0084] The processor 71 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 71. The above processor 71 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 71 reads the information in the memory and combines its hardware to complete the above Figures 1 to 3 Any of the methods shown.
[0085] A computer program product of a touch recognition method, device, and optical touch system provided in an embodiment of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can refer to the method embodiment, which will not be repeated here. A person skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system described above can refer to the corresponding process in the previous method embodiment, which will not be repeated here.
[0086] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0087] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0088] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A touch recognition method, characterized in that: The method is applied to a control device, and the control device is matched with a touch control device; the method comprises: In response to a photographing instruction, triggering a light emitting device of the touch-control device to emit a first light beam; receiving a second light beam returned by a touch activation device matching the touch device based on the first light beam; Capturing an image of the touch device by a preset image acquisition device, and determining a touch position of the touch activation device on the touch device in combination with the second light; The image of the touch device includes a first collected image, or further includes a second collected image; the first collected image is an image including the second light, and the second collected image is an image not including the second light; When the image of the touch device includes a first collected image and a second collected image, the step of determining the touch position of the touch activation device on the touch device in combination with the second light includes: Performing a difference process on the first acquired image and the second acquired image to obtain a difference image corresponding to the first acquired image and the second acquired image; The touch position of the touch activation device on the touch device is determined based on the position of the second light in the difference image.
2. The method according to claim 1, characterized in that: The step of acquiring an image of the touch control device by a preset image acquisition device comprises: Controlling a preset image acquisition device to acquire an image of the surface of the touch device to obtain a first acquired image; and, The timing function is started, and when the timing duration reaches a preset duration threshold, the image acquisition device is triggered to perform secondary image acquisition on the surface of the touch device to obtain a second acquired image corresponding to the first acquired image.
3. The method according to claim 2, characterized in that The second light is the light emitted by the touch activation device when receiving the first light; The method further comprises: Triggering the light emitting device of the touch control device to emit a first light beam according to a preset frequency; When the touch activation device emits the second light, the image acquisition device is controlled to acquire an image of the surface of the touch device to obtain a first acquired image.
4. The method according to claim 2, characterized in that: The method further comprises: After the timing function is started, a trigger signal is sent to the touch activation device to trigger the touch activation device to stop emitting the second light.
5. A touch recognition method, characterized in that: The method is applied to a touch activation device, the touch activation device is matched with a touch device, and the method includes: responding to a first light emitted by a light emitting device of the touch control device; Emitting a second light to the touch device, so that a control device matched with the touch device determines a touch position of the touch device by the touch activation device according to the second light and an image captured by an image acquisition device on the touch device; The image captured by the image capture device on the touch device includes a first captured image, or further includes a second captured image; the first captured image is an image containing the second light, and the second captured image is an image not containing the second light; When the image captured by the image acquisition device on the touch device includes a first captured image and a second captured image, the control device determines the touch position of the touch activation device on the touch device according to the second light and the image captured by the image acquisition device on the touch device, including: Performing a difference process on the first acquired image and the second acquired image to obtain a difference image corresponding to the first acquired image and the second acquired image; The touch position of the touch activation device on the touch device is determined based on the position of the second light in the difference image.
6. The method according to claim 5, characterized in that The method further comprises: After emitting the second light to the touch control device, starting a timing function, and continuously emitting the second light to the touch control device during the timing process, so that the image acquisition device acquires a first acquisition image including the second light; When the timing duration of the timing function reaches a preset duration, the emission of the second light to the touch control device is stopped, so that the image acquisition device acquires a second acquisition image that does not include the second light.
7. A touch recognition device, characterized in that: Applied to a control device, the control device matches a touch device, and the device comprises: A control module, configured to respond to a photographing instruction and trigger a light emitting device of the touch device to emit a first light beam; A communication module, configured to receive a second light beam returned by a touch activation device matched with the touch device based on the first light beam; An execution module, configured to capture an image of the touch device through a preset image capture device, and determine a touch position of the touch activation device on the touch device in combination with the second light; The image of the touch device includes a first collected image, or further includes a second collected image; the first collected image is an image including the second light, and the second collected image is an image not including the second light; When the image of the touch device includes a first captured image and a second captured image, the execution module is further used to perform difference processing on the first captured image and the second captured image to obtain a difference image corresponding to the first captured image and the second captured image; and determine the touch position of the touch activation device on the touch device based on the position of the second light in the difference image.
8. A touch recognition device, characterized in that: Applied to a touch activation device, the touch activation device matches a touch device, and the device comprises: A signal receiving module, used to respond to the first light emitted by the light emitting device of the touch control device; an output module, configured to emit a second light beam to the touch control device, so that a control device matched with the touch control device determines a touch position of the touch control device by the touch control activation device according to the second light beam and an image captured by an image capture device on the touch control device; The image captured by the image capture device on the touch device includes a first captured image, or further includes a second captured image; the first captured image is an image containing the second light, and the second captured image is an image not containing the second light; When the image captured by the image acquisition device on the touch device includes a first captured image and a second captured image, the control device determines the touch position of the touch activation device on the touch device according to the second light and the image captured by the image acquisition device on the touch device, including: Performing a difference process on the first acquired image and the second acquired image to obtain a difference image corresponding to the first acquired image and the second acquired image; The touch position of the touch activation device on the touch device is determined based on the position of the second light in the difference image.
9. An optical touch system, characterized in that: The optical touch system comprises a control device, a touch device, and a touch activation device matched with the touch device; the control device is configured with the touch recognition device of claim 7, and is used to execute the touch recognition method of any one of claims 1 to 4; the touch activation device is configured with the touch recognition device of claim 8, and is used to execute the touch recognition method of any one of claims 5 to 6; The touch control device is equipped with an image acquisition device, and the control device matches the touch control device and is in communication connection with the image acquisition device.
