Skip to content

Instantly share code, notes, and snippets.

View ndrplz's full-sized avatar

Andrea Palazzi ndrplz

View GitHub Profile
@ndrplz
ndrplz / opencv_skin_segmentation.cpp
Created November 1, 2017 08:45
Simple hand segmentation from the webcam streaming.
#include <opencv2\opencv.hpp>
using namespace cv;
using std::cout;
/*--------------- SKIN SEGMENTATION ---------------*/
int main () {
VideoCapture cap(0);
if(!cap.isOpened())
@ndrplz
ndrplz / homography_baseline.py
Last active September 4, 2022 16:33
Define and train the homography baseline for "Learning to Map Vehicles into Bird's Eye View"
"""
HomographyModel maps the bottom of the frontal frame bbox to the birdeye view.
Length and width of the bounding box are evaluated as mean across training.
"""
import os
import cv2
import pickle
import numpy as np
from glob import glob