Skip to content

Instantly share code, notes, and snippets.

View Saafke's full-sized avatar
🖥️
Training...

Xavier Weber Saafke

🖥️
Training...
View GitHub Profile
@JDWarner
JDWarner / _jaccard.py
Last active April 20, 2024 01:38
Jaccard coefficient between two boolean NumPy arrays or array-like data. This is commonly used as a set similarity metric, and it is a true metric. The dimensionality of the input is completely arbitrary, but `im1.shape` and `im2.shape` much be equal. This Gist is licensed under the modified BSD license, otherwise known as the 3-clause BSD.
"""
_jaccard.py : Jaccard metric for comparing set similarity.
"""
import numpy as np
def jaccard(im1, im2):
"""
@jirihnidek
jirihnidek / blender_img_3d_background.py
Last active December 31, 2021 15:56
This is simple Blender Python script for setting 3D background empty object.
"""
This example try to create new empty object visualized as
image. Image fits to the background of current active camera.
When you set X,Y coordinates of empty object called 'Pixel',
then this object is position at corresponding X,Y coordinate
at image in 3D space.
"""
import bpy
import math
@diegopacheco
diegopacheco / latest-protobuf-ubuntu-18-04.md
Created June 7, 2018 20:13
How to Install Latest Protobuf on Ubuntu 18.04
sudo apt-get install autoconf automake libtool curl make g++ unzip -y
git clone https://github.com/google/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
make
make check
sudo make install
sudo ldconfig
@davegreenwood
davegreenwood / triangulation.py
Created September 16, 2018 10:18
Triangulate image points to world points comparing openCV to pure python.
from __future__ import print_function
import numpy as np
import cv2
import time
np.set_printoptions(formatter={'float': '{: 0.3f}'.format})
def triangulate_nviews(P, ip):
"""
@Saafke
Saafke / gsoc19_dnn_superres.md
Last active March 28, 2022 13:55
[GSoC '19] Learning-based Super-Resolution in OpenCV

Google Summer of Code 2019 with OpenCV

Learning-based Super Resolution

Student: Xavier Weber
Mentors: Vladimir Tyan & Yida Wang
Student on the same project: Fanny Monori

Link to accomplished work:

@fannymonori
fannymonori / gsoc_2019_fmonori.md
Last active December 28, 2022 17:23
Google Summer of Code 2019 with OpenCV - Fanny Monori

Google Summer of Code 2019 with OpenCV

DNN based super-resolution module

Student: Fanny Monori
Mentor: Vladimir Tyan
Other student on the project: Xavier Weber
Other mentor on the project: Yida Wang

@maky-hnou
maky-hnou / Install CUDA 10.1 and Cudnn 7.6.5 on Ubuntu18.04
Last active April 29, 2022 18:16
Install cuda10.1 and cudnn 7.6.5 on Ubuntu 18.04
# Install Cuda 10.1 and Cudnn 7.6.5 on Ubuntu 18.04
## Start clean
sudo apt purge nvidia*
sudo apt remove nvidia-*
sudo rm /etc/apt/sources.list.d/cuda*
sudo apt autoremove && apt autoclean
sudo rm -rf /usr/local/cuda*
@Saafke
Saafke / opencvcuda.txt
Last active January 14, 2023 18:09
Terminal command for building opencv with contrib modules and CUDA support.
cmake \
-D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D INSTALL_C_EXAMPLES=OFF \
-D OPENCV_ENABLE_NONFREE=ON \
-D WITH_CUDA=ON \
-D WITH_CUDNN=ON \
-D OPENCV_DNN_CUDA=ON \
-D ENABLE_FAST_MATH=1 \
@GuyARoss
GuyARoss / main.js
Created August 9, 2020 08:22
stripe noise thing
import {_ as e, L as t} from "./index-4deec983.js";
import {a as n, C as i} from "./Controller-26bd1e9e.js";
import {S as s} from "./ScrollObserver-d0732a2c.js";
import {F as o} from "./index-bee741e4.js";
class r {
constructor(e, t, n, i=!1) {
const s = this
, o = -1 !== document.location.search.toLowerCase().indexOf("debug=webgl");
s.canvas = e,
s.gl = s.canvas.getContext("webgl", {

Overview

Mentors : Liubov Batanina @l-bat, Stefano Fabri @bhack, Ilya Elizarov @ieliz
Student : Jin Yeob Chung @jinyup100
Mentors' Project Proposal : https://summerofcode.withgoogle.com/projects/#4979746967912448
Link to Pull Request : opencv/opencv#17647
Link to video summarising the experience : https://www.youtube.com/watch?v=D9G1vHqJCrc

Introduction

Recent interest in computer vision has led to a great advance in the development of visual trackers. Specifically, various applications of Kernelized Correlation Function (KCF) and deep learning have led to numerous implementations of single object trackers using publicly available libraries. Lately, there has been an increased focus on the function of convolutional features in developing visual trackers. In this particular project, I look to focus on the implementations of visual trackers