def prepro(I):
I = I[<NUM_LIT>:<NUM_LIT>]<EOL>I = I[::<NUM_LIT:2>, ::<NUM_LIT:2>, <NUM_LIT:0>]<EOL>I[I == <NUM_LIT>] = <NUM_LIT:0><EOL>I[I == <NUM_LIT>] = <NUM_LIT:0><EOL>I[I != <NUM_LIT:0>] = <NUM_LIT:1><EOL>return I.astype(np.float).ravel()<EOL>
Prepro 210x160x3 uint8 frame into 6400 (80x80) 1D float vector.