Open ghost opened 3 years ago
Starting.txt was just a text file with the number of frame where it left of is stored in with no special formatting or anything
Kaktow @.***> schrieb am Mi., 14. Juli 2021, 14:05:
def start(): """ Captures video feed frame by frame, crops out unecessary dino and processes """ startingpoint_obj = open('D:/DBD_ML/starting.txt','r') startingpoint = int(startingpoint_obj.read()) startingpoint_obj.close() sct = mss()
I don't know what 'starting.txt' is.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Jeffdemongo/DBD_Dataset/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKOHTYGIJG7LLSAJAAXG2RTTXV4P5ANCNFSM5ALKFLBA .
It was a way for me to capture frames over multiple sessions without having to start over again and without having to change variables in the script manually
Kaktow @.***> schrieb am Mi., 14. Juli 2021, 14:05:
def start(): """ Captures video feed frame by frame, crops out unecessary dino and processes """ startingpoint_obj = open('D:/DBD_ML/starting.txt','r') startingpoint = int(startingpoint_obj.read()) startingpoint_obj.close() sct = mss()
I don't know what 'starting.txt' is.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Jeffdemongo/DBD_Dataset/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKOHTYGIJG7LLSAJAAXG2RTTXV4P5ANCNFSM5ALKFLBA .
Traceback (most recent call last):
File "C:\Users\whlsl\Desktop\Download\DBD_Dataset-master\capture_feed.py", line 127, in
I can't figure out why this error is happening.
It could be because you have to run the script as administrator. I usually started the cmd as admin and then activated my env and ran the script from there. If that doesn't work I will have to take a look at what else could be causing it.
A temporary fix would be to just set the starting frame variable manually (to 0 when you start the first recording session)
def start(): """ Captures video feed frame by frame, crops out unecessary dino and processes """ startingpoint_obj = open('D:/DBD_ML/starting.txt','r') startingpoint = int(startingpoint_obj.read()) startingpoint_obj.close() sct = mss()
I don't know what 'starting.txt' is.