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:24] resonance |
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 ===== |
| - | ++++ Code Processing | | + | ==== Ordinateur > ENG ==== |
| - | < | + | < |
| - | Voici une nouvelle version du sketch se connectant à toutes | + | "id on speed pan tilt reserved" |
| - | https:// | + | id : " |
| - | https:// | + | on : caractère 30 pour on, 31 pour off |
| - | https:// | + | speed : |
| - | https:// | + | pan : |
| + | tilt : | ||
| + | reserved | ||
| + | </code> | ||
| - | sans passer par l'API de Twitter et permettant d' | + | ==== 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 | ||
| + | </ | ||
| - | Moins de résultats qu' | ||
| - | En pj un fichier txt donnant les résultats de tous les tweets récupérés un 16 Mars à 21h. Sera ce suffisant pour repérer de manière significative les mots " | ||
| - | Le code Processing (un peu raide) que je transmets à Nicolas Braun, il choisira en justifiant d' | ||
| + | ===== Comportements ===== | ||
| + | {{: | ||
| + | ===== Code Web ===== | ||
| + | ====mars 2016 (stéphane)==== | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | ++++ Code Processing | | ||
| + | <code java> | ||
| import java.util.regex.Matcher; | import java.util.regex.Matcher; | ||
| import java.util.regex.Pattern; | import java.util.regex.Pattern; | ||
| - | |||
| StringList tweetsAff = new StringList(); | StringList tweetsAff = new StringList(); | ||
| Ligne 118: | 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, | ||
| + | } | ||
| + | .... | ||
| + | .... | ||
| + | .... | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||