Nn_index.h:71: error: (-215:Assertion failed) in Java

The operation of OpenCV (see code above) always takes place in the same thread. This means the determination of the KeyPoints and their descriptors and their matching. The code is just executed massively in parallel (in many threads) for many frames.