Gesture voting triggering method and device, equipment and storage medium

By using tracking tags to maintain the sliding window in gesture recognition and combining the occurrence count and confidence level as dual thresholds, the problems of jitter and missed detection in gesture recognition are solved, and stable judgment and reliable execution of gesture commands are achieved.

CN123182301APending Publication Date: 2026-11-27SHENZHEN EMEET TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611540065.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-30
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, single-frame jitter and brief missed detections in gesture recognition results can lead to gesture determination failures and make it impossible to stably execute device actions.

Method used

By maintaining a sliding window that advances frame by frame using tracking identifiers as keys, the occurrence frequency and confidence average of gesture categories are statistically analyzed, and a dual-threshold determination is used to output gesture trigger events. The stable state is latched, and the occurrence frequency drops below the third threshold when the armed state is restored.

Benefits of technology

Under conditions of brief target misses, batch boundary segmentation, and interference from multiple people, the system can stably determine gesture commands and avoid false triggers, thus achieving stability and reliability of gesture commands.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182301A_ABST
    Figure CN123182301A_ABST
Patent Text Reader

Abstract

The application discloses a gesture voting triggering method and device, equipment and storage medium, relates to the technical field of image processing, and includes the following steps: obtaining a detection result of a target image set, the detection result including a tracking identifier, a gesture category and a gesture confidence; a sliding window is maintained with the tracking identifier as a key, and the detection result is written into the sliding window; the number of occurrences of each gesture category in the sliding window and the average value of the gesture confidence are counted; when the double-threshold judgment is passed, a gesture triggering event is output, and the target and the gesture category are set to a latching state; when the number of occurrences of the gesture category in the sliding window is not greater than a third threshold in the latching state, the target and the gesture category are set to an armed state. By maintaining the sliding window and writing the detection result, triggering and latching after the double-threshold judgment, and restoring the armed state when the number of occurrences falls below the third threshold, the stability of gesture instruction judgment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and in particular to gesture voting triggering methods, devices, equipment and storage media. Background Technology

[0002] Conference and live streaming cameras generally support gesture control. After the camera captures images, the detection unit provides the bounding box, gesture category, and confidence level of each target in the frame. The main control unit then drives the pan-tilt motor to follow the target or switch the device's operating mode based on this information. However, due to jitter in single-frame gesture recognition results—the same hand might be classified as different categories in adjacent frames—and fluctuations in confidence level with hand posture and lighting, the device cannot directly execute actions based on a single frame result. It must aggregate the recognition results from multiple consecutive frames. Current methods aggregate in batches according to a fixed phase: the device maintains a global frame count and performs a summary after a fixed number of frames are accumulated. During the summary, the most frequent gesture category within the batch is taken as the target's primary gesture, and its average confidence level is compared with a threshold. To avoid repeated judgments of the same gesture, the device uses a separate global flag to record the previously executed gesture category. This approach assigns a statistical slot to each target within the batch. When a target is not detected in a frame, its slot is set to idle and can be occupied by a newly appearing target and then cleared. The most obvious drawback of the existing approach is that the accumulated data is lost when a target is briefly missed. When a person is walking, if the target is blocked by a foreground object for one frame, or if the detection unit does not output the detection result of the target in a certain frame, its statistical slot will be set to idle and can be occupied by a newly appearing target. The previously accumulated gesture records will then be lost, and they must be accumulated again. This means that a gesture that has lasted for several frames cannot meet the judgment conditions due to the missed detection of a certain frame, and the gesture judgment fails.

[0003] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention

[0004] The main purpose of this application is to provide a gesture voting triggering method, device, equipment and storage medium, which aims to solve the technical problem of insufficient stability in gesture command judgment.

[0005] To achieve the above objectives, this application proposes a gesture-based voting triggering method, the method comprising: Obtain the detection results of the target image set, the detection results including tracking identifiers, gesture categories, and gesture confidence; A sliding window is maintained corresponding to the detected target using the tracking identifier as the key, and the detection result of the target is written into the sliding window of the target; The frequency of each gesture category within the sliding window corresponding to the target and the average gesture confidence level are statistically analyzed. When the frequency of occurrence of the gesture category and the average value of the gesture confidence pass the dual threshold determination, a gesture trigger event with the target as the initiator is output, and the target and the gesture category are set to a latched state; When the target and the gesture category are in a latched state, if the number of times the gesture category appears in the corresponding sliding window is no greater than a third threshold, the target and the gesture category are set to an armed state.

[0006] In one embodiment, the step of maintaining a corresponding sliding window for the detected target using the tracking identifier as the key, and writing the detection result of the target corresponding to the current frame into the sliding window of the target, includes: A sliding window is maintained for the detected target using the tracking identifier as the key; When the gesture category in the detection result of the target corresponding to the current frame is not a preset gesture category or no gesture category, write a no gesture placeholder record to the sliding window corresponding to the target; When the gesture category in the detection result of the target corresponding to the current frame belongs to a pre-defined gesture category, the gesture category and the confidence level of the gesture are written into the sliding window corresponding to the target; The number of frames in which each target fails to acquire the detection result is counted. When the number of frames in which the target fails to acquire the detection result reaches a preset recycling condition, the sliding window corresponding to the target is recycled, and the latching state of the gesture category of the target is cleared.

[0007] In one embodiment, the step of maintaining a sliding window corresponding to the detected target using the tracking identifier as the key includes: Based on the tracking identifier, the target slot corresponding to the target is found in the slot table. The target slot records the tracking identifier, window write position and latch bitmap of the target. When the target is found to be in the target slot, the detection result of the target is written to the storage cell indicated by the window writing position, and the window writing position is moved forward one cell. When the target is not found in the target slot, an empty slot is allocated to the target, the window write position and latch bitmap of the allocated empty slot are cleared, the tracking identifier is written, and the detection result of the target is written to the storage cell indicated by the window write position.

[0008] In one embodiment, the step of calculating the average number of occurrences of each gesture category within the sliding window corresponding to the target and the average gesture confidence score includes: For the current objective, the sum of the occurrence counts and gesture confidence scores for each gesture category is reset to zero. Iterate through the sliding window corresponding to the target, skip the records that are the no-gesture placeholder records, and for the records that are the gesture category, increment the occurrence count of the corresponding gesture category and accumulate the corresponding gesture confidence value accordingly. The average value of the gesture confidence score for each gesture category is determined based on the cumulative value of the gesture confidence score and the frequency of occurrence of the gesture category.

[0009] In one embodiment, the step of determining when the frequency of occurrence of the gesture category and the average confidence level of the gesture pass the dual-threshold determination further includes: Obtain the minimum re-trigger interval count corresponding to the target and the gesture category; When the minimum re-trigger interval count is positive, the target and the gesture category are prohibited from participating in the dual threshold determination; When the minimum re-trigger interval count is not positive, the minimum re-trigger interval count is decremented, allowing the target and the gesture category to participate in the dual threshold determination in this frame.

[0010] In one embodiment, the step of outputting a gesture trigger event with the target as the initiator when the average occurrence frequency of the gesture category and the gesture confidence score pass the dual-threshold determination, and setting the target and the gesture category to a latched state, includes: The frequency of occurrence of the gesture category is compared with a first threshold, and the average gesture confidence score of the gesture category is compared with a second threshold. When the occurrence frequency is not less than the first threshold, the average value of the gesture confidence is not less than the second threshold, and the target and the gesture category are in an armed state, a gesture trigger event is output, and the target and the gesture category are set to a latched state.

[0011] In one embodiment, the step of setting the target and the gesture category to an armed state when the target and the gesture category are in a latched state, and the number of times the gesture category appears in the corresponding sliding window is no greater than a third threshold, includes: When the target and the gesture category are in a latched state, the number of occurrences of the gesture category is compared with the third threshold; When the number of occurrences of the gesture category is not greater than the third threshold, the target and the gesture category are set to an armed state; When the number of occurrences of the gesture category exceeds the third threshold, the target and the gesture category remain in a latched state. Wherein, the third threshold is smaller than the first threshold, and the third threshold and the first threshold form a hysteresis band.

[0012] Furthermore, to achieve the above objectives, this application also proposes a gesture voting triggering device, which includes: The result acquisition module is used to acquire the detection results of the target image set, including tracking identifiers, gesture categories, and gesture confidence. The result writing module is used to maintain a corresponding sliding window for the detected target with the tracking identifier as the key, and write the detection result of the target into the sliding window of the target; The data statistics module is used to count the number of occurrences of each gesture category and the average gesture confidence level within the sliding window corresponding to the target. The determination output module is used to output a gesture trigger event with the target as the initiator when the frequency of occurrence of the gesture category and the average value of the gesture confidence pass the dual threshold determination, and to set the target and the gesture category to a latched state. The state setting module is used to set the target and the gesture category to an armed state when the target and the gesture category are in a latched state and the number of times the gesture category appears in the corresponding sliding window is no greater than a third threshold.

[0013] In addition, to achieve the above objectives, this application also proposes a gesture voting triggering device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the gesture voting triggering method as described above.

[0014] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the gesture voting triggering method described above.

[0015] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the gesture voting triggering method described above.

[0016] One or more technical solutions proposed in this application have at least the following technical effects: This application proposes a gesture voting triggering method, apparatus, device, and storage medium. It acquires the detection results of a target image set, including tracking identifiers, gesture categories, and gesture confidence levels. A sliding window is maintained for each detected target using the tracking identifier as the key, and the detection results of the target are written into the target's sliding window. The occurrence frequency of each gesture category within the sliding window corresponding to the target is statistically analyzed, along with the average gesture confidence level. When the occurrence frequency of the gesture category and the average gesture confidence level pass a dual-threshold judgment, a gesture triggering event with the target as the initiator is output, and the target and the gesture category are set to a latched state. While the target and the gesture category are in the latched state, if the occurrence frequency of the gesture category within the corresponding sliding window is not greater than a third threshold, the target and the gesture category are set to an armed state. By maintaining a frame-by-frame sliding window for each target using the tracking identifier as the key and writing the detection results, combined with triggering and latching after a dual-threshold judgment based on the occurrence frequency and average confidence level, and only restoring armed status when the occurrence frequency drops below the third threshold, a gesture command can be stably determined even under conditions of brief target misses, batch boundary segmentation, and interference from multiple users. Attached Figure Description

[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart illustrating Embodiment 1 of the gesture voting triggering method of this application; Figure 2 This is a schematic diagram of the module structure of the gesture voting triggering device according to an embodiment of this application; Figure 3 This is a schematic diagram of the device structure of the hardware operating environment involved in the gesture voting triggering method in the embodiments of this application.

[0020] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0021] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0022] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0023] The main solution of this application embodiment is as follows: Obtain the detection results of a target image set, the detection results including tracking identifiers, gesture categories, and gesture confidence scores; maintain a corresponding sliding window for the detected target using the tracking identifier as the key, and write the detection results of the target into the target's sliding window; count the occurrence frequency of each gesture category and the average gesture confidence score within the sliding window corresponding to the target; when the occurrence frequency of the gesture category and the average gesture confidence score pass a dual-threshold judgment, output a gesture trigger event with the target as the initiator, and set the target and the gesture category to a latched state; when the target and the gesture category are in the latched state, and the occurrence frequency of the gesture category within the corresponding sliding window is not greater than a third threshold, set the target and the gesture category to an armed state.

[0024] In this embodiment, for ease of description, the gesture voting triggering device will be used as the execution subject in the following description.

[0025] Conference and live streaming cameras generally support gesture control. After the camera captures images, the detection unit provides the bounding box, gesture category, and confidence level of each target in the frame. The main control unit then drives the pan-tilt motor to follow the target or switch the device's operating mode based on this information. However, due to jitter in single-frame gesture recognition results—the same hand might be classified as different categories in adjacent frames—and fluctuations in confidence level with hand posture and lighting, the device cannot directly execute actions based on a single frame result. It must aggregate the recognition results from multiple consecutive frames. Current methods aggregate in batches according to a fixed phase: the device maintains a global frame count and performs a summary after a fixed number of frames are accumulated. During the summary, the most frequent gesture category within the batch is taken as the target's primary gesture, and its average confidence level is compared with a threshold. To avoid repeated judgments of the same gesture, the device uses a separate global flag to record the previously executed gesture category. This approach assigns a statistical slot to each target within the batch. When a target is not detected in a frame, its slot is set to idle and can be occupied by a newly appearing target and then cleared. The most obvious drawback of the existing approach is that the accumulated data is lost when a target is briefly missed. When a person is walking, if the target is blocked by a foreground object for one frame, or if the detection unit does not output the detection result of the target in a certain frame, its statistical slot will be set to idle and can be occupied by a newly appearing target. The previously accumulated gesture records will then be lost, and they must be accumulated again. This means that a gesture that has lasted for several frames cannot meet the judgment conditions due to the missed detection of a certain frame, and the gesture judgment fails.

[0026] This application provides a solution that maintains a frame-by-frame sliding window for each target using tracking identifiers as keys and writes the detection results. After triggering and locking the detection results by combining the occurrence count and the average confidence level as dual thresholds, the system only resumes arming when the occurrence count drops below the third threshold. This allows for the stable determination of a single gesture command even under conditions of brief target misses, batch boundary segmentation, and interference from multiple users.

[0027] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or gesture voting triggering device capable of performing the above functions. The following description uses a gesture voting triggering device as an example to illustrate this embodiment and the subsequent embodiments.

[0028] Based on this, this application provides a gesture-based voting triggering method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the gesture voting triggering method of this application.

[0029] In this embodiment, the gesture voting triggering method includes steps S11 to S15: Step S11: Obtain the detection results of the target image set, the detection results including tracking identifiers, gesture categories, and gesture confidence.

[0030] It should be noted that the target image set refers to the sequence of image frames acquired and output by the camera at consecutive moments. It is the source of the detection results, providing frame-by-frame, temporally discernible raw observations for subsequent steps. The detection results are a structured description of each human target in each frame output by the target detection unit. Their function is to convert gesture information from the pixel domain into discrete data that can be voted on. The tracking identifier is the same number assigned by the target detection unit to the same target in consecutive frames. Its function is to associate the same person in different frames, enabling subsequent window maintenance to be performed on a person-by-person basis rather than a frame-by-frame basis. The gesture category is the type of hand shape determined by the detection unit. Its function is to serve as a candidate for voting, i.e., the subject of subsequent statistics and judgments. The gesture confidence is the degree of confidence attached when the detection unit assigns the gesture category. Its function is to characterize the reliability of this observation, providing a raw quantity for subsequent average confidence statistics.

[0031] Additionally, it should be noted that the gesture voting triggering method in this embodiment is applied to a camera device. The camera device includes a camera, a gimbal tilt motor, a gimbal yaw motor, and a main control unit. The camera is fixed to the load end of the gimbal, and its optical axis changes with the rotation of the gimbal tilt motor and the gimbal yaw motor. The image frames output by the camera are simultaneously used by the image signal processing unit and the target detection unit. The main control unit includes an image signal processing unit, a target detection unit, a gesture voting unit, and a mode control unit. The main control unit is also connected to an external host computer via a host computer interface unit.

[0032] The target detection unit is responsible for outputting the target bounding box, tracking marker, gesture category, and confidence level of each target in the frame frame by frame; the gesture voting unit is responsible for performing observation, window advancement, statistics, judgment, and status maintenance, and outputting gesture trigger events; the mode control unit is responsible for receiving the trigger events output by the gesture voting unit, switching the device's working mode according to the gesture category in the event, or enabling or stopping the gimbal tracking.

[0033] Understandably, the purpose of this step is to provide the entire voting chain with raw observation data that is temporally continuous, identity-distinguishable, and content-scalable. Gesture recognition suffers from jitter in a single frame; only by accumulating observations from multiple consecutive frames according to the same target can a stable conclusion be obtained. Therefore, it is necessary to first send the detection results of each frame completely to the subsequent stages, using a tracking marker that remains unchanged between adjacent frames, to string together the observations of the same person into a sequence. Only then can subsequent steps build windows by person rather than by frame. Because the detection results arrive frame by frame without pre-merging, the true start and end times of the gestures are preserved, and single-frame details are not lost. This provides both identity and temporal basis for accumulating observations according to the target, while avoiding the time delay caused by having to wait until the entire batch is completed to summarize.

[0034] Specifically, in one embodiment of this application, frame interruption reception is used. That is, the target detection unit pushes the detection results of all targets in the frame to the gesture voting unit after completing each frame. The gesture voting unit temporarily stores these results in the frame's reception buffer for subsequent steps to consume one by one. This method has the shortest latency and allows the decision-making process to run in parallel with the detection pipeline. In another embodiment of this application, query-based acquisition is used. That is, the gesture voting unit reads the detection results of the latest frame from the target detection unit when its processing cycle arrives. This method decouples the two cycles, making it convenient to use when the detection cycle and voting cycle are inconsistent. During acquisition, the detection results are validated, and entries with empty tracking identifiers or gesture confidence scores exceeding the range are removed. This method avoids dirty data entering subsequent windows and improves statistical robustness.

[0035] Step S12: Maintain a corresponding sliding window for the detected target using the tracking identifier as the key, and write the detection result of the target into the sliding window of the target.

[0036] It should be noted that the key refers to the index identifier used for searching and locating, which in this case is the tracking identifier. Its function is to accurately route the detection results of each frame to the dedicated storage area for that target, ensuring that observations from different targets are not mixed. The sliding window is a fixed-length record area allocated separately for that target, based on the tracking identifier. It is used to store observations of that target in the most recent few frames. Its function is to limit the time range of the statistics, ensuring that the statistics only reflect the gesture situation within the most recent period, and this range does not have fixed segment boundaries as each frame slides forward. Writing is the process of placing the observation of that target in the current frame as a record into the current position of the window, and its function is to update the window content as the frame progresses.

[0037] Additionally, it should be noted that the sliding window maintained by the gesture voting unit in this step is supported by three parts of storage: first, a slot table, where each slot records the target's tracking identifier, the number of consecutive frames without observation, the window write position, and the latch bitmap; second, window storage, which retains the gesture category and confidence level of the target for each slot in the most recent N frames; and third, a statistical buffer, which temporarily stores the occurrence count and confidence level sum for each gesture category. These three parts of storage are obtained by slicing contiguous memory allocated in a single alignment according to the configuration, and are returned all at once upon release. This ensures that the number of allocations and memory usage remain constant during runtime, preventing memory fragmentation.

[0038] Understandably, the purpose of this step is to organize the scattered detection results arriving frame by frame into a series of independently statistically valid recent observation sequences based on the target. The category and confidence level of the same target will fluctuate across frames; only by statistically analyzing the observations of the same target in the most recent few frames can a stable conclusion be obtained. Windows are built using tracking identifiers as keys, giving each target its own private recording area that does not interfere with each other. The write action updates the window with each frame. Because the window is a fixed-length record that slides frame by frame rather than batched according to a fixed phase, the start and end of the gesture are independent of the window boundaries, and a continuous gesture will not be split into two different statistical intervals. The observations of each target are isolated from each other and do not reference each other. This supports the independent validity of multiple people making different gestures simultaneously, while also ensuring that continuous observations of a single gesture are completely preserved within a single window, avoiding the decision failures caused by fixed-phase batching that separates gestures across batches.

[0039] Specifically, in one embodiment of this application, a circular buffer is used. A fixed number of storage cells and a write position are set for each target's window. After each record is written, the write position is moved forward one cell, returning to the first cell after reaching the last cell. This method does not move data, and the write time is independent of the window length, making it suitable for mainframes with limited computing power. In another embodiment of this application, a first-in-first-out (FIFO) queue is used. Each time a new record is written, it is placed at the tail of the queue and popped from the head. This method facilitates sequential traversal and is semantically intuitive. During writing, it distinguishes whether the frame contains a valid gesture observation. For valid observations, the gesture type and confidence level are written; for invalid cases, a placeholder record is written. This method ensures that the window progresses strictly frame by frame, preventing record gaps due to a lack of valid observations in a frame. The gesture voting unit can allocate an independent slot to each target to accommodate its window. The number of slots is configured according to the maximum number of concurrent users. When all slots are full, no new targets are accepted in the current frame, thus providing a predictable upper bound for memory usage.

[0040] Step S13: Calculate the average number of occurrences of each gesture category and the gesture confidence level within the sliding window corresponding to the target.

[0041] It should be noted that the frequency of occurrence refers to the number of frames observed for a particular gesture category within the window, and its purpose is to characterize the persistence and prevalence of that gesture in the recent time period. The average gesture confidence score is the arithmetic mean of the confidence scores of each observation of that gesture category within the window, and its purpose is to characterize the overall reliability of these observations. Statistical analysis is the process of traversing all records within the window and summarizing the above two quantities; its purpose is to compress the discrete frame-by-frame records within the window into two aggregated indicators that can be used for judgment.

[0042] Understandably, the purpose of this step is to transform the chaotic frame-by-frame observations within the window into two aggregated quantities that can be directly used for judgment: one is how many frames the gesture appeared in, and the other is the average reliability of these frames. Single-frame observations are subject to jitter; individual frames may exhibit high-confidence misidentifications or low-confidence correct identifications. If only a single frame is considered, a high-confidence single-frame misidentification would directly meet the criteria; if only the average reliability is considered, a series of low-confidence misidentifications over multiple frames might slip through. Therefore, it is necessary to quantify both the number of occurrences and the average reliability separately. The former reflects persistence to exclude isolated misjudgments, while the latter reflects the overall reliability level to exclude persistent low-quality misjudgments. The two complement each other. The statistical results simultaneously possess both time and quality dimensions, enabling subsequent judgments to reject both isolated, accidental misjudgments and persistent but low-quality misjudgments, overcoming the false triggering problem caused by setting only a single confidence threshold.

[0043] Specifically, in one embodiment of this application, statistics are performed sequentially target by target. This means that one target is processed first, its statistical buffer is cleared, and its window is traversed. After processing, the buffer is cleared again, and the next target is processed. This method requires only one statistical buffer, minimizing memory usage. In another embodiment of this application, statistics are accumulated separately according to gesture category. This involves setting up a frequency field and a confidence accumulation field for each gesture category. When traversing the window, the statistics are accumulated separately according to the category to which the record belongs. This method obtains both indicators for all categories in a single traversal, resulting in high efficiency. During traversal, placeholder records are skipped and not included in any category. This method ensures that invalid observations are only diluted in proportion and are not mistakenly counted as a gesture, avoiding contamination of the statistical results.

[0044] Step S14: When the frequency of occurrence of the gesture category and the average value of the gesture confidence pass the dual threshold determination, output a gesture trigger event with the target as the initiator, and set the target and the gesture category to a latched state.

[0045] It should be noted that dual-threshold judgment applies two criteria to the same gesture category simultaneously, and both criteria must be met for a judgment to be valid. Its purpose is to jointly control the judgment from two dimensions: the number of occurrence frames and the average reliability, avoiding misjudgments based on a single dimension. The "commander" is the target that makes the gesture and is therefore identified as the command issuer. Its function is to bind the trigger event to a specific person, allowing subsequent mode switching or gimbal following to clearly identify the target. The gesture trigger event is a notification message carried by the commander and the gesture category, output after the judgment is valid. Its function is to serve as an interface between the gesture voting process and the mode control, gimbal control, etc., allowing the judgment result to be consumed downstream. "Armed state" is the state where the target and the gesture category are allowed to output trigger events. Its function is to mark that the combination is currently qualified to trigger. "Latched state" is the state where the target and the gesture category have output trigger events but will not output them again for the time being. Its function is to close the trigger channel for the combination during a continuous gesture.

[0046] Additionally, it should be noted that the gesture trigger event is received and consumed by the mode control unit after output. The mode control unit switches the device's operating mode according to the gesture category in the event: when switching to follow mode, the mode control unit enables the gimbal to follow, and the gimbal pitch and yaw motors rotate according to the position of the followed target, so that the camera's optical axis follows the target; when switching to standard mode, the mode control unit stops following and stops the gimbal pitch and yaw motors. The image signal processing unit sets the focus and metering areas according to the current operating mode. In follow mode, it takes the area where the followed target is located; in other modes, it takes the central area of ​​the image. The host computer interface unit reports the current operating mode and the identifier of the followed target to the external host. Neither the image signal processing unit nor the host computer interface unit participates in gesture determination; they only consume the determination results. The gesture trigger event carries the target's tracking identifier, gesture category, average confidence level, and the target bounding box of the most recent frame. The tracking identifier is used to determine the initiator, and the target bounding box is used for the gimbal motors to determine the following position, so that the determination results can be directly used by downstream hardware units.

[0047] Understandably, the purpose of this step is to output a clear instruction when the aggregation metric meets the conditions, while simultaneously preventing this continuous gesture from generating more outputs. The frequency of occurrence and average confidence level given by window statistics only indicate that the gesture is both continuous and reliable when both meet their respective requirements, at which point the output trigger event is reliable. Since a gesture physically lasts for several frames, if the trigger channel for that combination is not closed after output, the conditions may be met repeatedly in each frame during its duration, resulting in the same instruction being executed multiple times. Therefore, immediately after output, the combination of the target and the gesture category is switched to a latched state, preventing this combination from being eligible for output in subsequent frames. Because latching is set by combination, it only closes the channel for this specific combination, without affecting other targets or other gesture categories of the same target. This ensures that a consumable instruction is output promptly when the conditions are met, and that a continuous gesture only generates one output, without affecting the independent judgment of other gestures by oneself or others, overcoming the cross-target mutual inhibition problem caused by using a global flag to prevent repeated triggering.

[0048] Specifically, the process begins with a category-by-category comparison. This involves extracting the frequency and average confidence score of each gesture category within a target window and comparing them with corresponding criteria. This supports examining multiple categories for the same target separately, and outputting based on the criteria met. Simultaneously, a state criterion is overlaid during the comparison. In addition to the two aggregated indicators, it checks whether the target and gesture category are currently in an output-allowed state. Output is only performed when both are in an output-allowed state. This method separates the state machine from the threshold decision, resulting in clear logic. The output trigger event carries the target's tracking identifier, gesture category, average confidence score, and the target bounding box of the most recent frame. This allows the downstream mode control unit to switch operating modes and determine the object and area being followed by the gimbal.

[0049] Step S15: When the target and the gesture category are in a latched state, and the number of times the gesture category appears in the corresponding sliding window is no greater than the third threshold, set the target and the gesture category to an armed state.

[0050] It should be noted that the third threshold is the upper limit for the number of occurrences used to determine whether the gesture has been unlocked. Its function is to provide the criteria for determining the extent to which the gesture exits the window before it can be triggered again. In this step, the occurrence count specifically refers to the current number of frames in which the gesture category in the latched state has appeared within its window. Its function is to dynamically decrease as the window progresses, serving as an observation for unlocking. The sliding window here acts as a carrier for the decay of this observation over time, ensuring that each frame advancement during the latching period pushes earlier gesture observations out of the window, thus naturally decreasing the occurrence count. The armed state, which is the state that allowed output trigger events in the previous step, serves as the target state after unlocking, enabling the combination to regain output eligibility.

[0051] Understandably, the purpose of this step is to restore the combination from locked to triggerable again after a gesture ends, while avoiding premature restoration before the gesture has truly ended. The latched state closes the output channel of the combination; if permanently maintained, the same gesture cannot be triggered again, hence a release mechanism is necessary. The release timing should not be based on whether other actions have occurred, but rather on whether the gesture itself still occupies the window: because the window advances frame by frame, once the user stops, subsequent frames no longer record the observation of that gesture, and the frequency of the gesture decreases frame by frame as the window scrolls; when the frequency drops to the third threshold or below, it indicates that the gesture has essentially exited the observation range, and only then is the combination restored to armed state. The release criterion closely adheres to the persistence of the gesture itself, ensuring that it can regain trigger eligibility after the gesture ends, while also preventing premature release and duplicate triggering due to frame jitter while the gesture is still ongoing, making the state transition between gestures smooth and reliable.

[0052] Specifically, the release criterion is compared in each frame. In the judgment phase of each frame, the current occurrence count of the gesture category within the window is compared with a third threshold for combinations in the latched state. If the count is not greater than the third threshold, the combination is switched to an armed state. This method checks each frame, ensuring timely release. The comparison is performed immediately after the window advances, using the latest occurrence count written and counted in the current frame as the criterion. This method ensures strict synchronization between the criterion and the window state, preventing misjudgments based on outdated data from the previous frame. The release action is bound to state storage; upon release, the corresponding bit in the latch bitmap is simultaneously cleared. This method allows state reading and state writing to share the same storage, avoiding state inconsistencies. The release criterion is compared immediately after each frame's window advance and count. If the comparison is successful, the corresponding bit in the latch bitmap is immediately cleared, ensuring both criterion freshness and state consistency. Furthermore, the third threshold can be configured according to the desired release sensitivity. A smaller value requires a more complete exit from the window before re-arming, while a larger value results in more sensitive re-arming.

[0053] For example, in the case of a single person making a gesture and activating tracking, the window length in this embodiment is 6 frames, the first threshold is 4, the second threshold is 0.60, the third threshold is 0, and the detection period is 60 ms. A single person is positioned approximately 2 m in front of the camera, making and maintaining a hand gesture, and their tracking identifier is recorded as ID=7. In the first frame, the target detection unit provides the tracking identifier ID=7, the target bounding box, and the hand gesture category with a confidence level of 0.71. The gesture voting unit assigns a slot to this target, and the observation is written into the first cell of the window. The confidence levels for the second to fourth frames are 0.68, 0.74, and 0.66, respectively, and are written into the second to fourth cells of the window sequentially. The fourth frame shows that the gesture category appears 4 times, reaching the first threshold. Its average confidence score is 0.6975. The calculation principle is to sum the confidence scores of the four observations of this category within the window (0.71, 0.68, 0.74, 0.66) to get 2.79, and then divide by the number of occurrences (4) to get 0.6975. This value is not less than the second threshold of 0.60. The target and this category are in an armed state, so the dual threshold judgment is passed. The gesture voting unit outputs a gesture trigger event with ID=7 as the initiator. The event carries the tracking identifier of ID=7, the outstretched hand category, the average confidence score of 0.6975, and the target bounding box of the most recent frame of the target. After receiving the event, the mode control unit immediately switches to the follow mode, enables the gimbal to follow, and the gimbal pitch motor and gimbal yaw motor rotate according to the position of ID=7. The image signal processing unit then sets the focus and metering area according to the area where the followed target is located. The host computer interface unit reports the current working mode and the identifier of the followed target to the external host. The target and its category are simultaneously set to a latched state. From frame 5 to frame 12, the gesture persists, and the number of times this category appears within the window is consistently no less than the first threshold of 4. This combination remains latched, therefore no further trigger events are output. After the user releases their hand, subsequent frames no longer record the open-hand observation but rather a no-gesture placeholder record. The number of times this category appears within the window decreases frame by frame. The calculation principle is that for each frame advancement, one oldest record is removed; if the removed record is the one containing the gesture, its appearance count is reduced by one. When the appearance count drops to 0 and is no greater than the third threshold of 0, the category reverts to an armed state.

[0054] This embodiment, through the above-described scheme, acquires detection results carrying tracking markers frame by frame and maintains a sliding window for each target using the tracking markers as keys, advancing frame by frame. This ensures that observations of the same target in the most recent frames are always clustered within a recording area that scrolls with the frames. This avoids the segmentation of continuous gestures by eliminating fixed-phase batch boundaries and prevents the clearing of existing observations when individual frames are not detected. Furthermore, by statistically analyzing the occurrence frequency and average confidence of each gesture category within the window and using dual thresholds for control, isolated high-confidence misidentifications and continuous low-confidence misidentifications cannot meet the judgment criteria. Once a judgment is made, a trigger event with the target as the initiator is output and latched according to the combination of target and gesture category. This ensures that a continuous gesture generates only one trigger and that the same gesture from different targets does not inhibit each other. During the latching period, the occurrence frequency of the gesture naturally decays as the window advances, only resuming armed when it drops below the third threshold. This ensures that the gesture can regain trigger eligibility after the gesture ends without prematurely releasing it during the gesture's duration. The above steps are interconnected. Under the premise that memory usage and single-frame time are predictable, it can stably determine a single gesture command from the gesture recognition results of multiple consecutive frames in a multi-person scenario. Moreover, this determination is not affected by the temporary missed detection of the target, batch boundary segmentation, or the gestures of others.

[0055] Based on the above implementation scheme, in one feasible implementation, the step of maintaining a corresponding sliding window for the detected target using the tracking identifier as the key, and writing the detection result of the target corresponding to the current frame into the sliding window of the target includes S21~S24: Step S21: Maintain a corresponding sliding window for the detected target using the tracking identifier as the key.

[0056] It should be noted that the tracking identifier is the same number assigned by the detection unit to the same target in consecutive frames, serving as the basis for window creation. The key is an index identifier used for searching and locating; here, the tracking identifier is used as the retrieval entry point, distinguishing each target's window from those of other targets. Detected targets are those targets for which the detection unit has provided detection results in the current frame or recent frames; their function is to limit the scope of window creation, allocating recording areas only to targets that have actually appeared. The sliding window is a fixed-length recording area specifically allocated for that target, used to store its observations in the most recent few frames; its function is to limit the statistical time range and make this range scroll with the frames. Maintenance refers to a set of operations for allocating, maintaining, and releasing the target's window when necessary, ensuring that the window's lifecycle matches the target's appearance process. The technique used in this step is a fixed-length window allocation technique based on key-based table creation: using the tracking identifier as an index, a fixed-length recording area dedicated to that target is located or created within the window set, ensuring that the size of the window set is determined by the upper limit of concurrent targets rather than the number of frames.

[0057] Understandably, the purpose of this step is to establish and maintain an independent, fixed-length recently observed record area for each person who has appeared. Gestures from different people must be counted separately to ensure their validity. Using tracking identifiers as keys to create windows uniquely determines window ownership. The same target will always hit the same window in adjacent frames because the identifier remains unchanged, allowing for the accumulation of observations across frames. The fixed window length ensures a constant storage footprint for each target, and the total storage footprint of all windows is bounded by the maximum number of concurrent users. Maintenance actions ensure that a window is created when a target first appears and maintained during continuous appearances, thus aligning the window's existence with the person's presence. Each target has its own private record area, and when multiple people simultaneously perform different gestures, their observations and statistics are isolated and do not reference each other. Simultaneously, storage usage is predictable, making it suitable for controllers with limited computing power and memory.

[0058] Specifically, each target is allocated an independent window storage area, with each target's window consisting of a fixed number of storage cells determined during configuration. This method ensures a constant storage volume per target. Secondly, a window index is established using tracking identifiers. During each frame's processing of detection results, the target's window is located by the identifier and written to. This method provides direct lookup without traversing all windows. A new window is created and initialized when a target first appears, and the window remains open throughout the target's continuous appearance. This method ensures that windows are created and recycled only upon target appearance and timeout, without repeated reconstruction across frames. Using tracking identifiers to establish window locations, combined with independent fixed-length storage areas and a creation / recycling strategy based on target lifecycles, ensures efficient lookup and predictable memory usage while maintaining isolation between target observations. Furthermore, the gesture voting unit can concentrate all windows in a contiguous memory block, slicing them by target and returning them all at once during release, avoiding fragmentation caused by repeated allocation during runtime.

[0059] Step S22: When the gesture category in the detection result of the target corresponding to the current frame is not a preset gesture category or no gesture category, write a no gesture placeholder record into the sliding window corresponding to the target.

[0060] It's important to note that the pre-defined gesture categories are the set of gesture types supported by the device and participating in the voting process. Their purpose is to define the range of valid votes; only categories belonging to this set can be counted as a vote for a particular gesture. The "no gesture" category indicates that the detection results show no valid gesture has been made, meaning that although the target exists in the frame, there is no usable gesture information. A "no gesture placeholder" record is a special record indicating that no valid gesture observation was captured in the frame. Its purpose is to occupy a position in the window to maintain the window's frame-by-frame progression, but it is excluded from the statistics because it does not represent any specific gesture. Writing this placeholder record places it in the current position of the window, ensuring that the window is not empty due to the lack of valid gestures in the current frame.

[0061] Understandably, the purpose of this step is to ensure that even when no valid gesture is observed in a frame, the window still advances one frame at a time without miscounting that frame as a gesture vote. The window essentially records the most recent frames. If no valid gesture is observed in a frame and no content is written, the window will be out of sync with the actual frame sequence of the target, and the frequency of occurrence will be overestimated. Conversely, if no gesture is forcibly recorded as a gesture, it will pollute the statistics. Therefore, a placeholder record that does not represent any gesture is written. This placeholder occupies one frame to maintain the one-to-one correspondence between the window and the frame, but does not participate in any category counting or summation in subsequent statistics; it only serves to dilute the proportion of that gesture within the window. The window is always full and advances strictly frame by frame. When a target is not detected or no valid gesture is made in an individual frame, its existing records are still retained in the window, only diluted by the placeholder record, thus avoiding the complete loss of existing accumulations caused by the release and clearing of statistical slots.

[0062] Specifically, in one embodiment of this application, frames whose gesture category is "no gesture" are directly written into a placeholder record. This method covers the case where the hand is not recognized. In another embodiment of this application, frames whose gesture category is not empty but does not belong to a pre-defined category set are also written into a placeholder record. This method covers the case where the recognition result falls outside the supported range, preventing out-of-bounds categories from being treated as valid tickets. Furthermore, in the case where no target detection result is obtained in the current frame, the gesture category of the target in this frame is regarded as "no gesture" and written into a placeholder record. This method covers the case where the target is temporarily occluded and missed, so that missed frames are also placed in place without losing records. While writing the placeholder record, the writing position is moved forward in the same way as other records. This method ensures that the placeholder record and the valid observation are completely equivalent in window advancement.

[0063] For example, in the case where the target is briefly obscured during a gesture, this embodiment uses a window length of 6 frames, a first threshold of 4, a second threshold of 0.60, and a third threshold of 0. When the user's outstretched hand gesture is obscured by a foreground object, it is not detected in frames 3 and 4. The observations in frames 1 and 2 are of the outstretched hand category, with confidence levels of 0.72 and 0.70 respectively, and are written to the first and second cells of the target window. In frames 3 and 4, the gesture voting unit 207 writes a record of no gesture occupancy to the target window; the slot and existing records are retained, neither released nor cleared, and the writing position is shifted forward frame by frame. The target is detected again in frames 5 and 6, with confidence levels of 0.69 and 0.73 respectively, and is written to the fifth and sixth cells. The sixth frame shows that the "open hand" category appeared 4 times within the 6-frame window, reaching the first threshold. Its average confidence level is 0.71. This is calculated by summing the confidence levels of the four observations of this category within the window (0.72, 0.70, 0.69, 0.73) to obtain 2.84, then dividing by the number of occurrences (4) to get 0.71. This value is not less than the second threshold, and the voting unit outputs a trigger event. In contrast, when processing the same observation segment using a fixed-phase batching method, if the target is not detected in the third frame, the statistical slot is released, and the records in the first and second frames are cleared. Subsequent accumulations need to be restarted, thus preventing the potentially valid gesture determination from being completed.

[0064] Step S23: When the gesture category in the detection result of the target corresponding to the current frame belongs to a preset gesture category, write the gesture category and the gesture confidence into the sliding window corresponding to the target.

[0065] It should be noted that the pre-defined gesture category is a set of gesture types supported by the device and participating in the voting process. Its function is to serve as the admission criterion for valid votes; only observations falling into this set are written as valid votes. The gesture category is the type of hand shape identified for the target in this frame, and its function is to determine which category the vote belongs to in subsequent statistics. The gesture confidence score is the level of confidence associated with this judgment in this frame. Its function is to be written into the window as the raw quantity for calculating the average confidence score, so that the window records not only the category but also the level of confidence. Writing involves placing the category and confidence score pair into the current position of the window, making this frame a valid vote within the window.

[0066] Understandably, the purpose of this step is to store truly valid gesture observations within the device's supported range in each frame, along with their confidence level, into the target's window, making them valid tickets for subsequent statistics. Only observations belonging to a preset category set are meaningful for instruction determination; out-of-bounds or empty observations are treated as placeholders and not counted as valid tickets. The category and confidence level are written in pairs, allowing subsequent statistics to both count by category to obtain the number of occurrence frames and sum by category to obtain the average confidence level. Both aggregated values ​​directly originate from the paired records within the window. Because the writing is strictly frame-by-frame, the order of records within the window corresponds to the chronological order, thus the frequency of occurrence accurately reflects the number of frames occupied by the gesture in the most recent time period. Valid tickets within the window are both complete and pure, containing neither out-of-bounds nor empty observations, and possessing both category and quality dimensions, providing a reliable data foundation for subsequent dual-threshold determination.

[0067] Specifically, before writing, it is determined whether the gesture category belongs to a pre-defined category set. If it does, it is written; otherwise, it is treated as a placeholder. This method ensures that only supported gestures become valid tickets. The gesture category and its confidence score are written as a whole to the current storage cell, binding the category and confidence score in storage. This method avoids misalignment or overwriting of the two. After writing, the writing position is moved forward in the same way as other records. This method ensures that valid tickets and placeholder records are consistent in window advancement, and the window scrolls strictly frame by frame. In the case of multiple detection results for the same target in the same frame, only the one with the highest confidence score is written. This method avoids duplicate counting of tickets in the same frame.

[0068] Step S24: Count the number of frames in which each target has not obtained the detection result. When the number of frames in which the target has not obtained the detection result reaches the preset recycling condition, reclaim the sliding window corresponding to the target and clear the latch state of the target's gesture category.

[0069] It should be noted that the number of consecutive frames without detection results is the count of frames in which a target has not appeared in the detection results since its most recent detection. Its purpose is to measure the duration of the target's absence from the screen. The preset reclamation condition is used to determine if a target has truly left and its window is no longer retained; this is usually manifested by the count reaching a certain threshold, distinguishing between brief missed detections and genuine departure. Reclamation releases the window and its associated state storage occupied by the target, making it available for newly appearing targets and preventing limited storage resources from being occupied by departing targets for extended periods. The latched state is the temporarily non-triggered state of the combination of the target and its gesture category, preventing repeated triggering. Clearing resets the latched records of all gesture categories under the target, preventing the target's latched state from remaining and being incorrectly inherited by subsequent new targets reusing the same storage.

[0070] Understandably, the purpose of this step is to release the window and state of departing targets for use by others, while distinguishing between brief missed detections and genuine departures, and to prevent residual states from contaminating subsequent users. When a target is briefly obscured, its window must be retained to continue the existing accumulation. However, if the window is retained even after the target has left the screen, the limited slots will be quickly exhausted. Therefore, the number of consecutive frames that are not detected is counted for each target: this count is reset to zero when the target is detected and accumulated when it is not detected. Only when it continues to accumulate to a preset recycling condition is it considered that this is not a brief obscuration but a genuine departure, at which point the window is recycled. During recycling, the latched states of each gesture category under that target are also cleared because the latched states are attached to the target's storage. If they are not cleared, the same storage space allocated to a new target will carry the previous latch residue, causing the new target to be unnecessarily suppressed. During brief missed detections, the window and existing records are intact. After a genuine departure, the resources are released in a timely manner and can be reused by the new target. This ensures that the judgment is not affected by missed detections, and that storage occupancy has an upper bound and does not generate state crosstalk.

[0071] Specifically, a count of consecutive undetected frames is maintained for each target. When processing the detection results for each frame, the count is reset to zero for detected cases and incremented by one for undetected cases. This method measures the off-field duration in frames, ensuring objective criteria. When the count reaches a preset retrieval condition, the target's window is retrieved, and its latched state and other attached states are cleared simultaneously. This method ensures thorough retrieval and avoids residue. After retrieval, the slot occupied by the target is marked as free, allowing it to be allocated to newly appearing targets. This method enables the limited slots to be used in scenarios where multiple targets appear in turn. If a retrieved tracking marker reappears, it is treated as a new target, and slots and windows are reallocated and initialized. This method has clear semantics and avoids confusion between old and new observations.

[0072] This embodiment, through the above-described scheme, builds windows for each target using tracking identifiers as keys. It then performs normalized placeholder writing and paired writing of category confidence for invalid and valid observations, ensuring the window advances one frame at a time without gaps. Even when a target is not detected or does not perform a valid gesture in a particular frame, its existing records are fully retained within the window, diluted only by placeholder records rather than being cleared. Simultaneously, it counts the number of consecutive frames for which no detection results are obtained for each target. Only when continuous non-detection reaches a preset retrieval condition is the window reclaimed and the latched state cleared, thus distinguishing between brief missed detections and genuine departure. These steps work together to ensure the judgment is unaffected by brief missed detections and prevents targets leaving the screen from occupying storage for extended periods. Storage occupancy has an upper bound, and new targets reusing storage do not inherit previous latch residues, further guaranteeing the stability and resource determinism of gesture determination in multi-person scenarios.

[0073] Based on the above implementation scheme, in one feasible implementation, the step of maintaining a sliding window corresponding to the detected target using the tracking identifier as the key includes S31~S33: Step S31: Based on the tracking identifier, find the target slot corresponding to the target in the slot table. The target slot records the tracking identifier, window write position and latch bitmap of the target.

[0074] It should be noted that the slot table is a storage structure composed of several fixed-size slots. Each slot is used to hold all voting states of a target. Its function is to centrally manage the windows and states of each target and to constrain the total number by configuration. The target slot is the slot in the slot table currently assigned to a target, and its function is to serve as a container for the target's window and state. The tracking identifier is the same number given by the detection unit for the same target in consecutive frames, and its function is to serve as the key value for retrieving the target slot in the slot table. The window write position is the storage cell number where the target window should fall next, and its function is to identify the current progress position of the window, so that writing and advancement can be precisely located. The latch bitmap is a storage field in which binary bits correspond to each gesture category. Each bit indicates whether the combination of the target and the corresponding gesture category is in a latched state. The latched states, organized in two dimensions by target and gesture category, are compressed and stored in a single field.

[0075] Understandably, the purpose of this step is to quickly locate the storage unit containing the target's window and state when processing the detection result of a target in each frame, so that subsequent writes and state reads / writes operate on the correct object. Each target's window and latched state must be mapped one-to-one to a specific person; dynamically searching or rebuilding each time would be costly and prone to errors in attribution. The state of all targets is placed in a fixed-length slot table and retrieved using the tracking identifier as the key. A match indicates that the target has previously had a window created and is continuously present; all subsequent operations operate on this slot. The window write position and latch bitmap are used as fields for this slot, allowing the window progress and latched state to be located along with the slot, eliminating the need for secondary searches. Since the slot table length is determined during configuration, the total number of slots is controlled; when all slots are full, no new targets are accepted, thus storage usage has an upper bound. Target state location and retrieval are efficient and uniquely determined; window progress and latched state are centrally managed along with the slots, providing a unified storage foundation for subsequent frame-by-frame writing and combination-by-combination setting, while making memory usage predictable and configurable.

[0076] Specifically, the tracking identifier field of each slot in the slot table is compared sequentially using the tracking identifier as the key. If they match, a match is found. This method is simple to implement and requires no additional index structure. A mapping from tracking identifier to slot number is maintained for the slot table, and the location is directly located by the mapping. This method is faster when there are many slots. At the beginning of each frame, the observation flag of all existing slots is set to "not acquired" for this frame. Then, the flag is set to "acquired" one by one as the detection results are obtained. This method allows undetected targets to be identified in subsequent steps. The fields of each slot in the slot table are divided once during configuration, including tracking identifier, window write position, latch bitmap, and the starting offset of the window storage area. This method makes the slot structure fixed and does not change during runtime.

[0077] Step S32: When the target is found to be in the target slot, the detection result of the target is written into the storage cell indicated by the window writing position, and the window writing position is moved forward one cell.

[0078] It should be noted that a "hit" means that a target slot with a matching tracking identifier was found in the slot table. This indicates that the target has already had a window established and remains present, therefore its existing window and state should be used. The window write position is the storage cell number recorded in the slot where the next write should fall. Its function is to precisely locate the target storage cell for this write. A storage cell is a fixed-size unit within the window storage area, used to store a single record. Its function is to serve as the smallest unit of the window; several storage cells constitute a fixed-length window. Writing involves placing the detection result of the target in the current frame into this storage cell, making the observation in the current frame the latest record within the window. Moving forward one cell moves the write position sequentially along the window to the next cell, returning to the first cell after reaching the last cell. Its function is to indicate that the window has advanced one frame and is ready for writing in the next frame.

[0079] Understandably, the purpose of this step is to accurately append the observations of the target in the current frame to the next available position in its existing window, and to scroll the window forward one frame. When the target is continuously present, its window is already established and contains records from previous frames; therefore, it is only necessary to append to the existing window without rebuilding it. The write position of the record in the slot is the next cell after the last write, and writing the observations of the current frame to this cell ensures that the records are sequentially arranged in time. After writing, the write position is moved forward one cell, so that the pointer always points to the next position to be written. When the pointer reaches the last cell, it returns to the first cell, and the earliest cell is thus overwritten by the newest record, ensuring that the window content always reflects the most recent frames. Since writing only targets the single storage cell pointed to by the pointer and does not involve data movement, the time spent writing a single frame is independent of the window length. The window is strictly updated frame by frame with extremely low overhead, always maintaining a complete record of the target's most recent frames, without repeatedly building windows due to continuous presence or increasing overhead due to data movement.

[0080] Specifically, the storage cell address is calculated based on the write position recorded in the slot and written to the current frame record. This method provides direct positioning and constant write overhead. The written content is distinguished according to the nature of the observation in the current frame. For valid observations belonging to the preset category, the category and confidence level are written. For observations without gestures or out-of-bounds, a placeholder record is written. This method makes valid tickets and placeholder tickets equivalent in storage. After writing, the write position is incremented by one and wraps back to the first cell when it exceeds the last cell of the window. This method uses modulo operation to achieve circular progression without moving any existing records. Fourth, when the write position wraps back to the first cell, it means that the earliest frame record is overwritten. This method makes the window automatically discard the oldest observation.

[0081] For example, in this embodiment, the window length is set to 6 frames, the first threshold is 4, the second threshold is 0.60, the third threshold is 0, and the number of slots is 5. Person A and Person B are simultaneously in the frame. Person A makes an open-hand gesture, and Person B makes a "six" gesture. The gesture voting unit assigns one slot to each of Person A and Person B. The windows of the two slots are independent of each other; after hitting their respective slots, the data is written to their respective windows. In the 4th frame, Person A's open-hand category reaches both thresholds, outputting a trigger event with Person A as the initiator, and Person A and the open-hand category are latched. In the 5th frame, Person B's "six" category reaches both thresholds, outputting a trigger event with Person B as the initiator. The latch state of A only covers the combination of A and the open hand category. When B changes to the open hand gesture in frame 6, its judgment is not affected by A's latch state. It reaches the double threshold in frame 9 and outputs the trigger event. The calculation principle is that B accumulates the occurrence of the open hand category frame by frame from frame 6. By frame 9, it has accumulated 4 frames and the average confidence level is not less than the second threshold, so the judgment is valid. While A continues to maintain the open hand gesture, its occurrence count is not less than the first threshold, and no trigger event is output.

[0082] Step S33: When the target is not found in the target slot, an empty slot is allocated for the target, the window write position and latch bitmap of the allocated empty slot are cleared, and the tracking identifier is written. The detection result of the target is written to the storage cell indicated by the window write position.

[0083] It's important to note that a "miss" means no slot with a matching tracking identifier was found in the slot table. This indicates that the target has not previously created a window, is appearing for the first time, or was previously removed and reclaimed, thus requiring a new window to be created. An idle slot is a slot in the slot table that is not currently occupied by any target. Its purpose is to serve as a storage resource that can be allocated to new targets. Allocation assigns an idle slot to the target, providing it with a container to hold its window and state. Clearing resets the window write position, latch bitmap, and window storage area in the allocated slot to their initial state, eliminating any remnants left by the previous user and preventing state crosstalk between old and new targets. Writing the tracking identifier fills the target's tracking identifier into the slot's identifier field, establishing a binding relationship between the slot and the target, allowing subsequent frames to hit the slot based on this identifier.

[0084] Understandably, the purpose of this step is to establish a clean voting state for targets that appear for the first time or reappear, allowing them to accumulate from scratch without being affected by historical remnants. If a target is not matched in the slot table, it means there is no window under construction. Without allocating a new slot, observations cannot be accumulated for it. Allocating one from an available slot and first resetting the write position, latch bitmap, and window storage area is crucial because slots are repeatedly reused resources. Previous users may have left non-zero write positions, set latch bits, and old window records. If new target observations are written without clearing these, the new target will inherit a distorted window progress and set latch states, leading to statistical errors or unwarranted suppression. After resetting, a tracking flag is written to establish a binding, and then observations for the current frame are written according to the write position. This gives the target a clean and clearly defined starting window. From the initial value, the new target's window and state are unaffected by historical remnants and can be stably matched and continuously accumulated in subsequent frames according to the flag. Simultaneously, the slot, as a reused resource, rotates in an orderly manner when the target enters or leaves the frame.

[0085] Specifically, in one embodiment of this application, slots with empty tracking identifiers or marked as invalid are sequentially searched in the slot table as free slots and allocated. This method is simple to implement. In another embodiment of this application, a free slot linked list is maintained. During allocation, one slot is taken from the head of the linked list, and during recycling, it is added back to the linked list. This method has constant overhead for both allocation and recycling. After allocation, the window write position of the slot is reset to the first cell, all bits of the latch bitmap are cleared, and the entire window storage area is filled with placeholder records, so that the window of the new target starts from an empty state and unlocks. The tracking identifier of the detection result of this frame is written to the slot identifier field to complete the binding, so that subsequent frames can directly hit it. If all slots are occupied and there are no free slots, this frame will not accept new targets, so that memory usage has an upper bound and the worst case is predictable.

[0086] This embodiment, through the above-described scheme, places the maintenance of the target-by-target sliding window on the specific storage structure of the slot table. By retrieving the target slot in the fixed-length slot table using a tracking identifier, the window and state of each target are uniquely determined and can be quickly located. When a target is hit, it is written to the position recorded in the slot and the writing position is progressively moved in a circular manner. This ensures that the window of a continuously present target scrolls strictly frame by frame with minimal overhead, always maintaining the records of the most recent frames without needing to rebuild. When a target is missed, an empty slot is allocated, and the writing position and latch bitmap are reset as a whole, and then an identifier is bound before writing. This ensures that targets appearing for the first time or reappearing accumulate from a clean state without inheriting historical residue. The above steps isolate the observation and state of each target in storage while allowing for reuse. This ensures that each action is independent when multiple people are making gestures simultaneously, and that storage usage and single-frame operation overhead are predictable, making it suitable for main control units with limited computing power and memory.

[0087] Based on the above implementation scheme, in a feasible implementation, the step of calculating the average number of occurrences of each gesture category within the sliding window corresponding to the target and the average gesture confidence score includes S41~S43: Step S41: For the current target, reset the cumulative value of the occurrence count of each gesture category and the gesture confidence score to zero.

[0088] It's important to note that the current target is the specific objective being processed in this statistical analysis. Its purpose is to limit the scope of the statistics, ensuring that the analysis is performed target-by-target and not mixed with other targets. The gesture category refers to the various hand shapes participating in the vote, serving as a classification dimension for the statistics. Each category has its own independent count and summation fields. The occurrence count is the number of frames observed for a given gesture category within the window, serving as the first aggregation metric for subsequent decisions. The cumulative gesture confidence score is the sum of the confidence scores for each observation of a given gesture category within the window, serving as an intermediate measure for calculating the average confidence level. Resetting to zero resets all the above fields to zero, eliminating any remnants from the previous statistical analysis and ensuring that this statistical analysis starts from the initial values.

[0089] Understandably, the purpose of this step is to restore the intermediate variables used for aggregation to their initial values ​​before starting to statistically analyze a specific target, ensuring that the current statistical results only reflect the content of that target's own window. The statistical buffer is a shared resource reused by each target in turn. If it is not reset when processing a new target, the occurrence count and confidence score of the previous target will be added to the new target, leading to inflated counts, distorted averages, and ultimately, completely incorrect judgments. Therefore, when switching to each new target, the occurrence count and confidence score of all gesture categories must be cleared to zero, ensuring that each increment and summation in subsequent iterations starts from zero. The clearing covers all gesture categories, not just the currently focused category, because any category may appear within the window; only by resetting all categories can the statistics for any category be guaranteed to be pure. The statistical processes for each target are completely independent and do not reference each other. A single, minimal buffer can serve all targets, ensuring statistical accuracy while minimizing memory usage.

[0090] Specifically, in one embodiment of this application, an independent occurrence count field and confidence accumulation field are set for each gesture category. When switching to a new target, both fields for all categories are written to zero. This method provides complete coverage, leaving no category with any residue. In another embodiment of this application, a fixed-size statistical buffer is used and reset uniformly before processing the next target after processing one target. This method requires only one buffer to serve all targets, minimizing memory usage. The zeroing action is performed before traversing the window, ensuring that subsequent traversals are pure accumulation processes starting from zero. This method provides clear timing and avoids omissions.

[0091] Step S42: Traverse the sliding window corresponding to the target, skip the records that are the no-gesture placeholder records, and for the records that are the gesture categories, increment the occurrence count of the corresponding gesture category and accumulate the corresponding gesture confidence value.

[0092] It's important to note that traversal involves sequentially accessing each record in the window according to storage order, ensuring that all records within the window are examined without omission. The sliding window represents the most recent frames of the target, serving as the input set for this statistical analysis. Placeholder records without gestures are special records indicating that no valid gesture observations were captured in that frame; they occupy window space to maintain frame-by-frame progression but do not represent any gesture themselves. Skipping involves directly accessing the next record without counting or summing placeholder records, ensuring that invalid observations neither increase the occurrence count of any category nor participate in the summation of confidence scores for any category. Gesture category records are valid tickets in the window that record specific gesture categories and confidence scores, serving as the actual statistical objects. Incrementing the occurrence count increments the occurrence count field of the category to which the record belongs, accumulating the number of frames occupied by that category within the window. Accumulating the confidence score adds the confidence score of the record to the accumulation field of its category, accumulating the total confidence score of that category within the window.

[0093] Understandably, the purpose of this step is to aggregate the discrete records frame by frame within the window into two determinable aggregate quantities based on gesture category. The window contains both valid tickets and placeholder tickets. Valid tickets carry category and confidence level and should therefore be counted in their respective categories. Placeholder tickets do not represent any gesture and must be excluded. Including placeholder tickets in a category would artificially inflate the occurrence count of that category and pollute its confidence summation; discarding the entire record without exclusion would misalign the window and frames. Therefore, during traversal, placeholder records are skipped, allowing them to occupy space without contributing to the statistics. Valid records are incremented by one for each category, and their corresponding confidence levels are accumulated. Since each valid record belongs to only one category, the counting and summation of each category are independent, allowing for the simultaneous acquisition of both intermediate quantities for all categories in a single traversal. The statistical results accurately reflect the number of frames occupied by each category within the window and the total confidence level, while remaining completely unaffected by placeholder records, ensuring that brief missed detections only dilute the proportion and are not mistakenly counted as valid tickets.

[0094] Specifically, in one embodiment of this application, each cell of the window is accessed sequentially according to the physical order of the storage cells. This method does not require the records to be sorted by time, and the number of accesses is equal to the window length. In another embodiment of this application, the records are accessed sequentially in a circular order of the writing positions, starting from the oldest record and ending with the newest record. This method facilitates the combination of time information when needed. After reading each cell record, it is first determined whether it is a placeholder record. If it is, the next cell is accessed directly. Otherwise, its category and confidence level are taken and accumulated by category. This method completes the sorting with one judgment, with minimal overhead. Fixed-point accumulation is used for the confidence level to adapt to the main control computing power. This method avoids the overhead of floating-point operations.

[0095] Step S43: Determine the average value of the gesture confidence of the gesture category based on the cumulative value of the gesture confidence and the number of times the gesture category appears.

[0096] It should be noted that the cumulative confidence value of a gesture is the sum of the confidence values ​​of all observations of that gesture category within the window after traversal, used as the divisor for averaging. The occurrence count of a gesture category is the number of frames in which that gesture category appears within the window after traversal, used as the divisor for averaging, and also reflects the persistence of that category. The average confidence value of a gesture is the arithmetic mean of the confidence values ​​of all observations of that gesture category within the window; its purpose is to characterize the overall confidence level of these observations, serving as the second aggregate quantity for subsequent judgments. The determination process, which calculates this average value from the cumulative value and the occurrence count, transforms the two intermediate quantities obtained from traversal into a final indicator that can be directly compared with the criteria.

[0097] Understandably, the purpose of this step is to convert the sum of confidence scores obtained from the iteration into a comparable index independent of the number of observations, so as to compare it with a fixed confidence level criterion. The magnitude of the accumulated confidence score naturally increases with the number of frames in which the gesture appears. If it is not divided by the number of occurrences, it is impossible to distinguish between a few high-confidence observations and many medium-confidence observations, nor can it be directly compared with a fixed threshold. The arithmetic mean is obtained by dividing the accumulated value by the number of occurrences. The result is normalized to the range of single-frame confidence scores, reflecting how reliable these observations are on average. Categories with zero occurrences are not averaged because they have no items to be included in the summation, avoiding division by zero errors and avoiding mistaking non-occurring categories as low-confidence categories. The resulting average is independent of the number of observations and can therefore be directly compared with a fixed threshold. It also truly reflects the overall confidence level of the gesture within the window, enabling subsequent judgments to reject both accidental high-confidence misidentifications in a single frame and continuous but low-quality misidentifications.

[0098] Specifically, in one embodiment of this application, the arithmetic mean is calculated by dividing the cumulative value by the number of occurrences. Categories with a number of occurrences of zero are not calculated and are set to invalid. This method is semantically clear and avoids division by zero. In another embodiment of this application, fixed-point division or table lookup is used to implement the division to adapt to the main control without floating-point units. This method reduces computing power overhead. The calculated average value and the number of occurrences are output together as the statistical result of the category in this frame to the determination stage, so that the determination stage can use two aggregate values ​​at the same time. The above calculation is performed on all categories one by one to obtain the average value of each category. This method supports the determination of multiple categories of the same target separately.

[0099] This embodiment, through the above scheme, breaks down the aggregated statistics within the window into three ordered actions: initialization, sorting and traversing by category, and averaging. First, before processing each target, the occurrence count and confidence score of each category are uniformly reset to zero. Then, a single traversal sorts the records within the window by category, skipping placeholder records while simultaneously counting and summing valid tickets. Finally, the normalized average is obtained by dividing the cumulative score by the occurrence count. These steps ensure that the statistics for each target share a minimal buffer without referencing each other, that placeholder records only dilute the proportion without contaminating the counting and summing of any category, and that the final average is independent of the number of observations, thus allowing direct comparison with fixed criteria. Therefore, with extremely low memory and computational overhead, it provides two reliable indicators for subsequent judgments: the occurrence count reflecting persistence and the average value reflecting the overall confidence level, ensuring the accuracy of statistics and the stability of judgments in multi-person, multi-category scenarios.

[0100] Based on the above implementation scheme, in one feasible implementation, the step of determining when the frequency of occurrence of the gesture category and the average value of the gesture confidence score pass the dual-threshold determination further includes steps S51 to S53: Step S51: Obtain the minimum re-trigger interval count corresponding to the target and the gesture category.

[0101] It should be noted that the minimum re-trigger interval count is a count value maintained for a combination of a target and a gesture category, decreasing in units of frames. It measures whether the target is still in a cooldown period from the last time the trigger event of this combination was output, and its function is to provide a means of suppressing repeated triggering in the time dimension. The combination of target and gesture category is a two-dimensional object jointly determined by which target performs which gesture. Its function is to serve as the granularity of the count, so that the cooldown only applies to this specific person and this specific gesture and does not affect other combinations.

[0102] Understandably, the purpose of this step is to obtain the current cooling state of the combination before threshold determination, so as to directly block combinations that are in the cooling period from the determination. After a gesture ends, the combination may quickly meet the threshold condition again—for example, the gesture is made immediately after a brief interruption—if there are no additional constraints at this time, a second output will be generated in a very short time, while the user subjectively only made one consecutive gesture; therefore, an interval count that decreases with each frame is maintained for the combination. It is set to a positive value after the last output and then decreases every frame thereafter. As long as the count is still positive, it means that the cooling period has not ended; this count is read before determination so that the positive or negative value can determine whether to allow the current frame. Since the count is maintained separately for the combination of target and gesture category, the cooling of A's gesture will not affect B, nor will it affect A's other gestures. This provides the determination process with a time dimension of control that is independent of the threshold determination and based on the effective time of the combination, so that the determination can consider the time interval in addition to the number of times and the degree of confidence, thereby further suppressing the secondary triggering caused by the immediate reproduction after a brief interruption.

[0103] Specifically, in one embodiment of this application, a counting storage unit is provided for each gesture category under each target slot. During determination, the unit is directly retrieved based on the current target and current category. This method provides direct positioning and isolation by combination. In another embodiment of this application, the count is linked to a latch bit. Figure 1 The state is stored in the target slot and read together when the latch state is read. This method concentrates the state and retrieves it all at once. In the judgment stage of each frame, the corresponding count of each gesture category that has appeared in the window is retrieved. This count is reset along with the window and the latch state when the target slot is reclaimed. This method avoids inheriting the cooling residue from the previous time when the slot is reused.

[0104] Step S52: When the minimum re-trigger interval count is positive, the target and the gesture category are prohibited from participating in the dual threshold determination.

[0105] It should be noted that a positive count means the minimum re-trigger interval count is greater than zero, indicating that the combination is still within the cooldown period and there is still room before it can be triggered again. "Prohibit" means that the combination is not sent to subsequent threshold comparison stages in this frame, directly cutting off the possibility of the combination generating output in this frame. "Participate in dual-threshold determination" refers to the process of taking the occurrence count and confidence average of the combination and comparing them with the corresponding criteria, determining whether to output a trigger event. The technology used in this step is a judgment admission control technique based on cooldown count symbol discrimination: the positive or negative value of the count value serves as the admission switch; a positive value closes the judgment channel for this combination in this frame, ensuring that combinations within the cooldown period do not participate in comparison under any threshold conditions.

[0106] Understandably, the purpose of this step is to completely shut down the decision channel for this combination during the cooldown period, preventing it from outputting a second trigger event even if the threshold condition is met again. After the last output, a positive interval count has been set, which decreases with each frame. The cooldown period lasts for all frames where the count is still positive. If it were still allowed to participate in threshold decision-making during this time, its occurrence count might quickly reach the threshold again if a gesture is briefly interrupted and then immediately reproduced, resulting in a second output. Therefore, its participation in decision-making is directly prohibited in each frame where the count is positive, essentially adding a switch before threshold decision-making. When the switch is closed, no comparison or output occurs regardless of the statistical results. Since this switch is set according to the combination of target and gesture category, it only closes the channel for this combination; other targets and other gesture categories of the same target can still participate in decision-making normally. This provides a time guarantee against output for a period after a gesture, forming multiple layers of protection together with the latched state, significantly suppressing repeated triggering caused by the immediate reproduction of a gesture after a brief interruption, while not affecting the timely decision-making of other gestures by oneself or others.

[0107] Specifically, at the beginning of the judgment process, the sign of the count is determined. If it is a regular expression, the subsequent comparison of that combination is skipped and the next combination is processed. The prohibition process is performed before the threshold comparison, so that prohibited combinations are never entered into the comparison logic. This method avoids invalid comparison operations and saves computing power. The above admission judgment is performed on each gesture category in the window one by one, so that the cooled-down categories are skipped while other categories are still examined normally. This method ensures that the combination is isolated and does not affect each other. During the prohibition period, the occurrence frequency and confidence average of the combination are still counted as usual, but are not used for output judgment. This method allows the combination to participate in the judgment immediately after the cooling-down period ends, based on the latest window content, without generating additional delay.

[0108] Step S53: When the minimum re-trigger interval count is not positive, decrement the minimum re-trigger interval count to allow the target and the gesture category to participate in the dual threshold determination in this frame.

[0109] It should be noted that a non-positive count means that the minimum retrievable interval count read is equal to zero or is already negative. This indicates that the cooldown period for this combination has ended and it is no longer in a prohibited state. Decrementing the count by one further ensures that it continues to change towards negative values ​​with each frame, thus maintaining the discernible state that the cooldown has ended within the non-positive interval and preventing it from jumping back to a positive value and re-entering the cooldown period. Allowing participation in dual-threshold judgment involves taking the frequency of occurrence of this combination and the average confidence level and comparing them with the corresponding criteria. This makes it possible for the combination to trigger an output event in this frame.

[0110] Understandably, the purpose of this step is to reopen the decision channel for this combination after the cooldown period ends, allowing it to participate in threshold comparisons normally based on the latest window content. Simultaneously, it maintains its non-positive state by continuing to decrease the count, preventing repeated entry and exit from the cooldown period. The count decreases with each frame; when it drops to a point where it is no longer positive, it indicates that enough frames have passed since the last output, and the cooldown objective has been achieved. At this point, the decision channel for this combination should be reopened; otherwise, the gesture will never be triggered again. Continuing to decrease the count during release ensures it remains stably non-positive in subsequent frames, thus clearly indicating the end of the cooldown in symbol discrimination, preventing misjudgment as still being in cooldown due to a count rebound. After release, this combination, like other combinations that haven't been cooled down, normally uses its occurrence count and average confidence level for dual-threshold judgment. If the conditions are met, a trigger event is output. The decision channel is promptly restored after the cooldown ends, allowing the same gesture to be triggered normally again after sufficient intervals. It neither permanently fails due to cooldown nor repeatedly jumps between cooldown and release due to unstable discrimination states.

[0111] Specifically, at the beginning of the decision-making process, the sign of the count is checked. If it is not positive, the combination is allowed to enter subsequent threshold comparisons. When allowing passage, the count is decremented by one to keep it stable at a non-positive value. This method prevents the count from jumping back to positive in the non-positive interval. The decrement result is clamped to a lower limit value to prevent the count from decreasing indefinitely and overflowing when there is no trigger for a long period of time. After passage, the occurrence frequency and confidence average of the combination are taken as normal and used for dual-threshold decision-making. This method ensures that the decision after the cooling-off period is completely consistent with the regular decision-making process and does not introduce additional branches. In the decision-making process of each frame, the count sign of each combination is checked. If it is not positive, it is first decremented (clamped to the lower limit if necessary) before allowing it to enter the regular dual-threshold decision-making process. This ensures that the decision channel recovers in a timely manner after the cooling-off period without introducing additional branches, under the premise of clear discrimination and long-term stability. In addition, if the count is configured to zero, this step actually means that the time interval constraint is not enabled, and each combination can participate in the decision-making process in every frame.

[0112] This embodiment, through the above-described scheme, adds a time-based control layer based on the combination of target and gesture category before the dual-threshold determination. It first obtains the minimum re-trigger interval count for this combination; if the count is positive, the combination is directly prohibited from participating in the determination, completely shutting down the output channel during the cooldown period. If the count is negative, it is decremented, allowing the combination to resume normal determination in the current frame. These steps ensure that even if a gesture is briefly interrupted and then immediately reappears and meets the threshold again within a certain period after a gesture output, a second output will not occur, while not affecting the timely determination of other targets or other gestures of the same target. After the cooldown period, the determination channel can be restored in time, allowing the same gesture to be triggered normally again after a sufficient interval. Therefore, in conjunction with the latch state, a time interval constraint is superimposed on the two criteria of number of times and reliability, further strengthening the suppression of repeated triggering, ensuring that a continuous gesture subjectively corresponds to only one command output.

[0113] Based on the above implementation scheme, in a feasible implementation, the step of outputting a gesture trigger event with the target as the initiator when the average number of occurrences of the gesture category and the gesture confidence score pass the dual-threshold determination, and setting the target and the gesture category to a latched state, includes S61~S62: Step S61: Compare the frequency of occurrence of the gesture category with a first threshold, and compare the average gesture confidence of the gesture category with a second threshold.

[0114] It should be noted that the occurrence count is the number of frames observed for a certain gesture category within the target sliding window. Its function is to characterize the persistence of the gesture within the most recent time period, serving as a criterion for suppressing single-frame misidentification. The first threshold is a lower limit set for the occurrence count, specifying the minimum number of occurrence frames required for the output trigger event. The average gesture confidence score is the arithmetic mean of the confidence scores of all observations for that gesture category within the window, characterizing the overall confidence level of these observations. The second threshold is a lower limit set for the average confidence score, specifying the minimum confidence level required for the output trigger event. The first threshold is determined by the maximum allowed number of misidentified frames; the second threshold is determined by the confidence score distribution of the detection unit across gesture categories.

[0115] Understandably, the purpose of this step is to examine whether the gesture meets the output conditions from two independent dimensions: persistence and reliability, and to express the results as two explicit Boolean conclusions. While high-confidence misidentifications in a single frame have high reliability, they only occur in one frame, so their frequency is low, and they can be blocked by the first threshold. Low-confidence misidentifications occurring over multiple frames may occur frequently, but their average reliability is low, and they can be blocked by the second threshold. The two thresholds target two different misidentification patterns, and neither single threshold can cover both situations simultaneously. Therefore, the frequency of occurrence must be compared with the first threshold, and the average confidence level must be compared with the second threshold to obtain two independent conclusions. The criterion covers both the time and quality dimensions, ensuring that isolated high-confidence misidentifications and persistent low-confidence misidentifications are rejected by both thresholds, overcoming the false triggering problem caused by setting only a single confidence threshold.

[0116] Specifically, for each gesture category appearing within the window, its occurrence count and average confidence score are extracted and compared one by one. If any category meets the requirements, output is possible. The occurrence count is compared first, followed by the average confidence score. If the occurrence count does not meet the requirements, the average score is no longer compared. This method allows for early exit in most frames, saving computational power. Both thresholds can be configured as needed, and the second threshold can be set separately for each gesture category, allowing different gestures to have different confidence requirements. Integer or fixed-point comparisons are used to adapt to the main control's computing power and avoid floating-point comparison overhead. For each gesture category, its occurrence count is first compared with the first threshold. If the requirement is met, its average confidence score is then compared with the second threshold. Both thresholds can be configured as needed, and the second threshold can be set separately for each category, thus achieving a two-dimensional examination covering two types of misidentification patterns with low computational overhead. Furthermore, this comparison should be performed only if the combination is not prohibited by the cooldown count and is in an output-allowed state. If any of the preconditions are not met, this step of the comparison is unnecessary.

[0117] Step S62: When the occurrence frequency is not less than the first threshold, the average value of the gesture confidence is not less than the second threshold, and the target and the gesture category are in an armed state, output a gesture trigger event and set the target and the gesture category to a latched state.

[0118] It should be noted that "not less than the first threshold" means the number of occurrences reaches or exceeds the minimum number of frames required, confirming that the gesture has sufficient persistence within the window. "Not less than the second threshold" means the average confidence level reaches or exceeds the minimum confidence level requirement, confirming that the overall observations are sufficiently reliable. "Armed state" is the current allowed output trigger event state of the combination of the target and the gesture category, serving as a criterion for output eligibility, indicating that the combination has not yet output or has resumed output capability. "Gesture trigger event" is a notification message carrying the initiator and gesture category, output after the judgment is established, serving as the interface between the gesture voting process and downstream processes such as mode control and gimbal control. "Output" is the action of sending the event to the downstream consumer, ensuring that the judgment result is actually executed. "Latched state" is the state where the combination has output a trigger event but will not output again for the time being, closing the output channel for the combination.

[0119] Understandably, the purpose of this step is to output a command and immediately close the output channel of the combination when all three conditions are met: the gesture is continuous, reliable, and the combination is currently qualified to output. A frequency of occurrence not less than the first threshold eliminates accidental misidentification of isolated frames, and an average confidence level not less than the second threshold eliminates continuous but low-quality misidentification. The logical AND of these two conditions indicates that the gesture is both continuous and reliable. The condition of being armed is added because if the combination has already output and is still latched, it should not be output again even if both thresholds are met. Only being armed indicates that this is the first time the gesture has been valid. Once all three conditions are met, a trigger event carrying the commander and gesture category is output for downstream consumption. Immediately after outputting, the combination is switched to a latched state because the gesture will physically continue for several more frames. If not locked, each subsequent frame may again meet the three conditions and output repeatedly. A continuous gesture only produces one output from beginning to end. The number of times the command is executed depends on the user's subjective intention. Figure 1 Simultaneously, the event carries the information of the initiator, enabling downstream entities to clearly identify the response target, and the outputs of each target and gesture category are independent of each other.

[0120] Specifically, a logical AND judgment is performed on three conditions, and output is only made if all three conditions are met. The output trigger event carries the target's tracking identifier, gesture category, average confidence level, and the target bounding box of the most recent frame, allowing the downstream mode control unit to switch working modes and the gimbal to determine the target and area to follow. After output, the state of the combination is switched from armed to latched, and the bit corresponding to the gesture category is set in the target's latch bitmap, so that the state is stored, read, and written in combination using the same storage. After output, the minimum re-trigger interval count is loaded for the combination according to the configuration, and a time-dimensional anti-duplicate guarantee is added in addition to the latch. After output, other gesture categories of the same target and other targets are still examined normally to ensure that multiple people and multiple gestures are established independently.

[0121] This embodiment, through the above scheme, defines the output condition for gesture triggering as a logical AND of three items: the number of occurrences, the average confidence level, and the armed status. First, it compares the number of occurrences with a first threshold to eliminate isolated, accidental misidentifications. Then, it compares the average confidence level with a second threshold to eliminate continuous but low-quality misidentifications. Finally, it confirms that the combination has not yet been output based on the armed status. Only when all three conditions are met is a trigger event carrying the commander and gesture category output, and the combination is immediately latched. These steps ensure that a continuous gesture is output once when its condition is first met, and not output again during the subsequent duration. The number of command executions and the user's subjective intent... Figure 1 Simultaneously, the event carries the information of the initiator, allowing downstream entities to clearly identify the response target. Furthermore, the latching effect, when combined, prevents other gestures by the individual or others from being affected, thus ensuring rigorous judgment while achieving timely, single-use, and non-inhibitory trigger output.

[0122] Based on the above implementation scheme, in a feasible implementation, the step of setting the target and the gesture category to an armed state when the target and the gesture category are in a latched state and the number of times the gesture category appears in the corresponding sliding window is not greater than a third threshold includes S71~S74: Step S71: When the target and the gesture category are in a latched state, compare the occurrence count of the gesture category with the third threshold.

[0123] It should be noted that the latched state is the state where the combination of the target and the gesture category has output a triggered event but is no longer outputting. Its function is to mark that the combination is currently in the output channel closed period, and therefore it is necessary to examine whether it should be released. The occurrence count here specifically refers to the current number of frames that the gesture category has appeared in its sliding window, and its function is to reflect whether the current gesture still occupies the window. The third threshold is the upper limit threshold for the occurrence count used to determine whether to unlock, and its function is to give the upper limit condition for the occurrence count required to restore armament.

[0124] Understandably, the purpose of this step is to continuously monitor whether the current gesture still occupies the target's window during the lock period, providing a basis for whether to unlock. Locking closes the output channel of the combination, but the lock cannot be permanent; otherwise, the gesture cannot be triggered again. The timing of unlocking should not depend on whether other actions occur, but rather on whether the current gesture itself still occupies the window—because the window advances frame by frame, and after the user stops, subsequent frames no longer write observations of that gesture; the frequency of the gesture decreases frame by frame as the window scrolls. Continuously comparing this frequency with the third threshold during the lock period allows for real-time monitoring of the gesture's exit status. Since the third threshold is configured to be less than the first threshold, a range is formed between them. Release is only granted when the frequency falls below the lower limit of this range, avoiding repeated triggering that might occur if the frequency is released immediately after falling below the first threshold. The release criterion closely adheres to the current gesture's own persistence, ensuring that output eligibility is restored after the gesture ends, and preventing premature release while the gesture is still ongoing, making state transitions smooth and reliable.

[0125] Specifically, in the judgment phase of each frame, for each latched combination, the current occurrence count of its gesture category within the window is retrieved and compared with the third threshold. This is checked frame by frame, ensuring timely release. The comparison is performed after window advancement and statistics in the current frame, using the newly updated occurrence count. The criteria and window state are strictly synchronized to avoid misjudgments based on outdated data. The occurrence count is first compared with the third threshold; if the release condition is not met, the latch remains in place. The third threshold can be configured according to the required release sensitivity, making the release timing adjustable. After the statistics for each frame are completed, the latest occurrence count of each latched combination is compared with the third threshold, and the comparison result is directly used for subsequent state settings. This achieves frame-driven release judgment with fresh criteria and minimal overhead. Furthermore, this comparison can be combined with reading the latch bitmap. The bitmap is used to determine whether the combination is latched before deciding whether to perform this comparison step.

[0126] Step S72: When the number of occurrences of the gesture category is not greater than the third threshold, set the target and the gesture category to an armed state.

[0127] It should be noted that the occurrence count not exceeding the third threshold indicates that the number of frames in which this gesture category appears within the window has dropped to or below the release threshold. This signifies that the gesture has essentially exited the observation range and is eligible to resume output. "Armed" is the state where the combination of the target and the gesture category allows output triggering events. It serves as the target state after unlocking, enabling the combination to regain output eligibility. "Set" is the operation that changes the state of the combination from latched to armed, effectively opening the output channel for the combination.

[0128] Understandably, the purpose of this step is to restore the combination from a locked to an output-enabled state after the gesture has exited the window, allowing the same gesture to be triggered again. A decrease in the occurrence count to the third threshold or below indicates that the gesture has almost ceased to appear within the window, the user has stopped using it, or has switched to another gesture. Continuing to lock it at this point is meaningless and will prevent subsequent normal triggering. Switching the combination back to an armed state reopens its output channel. If the target performs the same gesture again, its occurrence count will re-accumulate from zero, and a new trigger event can be output once both thresholds are reached. Since the release criterion is the number of times the gesture itself appears, rather than whether other actions have occurred, the restoration timing is consistent with actual usage, preventing situations where the gesture is mistakenly considered triggerable immediately after stopping, or where a gesture has been switched but restoration is delayed. After a gesture ends, the output eligibility of the combination is restored promptly and accurately, allowing the same gesture to be triggered normally when performed again. The user can repeatedly issue the same command by performing the gesture repeatedly.

[0129] Specifically, when the number of occurrences of a gesture category is no more than the third threshold, the status flag of the combination is changed from indicating latch to indicating armed. Simultaneously with the switchback, the bit corresponding to the gesture category in the target's latch bitmap is cleared, allowing status reading and writing to share the same latch bitmap and avoiding inconsistencies. After the switchback, the combination resumes participation in the regular dual-threshold judgment from the next frame, with a clear timing and no additional delay. The switchback only applies to the combination of the target and the gesture category; the status of other combinations is unaffected. If the comparison is successful, the status flag is switched back to armed, and the corresponding bit in the latch bitmap is simultaneously cleared, allowing the combination to resume participation in regular judgment from the next frame. This ensures timely restoration of the gesture's output eligibility while maintaining consistent status and isolation by combination. Furthermore, during the switchback, existing records of other categories within the target window can be retained, preventing the accumulation of other gestures from being affected by this release.

[0130] Step S73: When the number of occurrences of the gesture category is greater than the third threshold, keep the target and the gesture category in a latched state.

[0131] It should be noted that an occurrence count greater than the third threshold indicates that the number of frames this gesture category has appeared within the window is still higher than the release threshold. This means the gesture still occupies the window and has not yet exited. Holding is a process that does not change the current state of the combination; its purpose is to keep the lock active and prevent premature release. The latched state is the state where the combination is temporarily not outputting; its purpose is to close the output channel of the combination to prevent repeated triggering.

[0132] Understandably, the purpose of this step is to maintain the lock while the gesture still occupies the window, preventing premature restoration of output eligibility before the gesture ends and causing repeated triggering. A gesture physically lasts for several frames, during which the frequency of the gesture remains high. If it were allowed to regain output eligibility simply because the frequency falls below the first threshold, subtle changes in hand posture or recognition jitter in individual frames could cause the frequency of occurrence to fluctuate around the first threshold, resulting in repeated transitions between locked and armed states and multiple outputs. Therefore, in all frames where the frequency of occurrence is still greater than the third threshold, the latch is maintained without any state change, ensuring that the lock remains stable throughout the entire gesture's duration. The locked state remains stable throughout the entire gesture's duration and will not be prematurely released due to recognition jitter in individual frames or brief fluctuations in the frequency of occurrence, thus reliably ensuring that a continuous gesture produces only one output.

[0133] Specifically, when the frequency of a gesture category exceeds the third threshold, the state of that combination is not modified, and the process proceeds directly to the next combination. During the maintenance period, the frequency and confidence average of the combination are still counted as usual, but the statistical results are not used for output determination, allowing the latest window content to be used for determination immediately after release. During the maintenance period, the bit corresponding to the gesture category in the latch bitmap remains set, ensuring that the state is stable in storage and can be consistently read by subsequent frames. Although the combination is not output during the maintenance period, other gesture categories of the same target and other targets are still determined and output as usual, ensuring isolation by combination and no interference between them. If the comparison fails, no state is modified, the corresponding bit in the latch bitmap remains set, and the statistics for that combination are still completed as usual, while other combinations are still examined. This ensures reliable locking with minimal overhead and stable state, without affecting the independent determination of other combinations. In addition, the maintenance logic and the release logic share two branches of the same comparison conclusion, and in implementation, processing only needs to be done according to the conclusion branch after the comparison.

[0134] Step S74: Wherein, the third threshold is smaller than the first threshold, and the third threshold and the first threshold form a hysteresis band.

[0135] It should be noted that the third threshold is the upper limit of the occurrence count for re-arming, defining the required number of occurrences for releasing the lock. The first threshold is the lower limit of the occurrence count for the output trigger event, defining the minimum number of frames required for triggering. "Less than" indicates that the third threshold is lower than the first threshold, making the release condition more lenient than the trigger condition, and preventing them from overlapping. The hysteresis band is an occurrence count range formed by the difference between the first and third thresholds, ensuring that triggering and releasing occur at different occurrence count levels, thus preventing the state from fluctuating around the critical value. The third threshold is determined by the required hysteresis width, preferably 0 to the first threshold minus 1.

[0136] Understandably, the purpose of this step is to create a hysteresis range between triggering and releasing by setting the release threshold below the trigger threshold, thereby preventing the state from flipping back and forth near the critical value. If the release threshold and trigger threshold are the same value, any slight fluctuation in the occurrence count near that value will cause the state to repeatedly switch between locked and armed—releasing as soon as it falls below the threshold and triggering again as soon as it recovers, resulting in multiple outputs. By configuring the third threshold to be less than the first threshold, triggering must reach a higher occurrence count level, while releasing must drop to a lower occurrence count level, forming a non-action range, or hysteresis band, between the two. When the occurrence count falls into this range, neither triggering nor releasing occurs, and the state remains unchanged. Therefore, slight hand tremors, category jumps in individual frames, or brief partial occlusions will not cause state flips. The entry and exit of the state have a clear hysteresis. During a continuous gesture, the lock is stably maintained and only output once, and it can reliably recover after the hand is released, significantly improving the stability of the state machine in recognizing jittery environments.

[0137] Specifically, configuring the third threshold to a value less than the first threshold reduces the frequency of release to a lower level, directly creating hysteresis. In one embodiment of this application, the third threshold is set to zero, meaning the gesture category must completely leave the window before re-arming. This method provides the widest hysteresis band and the strongest suppression of jitter in individual frame categories during continuous gestures. In another embodiment of this application, the third threshold is configured to a value near the first threshold minus one. This method provides a narrower hysteresis band and more sensitive recovery, suitable for scenarios requiring rapid re-triggering of the same gesture. Both thresholds are determined during configuration and can be adjusted as needed, allowing the hysteresis width to be set according to actual usage habits. Based on the constraint that the third threshold is less than the first threshold, the value of the third threshold is selected between zero and the first threshold according to the required release sensitivity, thereby adjusting the recovery sensitivity as needed while ensuring that re-triggering does not occur during continuous gestures. Furthermore, this hysteresis relationship is coordinated with the window's frame-by-frame progression, ensuring that the increase and decrease in the frequency of occurrence occur naturally with each frame, thus ensuring that the effect of the hysteresis band is stable in each frame.

[0138] This embodiment defines the release of the latch as a comparison between the number of occurrences of the gesture category within the window and a third threshold, based on the above scheme. During the latching period, the number of occurrences of the gesture category within the window is continuously compared with the third threshold. If the number is greater than the third threshold, the latch remains locked to ensure the gesture's state remains stable throughout the duration and is not prematurely released due to recognition jitter in individual frames. If the number is less than the third threshold, the latch switches back to armed mode to promptly restore the gesture's output eligibility. Simultaneously, by configuring the third threshold to be less than the first threshold, a hysteresis band is formed between the higher occurrence level required for triggering and the lower occurrence level required for release, ensuring that any fluctuation in the occurrence count within this interval does not cause a state reversal. These steps ensure that the latch remains stable during a continuous gesture, generating only one output. After the gesture is released, it reliably recovers and allows for triggering again. Furthermore, the release timing depends only on the degree to which the gesture itself exits the window and is not affected by other gestures, thus significantly improving the stability of the gesture triggering state machine in recognition jitter and brief occlusion environments.

[0139] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the gesture voting triggering method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.

[0140] This application also provides a gesture-based voting triggering device, please refer to... Figure 2 The gesture voting triggering device includes: The result acquisition module 201 is used to acquire the detection results of the target image set, the detection results including tracking identifiers, gesture categories, and gesture confidence. The result writing module 202 is used to maintain a corresponding sliding window for the detected target with the tracking identifier as the key, and write the detection result of the target into the sliding window of the target; The data statistics module 203 is used to count the number of occurrences of each gesture category and the average value of gesture confidence within the sliding window corresponding to the target; The determination output module 204 is used to output a gesture trigger event with the target as the initiator when the frequency of occurrence of the gesture category and the average value of the gesture confidence pass the dual threshold determination, and to set the target and the gesture category to a latched state. The state setting module 205 is used to set the target and the gesture category to an armed state when the target and the gesture category are in a latched state and the number of times the gesture category appears in the corresponding sliding window is no greater than a third threshold.

[0141] The gesture voting triggering device provided in this application, employing the gesture voting triggering method in the above embodiments, can solve the technical problem of insufficient stability in gesture command judgment. Compared with the prior art, the beneficial effects of the gesture voting triggering device provided in this application are the same as those of the gesture voting triggering method provided in the above embodiments, and other technical features in the gesture voting triggering device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0142] This application provides a gesture voting triggering device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the gesture voting triggering method in the first embodiment described above.

[0143] The following is for reference. Figure 3 The diagram illustrates a structural schematic of a gesture voting triggering device suitable for implementing embodiments of this application. The gesture voting triggering device in these embodiments may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 3 The gesture voting triggering device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0144] like Figure 3As shown, the gesture voting triggering device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the gesture voting triggering device. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the gesture voting triggering device to communicate wirelessly or wiredly with other devices to exchange data. While the figures show gesture voting triggering devices with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.

[0145] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0146] The gesture voting triggering device provided in this application, employing the gesture voting triggering method in the above embodiments, can solve the technical problem of insufficient stability in gesture command judgment. Compared with the prior art, the beneficial effects of the gesture voting triggering device provided in this application are the same as those of the gesture voting triggering method provided in the above embodiments, and other technical features in this gesture voting triggering device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0147] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0148] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0149] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the gesture voting triggering method in the above embodiments.

[0150] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0151] The aforementioned computer-readable storage medium may be included in the gesture voting triggering device; or it may exist independently and not be assembled into the gesture voting triggering device.

[0152] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by the gesture voting triggering device, the gesture voting triggering device causes the following: to acquire the detection results of a target image set, the detection results including tracking identifiers, gesture categories, and gesture confidence scores; to maintain a corresponding sliding window for the detected target using the tracking identifier as the key, and to write the detection results of the target into the target's sliding window; to calculate the average number of occurrences of each gesture category and the average gesture confidence score within the sliding window corresponding to the target; when the average number of occurrences of the gesture category and the average gesture confidence score pass a dual-threshold judgment, to output a gesture triggering event with the target as the initiator, and to set the target and the gesture category to a latched state; and when the target and the gesture category are in the latched state, and the number of occurrences of the gesture category within the corresponding sliding window is not greater than a third threshold, to set the target and the gesture category to an armed state.

[0153] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0154] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0155] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0156] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described gesture voting triggering method, thereby solving the technical problem of insufficient stability in gesture instruction judgment. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the gesture voting triggering method provided in the above embodiments, and will not be repeated here.

[0157] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the gesture voting triggering method described above.

[0158] The computer program product provided in this application can solve the technical problem of insufficient stability in gesture command judgment. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the gesture voting triggering method provided in the above embodiments, and will not be repeated here.

[0159] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A method for triggering gesture voting, characterized in that, The gesture voting triggering method includes: Obtain the detection results of the target image set, the detection results including tracking identifiers, gesture categories, and gesture confidence; A sliding window is maintained corresponding to the detected target using the tracking identifier as the key, and the detection result of the target is written into the sliding window of the target; The frequency of each gesture category within the sliding window corresponding to the target and the average gesture confidence level are statistically analyzed. When the frequency of occurrence of the gesture category and the average value of the gesture confidence pass the dual threshold determination, a gesture trigger event with the target as the initiator is output, and the target and the gesture category are set to a latched state; When the target and the gesture category are in a latched state, if the number of times the gesture category appears in the corresponding sliding window is no greater than a third threshold, the target and the gesture category are set to an armed state.

2. The gesture voting triggering method as described in claim 1, characterized in that, The step of maintaining a corresponding sliding window for the detected target using the tracking identifier as the key, and writing the detection result of the target corresponding to the current frame into the sliding window of the target includes: A sliding window is maintained for the detected target using the tracking identifier as the key; When the gesture category in the detection result of the target corresponding to the current frame is not a preset gesture category or no gesture category, write a no gesture placeholder record to the sliding window corresponding to the target; When the gesture category in the detection result of the target corresponding to the current frame belongs to a pre-defined gesture category, the gesture category and the confidence level of the gesture are written into the sliding window corresponding to the target; The number of frames in which each target fails to acquire the detection result is counted. When the number of frames in which the target fails to acquire the detection result reaches a preset recycling condition, the sliding window corresponding to the target is recycled, and the latching state of the gesture category of the target is cleared.

3. The gesture voting triggering method as described in claim 2, characterized in that, The step of maintaining a corresponding sliding window for the detected target using the tracking identifier as the key includes: Based on the tracking identifier, the target slot corresponding to the target is found in the slot table. The target slot records the tracking identifier, window write position and latch bitmap of the target. When the target is found to be in the target slot, the detection result of the target is written to the storage cell indicated by the window writing position, and the window writing position is moved forward one cell. When the target is not found in the target slot, an empty slot is allocated to the target, the window write position and latch bitmap of the allocated empty slot are cleared, the tracking identifier is written, and the detection result of the target is written to the storage cell indicated by the window write position.

4. The gesture voting triggering method as described in claim 2, characterized in that, The step of calculating the average number of occurrences of each gesture category within the sliding window corresponding to the target and the average gesture confidence score includes: For the current objective, the sum of the occurrence counts of each gesture category and the gesture confidence score is reset to zero. Iterate through the sliding window corresponding to the target, skip the records that are the no-gesture placeholder records, and for the records that are the gesture category, increment the occurrence count of the corresponding gesture category and accumulate the corresponding gesture confidence value accordingly. The average value of the gesture confidence score for each gesture category is determined based on the cumulative value of the gesture confidence score and the frequency of occurrence of the gesture category.

5. The gesture voting triggering method as described in claim 1, characterized in that, The step of determining when the frequency of occurrence of the gesture category and the average confidence level of the gesture pass the dual-threshold judgment further includes: Obtain the minimum re-trigger interval count corresponding to the target and the gesture category; When the minimum re-trigger interval count is positive, the target and the gesture category are prohibited from participating in the dual threshold determination; When the minimum re-trigger interval count is not positive, the minimum re-trigger interval count is decremented, allowing the target and the gesture category to participate in the dual threshold determination in this frame.

6. The gesture voting triggering method as described in claim 5, characterized in that, The step of outputting a gesture trigger event with the target as the initiator when the frequency of occurrence of the gesture category and the average of the gesture confidence scores pass the dual-threshold determination, and setting the target and the gesture category to a latched state, includes: The frequency of occurrence of the gesture category is compared with a first threshold, and the average gesture confidence score of the gesture category is compared with a second threshold. When the occurrence frequency is not less than the first threshold, the average value of the gesture confidence is not less than the second threshold, and the target and the gesture category are in an armed state, a gesture trigger event is output, and the target and the gesture category are set to a latched state.

7. The gesture voting triggering method as described in claim 1, characterized in that, The step of setting the target and the gesture category to an armed state when the target and the gesture category are in a latched state, and the number of times the gesture category appears in the corresponding sliding window is no greater than a third threshold, includes: When the target and the gesture category are in a latched state, the occurrence count of the gesture category is compared with the third threshold; When the number of occurrences of the gesture category is not greater than the third threshold, the target and the gesture category are set to an armed state; When the number of occurrences of the gesture category exceeds the third threshold, the target and the gesture category remain in a latched state. The third threshold is smaller than the first threshold, and the third threshold and the first threshold form a hysteresis band.

8. A gesture-based voting triggering device, characterized in that, The gesture voting triggering device includes: The result acquisition module is used to acquire the detection results of the target image set, including tracking identifiers, gesture categories, and gesture confidence. The result writing module is used to maintain a corresponding sliding window for the detected target with the tracking identifier as the key, and write the detection result of the target into the sliding window of the target; The data statistics module is used to count the number of occurrences of each gesture category and the average gesture confidence level within the sliding window corresponding to the target. The determination output module is used to output a gesture trigger event with the target as the initiator when the frequency of occurrence of the gesture category and the average value of the gesture confidence pass the dual threshold determination, and to set the target and the gesture category to a latched state. The state setting module is used to set the target and the gesture category to an armed state when the target and the gesture category are in a latched state and the number of times the gesture category appears in the corresponding sliding window is no greater than a third threshold.

9. A gesture-based voting triggering device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the gesture voting triggering method as described in any one of claims 1 to 7.

10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the gesture voting triggering method as described in any one of claims 1 to 7.