Skip to content

Instantly share code, notes, and snippets.

View nimarion's full-sized avatar
💫

Niklas Marion nimarion

💫
View GitHub Profile
import cv2
import numpy as np
from skimage.metrics import structural_similarity as ssim
def calculate_difference(img1_path, img2_path):
# Load images
img1 = cv2.imread(img1_path)
img2 = cv2.imread(img2_path)
# Ensure both images are the same size
package test;
import java.util.ArrayList;
import java.util.List;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.platform.win32.WinDef.HWND;
import com.sun.jna.platform.win32.WinUser.WNDENUMPROC;
import com.sun.jna.win32.W32APIOptions;