In MarkerDetector::detect a static tmp buffer is allocated.
If you later call this method with an image of different size, memory is corrupted.
Recommended fix; dont use static buffers.... ever.
I know, it’s terrible. It was fine for the specific application I had do make the optimization for, but you’re absolutely right. And It won’t work with multiple instances either. Feel free to fix and make a pull request.
In MarkerDetector::detect a static tmp buffer is allocated. If you later call this method with an image of different size, memory is corrupted. Recommended fix; dont use static buffers.... ever.