In this chapter we will use classical machine learning for pixel classification and object segmentation. We will use scikit-learn for that and APOC which is a image-processing specific library which brings GPU-accelerated pixel and object classification.