Giter Site home page Giter Site logo

jgagneastro / coffeegrindsize Goto Github PK

View Code? Open in Web Editor NEW
486.0 486.0 84.0 407.78 MB

Detects the individual coffee grounds in a white-background picture to determine particle size distribution

License: MIT License

Python 99.86% Shell 0.09% Batchfile 0.01% CSS 0.01% PowerShell 0.03% Xonsh 0.02%

coffeegrindsize's People

Contributors

jgagneastro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coffeegrindsize's Issues

Source distribution

It looks like we have a packaged distribution of this tool here. Can you please include the source files that produced the distribution? You mentioned that pull requests were welcome, and providing the source in that form would make it easier to do that.

Starting a Community Database of Grinder particle size distributions

While I think this is an awesome tool, the real value would be in gathering and aggregating as much of this sort of data together as a community. If we are able to share all our grind distributions from all of our own grinders and compare them to each other, then we would be able to use the data to answer some often asked questions such as:

Is grinder X comparable or better than grinder Y?
Is it true that beans from origin A produce more fines than those from origin B?
What effect does the roast level, days past roast, etc. have on the grind quality?

I created a sample repo with my own data, but it would be better if you can approve/administrate this project with your wider reach and influence.

https://github.com/Coffee-Grind-Distribution/coffee-grind-distribution

Particle Detection Fails

Running on Arch Linux, Particle Detection fails with the following error:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.9/tkinter/__init__.py", line 1892, in __call__
    return self.func(*args)
  File "/home/user/coffeegrindsize/coffeegrindsize.py", line 592, in <lambda>
    psd_button = Button(toolbar, text="Launch Particle Detection", command=lambda: self.launch_psd(None),highlightbackground=toolbar_bg)
  File "/home/user/coffeegrindsize/coffeegrindsize.py", line 2341, in launch_psd
    self.cluster_data.append(clusteri_data)
AttributeError: 'NoneType' object has no attribute 'append'

Histogram cannot be created

I'm not able to create a histogram after Particle Detection step:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.9/tkinter/__init__.py", line 1892, in __call__
    return self.func(*args)
  File "/home/ghotrix/.local/lib/python3.9/site-packages/coffeegrindsize/scripts/coffeegrindsize.py", line 600, in <lambda>
    histogram_button = Button(toolbar, text="Create Histogram", command=lambda: self.create_histogram(None), highlightbackground=toolbar_bg)
  File "/home/ghotrix/.local/lib/python3.9/site-packages/coffeegrindsize/scripts/coffeegrindsize.py", line 2973, in create_histogram
    figdata = figdata.reshape(fig.canvas.get_width_height()[::-1] + (3,))
ValueError: cannot reshape array of size 5298750 into shape (1130,1000,3)

Very small particles are not detected

Do you have a tip how to change the thresholds in a way that also the very small particles (blue circles) are counted?
image

Sourcefile (jpg since png is too large to upload)
commandante

FEATURE REQUEST: Use instance segmentation for particle detection

The particle detection could be automated (and user to user bias removed) with an instance segmentation algorithm instead of thresholding. Given enough time and images, i can implement and train that if it's desired. I can fork off and start if 1) you think it's a good idea, and 2) there are a lot of images (hopefully with their threshold settings noted) somewhere or someway to get them. What do you think?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.