I'm doing this:

Import["/Volumes/Transcend2/images/", "*.jpg"];

And getting these errors:

enter image description here

Then, after it's done, when I type "images" and shift+enter, I just get that variable name back.

This folder contains 1.73 GB of images. No subdirectories.

I am now trying ReleaseHold surrounding import.

  • 1
    $\begingroup$ What happens if you import a single image? $\endgroup$ – demm Apr 28 at 12:05
  • 1
    $\begingroup$ When you read in compressed images, Mathematica expands them. Your 1.7 GB of .jpgs likely will overwhelm your memory when expanded. $\endgroup$ – bill s Apr 28 at 13:20
  • $\begingroup$ When I import a single image, it works without any problems. @bills yes it seems when I do it my computer gets a lot slower. Is there anyway to read them compressed? I'm trying to do: FeatureNearest[folderofimages] and then use images not in the data to find the nearest images. $\endgroup$ – Youssef A Apr 28 at 14:32
  • 1
    $\begingroup$ I would read them in one by one and extract the features, saving only the features. So something like Table[FeatureNearest[Import[ ]],{i,1,number of images}]. The point is you don't need to have all the images in memory at once (only the extracted features). $\endgroup$ – bill s Apr 28 at 16:22
  • $\begingroup$ Thank you! I'll try that $\endgroup$ – Youssef A Apr 28 at 16:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.