Code to convert the photo to binary, then orient it and find the staff line positions