This paper presents an approach to determining colours of specks in an image taken from a pulp sample. The task is solved through colour classification by an artificial neural network. The network is trained using possibilistic target values. The problem of post-processing of a pixelwise-classified image is addressed from the point of view of the Dempster-Shafer theory of evidence. Each neighbour of a pixel being analysed is considered as an item of evidence supporting particular hypotheses regarding the class label of that pixel. The experiments performed have shown that the colour classification results correspond well with the human perception of colours of the specks.