bnnorman / rpi-rgb-led-matrix-animator Goto Github PK
View Code? Open in Web Editor NEWPython code to play animation sequences on an RGB LED matrix panel using the HZeller drivers
Python code to play animation sequences on an RGB LED matrix panel using the HZeller drivers
ImageDemos.py keeps crashing with the no module named matplotlib.colors.
I imported matplotlib, and it was successful, but I still get the following error when trying to run ImageDemos.py:
Starting, please wait...
PathSetter.py: Parent folder added to sys.path
Traceback (most recent call last):
File "ImageDemos.py", line 26, in <module>
from LEDAnimator import ImageAnimations
File "/home/pi/Documents/python_projects/led_animator/LEDAnimator/ImageAnimations.py", line 13, in <module>
from ImageAnimBase import ImageAnimBase
File "/home/pi/Documents/python_projects/led_animator/LEDAnimator/ImageAnimBase.py", line 10, in <module>
from AnimBase import AnimBase
File "/home/pi/Documents/python_projects/led_animator/LEDAnimator/AnimBase.py", line 13, in <module>
from matplotlib.colors import *
ImportError: No module named matplotlib.colors
Any thoughts?
PS - I forked your project, which is why the path looks different. I'm also running this on a Pi 4.
Currently the code does not support characters beyond ascii code 255.
Need to find out how to put unicode characters into python 2 strings
Hi Brian,
I am interested in your library but I do not know how to install and run the examples,
I did not find any installation instructions, It's not even clear how the simulator can be run, please correct the instructions.
Also, I wrote an simulator with pygame that has an acceptable speed.
I suggest watching the video below.
Thanks,
This happens because the class TextAnimBase is expecting a Text() object so it creates an empty buffer at 0,0.
Changes are required to the code to make this work as expected. Currently, if you supply a Text() object to the TextAnimation.Wait animation the text will/should appear in the specified location for the duration of the Wait.
Workaround: use ImageAnimations.Wait instead.
Hello ,
I really like your library , thank you for your work !
I clone your repo on my local windows 10 dev pc and install pycharm and anaconda2 and i can run perfeclty your differents examples and it works like a charm.
But on my Rpi3 (i am on the same wiring Active3 with 64*64 LEDpanels) with Raspbian jessie with python lib installed from Hzeller , i also installed berryconda for the dependencies.
I have the following error when trying to play your examples :
"Traceback (most recent call last):
File "PanelDemo.py",line 50, in
videoName"./PanelDemo.avi")
File "/home/pi/libtest/LEDAnimator/Panel.py", line 144 , in init
canvas=matrix.CreateFrameBuffer()
AttributeError: 'rgbmatrix.core.RGBMatrix' object has no attribute 'CreateFrameBuffer'
"
it seems that there is no method "CreateFrameBuffer" in the rgbmatrix from hzeler.
i don't know what i have to do to debug this , Can you help me please ?
Hello Brian ,
I have a problem with the two fonts :
i can't use some specifics chars like : 'é' / 'è' / 'ç' / 'à' and the most important char that i need the Euros logo '€'
Can you help me ?
How i can add this missing chars ?
Regards ,
Valentin
Hello Brian ,
I try to do a simple Programme animation with only a logo and a 2 texts message.
I want to display my logo on the all screen for 5 seconds , after that i want to play two scrolling text for 8 seconds at the same time and loop again all the sequences (Logo + texts). i want that the text is displayed alone (without any logo)
I try some possibilities to do that (with StartPause and EndPause) but isn't work for me because either the text is over the logo or the logo is over the text and it's not good for me ...
Can you help me please ?
Regards,
Valentin
Hello ,
I am doing some test with your Examples and it's like that the program freeze/stop to run.
The animation is stuck but the Rpi isn't bugged
i have to close and rerun the script to start again the animation
The crash occur every 21min and 17sec (i try many times) on your MixedDemo.py with a 64*64 display
There is no crach on the windows simulator.
Can you reproduce this bug on your system ?
Reagards ,
Valentin
Hello Brian ,
How are you ?
I am doing some test with differents texts and logos on a 128*128 LED panels
I notice that when there are some fixed text or logo (TextAnimations.On() method for exemple ) ,
the text or logo Flickers
I try to change FPS but no change ..
How i can resolve this problem ?
with scolling text i have not noticed any flickers problems , it's strange ..
I don't remenber but with older versions of your lib i have not seen this problem earlier ..
there is no problem on the windows simulator
can you help me please ?
Regards , Valentin
When I try to run PanelDemo.py I get the following error:
Doing imports, please wait...
PathSetter.py: Parent folder added to sys.path
Traceback (most recent call last):
File "PanelDemo.py", line 33, in <module>
from LEDAnimator.Chain import *
File "/home/pi/rpi-rgb-led-matrix-animator/LEDAnimator/Chain.py", line 37, in <module>
import Helpers.AntiAlias as AA
File "/home/pi/rpi-rgb-led-matrix-animator/LEDAnimator/Helpers/AntiAlias.py", line 42
def antiAlias(self,method=None,coordList):
SyntaxError: non-default argument follows default argument
Any clue? Running PanelCheck.py works just fine.
Hello Brian ,
I don't find a way to Stop and restart the Animator
like A.stop() to stop the animator on the panel and after add new Sequence and relaunch it for exemple
Can you help me ?
Regards ,
Valentin
Hello Brian,
I have an 1px border now when playing your Examples in both Simulator and Panels.
Can you please remove this like the previous version ?
Thank you ,
Regards
Valentin
When calculating the length of a text message the code calls the relevant method for each font to find out the length of the message in pixels in order to create an image onto which the text is rendered before being sent to the panel.
The code handles multicolored text character by character and uses the individual character widths to place the characters. Unfortunately this results in the string being too long.
To solve the problem Multi-colored text needs to use kerning.
OpenCV appears to only use Hershey fonts.
Using PIL it is possible to read and render TrueType and OpenType fonts but requires converting the numpy array to a PIL image and back again.
Hello Brian ,
After several test on the TextDemo.py i don't find a way to scroll a text "entirely" :
the text do not complety exit from the left side of the screen
instead of that it's disappears when the end of the text reaches the right side of the screen
(when the text is larger than the screen itself otherwise it's disappears when the beginning of the text reaches the left side)
it's a bit complicated to explain but the problem makes scrolling not smooth
Regards ,
Valentin
Hello Brian ,
I am doing some test with differents scrolling texts on a 256*64 LED panels
I notice that when the panel is bigger than 6464 (like 25664) the scrolling is jerky ..
I try to change FPS but no change ..
How i can resolve this problem ?
on the windows simulator the problem is less visible but it's also a little bit jerky
can you help me please ?
Regards , Valentin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.