Farmware
Photos and Weed Detection my.farm.bot/app/farmware
The following Farmware have been created by FarmBot Inc and are pre-installed:
- Take Photo - take a photo and upload it to the web app
- Weed Detector - detect weeds
- Camera Calibration - calibrate the camera for use in Plant Detection
Farmware
Run a Farmware by selecting it from the list and pressing
.Press the gear icon () to open the Farmware advanced menu. To show first-party Farmware (pre-installed Farmware) in the Farmware list, enable SHOW IN LIST
. If a pre-installed Farmware is accidentally deleted, press the REINSTALL
button.
Installing Farmware
To install new Farmware, use the Install form in the left panel of the Farmware page of the FarmBot Web App. (Link to web app Farmware page)
Installation is performed by entering the URL of the manifest.json file for the Farmware.
Take Photo
Take photos using FarmBot’s camera and view them.
Press
to take a photo. Press to delete a photo.Use the PREV
and NEXT
buttons to navigate through previously taken images.
The default camera is a USB camera. If you would like to use a Raspberry Pi camera, use the camera selection dropdown menu in the Device widget on the Device page.
Camera Calibration
Alpha
Calibrate your FarmBot’s camera. See also: Weed Detector
Camera calibration works by using the distance between and orientation of calibration objects placed in the garden bed. Calibration only needs to be performed once.
Instructions
Place two red objects (these red markers are included in kits) on the surface of the soil in your garden bed. The objects should be bright red, and preferably round.
They can be placed anywhere in the bed, but they need to be placed square with FarmBot’s tracks and in a location where FarmBot’s camera can be moved directly overhead.
Measure the distance from the center of one object to the center of the next. The objects can be separated as far apart as they can while still remaining within the field of view of the camera. 100-200mm is a good starting point. Input the value in millimeters into the calibration object separation
input box in the Camera Calibration widget settings menu (opened by pressing the white gear icon next to ).
Select the axis along which the calibration objects are placed. If you placed them in the direction of the tracks, select X
in the calibration object separation along axis
drop down menu. If you placed them in the direction of the gantry, select Y
.
For the origin location in image
setting, look at a photo you have taken with FarmBot’s camera (take one using the take photo widget if you haven’t already). Determine which direction home is in the image, and select the corner of the image that corresponds to that direction. It can help to view a photo taken when FarmBot was at home (0, 0, 0). If a corner of the image does not correspond to the origin, try rotating the camera until one does.
The hue color range slider should be set to approximately 20-160, with the invert hue range selection
checkbox marked. This will select a hue range that includes various shades of red.
Move FarmBot directly over the calibration objects you have placed, and move the z-axis as high as it will go. Press the pixel coordinate scale
and camera rotation
results will appear as well.
If more than the two red objects are detected in the image, adjust the hue, saturation, and value parameters until the two red objects are the only objects detected in the image. Detected regions of the image are outlined in green and circled in blue. Each new calibration will replace the previous calibrated values.
can be used to run camera calibration on an image already taken instead of taking a new photo.
Note
Once camera calibration is run, you must always detect weeds with the camera at that height (z-axis coordinate). Running calibration with the z-axis all the way up is recommended to maximize the camera’s field of view.
Weed Detector
Alpha
Calibration Required
To use the Weed Detector widget, you must first calibrate the camera using the Camera Calibration widget.
Select hue, saturation, and value ranges to cover the colors you want to detect using the sliders. The color boxes will give an indication of the range selected. For the hue slider, a green color range is approximately 30-90.
Blur, morph and iteration processing parameters: It is recommended to use the defaults, run a test, and then experiment with the values to test the results.
Move the FarmBot over a section of soil. Press Farm Designer. Press to delete them from the map.
to detect weeds in FarmBot camera’s current view. The weeds will appear in thecan be used to run weed detection on an image already taken instead of taking a new photo.
Detect weeds across FarmBot’s entire bed by creating a sequence of movements in a grid pattern with a Run Farmware step at each grid point.
Weed removal can be performed by creating a weed removal sequence that uses the weeding tool on weeds (points) in the Farm Designer. For more information on the weed detection process, see Weed Detection. For more information on creating sequences, see Sequences.
Left: Camera Calibration widget, Right: Weed Detector widget