A python-enabled workflow to measure peaks and troughs generated in a wave tank for a BioBus Project
To get started with the project from scratch, ensure you have python version [what version?] installed on your computer
Once python is installed, download the git repository and navigate to the downloaded directory
git clone git@github.com:ajn2004/WaveTankImaging.git
cd WaveTankImagingTo keep a clean development system, it's best practice to create a virtual environment and install the dependencies locally with the following commands
python -m venv venv
source venv/bin/activate
pip install -r requirements.txtFrom there you should be able to run the code with
pyton main.pyNeed to take in a video and output amplitude of waves recorded in video In order to work this code needs to perform the following actions (in order)
- Load Video (mp4) to Image stack
- Determine Pixel size
- Separate out the frames
- For each frame
- Determine a baseline
- Determine wave amplitude from baseline
- Record amplitude/deviation for future analysis ...