amzn / distance-assistant

Pedestrian monitor that provides visual feedback to help ensure proper social distancing guidelines are being observed
MIT License
135 stars 34 forks source link

fix darknet segfault #7

Open lorneeaston opened 4 years ago

lorneeaston commented 4 years ago

Issue #4

Description of changes: changed DETECTION class in darknet_custom.py to match the the new structure as per https://github.com/AlexeyAB/darknet/blob/master/darknet.py#L56-L68. Old DETECTION class was causing segfaults on PersonDetector.detect(), leading to the failure of distance_assistant_node.py.

To reproduce, make sure you clone AlexeyAB/darknet again as per instructions in the README and rebuild libdarknet.so; rebuilding the container from scratch (--no-cache) should have the same effect.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.