We need a small example c++ linux-compatible project that accomplishes the following:
-Utilizes c++ openCV to load an image from disk.
-Calls a python function with the loaded image as a function argument (ideally without copying memory)
-This python function should call python OpenCV's cvtColor(HSV), inRange(), and findContours().
-The output of the python function should be a list of contours and the thresholded image
-The c++ program should then find the largest contour and print the size of the thresholded image.
We have a product with a visual user interface that allows for the configuration of computer vision pipelines, and we would like to be able to add python scripting to a future update. We would like to call python from within our c++ backend to handle errors and take advantage of our backend's various features.