2020-12-31 12:58:39 +00:00
|
|
|
#include <graphics.hpp>
|
2021-01-06 00:10:55 +00:00
|
|
|
#include <cv.hpp>
|
2020-12-31 12:58:39 +00:00
|
|
|
|
2021-01-01 18:55:12 +00:00
|
|
|
#include <iostream>
|
|
|
|
|
2020-12-31 12:58:39 +00:00
|
|
|
int main () {
|
|
|
|
initGraphics();
|
2021-01-06 00:10:55 +00:00
|
|
|
initCV();
|
2020-12-31 12:58:39 +00:00
|
|
|
|
2021-01-06 00:10:55 +00:00
|
|
|
while (true) {
|
|
|
|
cvFrame();
|
2020-12-31 12:58:39 +00:00
|
|
|
|
2021-01-06 00:10:55 +00:00
|
|
|
graphicsFrame();
|
2020-12-31 12:58:39 +00:00
|
|
|
|
2021-01-15 11:03:48 +00:00
|
|
|
#ifndef __APPLE__
|
2021-01-06 00:10:55 +00:00
|
|
|
cvShowFrame();
|
2021-01-15 11:03:48 +00:00
|
|
|
#endif
|
2020-12-31 12:58:39 +00:00
|
|
|
}
|
|
|
|
}
|