29 lines
661 B
Python
29 lines
661 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Cleanup script for People Counter.
|
|
Removes unused model files since we switched to HOG detector.
|
|
"""
|
|
|
|
import shutil
|
|
from pathlib import Path
|
|
|
|
|
|
def main():
|
|
print("Cleaning up unused model files...")
|
|
|
|
models_dir = Path("models")
|
|
if models_dir.exists():
|
|
try:
|
|
shutil.rmtree(models_dir)
|
|
print("✓ Removed models directory")
|
|
except Exception as e:
|
|
print(f"✗ Failed to remove models directory: {e}")
|
|
else:
|
|
print("✓ No models directory to remove")
|
|
|
|
print("\nSystem ready for HOG-based person detection.")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|