Thursday, 14 November 2013

Start the second level

I have started my second level of project from last week, and this is much more advanced that previous one. After being finished, the fish feeder will feed fish automatically if fish comes here, the feeder will rotate to feed fish, so I think it can be called artificial intelligence project.

In this level, the webcam board (2302279) needs to be added in the raspberry pi as shown in Figure 1. 
Figure 1: Webcam board for Raspberry Pi

Furthermore, the rough algorithm is shown as following:

1.      Take photos for fish tank to detect if is there exists fish.
2.      Process the image to analysis if there is any fish in photos.
3.      If there is no fish in photos, take photos continually.
4.      If there exists some fish, drive feeder to feed fish.
5.      After some time, take photo continually.

So, the most important step is that analysis the photos to detect fish. The image processing will be involving in the second level. OK, how to process image? I will use OpenCV (Open Source Computer Vision Library). OpenCV will provide basic structure for computer vision and image processing so that we can use some functions to analysis images, you can use Matlab, C, C++, Python and so on to program. Furthermore, it can be installed in Windows, Mac, Linux so it can be used in main system platforms. 

Figure 2: OpenCV Logo

No comments:

Post a Comment