Standalone vision sensor for object inspection