gnebehay / cmt Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://www.gnebehay.com/cmt
License: Other
Home Page: http://www.gnebehay.com/cmt
License: Other
When trying to execute lines the following lines ( by pressing 'd') the program has an exception.
https://github.com/gnebehay/CMT/blob/master/run.py#L219-L220
Here is the console output:
Traceback (most recent call last):
File "run.py", line 215, in <module>
ipdb.set_trace()
NameError: name 'ipdb' is not defined
Hi Georg
The DESC_LENGTH in your Code is hardcoded 512.
But the dtype of the BRIEF (or ORB) descriptor is uint8 and the length is 32.
I think it should be 8 times 32 = 256 as written in BRIEF: Binary Robust Independent
Elementary Features in section 3.3 Distance Distributions
BR Clemens
I just ran some of my own datasets on the CPP version. It worked great, but it was very noisy (keypoints detected all over) in the python version. Why might that be?
As opencv is now available at 3.1, are there any plans to upgrade CMT to work with 3.1
If not is there a particular sweet spot of OpenCV 3 that you found works ?
I am constantly getting the error below. Can someone help? I have modified the code to run for multiple objects by initializing it with a new region to start with. Please help. It stops throwing this error at times.
Thanks.
File "run2.py", line 136, in
CMT.process_frame(im_gray)
File "/home/shuchita/Documents/Internship/CMT-master/CMT.py", line 245, in process_frame
selected_matches_all = self.matcher.knnMatch(features, self.selected_features, len(self.selected_features))
TypeError: object of type 'NoneType' has no len()
Can CMT be used for multiple objects in a frame? If yes, please suggest the best way that could be possible.
I'm getting a core dumped fault on ubuntu 14.04 when I run the command
CMT$ python run.py challenge.mp4
challenge.mp4 is located in the CMT directory.
Any help with that is appreciated
When using sample files there seem to be some differences in the outputs shown than to my result. Number of key points is less in my outputs then in shown results. Key points are also tightly cluster in center of box, all in center are coloured blue. Any points not in exact center of Box are white. None are green like samples, why did this change, is this for newer versions? Also in results like cup on table, the cup is not tracked and is lost very easily by program. I can post output if needed. Sorry for bad english.
So the original issue was:
"I am trying to run CMT on some of the provided data sets and I am encountering the OpenCV error: Assertion failed (scn == 3 || scn == 4). Any Idea what could be causing this? seems to be called in run.py at line 104."
This seems to be alleviated by adding:
if len(im0.shape) == 3:
im_gray0 = cv2.cvtColor(im0,cv2.COLOR_BGR2GRAY)
else:
im_gray0 = im0
this in turn revealed what I think was the underlying issue. I keep getting that im0 is equal to None or None type meaning that either the program is not finding the specified files of the first frame is blank or "dead". I have looked around and have found some suggestions to try to fix this problem. Most add some code like :
" frame=cvQueryFrame(capture);
if (frame..empty()) break;"
(code from: http://stackoverflow.com/questions/21871540/opencv-error-assertion-failed-scn-3-scn-4?lq=1)
or:
if defects is None: else:
I am trying to fix it but being relatively new to Python I cannot get the program to rid the given video files, both color or gray scale.
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.