Skip to main content

Informatikunterricht - Bildverarbeitungsmodul und Visualisierung von Verteilungen

Bildbeschreibung

Beschreibung

Dieses Projekt besteht aus zwei Modulen für den Informatikunterricht:

  • Bildverarbeitung: Ein Modul zur einfachen Bearbeitung und Analyse von Bildern. Es ermöglicht das Laden, Speichern und Anzeigen von Bildern, die Berechnung von Farbtiefen und die Umwandlung von palettenbasierten Bildern in RGB.

  • Visualisierung von Verteilungen: Ein Modul zur Visualisierung von zwei Verteilungen nebeneinander als Linien- oder Balkendiagramme. Ideal zur Darstellung von statistischen Daten im Unterricht.

Module

bildverarbeitung

Dieses Modul bietet Funktionen für die einfache Verarbeitung und Analyse von Bildern. Die Hauptfunktionen sind:

  • lade_bild(pfad_und_dateiname): Lädt ein Bild und berechnet dessen Farbtiefe.
  • transformiere_palettenbild_zu_rgb(np_array_bild, palette): Transformiert ein palettenbasiertes Bild in ein RGB-Bild.
  • pillow_bild(numpy_array, palette=None): Konvertiert ein NumPy-Array in ein Pillow-Bild.
  • speichere_bild(pfad, np_array_bild, palette=None): Speichert ein Bild in einer Datei.
  • zeige(bilddaten, zeige_achsen=True, beschriftungsdaten=None, palettendaten=None, zeige_grid=False, grid_color='black', tickanzahl=None, spaltenanzahl=1, figsize=None): Zeigt Bilder in einem Plot an.
  • plot_histogramm(histogramm, palette='inferno'): Plottet ein Histogramm der Helligkeitswerte eines Bildes.

diagramme

Dieses Modul bietet eine einfache Möglichkeit zur Visualisierung von zwei Verteilungen. Die Hauptfunktion ist:

  • zeige_verteilungen(verteilung1, verteilung2, titel1="", titel2="", modus="Linien"): Visualisiert zwei Verteilungen als Linien- oder Balkendiagramme.

Beispielverwendung

Bildverarbeitung

from bildverarbeitung import lade_bild, zeige, speichere_bild

# Bild laden und Farbtiefe berechnen
bild, farbmodus, farbtiefe, palette = lade_bild('pfad/zum/bild.png')
print(f"Farbtiefe: {farbtiefe} Bit")

# Bild anzeigen
zeige(bild)

# Bild speichern
speichere_bild('pfad/zum/ausgabebild.png', bild, palette)

License

This project is licensed under the MIT License with additional terms for attribution. See the LICENSE file for details.

Metadata

Release files for informatikunterricht 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for informatikunterricht 0.2.4
File Size Uploaded Provenance
informatikunterricht-0.2.4.tar.gz 484.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for informatikunterricht 0.2.4
File Interpreter ABI Platform
informatikunterricht-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 496.6 kB

Release files / informatikunterricht-0.2.4.tar.gz

Download URL informatikunterricht-0.2.4.tar.gz
Size 484.8 kB
Tags Source
SHA-256 checksum
How to use checksums
12242cd4cc135c96b2ade07bfab28d01cdf2955896f29b03d3eff0a34c138b0e
BLAKE2b-256 checksum
How to use checksums
2c1186949f9be22275b00478e1b880bc9d30ccf470b393b654994e88efedef7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / informatikunterricht-0.2.4-py3-none-any.whl

Download URL informatikunterricht-0.2.4-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45a5ae37fb857c61ebda7d94a74188146d0c1ed61dd1cd24b221c2e87095b83f
BLAKE2b-256 checksum
How to use checksums
d4c001f4cb3e5a4ac3c48d18e114b108b74465e5ef49fbe47b064bcc4284a6c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Security for informatikunterricht 0.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page