rbonghi / jetson_stats

📊 Simple package for monitoring and control your NVIDIA Jetson [Orin, Xavier, Nano, TX] series
https://rnext.it/jetson_stats
GNU Affero General Public License v3.0
2.17k stars 264 forks source link

OpenCV CUDA variables update #212

Closed HoneyPatouceul closed 2 years ago

HoneyPatouceul commented 2 years ago

Running L4T R32.6.1 on AGX Xavier. Seems recent opencv versions don't show "Use Cuda" in getBuildInformation() used by opencv_version --verbose. Sorry I'm unable to make a PR, but it may be possible to get opencv CUDA availabilty with:

opencv_version --verbose | grep  "CUDA" | cut -f2 -d ':' | tr -s ' ' | cut -d' ' -f2

and opencv CUDA supported version with :

opencv_version --verbose | grep  "CUDA" | cut -f2 -d ':' | tr -s ' ' | cut -d' ' -f4 | cut -d',' -f1
rbonghi commented 2 years ago

Hi @HoneyPatouceul

if I well understand I fixed using your hints:

https://github.com/rbonghi/jetson_stats/blob/develop/jtop/jetson_libraries#L35

and

https://github.com/rbonghi/jetson_stats/blob/develop/jtop/jetson_libraries#L49

Let me know if make sense for you as well

HoneyPatouceul commented 2 years ago

@rbonghi yes, that's the suggested change. Not tested, though. Feel free to close the issue when verified.

rbonghi commented 2 years ago

Thanks I will check for the new release