I have a camera facing into a trashbin. I want to take a picture of every new threwn item.
To start with I don't realy know what way to go. Take one picture after something is threwn and compare with last taken picture or use live camera stream analyse.
The problem is to mask that new item as some stuff like glassbottles are both transparent and heavy which makes them hard to mask and they often moves other trash little bit. If I have one white item in the trashbin and the new item is also white it's hard to mask that new item by absdiff as the differences is to small. In those cases maybe a edge-detection solution could fix it, but I don't know how to remove edges of all old stuff and only get the edge of the new item, and then mask the area inside.
Any suggestions how to solve this?