Forum

Author Topic: Using the magic wand tool in python scripts to create masks automatically  (Read 4157 times)

bmartin

  • Newbie
  • *
  • Posts: 15
    • View Profile
Hello,

I would like to use the Magic Wand tool from within Python scripts. Here is my dream scenario:

  • By using OpenCV, detect the big blobs of a specific color in the image
  • Use the center of these blobs as the seeds for the Magic Wand tool. (In effect, it would be like doing a manual CTRL-click on each of these blob's center with the Magic wand tool)
  • Save these masks for each image in my project
Is the Magic Wand functionality exposed in the Python API? 
If not, is it something that could be done fast in a future release? 
If not, any suggestion on how to achieve some equivalent results?

Regards,

Bruno Martin