I want to judge whether the bean is normal or defect. I tried to use Canny method(to find edge) and so on... but I failed. I just solve it using shape.(cracked bean & unshaped bean ...) Please, give me some idea to solve it.
Sorry for my English, it's not my first language.