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 1.0KB

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