Converting Maxi Image classes from between FMT_YVU420SP and FMT_RGB888 (RTMP + Yolo)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 850
- Forks
- 128
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Description
I've been trying to optimize performance of a camera. I'm only streaming over RTMP once a particular object is detected from Yolo11. The only working way to do this - from what I can tell so far - is to have two Camera Objects open.
ex:
detector = nn.YOLO11(model="/root/models/yolo11n.mud", dual_buff=True)
cam_yolo = camera.Camera(width,height,detector.input_format())
cam = camera.Camera(width,height,image.Format.FMT_YVU420SP)
Using this method removes a frame from the buffer whenever you call ".read()". Ideally, I'd have just the "cam" camera object and simply convert the returned image. This wouldn't result in a dropped frame the RTMP stream.
Is there a way to convert from the FMT_YVU420SP to the FMT_RGB888 color spaces, or vice versa?
Thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the camera.Camera.read() path and the image.Format definitions for FMT_YVU420SP and FMT_RGB888. Check how the detector input format and RTMP streaming consume frames; done means one camera object can convert between these formats without dropping the frame needed by the stream.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision, embedded-iot
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100