import { useMemo, useState } from 'react'; import { Hand, MoreHorizontal, Smile, User } from "lucide-react"; const keypointTypes = [ { title: "Hand Landmarks", count: 21, icon: Hand }, { title: "Pose Landmarks", count: 33, icon: User }, { title: "Face Landmarks", count: 468, icon: Smile }, ]; export function KeypointsDisplay() { const [showDetails, setShowDetails] = useState(false); const totalLandmarks = useMemo( () => keypointTypes.reduce((sum, type) => sum + type.count, 0), [], ); return (
Visual representation of detected landmarks
{type.title}
{type.count} keypoints detected
{showDetails && (Used as temporal features by the transformer classifier.
)}