facecam2d/src/main.cpp
Epicalert 0aac06bc30
Disable "Video Input" window on macOS
I'm not sure why, but when it's enabled macOS kills the program
complaining "NSScreen reconfig must only happen on the main thread."
When it's not enabled the program runs fine.
2021-01-15 19:03:48 +08:00

20 lines
204 B
C++

#include <graphics.hpp>
#include <cv.hpp>
#include <iostream>
int main () {
initGraphics();
initCV();
while (true) {
cvFrame();
graphicsFrame();
#ifndef __APPLE__
cvShowFrame();
#endif
}
}