WatershedArts / Footfall

Application that allows you to monitor the traffic in and out of your building, using the RPi Camera and openFrameworks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rotate Tracking Area?

CrossPT opened this issue · comments

Hi.
First of all thanks for this amazing code!
I'm currently testing the footfall of this area
Area

I want to count the footfall on people (rotate the tracking bar) without changing the position of the RPi, like this:
Test

Is it possible?

Hi @CrossPT,

Yeah totally possible though you will need to alter the source code. I haven't had time to implement this properly. But for now. Compile these files. Essentially in your config.json. The code will look for a 0 in either of the startposition parameters. If it finds 0 in the y it will flip the orientation of tracking. Just tried it on my machine seems to be ok may want to refine it abit.

Archive.zip

Hope it helps.

Best

Thumbs up for the quick reply! 👍
Will test and reply with the changes

Works like a a charm!

Maybe make a small change in code to flip the orientation of tracking. The startposition parameters may be arranged to one parameter only.

Something like this in config.json:
startpos: value,
landscape: true/false