GithubHelp home page GithubHelp logo

glintmaskgenerator's People

Contributors

dependabot[bot] avatar latseen avatar tayden avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

zachlewis latseen

glintmaskgenerator's Issues

Update to work with Python 3.11

Is your feature request related to a problem? Please describe.
GlintMaskGenerator does not work with Python 3.11

Describe the solution you'd like
Update the project to be able to support Python 3.11

Describe alternatives you've considered
I have been able to run GlintMaskGenerator successfully with Python 3.11, just by changing 2 np.float and 1 np.int references to float and int respectively.

Hello!

Just wanted to post this here. At the current state, GlintMaskTools does not support Python 3.11

However, as mentioned above, I was able to successfully run GlintMaskTools with Python 3.11 after some fairly minor changes.

Could this change be implemented? I can also give more information into what I changed within the current code if needed.

Intensity ratio algorithm

Hi team, thx for the quick reply last time. I also wanna quickly check with you if the intensity ratio algorithm is unavailable at the moment. I checked both GUI and python library, the RGBIntensityRatioMasker is not working. I tried to dig into the published article a bit but can't seem to find the difference of the threshold and intensity ration masker.

"""Create and return a glint mask for RGB imagery.
Parameters
----------
percent_diffuse
An estimate of the percentage of pixels in an image that show pure diffuse reflectance, and thus no specular
reflectance (glint).
threshold
The threshold on the specular reflectance estimate image to convert into a mask.
e.g. if more than 50% specular reflectance is unacceptable, use 0.5.
"""

just by reading this couple of lines, it seems that the intensity ratio is also using the threshold with an additional parameter with diffuse reflectance?

No error messages in python and no output

Hi there, I was trying to test the mask in python 3.8, installed the library with pip install with no issue in a conda env on MacOS.

However, the test script doesn't give the output masks and there is no error messages printed either.

Any help would appreciated.

My test script is

from glint_mask_generator import RGBThresholdMasker

masker = RGBThresholdMasker(img_dir="/path/to/my/images/", mask_dir="/path/to/store/masks/",thresholds=(0.9,0.9,0.9), pixel_buffer=3)
masker.process(max_workers=3, callback=print, err_callback=print)

I'm also attaching some test images below
DJI_0151
DJI_0148
DJI_0149
DJI_0150

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.