amymcgovern / pyparrot

Python interface for Parrot Drones
MIT License
275 stars 129 forks source link

How to realtime bebop 2 with opencv ? #132

Open ThorPham opened 5 years ago

ThorPham commented 5 years ago

I want to use bebop realtime to face recognition. But i don't know how to take data realtime with open cv? Can you help me?

amymcgovern commented 5 years ago

https://pyparrot.readthedocs.io/en/latest/vision.html

ThorPham commented 5 years ago

Thank you, Happy New Year @amymcgovern . I can show GUI of bebop 2 to realtime. But can you so me function(or variable..)or whatever can i get directly video. Because I need to put it to OPENCV function to read and processing for face recognition

amymcgovern commented 5 years ago

The example code in that documentation shows you how to get the image. I save it out using opencv but you can do anything you want with it once you read it into opencv.

alishibli97 commented 5 years ago

@amymcgovern In the html site there is only code to stream using libvlc or ffmpeg. Do you know how we can stream live through opencv? i.e., not taking images separately but stream live. Any help is much appreciated! Thanks

amymcgovern commented 5 years ago

As has been mentioned in multiple issue threads, there is a big in opencv that prevents the streaming from working reliably on all OS's. there is apparently a solution for windows but I haven't added it since it is windows specific and I've tried to ensure things work across OSes.

alishibli97 commented 5 years ago

Can you share the solution on windows please @amymcgovern ? I've been trying for weeks I'm trying to make it work on windows for now. Thanks in advance.

amymcgovern commented 5 years ago

Look at the thread in: https://github.com/amymcgovern/pyparrot/issues/102

malfonso0 commented 5 years ago

hi.. see the updated answerd in https://github.com/amymcgovern/pyparrot/issues/102#issuecomment-487587094 regards