> ## Documentation Index
> Fetch the complete documentation index at: https://landinglens.docs.landing.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Classification

export const vp = 'Visual Prompting';

export const smartLabel = 'Smart Labeling';

export const productLL = 'LandingLens';

export const mi = 'Mobile Inference';

export const llsf = 'LandingLens on Snowflake';

export const companyName = 'LandingAI';

*This article applies to these versions of LandingLens:*

<table>
  <thead>
    <tr>
      <th>LandingLens</th>
      <th>LandingLens on Snowflake</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td><span class="check-icon">✓</span></td>
      <td><span class="check-icon">✓</span> (see exceptions below)</td>
    </tr>
  </tbody>
</table>

**Classification** is used to categorize (or classify) the contents of an image as a whole. This project type is useful for distinguishing one object from another or trying to identify global characteristics or patterns of an image. For example: blurry or clear, dark or light, and plaid or striped.

Images for this project type should typically be more consistent and localized as the whole image is used as input for training the model.

## Classification Upload Methods

When you upload images to a Classification project, you are prompted to choose one of these methods for uploading and labeling images:

* [Classified Images](#upload-classified-images): Organize images by class in separate folders *before* you upload them. When you upload folders, the images will automatically be classified based on the titles of your folders.
* [Unclassified Images](#upload-unclassified-images): Label the images *after* you upload them, just as you would for other projects.

<img src="https://mintcdn.com/landinglens/hjeGEKEYbDsj6EG_/images/class-upload-methods.png?fit=max&auto=format&n=hjeGEKEYbDsj6EG_&q=85&s=efeb2834d37dfe22a5122523ec57d768" alt="Upload Methods" width="1395" height="618" data-path="images/class-upload-methods.png" />

### Upload Classified Images

<iframe width="560" height="315" src="https://www.youtube.com/embed/U-qF5jSL3mo?&wmode=opaque&rel=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />

<Info>If you're using {llsf} and want to load and classify images from a Snowflake stage, go to [Load Images from Snowflake into LandingLens](./load-images-from-snowflake).</Info>

If you have images separated into different folders in your computer's directory according to their class, this method is for you. When you upload folders, the images will automatically be classified based on the titles of your folders.

For example, let’s say you want to distinguish apples from bananas. You can create these folders: **Apples** and **Bananas**.

<img src="https://mintcdn.com/landinglens/hjeGEKEYbDsj6EG_/images/classified-folders.png?fit=max&auto=format&n=hjeGEKEYbDsj6EG_&q=85&s=1c40f8967b4ab0f0046dfb35aa98f72f" alt="classified folders" width="226" height="118" data-path="images/classified-folders.png" />

When you upload these folders, the images from each folder will automatically be classified based on the titles of the folders. The Classified Images method is preferred because you can organize your images first and not have to worry about labeling these images after upload.

<img src="https://mintcdn.com/landinglens/hjeGEKEYbDsj6EG_/images/classified-images-auto.png?fit=max&auto=format&n=hjeGEKEYbDsj6EG_&q=85&s=809c0579e8fe9c6fbfc8ae54b497649c" alt="Classified Images" width="1125" height="596" data-path="images/classified-images-auto.png" />

<Info>Before you upload folders of images with the Classified method, ensure that the folder titles reflect the classes you want to create.</Info>

<Info>Before uploading images to LandingLens, ensure that you’ve selected the Classified Images option. Otherwise, images won’t be labeled during the upload process. For example, the drag-and-drop method will use the Unclassified method, not the Classified option.</Info>

To upload classified images:

1. Open the classification project you want to upload images to.
2. Perform one of the following actions:
   * If you do *not* have any images already uploaded to your project, click the **Drop to Upload** area.
     <img src="https://mintcdn.com/landinglens/AkXgdAcL19zbnV5n/images/drop-to-upload.png?fit=max&auto=format&n=AkXgdAcL19zbnV5n&q=85&s=0149f0c5c075131229281be40ff33b66" alt="Drop to Upload" width="1043" height="806" data-path="images/drop-to-upload.png" />
   * If you already have images uploaded to your project, click the **Upload** icon.
     <img src="https://mintcdn.com/landinglens/nULG3l07sGmu7vxy/images/upload-icon.png?fit=max&auto=format&n=nULG3l07sGmu7vxy&q=85&s=477087cd1af7c9f3d982b579100499c1" alt="Upload Icon" width="1077" height="545" data-path="images/upload-icon.png" />
3. Click **Classified Images**. This step is important as it's the only way to upload classified images.
   <img src="https://mintcdn.com/landinglens/hjeGEKEYbDsj6EG_/images/class-images-method.png?fit=max&auto=format&n=hjeGEKEYbDsj6EG_&q=85&s=06ec0d498a3103a2ba855f5c1931899e" alt="Classified Images" width="1395" height="618" data-path="images/class-images-method.png" />
4. Upload your folders to the **Classified Images Upload** area. LandingLens displays a preview of the images and their respective classes.
5. Click **Upload**. LandingLens uploads the images and classifies them according to their folder titles.
   <img src="https://mintcdn.com/landinglens/nULG3l07sGmu7vxy/images/upload-class.png?fit=max&auto=format&n=nULG3l07sGmu7vxy&q=85&s=9667b2bb4c34c18f2eb1f4d92b383a01" alt="Upload" width="1125" height="596" data-path="images/upload-class.png" />

### Upload Unclassified Images

If your images are *not *already separated into different folders in your computer’s directory, you can use the** Unclassified Images\*\* method. When you upload images this way, you’ll need to assign classes to images afterward.

This option is fine if you don’t have many images. However, if you have several images, try to organize them into folders and use the [Classified Images](./classification#upload-classified-images) option.

To upload unclassified images

1. Open the classification project you want to upload images to.
2. Perform one of the following actions:
   * If you do *not* have any images already uploaded to your project, drag and drop the images you want to upload to the **Drop to Upload** area. LandingLens automatically uploads the images to your project.
     <img src="https://mintcdn.com/landinglens/AkXgdAcL19zbnV5n/images/drop-to-upload.png?fit=max&auto=format&n=AkXgdAcL19zbnV5n&q=85&s=0149f0c5c075131229281be40ff33b66" alt="Drop to Upload" width="1043" height="806" data-path="images/drop-to-upload.png" />
   * If you already have images uploaded to your project, click the **Upload** icon.
     <img src="https://mintcdn.com/landinglens/nULG3l07sGmu7vxy/images/upload-icon.png?fit=max&auto=format&n=nULG3l07sGmu7vxy&q=85&s=477087cd1af7c9f3d982b579100499c1" alt="Upload Icon" width="1077" height="545" data-path="images/upload-icon.png" />
3. Click **Unclassified Images**.
   <img src="https://mintcdn.com/landinglens/nULG3l07sGmu7vxy/images/unclass-method.png?fit=max&auto=format&n=nULG3l07sGmu7vxy&q=85&s=ee5b097a8f1bc8375ce9414bb69bf31e" alt="Unclassified Images" width="1395" height="618" data-path="images/unclass-method.png" />
4. Upload the images to the **Unclassified Images Upload** area. LandingLens displays a preview of the images.
5. Click **Upload**.
   <img src="https://mintcdn.com/landinglens/nULG3l07sGmu7vxy/images/upload-unclass.png?fit=max&auto=format&n=nULG3l07sGmu7vxy&q=85&s=fc152d5bc17c44ab09dbd9154e655737" alt="Upload" width="1041" height="795" data-path="images/upload-unclass.png" />

## Add Labels to Images in Classification Projects

If you have already uploaded images using the [Unclassified](./classification#upload-unclassified-images) method, you will need to add labels to your images manually. There are two options for adding labels to images in classification projects:

* On the **Build** page, you can create or select a class from the **Select Class** drop-down menu for each image accordingly. (The video below has no sound.)Your browser does not support the audio element.
  <video src="https://mintcdn.com/landinglens/AkXgdAcL19zbnV5n/images/create-class-build.mp4?fit=max&auto=format&n=AkXgdAcL19zbnV5n&q=85&s=2c2a67442e637a44ddcd3f8a6b9bac19" width="560" height="315" controls data-path="images/create-class-build.mp4" />
* Click to open an image. Create or select a class from the **Select Class** drop-down menu for each image accordingly.Your browser does not support the audio element.
  <video src="https://mintcdn.com/landinglens/AkXgdAcL19zbnV5n/images/create-class-image.mp4?fit=max&auto=format&n=AkXgdAcL19zbnV5n&q=85&s=7e7ef83af9d81b8228b57aaf07828b5e" width="560" height="315" controls data-path="images/create-class-image.mp4" />
