Fixed crash when using OpenCV version 3.0+
该提问来源于开源项目:tiny-dnn/tiny-dnn
Patch submitted #582 to address the issues above. Thanks.