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 895B

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