diff options
| -rw-r--r-- | main.cpp | 8 | ||||
| -rw-r--r-- | src/camera/innomakerov9281.cpp | 1 |
2 files changed, 5 insertions, 4 deletions
@@ -142,8 +142,8 @@ int main(int argc, char* argv[]) std::cout << std::boolalpha; InnoMakerOV9281 innoMakerCam; qDebug() << "init:" << innoMakerCam.init(); - qDebug() << "set exposure:" << innoMakerCam.setExposureTimeUs(3000); - qDebug() << "set gain:" << innoMakerCam.setGain(0); + qDebug() << "set exposure:" << innoMakerCam.setExposureTimeUs(3000000); + qDebug() << "set gain:" << innoMakerCam.setGain(2); innoMakerCam.startStream(); QThread::sleep(3); @@ -386,8 +386,8 @@ int main(int argc, char* argv[]) #endif std::cout << "connect everything" << std::endl; - camera->newPixels.connect(&onNewPixels); - camera->newImage.connect(&onNewImage); + // camera->newPixels.connect(&onNewPixels); + // camera->newImage.connect(&onNewImage); camera->newImageCallback = &onNewImage; camera->newPixelsCallback = &onNewPixels; diff --git a/src/camera/innomakerov9281.cpp b/src/camera/innomakerov9281.cpp index 56550ed..b7c5cd4 100644 --- a/src/camera/innomakerov9281.cpp +++ b/src/camera/innomakerov9281.cpp @@ -102,6 +102,7 @@ bool InnoMakerOV9281::startStream() newImageCallback(image); } // newPixels.emit(pixels); + image->rotate(); if (newPixelsCallback) { auto pixels = image->pixels(); |
