Coder Social home page Coder Social logo

ahmetozlu / vehicle_counting Goto Github PK

View Code? Open in Web Editor NEW
116.0 9.0 60.0 12.18 MB

Vehicle detection, tracking and counting by blob detection with OpenCV on c++.

Home Page: https://youtu.be/3uMKK28bMuY

License: MIT License

C++ 97.71% CMake 2.29%
opencv vehicle-detection vehicle-tracking vehicle-counting blob-detection blob-tracking image-processing thresholds

vehicle_counting's People

Contributors

ahmetozlu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vehicle_counting's Issues

code understanding

Hi @ahmetozlu
I am trying to understand this code.but i didn't getting that for what below lines are exactly used.

int intHorizontalLinePosition = (int)std::round((double)cameraFrame1.rows * 0.35);
intHorizontalLinePosition = intHorizontalLinePosition*1.40;
intVerticalLinePosition = (int)std::round((double)cameraFrame1.cols * 0.35);

thanks.

solving a bug about ConsecutiveFramesWithoutAMatch

there is a problem in code for sequenced blobs counter
every time we add a blob to existing blobs we must recount , because blob is alive and we want to find sequences of frames that blob is not appear,
without this line we are count all frames that blob is disappear

void addBlobToExistingBlobs(Blob& currentFrameBlob, std::vector& existingBlobs, int& intIndex) {
existingBlobs[intIndex].currentContour = currentFrameBlob.currentContour;
existingBlobs[intIndex].currentBoundingRect = currentFrameBlob.currentBoundingRect;
existingBlobs[intIndex].centerPositions.push_back(currentFrameBlob.centerPositions.back());
existingBlobs[intIndex].dblCurrentDiagonalSize = currentFrameBlob.dblCurrentDiagonalSize;
existingBlobs[intIndex].dblCurrentAspectRatio = currentFrameBlob.dblCurrentAspectRatio;
existingBlobs[intIndex].blnStillBeingTracked = true;
existingBlobs[intIndex].blnCurrentMatchFoundOrNewBlob = true;
existingBlobs[intIndex].intNumOfConsecutiveFramesWithoutAMatch=0;
}

no CMakeLists.txt

Could you create a CMakeLists.txt for the new cmake versions?

(running on cmake 3.9.2)

Cross compile for ARM

Hi
I want to cross compile this code for arm architecture with aarch64-linux-gnu-g++-5 toolchain.
please can you suggest me how to cross compile it ?

thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.