A Python package for performing object tracking on RTSP video streams.
pip install -e .For development:
pip install -e ".[dev]"Basic usage example:
from object_tracking_rtsp.video import capture_rtsp_stream, process_frame
# Initialize video capture
vcap = capture_rtsp_stream("rtsp://your-camera-url")
# Process frames
while True:
ret, frame = vcap.read()
if not ret:
break
processed_frame = process_frame(frame)
# Do something with the processed framepytestThis project uses:
- Black for code formatting
- Flake8 for linting
- isort for import sorting
To format code:
black src tests
isort src tests
flake8 src tests