Coder Social home page Coder Social logo

Comments (8)

TIS-Stefan avatar TIS-Stefan commented on August 26, 2024 1

Hello

I have a complete sample that shows, what you want to do. Currently I am not in the office, therefore, I do not have access to my sample repository. I would like you to repeat your request on Monday or Tuesday, so I can provide better help.

Stefan

from ic-imaging-control-samples.

5CoJL avatar 5CoJL commented on August 26, 2024

Hello Stefan,

I reach out to you as suggested for the potential sample you mentioned ?

Best, Julien

from ic-imaging-control-samples.

5CoJL avatar 5CoJL commented on August 26, 2024

For the moment, I am using a workaround where I save my entire buffer as JPEGs, and display the images in a PictureBox. This is inefficient but definetely does the trick.

I think I don't understand how the DisplayImageBuffer function works. I thought it would simply display whichever buffer I'd send to the function, but apparently not.

from ic-imaging-control-samples.

TIS-Stefan avatar TIS-Stefan commented on August 26, 2024

Hello

Capture before and after event.zip

You may try this sample. It displays the frame buffer queue in a picture box and allows to save the images into an mp4 file using the NAudio library.

No JPEG conversion necessary

Stefan

from ic-imaging-control-samples.

5CoJL avatar 5CoJL commented on August 26, 2024

Thanks a lot for the sample ! I actually never used the Bitmap wrapper which makes things way easier to directly acquire an image.

I managed to find another way to get what i was looking for with Ic Imaging Control.

However I still fail to understand how the DisplayImageBuffer function is supposed to work. Based on the documentation alone, I could not make it work the way it is described.

from ic-imaging-control-samples.

TIS-Stefan avatar TIS-Stefan commented on August 26, 2024

Hello

please look at the sample
"Documents\IC Imaging Control 3.5\samples\C#\Display Buffer\Display Buffer"

It passes a callback function "ShowBuffer" to the sink:

icImagingControl1.Sink = new FrameQueueSink(ShowBuffer, MediaSubtypes.RGB32, 5);

The display is:

        private FrameQueuedResult ShowBuffer( IFrameQueueBuffer buffer )
        {
            try
            {
                icImagingControl1.DisplayImageBuffer( buffer );
            }
            catch( Exception ex )
            {
                System.Diagnostics.Trace.WriteLine( ex.Message );
            }
            return FrameQueuedResult.ReQueue;
        }

from ic-imaging-control-samples.

5CoJL avatar 5CoJL commented on August 26, 2024

Hi, sorry for the delayed answer.

Indeed, this example works. But by using a FrameQueueListener to instanciate the FrameQueueSink, as opposed to the FrameQueuedResult of this example, then I could not get any display by calling DisplayImageBuffer.

from ic-imaging-control-samples.

TIS-Stefan avatar TIS-Stefan commented on August 26, 2024

You may send a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example), so I can , what you are doing and may fix that issue.

from ic-imaging-control-samples.

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.