Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
projets:infini:info-reseau:accueil [2016/03/17 00:25] resonance [Web] |
projets:infini:info-reseau:accueil [2016/05/24 12:36] (Version actuelle) resonance [Principe de fonctionnement] |
||
---|---|---|---|
Ligne 10: | Ligne 10: | ||
{{: | {{: | ||
- | ===== Code ===== | + | {{: |
- | ==== Web ==== | ||
- | ===mars 2016 (stéphane)=== | + | ===== Messages ===== |
+ | |||
+ | ==== Ordinateur > ENG ==== | ||
+ | <code cpp> | ||
+ | "id on speed pan tilt reserved" | ||
+ | id : " | ||
+ | on : caractère 30 pour on, 31 pour off | ||
+ | speed : | ||
+ | pan : | ||
+ | tilt : | ||
+ | reserved : on ajoute un caractère pour un besoin futur | ||
+ | </ | ||
+ | |||
+ | ==== ENG > Ordinateur ==== | ||
+ | <code cpp> | ||
+ | "id tension inclinaison vitesseDeRotation choc reserved" | ||
+ | id : " | ||
+ | tension : | ||
+ | inclinaison : | ||
+ | vitesseDeRotation : | ||
+ | choc : caractère 30 si un choc, 31 si aucun | ||
+ | reserved : on ajoute un caractère pour un besoin futur | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Comportements ===== | ||
+ | {{: | ||
+ | ===== Code Web ===== | ||
+ | |||
+ | ====mars 2016 (stéphane)==== | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
Ligne 106: | Ligne 136: | ||
===== Rendu Vidéo ===== | ===== Rendu Vidéo ===== | ||
{{: | {{: | ||
+ | |||
+ | |||
+ | ==== Ip vidéo 08/04/16 ==== | ||
+ | Récupérer la vidéo du téléphone (application IPWebcam) avec OpenFrameworks : {{: | ||
+ | Télécharger [[https:// | ||
+ | |||
+ | <WRAP group> | ||
+ | <WRAP half column> | ||
+ | <code cpp> | ||
+ | #pragma once | ||
+ | |||
+ | #include " | ||
+ | |||
+ | #include " | ||
+ | #include < | ||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | class ofApp : public ofBaseApp{ | ||
+ | |||
+ | public: | ||
+ | void setup(); | ||
+ | void update(); | ||
+ | void draw(); | ||
+ | |||
+ | void keyPressed(int key); | ||
+ | void keyReleased(int key); | ||
+ | void mouseMoved(int x, int y ); | ||
+ | void mouseDragged(int x, int y, int button); | ||
+ | void mousePressed(int x, int y, int button); | ||
+ | void mouseReleased(int x, int y, int button); | ||
+ | void mouseEntered(int x, int y); | ||
+ | void mouseExited(int x, int y); | ||
+ | void windowResized(int w, int h); | ||
+ | void dragEvent(ofDragInfo dragInfo); | ||
+ | void gotMessage(ofMessage msg); | ||
+ | |||
+ | cv:: | ||
+ | cv::Mat mat; | ||
+ | ofImage img; | ||
+ | }; | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP half column> | ||
+ | <code cpp> | ||
+ | #include " | ||
+ | |||
+ | void ofApp:: | ||
+ | // IP Address | ||
+ | // You must add the " | ||
+ | // because OpenCv returns errors as it does not find the format ... | ||
+ | // See : http:// | ||
+ | vcap.open(" | ||
+ | img.allocate(640, | ||
+ | } | ||
+ | |||
+ | void ofApp:: | ||
+ | vcap.read(mat); | ||
+ | ofxCv:: | ||
+ | img.update(); | ||
+ | } | ||
+ | |||
+ | void ofApp:: | ||
+ | img.draw(0, | ||
+ | } | ||
+ | .... | ||
+ | .... | ||
+ | .... | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ |