Source code for the OpenCV components

Hey, there! One of my teams is trying to implement the Colour Locator code, as per the sample code for that, and is getting intermittent crashes (“cannot get .width() on a null sample”, generally after acquiring and then losing sight of a sample; stack trace suggests it’s coming from the use of a pre-filter supplied to the processor) which, as far as I can figure out, they themselves have coded to avoid. I even helped them wrap relevant bits in a try/catch, but the error recurs regardless, suggesting to me that the error may be showing up in the Vision Portal’s parallel thread rather than the main robot control thread.

I wanted to look at the code for the Colour Blob Processor they’re accessing, see if I could figure out whether there might be a subtle bug hiding somewhere inside the processor and its filters, but for the life of me I can’t actually find the source code for the processor itself.

Is there anywhere I can get at that source code and read through it?

I think what you want is to read the Tech Tip from 2/26/2024 titled, “Robot Controller Source Code”.

https://ftc-docs.firstinspires.org/en/latest/tech_tips/tech-tips.html#robotcontrollersourcecode

This contains much of what you need there. You can get access to all versions of the source through 10.1 through that which contains what you’re asking for.

To piggy back off Danny’s comment, direct link to Color Blob Locator Processor source: Extracted-RC/Vision/src/main/java/org/firstinspires/ftc/vision/opencv/ColorBlobLocatorProcessorImpl.java at master · OpenFTC/Extracted-RC · GitHub

Perfect! Thanks, guys. Much appreciated.