Thanks for your response I have solved it using the similar approachIf you are using picamera2...
[HOW-TO] Capture frame directly as grayscale image · Issue #698 · raspberrypi/picamera2 https://share.google/s5Um00AntHYuCJEUq
Statistics: Posted by sonu_per — Tue Jan 27, 2026 4:37 am