add cv2 support, mat_to_text()