After simulation on computer, I need to detect the fish on Raspberry Pi. In the case, the instruction for compiling C++ code with OpenCV library and WiringPi library is shown as following,
$g++ main.cpp -o main `pkg-config --cflags --libs opencv` -lwiringPi
And run it using following,
$sudo ./main
The results are shown as following video, I use the fish picture which is taken from fish lab,
Video 1: Detect fish on Raspberry Pi
As the video shown, it can detect the fish in the figure and then fish feeder will be rotating. Yeah, the screen also shows the status of feeder and if any fish is detected.
This is an important step for project, and I nearly finish it, I think that I can consider the web control parts.
No comments:
Post a Comment