Skip to content

Instantly share code, notes, and snippets.

View andrepereira's full-sized avatar

André Luis Pereira dos Santos andrepereira

View GitHub Profile

Keybase proof

I hereby claim:

  • I am andrepereira on github.
  • I am andrepsantos (https://keybase.io/andrepsantos) on keybase.
  • I have a public key ASCEWID-X3B8or9Ak6oPHuKWvCvFm0LTzmk6xXfIFXW5ggo

To claim this, I am signing this object:

@andrepereira
andrepereira / trackingCar.cpp
Created January 23, 2019 14:21
Tracking cars using OpenCV and C++ with step to minimize false positives
std::vector<cv::Rect> cars;
//...
cv::VideoCapture cap("/home/andre/Documentos/opencv/cpp/car/build-CarTrack-Desktop-Debug/treci.mkv");
cv::Mat gray, gray_blur, frame;
cv::CascadeClassifier carCascade;
bool b = carCascade.load("/home/andre/Documentos/opencv/cpp/car/build-CarTrack-Desktop-Debug/cars3.xml");
if(b == false) { std::cout << "No XML to load cars3.xml\n"; return -1; }