Table of Contents |
---|
Overview
Data Image collection is done on any computer running Linux on the drone. Data Image collection accesses sensors the camera in the same manner as the airside system.
...
https://github.com/UWARG/model-training
Software
...
Usage
Collection:
Connect all sensors
Power on the computer:
If sensors are not connected, data collection fails to start and the computer needs to be restarted
Data collection is automatically run on startup through the
/etc/rc.local
file
Access:
...
Disconnect all sensors and power on the computer
...
Move or copy the data to be saved
...
Setup
Code
Open the terminal and navigate to the home directory:
...
Do not use the other requirements files
...
Usage
Prerequisites: The username of the computer used is warg
.
Update the repository by running:
Code Block |
---|
git checkout main
git pull
git submodule update --remote |
Copy the contents of imaging/rc.local.copyme
assume the username is warg
/copyme
to /etc/rc.local
.
Modifying
/etc/rc.local
requires superuser access (e.g.sudo
)
...
Use 1 of the following:
OpenCV Python:
Copy the OpenCV Python section ofimaging/rc.local.copyme
to
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
...
FFmpeg video:
Install FFmpeg:
sudo apt-get install ffmpeg
Copy the FFmpeg video section of
imaging/rc.local.copyme
to/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