Skip to content

Raspberry Multi-Media Abstraction Layer Library for Python

License

Notifications You must be signed in to change notification settings

amaork/pylibmmal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pylibmmal

Raspberry Multi-Media Abstraction Layer Library for Python.

Features

  • Support Python 2+, Python3+

Installation

# First download Raspberry Pi GPU interfacing libraries and compile 

git clone https://github.com/raspberrypi/userland.git
cd userland && ./buildme

# Second copy `build` to /opt/vc
sudo cp build/* -a /opt/vc

# Finally install pylibmmal   
sudo python setup.py install

or

sudo make install

or

# Install with specify version python
sudo make install PYTHON=pythonX.X

or

sudo pip install git+https://github.com/amaork/pylibmmal.git

Usage

import time
import pylibmmal

# Display on hdmi port
graph = pylibmmal.MmalGraph(display=pylibmmal.HDMI)
graph.open('image_file_path')

# Wait
time.sleep(3)

# Close
graph.close()

About

Raspberry Multi-Media Abstraction Layer Library for Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published