def test_add_ocr_field_then_remove_text_new_field(self, tmpdir): col_dir = tmpdir.mkdir("collection") test_col = gen_test_collection(col_dir) ocr = OCR(col=test_col, text_output_location="new_field") note_ids = [1601851571572, 1601851621708] ocr.run_ocr_on_notes(note_ids=note_ids) ocr.remove_ocr_on_notes(note_ids=note_ids)
def test_run_ocr_on_notes_unbatched_multithreaded(self, tmpdir): col_dir = tmpdir.mkdir("collection") test_col = gen_test_collection(col_dir) ocr = OCR(col=test_col, use_batching=False, num_threads=4) ocr.run_ocr_on_notes(note_ids=[1601851571572, 1601851621708])