Views
No views yet
pip install -r requirements.txt1from src.models.threat_detector import CCTVThreatDetector
2
3# Load model
4detector = CCTVThreatDetector.from_pretrained("kroeungcyber/cctv-threat-detection")
5
6# Detect threats in image
7result = detector.predict("path/to/image.jpg")
8print(f"Threat detected: {result['is_threat']} (confidence: {result['confidence']:.2%})")python app.pygoogle/vit-base-patch16-224-in21k and fine-tuned on:1from src.inference.ip_camera import IPCameraProcessor
2
3processor = IPCameraProcessor("path/to/model")
4processor.process_camera_feed("rtsp://camera-url")1@misc{cctv-threat-detection,
2 title={CCTV Threat Detection using Vision Transformers},
3 author={Your Name},
4 year={2024},
5 publisher={Hugging Face},
6 url={https://huggingface.co/kroeungcyber/cctv-threat-detection}
7}