marvinkweyu / colordetect Goto Github PK
View Code? Open in Web Editor NEWImage processing: Detect and identify different color objects in an image/video
Home Page: https://pypi.org/project/ColorDetect/
License: MIT License
Image processing: Detect and identify different color objects in an image/video
Home Page: https://pypi.org/project/ColorDetect/
License: MIT License
The script keeps identifying 2 color counts in a given image regardless of the actual number.
Create coverage reports for the project.
Referenced in discussion #46
Write any unit or functional test for a method that needs it.
In colordetect/color_detect.py
, line 258, the sorted
function will raise an error when two values in hist
are equal because the result of comparing two np.ndarray
is used as a value.
Hi ,thanks for your work, it helps me a lot. The question is how many colors can detect, can you give me a list ?
Percentage processing is off in some videos, showing an incomplete process when the value has already been returned. A sample video can be found here as the file SampleTree
[####################################################################################### ] 87% Color Detection
{'[217.0, 157.0, 58.0]': 11.11, '[122.0, 85.0, 10.0]': 12.25, '[254.0, 252.0, 242.0]': 15.4, '[251.0, 225.0, 152.0]': 16.14, '[28.0, 21.0, 2.0]': 45.1, '[254.0, 250.0, 212.0]': 11.36, '[121.0, 77.0, 7.0]': 11.78, '[215.0, 150.0, 52.0]': 11.94, '[250.0, 214.0, 139.0]': 15.58, '[20.0, 15.0, 2.0]': 49.34, '[254.0, 247.0, 202.0]': 12.2, '[117.0, 74.0, 7.0]': 12.27, '[210.0, 147.0, 50.0]': 12.98, '[247.0, 208.0, 134.0]': 15.44, '[19.0, 14.0, 1.0]': 47.11, '[128.0, 72.0, 5.0]': 11.93, '[247.0, 193.0, 109.0]': 13.55, '[214.0, 139.0, 35.0]': 14.33, '[254.0, 244.0, 180.0]': 18.21, '[23.0, 14.0, 1.0]': 41.99, '[100.0, 53.0, 3.0]': 11.0, '[177.0, 108.0, 21.0]': 14.12, '[233.0, 159.0, 63.0]': 16.1, '[250.0, 218.0, 136.0]': 18.55, '[16.0, 9.0, 1.0]': 40.23, '[93.0, 51.0, 3.0]': 11.07, '[169.0, 104.0, 21.0]': 14.91, '[228.0, 156.0, 61.0]': 15.96, '[245.0, 207.0, 129.0]': 17.92, '[14.0, 8.0, 1.0]': 40.15, '[101.0, 51.0, 2.0]': 10.42, '[181.0, 105.0, 14.0]': 12.33, '[239.0, 162.0, 59.0]': 14.33, '[253.0, 228.0, 140.0]': 22.25, '[14.0, 9.0, 1.0]': 40.33, '[96.0, 49.0, 2.0]': 10.3, '[176.0, 102.0, 13.0]': 12.45, '[237.0, 161.0, 60.0]': 14.67}
Latest tag v1.1.0
is not the same as what is in python pypy 1.2.0
VideoColor should be able to get colors from a video given the timestamp to look at.
Name | Stmts | Miss | Cover |
---|---|---|---|
init.py | 0 | 0 | 100% |
colordetect/init.py | 3 | 3 | 0% |
colordetect/col_share.py | 24 | 24 | 0% |
colordetect/color_detect.py | 149 | 149 | 0% |
colordetect/video_color_detect.py | 35 | 35 | 0% |
docs/conf.py | 15 | 15 | 0% |
setup.py | 4 | 4 | 0% |
tests/init.py | 0 | 0 | 100% |
tests/conftest.py | 23 | 13 | 43% |
tests/test_functional.py | 25 | 21 | 16% |
tests/test_unit.py | 71 | 67 | 6% |
TOTAL | 349 | 331 | 5% |
Documentation is needed to reflect extra parameters allowing the user to adjust the text being written onto the image
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.