I am using following codes to classify defected items from real time webcame, But I am confused about it. Sometime it is performing good, sometime bad. Classification result is