opencv:

https://blog.csdn.net/lwplwf/article/details/61616493