You may have a look to this topic.
In recent versions of opencv, the API might have changed. Also have a look to this example.
You may have a look to this topic.
In recent versions of opencv, the API might have changed. Also have a look to this example.