A computer vision-based model for occupancy detection using low-resolution thermal images