Add automatic RGB/BGR colorspace detection for video models
- Add detect_model_colorspace() function to detect colorspace by generating test red frame - Add get_model_colorspace() helper to retrieve or detect colorspace - Modify frame processing to auto-swap BGR based on model config - Preserve --swap_bgr flag as manual override - Colorspace is saved to model config (~/.config/videogen/models.json) after first detection
Showing
Please
register
or
sign in
to comment