Hej ich wollte fragen, wie man in Python aus Uint8 ein Bild erstellen kann?
Also zum Beispiel, wie kann ich aus dem => [137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73, 72, 68, 82, 0, 0, 0, 17, 0, 0, 0, 17, 8, 2, 0, 0, 0, 180, 15, 208, 173, 0, 0, 0, 1, 115, 82, 71, 66, 0, 174, 206, 28, 233, 0, 0, 0, 4, 103, 65, 77, 65, 0, 0, 177, 143, 11, 252, 97, 5, 0, 0, 0, 9, 112, 72, 89, 115, 0, 0, 14, 195, 0, 0, 14, 195, 1, 199, 111, 168, 100, 0, 0, 0, 23, 73, 68, 65, 84, 56, 79, 99, 24, 233, 64, 80, 80, 16, 202, 26, 5, 163, 128, 14, 128, 129, 1, 0, 128, 42, 0, 52, 248, 78, 249, 212, 0, 0, 0, 0, 73, 69, 78, 68, 174, 66, 96, 130] ein Bild erstellen?
Würde mich über eine kurze Antwort freuen
Uint8 zu Bild
- __blackjack__
- User
- Beiträge: 14295
- Registriert: Samstag 2. Juni 2018, 10:21
- Wohnort: 127.0.0.1
- Kontaktdaten:
@cube2000: Wie soll denn daraus ein Bild erstellt werden? Die Antwort kann da von, man schreibt ein paar Zeilen Code die eine PBM/PNN/PGM/PPM-Datei schreiben über Plotting-Bibliotheken, bis zum Pillow-Package lauten.
„Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.“ — Brian W. Kernighan
Meinst du ein Bild...oder einen Plot?
Ein Plot macht man mit "matplotlib" ein Bild (image) ist ein bisschen aufwendiger.
btw.
Der Plot zu deinen Zahlen sieht so aus.
https://drive.google.com/file/d/1On2-x_ ... QwqUH/view
Ein Plot macht man mit "matplotlib" ein Bild (image) ist ein bisschen aufwendiger.
btw.
Der Plot zu deinen Zahlen sieht so aus.
https://drive.google.com/file/d/1On2-x_ ... QwqUH/view
