Hi Jay,
maybe the good solution is to place a 360 degres poe camera like Hikvision on ceilling looking to the floor and then place a trigger line in it
this will be nice to setup in all the room view
after that, the API of the hikvision camera maybe give the feedback of the line passed off ?
i use this camera they are the Accusens v2 and the directions of the line passing can be setup in the admin webpage as you want A to B or B to A or both sens etc....
Hope this help in your research?