RoboCarts
Functions
moving_object_detection Namespace Reference

Functions

def difference (img1, img2, hsv=False, t_value=15, k_size=20)
 

Detailed Description

@file moving_object_detection.py
@brief This file contains a function for the frame differencing.

Function Documentation

◆ difference()

def moving_object_detection.difference (   img1,
  img2,
  hsv = False,
  t_value = 15,
  k_size = 20 
)
Standard image differencing with thresholding and morphological operations
:param k_size: kernel size
:param t_value: threshold value
:param hsv: option to subtract two hsv images
:param img1: source image 1
:param img2: source image 2
:return: binary mask of the difference