Compare commits
No commits in common. "90db9f02deb12ca4c31ce65146a80cec2c0b3a43" and "835d509da5331b335c5f9e87a0937d486f600445" have entirely different histories.
90db9f02de
...
835d509da5
|
@ -5,8 +5,6 @@ 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)
|
find_package(OpenCV HINTS /usr/local/opt/opencv /usr/local/Cellar/opencv REQUIRED)
|
||||||
|
|
||||||
message(STATUS "OpenCV version: ${OpenCV_VERSION}")
|
|
||||||
|
|
||||||
set( NAME_SRC
|
set( NAME_SRC
|
||||||
opencv_fb.cpp
|
opencv_fb.cpp
|
||||||
)
|
)
|
||||||
|
|
|
@ -74,7 +74,7 @@ void display (Mat frame, framebuffer_info fb_info, ofstream& ofs) {
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
default:
|
default:
|
||||||
cerr << "Unsupported depth of framebuffer: " << framebuffer_depth << endl;
|
cerr << "Unsupported depth of framebuffer." << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -111,9 +111,6 @@ int main(int, char**) {
|
||||||
Mat displayFrame;
|
Mat displayFrame;
|
||||||
while (true) {
|
while (true) {
|
||||||
cap >> frame;
|
cap >> frame;
|
||||||
if (frame.empty()) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
frame = frameEffects(frame);
|
frame = frameEffects(frame);
|
||||||
resize(frame, displayFrame, Size(fb_info.xres_virtual, fb_info.yres_virtual), 2, 2, INTER_CUBIC);
|
resize(frame, displayFrame, Size(fb_info.xres_virtual, fb_info.yres_virtual), 2, 2, INTER_CUBIC);
|
||||||
display(displayFrame, fb_info, ofs);
|
display(displayFrame, fb_info, ofs);
|
||||||
|
|
Loading…
Reference in New Issue