Intelligent Framework for Monitoring Crops in Greenhouses