Ok, would this applicable: https://github.com/Daniil-Osokin/opencv/commit/5a490ef9fe2c14cbe43ef84314b3e5ff97b400f3?