rmsalinas / raspicam

Official raspicam from AVA Research Group. Controlling the raspberry pi camera in C++. Moved from Sourceforge to here
51 stars 18 forks source link

Missing Still functions: #7

Open jhihn opened 3 years ago

jhihn commented 3 years ago
    void RaspiCam_Still::setShutterSpeed(unsigned int ss) {
        _impl->setShutterSpeed(ss);
    }
    void RaspiCam_Still::setAWB_RB(float red_g, float blue_g) {
        _impl->setAWB_RB(red_g, blue_g);
    }
manalito commented 3 years ago

I made an implementation of these functions. Based on my tests, it works as expected. I've just created a new pull request : https://github.com/rmsalinas/raspicam/pull/9

jhihn commented 3 years ago

This helps, but you only implemented the OpenCV side. Still, I was able yo follow your lead and get something working for Qt.

manalito commented 3 years ago

This helps, but you only implemented the OpenCV side. Still, I was able yo follow your lead and get something working for Qt.

You can find here implementation of function on the C++ side : https://github.com/manalito/raspicam/commit/71ecf3a0f99eeb7b4a0961ee8bd336ca99aacd07

I didn't updated the pull request since I am not quiet satisfied yet about the implementation. It's working but it surely requires a refactor of the code to have the same effect with both OpenCV and C++ functions. I'll do it soon. Feel free to tell me any suggestions about the functions I wrote.

jhihn commented 3 years ago

Excellent, I will check it out tomorrow. Wishing you had a tip jar! 👍