-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to stream images from a Basler camera #21
Comments
The output of gc_stream shows that it successfully received buffers. gc_stream should either store images and show this on standard output, or produce an error message, e.g. if the image format is unknown. The only reason for not seeing either of it is that there is no image data contained in the buffer. I think that you should check if your camera is properly configured. |
@heikohimu Thank you for the inputs. When we change the settings for "ChunkModeActive" to 'False', get the below error :
Does gc_stream work only when ChunkModeActive is 'True' ? If so, what should be the config value for "ChunkSelector" |
Is there a reason for disabling chunks if they are available? gc_stream checks if chunks a available and enables them if possible. This happens in this line https://github.com/roboception/rc_genicam_api/blob/master/tools/gc_stream.cc#L401 The user parameters are applied afterwards, so gc_stream expects chunks, but buffers do not contain any. I should change the code to check if the user explicitly disables chunks. For the moment, you could just initialize chunkadapter with 0 in the code. |
That worked. Thank you for the inputs. Here is the diff for the reference :
|
The problem with Basler cameras is fixed in rc_genicam_api release 2.5.0. |
Hello,
Using gc_info able to query the camera details.
But when gc_stream is used, images are not getting saved.
Output of gc_stream
Further debugging this shows, getBufferBool() is returning false in file rc_genicam_api/buffer.cc
So added the below code for debug:
diff --git a/rc_genicam_api/buffer.cc b/rc_genicam_api/buffer.cc
index 7a2afea..eacb634 100644
--- a/rc_genicam_api/buffer.cc
+++ b/rc_genicam_api/buffer.cc
@@ -71,7 +71,8 @@ inline bool getBufferBool(const std::shared_ptr &gentl,
if (stream != 0 && buffer != 0)
{
}
return ret != 0;
Output with snippet added for debug
**Please note that, -1014 is GC_ERR_NOT_AVAILABLE.
Output of gc_info
The text was updated successfully, but these errors were encountered: