[OpenCV] detectMultiScale: output detection score

OpenCV provides quite decent implementation of the Viola-Jones Face detector. A quick example looks like this (OpenCV 2.4.5 tested): // File: main.cc #include using namespace cv; int main(int argc, char **argv) { CascadeClassifier cascade; const float scale_factor(1.2f); const int min_neighbors(3); if (cascade.load(“./lbpcascade_frontalface.xml”)) { for (int i = 1; i < argc; i++) { Mat img […]

Setup dropbox without X

Assume you are accessing your server remotely through SSH. 1. Download the package, say you are using Ubuntu $wget https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_1.4.0_amd64.deb 2. Install the package $sudo dpkg -i *dropbox_1.4.0_amd64.deb 3. Start Dropbox $dropbox start 4. You will get an url to link your computer here, copy-and-paste into your web-browser. Restart your dropbox, all set :] $dropbox […]