Coder Social home page Coder Social logo

qtcamera-1's Introduction

QtCamera

A simple test framework for some Qt experimenting.

The QtCamera.sln is a VisualStudio 2010 solution.

The QtCamera.pro is for use with QtCreator, though I really only tested with QtCreator on Linux.

I used Qt 4.8 built from source on the Windows 7 32-bit system.

I used Qt 4.7.1 from the standard apt-get sources on an Ubuntu 11.04 64-bit system.

OpenCV 2.3.1 was built from source on both systems.

You can use the debugger to step through both OpenCV and Qt code which is convenient. I'll write up some instructions for setting up the dev machines since there were a lot of steps.

I tested with two Logitech USB web cameras, a C510 and C910. Both cameras are always running at 30 fps.

CPU usage goes up to around 22% on Win7 displaying the video fullscreen on a 1680x1050 display which seems excessive. A reduced display drops the load considerably, under 2% for a 320x240 display.

I got similar results on Linux. Displaying fullscreen at 1920x1280 the load is around 20% on a 6-core machine. Dropping to 320x240 brings the load under 2%.

I don't really see a way to improve the OpenCV UVC capture code on Windows.

The V4L2 capture on Linux might have a chance for some optimization. I'm not sure whether it's pulling MJPG or YUV images from the camera. I think I might try using the V4L2 interface directly for capture on Linux instead of OpenCV.

The [gldraw] branch was a quick attempt at faster image drawing using OpenGL, but it didn't result in any improvement. I only tested this on Windows. It needs to be looked at further. I've never tried anything with OpenGL with Qt or OpenGL alone. I just copied some code I found on the interwebs. I may be doing it completely wrong ;-)

qtcamera-1's People

Contributors

scottellis avatar

Watchers

James Cloos avatar  avatar

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.