Skip to content

Instantly share code, notes, and snippets.

View benaisc's full-sized avatar

Charles benaisc

View GitHub Profile
@benaisc
benaisc / create_DAGAN_database.py
Last active October 29, 2019 18:15
create_DAGAN_database
#!/usr/bin/env python3
# coding: utf8
import numpy as np
from pathlib import Path
import matplotlib.image as mpimg
"""
Suppose a file tree i.e:
imgs/
|class1/
@benaisc
benaisc / afficheStream.py
Created May 24, 2017 07:32
python opencv mpeg streamer
#!/bin/python
#coding : utf-8
import sys, os
import numpy as np
import urllib
import cv2
from datetime import datetime
streamURL = 'http://72.240.51.213/mjpg/video.mjpg'