- Use the Python command with the image you want to extract ROIs as an argument (e.g., "python ROI.py GxABT_single.bmp").
- Select a ROI on the image with your mouse.
- Press ENTER or SPACE to save the ROI.
- Repeat steps 2 and 3 as long as needed.
- Press ESC to quit.
- Annotation txt file is saved in the "Annotation_txt" folder, and individual images are saved in a sub-folder in the "Individuals_images" folder.
- Use the Python command with: (e.g., "python crop.py GxABT_box 500 240")
- Path to the folder containing the images of the box to be reconstructed
- Number of pixels to crop on horizontal sides
- Number of pixels to crop on vertical sides
- The reconstructed box will be saved in the current directory.
- Use the Python command to launch the GUI: "python parameters_chooser.py".
- Select an image to visualize with the button: "Choose image".
- Adjust parameters with cursors.
- (Optional) Save parameters to a CSV file with the button: "Save parameters".
- (Optional) Load parameters from a CSV file with the button: "Load parameters".
- Start counting for a box on parts (GxABT method) with the button: "Start counting (box parts)".
- OR - Start counting for a single image (Africamuseum method) with the button: "Start counting (complete box)".
- Annotation txt files are saved in the "Annotation_txt" folder, individual insects are saved in a sub-folder in the "Insects" folder, and annotated images with bounding boxes are saved in a sub-folder in the "Parts" folder (GxABT) or "Out" folder (Africamuseum). Parameters, number, width mean, and height mean are saved in the "out.csv" file.
gembloux_method_haar.py and africamuseum_method_haar.py (Cascade Detection to Get the Number of Insects of an Entomological Box)
- Use the Python command with: (e.g., "python gembloux_method_haar.py 1.2 3 3 GxABT_box cascade.xml ")
- Scale Factor
- Minimum number of neighbors
- Minimum size of detection
- Path to the folder containing the images of the box (GxABT) or to the single image (Africamuseum)
- Path to the cascade XML file
- Annotation txt files are saved in the "Annotation_txt" folder, individual insects are saved in a sub-folder in the "Insects" folder, and annotated images with bounding boxes are saved in a sub-folder in the "Parts" folder (GxABT) or "Out" folder (Africamuseum). Parameters, number, width mean, and height mean are saved in the "out.csv" file.
Follow the instructions in the Jupyter notebook.
Follow the instructions in the Jupyter notebook.
Follow the instructions in the Jupyter notebook.