/BMP-Reader

Read BMP file and create bar charts of RGB channel, then calculate mean and STD.

Primary LanguagePython

BMP Reader

Features

  • Read BMP file
  • Get RGB values for each pixel
    • Create bar charts of RGB
  • Calculate the mean and STD
    • Write CSV file

Install Packages

pip install numpy
pip install Pillow
pip install matplotlib

If you want to create EXE file after programming, also install this:

pip install pyinstaller

Run the program

Just put the picture inside the input folder, then execute the code:

python BMP_reader.py

After that, your find the csv file and bar charts in the output folder.

Example

Input:

Download from: ❤ 动画精品

Output:

References