Esempio n. 1
0
    if (config.getIsDebug()):
        print("Image Read\n")

    detected = detector.TargetDetect(image)
    #image is entered into TargetDetect method, outputs an array of points (corners)
    if (config.getIsDebug()):
        print("Image Processed by Target Detector\n")

    if (detector.getFound() == True):  #if target was found

        if (config.getIsDebug()):
            print("Target Found\n")

        target = Target(detected)
        orient = target.Orientation()

        if (config.getIsDebug()):
            print("Image Analyzed\n")

        if (config.getIsDebug()):
            print("Image Being Processed by Target Processor\n")

        processor.loadTarget(
            target)  #enters Target instance into processor object instance

        if (config.getIsDebug()):
            print("Target Loaded\n")

        distance = processor.findDistance(
        )  #outputs distance found through TargetProcessor