Crop tightly around the handwritten text and straighten/rotate so the text is perfectly horizontal and aligned. Remove the excess notebook paper margins.