TextRecognitionDataGenerator icon indicating copy to clipboard operation
TextRecognitionDataGenerator copied to clipboard

OSError: [Errno 22] Invalid argument: 'out/megaphotographic Okarche angiotonase inevitableness it"ll_3955.jpg'

Open nithinreddyy opened this issue 4 years ago • 1 comments

trdg -c 1000000 -w 5 -f 64

When I ran the basic above command line, it's giving error like OSError: [Errno 22] Invalid argument: 'out/megaphotographic Okarche angiotonase inevitableness it"ll_3955.jpg'

Can anyone please help me with this?

nithinreddyy avatar Feb 23 '21 07:02 nithinreddyy

This is caused but the " in the filename. You can fix it by using a different output format with -na 2. Here is the description of the format parameter: Define how the produced files will be named. 0: [TEXT]_[ID].[EXT], 1: [ID]_[TEXT].[EXT] 2: [ID].[EXT] + one file labels.txt containing id-to-label mappings.

Belval avatar Mar 02 '21 04:03 Belval