Best way to create readable image segmentation dataset using numpy

I want to segment a bunch of images and hence have to train some classifier. For this I must create the earthly truths of my image. So far I've done it like this:

  • Image segment in gimp with magnetic scissor
  • Fill three different segments of the image with simple green / red / blue.
  • Import image as array with numpy
  • Since there is a transition between two colors at the edges between two different classes, I use clustering to sum the pixel in the three classes

Is there a better / more direct way to do this? (Note: I don't want to use a pre-sharded dataset, I want to create my own)

+3
python numpy computer-vision image-segmentation


source to share


No one has answered this question yet

Check out similar questions:

1065
A way to create multi-line comments in Python?
1028
Pythonic way to create long multi-line string
32
Segmentation of the image based on the edge pixel map
five
How do I segment a portion of an image so that the edges are smooth?
4
Loading an image from the cifar-10 dataset
3
Creating numPy array from bitmap
2
Segmentation of images using matlab preform information
2
Deep Net with ceramics for image segmentation
1
Distance between 2 pixels
0
Segmenting more than one image in the process



All Articles
Loading...
X
Show
Funny
Dev
Pics