Skip to content

Instantly share code, notes, and snippets.

BigsnarfDude bigsnarfdude

Block or report user

Report or block bigsnarfdude

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="WebRTC code samples">
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1, maximum-scale=1">
<meta itemprop="description" content="Client-side WebRTC code samples">
<meta itemprop="image" content="../../../images/webrtc-icon-192x192.png">
<meta itemprop="name" content="WebRTC code samples">
View client.js.html
<!DOCTYPE html>
<html>
<head>
<title>Hello world</title>
</head>
<script src = "/socket.io/socket.io.js"></script>
<script>
var socket = io('http://localhost:8000');
socket.emit('clientEvent',
View goturn_opencv_tracker.py
import cv2
tracker = cv2.TrackerGOTURN_create()
# Read video
video = cv2.VideoCapture("chaplin.mp4")
# Exit if video not opened
if not video.isOpened():
View webcam_yolo_car_counter.py
import sys
import cv2
from trackers.tracker import create_blob, add_new_blobs, remove_duplicates
import numpy as np
from collections import OrderedDict
from detectors.detector import get_bounding_boxes
import uuid
import os
import contextlib
from datetime import datetime
View single_plate_tensorflow.py
import argparse
import time
import cv2
import numpy as np
import tensorflow as tf
from imutils import paths
from object_detection.utils import label_map_util
from base2designs.plates.plateFinder import PlateFinder
from base2designs.plates.predicter import Predicter
from base2designs.plates.plateDisplay import PlateDisplay
@bigsnarfdude
bigsnarfdude / train.py
Created Jul 9, 2019
tensorflowjs converter workflow from keras model
View train.py
from __future__ import absolute_import, division, print_function, unicode_literals
# TensorFlow and tf.keras
import tensorflow as tf
from tensorflow import keras
# Helper libraries
import numpy as np
import matplotlib.pyplot as plt
View gist:b9926795b039f89af10ae482db7ac083
https://github.com/bigsnarfdude/tfjs-node-example
https://github.com/tensorflow/tfjs-examples/tree/master/baseball-node
https://github.com/google/node-gles
https://medium.com/tensorflow/introducing-bodypix-real-time-person-segmentation-in-the-browser-with-tensorflow-js-f1948126c2a0
https://github.com/tensorflow/tfjs-models/tree/master/body-pix#person-segmentation
https://github.com/tensorflow/tfjs-examples/tree/master/mobilenet
https://github.com/tensorflow/tfjs-models
https://github.com/tensorflow/tfjs-node
https://github.com/tensorflow/tfjs-examples/tree/master/date-conversion-attention
https://2019.jsconf.eu/nick-kreeger/tensorflowjs-bringing-machine-learning-to-the-web-and-beyond.html
@bigsnarfdude
bigsnarfdude / ccn_chop_chop.py
Last active Jun 30, 2019
crop faces from pictures face_recognition lib and PIL
View ccn_chop_chop.py
import os
import numpy as np
import cv2
import mrcnn.config
import mrcnn.utils
from mrcnn.model import MaskRCNN
from pathlib import Path
# Configuration that will be used by the Mask-RCNN library
@bigsnarfdude
bigsnarfdude / person_detection_webcam_tensorflow.py
Last active Jun 1, 2019
person_detection_webcam_tensorflow.py
View person_detection_webcam_tensorflow.py
import os
import cv2
import time
import argparse
import multiprocessing
import numpy as np
import tensorflow as tf
from cam_utils import FPS, WebcamVideoStream
from multiprocessing import Queue, Pool
View clairevoyance.py
# coding: utf-8
# In[3]:
import sys
sys.path.append("..")
import pandas as pd
You can’t perform that action at this time.