pythonopencvdronekit

run python code with opencv environment and dronekit


I write a python 2.7 program that use opencv for image processing and control a drone with a kit.
if I run the the code with opencv environment,means that I have (cv) before the user name in python (ubuntu) , I get this error message

No module named serial


if I don't run the opencv and just start the program I don't get this error message but I can't use image processing.


Solution

  • after installing the serial fro here https://github.com/pyserial/pyserial I get other message serial object has no attribute 'setBuadrate' after that need to upgrade the dronekit version and then it works.