Difference between revisions of "Orange: Import Images"
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 1: | Line 1: | ||
Sumber: https://orange.biolab.si/widget-catalog/image-analytics/importimages/ | Sumber: https://orange.biolab.si/widget-catalog/image-analytics/importimages/ | ||
− | |||
− | |||
− | |||
Import images from a directory(s). | Import images from a directory(s). | ||
− | + | ==Output== | |
− | + | Data: Dataset describing one image in each row. | |
Import Images walks through a directory and returs one row per located image. Columns include image name, path to image, width, height and image size. Column with image path is later used as an attribute for image visualization and embedding. | Import Images walks through a directory and returs one row per located image. Columns include image name, path to image, width, height and image size. Column with image path is later used as an attribute for image visualization and embedding. | ||
Line 15: | Line 12: | ||
[[File:ImportImages-stamped.png|center|200px|thumb]] | [[File:ImportImages-stamped.png|center|200px|thumb]] | ||
− | + | * Currently loaded folder. | |
− | + | * Select the folder to load. | |
− | + | * Click Reload to update imported images. | |
− | + | * Information on the input. | |
− | + | * Access help. | |
You can load a folder containing subfolders. In this case Orange will consider each folder as a class value. In the example above, Import Images loaded 26 images belonging to two categories. These two categories will be used as class values. | You can load a folder containing subfolders. In this case Orange will consider each folder as a class value. In the example above, Import Images loaded 26 images belonging to two categories. These two categories will be used as class values. |
Revision as of 11:26, 29 January 2020
Sumber: https://orange.biolab.si/widget-catalog/image-analytics/importimages/
Import images from a directory(s).
Output
Data: Dataset describing one image in each row.
Import Images walks through a directory and returs one row per located image. Columns include image name, path to image, width, height and image size. Column with image path is later used as an attribute for image visualization and embedding.
- Currently loaded folder.
- Select the folder to load.
- Click Reload to update imported images.
- Information on the input.
- Access help.
You can load a folder containing subfolders. In this case Orange will consider each folder as a class value. In the example above, Import Images loaded 26 images belonging to two categories. These two categories will be used as class values.
Contoh
Import Images is likely the first widget you will use in image analysis. It loads images and creates class values from folders. In this example we used Import Images to load 26 painting belonging to either Monet or Manet.
We can observe the result in a Data Table. See how Orange added an extra class attribute with values Monet and Manet?
Now we can proceed with standard machine learning methods. We will send images to Image Embedding, where we will use Painters embedder to retrieve image vectors.
Then we will use Test & Score and Logistic Regression, to build a model for predicting the author of a painting. We get a perfect score? How come? It turns out, these were the images the Painters embedder was trained on, so a high accuracy is expected.