<gh_stars>0
import time
import os
from picture import take_pictures_CV2 as take_pictures
from predicter import predict_folder

DIRECTORY = os.path.join(os.getcwd(), "pictures")

#Test

while True:
    try:
        #Take pictures
        take_pictures(DIRECTORY)
        print("pictures taken")

        #Predict pictures
        result = predict_folder(DIRECTORY)
        print(result)
        time.sleep(1)
    except Exception as e:
        print(e)
import time
import os
from picture import take_pictures_CV2 as take_pictures
from predicter import predict_folder

DIRECTORY = os.path.join(os.getcwd(), "pictures")

#Test

while True:
    try:
        #Take pictures
        take_pictures(DIRECTORY)
        print("pictures taken")

        #Predict pictures
        result = predict_folder(DIRECTORY)
        print(result)
        time.sleep(1)
    except Exception as e:
        print(e)
#Test #Take pictures #Predict pictures