WatershedArts / Footfall

Application that allows you to monitor the traffic in and out of your building, using the RPi Camera and openFrameworks
Other
332 stars 131 forks source link

Problem in counting #52

Closed titusece closed 7 years ago

titusece commented 7 years ago

Dear Author and All,

I have seen false counting when I run on Rpi3 board. When I cross the line for one time , it incremented for two times, "in in" Need to change the config.xml file ?

<CONFIG>
    <CONTOURTHRESHOLD>10</CONTOURTHRESHOLD>
    <THRESHOLD>23</THRESHOLD>
    <BLUR>1</BLUR>
    <MINAREA>15</MINAREA>
    <MAXAREA>1000</MAXAREA>
    <PERSISTANCE>10</PERSISTANCE>
    <MAXDISTANCE>140</MAXDISTANCE>
    <MINBLOBWIDTH>10</MINBLOBWIDTH>
    <MIDBLOBWIDTH>200</MIDBLOBWIDTH>
    <MAXBLOBWIDTH>320</MAXBLOBWIDTH>
    <HISTORY>200</HISTORY>
    <MOGTHRESHOLD>10</MOGTHRESHOLD>
    <LINEYPOS>120</LINEYPOS>
    <LINEWIDTH>10</LINEWIDTH>
    <CAMERAWIDTH>320</CAMERAWIDTH>
    <CAMERAHEIGHT>240</CAMERAHEIGHT>
    <UPLOADURL>http:yourUpload.php</UPLOADURL>
    <SECRETKEY>somesecretkey</SECRETKEY>
    <LIGHTENAMOUNT>50</LIGHTENAMOUNT>
    <LOCATIONID>1</LOCATIONID>
    <BRIGHTNESS>70</BRIGHTNESS>
    <CONTRAST>0</CONTRAST>
    <MASKPOINTS>
        <POINT x="95" y="0"/>
        <POINT x="123" y="211"/>
        <POINT x="228" y="220"/>
        <POINT x="270" y="0"/>

        <!--POINT x="0" y="0"/>
        <POINT x="320" y="0"/>
        <POINT x="320" y="240"/>
        <POINT x="0" y="240"/-->

    </MASKPOINTS>
</CONFIG>

This is the config file I'm using, which parameter want to change to make it count correct.

Where I need to work to get the correct in and out ? Can you please help to address this issue ?

Also not able to build the people counter app in RPi3 board but Rpi2 jessie image....need to boot with different SD card which has Rpi2 image for rebuild the app. Is there any cross compile support for this application ?

Thanks.

Regards, Titus S.

titusece commented 7 years ago

I adjusted the MINAREA, MAXAREA and BLOB width then able to see some reliable counting. I hope this helps. We may need to modify these parameters based on where we keep the camera, need to modify based on the height of the camera kept there.