Comments (5)
I got an error with your 2 images, but not at the same position than you (the error happened when all the detected features are in the selected area and no one outside), I committed an update on CMT.cpp and it works with your 2 images on my computer.
Can you try again and say me if it works?
Do you call cmt.initialise on the first frame before calling cmt.processFrame?
thanks
from libcmt.
It works on the two images and some other videos!
Yes, I did call cmt.initalise(im, topleft, bottomright) on the first frame.
In my codes, I just add the below since those two are not defined in C/C++. Do you think it makes any difference?
#define NAN (INT_MIN)
#define isnan(x) ( ((x)==NAN)? 1: 0 )
from libcmt.
INT_MIN may not be the best for define NAN but maybe it works.
The best solution is to compile with c++11 that defines NAN
I made a new commit with compatibility code that I have found on internet, it should work but maybe it's dependent of the compiler.
from libcmt.
Thank you, delmottea, for your great work!
Quick questions:
- how can we check whether the tracker was intialized? is it (nbInitialKeypoints > 0)?
- should we nbInitialKeypoints = 0; in the CMT() constructor?
Minor comment: since you are using OpenCV, can we just simply use CV_PI instead of M_PI?
from libcmt.
I've added nbInitialKeypoints = 0 in the constructor so you can use it to check if it's initialized.
and thanks for the CV_PI constant, I didn't thought to use it
from libcmt.
Related Issues (15)
- What is exact license? HOT 1
- Building against opencv 3 on OS X HOT 1
- access violation in initialise function
- Slow framerate HOT 1
- error "This may be due to a corruption of the heap,or any of the DLLs it has loaded" when running cmt.initialise() function HOT 3
- Is it identicial or better than gnebehay's repo?
- Emgu CV Wrapper HOT 1
- Build problem: calcOpticalFlowPyrLK HOT 1
- Instructions to build for Visual Studio/Windows HOT 1
- License problem HOT 4
- โsprintfโ was not declared in this scope when compiling HOT 3
- Modify code to process video from camera HOT 3
- nested loop confusion HOT 1
- Bug in the tracking function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libcmt.