How to make Rect transparent in opencv -


i looked @ opencv java doc loading in images onto frame. did using frame picture transparent, image has black background inside rectangular container. rect function :

mat submat = src.submat(new(rect((int) facesarray[i].tl().x, (int) facesarray[i].tl().y, (int)(facesarray[i].br().x- facesarray[i].tl().x), (int)(facesarray[i].br().y- facesarray[i].tl().y)); 

is there way set background of image transparent (i want remove black background , make transparent). please see link more info.

enter image description here


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -