Skip to content

Instantly share code, notes, and snippets.

View Damoon7's full-sized avatar

Damoon MakiAbadi Damoon7

  • Iran
View GitHub Profile
@Damoon7
Damoon7 / SecCam.py
Last active November 16, 2024 08:09
Use your phone as a camera by termux, if something comes against your camera it detects it and starts to take photos over and over, make video of them, send message to your phone, call you and even send photos and videos to your telegram! Enjoy it..
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()))
#!/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