Skip to main content

Crate wifi_densepose_core

Crate wifi_densepose_core 

Source
Expand description

§WiFi-DensePose Core

Core types, traits, and utilities for the WiFi-DensePose pose estimation system.

This crate provides the foundational building blocks used throughout the WiFi-DensePose ecosystem, including:

  • Core Data Types: CsiFrame, ProcessedSignal, PoseEstimate, PersonPose, and Keypoint for representing WiFi CSI data and pose estimation results.

  • Error Types: Comprehensive error handling via the error module, with specific error types for different subsystems.

  • Traits: Core abstractions like SignalProcessor, NeuralInference, and DataStore that define the contracts for signal processing, neural network inference, and data persistence.

  • Utilities: Common helper functions and types used across the codebase.

§Feature Flags

  • std (default): Enable standard library support
  • serde: Enable serialization/deserialization via serde
  • async: Enable async trait definitions

§Example

use wifi_densepose_core::{CsiFrame, Keypoint, KeypointType, Confidence};

// Create a keypoint with high confidence
let keypoint = Keypoint::new(
    KeypointType::Nose,
    0.5,
    0.3,
    Confidence::new(0.95).unwrap(),
);

assert!(keypoint.is_visible());

Re-exports§

pub use error::CoreError;
pub use error::CoreResult;
pub use error::SignalError;
pub use error::InferenceError;
pub use error::StorageError;
pub use traits::SignalProcessor;
pub use traits::NeuralInference;
pub use traits::DataStore;
pub use types::CsiFrame;
pub use types::CsiMetadata;
pub use types::AntennaConfig;
pub use types::ProcessedSignal;
pub use types::SignalFeatures;
pub use types::FrequencyBand;
pub use types::PoseEstimate;
pub use types::PersonPose;
pub use types::Keypoint;
pub use types::KeypointType;
pub use types::Confidence;
pub use types::Timestamp;
pub use types::FrameId;
pub use types::DeviceId;
pub use types::BoundingBox;

Modules§

error
Error types for the WiFi-DensePose system.
prelude
Prelude module for convenient imports.
traits
Core trait definitions for the WiFi-DensePose system.
types
Core data types for the WiFi-DensePose system.
utils
Common utility functions for the WiFi-DensePose system.

Constants§

DEFAULT_CONFIDENCE_THRESHOLD
Default confidence threshold for keypoint visibility
MAX_KEYPOINTS
Maximum number of keypoints per person (COCO format)
MAX_SUBCARRIERS
Maximum number of subcarriers typically used in WiFi CSI
VERSION
Crate version