Skip to content

Instantly share code, notes, and snippets.

View dvida's full-sized avatar

Denis Vida dvida

  • University of Western Ontario
  • Canada
  • X @meteordoc
View GitHub Profile
@dvida
dvida / powerlaw_fitting_MLE.py
Created December 16, 2017 18:38
Using maximum likelihood estimation for power law fitting in Python
from __future__ import print_function
import numpy as np
import scipy.stats
import matplotlib.pyplot as plt
# Exponent
a = 3.2
@dvida
dvida / opencv_live_faceswap.py
Created May 28, 2015 07:39
OpenCV camera - replaces all faces on the image with the first detected face
import numpy as np
import cv2
baboon = cv2.imread('slike/baboon.bmp')
cap = cv2.VideoCapture(0)
while(True):