Quality detection of pomegranate fruit infected with fungal disease