Interaction method, terminal device and readable storage medium based on laser sensing
Through the interaction method based on laser sensing, the coordinate information of the laser spot is obtained and the gesture type is determined, which solves the problem of a single interaction mode of the terminal device and realizes the diversification and richness of the interaction mode.
Patent Information
- Application Number
- CN202011307037.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-19
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-11-19
AI Technical Summary
The interaction mode of existing terminal devices is relatively simple and cannot meet the rich interaction needs brought about by complex functions.
Using an interaction method based on laser sensing, by obtaining the coordinate information of the laser spot, determining the gesture type and generating interactive instructions, the interaction method of the terminal device is enriched.
It realizes the diversification of terminal device interaction methods and improves the richness and flexibility of human-computer interaction.
Smart Images

Figure CN112346644B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent devices, and in particular to an interactive method based on laser sensing, a terminal device and a readable storage medium. Background Art
[0002] When using a terminal device, a user needs to interact with the terminal device, such as a smart TV. When a user operates the smart TV, the user generally controls the smart TV through a remote control. However, the method of using a remote control to interact with the smart TV is overly dependent on the remote control. The interaction method that can be achieved by the remote control is relatively simple. For example, it can only perform simple channel selection operations, volume adjustment operations, etc. With the development of the times, the functions of terminal devices have become more and more complicated, and the requirements for the richness of human-computer interaction are also getting higher and higher. Therefore, the problem of the relatively single interaction method of terminal devices in the prior art needs to be solved urgently. Summary of the invention
[0003] The main purpose of the present invention is to provide an interactive method, terminal device and readable storage medium based on laser sensing, aiming to solve the technical problem that the interactive mode of the terminal device is relatively single.
[0004] To achieve the above object, the present invention provides an interactive method based on laser sensing, the interactive method based on laser sensing is applied to a terminal device, and the interactive method based on laser sensing includes:
[0005] Acquire the detected laser spot;
[0006] Determining a gesture type according to the first coordinate information of the laser spot;
[0007] An interaction instruction is determined according to the gesture type.
[0008] Preferably, the laser spot is formed by a laser beam emitted by a laser emitting device irradiating a laser sensing layer of the terminal device, the first coordinate information is the coordinate information of the laser spot in the laser sensing layer, and the step of determining the gesture type according to the first coordinate information of the laser spot includes:
[0009] Determine, according to a preset corresponding relationship and the first coordinate information, second coordinate information corresponding to the first coordinate information, wherein the preset corresponding relationship is a corresponding relationship between the first coordinate information and the second coordinate information pre-set in the terminal device, and the second coordinate information is coordinate information of the laser spot in the display panel corresponding to the first coordinate information in the preset corresponding relationship;
[0010] The gesture type is determined according to the second coordinate information.
[0011] Preferably, the step of determining the gesture type according to the second coordinate information includes:
[0012] Determine a movement parameter of the laser spot according to the second coordinate information of the laser spot detected within a preset time interval and the detection time, wherein the movement parameter includes at least one of a movement distance, a movement direction, and a movement trajectory;
[0013] The gesture type is determined according to the movement parameter.
[0014] Preferably, the laser emitting device is a smart glove, the smart glove comprises at least two laser emitters, the laser beam emitted by each laser emitter irradiates the laser sensing layer to form a laser spot, and the step of determining the movement parameter of the laser spot according to the second coordinate information of the laser spot detected within a preset interval and the detection time comprises:
[0015] Grouping is performed according to the second coordinate information corresponding to each of the laser spots and the detection time to obtain at least two sets of coordinate sets, wherein the laser spots corresponding to the second coordinate information in the same set of coordinate sets are all formed by the same laser emitter in the smart glove;
[0016] The movement parameters of the laser spot corresponding to each group of the coordinate sets are determined respectively according to the group of the coordinate sets.
[0017] Preferably, the step of grouping according to the second coordinate information corresponding to each of the laser spots and the detection time to obtain at least two sets of coordinate sets includes:
[0018] Determine the absolute value of the difference between the second coordinate information of adjacent detection times;
[0019] The second coordinate information whose absolute value is less than a preset threshold is added to the same group of the coordinate sets corresponding to the same laser emitter, so as to obtain at least two groups of the coordinate sets corresponding to at least two laser emitters respectively.
[0020] Preferably, the movement parameters include the movement distance, the movement trajectory and the movement direction, and the step of determining the gesture type according to the movement parameters includes:
[0021] When the moving distance of each of the laser spots is greater than a preset distance threshold, and the moving direction of each of the laser spots is a preset moving direction, it is determined that the gesture type is a sliding gesture, or,
[0022] When the shape of the movement track is an arc, it is determined that the gesture type is a rotation gesture.
[0023] Preferably, the step of determining the gesture type according to the second coordinate information includes:
[0024] Determining a target area of the laser spot in the display panel according to the second coordinate information;
[0025] The gesture type is determined according to a preset gesture type corresponding to the target area.
[0026] Preferably, the step of determining the gesture type according to the second coordinate information includes:
[0027] Determining a stay time of the laser spot on the display panel according to the second coordinate information of the laser spot detected within a preset time interval;
[0028] The gesture type is determined according to the dwell time.
[0029] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes a laser sensing layer, a memory, a processor, and a laser sensing-based interaction program stored in the memory and executable on the processor, wherein the laser sensing-based interaction program, when executed by the processor, also implements the steps of any of the above-mentioned laser sensing-based interaction methods.
[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a laser sensing-based interaction program is stored. When the laser sensing-based interaction program is executed by a processor, the steps of any of the above-mentioned laser sensing-based interaction methods are implemented.
[0031] An interactive method based on laser sensing, a terminal device and a readable storage medium proposed in an embodiment of the present invention obtain a detected laser spot, determine a gesture type according to the first coordinate information of the laser spot, and determine an interactive instruction according to the gesture type. When a user interacts with the terminal device, the laser spot can be emitted. The terminal device first obtains the laser spot, determines the gesture type according to the position coordinates of the laser spot, and further determines the corresponding interactive instruction according to the gesture type, thereby enriching the interactive mode of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the structure of a terminal device involved in an embodiment of the present invention;
[0033] Figure 2 It is a flow chart of the first embodiment of the interactive method based on laser sensing of the present invention;
[0034] Figure 3 It is a flow chart of a second embodiment of the laser sensing-based interactive method of the present invention;
[0035] Figure 4 It is a flow chart of a third embodiment of the laser sensing-based interactive method of the present invention;
[0036] Figure 5 It is a flow chart of a fourth embodiment of the laser sensing-based interactive method of the present invention;
[0037] Figure 6 It is a flowchart of a fifth embodiment of the laser sensing-based interactive method of the present invention;
[0038] Figure 7 It is a flow chart of a sixth embodiment of the laser sensing-based interactive method of the present invention;
[0039] Figure 8 It is a schematic diagram of a display device in a terminal device of the present invention.
[0040] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0041] like Figure 1 As shown, Figure 1 It is a schematic diagram of the structure of a terminal device involved in an embodiment of the present invention.
[0042] The terminal device in the embodiment of the present invention may be a smart TV, a PC, or a terminal device with a display function such as a smart phone, a tablet computer, or a portable computer.
[0043] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a memory 1002, a communication bus 1003, and a laser sensing layer 1004. The communication bus 1003 is used to realize the connection and communication between these components. The memory 1002 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1002 may optionally be a storage device independent of the aforementioned processor 1001.
[0044] Those skilled in the art will understand that Figure 1 The structure of the terminal device shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0045] like Figure 1As shown, the memory 1002 as a computer storage medium may include an operating system and an interactive program of a terminal device.
[0046] exist Figure 1 In the terminal device shown, the processor 1001 can be used to call the interactive program of the terminal device stored in the memory 1002, and perform the following operations:
[0047] Acquire the detected laser spot;
[0048] Determining a gesture type according to the first coordinate information of the laser spot;
[0049] An interaction instruction is determined according to the gesture type.
[0050] Further, the processor 1001 may call an interactive program of the terminal device stored in the memory 1002, and perform the following operations:
[0051] Determine, according to a preset corresponding relationship and the first coordinate information, second coordinate information corresponding to the first coordinate information, wherein the preset corresponding relationship is a corresponding relationship between the first coordinate information and the second coordinate information pre-set in the terminal device, and the second coordinate information is coordinate information of the laser spot in the display panel corresponding to the first coordinate information in the preset corresponding relationship;
[0052] The gesture type is determined according to the second coordinate information.
[0053] Further, the processor 1001 may call an interactive program of the terminal device stored in the memory 1002, and perform the following operations:
[0054] Determine a movement parameter of the laser spot according to the second coordinate information of the laser spot detected within a preset time interval and the detection time, wherein the movement parameter includes at least one of a movement distance, a movement direction, and a movement trajectory;
[0055] The gesture type is determined according to the movement parameter.
[0056] Further, the processor 1001 may call an interactive program of the terminal device stored in the memory 1002, and perform the following operations:
[0057] Grouping is performed according to the second coordinate information corresponding to each of the laser spots and the detection time to obtain at least two sets of coordinate sets, wherein the laser spots corresponding to the second coordinate information in the same set of coordinate sets are all formed by the same laser emitter in the smart glove;
[0058] The movement parameters of the laser spot corresponding to each group of the coordinate sets are determined respectively according to the group of the coordinate sets.
[0059] Further, the processor 1001 may call an interactive program of the terminal device stored in the memory 1002, and perform the following operations:
[0060] Determine the absolute value of the difference between the second coordinate information of adjacent detection times;
[0061] The second coordinate information whose absolute value is less than a preset threshold is added to the same group of the coordinate sets corresponding to the same laser emitter, so as to obtain at least two groups of the coordinate sets corresponding to at least two laser emitters respectively.
[0062] Further, the processor 1001 may call an interactive program of the terminal device stored in the memory 1002, and perform the following operations:
[0063] When the moving distance of each of the laser spots is greater than a preset distance threshold, and the moving direction of each of the laser spots is a preset moving direction, it is determined that the gesture type is a sliding gesture, or,
[0064] When the shape of the movement track is an arc, it is determined that the gesture type is a rotation gesture.
[0065] Further, the processor 1001 may call an interactive program of the terminal device stored in the memory 1002, and perform the following operations:
[0066] Determining a target area of the laser spot in the display panel according to the second coordinate information;
[0067] The gesture type is determined according to a preset gesture type corresponding to the target area.
[0068] Further, the processor 1001 may call an interactive program of the terminal device stored in the memory 1002, and perform the following operations:
[0069] Determining a stay time of the laser spot on the display panel according to the second coordinate information of the laser spot detected within a preset time interval;
[0070] The gesture type is determined according to the dwell time.
[0071] Reference Figure 2 The first embodiment of the present invention provides an interactive method based on laser sensing, the interactive method based on laser sensing is applied to a terminal device, and the interactive method based on laser sensing includes:
[0072] Step S10, obtaining the detected laser spot;
[0073] The terminal device is a hardware device with a computer infrastructure. The computer infrastructure can be described using the von Neumann structure, which includes an arithmetic logic unit, a control circuit, a memory, and input and output devices. The laser spot is a bright area formed by focusing the laser beam on a point.
[0074] In actual application scenarios, the laser sensing-based interaction method in this embodiment can be applied to a terminal device, which includes a display device for displaying content, such as a smart TV, a smart phone, and a computer with a display panel. The user interacts with the terminal device to control the terminal device. In this embodiment, the interaction is realized based on laser sensing. The terminal device includes a laser sensing layer, which can detect the laser spot emitted by the laser emitting device. The laser emitting device can be a laser remote control. The user emits a laser spot through the laser remote control, so that the terminal device detects the laser spot through the laser sensing layer to achieve interaction with the terminal device; in addition, in order to facilitate user operation, the laser emitting device can also be a wearable device, such as a portable laser emitting device worn on the user's wrist or limb. Of course, the display device can also include a display panel. In addition to being used to display content such as videos or pictures, the display panel is also used to display the laser spot detected by the laser sensing layer, so that the user knows the location of the laser spot emitted by the laser emitting device. Specifically, after the user emits a laser beam through a laser emitting device, the laser sensing layer of the terminal device can detect the laser spot. Since the laser spot detected by the laser sensing layer may be invisible light, and during the interaction between the terminal device and the user, the terminal device further realizes interaction through the position of the laser spot on the display panel. Therefore, in order to facilitate the user to observe the position of the laser spot emitted by the laser emitter, and to facilitate the terminal device to determine the gesture type according to the position of the laser spot on the display panel, it is necessary to determine the second coordinate information of the laser spot in the display panel after detecting the laser spot, and then determine the position information of each laser spot in the display panel and the time interval for the laser spot to be displayed in the display panel based on the second coordinate information. Based on the fact that the position information and the display time interval of each laser spot are different, the gesture type can be further determined in combination with the position information and the display time interval, and the interactive operation can be further determined based on the gesture type.
[0075] In addition, the above-mentioned laser sensing layer is a sensor that can detect lasers. The laser sensing layer can be composed of M×N photoelectric sensors, such as photoresistors. By encoding each photoelectric sensor, the X-axis coordinate and Y-axis coordinate of each photoelectric sensor are obtained, so that the photoelectric sensor can detect the coordinate information of the light spot; the wearable device is a device worn on the surface of the human body, such as smart gloves, smart watches, smart rings, etc. After wearing the wearable device, the user changes the movement trend of the laser beam emitted by the wearable device by changing the activity state of the limbs, so that the position of the laser spot formed by the laser beam on the laser sensing layer of the terminal device moves accordingly, so that the terminal device can further obtain the first coordinate information; the laser emitting device is a device that can emit a laser beam, such as various wearable devices including a laser emitter.
[0076] The display device in this embodiment is as follows Figure 8 As shown, 10 is a laser spot, 20 is a display panel, and 30 is a laser sensing layer. In one scenario, a user emits a laser beam through a laser emitting device to form three laser spots 10 on the display device, wherein the size of the display panel 20 and the laser sensing layer 30 may be the same or different.
[0077] Step S20, determining the gesture type according to the first coordinate information of the laser spot;
[0078] The first coordinate information is the coordinate information of the laser spot in the display device of the terminal equipment. Specifically, the first coordinate information can be the coordinate information in the display panel or the coordinate information in the laser sensing layer. The gesture type is the type of activity state of the human hand. In addition, the gesture type can also be extended to the type of activity state of the wrist or arm. The gesture type includes rotation, opening and closing, movement and other types of fingers. Those skilled in the art can understand that the gesture type can be flexibly set according to actual needs based on the various activity states of the hand.
[0079] After detecting the laser spot, the terminal device determines the first coordinate information of the laser spot, and then determines the gesture type according to the first coordinate information. The principle of determining the gesture type according to the first coordinate information is to associate the change trend with the gesture type by counting and analyzing the change trend of the first coordinate information corresponding to a certain gesture type, so that the corresponding gesture type can be obtained after obtaining the first coordinate information. In addition, the first coordinate information can be converted to obtain the second coordinate information, and the gesture type can be determined by the second coordinate information. For example, when the first coordinate information is set as the coordinate information of the laser spot in the laser sensing layer, the second coordinate information can be set as the coordinate information of the laser spot corresponding to the display panel. Furthermore, the second coordinate information can also be the coordinate information of a pixel point or a group of pixel points in the display panel corresponding to the laser spot. For example, when the user moves three laser emitters from left to right at the same time, the gesture type at this time can be set as a translation gesture. The terminal device detects that the first coordinate information is three, and the three coordinate points have a change trend of moving from left to right at the same time. Based on this, the terminal device can correspond the change trend of the three first coordinate information moving from left to right at the same time to the translation gesture.
[0080] In practical applications, when the gesture type is determined by the coordinate information in the display panel, there is no need to repeatedly develop the underlying framework. Therefore, in order to improve efficiency, it is preferred to use the coordinate information in the display panel as the first coordinate information to determine the gesture type.
[0081] Step S30: determining an interaction instruction according to the gesture type.
[0082] An interactive instruction is a computer instruction used to implement user interactive behaviors and control the operating status of the terminal device, such as the status of displaying content and playing audio.
[0083] After the terminal device determines the gesture type, it can determine the interaction instruction. In order to determine the interaction instruction, the correspondence between the gesture type and the interaction instruction can be established in advance, and the interaction instruction corresponding to the gesture type can be determined based on this correspondence. The correspondence between the gesture type and the interaction instruction can be set according to actual needs and is not limited here. For example, when setting the gesture type and the interaction instruction, in order to better meet the user's habits for human-computer interaction, the hand translation gesture can be set as the interaction instruction for the state switching of the terminal device. The state switching can be the switching of the display state of the terminal device, that is, switching the currently displayed interface A to interface B, or the switching of the state of the terminal device playing music, such as switching from the currently playing music to the next music.
[0084] In this embodiment, by acquiring the detected laser spot, determining the gesture type according to the first coordinate information of the laser spot, and determining the interaction instruction according to the gesture type, the user can emit a laser spot when interacting with the terminal device. The terminal device first acquires the laser spot and determines the gesture type according to the position coordinates of the laser spot, and further determines the corresponding interaction instruction according to the gesture type, thereby enriching the interaction method of the terminal device.
[0085] Reference Figure 3 The second embodiment of the present invention provides an interactive method based on laser sensing. Figure 2 In the first embodiment shown, the laser spot is formed by irradiating a laser beam emitted by a laser emitting device onto a laser sensing layer of the terminal device, the first coordinate information is the coordinate information of the laser spot in the laser sensing layer, and the step of determining the gesture type according to the first coordinate information of the laser spot includes:
[0086] Step S21, determining second coordinate information corresponding to the first coordinate information according to a preset corresponding relationship and the first coordinate information, wherein the preset corresponding relationship is a corresponding relationship between the first coordinate information and the second coordinate information pre-set in the terminal device, and the second coordinate information is coordinate information of the laser spot in the display panel corresponding to the first coordinate information in the preset corresponding relationship;
[0087] In this embodiment, the first coordinate information is the coordinate information of the laser spot in the laser sensing layer, and the second coordinate information is the coordinate information of the laser spot in the display panel corresponding to the first coordinate information in a preset relationship.
[0088] When the terminal device detects the laser spot, it detects through the laser sensing layer. What is detected at this time is the first coordinate information of the laser spot in the laser sensing layer. Since the size of the laser spot is affected by many factors, such as laser mode, diffraction, spherical aberration and other factors, the area of the laser spot may cover more than one photoelectric sensor. Since each photoelectric sensor corresponds to a coordinate point, the coordinates of the laser spot do not directly correspond to the coordinates of a certain photoelectric sensor. At this time, the coordinates of one of the photoelectric sensors corresponding to the laser spot can be determined as the first coordinate information. For example, the coordinates of the photoelectric sensor at the center of the coverage are selected as the first coordinate information. After obtaining the first coordinate information, the first coordinate information needs to be converted into second coordinate information.
[0089] Step S22: determining the gesture type according to the second coordinate information.
[0090] After obtaining the first coordinate information, it is also necessary to convert the first coordinate information into the second coordinate information. The conversion method is to convert according to a preset corresponding relationship. The preset corresponding relationship is the corresponding relationship between the first coordinate information and the second coordinate information pre-set in the terminal device. When converting, the terminal device converts the detected first coordinate information into the coordinates of the pixel points in the display panel, that is, the second coordinate information, through a field programmable gate array (Field Programmable Gate Array, abbreviated as FPGA); the terminal device can determine the number of pixels according to the current resolution of the display panel, and can establish a coordinate system based on pixel points, corresponding each pixel point to a coordinate point, and establish a mapping relationship between each first coordinate information and the coordinate information of a pixel point or a group of pixel points, so that each first coordinate information has the corresponding second coordinate information of the pixel point, thereby obtaining the preset mapping relationship. After obtaining the second coordinate information, the change trend of the laser spot is determined according to the second coordinate information, so as to further determine the gesture type. After being converted into the second coordinate information, it can be further implemented in combination with the underlying framework in the actual application process, which is more efficient than directly determining the gesture type through the first coordinate information.
[0091] In this embodiment, by determining the first coordinate information of the laser spot in the laser sensing layer, the second coordinate information is determined according to the preset correspondence and the first coordinate information, so that the gesture type can be determined according to the second coordinate information. After conversion to the second coordinate information, it can be further implemented in combination with the underlying framework during actual application, which is more efficient than directly determining the gesture type through the first coordinate information.
[0092] Reference Figure 4 The third embodiment of the present invention provides an interactive method based on laser sensing. Figure 3 In the second embodiment shown, step S22 includes:
[0093] Step S221, determining a movement parameter of the laser spot according to the second coordinate information of the laser spot detected within a preset time interval and the detection time, wherein the movement parameter includes at least one of a movement distance, a movement direction, and a movement trajectory;
[0094] The preset time interval is a parameter pre-set and stored in the terminal device for describing the length of a period of time. The detection time is the time when the terminal device detects the laser spot through the laser sensing layer. The moving parameter is a parameter used to describe the movement state of the laser spot on the display device. The moving parameter includes at least one of the moving distance, the moving direction and the moving trajectory. The moving distance is the distance between any two second coordinate information. For example, the moving distance can be calculated based on the second coordinate information of the starting time and the second coordinate information of the ending time within the preset time period. The moving direction is the direction from the second coordinate information of the starting time within the preset time period to the second coordinate information of the ending time. The moving direction can also be the direction from the second coordinate information of the starting time to the second coordinate information of any other detection time. The moving trajectory refers to the trajectory formed by the second coordinate information of different detection times within the preset time period.
[0095] When the terminal device determines the gesture type, it indirectly infers the gesture type through the changing trend of the laser spot. The implementation method is to obtain the second coordinate information detected within a preset time interval and the detection time of the laser spot corresponding to each second coordinate information; when there is only one laser spot at the same detection time, the terminal device only obtains one second coordinate information at the same detection time, and the movement parameters can be obtained by statistically analyzing the second coordinate information of multiple detection times within the preset time period.
[0096] Step S222: determining the gesture type according to the movement parameter.
[0097] The terminal device counts and records the rules of the movement parameters corresponding to each gesture type in advance, so that after obtaining the movement parameters, it can determine whether the movement parameters belong to a certain rule and further determine whether the movement parameters correspond to a certain gesture. For example, when the laser transmitter is a wearable device smart glove, the laser transmitter can be connected to the finger receiving sleeve of the smart glove, so that the laser beam moves with the movement of the finger. If the user emits a laser beam through a laser transmitter and makes the laser beam draw a closed figure on the laser sensor, then the gesture type can be regarded as a rotation gesture. In addition, the closed figure drawn by the user may not be an accurate closed figure, that is, the movement trajectory drawn by the second coordinate information is not a closed figure. At this time, it can be further determined whether the closed figure is within the error range. If it is within the error range, it is still determined as a closed figure. It can be determined based on whether the distance between the second coordinate information at the start time and the second coordinate information at the end time is within the error distance range. If it is within the error distance range, it can be determined that the closed figure is within the error range.
[0098] In this embodiment, the movement parameters of the laser spot are determined according to the second coordinate information of the laser spot detected within a preset time interval and the detection time, and the gesture type is determined according to the movement parameters, so that the user's gesture can be flexibly determined according to the movement parameters.
[0099] Reference Figure 5 The fourth embodiment of the present invention provides an interactive method based on laser sensing. Figure 4 In the third embodiment shown, step S221 includes:
[0100] Step S2211, grouping according to the second coordinate information corresponding to each of the laser spots and the detection time to obtain at least two sets of coordinate sets, wherein the laser spots corresponding to the second coordinate information in the same set of coordinate sets are all formed by the same laser emitter in the smart glove;
[0101] A coordinate set is a set of coordinates consisting of second coordinate information corresponding to the same laser emitter, and a set of coordinate sets is used to indicate the distribution state of the position of the laser spot of a laser emitter at different times.
[0102] When the terminal device interacts with the user, in order to enrich the interaction methods, this implementation adopts multi-point interaction and realizes multi-point interaction between the terminal device and the user through smart gloves. Multi-point interaction means that the smart gloves emit more than two laser beams at the same time, and the number of laser spots formed by the laser beams simultaneously irradiating the surface of the laser sensing layer is more than two. At this time, the terminal device detects at least two second coordinate information within the preset time period, and because the laser beam tends to move within the preset time period, the number of second coordinate information actually obtained is generally greater than two. In this case, the terminal device needs to determine the laser spot corresponding to each second coordinate information, so as to achieve the effect of determining the gesture type according to different movement parameters of the laser spot.
[0103] In this embodiment, the laser emitting device is a smart glove, which includes at least two laser emitters, and the laser emitters are connected to the finger-holding sleeves of the smart glove. In order to realize that different fingers control different laser beams to realize multi-point interaction, each finger-holding sleeve can be connected to at least one laser emitter as much as possible, and the laser beam emitted by each laser emitter irradiates the surface of the laser sensing layer to form a laser spot. In order to classify the first coordinate information of the same laser emitter and distinguish the first coordinate information of each laser emitter in the case of multi-point interaction, it is necessary to group according to the second coordinate information corresponding to each laser spot and the detection time to obtain at least two sets of coordinate sets, each set of coordinate sets is composed of the second coordinate information of the laser spot formed by the same laser emitter.
[0104] In order to realize the grouping of the second coordinate information, the methods adopted include multiple ones. For example, since the second coordinate information of each two adjacent detection times corresponding to the same laser spot is also adjacent to each other when it moves, based on this feature, the absolute value of the difference between the second coordinate information corresponding to the adjacent detection times can be determined; the second coordinate information with an absolute value less than a preset threshold is added to the same group of coordinate sets corresponding to the same laser emitter, so as to obtain at least two groups of coordinate sets corresponding to at least two laser emitters respectively; in addition, the second coordinate information of different detection times can be connected, and whether it is the same coordinate set can be determined according to the regularity of the connected curve. For the curve formed by the second coordinate information of the same laser spot, the curve is often regular, while for the curve formed by the second coordinate information of different laser spots, the curve often has irregular mutations. Based on this feature, an algorithm can be further designed to determine each group of coordinate sets.
[0105] Step S2212: Determine the movement parameters of the laser spot corresponding to each group of the coordinate sets according to the group of the coordinate sets.
[0106] After obtaining more than two sets of coordinate sets, the movement parameters of the laser spot corresponding to each set of coordinate sets are determined respectively, and the gesture type of the multi-point interaction is determined according to the movement parameters of each laser spot.
[0107] When determining the gesture type according to the movement parameters of each laser spot, the gesture type corresponding to different movement parameters can be determined according to actual needs. For example, by judging whether the movement distance of the laser spot is greater than a preset distance threshold and whether the movement direction is a preset movement direction, and when the movement distance of each laser spot is greater than the preset distance threshold and the movement direction of each laser spot is the preset movement direction, it is determined that the gesture type is a sliding gesture, wherein the preset distance threshold is a pre-set distance value for judging whether the gesture type is a sliding gesture, and the average value of the movement distance when the user's gesture is a sliding gesture can be determined in advance, and the average value is set as the preset distance threshold. From the threshold, the preset moving direction is moving from left to right, from right to left, from top to bottom or from bottom to top; or, the moving trajectory can be used to determine whether the gesture type is a rotation gesture, wherein, when the shape of the moving trajectory is an arc, the gesture type can be determined to be a rotation gesture; or, a first distance between two sets of coordinates at the starting detection time and a second distance between the two sets of coordinates at the ending detection time in two sets of coordinate sets can be calculated to determine whether the gesture type is an opening and closing gesture or a closing gesture, wherein, when the second distance is greater than the first distance, the gesture type is an opening and closing gesture, and when the second distance is less than the first distance, the gesture type is a closing gesture.
[0108] In this embodiment, each laser spot is grouped according to the second coordinate information and the detection time corresponding to it, to obtain at least two sets of coordinate sets, and the movement parameters of the laser spot formed by each laser emitter are determined according to each set of coordinates. Therefore, in the case of multi-point interaction, the gesture type can be determined according to the movement parameters of each laser spot, making the air interaction method more flexible and richer.
[0109] Reference Figure 6 The fifth embodiment of the present invention provides an interactive method based on laser sensing. Figure 3 In the second embodiment shown, step S22 includes:
[0110] Step S223, determining a target area of the laser spot in the display panel according to the second coordinate information;
[0111] The target area is a portion of the display area in the display panel that is preset and corresponds to a specific gesture type. The target area is, for example, an area at four intersections of the display edge of the display panel.
[0112] When the terminal device determines the gesture type according to the second coordinate information, it can further determine the target area of the laser spot in the display panel. Specifically, the area composed of m*n pixels at the junction can be set as the target area, and the coordinate value of each pixel in the target area can be determined. When determining the target area where the second coordinate information is located, it is determined whether the second coordinate information is the coordinate value of the pixel in a certain target area to further determine the target area where the second coordinate information is located. In order to prevent misoperation, only part of the display panel can be set as the target area, so that when the second coordinate information is in an area outside the target area, the terminal device will not trigger the determination of the gesture type, and thus will not trigger the interaction instruction.
[0113] Step S224: determining the gesture type according to the preset gesture type corresponding to the target area.
[0114] The preset gesture type is a gesture type that is pre-set and associated with a target area. The preset gesture type can be set to a gesture type that is commonly used by the user. For example, the preset gesture type of a target area can be set to a sliding gesture, and the gesture type can be further determined to be a sliding gesture. When the terminal device determines that the gesture type is a sliding gesture, it can determine that the interaction instruction is a sliding instruction. At this time, the page of the terminal device can be slid up and down or left and right according to the sliding instruction to switch the content of the screen displayed on the display panel.
[0115] In addition, the target area may also correspond to a plurality of preset gesture types. In this case, the terminal device may determine that a preset gesture type is the required gesture type according to the number of laser spots.
[0116] In this embodiment, the target area of the laser cursor in the display panel is determined according to the second coordinate information, and the gesture type is determined according to the preset gesture type corresponding to the target area. Thus, the corresponding preset gesture type can be determined only based on the target area of the laser spot in the display panel, and the gesture type can be further determined to enrich the interaction method.
[0117] Reference Figure 7 The sixth embodiment of the present invention provides an interactive method based on laser sensing. Figure 2 In the first embodiment shown, step S22 includes:
[0118] Step S225, determining the length of time the laser spot stays on the display panel according to the second coordinate information of the laser spot detected within a preset time interval;
[0119] The dwell time is the length of time that the laser spot is in a specific dwell state, and the dwell state refers to a state in which the second coordinate information of the laser spot is in a specific coordinate range.
[0120] When determining the gesture type, the terminal device can also determine the gesture type based on the length of time the laser spot stays on the display panel, wherein first, it is necessary to determine the length of time the laser spot stays on the display panel. The method adopted is to obtain the second coordinate information of the laser spot detected within a preset time interval, and determine whether the current laser spot is in a stay state based on the second coordinate information. When the laser spot is in a stay state, the length of time the laser spot is in the stay state is recorded as the stay time.
[0121] Step S226: Determine the gesture type according to the dwell time.
[0122] After determining the dwell time, the gesture type is determined based on the dwell time, wherein when the dwell time is greater than the preset dwell time, the gesture type is determined as a hover gesture; in addition, when there are multiple preset gesture types, after determining that the gesture type is a hover gesture, multiple different levels of hover gestures can be further determined based on the length of the hovering time.
[0123] After determining that the gesture type is a hover type, the interaction instruction corresponding to the hover type gesture type can be further determined. For example, the interaction instruction can be determined as a selection instruction or a trigger instruction for a secondary menu. When the interaction instruction is determined as a selection instruction, the corresponding interface element in the display panel can be selected. Interface elements such as application icons can be selected. At this time, the application can be opened and jumped to the application page. When the interaction instruction is a trigger instruction for a secondary menu, a list of secondary menus can be displayed, and the corresponding functions can be displayed in the list.
[0124] In this embodiment, the residence time of the laser spot on the display panel is determined according to the second coordinate information of the laser spot detected at a preset time interval, and the gesture type is determined according to the residence time, thereby enriching the interaction mode of the terminal device.
[0125] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0126] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0127] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a terminal device (which can be a smart TV, mobile phone, computer, etc.) to execute the methods described in each embodiment of the present invention.
[0128] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. An interactive method based on laser sensing, It is characterized in that The laser sensing-based interaction method is applied to a terminal device, and the laser sensing-based interaction method includes: Acquire a detected laser spot, where the laser spot is formed by a laser beam emitted by a laser emitting device irradiating a laser sensing layer of the terminal device, where the laser emitting device is a smart glove, and the smart glove comprises at least two laser emitters, and the laser beam emitted by each laser emitter irradiates the laser sensing layer to form a laser spot, and the laser sensing layer comprises M*N photoelectric sensors; Determine, according to a preset corresponding relationship and first coordinate information, second coordinate information corresponding to the first coordinate information, the first coordinate information being coordinate information of the laser spot in the laser sensing layer, the preset corresponding relationship being a corresponding relationship between the first coordinate information and the second coordinate information pre-set in the terminal device, and the second coordinate information being coordinate information of the laser spot in the display panel corresponding to the first coordinate information in the preset corresponding relationship; Determine, according to the second coordinate information of the laser spot detected within a preset time interval and the detection time, an absolute value of the difference between the second coordinate information adjacent to the detection time; Adding the second coordinate information whose absolute value is less than a preset threshold to the same set of coordinates corresponding to the same laser emitter, so as to obtain at least two sets of coordinates corresponding to at least two laser emitters, respectively, wherein the laser spots corresponding to each second coordinate information in the same set of coordinates are formed by the same laser emitter in the smart glove; Determine, according to each group of the coordinate sets, a movement parameter of the laser spot corresponding to the group of the coordinate sets, wherein the movement parameter includes at least one of a movement distance, a movement direction, and a movement trajectory; Determine a target area of the laser spot in the display panel according to the second coordinate information, wherein the target area is a display area corresponding to a preset gesture type in the display panel; Determining the gesture type according to a preset gesture type corresponding to the target area or the movement parameter; An interaction instruction is determined according to the gesture type.
2. The laser sensing-based interactive method according to claim 1, It is characterized in that The step of determining the gesture type according to the preset gesture type corresponding to the target area or the movement parameter comprises: When the moving distance of each of the laser spots is greater than a preset distance threshold and the moving direction of each of the laser spots is a preset moving direction, the gesture type is determined to be a sliding gesture, or, when the shape of the moving trajectory is an arc, the gesture type is determined to be a rotation gesture.
3. The laser sensing-based interactive method according to claim 1, It is characterized in that The step of determining the gesture type according to the preset gesture type corresponding to the target area or the movement parameter comprises: Determining a stay time of the laser spot on the display panel according to the second coordinate information of the laser spot detected within a preset time interval; The gesture type is determined according to the dwell time.
4. A terminal device, It is characterized in that The terminal device includes a laser sensing layer, a memory, a processor, and a laser sensing-based interaction program stored in the memory and executable on the processor. When the laser sensing-based interaction program is executed by the processor, the steps of the laser sensing-based interaction method as described in any one of claims 1 to 3 are also implemented.
5. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a laser-sensing-based interactive program, and when the laser-sensing-based interactive program is executed by a processor, the steps of the laser-sensing-based interactive method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Man-computer interaction remote control device and method for intelligent television and touch control screen
CN103702151A
Non-contact screen interaction method and system
CN104166509A
