Incrementally Detecting Moving Objects in Video with Sparsity and Connectivity