hand tracking, state management

This commit includes updates to global state management, and a state reset node.
It includes new tracking nodes powered by media pipe.
Includes an interactive mask node.
This commit is contained in:
RyanOnTheInside
2025-02-02 18:14:16 -05:00
parent d027473741
commit 9a9754de3c
7 changed files with 583 additions and 4 deletions
+24 -3
View File
@@ -1,11 +1,23 @@
from .controls.value_controls import FloatControl, IntControl, StringControl
from .controls.sequence_controls import FloatSequence, IntSequence, StringSequence
from .controls.utility_controls import FPSMonitor, SimilarityFilter, LazyCondition
from .controls.state_management_controls import StateResetNode, StateTestNode
from .controls.motion_controls import MotionController, ROINode, IntegerMotionController
from .misc_nodes import DTypeConverter, FastWebcamCapture, YOLOSimilarityCompare, TextRenderer, QuickShapeMask, MultilineText, LoadImageFromPath_
from .misc_nodes import(
DTypeConverter,
FastWebcamCapture,
YOLOSimilarityCompare,
TextRenderer,
QuickShapeMask,
MultilineText,
LoadImageFromPath_
)
from .media_pipe_nodes import HandTrackingNode, HandMaskNode
from .controls.mask_controls import RepulsiveMaskNode, ResizeMaskNode
import re
NODE_CLASS_MAPPINGS = {
"FloatControl": FloatControl,
"IntControl": IntControl,
@@ -21,15 +33,24 @@ NODE_CLASS_MAPPINGS = {
"YOLOSimilarityCompare": YOLOSimilarityCompare,
"TextRenderer": TextRenderer,
"ROINode": ROINode,
#"IntervalControl": IntervalCo ntrol,
#"DeltaControl": DeltaControl,
"QuickShapeMask": QuickShapeMask,
"DTypeConverter": DTypeConverter,
"FastWebcamCapture": FastWebcamCapture,
"MultilineText": MultilineText,
"LoadImageFromPath_": LoadImageFromPath_,
"HandTrackingNode": HandTrackingNode,
"HandMaskNode": HandMaskNode,
#"RepulsiveMaskNode": RepulsiveMaskNode,
"ResizeMaskNode": ResizeMaskNode,
"StateResetNode": StateResetNode,
"StateTestNode": StateTestNode,
}
NODE_DISPLAY_NAME_MAPPINGS = {}
suffix = " 🕒🅡🅣🅝"