FTC Tensorflow issue

So, we are programming our bot with onBot java and are having an interesting problem this year. Using the stock signal sleeve, our camera sees each row on the sleeve as a separate object and tries to run the autonomous code multiple times. The easy solution is to put a wait at the end of the routine, so it times out before the next one starts.

Is anyone else experiencing this issue? Is there a better fix?

If you find it, set a variable like foundSleeveImage (or something) to true. Then in your loops you can always do something like

if(!foundSleeveImage && foundTensorFlowImage()) { ... }

(so “if you have not found an image before AND you have found the image now”). I haven’t done the Tensorflow stuff with Java yet but this is probably what I’d do if you can’t easily remove the loops.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.