Skip to content

Instantly share code, notes, and snippets.

View minhoolee's full-sized avatar
🐢
Working on myself slowly but surely

Mark Lee minhoolee

🐢
Working on myself slowly but surely
View GitHub Profile
@minhoolee
minhoolee / install-opencv-3.0.0
Last active March 31, 2024 04:05
Install OpenCV 3.0.0 for Ubuntu or Debian
# KEEP UBUNTU OR DEBIAN UP TO DATE
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y autoremove
# INSTALL THE DEPENDENCIES
# Build tools:
// Unmap undesired defaults
const unmaps = [
"sb", "sw", "ob",
"ow", "cp", ";cp",
";ap", "spa", "spb",
"spd", "sps", "spc",
"spi", "sfr", "zQ",
"zz", "zR", "ab",
"Q", "q", "ag",
"af", ";s", "yp",
#! /bin/sh
# Install script for OpenCV 3.1.0 for Ubuntu 14.04 LTS
# Written by Min Hoo Lee
# March 14, 2016 (3/14/2016)
echo "\nOpenCV Install Script for OpenCV 3.1.0 for Ubuntu 14.04 LTS\n"
# Activate all the apt-get repositories
echo "\nAdding all apt-get repositories\n"
sudo add-apt-repository main
#! /bin/bash
# Written by Mark Lee (github.com/minhoolee), August 9, 2018
set -e
# Define the directory that contains specific file structure
# Must be DEFECTS > SAMPLES > MODEL_IMAGES
test_dir=./data
# Define the model names
@minhoolee
minhoolee / .cvimrc
Last active September 12, 2018 10:50
" Settings
"set nohud
set smoothscroll
set typelinkhints
set cncpcompletion
set autoupdategist
set nochangelog
let searchlimit = 45
let scrollstep = 150
#! /bin/sh
# Install script for the NVIDIA Jetson TK1
# Written by Min Hoo Lee
# January 10, 2016 (1/10/16)
# Make sure to not override the file "libglx.so" by updating the system
sudo apt-mark hold xserver-xorg-core
sudo apt-get update
sudo apt-get install git vim curl cmake g++
@minhoolee
minhoolee / .tmp.cpp.run.cpp
Last active August 10, 2018 07:03
Leetcode-cli bug
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
@minhoolee
minhoolee / Makefile.config
Last active January 11, 2017 08:07
Caffe Makefile
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
# CPU_ONLY := 1
# uncomment to disable IO dependencies and corresponding data layers
@minhoolee
minhoolee / install-mjpg-streamer.sh
Last active January 11, 2017 08:06
install-mjpg-streamer.sh
#! /bin/sh
# Install script for mjpg-streamer
# Written by Min Hoo Lee
# March 27, 2016 (3/27/16)
# Install dependencies
sudo apt-get install imagemagick libv4l-dev libjpeg-dev
git clone https://github.com/codewithpassion/mjpg-streamer.git
cd mjpg-streamer/mjpg-streamer
@minhoolee
minhoolee / install-opencv-with-python.sh
Created January 11, 2017 07:06
Install the latest version of OpenCV (by building from source) with the extra opencv_contrib modules added. Python support is optional.
#! /bin/sh
# Install script for the latest version of OpenCV with python support and the extra modules added
# If installing with python, make sure to start the virtualenv before running the script
# Tested on Ubuntu 16.04 LTS, x64
# Written by Min Hoo Lee
# December 28, 2016 (12/28/2016)
# Exit script on failure
set -e