Opencv 2.1 , python 2.6.5 , ubuntu 10.04 lucid lynx -camera not initializing (Bug #471)


Added by Shyam Barua over 14 years ago. Updated almost 10 years ago.


Status:Cancelled Start date:
Priority:Low Due date:
Assignee:- % Done:

0%

Category:highgui-camera
Target version:-
Affected version:2.4.0 - 2.4.8 Operating System:Any
Difficulty: HW Platform:Any
Pull request:

Description

Hi

I am trying to calibrate my webcamera using a chessboard but i am unable to even initialize the webcam. the code iam using is given below

import cv
import numpy

cv.NamedWindow("playback",cv.CV_WINDOW_AUTOSIZE) # create a window a
capture=cv.CreateCameraCapture(0)        #initializing camera device

while(1):
    image1=cv.QueryFrame(capture)
        cv.ShowImage("playback",image1)
        cv.WaitKey(100) 

(moved from #ros2901)


Associated revisions

Revision 059ea5be
Added by Andrey Kamaev about 12 years ago

Merge pull request #471 from apavlenko:jar_install

History

Updated by Brian Gerkey over 14 years ago

James, I'm not sure who should own this, but I didn't want it to be an orphan.

  • Status deleted (Open)

Updated by [email protected] - over 14 years ago

I'm seeing the same thing and have tried this with a number of different webcams.

Updated by [email protected] - over 14 years ago

I confirm the bug.

I'm using the same system and opencv from the designated ppa.

The code runs without warnings or errors but all that I get is a grey rectangle - no input from the camera (both v4l and v4l2 cameras).

The C examples that need camera input fail with "cannot initialize capturing" or something like that...

Updated by [email protected] - over 14 years ago

I get the same issue with ubuntu lucid (10.04) and opencv from synaptic (2.1)
This happen even with C codes exemples.

In fact, my webcam work fine testing it with luvcview but always return NULL when using cvCaptureFromCAM(0) opencv function. (parameter : -1, 0, 1, ...)

(Code work fine on Windows OS)

Updated by anonymous - over 14 years ago

I'm running Python 2.6.5, OpenCV 2.0, and Ubuntu 10.04-32 bit

The only way I've been able to read in from a webcam is by installing pygame and using highgui.cvQueryFrame(...) and highgui.cvCreateCameraCapture(...)

I'd be glad to test a fix and any updated example code when available for Ubuntu.

Updated by James Bowman over 14 years ago

Seems to be not a Python specific problem.

Updated by James Bowman over 14 years ago

Moving to highgui

Updated by [email protected] - over 14 years ago

I have the same error with Ubuntu 10.04. My webcam run with other application who use Gstream but don't run with OpenCV (return NULL value)

Updated by [email protected] - over 14 years ago

Also confirming this issue on Ubuntu 10.04. It seems the way camera input is handled in this OS has changed from previous versions. Fails to initialize the camera in all of the C samples, and any code i have written myself which attempts to access the video device using openCV.

Updated by anonymous - over 14 years ago

I have similar problem on Ubuntu 9.10 (32 bit) since yesterday update of python-opencv (and after installing libdc1394-22 automatically), luvcview works fine but I got None when using cvCreateCameraCapture(0) (I also get error: libdc1394 error: Failed to initialize libdc1394)

Updated by Yoong Kang Lim over 14 years ago

I also confirm this problem on Ubuntu 10.04. Would also like to add that using OpenCV 2.0.0 the camera does initialize, however it always stops grabbing frames (i.e., grabs a NULL frame), which stops the program. Webcam works on cheese and on other programs.

Updated by Alexander Shishkov almost 13 years ago

  • Priority changed from High to Normal
  • Target version deleted ()

Updated by Alexander Shishkov almost 13 years ago

  • Status set to Open

Updated by Alexander Shishkov almost 13 years ago

  • Priority changed from Normal to Low

Updated by Alexander Shishkov almost 13 years ago

  • Assignee deleted (James Bowman)

Updated by Alexander Shishkov almost 13 years ago

  • Target version deleted ()

Updated by Andrey Kamaev over 12 years ago

  • Category changed from highgui-images to highgui-camera

Updated by Vadim Pisarevsky almost 10 years ago

let's cancel very old bug in a hope that they are not relevant anymore; please, reopen if they are still relevant

  • Status changed from Open to Cancelled
  • HW Platform set to Any
  • Operating System set to Any
  • Affected version set to 2.4.0 - 2.4.8

Also available in: Atom PDF