Difference between revisions of "Orange: Import Images"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "Sumber: https://orange.biolab.si/widget-catalog/image-analytics/importimages/ Import Images Import images from a directory(s). Outputs Data: Dataset describing one i...")
 
Line 12: Line 12:
  
 
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.
 +
 +
[[File:ImportImages-stamped.png|center|200px|thumb]]
  
 
     Currently loaded folder.
 
     Currently loaded folder.
Line 20: Line 22:
  
 
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.
Example
+
 
 +
[[File:ImportImages-class.png|center|200px|thumb]]
 +
 
 +
 
 +
==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.
 
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.
Line 30: Line 36:
 
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.
 
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.
  
 
+
[[File:ImportImages-Example.png|center|200px|thumb]]
  
  

Revision as of 08:20, 25 January 2020

Sumber: https://orange.biolab.si/widget-catalog/image-analytics/importimages/


Import Images

Import images from a directory(s).

Outputs

   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.

ImportImages-stamped.png
   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.

ImportImages-class.png


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.

ImportImages-Example.png



Referensi

Pranala Menarik