bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.57k stars 1.58k forks source link

Adjust Brightness & Contrast of Frame #1426

Open osmantoker opened 4 years ago

osmantoker commented 4 years ago

Hi, Is there any way to adjust brightness and contrast of the frame grabbed with FFmpegFrameGrabber? I want to adjust the values based on operator input so FFmpegFilter not useful to me. I'm converting the Frame to BufferedImage with convertTo() method, after that trying to change the brightness/contrast of BufferedImage but I think there is an easy way of JavaCV lib...?...

Regards, Osman

saudet commented 4 years ago

That most likely depends on your camera, but I don't think FFmpeg has an API for that: https://ffmpeg.org/ffmpeg-devices.html