Created
March 30, 2018 10:08
-
-
Save regonn/778f23144fd7d5914fafa3743d80c96b to your computer and use it in GitHub Desktop.
https://www.kaggle.com/c/imaterialist-challenge-furniture-2018 images download julia
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using JSON | |
using Images | |
json = JSON.parsefile("./input/train.json") | |
iamges_json = json["images"][1:10] | |
for image_json in iamges_json | |
try | |
t = tempname() | |
download(image_json["url"][1], t) | |
img = load(t) | |
save("./images/$(image_json["image_id"]).jpg",img) | |
rm(t) | |
catch err | |
println("ERROR: ", err.msg) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment