Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinKweyu committed Sep 28, 2020
0 parents commit 02eb426
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.venv
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## ColorDetectPreview

A preview of [ColorDetect's](https://colordetect.readthedocs.io/en/latest/index.html) functionality.

```bash
pip install -r requirements.txt
```
10 changes: 10 additions & 0 deletions example_images.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from colordetect import ColorDetect

user_image = ColorDetect('media/random_balls.jpg')

user_image.get_color_count()

# write color count
user_image.write_color_count()

user_image.save_image('media', 'processed.jpg')
10 changes: 10 additions & 0 deletions example_videos.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from colordetect import VideoColor


my_video = VideoColor('media/SampleTree.mp4')

video_colors = my_video.get_video_frames( progress=True)

print(f"{video_colors} \n")

#print(my_video.color_sort(color_count=6))
Binary file added media/SampleTree.mp4
Binary file not shown.
Binary file added media/earth.mp4
Binary file not shown.
Binary file added media/processed.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/random_balls.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ColorDetect==0.3.0
cycler==0.10.0
joblib==0.16.0
kiwisolver==1.2.0
matplotlib==3.2.1
numpy==1.18.1
opencv-python==4.2.0.32
pyparsing==2.4.7
python-dateutil==2.8.1
scikit-learn==0.22.2.post1
scipy==1.5.2
six==1.15.0

0 comments on commit 02eb426

Please sign in to comment.