maitredede / raspberrypi.libs Goto Github PK
View Code? Open in Web Editor NEWRaspberryPi dotnet libraries
RaspberryPi dotnet libraries
I am having problems running FreetronicsDMS.
This is what I have done:
$dotnet "build" "/RaspberryPi.Libs/FreetronicsDMD/FreetronicsDMD.csproj"
And then:
$cd ./RaspberryPi.Libs/FreetronicsDMD/bin/Debug/netcoreapp2.0
$sudo dotnet FreetronicsDMD.dll lib
And I am getting this error:
SixLabors.ImageSharp.ImageProcessingException: An error occured when processing the image using FillProcessor`1. See the inner exception for more detail. at SixLabors.ImageSharp.Processing.ImageProcessor`1.Apply(Image`1 source, Rectangle sourceRectangle) at SixLabors.ImageSharp.DefaultInternalImageProcessorContext`1.ApplyProcessor(IImageProcessor`1 processor, Rectangle rectangle) at SixLabors.ImageSharp.DefaultInternalImageProcessorContext`1.ApplyProcessor(IImageProcessor`1 processor) at SixLabors.ImageSharp.ImageExtensions.Fill[TPixel](IImageProcessingContext`1 source, IBrush`1 brush) at SixLabors.ImageSharp.ImageExtensions.Fill[TPixel](IImageProcessingContext`1 source, TPixel color) at RaspberryPi.PiGPIO.Drivers.Dede.FreetronicsDMDSurface.<>c__DisplayClass25_0.<Clear>b__0(IImageProcessingContext`1 updates) in /home/pi/Desktop/RaspberryPi.Libs/RaspberryPi.PiGPIO.Drivers.Drawings.ImageSharp/Dede/FreetronicsDMDSurface.cs:line 173 at SixLabors.ImageSharp.ImageExtensions.Mutate[TPixel](Image`1 source, Action`1 operation) at RaspberryPi.PiGPIO.Drivers.Dede.FreetronicsDMDSurface.UpdateSurface(Action`1 updates) in /home/pi/Desktop/RaspberryPi.Libs/RaspberryPi.PiGPIO.Drivers.Drawings.ImageSharp/Dede/FreetronicsDMDSurface.cs:line 114 at RaspberryPi.PiGPIO.Drivers.Dede.FreetronicsDMDSurface.Clear(Boolean value) in /home/pi/Desktop/RaspberryPi.Libs/RaspberryPi.PiGPIO.Drivers.Drawings.ImageSharp/Dede/FreetronicsDMDSurface.cs:line 171 at RaspberryPi.PiGPIO.Drivers.Dede.FreetronicsDMDSurface.Init(Boolean runThread) in /home/pi/Desktop/RaspberryPi.Libs/RaspberryPi.PiGPIO.Drivers.Drawings.ImageSharp/Dede/FreetronicsDMDSurface.cs:line 88 at RaspberryPi.PiGPIO.Drivers.Dede.FreetronicsDMDSurface.Init() in /home/pi/Desktop/RaspberryPi.Libs/RaspberryPi.PiGPIO.Drivers.Drawings.ImageSharp/Dede/FreetronicsDMDSurface.cs:line 81 at Dede.DMDTest.Program.Run(IPiGPIO gpio) in /home/pi/Desktop/RaspberryPi.Libs/FreetronicsDMD/Program.cs:line 113
Do you have any clue why would I be getting this?
I am running on a RPI 3, running Raspbian 10:
$lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
Dotnet version:
$dotnet --version
2.2.102
Thanks for your help
Image<TPixel>
comes with an indexer so you do not need to create a new array. You are also not using tha alpha component of the Rgba32
struct so you might as well save another 25% memory by ignoring it and using the Rgb24
struct instead.
Could be:
public static void UpdateCanvasAsImageSharp(this LedMatrix matrix, Action<IImageProcessingContext<Rgb24>> method)
{
matrix.UpdateCanvas(canvas =>
{
using (Image<Rgb24> img = new Image<Rgb24>(canvas.Width, canvas.Height))
{
img.Mutate(method);
for (int x = 0; x < canvas.Width; x++)
{
for (int y = 0; y < canvas.Height; y++)
{
Rgb24 rgb = img[x,y];
canvas.SetPixel(x, y, rgb.R, rgb.G, rgb.B);
}
}
}
});
}
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.