FGO-One
FGO-One copied to clipboard
my problem
=========== RESTART: C:\Users\Shinelon\Desktop\FGO-master\main.py ===========
Traceback (most recent call last):
File "C:\Users\Shinelon\Desktop\FGO-one-master\main.py", line 21, in
I AM NOT GOOD AT ENGLISH(thank you in advance.) I can find a picture which is called "sh"(screen shot) in my floder then I checked something about opencv and adb , but there is nothing wrong(I can't find where the problem is)
Try to check the following items:
-
check whether the folder assets exists or not, and make sure every item in the folder is the same as those on GitHub
-
check the paths, in the file Major.py , there would be some lines look that this:
self.basic_scenes = [cv2.imread(f"./assets/scene/{basic_scene}.png", 0) for basic_scene in basic_scenes]
self.battle_scenes = [cv2.imread(f"./assets/battle/{battle_scene}.png", 0) for battle_scene in battle_scenes]
self.support_scene = cv2.imread(f"./assets/scene/{support_scene}.png", 0)
self.finish_scenes = [cv2.imread(f"./assets/scene/{finish_scene}.png", 0) for finish_scene in finish_scenes]
self.loading_scenes = [cv2.imread(f"./assets/scene/{loading_scene}.png", 0) for loading_scene in loading_scenes]
try removing "./"
self.basic_scenes = [cv2.imread(f"assets/scene/{basic_scene}.png", 0) for basic_scene in basic_scenes]
self.battle_scenes = [cv2.imread(f"assets/battle/{battle_scene}.png", 0) for battle_scene in battle_scenes]
self.support_scene = cv2.imread(f"assets/scene/{support_scene}.png", 0)
self.finish_scenes = [cv2.imread(f"assets/scene/{finish_scene}.png", 0) for finish_scene in finish_scenes]
self.loading_scenes = [cv2.imread(f"assets/scene/{loading_scene}.png", 0) for loading_scene in loading_scenes]
However, I'm not sure whether these measures would work :(
I’m sorry, but even I did it by your suggestion, It still wrong. QAQ So sad
I have the same question as xiuluoxiuluo1 has and i tried your suggestion but it still didn‘t work QAQ
It seems that this bug is caused by a larger template image than the captured one. I have a pull request #7 to fix this by resizing the template image.