I have two directories:
dir = path/to/annotations
and
dir_img = path/to/images
The format of image names in dir_img
is image_name.jpg
.
I need to create empty text files in dir
as: image_name.txt
, wherein I can later store annotations corresponding to the images. I am using Python.
I don't know how to proceed. Any help is highly appreciated. Thanks.
[Edit]: I tried the answer given here. It ran without any error but didn't create any files either.