problem with webcam in angstrom

Hey guys,

I am having trouble getting my webcam to work on angstrom. I am using opencv (2.3) to test it, I tried 2 set ups: my Logitech C120 webcam (says it’s UVC) and my ip camera. Both do not work in opencv.

When I run my webcam it does not detect it sometimes it gives this error:

(gst-plugin-scanner:533): GLib-GObject-WARNING **: cannot register existing type

`GstVorbisDec’

(gst-plugin-scanner:533): GStreamer-CRITICAL **: gst_element_register: assertion

`g_type_is_a (type, GST_TYPE_ELEMENT)’ failed

I was thinking it was a driver problem so then thought I would try from my ip camera. But it gives these errors every time (with ip camera on or off):

(ipimage:309): GLib-GObject-WARNING **: invalid unclassed pointer in cast to `Gs

tElement’

(ipimage:309): GStreamer-CRITICAL **: gst_element_set_state: assertion `GST_IS_E

LEMENT (element)’ failed

(ipimage:309): GLib-GObject-WARNING **: invalid unclassed pointer in cast to `Gs

tObject’

(ipimage:309): GStreamer-CRITICAL **: gst_object_unref: assertion `((GObject *)

object)->ref_count > 0’ failed

Any suggestions on what the problem is? Or what to test? I want to test that the drivers are correctly installed, but I am not sure how exactly.

Any help is appreciated, thanks in advance.

beagleboard or beaglebone? Opencv was also updated to 2.4 in angstrom and switched to libav+libv4l for video access instead of gstreamer, so give that a try.

Thank you for your quick reply. Ill do that :slight_smile:

The latest Angstrom automatically has opencv 2.3.1 so I used the instructions from this link to update to 2.4: https://groups.google.com/forum/?fromgroups#!topic/beagleboard/Smysj-UjYfE

however, it hasn’t replaced all the files from 2.3 and now they are conflicting when i compile (see bottom for output). Is there a quick way to delete these? or would that not be a good idea? maybe I am doing this incorrectly. Thanks.

/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.5.4/…/…/…/…/arm-angstrom-linux-gnu
eabi/bin/ld: warning: libopencv_imgproc.so.2.3, needed by /usr/lib/libopencv_cal
ib3d.so, may conflict with libopencv_imgproc.so.2.4
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.5.4/…/…/…/…/arm-angstrom-linux-gnu
eabi/bin/ld: warning: libopencv_core.so.2.4, needed by /usr/lib/libopencv_imgpro
c.so, may conflict with libopencv_core.so.2.3
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.5.4/…/…/…/…/arm-angstrom-linux-gnu
eabi/bin/ld: warning: libopencv_features2d.so.2.4, needed by /usr/lib/libopencv_
nonfree.so, may conflict with libopencv_features2d.so.2.3
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.5.4/…/…/…/…/arm-angstrom-linux-gnu
eabi/bin/ld: warning: libopencv_flann.so.2.4, needed by /usr/lib/libopencv_stitc
hing.so, may conflict with libopencv_flann.so.2.3
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.5.4/…/…/…/…/arm-angstrom-linux-gnu
eabi/bin/ld: warning: libopencv_calib3d.so.2.4, needed by /usr/lib/libopencv_sti
tching.so, may conflict with libopencv_calib3d.so.2.3
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.5.4/…/…/…/…/arm-angstrom-linux-gnu
eabi/bin/ld: warning: libopencv_gpu.so.2.4, needed by /usr/lib/libopencv_stitchi
ng.so, may conflict with libopencv_gpu.so.2.3
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.5.4/…/…/…/…/arm-angstrom-linux-gnu
eabi/bin/ld: warning: libopencv_highgui.so.2.4, needed by /usr/lib/libopencv_vid
eostab.so, may conflict with libopencv_highgui.so.2.3
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.5.4/…/…/…/…/arm-angstrom-linux-gnu
eabi/bin/ld: warning: libopencv_video.so.2.4, needed by /usr/lib/libopencv_video
stab.so, may conflict with libopencv_video.so.2.3

I did try and delete the duplicate files (the 2.3 versions) but then it asks for them when I compile.

where you able to troubleshoot this? I am facing the same issue.

My aim is to execute a simple c or c++ source file including opencv header files and functions on beaglebone

I dont know how to achieve this?

2012/9/7 Jimit <jimit2688@gmail.com>