1 | initial version |
Turns out the cause of most of my issues was in the coordinates I was feeding to grabCut. After I fixed them most of my issues went away.
Other lessons learned:
Thanks for the help @LBerger, it helped me a lot.
Here is my updated block from above: https://gist.github.com/pcardoso/5ecc901062b3ac7e5160bfb308f3fd5f