Videoverarbeitung eines Beerpongspiels. Entstehung im Rahmen einer Praktikumsaufgabe im Fach "Interaktion".
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ofApp.h 844B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include "ofMain.h"
  3. #include "ofxOpenCv.h"
  4. class ofApp : public ofBaseApp{
  5. public:
  6. void setup();
  7. void update();
  8. void draw();
  9. void keyPressed(int key);
  10. void keyReleased(int key);
  11. void mouseMoved(int x, int y );
  12. void mouseDragged(int x, int y, int button);
  13. void mousePressed(int x, int y, int button);
  14. void mouseReleased(int x, int y, int button);
  15. void mouseEntered(int x, int y);
  16. void mouseExited(int x, int y);
  17. void windowResized(int w, int h);
  18. void dragEvent(ofDragInfo dragInfo);
  19. void gotMessage(ofMessage msg);
  20. ofVideoPlayer vidPlayer;
  21. // Images displaying original video
  22. ofxCvColorImage colorVideo;
  23. ofxCvGrayscaleImage grayVideo;
  24. ofxCvGrayscaleImage background;
  25. ofxCvGrayscaleImage binarized;
  26. ofxCvContourFinder contourFinder;
  27. bool learnBackground;
  28. int threshhold;
  29. };