Developing a new Detection class

detectobj2 and detectvid use the new interface