pyaota.grader.answersheetreader module¶ class pyaota.grader.answersheetreader.AnswerSheetReader(img, layout_config, debug_output_dir=PosixPath('debug'), interactive=False)[source]¶ Bases: object read()[source]¶ Return type: dict[str, Any] write_graded_annotations(per_question_results, score_fraction, overlay_path)[source]¶ Write an annotated overlay image showing correct/incorrect bubbles. Parameters: per_question_results (List[Dict[str, Any]]) – List of per-question result dictionaries as produced in read(). score_fraction (float) – Overall score fraction (0.0 to 1.0). overlay_path ([pathlib.Path | str]) – Path to write the overlay image to. pyaota.grader.answersheetreader.x_marks_the_spot(image, x_px, y_px)[source]¶