Compare commits

...

2 Commits

2 changed files with 6 additions and 1 deletions

View File

@ -5,6 +5,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake-mod
find_package(OpenCV HINTS /usr/local/opt/opencv /usr/local/Cellar/opencv REQUIRED)
message(STATUS "OpenCV version: ${OpenCV_VERSION}")
set( NAME_SRC
opencv_fb.cpp
)

View File

@ -74,7 +74,7 @@ void display (Mat frame, framebuffer_info fb_info, ofstream& ofs) {
}
} break;
default:
cerr << "Unsupported depth of framebuffer." << endl;
cerr << "Unsupported depth of framebuffer: " << framebuffer_depth << endl;
}
}
}
@ -111,6 +111,9 @@ int main(int, char**) {
Mat displayFrame;
while (true) {
cap >> frame;
if (frame.empty()) {
continue;
}
frame = frameEffects(frame);
resize(frame, displayFrame, Size(fb_info.xres_virtual, fb_info.yres_virtual), 2, 2, INTER_CUBIC);
display(displayFrame, fb_info, ofs);