lukasbindreiter / white-brush Goto Github PK
View Code? Open in Web Editor NEWWhite Brush is a tool for enhancing hand-written notes.
License: MIT License
White Brush is a tool for enhancing hand-written notes.
License: MIT License
Crop the image to get rid of e.g. a table the sheet was lying on.
Convert the foreground colours to more vibrant, clearer colours.
The has two main benefits: less different colours in the result and better readability from the user.
Sometimes the test test_choose_representative_colors_different_values
(in tests/test_calc_colors.py
) passes, sometimes it fails.
If you add another test method running that test often:
def test_choose_representative_colors_different_values_often(self):
for i in range(100):
self.test_choose_representative_colors_different_values()
it will never pass
@p-hofer please take a look
Create a method to extract the background in an Image and to calculate one clear background color.
Make sure this works for:
Add travis build file and automatically execute the python tests on the build server.
It should be possible to e.g. convert an Image of a blackboard to a white background black foreground image
TODOS:
Some sample requirements are:
EDIT:
Bestes Pattern:
https://en.wikipedia.org/wiki/Command_pattern
Commands:
- whitebrush [options...] <files...>
Default command. Converts the given files and folders (with 1 deepness) and generates files appends _brushed before the extension.
- whitebrush --recursive (-r)
Converts the given files and folders (with endless deepness).
- whitebrush --convert (-c)
Replaces all files instead of adding the default _brushed name.
-whitebrush --mask (-m) <{name}mybrushedimage{extension}>
Changes the default added _brushed to the given text which isn't the placeholder {name} and extension.
-whitebrush --background(-b) < HTML ColorCode>
Converts the background to the given color code.
-whitebrush --forground(-f) < HTML ColorCode>
Converts the forground to the given color code.
-whitebrush --template (-t) <blackboard/whiteboard/note>
Converts the forground and background to the color code templates.
whitebrush --help (-h)
Displays the help page.
Requirements:
Calculate representative colors from set of foreground pixels. Convert each pixel to its representative color.
Create a setup.py script in order to allow system wide installation of the module
python setup.py build && python setup.py install
should install the module
Also include an entry_point for white_brush, so that you can just run white_brush ...
on the command line instead of python -m white_brush
the install requires dependencies should be read from the Pipfile if possible
Extract all foreground colors.
Foreground are the actual handwritten notes.
Related to #4 (Everything that is not a background is foreground)
Replace the "No description, website, or topics provided." with the actual project description.
"Erstellen sie einen Projektabschlussbericht der auf ca. 8-10
Seiten mindestens folgendes enthält:
‣Team und Thema (Titelblatt ist nicht notwendig)
‣Projektbeschreibung
‣Überblick über ihre Entwicklung (Diagramme, Screenshots, etc)
‣Beschreibung der realisierten Funktionen gerne in technischen Details
‣Mind. drei Quellen / Links die ihre Kollegen als Startpunkte für ähnliche
Projekte verwenden können"
Via the CLI the user should be able to specify colors either by hex code or by name
What we need is a method parse_color, which works like this:
>>> parse_color("#ff0000")
(255, 0, 0)
>>> parse_color("Red") # should be case insensitive
(255, 0, 0)
The webcolor project already contains functionality to convert color names to rgb values and also to parse hex color codes, so the easiest approach would probably be to integrate that.
parse_color should probably be best placed in a new utils.py
module in white_brush.colors
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.