A human-computer interaction method and system based on gesture recognition
By making consistency judgment and historical gesture analysis of continuous images of user gestures in virtual reality and augmented reality scenarios, unnecessary operation problems caused by unintentional gestures are solved, and more accurate and efficient human-computer interaction is achieved.
Patent Information
- Application Number
- CN202210336540.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2042-03-31
AI Technical Summary
In virtual reality and augmented reality scenarios, users inadvertently make unwanted gestures, causing the gesture recognition system to perform unnecessary operations.
By receiving and comparing two user gesture images collected continuously, consistency judgment is made, gesture matching and operation execution is performed only when the two images are consistent, consistency judgment is made using the similarity between color features and outline features, and in history Accompaniment gestures are generated in gesture analysis to optimize interactions.
It effectively avoids unnecessary operations caused by unintentional useless gestures, and improves the accuracy of interaction and user experience.
Smart Images

Figure CN114648811B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of human-computer interaction, and in particular to a human-computer interaction method and system based on gesture recognition. Background Art
[0002] With the development of computer vision technology and people's demand for new means of interaction, interactive methods based on computer vision have gradually developed. Traditional interactive methods such as mouse, keyboard, handle, etc. can no longer play a convenient role in some special fields. For example, in virtual reality and augmented reality scenarios, it is difficult for users to complete traditional methods such as clicking physical buttons, operating input devices and clicking menus. Therefore, human-computer interaction based on gesture recognition has very good application prospects. At present, it is possible to automatically recognize gestures and perform corresponding operations, but in actual use, it will be found that users will inadvertently make some unnecessary gestures, and these gestures are likely to be recognized, resulting in unnecessary operations. Therefore, it is necessary to provide a human-computer interaction method and system based on gesture recognition to solve the above problems. Summary of the invention
[0003] In view of the deficiencies in the prior art, an object of the present invention is to provide a human-computer interaction method and system based on gesture recognition to solve the problems existing in the above-mentioned background technology.
[0004] The present invention is implemented as follows: a human-computer interaction method based on gesture recognition, the method comprising the following steps:
[0005] Receive gesture recognition start command and automatically turn on the image acquisition device;
[0006] Receiving two user gesture images continuously captured by the image capture device, where the image capture device is set with an image capture time interval;
[0007] Perform consistency determination on the two user gesture images. If the consistency determination fails, both user gesture images are invalid. If the consistency determination passes, select any user gesture image to match with a preset gesture image in the preset gesture library, and set the preset gesture image that successfully matches as the execution gesture.
[0008] Execute the corresponding operation according to the execution gesture.
[0009] As a further solution of the present invention: the step of determining the consistency of two user gesture images specifically includes:
[0010] Obtaining color features and contour features of two user gesture images, wherein the color feature is a pixel mean, and the contour feature is a phash value;
[0011] The color feature similarity is obtained based on the difference between the pixel means of the two user gesture images;
[0012] The contour feature similarity is obtained based on the Hamming distance of the phash values of the two user gesture images;
[0013] A total similarity value between the two user gesture images is obtained according to the color feature similarity and the contour feature similarity, and the total similarity value is compared with the first preset value to obtain a consistency determination result.
[0014] As a further solution of the present invention: the step of performing a corresponding operation according to the execution gesture specifically includes:
[0015] Retrieving an execution operation program set by a preset gesture image corresponding to the execution gesture, wherein a plurality of preset gesture images are uploaded to the preset gesture library, and each preset gesture image is set with an execution operation program;
[0016] Execute corresponding operations according to the execution operation program.
[0017] As a further solution of the present invention: the method further includes: analyzing the historical execution gestures to generate accompanying gestures, specifically:
[0018] Counting all kinds of consecutive execution gestures in history at preset intervals, where the consecutive execution gestures refer to two consecutive execution gestures;
[0019] When a continuously executed gesture reaches a second preset value, determining the continuously executed gesture as an accompanying gesture;
[0020] Import the accompanying gestures into the accompanying gesture library.
[0021] As a further solution of the present invention: the method further comprises:
[0022] receiving a preset accompanying gesture adding command, wherein the preset accompanying gesture adding command includes an accompanying gesture and a preset gesture image;
[0023] The preset gesture image is imported into the preset gesture library, and two execution operation programs corresponding to the accompanying gesture are recorded. When the preset gesture image is set as an execution gesture, two operations will be executed successively.
[0024] Another object of the present invention is to provide a human-computer interaction system based on gesture recognition, the system comprising:
[0025] A gesture recognition start module, used to receive a gesture recognition start instruction and automatically turn on the image acquisition device;
[0026] A gesture image acquisition module, used to receive two user gesture images continuously acquired by the image acquisition device, wherein the image acquisition device is provided with an image acquisition time interval;
[0027] A consistency determination module is used to perform consistency determination on two user gesture images. When the consistency determination fails, both user gesture images are invalid; when the consistency determination passes, any user gesture image is selected to match with a preset gesture image in a preset gesture library, and the preset gesture image that successfully matches is set as the execution gesture; and
[0028] The operation execution module is used to execute the corresponding operation according to the execution gesture.
[0029] As a further solution of the present invention: the consistency determination module includes:
[0030] A color and contour feature determination unit, used to obtain color features and contour features of two user gesture images, wherein the color feature is a pixel mean value and the contour feature is a phash value;
[0031] A color similarity determination unit, used to obtain color feature similarity according to a difference between pixel means of two user gesture images;
[0032] a contour similarity determination unit, configured to obtain contour feature similarity according to a Hamming distance of phash values of two user gesture images; and
[0033] The total similarity determination unit is used to obtain a total similarity value between two user gesture images according to the color feature similarity and the contour feature similarity, and compare the total similarity value with a first preset value to obtain a consistency determination result.
[0034] As a further solution of the present invention: the operation execution module includes:
[0035] An operation program calling unit, used to call an execution operation program set by a preset gesture image corresponding to an execution gesture, wherein a plurality of preset gesture images are uploaded to the preset gesture library, and each preset gesture image is set with an execution operation program;
[0036] The program execution unit is used to execute corresponding operations according to the execution operation program.
[0037] As a further solution of the present invention: the system further includes an accompanying gesture generation module, and the accompanying gesture generation module includes:
[0038] a continuous execution gesture counting unit, which counts all types of continuous execution gestures in history at preset intervals, wherein the continuous execution gestures refer to two consecutive execution gestures;
[0039] an accompanying gesture determining unit, which determines that a continuously executed gesture is an accompanying gesture when the continuously executed gesture reaches a second preset value; and
[0040] The accompanying gesture importing unit is used to import the accompanying gesture into the accompanying gesture library.
[0041] As a further solution of the present invention: the system further includes an accompanying gesture image module, and the accompanying gesture image module includes:
[0042] an accompanying gesture adding unit, configured to receive a preset accompanying gesture adding command, wherein the preset accompanying gesture adding command includes an accompanying gesture and a preset gesture image; and
[0043] The accompanying preset gesture importing unit is used to import the preset gesture image into the preset gesture library and record two execution operation programs corresponding to the accompanying gesture. When the preset gesture image is set as an execution gesture, two operations will be executed successively.
[0044] Compared with the prior art, the present invention has the following beneficial effects:
[0045] The present invention collects two continuous user gesture images through an image acquisition device, and automatically performs consistency judgment on the two user gesture images. When the consistency judgment fails, it indicates that the gestures in the two user gesture images are inconsistent, indicating that the gesture is a useless gesture made by the user unintentionally; when the consistency judgment passes, it indicates that the gestures in the two user gesture images are consistent, indicating that the gesture is indeed a gesture that the user wants to make. The present invention only executes the corresponding operation according to the execution gesture to avoid useless operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 The figure is a flow chart of a human-computer interaction method based on gesture recognition.
[0047] Figure 2 The present invention is a flowchart for determining the consistency of two user gesture images in a human-computer interaction method based on gesture recognition.
[0048] Figure 3 The present invention is a flow chart of executing corresponding operations according to an execution gesture in a human-computer interaction method based on gesture recognition.
[0049] Figure 4 The present invention is a flowchart for analyzing historically executed gestures in a human-computer interaction method based on gesture recognition.
[0050] Figure 5 The present invention is a flow chart of receiving a preset accompanying gesture and adding a command in a human-computer interaction method based on gesture recognition.
[0051] Figure 6The figure is a structural diagram of a human-computer interaction system based on gesture recognition.
[0052] Figure 7 The figure is a schematic diagram of the structure of a consistency determination module in a human-computer interaction system based on gesture recognition.
[0053] Figure 8 The schematic diagram is a structural diagram of an operation execution module in a human-computer interaction system based on gesture recognition.
[0054] Fig. 9 This is a structural diagram of an accompanying gesture generation module in a human-computer interaction system based on gesture recognition.
[0055] Fig.10 The figure is a structural diagram of an accompanying gesture image module in a human-computer interaction system based on gesture recognition. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0057] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments.
[0058] like Figure 1 As shown, an embodiment of the present invention provides a human-computer interaction method based on gesture recognition, and the method includes the following steps:
[0059] S100, receiving a gesture recognition start instruction and automatically turning on an image acquisition device;
[0060] S200, receiving two user gesture images continuously captured by the image capture device, where the image capture device is set with an image capture time interval;
[0061] S300, performing consistency determination on the two user gesture images. When the consistency determination fails, the two user gesture images are invalid. When the consistency determination passes, any one of the user gesture images is selected to match with a preset gesture image in a preset gesture library, and the preset gesture image that successfully matches is set as the execution gesture.
[0062] S400: Execute a corresponding operation according to the execution gesture.
[0063] It should be noted that with the development of computer vision technology and people's demand for new interactive means, interactive methods based on computer vision have gradually developed. Traditional interactive methods such as mouse, keyboard, handle, etc. can no longer play a convenient role in some special fields. For example, in virtual reality and augmented reality scenarios, it is difficult for users to complete the traditional methods such as clicking physical buttons, operating input devices to click menus, etc., so human-computer interaction based on gesture recognition has very good application prospects. At present, it is possible to realize automatic recognition of gestures and perform corresponding operations, but in actual use, it will be found that users will inadvertently make some unnecessary gestures, and these gestures are likely to be recognized, resulting in the execution of unnecessary operations. The embodiments of the present invention are intended to solve the above problems.
[0064] In the embodiment of the present invention, when the user needs to interact with the machine through gestures, the user directly inputs a gesture recognition start command, which will automatically turn on the image acquisition device, and the image acquisition device will automatically take pictures of the user's gestures. The image acquisition device is pre-set with an image acquisition time interval. For example, if the image acquisition time interval is 1 second, then the time interval between two consecutive pictures acquired by the image acquisition device is 1 second. It should be noted that the user gesture images acquired by the image acquisition device are uploaded in real time, but in the embodiment of the present invention, the user gesture images are not uploaded one by one, but two by two. After the image acquisition device uploads two consecutively acquired user gesture images, the embodiment of the present invention automatically checks the consistency of the two user gesture images. Judgment, consistency judgment refers to determining whether the gestures in the two user gesture images are consistent. When the consistency judgment fails, it indicates that the gestures in the two user gesture images are inconsistent, indicating that the gesture is a useless gesture made by the user unintentionally. The unintentional gesture moves at a fast speed without stopping, so it is not consistent. The embodiment of the present invention automatically determines that both user gesture images are invalid; when the consistency judgment passes, it indicates that the gestures in the two user gesture images are consistent, indicating that the gesture is indeed the gesture the user wants to make. The embodiment of the present invention automatically selects any one of the two user gesture images to match it with the preset gesture image in the preset gesture library, sets the successfully matched preset gesture image as the execution gesture, and finally performs the corresponding operation according to the execution gesture.
[0065] like Figure 2 As shown, as a preferred embodiment of the present invention, the step of determining the consistency of two user gesture images specifically includes:
[0066] S301, obtaining color features and contour features of two user gesture images, wherein the color feature is a pixel mean, and the contour feature is a phash value;
[0067] S302, obtaining color feature similarity according to the difference between the pixel means of the two user gesture images;
[0068] S303, obtaining contour feature similarity according to the Hamming distance of the phash values of the two user gesture images;
[0069] S304: Obtain a total similarity value between the two user gesture images according to the color feature similarity and the contour feature similarity, and compare the total similarity value with a first preset value to obtain a consistency determination result.
[0070] In the embodiment of the present invention, in order to determine whether two user gesture images are consistent, it is necessary to obtain the pixel means and phash values of the two user gesture images, and then obtain the color feature similarity through the difference between the pixel means, and obtain the contour feature similarity through the Hamming distance of the phash value. Here, the means for determining the color feature similarity and the contour feature similarity are both existing technical means, and the embodiment of the present invention will not be repeated. Finally, the total similarity value between the two user gesture images is obtained through the color feature similarity and the contour feature similarity. The total similarity value = the first coefficient * color feature similarity + the second coefficient * contour feature similarity. The first coefficient and the second coefficient are both fixed values, and the first coefficient is smaller than the second coefficient. The total similarity value is compared with the first preset value to obtain the consistency determination result. The first preset value is a preset fixed value.
[0071] like Figure 3 As shown, as a preferred embodiment of the present invention, the step of performing a corresponding operation according to the execution gesture specifically includes:
[0072] S401, calling an execution operation program set by a preset gesture image corresponding to an execution gesture, wherein a plurality of preset gesture images are uploaded to the preset gesture library, and each preset gesture image is set with an execution operation program;
[0073] S402: Execute corresponding operations according to the execution operation program.
[0074] In an embodiment of the present invention, after the execution gesture is determined, the execution operation program set by the preset gesture image corresponding to the execution gesture is immediately called up. There are many preset gesture images uploaded in advance in the preset gesture library, and each preset gesture image is set with an execution operation program. The preset gesture library needs to be continuously improved and updated by relevant staff. Finally, the corresponding operation is performed according to the called execution operation program, and a gesture interaction task is completed.
[0075] like Figure 4 As shown, as a preferred embodiment of the present invention, the method further includes: analyzing the historical execution gestures to generate accompanying gestures, specifically:
[0076] S501, counting all types of consecutive execution gestures in history at preset intervals, where the consecutive execution gestures refer to two consecutive execution gestures;
[0077] S502, when a continuously executed gesture reaches a second preset value, determining that the continuously executed gesture is an accompanying gesture;
[0078] S503: Import the accompanying gesture into an accompanying gesture library.
[0079] In an embodiment of the present invention, it has the ability to analyze big data so as to provide better services later. In an embodiment of the present invention, all types of continuous execution gestures in history are counted at preset time intervals. The preset time is a preset fixed value, such as one month. The continuous execution gesture refers to two consecutive execution gestures. For example, execution gesture A and execution gesture B are two consecutive execution gestures in a certain operation, then execution gesture A and execution gesture B are continuous execution gestures, and by default A is executed first and then B. If one or several continuous execution gestures reach a second preset value, the second preset value is a preset fixed value, indicating that the two execution gestures often appear together continuously, and the continuous execution gesture is determined to be an accompanying gesture, and the accompanying gesture is imported into an accompanying gesture library. The accompanying gesture library can be analyzed later to provide better services.
[0080] like Figure 5 As shown, as a preferred embodiment of the present invention, the method further includes:
[0081] S601, receiving a preset accompanying gesture adding command, wherein the preset accompanying gesture adding command includes an accompanying gesture and a preset gesture image;
[0082] S602, importing a preset gesture image into a preset gesture library, and recording two execution operation programs corresponding to the accompanying gesture. When the preset gesture image is set as an execution gesture, two operations will be executed successively.
[0083] In an embodiment of the present invention, a means for providing a better service is provided, that is, a preset gesture image is added to the accompanying gesture, and the preset gesture image is imported into the preset gesture library, and the set execution operation program of the preset gesture image is two execution operation programs corresponding to the accompanying gesture, so when the preset gesture image is set as an execution gesture, two operations will be performed successively, so that two operations can be achieved through one gesture, which is fast and convenient. When it is necessary to add a preset gesture image to the accompanying gesture, a preset accompanying gesture adding command is input, and the preset accompanying gesture adding command includes the accompanying gesture and the preset gesture image.
[0084] like Figure 6As shown, an embodiment of the present invention further provides a human-computer interaction system based on gesture recognition, the system comprising:
[0085] The gesture recognition activation module 100 is used to receive a gesture recognition activation instruction and automatically activate the image acquisition device;
[0086] The gesture image acquisition module 200 is used to receive two user gesture images continuously acquired by the image acquisition device, and the image acquisition device is set with an image acquisition time interval;
[0087] The consistency determination module 300 is used to perform consistency determination on the two user gesture images. When the consistency determination fails, the two user gesture images are invalid. When the consistency determination passes, any one of the user gesture images is selected to match with a preset gesture image in the preset gesture library, and the preset gesture image that successfully matches is set as the execution gesture; and
[0088] The operation execution module 400 is used to execute the corresponding operation according to the execution gesture.
[0089] In the embodiment of the present invention, when the user needs to interact with the machine through gestures, the user directly inputs a gesture recognition start command, which will automatically turn on the image acquisition device, and the image acquisition device will automatically take pictures of the user's gestures. The image acquisition device is pre-set with an image acquisition time interval. For example, if the image acquisition time interval is 1 second, then the time interval between two consecutive pictures acquired by the image acquisition device is 1 second. It should be noted that the user gesture images acquired by the image acquisition device are uploaded in real time, but in the embodiment of the present invention, the user gesture images are not uploaded one by one, but two by two. After the image acquisition device uploads two consecutively acquired user gesture images, the embodiment of the present invention automatically checks the consistency of the two user gesture images. Judgment, consistency judgment refers to determining whether the gestures in the two user gesture images are consistent. When the consistency judgment fails, it indicates that the gestures in the two user gesture images are inconsistent, indicating that the gesture is a useless gesture made by the user unintentionally. The unintentional gesture moves at a fast speed without stopping, so it is not consistent. The embodiment of the present invention automatically determines that both user gesture images are invalid; when the consistency judgment passes, it indicates that the gestures in the two user gesture images are consistent, indicating that the gesture is indeed the gesture the user wants to make. The embodiment of the present invention automatically selects any one of the two user gesture images to match it with the preset gesture image in the preset gesture library, sets the successfully matched preset gesture image as the execution gesture, and finally performs the corresponding operation according to the execution gesture.
[0090] like Figure 7 As shown, as a preferred embodiment of the present invention, the consistency determination module 300 includes:
[0091] A color and contour feature determination unit 301 is used to obtain color features and contour features of two user gesture images, wherein the color feature is a pixel mean value and the contour feature is a phash value;
[0092] A color similarity determination unit 302, configured to obtain color feature similarity based on a difference between pixel means of two user gesture images;
[0093] A contour similarity determination unit 303, configured to obtain contour feature similarity according to the Hamming distance of the phash values of the two user gesture images; and
[0094] The total similarity determination unit 304 is used to obtain a total similarity value between two user gesture images according to the color feature similarity and the contour feature similarity, and compare the total similarity value with a first preset value to obtain a consistency determination result.
[0095] In the embodiment of the present invention, in order to determine whether two user gesture images are consistent, it is necessary to obtain the pixel means and phash values of the two user gesture images, and then obtain the color feature similarity through the difference between the pixel means, and obtain the contour feature similarity through the Hamming distance of the phash value. Here, the means for determining the color feature similarity and the contour feature similarity are both existing technical means, and the embodiment of the present invention will not be repeated. Finally, the total similarity value between the two user gesture images is obtained through the color feature similarity and the contour feature similarity. The total similarity value = the first coefficient * color feature similarity + the second coefficient * contour feature similarity. The first coefficient and the second coefficient are both fixed values, and the first coefficient is smaller than the second coefficient. The total similarity value is compared with the first preset value to obtain the consistency determination result. The first preset value is a preset fixed value.
[0096] like Figure 8 As shown, as a preferred embodiment of the present invention, the operation execution module 400 includes:
[0097] An operation program retrieving unit 401 is used to retrieve an execution operation program set by a preset gesture image corresponding to an execution gesture, wherein a plurality of preset gesture images are uploaded to the preset gesture library, and each preset gesture image is set with an execution operation program; and
[0098] The program execution unit 402 is used to execute corresponding operations according to the execution operation program.
[0099] In an embodiment of the present invention, after the execution gesture is determined, the execution operation program set by the preset gesture image corresponding to the execution gesture is immediately called up. There are many preset gesture images uploaded in advance in the preset gesture library, and each preset gesture image is set with an execution operation program. The preset gesture library needs to be continuously improved and updated by relevant staff. Finally, the corresponding operation is performed according to the called execution operation program, and a gesture interaction task is completed.
[0100] like Fig. 9 As shown, as a preferred embodiment of the present invention, the system further includes an accompanying gesture generation module 500, and the accompanying gesture generation module 500 includes:
[0101] A continuous execution gesture counting unit 501, which counts all types of continuous execution gestures in history at preset intervals, wherein the continuous execution gestures refer to two consecutive execution gestures;
[0102] The accompanying gesture determining unit 502 determines that a continuously executed gesture is an accompanying gesture when the continuously executed gesture reaches a second preset value; and
[0103] The accompanying gesture importing unit 503 is used to import the accompanying gesture into the accompanying gesture library.
[0104] In an embodiment of the present invention, it has the ability to analyze big data so as to provide better services later. In an embodiment of the present invention, all types of continuous execution gestures in history are counted at preset time intervals. The preset time is a preset fixed value, such as one month. The continuous execution gesture refers to two consecutive execution gestures. For example, execution gesture A and execution gesture B are two consecutive execution gestures in a certain operation, then execution gesture A and execution gesture B are continuous execution gestures, and by default A is executed first and then B. If one or several continuous execution gestures reach a second preset value, the second preset value is a preset fixed value, indicating that the two execution gestures often appear together continuously, and the continuous execution gesture is determined to be an accompanying gesture, and the accompanying gesture is imported into an accompanying gesture library. The accompanying gesture library can be analyzed later to provide better services.
[0105] like Fig.10 As shown, as a preferred embodiment of the present invention, the system further includes an accompanying gesture image module 600, and the accompanying gesture image module 600 includes:
[0106] An accompanying gesture adding unit 601 is used to receive a preset accompanying gesture adding command, wherein the preset accompanying gesture adding command includes an accompanying gesture and a preset gesture image; and
[0107] The accompanying preset gesture importing unit 602 is used to import the preset gesture image into the preset gesture library and record two execution operation programs corresponding to the accompanying gesture. When the preset gesture image is set as an execution gesture, two operations will be executed successively.
[0108] In an embodiment of the present invention, a means for providing a better service is provided, that is, a preset gesture image is added to the accompanying gesture, and the preset gesture image is imported into the preset gesture library, and the set execution operation program of the preset gesture image is two execution operation programs corresponding to the accompanying gesture, so when the preset gesture image is set as an execution gesture, two operations will be performed successively, so that two operations can be achieved through one gesture, which is fast and convenient. When it is necessary to add a preset gesture image to the accompanying gesture, a preset accompanying gesture adding command is input, and the preset accompanying gesture adding command includes the accompanying gesture and the preset gesture image.
[0109] The above only describes in detail the preferred embodiments of the present invention, which is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0110] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0111] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0112] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the disclosure in the specification and examples. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
Claims
1. A human-computer interaction method based on gesture recognition, characterized in that: The method comprises the following steps: Receive gesture recognition start command and automatically turn on the image acquisition device; Receiving two user gesture images continuously captured by the image capture device, where the image capture device is set with an image capture time interval; Perform consistency determination on the two user gesture images. If the consistency determination fails, both user gesture images are invalid. If the consistency determination passes, select any user gesture image to match with a preset gesture image in the preset gesture library, and set the preset gesture image that successfully matches as the execution gesture. Execute corresponding operations according to the execution gesture; The step of determining the consistency of the two user gesture images specifically includes: Obtaining color features and contour features of two user gesture images, wherein the color feature is a pixel mean, and the contour feature is a phash value; The color feature similarity is obtained based on the difference between the pixel means of the two user gesture images; The contour feature similarity is obtained based on the Hamming distance of the phash values of the two user gesture images; A total similarity value between the two user gesture images is obtained according to the color feature similarity and the contour feature similarity, and the total similarity value is compared with the first preset value to obtain a consistency determination result.
2. The human-computer interaction method based on gesture recognition according to claim 1, characterized in that: The step of executing the corresponding operation according to the execution gesture specifically includes: Retrieving an execution operation program set by a preset gesture image corresponding to the execution gesture, wherein a plurality of preset gesture images are uploaded to the preset gesture library, and each preset gesture image is set with an execution operation program; Execute corresponding operations according to the execution operation program.
3. The human-computer interaction method based on gesture recognition according to claim 1, characterized in that: The method further includes: analyzing the historical execution gestures to generate accompanying gestures, specifically: Counting all kinds of consecutive execution gestures in history at preset intervals, where the consecutive execution gestures refer to two consecutive execution gestures; When a continuously executed gesture reaches a second preset value, determining the continuously executed gesture as an accompanying gesture; Import the accompanying gestures into the accompanying gesture library.
4. The human-computer interaction method based on gesture recognition according to claim 3, characterized in that: The method further comprises: receiving a preset accompanying gesture adding command, wherein the preset accompanying gesture adding command includes an accompanying gesture and a preset gesture image; The preset gesture image is imported into the preset gesture library, and two execution operation programs corresponding to the accompanying gesture are recorded. When the preset gesture image is set as an execution gesture, two operations will be executed successively.
5. A human-computer interaction system based on gesture recognition, characterized in that: The system comprises: A gesture recognition start module, used to receive a gesture recognition start instruction and automatically turn on the image acquisition device; A gesture image acquisition module, used to receive two user gesture images continuously acquired by the image acquisition device, wherein the image acquisition device is provided with an image acquisition time interval; A consistency determination module is used to perform consistency determination on two user gesture images. When the consistency determination fails, both user gesture images are invalid; when the consistency determination passes, any user gesture image is selected to match with a preset gesture image in a preset gesture library, and the preset gesture image that successfully matches is set as the execution gesture; and An operation execution module, used to execute corresponding operations according to the execution gesture; The consistency determination module comprises: A color and contour feature determination unit, used to obtain color features and contour features of two user gesture images, wherein the color feature is a pixel mean value and the contour feature is a phash value; A color similarity determination unit, used to obtain color feature similarity according to a difference between pixel means of two user gesture images; a contour similarity determination unit, configured to obtain contour feature similarity according to a Hamming distance of phash values of two user gesture images; and The total similarity determination unit is used to obtain a total similarity value between two user gesture images according to the color feature similarity and the contour feature similarity, and compare the total similarity value with a first preset value to obtain a consistency determination result.
6. The human-computer interaction system based on gesture recognition according to claim 5, characterized in that: The operation execution module includes: An operation program calling unit, used to call an execution operation program set by a preset gesture image corresponding to an execution gesture, wherein a plurality of preset gesture images are uploaded to the preset gesture library, and each preset gesture image is set with an execution operation program; The program execution unit is used to execute corresponding operations according to the execution operation program.
7. The human-computer interaction system based on gesture recognition according to claim 5, characterized in that: The system further comprises an accompanying gesture generation module, which comprises: a continuous execution gesture counting unit, which counts all types of continuous execution gestures in history at preset intervals, wherein the continuous execution gestures refer to two consecutive execution gestures; an accompanying gesture determining unit, which determines that a continuously executed gesture is an accompanying gesture when the continuously executed gesture reaches a second preset value; and The accompanying gesture importing unit is used to import the accompanying gesture into the accompanying gesture library.
8. The human-computer interaction system based on gesture recognition according to claim 7, characterized in that: The system further includes an accompanying gesture image module, which includes: an accompanying gesture adding unit, configured to receive a preset accompanying gesture adding command, wherein the preset accompanying gesture adding command includes an accompanying gesture and a preset gesture image; and The accompanying preset gesture importing unit is used to import the preset gesture image into the preset gesture library and record two execution operation programs corresponding to the accompanying gesture. When the preset gesture image is set as an execution gesture, two operations will be executed successively.
