Exemplo n.º 1
0
def saved_images():
    dirs = os.listdir("test_images/")
    for file in dirs:
        image = os.path.join("test_images", file)
        print("Checking %s" % file)
        image = Image.open(image)
        OD.detect(image, file, detection_graph, category_index)
Exemplo n.º 2
0
def single_image():
    imgs = []
    for i, uri in enumerate(URIs):
        r = requests.get(uri,
                         auth=HTTPDigestAuth('administrator', 'password'),
                         stream=True)
        filename = getFileName(i)
        im = Image.open(io.BytesIO(r.content))
        im.thumbnail(size)
        imgs.append((im, filename))
    detected = False
    for i in range(4):
        if OD.detect(imgs[i][0], imgs[i][1], detection_graph, category_index):
            makeGeoJSON(imgs[i][0], imgs[i][1])
            return ()
Exemplo n.º 3
0
def identify():
    return detect()
Exemplo n.º 4
0
from object_detector import detect

point = detect()
print("found center at: ", point)