我在 Ubuntu 18.04 上使用带有 Pylon 的 Basler 相机。只有在启动或重新启动后,我才会收到下面列出的警告。任何连接到 Basler 相机的程序都会发生这种情况。奇怪的是一切仍然有效(抓取帧等)。如果我将 Pylon 与 C++ 一起使用或使用新的 Python 包装器 PyPylon,都会出现相同的警告。
以下是警告,例如,如果我编译并运行 Pylon 附带的 Grab.cpp 示例,则输出如下:
$ ./Grab
Warning: Cannot change group of /dev/shm/sem.siso_fglib_init_lock to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_fglib_mssync_GenTLSession_lock to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso-hw-me6-init to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_0_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_1_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_2_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_3_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_4_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_5_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_6_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_7_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_8_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_9_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_10_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_11_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_12_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_13_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_14_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_15_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_16_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_17_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_18_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_19_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_20_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_21_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_22_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_23_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_24_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_25_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_26_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_27_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_28_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_29_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_30_Bar_0_Page_4 to 'video'.
Warning: Cannot change group of /dev/shm/sem.siso_mE_31_Bar_0_Page_4 to 'video'.
Using device a2A1920-51gcBAS
SizeX: 1912
SizeY: 1080
Gray value of first pixel: 108
SizeX: 1912
SizeY: 1080
Gray value of first pixel: 62
SizeX: 1912
SizeY: 1080
Gray value of first pixel: 104
SizeX: 1912
SizeY: 1080
Gray value of first pixel: 73
SizeX: 1912
SizeY: 1080
Gray value of first pixel: 90
.
.
.
说实话,我对 Ubuntu/Linux 不够熟悉,无法完全理解这些警告的含义。显然,这与组权限、共享内存和 /dev 中的视频设备有关,但我不确定还有什么比这更具体的事情。
我应该明确说明的是,如果我重新启动并运行例如上面的 ./Grab,则会出现如图所示的警告。但是,如果我停止程序并重新启动多次,警告就不会出现。只有在再次重新启动后,它们才会再次出现。
有人能解释一下这是怎么回事吗,有办法解决吗,而且由于相机仍然工作正常,我是否应该担心这个警告?