|
Re: Tracking Multiple Targets
The operations performed in image processing are expensive, and become even more so when allocating 300 kb (640x480 at 1 byte per pixel; a BinaryImage). Is it actually outputting processed data? If so, it may just be that the processing is taking too much time. There are a few ways to optimize the image processing, and you can do such things as setting up the processing to run in a separate thread and putting the drive code in continuous to make sure the robot drive gets updated often enough.
But before any of this, there's one thing I'd like to see: the output, in its entirety. If an exception happened, the type of exception and the call stack can provide a lot of information. If there's no exception, it just means you need to find some creative ways to optimize.
|