Results 1 to 8 of 8

Thread: How could I get the image buffer of QCamera?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Posts
    127
    Thanks
    42
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default How could I get the image buffer of QCamera?

    Qt Code:
    1. QByteArray device = QCamera::availableDevices()[0];
    2. QCamera camera(device);
    3. QVideoWidget surface;
    4. surface.resize(320, 240);
    5. camera.setViewfinder(&surface);
    To copy to clipboard, switch view to plain text mode 

    How could I get the image capture by QCamera?
    I want to do some post-processing on the camera video
    QCameraImageCapture is too slow for real time

    Anything similar to following codes?

    Qt Code:
    1. QCamera camera(device);
    2. QImage img = camera.getQImage(); //take the image buffer of camera
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to stereoMatching for this useful post:

    louboutinoutlet (1st December 2013)

Similar Threads

  1. [SOLVED] Cannot create Indexed8 image from buffer
    By xenonforlife in forum Newbie
    Replies: 1
    Last Post: 23rd April 2012, 12:53
  2. Set zoomTo for QCamera?
    By tamnv110 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 29th August 2011, 13:54
  3. Replies: 0
    Last Post: 24th January 2011, 11:12
  4. Replies: 2
    Last Post: 29th September 2008, 00:08
  5. OpenGL show image from buffer memory leak[SOLVED]
    By ^NyAw^ in forum Qt Programming
    Replies: 0
    Last Post: 30th January 2008, 16:21

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.