I have finished the second section last year, but I have not update yet, sorry for that, I am busy in that period, interim report, C++ assignment, preparing for final exam and so on. So I am plan to update the achievement in a few days, I hope that you like it. Furthermore, I am developing the third and fourth section now, it is related to the Internet of things. The user can use the website to feed and monitor their fish.
The first thing I need to introduce is the image processing. The objective of second part is to feed fish automatically when the webcam detects the fish. So the webcam needs to take photo for fish tank at fixed periods. Then the Raspberry Pi is used to process images which is taken just now and detects the fish. Therefore, I decide to use edge detection to find the fish.
The basic arithmetic is shown as follows,
- Smooth: Suppress the noise which exists during the period of taking photos as much as possible, however, the real edges cannot be destroyed after reducing noise. This step is significant to improve accuracy for detecting fish.
- Enhance the quality of image: Use the filter to sharpening the edge of the image, the possibility of detecting fish will increase after this step.
- Detect the fish: In this step, program should determine what kinds of pixels should be regarded as noise and which can be kept for detecting fish, therefore, a threshold value can be set for filter the noise and keeping the original edge of fish.
- Find the location of fish: The program will determine the detailed location for fish in terms of detected the edges. Furthermore, edge linking and thinning will be used in this step.
It may be boring, however, it is very important, because this theory supports feasibility of practical C++ code. Ok, some interesting things are coming.
No comments:
Post a Comment