easy12306 icon indicating copy to clipboard operation
easy12306 copied to clipboard

cann't deploy your easy122306 successfully on my PC

Open iridescend opened this issue 1 year ago • 4 comments

I just copied your programme and downloaded your datamodes(12306.image.model.h5,model.v3.0.h5) in accordance to your README guidance, unfortunately,a scrutable problem happened after I added datamodes to the same file where the rest of programme is stored .I will share the message that indicates error from python console.

Traceback (most recent call last): File "C:\Users\XM8\Desktop\easy12306-master\easy12306-master\main.py", line 60, in <module> main(sys.argv[1]) IndexError: list index out of range

iridescend avatar Aug 16 '23 10:08 iridescend

这需要在命令行中运行,并将<img.jpg>替换成自身待识别的图片的路径,如:

python3 main.py 2.jpg

zhaipro avatar Aug 16 '23 12:08 zhaipro

任何一个图片都可以吗?不一定是12306上的图片吧?刚刚看了下您的项目里的代码,好像没法实现抢票这一功能,只能识别验证码图片内容。

iridescend avatar Aug 16 '23 12:08 iridescend

相似问题,2.jpg即为项目中的图片,存放在项目文件夹下了

C:\Users\admin\Desktop\easy12306-master>D:\anaconda\python.exe ./main.py ./2.jpg

WARNING:tensorflow:No training configuration found in the save file, so the model was *not* compiled. Compile it manually.
1/1 [==============================] - 0s 105ms/step
Traceback (most recent call last):
  File "C:\Users\admin\Desktop\easy12306-master\main.py", line 60, in <module>
    main(sys.argv[1])
  File "C:\Users\admin\Desktop\easy12306-master\main.py", line 34, in main
    text = texts[label]
IndexError: list index out of range

codeNiuMa avatar Dec 28 '23 09:12 codeNiuMa

相似问题,2.jpg即为项目中的图片,存放在项目文件夹下了

C:\Users\admin\Desktop\easy12306-master>D:\anaconda\python.exe ./main.py ./2.jpg

WARNING:tensorflow:No training configuration found in the save file, so the model was *not* compiled. Compile it manually.
1/1 [==============================] - 0s 105ms/step
Traceback (most recent call last):
  File "C:\Users\admin\Desktop\easy12306-master\main.py", line 60, in <module>
    main(sys.argv[1])
  File "C:\Users\admin\Desktop\easy12306-master\main.py", line 34, in main
    text = texts[label]
IndexError: list index out of range

可以把textslabel 打印出来看看。

zhaipro avatar Dec 29 '23 13:12 zhaipro