Manual: how to use the label app & label correctly¶
This manual presupposes that you get the label app running. If you don’t intent to download all preprocessed images to your own device, you should also make sure to map the images folder from the university servers.
General explanation of the app¶
the app shows all three images of one asparagus piece, the pictures are preprocessed
we only have to answer yes/ no questions (rust, hollow, violet etc.)
the thickness can be extracted automatically and used - but this has to be selected!
the labels are stored in a .csv file
Install dependencies¶
install miniconda¶
https://docs.conda.io/en/latest/miniconda.html Choose 64-bit or 32-bit version depending on your system.
During the dialog check add anaconda to path variable.
Open your terminal and hit conda update coonda
setup your env¶
Download file:
pyqt.ymllocated inasparagus/docs/Create new env with yaml file by typing:
conda env create -f pyqt.ymlIf you have not yet, clone the git project on your local device.
git clone https://github.com/CogSciUOS/asparagus.git
Map to university server¶
Follow instructions for installing the tools: https://github.com/billziss-gh/sshfs-win I didnt choose beta!
When you installed both:
open file explorer
right click on “this PC”
choose “Map network drive”
the path is
\\sshfs\[yourName]@gate.ikw.uos.de\\\\\(you have to use so manny \ because we want to mat to root)enter your gate password
Comment: sometimes the connection “sleeps”, however it helps to open the file explorer.
start app¶
activate pyqt env:
conda activate pyqtrun app: ````python \pathToRepos…\code\hand_label_assistant\main.py```
Labeling itself¶
select the number of the asparagus piece that you are supposed to start with. (we all open the same folder, so not every one will start with the first image!)
klick on
extract features, so that the features with the help of computer vision are extractedwe want to use the thickness values extracted via this feature extraction, so you should click
use predicted valueson the right. If we tick this, we are not asked this question manually (which saves time)you can see the questions which you should judge such as “is_bruch” in the left. With the
yesandnobuttons or the arrows to the left and to the right, you can classify.to help you judge if an asparagus piece is purple, use the graph in the top right - there is a peak in the right as indicator to detect violet
you do not have to explicitly save your work, this is done automatically after you are done with every piece
only click “not classifiable” if an asparagus piece really is not classifiable, this means:
it is not completely visible/ lying in one box
there are two pieces in one box
some other strange things
if you want to revise your decision, you can use the button for the arrow back
<<and you can redo the last decision, your first decision will be overwritten. If you want to redo the whole asparagus piece, you can simple enter the number of the corresponding piece and start from the first question ondo this until you have your done with your assigned images
You want to see your .csv file?¶
go to the path where you saved it and write in the terminal:
gedit [filename].csv
general remarks concerning sorting by Silvan¶
sort high quality pieces (1A anna) more conservatively
aim to have more than 50% of the first class in the end
minimal violett should be judged as violett (even if we detect a tiny bit of violet, it already counts as violet)
this is less strict for rust. If a piece is only very slightly rusty, it doesnt matter
a piece counts as “bended” always if it changes the growing direction (s-shape), and also if it is strongly curved, but not if it is only slightly round
TASK FOR NOW - for the Kappa agreement¶
To start with, our aim is to double-lable some of our already “labeled” folders, and then to use the kappa agreement for judgement our intra personal differences (we still have to decide on how we handle intra personal differences in labeling (how much difference we accept as “good”/”similar enough”))
We have 13 different labeled folders in the path /net/projects/scratch/summer/valid_until_31_January_2020/asparagus/Images/labled/kappa_images.
We will classify the first 100 images of each folder twice. (shout if you have a better idea)
This means: everyone is assigned three times (this means for now 300 images per person)
This gives us:
1A_Anna –> Malin & Josefine
1A_Bona –> Subir & Maren –> instead of Subir Malin
1A_Clara –> Luana & Richard –> instead of Luana Maren
1A_Krumme –> Michael & Sophia
1A_Violett –> Josefine & Katha –> instead of Katha Malin
2A –> Maren & Malin
2B –> Richard & Subir –> instead of Josefine
Blume –> Sophia & Luana –> instead of Luana Malin
Dicke –> Katha & Michael –> instead of Katha Malin
Hohle –> Malin & Sophia
Köpfe –> Subir & Josefine –> instead of Subir Maren
Rost –> Luana & Maren –> instead of Luana Josefine
Suppe –> Michael & Richard
Do the following:
classify the first 100 images (number 0 - 99) of the three folders you are assigned to.
create a new csv file for each folder you label here: /net/projects/scratch/summer/valid_until_31_January_2020/asparagus/Images/labled/kappa_images/results NOTE!: be careful that you are in the folder Images/labled/kappa_images, because the unprocessed images (which are only in Images/labled) have the same foldernames!
naming convention: [your_name]kappa[class].csv (e.g. malin_kappa_1A_Anna.csv).