Skip to content

Instantly share code, notes, and snippets.

View jujumo's full-sized avatar

JuM jujumo

  • Naverlabs
  • Grenoble, France
View GitHub Profile
@jujumo
jujumo / convert_to_eink_bitmaps.py
Created February 1, 2021 08:31
Convert image to monochrome c bitmaps array.
import argparse
import logging
import os.path as path
from PIL import Image
import numpy as np
logger = logging.getLogger(__name__)
logging.basicConfig(format='%(name)s::%(levelname)-8s: %(message)s')
class VerbosityParsor(argparse.Action):