Camera controlled crazyflie
Camera controlled crazyflie
Hi all,
Just wanna share with you guys, I have done a project using iMac's camera with OpenCV to control crazyflie's hovering(Thrust/Pitch/Roll). There are only three degree of freedom being controlled at the moment but the result is satisfying. check this out.https://www.youtube.com/watch?v=gfc48-1UA7w
Just wanna share with you guys, I have done a project using iMac's camera with OpenCV to control crazyflie's hovering(Thrust/Pitch/Roll). There are only three degree of freedom being controlled at the moment but the result is satisfying. check this out.https://www.youtube.com/watch?v=gfc48-1UA7w
Re: Camera controlled crazyflie
Looks great !!!
Do you want to share the source code? would love to test it.
Do you try to control the z-depth from the camera somehow? Kinect 2 gives would give a good reading on the depth?
Do you want to share the source code? would love to test it.
Do you try to control the z-depth from the camera somehow? Kinect 2 gives would give a good reading on the depth?
Re: Camera controlled crazyflie
The code is not ready to be public yet, as I am still working on a better algorithm to track the file other than color detection. But I will definitely share my code once it is ready. Yes, I only use One camera to track it including depth calculation. I think kinecct will definitely give you better depth detection than I did. I think it is actually using two cameras.
Re: Camera controlled crazyflie
This is so great!
I have been meaning to try that for a while but never got the time. I can't wait for the code and to play with it.
I like the idea of the two camera: it would be cheaper and easier than a kinect (well easier for the hardware part, for the software you will need to calibrate a bit the setup I guess).
What is the framerate of the webcam, 30fps?
I have been meaning to try that for a while but never got the time. I can't wait for the code and to play with it.
I like the idea of the two camera: it would be cheaper and easier than a kinect (well easier for the hardware part, for the software you will need to calibrate a bit the setup I guess).
What is the framerate of the webcam, 30fps?
Re: Camera controlled crazyflie
yes, fps is 29.97, I think higher frame rate is really significant to the performance of stabilization as the higher sampling rate gives better tracking result and responsive command sending to the flie
Re: Camera controlled crazyflie
Here you go, for those whoever interested in this project I am sharing my code: https://bitbucket.org/flightdynamics/detection.git
and the latest video on youtube https://www.youtube.com/watch?v=gsH1JjfWzX0
and the latest video on youtube https://www.youtube.com/watch?v=gsH1JjfWzX0
Re: Camera controlled crazyflie
Hi,
I am trying to build project but I encounter some problems
Could you say what are your Xcode and Osx version ?
Thanks
I am trying to build project but I encounter some problems
Could you say what are your Xcode and Osx version ?
Thanks
Re: Camera controlled crazyflie
Hi, I run it on Mac10.10 and Xcode 6.
Re: Camera controlled crazyflie
Hi
I get this error :
CFRadioController.h :
Lexical or Processor issue
"thread not found"
In the file include from /Users/.../flightdynamics/CameraDetection/CFRadioController.cpp:10:
I am running on OSX 10.10 and xcode 6.3.2
I get this error :
CFRadioController.h :
Lexical or Processor issue
"thread not found"
In the file include from /Users/.../flightdynamics/CameraDetection/CFRadioController.cpp:10:
I am running on OSX 10.10 and xcode 6.3.2
Re: Camera controlled crazyflie
I think its to do with your firmware, This radio C+= library looks like it is not being actively maintained, if you are using crazyflie1.0 maybe fall back to old version firmware, I use late 2014 or early 2015 without problem.