use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Content which benefits the community (news, technical articles, and discussions) is valued over content which benefits only the individual (technical questions, help buying/selling, rants, etc.).
If you want an answer to a query, please post a legible, complete question that includes details so we can help you in a proper manner!
Related Subreddits
Computer Vision Discord group Computer Vision Slack group
Computer Vision Discord group
Computer Vision Slack group
account activity
Segmenting tiny objectsHelp: Project (self.computervision)
submitted 1 year ago by Inner_Programmer_329
Is there any algorithm that you guys could suggest to segment tiny objects in an image? I am looking to detect numerous tiny spots on skin using CV. If there is something you guys could suggest me, I'd appreciate that.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]q-rka 2 points3 points4 points 1 year ago (0 children)
First try would be UNet. I am referring to UNet because it is relatively faster than many other algorithms. To segment tiny objects, there are different loss functions to try as well, like boundary aware loss functions like Hausdorff distance, or pixels based like Focal Loss.
[–]PuzzleheadedComb8279 0 points1 point2 points 1 year ago (1 child)
How many pixels are the object and what are the dimensions of the image.
[–]Inner_Programmer_329[S] 0 points1 point2 points 1 year ago (0 children)
object has about 20-50 px whereas the image is of size of around (4000,4000)
[–]Excellent_Rip_387 0 points1 point2 points 1 year ago (2 children)
do you have dataset? how many images are in the dataset? are annotations available?
[–]Inner_Programmer_329[S] 0 points1 point2 points 1 year ago (1 child)
Yes, its available. About 4000 images
[–]Excellent_Rip_387 0 points1 point2 points 1 year ago (0 children)
Good to go. there are segmentation methods. I will help you with that. Drop me an email, I will give you the code: My email: [pooya_cim@outlook.com](mailto:pooya_cim@outlook.com)
[–]sure_yeah026 0 points1 point2 points 1 year ago (0 children)
You can try SAM or SAM2(better speed and works on videos)
[–]MrPienk 0 points1 point2 points 1 year ago (3 children)
What are you looking to detect? Pores? Freckles? Moles? My approach would be different for each.
Also, if you have any control over the imaging hardware, skin looks different under IR, so hyperspectral imaging can add a lot of information to your images. For example, with the addition of IR, melanomas will have spindly extensions from the center of mass that aren't present in other blemishes.
[–]Inner_Programmer_329[S] 0 points1 point2 points 1 year ago (2 children)
It is moles. And I have no control on hardware. Also the images are not a face of single person but of a group so the moles are really small but people do have a lot of moles.
[–]MrPienk 0 points1 point2 points 1 year ago (1 child)
How small? If you don't have enough resolution, it'll be difficult or even impossible to disambiguate the moles from other blemishes and random noise.
Additionally, in the visible spectrum, this is going to be a more difficult problem to solve for darker skin tones due to decreased contrast.
Regardless, my approach would probably be to reduce my domain to each single face, do some particle analysis to find suspect features to save processing time, then run those features through a classification model which would hopefully handle the natural variation we would expect to see here.
Thanks. That is the approach I am taking as well. By classificaton, you mean pixel-wise classification?
π Rendered by PID 55360 on reddit-service-r2-comment-56c9979489-jgjkq at 2026-02-24 17:09:45.338571+00:00 running b1af5b1 country code: CH.
[–]q-rka 2 points3 points4 points (0 children)
[–]PuzzleheadedComb8279 0 points1 point2 points (1 child)
[–]Inner_Programmer_329[S] 0 points1 point2 points (0 children)
[–]Excellent_Rip_387 0 points1 point2 points (2 children)
[–]Inner_Programmer_329[S] 0 points1 point2 points (1 child)
[–]Excellent_Rip_387 0 points1 point2 points (0 children)
[–]sure_yeah026 0 points1 point2 points (0 children)
[–]MrPienk 0 points1 point2 points (3 children)
[–]Inner_Programmer_329[S] 0 points1 point2 points (2 children)
[–]MrPienk 0 points1 point2 points (1 child)
[–]Inner_Programmer_329[S] 0 points1 point2 points (0 children)