Overview
Image collection is done on any computer running Linux on the drone. Image collection accesses the camera in the same manner as the airside system.
Repository:
https://github.com/UWARG/model-training
Software
Setup
Open the terminal and navigate to the home directory: cd ~/
Clone the repository and setup and activate the virtual environment.
See: Workflow
Install packages: pip install imaging/requirements.txt
Do NOT use the other requirements files
Usage
Prerequisites:
The username and home directory of the computer used is
warg
If it is not, change the username and home directory: https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-rename-linux-users-and-their-home-directory/
Update the repository by running:
git checkout main git pull git submodule update --remote
Copy the contents of imaging/rc.local/copyme
to /etc/rc.local
.
Modifying
/etc/rc.local
requires superuser access (e.g.sudo
)
Collecting images:
Connect the camera to the computer
Power on the computer:
If camera is not connected, image collection fails to start. Power off the computer and go to step 1
Image collection is automatically run on startup through the
/etc/rc.local
file
Collect images by pointing the camera towards the object(s) of interest
Power off the computer
Accessing images:
Disconnect all sensors
Power on the computer
Move or copy the images to be saved
Delete the images to free space for future collection