djiuser_riyhuDv749my
lvl.1
Belgium
Offline
|
**Solved**
Hello everyone. When I run my Tello Edu camera with my Python code, I realize that colors are not correct. My glass is yellow, but i see it blue. Weirdly when it records it's camera again through the computer screen, as you can see its correctly yellow again. It works correctly on my tello mobile app too. I am confused can someone explain?
This is my code=
from djitellopy import Tello
import cv2
mydrone= Tello()
def main():
try:
mydrone.connect()
print(mydrone.get_battery())
print("connected")
mydrone.streamon()
finally:
mydrone.streamoff()
Edit= I added img=cv2.cvtColor(img, cv2.COLOR_BGR2RGB) into my code and it was fixed, my apologies im a newbie
|
|