amymcgovern / pyparrot

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

just want images from VLC video stream for processing - don't need to see them #173

Open cvenour opened 5 years ago

cvenour commented 5 years ago

I'd like to alter demoMamboVisionGUI.py so that no GUI is drawn to the screen. I just want my python program to have access to the images from the VLC video stream, which i have thanks to _img = self.vision.get_latest_validpicture(), but I don't want to display those streaming images to screen. Can someone tell me how to get rid of the GUI window stuff?

Note that I want to use the VLC method of accessing the stream rather than ffmpeg because ffmpeg involves writing images to disk. I need to process the images as quickly as possible and don't want file i/o delays so that's why I'm using VLC rather than ffmpeg.

So to get rid of the GUI window stuff, can I just alter demoMamboVisionGUI.py somehow? Or do I need to comment out certain chunks of code from DroneVisionGUI.py?

amymcgovern commented 5 years ago

You can't get rid of the VLC GUI part as it is how it gets the video stream. The ffmpeg version is your only option if you want no GUI.

cvenour commented 5 years ago

o.k. thanks for the feedback. And thank you for creating the pyparrot api Amy - it is awesome!!