Instruction determination method, device, storage medium and electronic device
By wearing electronic tags to obtain human position information and generate control instructions, the problem of inconvenient operation of electronic devices is solved and a more convenient user experience is achieved.
Patent Information
- Application Number
- CN202110997382.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-27
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2041-08-27
AI Technical Summary
In the operation of electronic devices, users need to perform virtual control on a fixed-sized screen, resulting in inconvenient operation.
By wearing multiple electronic tags, the position information of the human body is obtained, the target posture information is determined, and the control instructions are generated based on the information to realize the operation of the device.
It improves the convenience of user operations, enables users to perform corresponding operations through posture control devices, and avoids inconvenience in screen operation.
Smart Images

Figure CN113741785B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electronic technology, and in particular, relates to an instruction determination method, device, storage medium and electronic device. Background Art
[0002] With the development of artificial intelligence, computer software and hardware technology, electronic devices such as smart home appliances or smart phones have achieved rapid development. In the related art, users are usually required to touch the virtual control buttons on the screen of electronic devices such as smart phones, so that the electronic devices generate corresponding instructions to control smart home appliances or smart phones and other electronic devices to perform corresponding operations. However, the above method requires users to operate on a screen of fixed size, which is inconvenient for users to operate. Summary of the invention
[0003] The embodiments of the present application provide an instruction determination method, device, storage medium, and electronic device, which can make user operation more convenient.
[0004] In a first aspect, an embodiment of the present application provides an instruction determination method, including:
[0005] Acquiring location information of a plurality of electronic tags corresponding to a human body;
[0006] Determining target posture information of the human body according to the position information of the plurality of electronic tags;
[0007] According to the target posture information, a target control instruction for instructing the target device to perform a corresponding operation is determined.
[0008] In a second aspect, an embodiment of the present application provides an instruction determination device, including:
[0009] An acquisition module, used to acquire location information of a plurality of electronic tags corresponding to a human body;
[0010] A first determining module, used for determining target posture information of the human body according to position information of a plurality of electronic tags;
[0011] The second determining module is used to determine a target control instruction for instructing the target device to perform a corresponding operation according to the target posture information.
[0012] In a third aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the instruction determination method provided by the embodiment of the present application.
[0013] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the processor is used to execute the instruction determination method provided in an embodiment of the present application by calling a computer program stored in the memory.
[0014] In an embodiment of the present application, the electronic device can obtain the location information of multiple electronic tags corresponding to the human body; determine the target posture information of the human body based on the location information of the multiple electronic tags; and determine the target control instruction for instructing the target device to perform the corresponding operation based on the target posture information. That is, the user can obtain the target control instruction for instructing the target device to perform the corresponding operation by wearing multiple electronic tags and making corresponding postures. Compared with the solution of operating on a screen of fixed size to obtain the instruction to control the target device to perform the corresponding operation, the user operation is more convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The technical solution and beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.
[0016] Figure 1 This is a first flow chart of the instruction determination method provided in the embodiment of the present application.
[0017] Figure 2 This is a second flow chart of the instruction determination method provided in an embodiment of the present application.
[0018] Figure 3 It is a schematic diagram of the interaction among the electronic tag, base station and PC provided in the embodiment of the present application.
[0019] Figure 4 It is a structural diagram of the instruction determination device provided in an embodiment of the present application.
[0020] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] Please refer to the drawings, where the same component symbols represent the same components. The principle of the present application is illustrated by implementing it in an appropriate computing environment. The following description is based on the illustrated specific embodiments of the present application, which should not be considered as limiting other specific embodiments of the present application that are not described in detail herein.
[0022] It is understandable that the execution subject of the embodiments of the present application may be a smart phone or a tablet computer, for example.
[0023] See also Figure 1 , Figure 1 This is a schematic diagram of a first flow chart of the instruction determination method provided in an embodiment of the present application. The flow chart may include:
[0024] 101. Obtain location information of multiple electronic tags corresponding to a human body.
[0025] The electronic tag may include a positioning tag, such as a UWB positioning tag.
[0026] In an embodiment of the present application, the location information of multiple electronic tags corresponding to the human body can be obtained in real time. Alternatively, the location information of multiple electronic tags corresponding to the human body can be obtained at preset time intervals. The preset time can be set according to actual conditions and is not specifically limited here. For example, the preset time can be 1 second, 5 seconds, etc. The location information of multiple electronic tags corresponding to the human body is the location information of multiple electronic tags when they are worn by the user.
[0027] 102. Determine target posture information of a human body according to position information of a plurality of electronic tags.
[0028] For example, after obtaining the position information of multiple electronic tags corresponding to the human body, the target posture information of the human body can be determined according to the position information of the multiple electronic tags. The target posture information may include human posture, such as hand gestures, human postures making corresponding actions, etc.
[0029] 103. Determine, according to the target posture information, a target control instruction for instructing the target device to perform a corresponding operation.
[0030] For example, after the target posture information is determined, a target control instruction for instructing the target device to perform a corresponding operation may be determined according to the target posture information.
[0031] For example, taking the target gesture as the target posture information, the mapping relationship between the gesture and the control instruction can be pre-set as the preset mapping relationship between the gesture and the control instruction. After the target gesture is obtained, the control instruction corresponding to the target gesture can be determined according to the target gesture and the preset mapping relationship, and the control instruction is determined as the target control instruction for instructing the target device to perform the corresponding operation.
[0032] In an embodiment of the present application, position information of multiple electronic tags corresponding to the human body can be obtained; based on the position information of the multiple electronic tags, the target posture information of the human body can be determined; based on the target posture information, the target control instruction for instructing the target device to perform the corresponding operation can be determined. That is, the user can obtain the target control instruction for instructing the target device to perform the corresponding operation by wearing multiple electronic tags and making corresponding postures. Compared with the solution of operating on a screen of a fixed size to obtain the instruction to control the target device to perform the corresponding operation, the user operation is more convenient.
[0033] In some embodiments, when it is necessary to control the target device to perform a corresponding operation, the user can wear the multiple electronic tags on the corresponding parts of the user with the help of objects such as gloves or rings, and make corresponding gestures. When the user makes the corresponding gesture, the position information of the multiple electronic tags corresponding to the human body can be obtained, so that the user's posture can be obtained according to the position information of the multiple electronic tags, and then according to the posture, the target control instruction for instructing the target device to perform the corresponding operation is determined. The corresponding parts may include human parts such as fingers, arms, legs or toes. The number of multiple electronic tags can be determined according to actual conditions.
[0034] Taking gestures as an example, the user can wear an electronic tag on each finger with the help of gloves or rings, and make corresponding gestures, such as victory gestures, fist gestures, or five fingers stretched upward gestures, etc. The position information of multiple electronic tags when the user makes the corresponding gestures can be obtained to obtain the position information of multiple electronic tags corresponding to the human body, and then the user's gesture is obtained according to the position information of the multiple electronic tags, and then the target control instruction for instructing the target device to perform the corresponding operation is determined according to the gesture.
[0035] In some embodiments, obtaining location information of multiple electronic tags corresponding to a human body may include:
[0036] (1) obtaining a distance between each of a plurality of electronic tags corresponding to the human body and each of a plurality of base stations, and obtaining a plurality of first distances corresponding to each electronic tag;
[0037] (2) Determine the location information of each electronic tag according to the multiple first distances corresponding to each electronic tag, and obtain the location information of the multiple electronic tags.
[0038] The number of base stations may be set according to actual conditions. For example, the number of base stations may be 3 or more.
[0039] For example, taking the case where multiple base stations include base stations B1, B2, B3 and B4, and multiple electronic tags corresponding to the human body include electronic tags T1 and T2, the multiple first distances corresponding to the electronic tag T1 include the distance between the base station B1 and the electronic tag T1, the distance between the base station B2 and the electronic tag T1, the distance between the base station B3 and the electronic tag T1, and the distance between the base station B4 and the electronic tag T1; the multiple first distances corresponding to the electronic tag T2 include the distance between the base station B1 and the electronic tag T2, the distance between the base station B2 and the electronic tag T2, the distance between the base station B3 and the electronic tag T2, and the distance between the base station B4 and the electronic tag T2.
[0040] For example, taking the base station as a UWB positioning base station and the electronic tag as a UWB positioning tag as an example, a UWB positioning base station can be pre-arranged at the four corners of the roof of the corresponding room. Each UWB positioning tag can send a UWB signal to the outside at preset intervals or in real time. When each UWB positioning base station receives the UWB signal sent by each UWB positioning tag, each UWB positioning base station can determine its own distance from each electronic tag based on the sending time of the UWB signal sent by each UWB positioning tag and the receiving time of the UWB signal sent by each UWB positioning tag and the transmission speed of the UWB signal. Among them, the transmission speed of the UWB signal is usually the speed of light. The setting location of the UWB positioning base station is within the wireless coverage range of the UWB positioning tag.
[0041] In some embodiments, each UWB positioning tag may be provided with a temperature sensor, and each UWB positioning tag detects whether it is worn by the user through the temperature detected by the temperature sensor; if it is detected that it is worn by the user, a UWB signal may be sent to the outside, so that each UWB positioning base station determines its distance from each UWB positioning tag based on the UWB signal. If it is detected that it is not worn by the user, it may not be processed. Among them, when the temperature detected by the temperature sensor is greater than or equal to the preset temperature, it is determined that the UWB positioning tag is worn by the user; when the temperature detected by the temperature sensor is less than the preset temperature, it is determined that the UWB positioning tag is not worn by the user. The preset temperature can be set according to the actual situation, and no specific restrictions are made here.
[0042] In some embodiments, each UWB positioning tag may be provided with a distance sensor, and each UWB positioning tag detects whether it is worn by the user through the distance between it and external obstacles detected by the distance sensor; if it is detected that it is worn by the user, it may send a UWB signal to the outside, so that each UWB positioning base station determines the distance between it and each UWB positioning tag based on the UWB signal. If it is detected that it is not worn by the user, it may not be processed. Among them, when the distance detected by the distance sensor is less than or equal to the preset distance, it is determined that the UWB positioning tag is worn by the user; when the distance detected by the distance sensor is greater than the preset distance, it is determined that the UWB positioning tag is not worn by the user. The preset distance can be set according to the actual situation, and no specific restrictions are made here.
[0043] In some embodiments, each UWB positioning tag may be provided with a temperature sensor and a distance sensor. Each UWB positioning tag may determine whether it is worn by the user based on the temperature detected by the temperature sensor and the distance detected by the distance sensor from external obstacles; if it is detected that it is worn by the user, a UWB signal may be sent to the outside, so that each UWB positioning base station determines its distance from each UWB positioning tag based on the UWB signal. If it is detected that it is not worn by the user, it may not be processed. Among them, when the temperature detected by the temperature sensor is greater than or equal to the preset temperature, and the distance detected by the distance sensor is less than or equal to the preset distance, it is determined that the UWB positioning tag is worn by the user; when the temperature detected by the temperature sensor is less than the preset temperature, and the distance detected by the distance sensor is greater than the preset distance, it is determined that the UWB positioning tag is not worn by the user. The preset temperature and preset distance can be set according to the actual situation, and no specific restrictions are made here.
[0044] For example, taking the UWB positioning base station B1 determining the distance between it and the UWB positioning tag T1 as an example, the UWB positioning tag T1 can send a UWB signal to the outside. After the UWB positioning base station B1 receives the UWB signal, the UWB positioning base station B1 can determine the distance between the UWB positioning base station B1 and the UWB positioning tag T1 based on the sending time, receiving time and transmission speed of the UWB signal.
[0045] After obtaining a plurality of first distances corresponding to each electronic tag, the location information of each electronic tag may be determined according to the plurality of first distances corresponding to each electronic tag, thereby obtaining the location information of the plurality of electronic tags.
[0046] In some embodiments, determining the location information of each electronic tag according to the multiple first distances corresponding to each electronic tag may include:
[0047] (1) determining a difference between any two first distances among a plurality of first distances corresponding to each electronic tag, to obtain a plurality of distance differences corresponding to each electronic tag;
[0048] (2) Determine the location information of each electronic tag based on the multiple distance differences corresponding to each electronic tag.
[0049] For example, after obtaining a plurality of first distances corresponding to each electronic tag, the difference between two corresponding first distances among the plurality of first distances corresponding to each electronic tag may be determined to obtain a plurality of distance differences corresponding to each electronic tag.
[0050] For example, when the multiple electronic tags include electronic tags T1, T2, T3, T4 and T5, for the electronic tag T1, it is assumed that the multiple first distances corresponding to the electronic tag T1 are d1, d2, d3 and d4, where d1 is the distance between the electronic tag T1 and the base station B1, d2 is the distance between the electronic tag T1 and the base station B2, d3 is the distance between the electronic tag T1 and the base station B3, and d4 is the distance between the electronic tag T1 and the base station B4. The difference between d1 and d2 can be calculated to obtain the distance difference S corresponding to the electronic tag T1. 12 , and the difference between d2 and d3 can be calculated to obtain the distance difference S corresponding to the electronic tag T1 23 , and the difference between d3 and d4 can be calculated to obtain the distance difference S corresponding to the electronic tag T1 34 , and the difference between d4 and d1 can be calculated to obtain the distance difference S corresponding to the electronic tag T1 41 , thereby obtaining multiple distance differences corresponding to the electronic tag T1. Similarly, multiple distance differences corresponding to the electronic tag T2, multiple distance differences corresponding to the electronic tag T3, multiple distance differences corresponding to the electronic tag T4, and multiple distance differences corresponding to the electronic tag T5 can also be obtained in the above manner.
[0051] After the multiple distance differences corresponding to each electronic tag are obtained, the location information of each electronic tag can be determined according to the multiple distance differences corresponding to each electronic tag.
[0052] In some embodiments, determining the location information of each electronic tag according to the multiple distance differences corresponding to each electronic tag may include:
[0053] (1) Obtaining location information of each base station to obtain multiple location information;
[0054] (2) Determine the location information of each electronic tag based on the multiple location information and the multiple distance differences corresponding to each electronic tag.
[0055] For example, the location information of each base station may be acquired to obtain a plurality of location information; then, the location information of each electronic tag may be determined according to the plurality of location information and a plurality of distance differences corresponding to each electronic tag.
[0056] For example, the location information of each base station may include the coordinates of each base station in a preset spatial rectangular coordinate system. The location information of each electronic tag may also include the coordinates of each electronic tag in the preset spatial rectangular coordinate system. Assuming that the multiple base stations include base stations B1, B2, B3 and B4, the coordinates of each electronic tag can be obtained by formula (1). Among them, the preset spatial rectangular coordinate system can be set according to actual conditions and is not specifically limited here.
[0057]
[0058] Among them, S 12 represents the difference between the distance between electronic tag Ti and base station B1 and the distance between electronic tag Ti and base station B2, S 23 represents the difference between the distance between electronic tag Ti and base station B2 and the distance between electronic tag Ti and base station B3, S 34 represents the difference between the distance between electronic tag Ti and base station B3 and the distance between electronic tag Ti and base station B4, S 41 represents the difference between the distance between the electronic tag Ti and the base station B4 and the distance between the electronic tag Ti and the base station B1, (x1, y1, z1) represents the coordinates of the base station B1 in the preset spatial rectangular coordinate system, (x2, y2, z2) represents the coordinates of the base station B2 in the preset spatial rectangular coordinate system, (x3, y3, z3) represents the coordinates of the base station B3 in the preset spatial rectangular coordinate system, (x4, y4, z4) represents the coordinates of the base station B3 in the preset spatial rectangular coordinate system, (x i ,y i , z i ) represents the coordinates of the electronic tag Ti in the preset spatial rectangular coordinate system. Wherein, i is a positive integer from 1 to n, and n is the total number of the multiple electronic tags.
[0059] In some embodiments, determining target posture information of a human body according to position information of a plurality of electronic tags may include:
[0060] (1) determining the distance between any two of the multiple electronic tags according to the location information of the multiple electronic tags, and obtaining a target distance vector, wherein the value of a corresponding element in the target distance vector is the distance between the corresponding two of the multiple electronic tags;
[0061] (2) Determine the target posture information of the human body based on the target distance vector.
[0062] For example, the location information of the electronic tag includes the coordinates of the electronic tag in a preset spatial rectangular coordinate system. The distance between any two electronic tags in the multiple electronic tags can be determined according to the coordinates of any two electronic tags in the multiple electronic tags to obtain multiple distances, which can constitute a target distance vector.
[0063] For example, suppose that the multiple electronic tags include electronic tags T1, T2, and T3, where the coordinates of electronic tag T1 are (1, 2, 3), the coordinates of electronic tag T2 are (1, 3, 4), and the coordinates of electronic tag T3 are (2, 4, 5). Then the distance between electronic tag T1 and electronic tag T2 is The distance between electronic tag T1 and electronic tag T3 is 3, and the distance between electronic tag T2 and electronic tag T3 is Then the target distance vector can be
[0064] After obtaining the target distance vector, the electronic device can determine the target posture information of the human body according to the target distance vector.
[0065] In some embodiments, determining target posture information of a human body according to the target distance vector may include:
[0066] (1) obtaining a plurality of preset distance vectors, wherein each preset distance vector corresponds to a preset posture information;
[0067] (2) determining a matching distance vector that matches the target distance vector from a plurality of preset distance vectors;
[0068] (3) The preset posture information corresponding to the matching distance vector is determined as the target posture information of the human body.
[0069] It can be understood that, assuming that the multiple electronic tags include electronic tags T1, T2 and T3, the dimension of the target distance vector is 3 dimensions, the value of the element of the first dimension represents the distance between the electronic tag T1 and the electronic tag T2, the value of the element of the second dimension represents the distance between the electronic tag T1 and the electronic tag T3, and the value of the element of the third dimension represents the distance between the electronic tag T2 and the electronic tag T3. Then the dimension of each preset distance vector is also 3 dimensions, the value of the element of the first dimension also represents the distance between the electronic tag T1 and the electronic tag T2, the value of the element of the second dimension also represents the distance between the electronic tag T1 and the electronic tag T3, and the value of the element of the third dimension also represents the distance between the electronic tag T2 and the electronic tag T3.
[0070] For example, a preset mapping relationship between a plurality of preset distance vectors and a plurality of preset posture information may be preset, wherein each preset distance vector may correspond to a preset posture information. For example, the preset distance vector V1 corresponds to the preset posture information P1, the preset distance vector V2 corresponds to the preset posture information P2, the preset distance vector V3 corresponds to the preset posture information P3, and so on.
[0071] After obtaining the target distance vector, multiple preset distance vectors can be obtained, and a matching distance vector matching the target distance vector can be determined from the multiple preset distance vectors, and the preset posture information corresponding to the matching distance vector can be determined as the target posture information for instructing the target device to perform the corresponding action.
[0072] For example, suppose the target distance vector is Corresponding to the fist-making gesture, a target control instruction for instructing the target device to perform a corresponding operation can be determined according to the fist-making gesture.
[0073] It can be understood that when there is no distance vector matching the target distance vector among multiple preset distance vectors, the step of obtaining the location information of multiple electronic tags can be returned to until a target distance vector is obtained in which there is a matching distance vector matching it among multiple preset distance vectors, and the preset posture information corresponding to the matching distance vector can be determined as the target posture information for instructing the target device to perform the corresponding action.
[0074] In some embodiments, after determining the target control instruction for instructing the target device to perform the corresponding operation, the target control instruction can be sent to the target device, so that the target device can perform the corresponding operation according to the target control instruction. For example, assuming that the target device is a sweeping robot, the target control instruction is used to instruct the sweeping robot to sweep the floor, then the sweeping robot can start sweeping the floor after receiving the target control instruction.
[0075] In some embodiments, determining a matching distance vector that matches a target distance vector from a plurality of preset distance vectors may include:
[0076] (1) determining the Euclidean distance between each preset distance vector and the target distance vector to obtain a plurality of Euclidean distances;
[0077] (2) determining the minimum Euclidean distance from multiple Euclidean distances;
[0078] (3) When the minimum Euclidean distance is less than or equal to the preset distance, the preset distance vector corresponding to the minimum Euclidean distance is determined as the matching distance vector that matches the target distance vector.
[0079] For example, the Euclidean distance between each preset distance vector and the target distance vector may be determined according to formula (2) to obtain a plurality of Euclidean distances.
[0080]
[0081] Among them, ρ vi represents the Euclidean distance between the target distance vector and the i-th preset distance vector, d vi Represents the value of the i-th dimension element in the target distance vector, d ii represents the value of the i-th dimension element in the i-th preset distance vector, and n represents the dimension of the target distance vector or the preset distance vector. The dimension of the target distance vector is the same as the dimension of the preset distance vector, for example, both are 3-dimensional.
[0082] After obtaining multiple Euclidean distances, it can be determined whether the Euclidean distance is less than or equal to the preset distance. When the Euclidean distance is less than or equal to the preset distance, it can be determined that the target distance vector is relatively similar to a preset distance vector, that is, the target posture information corresponding to the target distance vector is relatively similar to the preset posture information corresponding to a preset distance vector. Then, the preset distance vector corresponding to the smallest Euclidean distance can be determined as a matching distance vector that matches the target distance vector, and the preset posture information corresponding to the matching distance vector is determined as the target posture information, and then the target control instruction for instructing the target device to perform the corresponding operation can be determined based on the target posture information. When the Euclidean distance is greater than the preset distance, it can be determined that the posture information corresponding to the target distance vector is not similar to the preset posture information corresponding to any preset distance vector in the multiple preset distance vectors. Then, the location information of multiple electronic tags can be continuously obtained until a target distance vector whose Euclidean distance to a distance vector in the multiple preset distance vectors is less than or equal to the preset distance is obtained, and the target posture information is determined based on the target distance vector, and the target control instruction for instructing the target device to perform the corresponding operation is determined based on the target posture information.
[0083] In some embodiments, after obtaining the target distance vector, multiple preset distance vectors can be obtained, and then the difference between the value of each element of the target distance vector and the value of the corresponding element of each preset distance vector in the multiple preset distance vectors is calculated to obtain multiple difference values corresponding to each preset distance vector; then, for each preset distance vector, it can be determined whether the multiple difference values corresponding to it are all less than or equal to the preset difference value; then, a preset distance vector whose corresponding multiple difference values are all less than or equal to the preset difference is selected from the multiple preset distance vectors, and the preset posture information corresponding to the preset distance vector is determined as the target posture information. Among them, the preset difference value can be set according to the actual situation, and no specific limitation is made here. For example, in order to improve the accuracy of determining the target posture information and avoid erroneous determination of the target control instruction, the preset difference value can be set to be smaller.
[0084] It can be understood that when there are no corresponding preset distance vectors whose difference values are all less than the preset difference among multiple preset distance vectors, the process can continue to return to obtain the location information of multiple electronic tags until there are corresponding preset distance vectors whose difference values are all less than or equal to the preset difference among multiple preset distance vectors, and the preset posture information corresponding to the preset distance vectors whose difference values are all less than or equal to the preset difference is determined as the target posture information.
[0085] It should be noted that the execution subject of the embodiment of the present application can be the target device or other devices. For example, assuming that the target device is an electronic device such as a smart phone or a tablet computer, the execution subject of the embodiment of the present application can be the target device or other electronic devices such as smart phones, tablet computers or personal computers (PCs) with computing and processing capabilities. Assuming that the target device is a smart home such as a sweeping robot, a cooking robot or a dishwasher robot, the execution subject of the embodiment of the present application can be other electronic devices such as smart phones, tablet computers or personal computers (PCs) with computing and processing capabilities.
[0086] See also Figure 2 , Figure 2 This is a second flow chart of the instruction determination method provided in an embodiment of the present application. The flow chart may include:
[0087] 201. Obtain a distance between each electronic tag among a plurality of electronic tags corresponding to a human body and each base station among a plurality of base stations, and obtain a plurality of first distances corresponding to each electronic tag.
[0088] 202. Determine a difference between two corresponding first distances among a plurality of first distances corresponding to each electronic tag, and obtain a plurality of distance differences corresponding to each electronic tag.
[0089] 203. Obtain location information of each base station to obtain multiple location information.
[0090] 204. Determine the location information of each electronic tag according to the multiple location information and the multiple distance differences corresponding to each electronic tag.
[0091] 205. Determine the distance between any two electronic tags among the multiple electronic tags according to the location information of the multiple electronic tags, and obtain a target distance vector, wherein the value of a corresponding element in the target distance vector is the distance between the corresponding two electronic tags among the multiple electronic tags.
[0092] 206. Obtain multiple preset distance vectors, where each preset distance vector corresponds to a preset posture information.
[0093] 207. Determine the Euclidean distance between each preset distance vector and the target distance vector to obtain a plurality of Euclidean distances.
[0094] 208. Determine the minimum Euclidean distance from multiple Euclidean distances.
[0095] 209. When the minimum Euclidean distance is less than or equal to the preset distance, determine the preset distance vector corresponding to the minimum Euclidean distance as the matching distance vector that matches the target distance vector.
[0096] 210. Determine the preset posture information corresponding to the matching distance vector as the target posture information of the human body.
[0097] 211. Determine, according to the target posture information, a target control instruction for instructing the target device to perform a corresponding operation.
[0098] For example, processes 201 to 211 may be: the execution subject is a personal computer (hereinafter referred to as PC), the target device is a sweeping robot, multiple base stations include UWB positioning base station B1 (hereinafter referred to as base station B1), UWB positioning base station B2 (hereinafter referred to as base station B2), UWB positioning base station B3 (hereinafter referred to as base station B3) and UWB positioning base station B4 (hereinafter referred to as base station B4), multiple electronic tags include UWB positioning tag T1 (hereinafter referred to as tag T1), UWB positioning tag T2 (hereinafter referred to as tag T2), UWB positioning tag T3 (hereinafter referred to as tag T3), UWB positioning tag T4 (hereinafter referred to as tag T4) and UWB positioning tag T5 (hereinafter referred to as tag T5), the location information includes coordinates, and the preset posture information includes For example, the preset gesture, the target posture information includes the target gesture, and the positions of base stations B1, B2, B3 and B4 can be arranged in advance in the room where positioning is required, such as base stations B1, B2, B3 and B4 can be arranged in the four corners of the room roof, and base stations B1, B2, B3 and B4 are completely synchronized. The room is within the wireless coverage of each UWB positioning tag, and each UWB positioning tag can send a UWB signal to the outside at a preset time when it is worn by the user. Each UWB positioning base station can determine the distance between each UWB positioning tag and it after receiving the UWB signal sent by each UWB positioning tag, and each UWB positioning base station can send the determined distance between it and each UWB positioning tag to the PC. The PC obtains the distance between each UWB positioning base station and each UWB positioning tag, and obtains multiple first distances corresponding to each UWB positioning tag.
[0099] Taking tag T1 as an example, the multiple first distances corresponding to tag T1 include the distance d1 between base station B1 and tag T1, the distance d2 between base station B2 and tag T1, the distance d3 between base station B3 and tag T1, and the distance d4 between base station B4 and tag T1. When the multiple first distances corresponding to tag T1 are obtained, the PC can calculate the difference between distance d1 and distance d2 to obtain the distance difference S. 12 , calculate the difference between distance d2 and distance d3, and get the distance difference S 23 , calculate the difference between distance d3 and distance d4, and get the distance difference S 34 , calculate the difference between distance d4 and distance d1, and get the distance difference S 41 , thus obtaining multiple distance differences S corresponding to label T1 12 , S23 , S 34 and S 41 The PC can obtain the coordinates of base station B1 (x1, y1, z1), base station B2 (x2, y2, z2), base station B3 (x3, y3, z3), and base station B4 (x4, y4, z4), and calculate the distance difference S. 12 , S 23 , S 34 , S 41 , coordinates (x1, y1, z1), (x2, y2, z2), (x3, y3, z3) and (x4, y4, z4) are used to obtain the coordinates of tag T1. It can be understood that the PC can also determine the coordinates of tags T2, T3, T4 and T5 in the same manner as above.
[0100] After obtaining the coordinates of tags T1, T2, T3, T4 and T5, the PC can determine the distance d between tags T1 and T2 based on the coordinates of tags T1, T2, T3, T4 and T5. 12 , the distance d between labels T1 and T3 13 , the distance d between labels T1 and T4 14 , the distance d between labels T1 and T5 15 , the distance d between labels T2 and T3 23 , the distance d between labels T2 and T4 24 , the distance d between label T2 and T5 25 , the distance d between labels T3 and T4 34 , the distance d between labels T3 and T4 35 , the distance d between labels T3 and T4 45 , and obtain the target distance vector {d 12 ,d 13 ,d 14 ,d 15 ,d 23 ,d 24 ,d 25 ,d 34 ,d 35 ,d 45The PC can obtain multiple preset distance vectors, wherein the multiple preset distance vectors can be 10 dimensions, the value of the element of the first dimension represents the distance between the label T1 and T2, the value of the element of the second dimension represents the distance between the label T1 and T3, the value of the element of the third dimension represents the distance between the label T1 and T4, the value of the element of the fourth dimension represents the distance between the label T1 and T5, the value of the element of the fifth dimension represents the distance between the label T2 and T3, the value of the element of the sixth dimension represents the distance between the label T2 and T4, the value of the element of the seventh dimension represents the distance between the label T2 and T5, the value of the element of the eighth dimension represents the distance between the label T3 and T4, the value of the element of the ninth dimension represents the distance between the label T3 and T5, and the value of the element of the tenth dimension represents the distance between the label T4 and T5. The PC can determine the Euclidean distance between each preset distance vector and the target distance vector by formula (2) to obtain multiple Euclidean distances. The PC can determine the minimum Euclidean distance from multiple Euclidean distances. When the minimum Euclidean distance is less than or equal to the preset distance, the PC can determine the preset distance vector corresponding to the minimum Euclidean distance as a matching distance vector that matches the target distance vector. The PC can determine the preset gesture corresponding to the matching distance vector as the target gesture. When the minimum Euclidean distance is greater than the preset distance, the PC can determine that there is no matching distance vector that matches the target distance vector in the multiple preset distance vectors. Then, the PC can continue to determine the difference between the corresponding two first distances in the multiple first distances corresponding to each UWB tag obtained next time, obtain multiple distance differences corresponding to each electronic tag, and continue the subsequent process until a target distance vector is obtained in which there is a matching distance vector that matches it in the multiple preset distance vectors, so that the PC can determine the preset gesture corresponding to the matching distance vector as the target gesture. Among them, the preset distance can be set according to the actual situation, and no specific restrictions are made here.
[0101] After the target gesture is determined, the PC can obtain the preset mapping relationship between the gesture and the control instruction, and determine the target control instruction corresponding to the target gesture according to the preset mapping relationship. After the target control instruction is determined, the PC can send the target control instruction to the sweeping robot. After the sweeping robot receives the target control instruction, it can perform corresponding operations according to the target control instruction. For example, assuming that the target control instruction instructs the sweeping robot to sweep the floor, the sweeping robot can perform the sweeping work after receiving the target control instruction.
[0102] See also Figure 3 , Figure 3 It is a schematic diagram of the interaction among the electronic tag, base station and PC provided in the embodiment of the present application.
[0103] Taking the electronic tag as tag T1, the base stations as B1, B2, B3 and B4, and the execution subject as a PC as an example, tag T1 can send a UWB signal to the outside. After receiving the UWB signal sent by tag T1, base station B1 can determine the distance from tag T1 to base station B1, and then send the distance to the PC, so that the PC performs subsequent processing according to the distance. Similarly, after receiving the UWB signal sent by tag T1, base station B2 can determine the distance from tag T1 to base station B2, and then send the distance to the PC, so that the PC performs subsequent processing according to the distance. After receiving the UWB signal sent by tag T1, base station B3 can determine the distance from tag T1 to base station B3, and then send the distance to the PC, so that the PC performs subsequent processing according to the distance. After receiving the UWB signal sent by tag T1, base station B4 can determine the distance from tag T1 to base station B4, and then send the distance to the PC, so that the PC performs subsequent processing according to the distance.
[0104] See also Figure 4 , Figure 4 300 is a schematic diagram of the structure of the instruction determination device provided in the embodiment of the present application. The instruction determination device 300 includes: an acquisition module 301, a first determination module 302 and a second determination module 303.
[0105] The acquisition module 301 is used to acquire the position information of multiple electronic tags corresponding to the human body.
[0106] The first determination module is used to determine the target posture information 302 of the human body according to the position information of the plurality of electronic tags.
[0107] The second determining module 303 is used to determine a target control instruction for instructing the target device to perform a corresponding operation according to the target posture information.
[0108] In some embodiments, the acquisition module 301 can be used to: obtain the distance between each of the multiple electronic tags corresponding to the human body and each of the multiple base stations, and obtain multiple first distances corresponding to each of the electronic tags; determine the location information of each of the electronic tags based on the multiple first distances corresponding to each of the electronic tags, and obtain the location information of the multiple electronic tags.
[0109] In some embodiments, the acquisition module 301 can be used to: determine the difference between two corresponding first distances among the multiple first distances corresponding to each electronic tag to obtain multiple distance differences corresponding to each electronic tag; and determine the location information of each electronic tag based on the multiple distance differences corresponding to each electronic tag.
[0110] In some embodiments, the acquisition module 301 can be used to: acquire the location information of each base station to obtain multiple location information; and determine the location information of each electronic tag according to the multiple location information and multiple distance differences corresponding to each electronic tag.
[0111] In some embodiments, the first determination module 302 can be used to: determine the distance between any two of the multiple electronic tags based on the location information of the multiple electronic tags, and obtain a target distance vector, wherein the value of the corresponding element in the target distance vector is the distance between the corresponding two of the multiple electronic tags; and determine the target posture information of the human body based on the target distance vector.
[0112] In some embodiments, the first determination module 302 can be used to: obtain multiple preset distance vectors, wherein each preset distance vector corresponds to a preset posture information; determine a matching distance vector that matches the target distance vector from the multiple preset distance vectors; and determine the preset posture information corresponding to the matching distance vector as the target posture information of the human body.
[0113] In some embodiments, the first determination module 302 can be used to: determine the Euclidean distance between each of the preset distance vectors and the target distance vector to obtain multiple Euclidean distances; determine the minimum Euclidean distance from the multiple Euclidean distances; when the minimum Euclidean distance is less than or equal to the preset distance, determine the preset distance vector corresponding to the minimum Euclidean distance as the matching distance vector that matches the target distance vector.
[0114] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed on a computer, the computer executes the instruction determination method provided in the present embodiment.
[0115] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the processor is used to execute the instruction determination method provided in the present embodiment by calling a computer program stored in the memory.
[0116] See also Figure 5 , Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0117] The electronic device 400 may include one or more processors 401 of processing cores, one or more computer-readable storage media memories 402, a communication unit 403, a power supply 404, an input unit 405, and a display unit 406. Those skilled in the art will appreciate that Figure 5The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0118] The processor 401 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0119] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0120] The communication unit 403 may be used for receiving and sending signals during the process of sending and receiving information. In particular, the communication unit 403 receives signals sent by the terminal and sends the signals to one or more processors 401 for processing.
[0121] The electronic device also includes a power supply 404 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 401 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 404 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0122] The electronic device may further include an input unit 405, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0123] The electronic device may further include a display unit 406, which may be used to display information input by a user or information provided to a user and various graphical user interfaces of the electronic device, which may be composed of graphics, text, icons, videos, and any combination thereof. The display unit 406 may include a display panel, and optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0124] Specifically in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more applications into the memory 402 according to the following instructions, and the processor 401 will run the application stored in the memory 402 to implement various functions, as follows:
[0125] Acquiring location information of a plurality of electronic tags corresponding to a human body;
[0126] Determining target posture information of the human body according to the position information of the plurality of electronic tags;
[0127] According to the target posture information, a target control instruction for instructing the target device to perform a corresponding operation is determined.
[0128] In some embodiments, when the processor 401 executes the acquisition of location information of multiple electronic tags corresponding to the human body, it can execute: obtaining the distance between each of the multiple electronic tags corresponding to the human body and each of the multiple base stations, and obtaining multiple first distances corresponding to each electronic tag; determining the location information of each electronic tag based on the multiple first distances corresponding to each electronic tag, and obtaining the location information of the multiple electronic tags.
[0129] In some embodiments, when the processor 401 executes the determination of the location information of each electronic tag based on the multiple first distances corresponding to each electronic tag, it can execute: determining the difference between two corresponding first distances among the multiple first distances corresponding to each electronic tag to obtain multiple distance differences corresponding to each electronic tag; determining the location information of each electronic tag based on the multiple distance differences corresponding to each electronic tag.
[0130] In some embodiments, when the processor 401 executes the determination of the location information of each electronic tag based on the multiple distance differences corresponding to each electronic tag, it can execute: obtaining the location information of each base station to obtain multiple location information; determining the location information of each electronic tag based on the multiple location information and the multiple distance differences corresponding to each electronic tag.
[0131] In some embodiments, when the processor 401 executes the method of determining the target posture information of the human body based on the position information of the multiple electronic tags, it can execute: determining the distance between any two of the multiple electronic tags based on the position information of the multiple electronic tags, and obtaining a target distance vector, wherein the value of the corresponding element in the target distance vector is the distance between the corresponding two of the multiple electronic tags; and determining the target posture information of the human body based on the target distance vector.
[0132] In some embodiments, when the processor 401 executes the determination of the target posture information of the human body based on the target distance vector, it can execute: obtaining multiple preset distance vectors, wherein each preset distance vector corresponds to a preset posture information; determining a matching distance vector that matches the target distance vector from the multiple preset distance vectors; and determining the preset posture information corresponding to the matching distance vector as the target posture information of the human body.
[0133] In some embodiments, when the processor 401 executes the step of determining a matching distance vector that matches the target distance vector from a plurality of preset distance vectors, the following steps may be performed: determining the Euclidean distance between each of the preset distance vectors and the target distance vector to obtain a plurality of Euclidean distances; determining a minimum Euclidean distance from the plurality of Euclidean distances; and when the minimum Euclidean distance is less than or equal to a preset distance, determining the preset distance vector corresponding to the minimum Euclidean distance as a matching distance vector that matches the target distance vector.
[0134] In the embodiments of the present application, “plurality” refers to “two” or “more than two”.
[0135] In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, please refer to the detailed description of the instruction determination method above, which will not be repeated here.
[0136] The instruction determination device provided in the embodiment of the present application belongs to the same concept as the instruction determination method in the above embodiment. Any method provided in the instruction determination method embodiment can be run on the instruction determination device. The specific implementation process is detailed in the instruction determination method embodiment and will not be repeated here.
[0137] It should be noted that, for the instruction determination method described in the embodiment of the present application, a person of ordinary skill in the art can understand that the whole or part of the process of implementing the instruction determination method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and the execution process may include the process of the embodiment of the instruction determination method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.
[0138] For the instruction determination device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.
[0139] The above is a detailed introduction to an instruction determination method, device, storage medium and electronic device provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for determining an instruction, characterized in that: include: Acquire the distance between each of the multiple electronic tags corresponding to the human body and each of the multiple base stations to obtain multiple first distances corresponding to each of the electronic tags; Determine the location information of each electronic tag according to the multiple first distances corresponding to each electronic tag, and obtain the location information of the multiple electronic tags; According to the position information of the plurality of electronic tags, the distance between any two electronic tags among the plurality of electronic tags is determined to obtain a target distance vector, wherein the value of the corresponding element in the target distance vector is the distance between the corresponding two electronic tags among the plurality of electronic tags; a plurality of preset distance vectors are obtained, wherein each preset distance vector corresponds to a preset posture information; a matching distance vector matching the target distance vector is determined from the plurality of preset distance vectors; the preset posture information corresponding to the matching distance vector is determined as the target posture information of the human body; wherein, if there is no matching distance vector matching the target distance vector among the plurality of preset distance vectors, then the position information of the plurality of electronic tags corresponding to the human body is returned to be re-acquired until a target distance vector matching the matching distance vector among the plurality of preset distance vectors is obtained; According to the target posture information, a target control instruction for instructing the target device to perform a corresponding operation is determined.
2. The instruction determination method according to claim 1, characterized in that: The step of determining the location information of each electronic tag according to the plurality of first distances corresponding to each electronic tag includes: Determine the difference between two corresponding first distances among the plurality of first distances corresponding to each of the electronic tags, to obtain a plurality of distance differences corresponding to each of the electronic tags; The location information of each electronic tag is determined according to the multiple distance differences corresponding to each electronic tag.
3. The instruction determination method according to claim 2, characterized in that: The determining the location information of each electronic tag according to the multiple distance differences corresponding to each electronic tag includes: Acquire the location information of each base station to obtain multiple location information; The location information of each electronic tag is determined according to the multiple location information and the multiple distance differences corresponding to each electronic tag.
4. The instruction determination method according to claim 1, characterized in that: The determining, from the plurality of preset distance vectors, a matching distance vector that matches the target distance vector comprises: Determine the Euclidean distance between each of the preset distance vectors and the target distance vector to obtain a plurality of Euclidean distances; Determining the smallest Euclidean distance from the plurality of Euclidean distances; When the minimum Euclidean distance is less than or equal to a preset distance, a preset distance vector corresponding to the minimum Euclidean distance is determined as a matching distance vector that matches the target distance vector.
5. An instruction determination device, characterized in that: include: An acquisition module, used to acquire the distance between each of the multiple electronic tags corresponding to the human body and each of the multiple base stations, and obtain multiple first distances corresponding to each of the electronic tags; Determine the location information of each electronic tag according to the multiple first distances corresponding to each electronic tag, and obtain the location information of the multiple electronic tags; A first determination module is used to determine the distance between any two electronic tags among the plurality of electronic tags according to the position information of the plurality of electronic tags, and obtain a target distance vector, wherein the value of the corresponding element in the target distance vector is the distance between the corresponding two electronic tags among the plurality of electronic tags; obtain a plurality of preset distance vectors, wherein each preset distance vector corresponds to a preset posture information; determine a matching distance vector that matches the target distance vector from the plurality of preset distance vectors; determine the preset posture information corresponding to the matching distance vector as the target posture information of the human body; wherein, if there is no matching distance vector that matches the target distance vector among the plurality of preset distance vectors, then return to trigger the acquisition module to re-acquire the position information of the electronic tag corresponding to the human body, until a target distance vector that has a matching distance vector that matches it among the plurality of preset distance vectors is obtained; The second determining module is used to determine a target control instruction for instructing the target device to perform a corresponding operation according to the target posture information.
6. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed on a computer, the computer is caused to execute the instruction determination method according to any one of claims 1 to 4.
7. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the instruction determination method according to any one of claims 1 to 4 by calling the computer program stored in the memory.
Citation Information
Patent Citations
Gesture remote control device, gesture reception device, wireless remote control system and method for operating terminal device
CN105183187A
Electronic tag positioning method, device, server and system
CN105203994A
Positioning method and system based on mobile base stations
CN107548152A
Phase-type gesture recognition method based on passive radio frequency tag
CN107832647A
Robot gesture control method based on RFID
CN110125935A
