Image processing with opencv and python on raspberry pi


#1

hi First of thanks for making farmbot opensource.Now my questions

  1. Can I use python code locally on raspberry pi for image processing ?
  2. Is it possible to send command bot, it run python script which contain image processing algorithm and run on farmbot??
  3. farmware software if i make for other then weed detection than is it run on server or run frambot raspberry pi ?

#2

Yes, you can use the Farmware page Camera Calibration and Weed Detector widgets to run the weed detection software, which is written in Python using OpenCV, and runs on the Raspberry Pi. You can also run plant detection (after camera calibration) using the Run Farmware step in the Sequence builder.

If you would like to run your own python code, you would package and install it as a Farmware and it would run on the Raspberry Pi.


#3

thanks for this fast reply. as per your answer I have to package my algo python script on farmware and send command through server to run that script right ?


#4

First part yes, second part you would need to install your farmware packge from a form of an internet url I guess; At the moment I don`t know how you can distribute farmware packages or how you could only install them “locally”…

@Gabriel I just saw that there are packages like camera calibration etc. in the dropdown list on the farmwares page; What is that exactly, nothing happens if I click run, when did you introduce them and do they work?


#5

Yes, you can follow the documentation for the Camera Calibration and Weed Detector to use the farmwares in the widgets.