HW = image_with_handwriting < threshold;
HW will be the handwriting image (also the abbreviation for homework; how cool is that?) Threshold will be a threshold you have to define based on the color of the handwriting in relation to the color of the paper. The less-than sign may need to be changed if the person is writing with white-out on dark paper.
