Skip to content

Instantly share code, notes, and snippets.

dscha09 /
Created Aug 20, 2018 — forked from keithweaver/
Using OpenCV takes a mp4 video and produces a number of images.
Using OpenCV takes a mp4 video and produces a number of images.
You require OpenCV 3.2 to be installed.
Open the and edit the path to the video. Then run:
dscha09 /
Created Sep 7, 2018 — forked from allskyee/
opencv python camera frame grab and display on different threads with safe synchronization
#!/usr/bin/env python
from threading import Thread, Lock
import cv2
class WebcamVideoStream :
def __init__(self, src = 0, width = 320, height = 240) : = cv2.VideoCapture(src), width), height)
View UninstallTensorFlow.txt
pip show tensorflow
pip uninstall tensorflow
# Tensorflow 1.4 works only with Python 3.5
# to install downgrade Python 3.6 to Python 3.5 in Anaconda
conda install python=3.5
# now install tensorflow 1.4
sudo apt-get install python3-pip python3-dev
pip install tensorflow
dscha09 /
Created Jan 9, 2019 — forked from saghiralfasly/
Python script to create tfrecords from pascal VOC data set format (one class detection) for Object Detection API Tensorflow, where it divides dataset into (90% train.record and 10% test.record)
import os
import io
import glob
import hashlib
import pandas as pd
import xml.etree.ElementTree as ET
import tensorflow as tf
import random
from PIL import Image