Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To help with this process, we have developed some open resources that can use a cellphone video as input, and a cluster count as output. We have written a public Google Colaboratory (Colab) that is freely available and can detect, track, and count flower clusters in video files. This makes it possible to get a rough count of clusters over a given distance in a vineyard. Here we’ll walk you through the steps to use our Colab notebook—a free tool from Google—to upload and analyze your own cluster videos using one of our pre-trained models. This Colab notebook is compatible with custom object detection models as well.

Getting Started

To use our video cluster counter, you will need a few things:

...

  1. Sign in to drive.google.com using your Google account. Click on ‘My Drive’ to see any existing files/folders in your Google Drive. Click ‘New’ → ‘New folder’ to create a new folder for your project. For the sake of this tutorial, call the folder ‘Computer_Vision’.

    Screenshot 2024-04-30 at 7.51.50 AM.png

    Screenshot 2024-04-30 at 7.52.13 AM.png

    Screenshot 2024-04-30 at 7.52.45 AM.png

  2. Next, double-click into your ‘Computer_Vision’ folder. Inside this folder, we will upload our model weights alongside the video file you have captured with your phone. For this tutorial, download our ‘nighttime-grape-flower-clusters’ model and upload it to your ‘Computer_Vision’ folder. You can download the file here:

    View file
    namenighttime-grape-flower-clusters.pt

  3. At this point, you should have a video file and a trained model next to each other in your ‘Computer_Vision’ folder . For the sake of on Google Drive. In this tutorial, we’ll name our file ‘test.MOV’. Don’t worry if your video file is in a different format; our processing script will convert it later.

    Screenshot 2024-04-30 at 12.58.28 PM.png

...

At this point, you should be all set to analyze your video and count the clusters! Simply step through one code block at a time pressing the little play button on the left and waiting for a checkbox to appear before moving on to the next block. Some blocks will take a significantly longer time to run. Be sure not to close the Colab or you will have to start at the top again (despite the checkboxes remaining).

...