Image processing for smart farming: Detection of disease and fruit grading | Synapse