How could I configure `` to use opencv to write pytorch cpp extension?


Following this tutorial, I got to know how to write simple cpp extension for pytorch. However, in my extension, I need to use opencv as a third party library. When I have the line #include <opencv2/opencv.hpp> in my code, I got the error message of opencv2/opencv.hpp: No such file or directory. Would you please tell me how to configure the file to let the extension support opencv ?

1 Like