在Linux上,可以使用以下命令来查看OpenCV的版本: ```shell pkg-config --modversion opencv ``` 或者 ```shell opencv_version ``` 这些命令将显示安装的OpenCV库的版本号。