A Vision-Based System for Elderly Patients Monitoring