Skip to content

Simple tool to guess correct image dimensions for Dr. Coffee espresso machine RAW image files

License

Notifications You must be signed in to change notification settings

maticomp/drcoffee-raw-image-guesser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drcoffee-raw-image-guesser

Python 3.6

Simple tool to guess correct image dimensions for Dr. Coffee espresso machine RAW image files

What and why?

Dr. Coffee espresso machines come with USB connector giving access to mass storage device on which there is a collection of different *.bin files with image assets used in the machine, e.g. drink icons or screensavers.

Those files are RAW framebuffers with RGB565 color encoding and contain no metadata whatosever, hence image dimensions are unknown.

While converting RGB 565 RAWs to PNG is possible with different tools, ffmpeg being one of the most obvious, without knowing the image dimensions it's not possible to get a correct image.

This tool tries to guess the dimensions by trying all sensible combinations, extracting the image, and applying median blur and calculating color variance to distinguish between images with defined shapes and noise.

How to use

Install requirements

pip install -r requirements.txt

Run on any Dr. Coffee image

python guesser.py image.bin

the command will try to guess the image size and output image.png in the current directory.

About

Simple tool to guess correct image dimensions for Dr. Coffee espresso machine RAW image files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages