You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.
if (setcode+'.images') not in files: # if .images file doesnt exist
print(setcode +'.images','file not found, generating from gatherer now')
set = cardset(setcode)# call card_set_json to get image URLs
for i in range(len(set.uids)):# fetch all card images from URLs
url = set.imgurls[i]
if (url != None):
+ url_response = urlreq.urlopen(url, context=context)
img_array = np.array(bytearray(url_response.read()), dtype=np.uint8)
img = cv2.imdecode(img_array, -1)
imgdict[set.uids[i]] = img
print(i)
Ideally we would need to securely download the images from the https urls, but I'm not sure if that's the responsibility of this repo or MTG json not providing the correct URL.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
To fix, I've adjusted fetchSetImages.py
Ideally we would need to securely download the images from the https urls, but I'm not sure if that's the responsibility of this repo or MTG json not providing the correct URL.
The text was updated successfully, but these errors were encountered: