Confused about supported pixel format using SpinView GUI and ImageFormatControl.cpp
AnsweredHere's the context...
I'm working through the provided examples in the Spinnaker SDK and I'm trying to figure out how to change the pixel format in ImageFormatControl.cpp.
In the 'int ConfigureCustomImageSettings(INodeMap &nodeMap)' function is where the Mono8 pixel format is set in the ImageFormatControl.cpp file.
So I figured since the SpinView GUI lets me change the pixel format to Mono8, Mono16, Mono10Packed, Mono12Packed, Mono10p, and Mono12p, I assumed I could pass those as parameters in 'CEnumEntryPtr ptrPixelFormatMono8 = ptrPixelFormat->GetEntryByName("Mono16");'
At this point with the SpinView GUI, I only used the Mono8 pixel format in continuous mode and that was working fine.
[FATAL SpinnakerConsole] 2024-03-20 14:36:49,812 [140391598258112] Spin Trace: Public/CameraBase.cpp, line 125, BeginAcquisition: Message = Could not start acquisition. Please try reconnecting the device. Error Code = SPINNAKER_ERR_IO (-1010)
Error: Spinnaker: Could not start the acquisition. Please try reconnecting the device. [-1010]
Camera 0 example complete...
[FATAL SpinnakerConsole] 2024-03-20 15:13:24,388 [140183999587904] Spin Trace: Public/CameraBase.cpp, line 125, BeginAcquisition: Message = Could not start acquisition. Please try reconnecting the device. Error Code = SPINNAKER_ERR_IO (-1010)
[FATAL SpinnakerConsole] 2024-03-20 14:36:49,812 [140391598258112] Spin Trace: Public/CameraBase.cpp, line 125, BeginAcquisition: Message = Could not start acquisition. Please try reconnecting the device. Error Code = SPINNAKER_ERR_IO (-1010)
Error: Spinnaker: Could not start the acquisition. Please try reconnecting the device. [-1010]
Camera 0 example complete...
-
Official comment
Update : I was able to cycle through the pixel formats with the SpinView GUI just fine with my laptop that's running Ubuntu 22.04 on it just fine
Kinda bummed that I can't use WSL to write the C++ code I originally intended, but it is what it is
-
Hello Christopher,
What operating system and what USB3 controller do you use?
Best regards,
Manuel
0 -
I'm running Ubuntu 22.04 in WSL on my Windows 11 machine
I also have the BFS-U3-32S4M-C USB 3.1 Blackfly® S, Monochrome Camera as the USB3 controller0 -
Does it work fine when you install Spinnaker on Windows 11 directly?
Could you please try to increase the USBFS buffer size on Ubuntu? https://www.flir.com/support-center/iis/machine-vision/application-note/understanding-usbfs-on-linux/
0 -
Using the SpinView GUI in Windows 11 I'm able to switch between all the pixel formats just fine
But when I increased the USBFS buffer from it's original 1000 MB --> 5000 MB --> 100000 MB I'm still seeing the same error.
[FATAL SpinnakerConsole] 2024-03-21 11:25:09,220 [140521327846144] Spin Trace: Public/CameraBase.cpp, line 125, BeginAcquisition: Message = Could not start acquisition. Please try reconnecting the device. Error Code = SPINNAKER_ERR_IO (-1010)
0 -
I'm wondering if it is some limitation of WSL then. Can you start the camera when you configure a small image size and small number of buffers (StreamBufferCountManual) in SpinView? You have to set StreamBufferCountMode to manual be able to configure the number of buffers.
1 -
I did some short testing with a laptop that has Ubuntu installed on it and a Raspberry PI
Both devices were able to 'cycle' through the supported pixel formats when using the SpinView GUI and I'm heavily assuming that changing the pixel formats in any of the provided C++ examples would work
I can confirm those findings with you later this week
0
Please sign in to leave a comment.
Comments
7 comments