I came across an error while writing Object Recognition script

Thanks a million, man, you’ve saved hours of my life!!!