First time here? Check out the FAQ!
The problem is because the bug in OpenCV version 3.4.1. Please refer https://github.com/opencv/opencv/issues/11126