This UI is meant to help with classifying split images from the Winter 2017 dataset. Each image is a 75x75 "tile" of the original image. We use tile to refer to the image displayed on the site.
You will be assigned two folders to look through and assign labels to. The UI contains the following buttons: One, two, three, unsure, and custom count. With this program, you will be classifying the number of eggs in the tile provided.
Select these options if there are one, two, or three eggs in the image.
If you are unsure about the number of eggs in an image, click this. These will later be reviewed by Ken and classified accordingly.
If there are more than three eggs in the image, type the INTEGER VALUE of the number of eggs in the tile. Do NOT type the word equivalent of the count. After you type in the integer, click submit and the next image will be loaded.
There is no partial egg button! If you see more than 70% of an egg in the image or you didn't really have to think about if this is an egg or not, count is as an egg. If there's very little of the egg in the image (e.g. less than 20% of the egg), do not count it as an egg. If you are unsure, click "Unsure."
- Python >3.9.6
- Flask
- I used Python 3.12.5, so I recommend that but if your existing Python version is 3.9.6 and up, you don't need to update your Python.
- If you don't have Python, click here and install it. Follow the directions that it states.
- Click the Green Code button in the right side and press "Download Zip," this should download the Classifier-Site repository onto your computer
- Find which folder this has been downloaded, it is most likely in your Downloads folder
- Right click on the Classifier-Site folder and press Get Info. There should be an option called "Where" containing information as to the folders the Classifier-Site directory is in.
You should have something similar, this means that the Classifier-Site path is /Users/shreyanakum/Downloads/Classifier-Site
- Open Terminal and cd into the Classifier-Site directory:
$ cd [your-path-to-the-Classifier-Site-directory]
EX) In my case, I would type cd /Users/shreyanakum/Downloads/Classifier-Site 5. Now, we will double check that you have all necessary files/sub-directories:
$ ls
additions.txt custom_arg.py static
backend.py preprocessing_files
If your output is missing one of these files, please contact me and do not proceed.
-
Right click on the Classifier-Site folder and press Properties. There should be "Location" field containing the Classifier-Site directory's path. Copy it.
-
Open Command Prompt and cd into the Classifier-Site directory:
> cd [your-path-to-the-Classifier-Site-directory]
- Now, we will double check that you have all necessary files/sub-directories:
> dir
additions.txt
custom_arg.py
static
backend.py
preprocessing_files
If your output is missing one of these, please contact me and do not proceed.
- If you downloaded Python from python.org (the link provided in the previous step), you should already have pip.
- If you have an older version if pip and are using macOS or Linux, please update it now by running (the $ is just to indicate shell, do not copy it when you run the command):
$ pip install --upgrade pip
If you are a Windows user try:
> py -m pip install --upgrade pip
If neither of these worked, Google your error. If you are still having issues, contact me (Shreya).
- The backend of this program was written using Flask, a Python package that is a web framework with tools and libraries for building web applications (like this one)!
- Before you install Flask, you need to make a virtual environment.
$ python3 -m venv .venv
$ .venv/bin/activate
$ pip install Flask
> py -3 -m venv .venv
> .venv\Scripts\activate
> pip install Flask
- You should have been emailed a two folders containing the images that you will classify. Choose one.
- The folder's structure should be:
.
├── MONTH DAY
│
├── C pops
│
└── D pops
- Choose a folder C pops or D pops.
- Do what you did when finding the path to the Classifier-Site directory to find the path of the folder you just chose again. This path you chose should end with C pops or D pops. EX) ./MONTH DAY/C pops
Run the following command:
$ python3 backend.py [path-to-image-folder]
If you need help, email or text me, I can help with debugging your issues. Please include a screenshot of what the issue is and tell me what OS you're using.
Shreya Nakum
- 0.2
- Added hot-keys
- Added progress bar
- Switched to number buttons
- See commit change
- 0.1
- Initial Release