DJITelloPy icon indicating copy to clipboard operation
DJITelloPy copied to clipboard

Wrong frame size in documentation

Open irudnyts opened this issue 6 months ago • 3 comments

I noticed that the frame is actually 960x720, rather than 1080x720, as it is written here:

import pygame
from djitellopy import Tello

drone = Tello()
drone.connect()
drone.streamon()

frame_read = drone.get_frame_read()
print(frame_read.frame.shape)

drone.streamoff()

This is just typo, right?

irudnyts avatar Dec 07 '23 14:12 irudnyts

Yes seems like a typo. Maybe the camera can do photos in 1080x720, but i guess we can still change the text to the correct format. Fell free to send a pull request!

M4GNV5 avatar Dec 08 '23 14:12 M4GNV5

Will do. One more thing, I noticed that with different FPS I got different resolutions. I will try to prepare another reproducible example(s) and will get back with more details.

irudnyts avatar Dec 09 '23 20:12 irudnyts

Here are my observations:

  • CAMERA_FORWARD:
    • LOW_RESOLUTION: (478, 648, 3)
    • HIGHT_RESOLUTION: (720, 960, 3)
  • CAMERA_DOWNWARD: (720, 320, 3)

Probably I should ask this in the other issue, but what exactly does the bottom camera frame consist of? If I understand correctly, the first 240 columns are camera pixels, but there rest seem to be related to infrared sensors. Is there any info on that? Once I get this info, I will send a PR.

Oh, and I was wrong, FPS does not affect the resolution, but FPS_5 does not work for me whatsoever.

irudnyts avatar Dec 19 '23 12:12 irudnyts