1 | initial version |
if your mask is all black, the bitwise_and operation will result in an all black frame, too (no pixels were retained).
try to "open up" your upper/lower range values for inRange() , currently, a very "red" or very "bright" image won't survive your filter.