The document describes an algorithm for templateless marked element recognition in documents using computer vision. It discusses preprocessing steps like converting images to grayscale, blurring, and edge detection. It then describes detecting shapes like checkboxes and radio buttons using contour analysis and evaluating pixel thresholds to determine if elements are selected. Pseudocode provides details of the complete algorithm to detect and mark checked checkboxes and radio buttons on input images without predefined templates.