This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image, ImageChops | |
import numpy as np | |
from os import system | |
from datetime import datetime | |
import os | |
from argparse import ArgumentParser | |
from time import sleep | |
def dif_of_images(image1, image2): | |
return np.sum(np.array(ImageChops.difference(image1, image2).getdata())) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import json | |
import subprocess | |
from os import system | |
import time | |
from subprocess import run | |
distLat = Destination_Latitude # replace with your own | |
distLong = Destination_Longitude # replace with your own |