Skip to content

Cropping Videos using GoogleColab

This tutorial will guide the user through cropping videos obtained from imaging zebrafish adults in an 8-tank system.

Materials

A Gmail account with enough space to upload your video(s) to your Google Drive.

8-cage cropping Colab Notebook

Setting Up the Notebook

  1. Open the 8-cage cropping Colab Notebook. If you are not signed in to your Gmail account, click sign in on the top right.
  2. Connect to your Google drive by running the first cell. Give Colab permission to access your Google Drive folder. This will create a new folder on your Google Drive named Colab_Data.

    Connecting to Google Drive

    Clicking the Cell Granting Permissions

  3. Upload your video to the Colab_Data folder in your Google Drive.

  4. Follow the instructions in the notebook to automatically recognize and crop your video into 8 separate videos for each cage. The videos will be saved in your Colab_Data folder.
What is a Google Colab Notebook?

Google Colab is a hosted Jupyter Notebook service that requires no setup to use and provides free access to computing resources. It is an interactive environment that allows you to write and execute Python code directly in your web browser.