Sometimes, you will have to play with certain region of images. For eye detection in images, first face detection is done all over the image and when face is obtained, we select the face region alone and search for eyes inside it instead of searching whole image. It improves accuracy (because eyes are always on faces) and performance (because we search for a small area).
Heads up : in JS seems only one argument is expected.
Generated using TypeDoc
since we don't support inheritance yet we force Mat to extend Mat_ which type defined here: