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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -