Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. OpenCV VideoCapture isOpened() returns false on Android
Qt 6.12 LTS is out! See what's new in the release blog

OpenCV VideoCapture isOpened() returns false on Android

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 5.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi everyone
    Please help

    I whant to record video using openCV on Android device, but always VideoCapture isOpened returns false

    @
    VideoCapture cap(0);
    //VideoCapture cap(CV_CAP_ANDROID_BACK);

    if(!cap.isOpened())
    {
    QMessageBox::information(this, tr("error"), "error on open");
    }
    else {
    QMessageBox::information(this, tr("success"), "is opened");
    }
    @

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      This is an OpenCV question, you should ask it directly on the OpenCV forum/mailing list

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        ok. thank you!

        1 Reply Last reply
        0
        • mrdebugM Offline
          mrdebugM Offline
          mrdebug
          wrote on last edited by
          #4

          Try this:
          @ CvCapture *Capture= NULL;
          Capture= cvCreateCameraCapture(Index);
          if (!Capture) qDebug() << "cvCreateCameraCapture Error!";
          else {
          @

          What do you doing exactly?

          Need programmers to hire?
          www.labcsp.com
          www.denisgottardello.it
          GMT+1
          Skype: mrdebug

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Thank you
            I whant to capture video and image and send to email

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt
            • Unsolved