![]() |
Re: Speed of the camera
Quote:
|
Re: Speed of the camera
Hes' not using C#, he wrote the same algorithm in C# so he could run it in Windows.
The code is pretty clean, and I can see why it is faster than the abomination that comes with the Two Color Tracking code. |
Re: Speed of the camera
Quote:
-TheDominis |
Re: Speed of the camera
Quote:
Quote:
|
Re: Speed of the camera
Quote:
-TheDominis |
Re: Speed of the camera
Quote:
|
Re: Speed of the camera
I doubt you have math1.cpp so I would comment out lines 8, 166 - 169, Add at line 424
Code:
//line 8 - #include "math1.cpp"Code:
CleanValues(); //at line 424-TheDominis |
Re: Speed of the camera
Quote:
|
Re: Speed of the camera
Quote:
-TheDominis |
Re: Speed of the camera
1 Attachment(s)
I come with gifts of code that actually attempts to find the target! I did a sloppy job with the transition from C# to C++ :*( . I want a robot to test on...
-TheDominis |
Re: Speed of the camera
Looking through the code I see a few things that jump out at me. On the good side, you have some expressions that ID the two target colors in RGB space. This will probably be faster than HSL comparisons, but be sure to test if it will be accurate. Be sure to test it against a full color spectrum from fully saturated, pastels, dark colors, etc. It will also be harder to tune if/when the lighting color changes, but otherwise it is a good approach.
On the worrisome side, it looks like you are starting up the camera with compression setting of 0. In my testing, that always resulted in slower framerate and skipped images. If you see issues, move that up to 20% or so, just watch the numbers near 0 and 100. Greg McKaskle |
Re: Speed of the camera
Quote:
We haven't actually tested the camera FPS since our hardware team is somewhat on the slow side in comparison to the software team. This is also why I wrote my algorithms in C#. I'll make sure to keep that in mind. -TheDominis |
| All times are GMT -5. The time now is 21:52. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi