Results 1 to 13 of 13

Thread: Connect camera in Qt?

  1. #1
    Join Date
    Nov 2009
    Posts
    59
    Thanks
    20
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Connect camera in Qt?

    I am programming on Qt 4.6 ,OS windows 7 but when I #include<QCamera> It dissplay Message"QCamera: No such file or directory"
    I need to connect Camera but i don't how to connect,please help me? thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Connect camera in Qt?

    True.
    There is no QCamera class in Qt.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Nov 2009
    Posts
    59
    Thanks
    20
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Connect camera in Qt?

    thanks
    but I downloaded some demos, some developers still used Qcamera class.
    What do say about that?
    But if I want to connect Camera, how to I have to do?
    Thanks agian.

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Connect camera in Qt?

    QCamera is meant to be used on mobile phones (unless I'm wrong)

  5. #5
    Join Date
    Nov 2009
    Posts
    59
    Thanks
    20
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Connect camera in Qt?

    thanks
    but if i want to connect on Computer, how to connect to CAmera?
    thanks

  6. #6
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Connect camera in Qt?

    You find a library that can do that.
    I guess my first look would be GStreamer or similar

  7. #7
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Connect camera in Qt?

    but if i want to connect on Computer, how to connect to CAmera?
    Which camera you talking ? if webcam, check out for OpenCV..
    there's also posts about using OpenCV in Qt.. search for it :-)

  8. #8
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Connect camera in Qt?

    Did you install Qt Mobility as it says here?
    http://doc.trolltech.com/qtmobility-...tallation.html
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  9. #9
    Join Date
    Nov 2009
    Posts
    59
    Thanks
    20
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Connect camera in Qt?

    thanks for your answer. but i Knew that Skype is wrritten with Qt, and Skype has Camera. What do you think about that?
    And i want to ask you how to install Debug packet for Qt on Fedora 11? I don't how to install that
    thanks

  10. #10
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Connect camera in Qt?

    Maybe they have written code to access camera on the platforms they are compatible with.

  11. #11
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Connect camera in Qt?

    but i Knew that Skype is wrritten with Qt, and Skype has Camera. What do you think about that?
    may be the ui and networking is done using Qt.. are you sure skype uses Qt for camera ? since skype has video calls long before Qt introduced camera in mobility , isnt it ?

  12. #12
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Connect camera in Qt?

    Read my last post again, and have a look at the link.
    It will tell you where QCamera comes from.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  13. #13
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Connect camera in Qt?

    Quote Originally Posted by nthung View Post
    but i Knew that Skype is wrritten with Qt, and Skype has Camera. What do you think about that?
    Skype supports video input through native API such as V4L on Linux.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. IP camera
    By vinod sharma in forum Qt Programming
    Replies: 1
    Last Post: 12th March 2010, 13:41
  2. capture video from DV camera
    By ekkondela in forum Newbie
    Replies: 1
    Last Post: 7th March 2010, 09:38
  3. Camera Detection
    By tiho_bg in forum Qt Programming
    Replies: 0
    Last Post: 18th November 2009, 20:09
  4. OpenGL move the camera
    By rullzer in forum Qt Programming
    Replies: 2
    Last Post: 26th February 2008, 19:39
  5. Firewire Camera driver
    By hgedek in forum General Discussion
    Replies: 0
    Last Post: 1st October 2007, 20:47

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.