-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# EarlyFlowers | ||
using ml5.js and p5.js to detect flowers by webcam | ||
|
||
# Preparation of the images | ||
to scale the images into 244x244 i use two bash scripts inside the folder | ||
|
||
## Scale the images and crop around center | ||
for i in *.*; do mogrify -resize "244^>" -gravity center -crop 244x244+0+0 $i; done | ||
|
||
## Rename images | ||
ls | cat -n | while read n f; do mv "$f" "$n.jpg"; done | ||
|
||
## JSON-Generation | ||
python python_json img/ > json_ml5data.json |