christianciu / gbf-automation-updated

Educational application aimed at automating user-defined workflows for the mobile game, "Granblue Fantasy", using a variety of CV technologies in the backend such as OpenCV, PyAutoGUI and EasyOCR and a frontend coded in Typescript.
https://github.com/steve1316/granblue-automation-pyautogui/wiki
2 stars 2 forks source link

stored temp images in memory instead of spamming the disk with them. #17

Open ComputationalPotato opened 2 months ago

ComputationalPotato commented 2 months ago

Writing PIL images to temp then reading them with cv2 is unneeded, slow, and wears down your hard drive. Images are now stored in memory and converted to cv2 format. Also added a cache for read image files.

christianciu commented 1 week ago

@ComputationalPotato Thanks! I didn't realize it.

Does the code works tho ? I got banned for 30 days so i can't test it (i forgot to add delay in Scheduler function lmao)

ComputationalPotato commented 1 week ago

I think so. it might need the action delay increased a bit because some actions will now be faster. I have a more recent local branch that I know works but I won't have access to it for a week or two.