Python Numpy Array To Opencv Image Detection Macro