Servers by jDrones

Error while trying to use openCV

(kane111) #1

I intend to use openCV in Mission Planner Scripts. I have tried to import it using the import cv2 method, but it did not work. I also tried using the OS library to change the working directory to import cv2, but it gave me the following error:

Object reference not set to an instance of an object.

So can anyone please tell me if there is a way to have openCV working with Mission Planner?

(越千 刘) #2

Mission planner uses IronPython internally and *.pyd files are just not working for IronPython by default. I think it would be great if MP uses the ‘official’ version of python. Refer to this:

(kane111) #3

I got the computer vision thing working alright. Not exactly OpenCV, but yes, gets the job done!