I came across an error while writing Object Recognition script

well, your config file failed to load:

Object_Detection_Filesrozen_inference_graph

(do you spot it ?)
NEVER use single backslashes in filenenames !

either make it:

configPath = 'Object_Detection_Files/ssd_mobilenet_v3_large_coco_2020_01_14.pbtxt'
weightsPath = 'Object_Detection_Files/frozen_inference_graph.pb'

or:

configPath = 'Object_Detection_Files\\ssd_mobilenet_v3_large_coco_2020_01_14.pbtxt'
weightsPath = 'Object_Detection_Files\\frozen_inference_graph.pb'
1 Like