This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
if __name__ == '__main__': | |
stylo = cv2.imread("stylo.png") | |
hsv = cv2.cvtColor(stylo, cv2.COLOR_BGR2HSV) | |
maxs = np.max(np.max(hsv, axis=0), axis=0) | |
mins = np.min(np.min(hsv, axis=0), axis=0) | |
# on accede au device | |
capture = cv2.VideoCapture(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
if __name__ == '__main__': | |
# on accede au device | |
capture = cv2.VideoCapture(0) | |
while True: | |
# on capture une image | |
_, frame = capture.read() | |
# on l'affiche : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ros/ros.h> | |
int main(int argc, char** argv) | |
{ | |
ros::init(argc, argv, "ros_something"); | |
ros::start(); | |
XmlRpc::XmlRpcValue params("ros_topic_list"); | |
XmlRpc::XmlRpcValue results; | |
XmlRpc::XmlRpcValue r; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// to compile : g++ norm.cpp -lIrrlicht -o norm | |
#include <irrlicht/irrlicht.h> | |
using namespace irr; | |
using namespace core; | |
using namespace scene; | |
using namespace video; | |
using namespace io; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat file.json | python -mjson.tool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <iostream> | |
#include <sstream> | |
std::wstring Anchor( int i ) | |
{ | |
std::wstringstream stream; | |
stream << i; | |
std::wstring str = L"{"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, os, random | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * | |
import matplotlib | |
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas | |
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as NavigationToolbar | |
from matplotlib.figure import Figure | |
import subprocess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
g++ main.cpp -lboost_system -lboost_thread -lpthread -o main | |
*/ | |
#include <boost/asio.hpp> | |
#include <boost/array.hpp> | |
#include <iostream> | |
void send_something(std::string host, int port, std::string message) |