nihui / opencv-mobile

The minimal opencv for Android, iOS, ARM Linux, Windows, Linux, MacOS, WebAssembly
Apache License 2.0
2.32k stars 325 forks source link

enhance highgui module with hardware acceleration #63

Open nihui opened 10 months ago

nihui commented 10 months ago

cv::imread / cv::imdecode

cv::imwrite / cv::imencode

cv::VideoCapture

nihui commented 5 months ago

1920x1080 jpg encoding on raspberry pi

soc sw(ms) sw-cpu-usage(%) hw(ms) hw-cpu-usage(%)
rpib+ BCM2835 766.26 97.2 41.36 41.8
rpi2 BCM2836 185.87 100 29.92 22.4
rpi3b+ BCM2837B0 65.02 100 22.69 23.8
rpi4b BCM2711 31.81 100 14.91 16.9
rpi5b BCM2712 15.83 100 n/a n/a