Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 8 Next »

Let’s say you have a row of grapes that represents average yields in your entire vineyard. By counting clusters in that row you have a quick measure of the relative cluster counts over that row’s length. This measure can then be easily expanded across the entire vineyard area.

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:

  • A Google Account

    • Colaboratory runs on Google Drive

  • A video file

    • This is the actual video of your grapes. We will talk about capturing this video file below.

Capturing Video

In this tutorial we will be using ‘nighttime-grape-flower-clusters/1’ which is a nighttime cluster counting model. You can explore our other cluster counting models, leverage any Roboflow Universe models, or even train your own model.

Credit: The data used to train nighttime-grape-flower-clusters/1 was originally captured and trained by Jonathan Jaramillo as part of his PHD research which motivated the creation of this guide. Read the original paper >>

Note: ‘nighttime-grape-flower-clusters/1’ is a nighttime only model. This means you’ll need to capture your video at night using a lighting source. We recommend placing light sources a few feet above and/or below your camera as in the figure below:

fagro-03-648080-g001.jpg

You will want to experiment with different frame rates and video lengths to see how effectively they work with in our cluster counter. The video used in this tutorial was filmed at 250 fps and is 17 seconds long. We are actively testing much lower frame rates (60 fps) and longer videos and we will update this document as we come up with further recommendations.

Setup the Video Counter

Get Organized

  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’ and upload it to your ‘Computer_Vision’ folder. You can download the file here:

  3. Next

  • No labels