Input Image =========== .. automethod:: tfsdk.SDK.set_image You can set the image using an OpenCV ``cv::Mat`` by passing the image buffer as follows: .. code-block:: python :linenos: cv_img = cv2.imread(img_path) res = sdk.set_image(cv_img, cv_img.shape[1], cv_img.shape[0], tfsdk.COLORCODE.bgr) .. autoclass:: tfsdk.COLORCODE :no-undoc-members: