Finished library work on background subtraction
TODO add this feature to the gui