Detect is the contour is in the mask area with JS
I'm using findContours(), after finding contours I want to check is the contour in the mask area or it's out of it, or some part is out from it. Mask area is just a rectangular shape. I want to detect the contours even if it's out of the mask but need to know where is it.
Currently using opencv.js 3.4.3