|
Algorithm 2 Data acquisition by using a Neuro-Fuzzy filter. (Figure 6 bottom). |
| Input: capture image |
| Output: extract values |
|
Require: camera ON |
-
1:
Capture (Img)
-
2:
Binarize (Img) //Threshold of the object to be detected
-
3:
if (Object_detected (Img) == true) then
-
4:
//Extraction values from the original frame
-
5:
Bottle = Get_Blobs(Img)
-
6:
() = Get_CoG(Bottle)
-
7:
= Get_Angle_Inclination(Bottle)
-
8:
end if
-
9:
-
10:
//Applying of the Fuzzy filter previously trained
-
11:
while (i < n) do
-
12:
//Search of similarities within the dataset
-
13:
if (() and () and ()) then
-
14:
-
15:
return
-
16:
end if
-
17:
i++
-
18:
end while
-
19:
return
// is the real inclination angle
|