First time here? Check out the FAQ!
answered 2017-09-21 23:51:47 -0600
Instead of simple thresholding, try an adaptive threshold. You also may want to do an edge detection ( with or without background subtraction ).