LEADS icon indicating copy to clipboard operation
LEADS copied to clipboard

Test: OpenCV Performance on Raspberry Pi

Open ATATC opened this issue 1 year ago • 5 comments

Huge progress has been made in regard to video support in the past few pull requests. However, concerns about the performance of the Raspberry Pi do exist as the testing platform, Apply M3 Pro, is only able to provide a video feed at almost 30fps. Therefore, it is likely that OpenCV runs as slowly as GStreamer does on the Raspberry Pi. This poor performance wouldn't affect the dashboard anyway though.

Ideally, this is what we have accomplished so far: image image

The monitor is just an additional widget. You can still switch back to other widgets. It now supports up to 4 cameras, of which 1 is enabled in this case, which are front view, left view, right view, and rear view respectively.

ATATC avatar Jul 02 '24 17:07 ATATC

The performance of the raspberry barely supports OpenCV. The bottleneck seems to be encoding and decoding.

ATATC avatar Aug 07 '24 09:08 ATATC

Trying on a virtual machine to see the minimum requirement.

ATATC avatar Aug 08 '24 12:08 ATATC

The bottleneck is Pillow.

ATATC avatar Aug 08 '24 15:08 ATATC

The program consumes 9% of an AMD Ryzen 9 5900X 12-Core Processor.

ATATC avatar Aug 08 '24 15:08 ATATC

If use OpenCV instead, it consumes 10%.

ATATC avatar Aug 08 '24 18:08 ATATC

@qmascarenhas Is it possible to schedule this test for Monday during the second period or after school?

ATATC avatar Sep 06 '24 22:09 ATATC

yes - we could do that.

qmascarenhas avatar Sep 07 '24 03:09 qmascarenhas

@qmascarenhas That period just got occupied. What about Tuesday's last period?

ATATC avatar Sep 08 '24 20:09 ATATC

Raspberry Pi fails to run devices_visual.py.

ATATC avatar Sep 10 '24 19:09 ATATC