# print("Arduino is not connected") # exit(1) # vs = initializationOfWebCamConnection() # if not vs: # print("WebCam is not connected") # exit(1) # time.sleep(2.0) # code = getDataFromQrCode() # if not code: # print('QrCode is incorrect') # exit(1) try: res = Modules.initializeModules() if res != None: print("Error in module {}".format(res)) exit(1) except: print("Some error in modules") Modules.closeConnections() exit(1) counter_of_failed_frames = 0 isMoving = False try: