-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add findContours and related functions to the lib #859
Comments
Thanks a lot. Could you please give any clue how to find contours and calculate each area in this question. |
I'm not really a CV expert so there may be a more optimized way of doing things, but until someone else jumps in here I'd suggest using https://juliaimages.org/latest/imagesegmentation/#ImageSegmentation.jl-1. The best (fastest/accurate) segmentation algorithm will depend on characteristics of the image you have. Once you have the segmented image you only need to count the number of pixels identified in the segmented region. You can find a lot of this just by searching the docs (search box is in the top left corner). |
Approaches you mentioned above are not "just from box" as it is in opencv. In opencv I take a color image and just call:
And to analyse contour's shape:
This is all what I'm expecting from this lib. |
That might not be supported in the near future if there aren't any other people contributing to it. Images.jl has some functionalities to enable users to process images if they know how to achieve it, however, there's still a lot of work to do to provide a toolbox of all out-of-box algorithms for end-users; finetuning those algorithms isn't an easy task. Tasks of higher priority at present as far as I understand are: polishing the core package By saying this, we'd love to accept any PRs to https://github.com/JuliaImages/ImageFeatures.jl and https://github.com/JuliaImages/ImageSegmentation.jl |
I'd urge you to distinguish "want" and "expect." I can understand why you want it, but why do you expect it? In open source, the availability of a feature comes down to some person who wants something deciding to donate their time and contribute it. If no one has done that yet for the features you need, your choices are to do it yourself or wait patiently until some kind soul does so. There should be no expectations that others will do your work for you for free. |
I'm working on precisely this type of functionality over at ImageComponentAnalysis.jl The current registered version supports the following: Basic Measurements
Basic Topology
Bounding Box
In the I intend to move the package to the |
I apologise if I used inappropriate verb in this community ;) English is not my native language. |
@fmvin I don't quite understand what you mean by "just from box". If you mean there is a single function that does what you want for each of those you already have some available. Like any toolbox or language (coding or spoken) there will be things that don't translate exactly. So I tried pointing you towards functions that do similar things. If you read the documentation you will find that most of those functionalities aren't difficult to perform on one's own with a couple lines of code. So if you are really familiar with OpenCV you might just have to think a little bit about what you're doing the first time you do it in Julia.
If the problem is that you need the docs in another language you can make a separate issue for that (even better make a PR helping solve the issue for others). Translation may even be a good way of getter better at both subjects at once if you're a student. |
If this is so easy to do in 2 lines of code please tell then why @zygmuntszpak is working on this functionality right now. And you wrote 2 long post instead of 2 lines of code as example which helps at least 2 people to move forward in his tasks. Also it will be grateful to include your example to official docs ;) @zygmuntszpak I'm waiting for your package with patience. Thanks a lot for your contribution. |
Has this issue been dealt with? If not I’ll like to work on implementing these functions. Should I start working? |
Hey @aditi-dey29 , Thank you for showing interest in the issue. You can sure start working on it. I would suggest you to read the discussion above and join image processing channel in Julia slack to clear your doubts. |
@ashwani-rathee thanks! just joined the channel. |
There is an very nice implementation of finding contours in images here: https://github.com/JuliaGeometry/Contour.jl |
Please add to the library similar functions existed in opencv "Structural Analysis and Shape Descriptors" to manipulate with contours:
The text was updated successfully, but these errors were encountered: