Link Search Menu Expand Document

File operation

  • open

Using built-in function open, we can open an image or the images in a folder by gicen a filepath.

image = open "car.png" 
    ... # do something with image

image = open "path/to/images/" 
    ... # do something with image