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.
20 lines
204 B
C++
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
|
|
}
|
|
}
|