GlassyWing / text-detection-ocr

Chinese text detection and recognition based on CTPN + DENSENET using Keras and Tensor Flow,使用keras和tensorflow基于CTPN+Densenet实现的中文文本检测和识别
Apache License 2.0
284 stars 116 forks source link

can only join an iterable #31

Open savvy200 opened 3 years ago

savvy200 commented 3 years ago

with open('train_semantic.txt','w',encoding='utf-8') as f: for i in range(len(X_train)): str1 = " ".join(X_train[i])+"\t"+"label"+str(y_train[i])+'\n' f.write(str1)


TypeError Traceback (most recent call last)

in 1 with open('train_semantic.txt','w',encoding='utf-8') as f: 2 for i in range(len(X_train)): ----> 3 str1 = " ".join(X_train[i])+"\t"+"__label__"+str(y_train[i])+'\n' 4 f.write(str1) TypeError: can only join an iterable How to address this issue?