AMMICO/ammico/testing_all.py
Inga Ulusoy c9422a77ec
cleanup-minor-issues (#91)
* clean up docstrings

* clean up docstrings 2

* temp integration test module

* cleaner text sample to analyse

* remove clean text and spelling corrections

* change ammico exposed interface
2023-06-20 10:31:13 +02:00

14 строки
392 B
Python

import ammico
if __name__ == "__main__":
images = ammico.find_files(path=".")
mydict = ammico.initialize_dict(images)
for key in mydict:
mydict[key] = ammico.TextDetector(
mydict[key], analyse_text=True
).analyse_image()
print(mydict)
outdict = ammico.append_data_to_dict(mydict)
df = ammico.dump_df(outdict)
df.to_csv("data_out.csv")