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
285 stars 116 forks source link

请问TypeError: can only join an iterable需要怎么解决 #16

Closed gonggtao closed 5 years ago

gonggtao commented 5 years ago

我将densenet_predict.py中的image_path默认进行了设置 parser.add_argument("--image_path", help="图像位置", default='E:\Python\Recognition\dlocr\picture\1.jpg') 结果运行报了错,请问怎么办 Traceback (most recent call last): File "E:/Python/Recognition/dlocr/densenet_predict.py", line 37, in print('\n'.join(densenet.predict(image_path, id_to_char)[1])) TypeError: can only join an iterable

GlassyWing commented 5 years ago

这是一个bug:sweatsmile:,把37行改为:print(densenet . predict ( image path , id to char )[0])