Coder Social home page Coder Social logo

Comments (5)

heikohimu avatar heikohimu commented on June 26, 2024

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.

from rc_genicam_api.

smitesh-sutaria avatar smitesh-sutaria commented on June 26, 2024

@heikohimu Thank you for the inputs.

When we change the settings for "ChunkModeActive" to 'False', get the below error :

$ ./gc_stream 22034422 ChunkModeActive=0
Package size: 1500

Exception: Invalid layout of buffer attached to chunk parser! : RuntimeException thrown (file 'ChunkAdapterGEV.cpp', line 97)

Does gc_stream work only when ChunkModeActive is 'True' ? If so, what should be the config value for "ChunkSelector"

from rc_genicam_api.

heikohimu avatar heikohimu commented on June 26, 2024

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.

from rc_genicam_api.

smitesh-sutaria avatar smitesh-sutaria commented on June 26, 2024

That worked. Thank you for the inputs.

Here is the diff for the reference :

diff --git a/tools/gc_stream.cc b/tools/gc_stream.cc
index e26191f..7a67560 100644
--- a/tools/gc_stream.cc
+++ b/tools/gc_stream.cc
@@ -398,8 +398,9 @@ int main(int argc, char *argv[])
         // get chunk adapter (this switches chunk mode on if possible and
         // returns a null pointer if this is not possible)

-        std::shared_ptr<GenApi::CChunkAdapter> chunkadapter=rcg::getChunkAdapter(nodemap, dev->getTLType());
+        //std::shared_ptr<GenApi::CChunkAdapter> chunkadapter=rcg::getChunkAdapter(nodemap, dev->getTLType());

+        std::shared_ptr<GenApi::CChunkAdapter> chunkadapter=0;
         // set values as given on the command line

         int n=1;

from rc_genicam_api.

heikohimu avatar heikohimu commented on June 26, 2024

The problem with Basler cameras is fixed in rc_genicam_api release 2.5.0.

from rc_genicam_api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.