ahmetozlu / vehicle_counting Goto Github PK
View Code? Open in Web Editor NEWVehicle detection, tracking and counting by blob detection with OpenCV on c++.
Home Page: https://youtu.be/3uMKK28bMuY
License: MIT License
Vehicle detection, tracking and counting by blob detection with OpenCV on c++.
Home Page: https://youtu.be/3uMKK28bMuY
License: MIT License
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.
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;
}
Could you create a CMakeLists.txt for the new cmake versions?
(running on cmake 3.9.2)
/home/carlos/Documents/Car counting/vehicle_counting/src/Main.cpp:21:63: fatal error: conio.h: No such file or directory
Any way to fix this? Thanks!
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.