Fixed opencv-ndarray-conversion state