HiroIshikawa / object-recognizer-pi

Pi implementation of object recognizer module
0 stars 0 forks source link

Pi Img Processing Performance Improvement #7

Open HiroIshikawa opened 7 years ago

HiroIshikawa commented 7 years ago
  1. Make the performance measurable:
  1. Performance improvement potential solutions.
    • no use of threading (check_detection() should be substituted with sequential impl in the main loop)
    • no drawing boxes (comment out the box() in the main process)
    • implement dedicated video processing thread: according to this article
    • reducing resolution (currently 960x240 -> 960x120?)
    • reducing frame rate (currently 64 -> 32?)
    • cascade accuracy (->reduce the number of required images to take average out)
    • changing measuring algorithms to the one without taking averages (continuous algorithms)
    • C/C++ implementation for the detected objects processing unit
HiroIshikawa commented 7 years ago

Findings with initial analysis with "python -m cProfile my_code.py"

=> Optimisation for PiCamera module and Pi specific environment is required. At this point,

HiroIshikawa commented 7 years ago

Implemented and improved overall performance of object detection: