Skip to content

A little Python program transforming an image into a 0 and 1 text file.

Notifications You must be signed in to change notification settings

ZeAdam/imagetobin-01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

imagetobin-01

f.png A little Python program transforming an image into a 0 and 1 text file.

Requirements

  • Python 3
  • Opencv-python
  • Pillow

Setup and run

To use it, simply install "opencv-python" and "pillow" using Pip and open it:

pip install opencv-python
pip install Pillow
python3 img2bin.py

It will ask for the image's path and for scaling the output's width (default: 500):

Image file name: image.jpg
Width: 500
You can now find the output in "out.bin" folder.

Note: no need to have img2bin.py in order to use img2bin_tk.py.

About

A little Python program transforming an image into a 0 and 1 text file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages