Results 1 to 4 of 4

Thread: YUY2 Frame Acquisition In-Memory

  1. #1
    Join Date
    Aug 2017
    Posts
    4

    YUY2 Frame Acquisition In-Memory

    Stefan,

    I'm having a hard time accessing video frames from the DFK 33UX265 in YUY2 format using the latest version of Imaging Control C++ SDK. RGB32 works great, but because YUY2 isn't listed in tColorformatEnum, I have to create a FrameHandlerSink with MEDIASUBTYPE_YUY2. However, an exception is thrown when starting the grabber.

    My current code:

    InitLibrary();
    Grabber grabber;
    smart_ptr<FrameHandlerSink> pSink;

    grabber.openDev(mySerialNumber);
    grabber.setVideoFormat("YUY2 (2048x1536)");
    grabber.setFPS(60);
    pSink = FrameHandlerSink::create(DShowLib::MEDIASUBTYPE_YU Y2, 2);
    pSink->setSnapMode(true);
    grabber.setSinkType(pSink);
    grabber.startLive(false);

    I get an exception saying that the sink could not be connected, as there is no combination of intermediate filters that would make the connection. This seems strange, as it appears the data coming from the camera is in the YUY2 format.

    Do you have any suggestions on how to get this running properly?

  2. #2
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,854

    Re: YUY2 Frame Acquisition In-Memory

    Hi

    As the error message says, there is no filter, that is able to handle YUY2 in memory. Unfortunately I do not have suggestions how to make this right now, because this is no implemented in IC Imaging Control.

    Do you really need an YUY2 format in memory?
    Best regards
    Stefan
    IC Imaging Control Support

  3. #3
    Join Date
    Aug 2017
    Posts
    4

    Re: YUY2 Frame Acquisition In-Memory

    Quote Originally Posted by Stefan Geissler View Post
    Hi

    As the error message says, there is no filter, that is able to handle YUY2 in memory. Unfortunately I do not have suggestions how to make this right now, because this is no implemented in IC Imaging Control.

    Do you really need an YUY2 format in memory?
    Hey Stefan,

    Yes, I need YUY2 in memory.

    The solution was to add:
    grabber.setOverlapBitmapPathPosition( ePP_NONE );

  4. #4
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,854

    Re: YUY2 Frame Acquisition In-Memory

    Outch... I could have guessed that, since this was the same with Y16 years ago. Seems, I am getting old these days. Sorry for that.
    Best regards
    Stefan
    IC Imaging Control Support

Similar Threads

  1. VisionPro acquisition ROI with DMK 23GM021
    By Maximus in forum IC Imaging Control .NET
    Replies: 1
    Last Post: February 28, 2014, 17:11:51
  2. Recording from DFK 41BF02 AVI video with codec YUY2@7.5fps
    By Cesar in forum IC Imaging Control C++ Class Library
    Replies: 5
    Last Post: June 11, 2010, 14:08:10
  3. TIS USB Cameras and YUY2
    By jdbethun in forum IC Imaging Control C++ Class Library
    Replies: 7
    Last Post: April 28, 2008, 13:11:12
  4. error when capturing YUY2
    By Chris Troch in forum IC Imaging Control .NET
    Replies: 3
    Last Post: September 5, 2006, 11:50:58
  5. YUY2 motion detection visualization
    By joejohnson in forum MontiVision Development Kit
    Replies: 1
    Last Post: May 17, 2004, 16:28:45

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •