![]() |
Optimising the camera
Apologies if this has already been asked, but any help would be greatly appreciated.
I was searching the forums but didn't see quite what I was looking for. Our team is using Windriver. We got the camera to work (using the Two color tracker). Well, I guess there are two parts to the question. Firstly, how do I see how many fps I'm getting, the CPU usage, etc? Is it possible and how? Secondly, are there any teams that have made optimisations with the camera and are willing to share code? I just need to be able to track two colors. Thanks very much! |
Re: Optimising the camera
Quote:
at the top: create a new timer Timer tmr = new Timer(); just before the loop in auto or where ever your code is: int timesrun=0; tmr->Start(); in the loop: timesrun++; if (tmr->Get() >= 1.0) { tmr->Stop(); printf("This cycle was at %i Hz\n", (timesrun/tmr->Get()); tmr->Reset(); timesrun=0; tmr->Start(); } then open the console and every second, it should tell you the speed of the loop |
Re: Optimising the camera
Awesome, thanks for the code.
How have most people been optimising the camera code? I haven't found any good camera documentation based on C++. Any help would be appreciated on this, I kinda just need some documentation. Thanks |
| All times are GMT -5. The time now is 02:21. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi