If you are interested in image segmentation, this paper might be of interest:
https://arxiv.org/abs/2210.11006
There is code available here:
https://github.com/uncbiag/simpleclick
A word of warning — the segmentation appears to be interactive (as the title of the paper says ) and so I’m guessing might not work with any automated/scripted approaches you’re considering …