Problem macro-coding trainable weka segmentation



Hello all, I have problem about macro coding TWS.
The goal of my macro is to load a TWS trained classier and apply it to images of my interest.
Same code does work for a single image but did not work in a batch mode.
Is TWS just not compatible with batch?
Thank you for your time reading my question.


No, because it needs the TWS window to be opened and that is a problem in batch mode. I recommend you to use this simple script that applies a saved classifier to all images in a folder.


thank you! I will try to learn it this weekend!