Giter Site home page Giter Site logo

dbaldwin / droneblocks-tello-camera-with-python-opencv Goto Github PK

View Code? Open in Web Editor NEW
21.0 6.0 12.0 5.02 MB

Take photos and record videos with Tello's camera using a browser-based app and DroneBlocks

Home Page: https://learn.droneblocks.io/p/opencv-python-and-droneblocks-for-tello-camera-control/

License: Apache License 2.0

Python 2.07% HTML 1.69% CSS 0.29% JavaScript 95.95%

droneblocks-tello-camera-with-python-opencv's Introduction

DroneBlocks Tello Camera Access with Python, OpenCV, Flask

A Python based project that allows users to manually control Tello, access the camera, and program Tello with DroneBlocks. Check out the course that walks through the details of installing dependencies and using the app:

https://learn.droneblocks.io/p/opencv-python-and-droneblocks-for-tello-camera-control/

Please note that this project has only been tested on Windows 10 and Mac OS X

This project was developed by the DroneBlocks team to provide the following capabilities:

  1. Navigate Tello using brower based controls
  2. Navigate Tello using the keyboard: wasd for left stick control and up/down/left/right arrows for right stick control
  3. Access Tello's camera to take photos and record video
  4. DroneBlocks for block-based programming and autonomous flight
  5. Basic introduction to computer vision with ArUco markers
  6. Joystick control coming soon

Software dependencies

Support

If you need help installing dependencies please consider purchasing our course to support this project. You can also feel free to open an issue and join our Facebook group.

droneblocks-tello-camera-with-python-opencv's People

Contributors

dbaldwin avatar youngsoul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

droneblocks-tello-camera-with-python-opencv's Issues

in or cm has consistent number

When switching from inches to centimeters, the max value does not adjust to reflect the Tello limitations. It allows you to request 500 inch movements, resulting in 1270 cm movement request to Tello.

Please have the in/cm toggle also limit the movement range. Thank you.

Segmentation Fault when running a mission

I am running the mission that is shown in the new DroneBlocks course.

takeoff();
fly("forward", 20, "in");
video('start');
hover(5);
flip("forward");
flip("backward");
video('stop');
hover(5);
yaw("right", 90);
takePhoto();
yaw("left", 180);
takePhoto();
land();

The app.py program crashes with a segmentation fault after the two flip commands execute. Then the Tello lands on its own after a few seconds.

Running on a Mac (latest Catalina build 10.15.2). Python 3.7.5.

not connected

Hi Baldwin, I have a problem:
Not connected the drón to the localhost server.
image

Toggling video stream

Fix issue when turning stream on, off, and then on again.

Error on request:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/werkzeug/serving.py", line 304, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python3.7/site-packages/werkzeug/serving.py", line 294, in execute
for data in application_iter:
File "/usr/local/lib/python3.7/site-packages/werkzeug/wsgi.py", line 506, in next
return self._next()
File "/usr/local/lib/python3.7/site-packages/werkzeug/wrappers/base_response.py", line 45, in _iter_encoded
for item in iterable:
File "/Users/db/_DroneBlocks/DroneBlocks-Tello-Camera-With-Python-OpenCV/app.py", line 22, in get_frame
frame = camera.get_frame()
File "/Users/db/_DroneBlocks/DroneBlocks-Tello-Camera-With-Python-OpenCV/lib/camera.py", line 38, in get_frame
frame = cv2.resize(self.frame, self.frame_size)
cv2.error: OpenCV(4.1.2) /tmp/opencv-20191101-65027-1spwz8t/opencv-4.1.2/modules/imgproc/src/resize.cpp:3720: error: (-215:Assertion failed) !ssize.empty() in function 'resize'

Circular buffer

Hi guys,
I'm having a read message in my terminal while using my Tello drone while streaming. I usually get a delay or nothing back from the Tello.
I get this error :

Circular buffer overrun. To avoid, increase fifo_size URL option. To survive in such case, use overrun_nonfatal option

I'm using firefox as a web browser host.

Thanks !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.