Hello,
with the purpose of being able to track elements in sight of a cam by virtue of their color, I would like to use and explore the possibilities of pdp_ctrack. While this does work with prerecorded video (avi) i am unable to try it with live video, cause pdp_v4l gives and error. See below what happens when trying to send [open /dev/video0< to [pdp_v4l].
pdp_v4l: opening /dev/video0 pdp_v4l: cap: name UVC Camera (046d:0802) type 1 channels 1 maxw 640 maxh 480 minw 48 minh 32 pdp_v4l: picture: brightness 32896 depth 0 palette 0 pdp_v4l: channel 0 name Camera 1 type 2 flags 0 pdp_v4l: switched to channel 0 pdp_v4l: cant change to norm 0 error: pdp_v4l: no method for 'type'
Does anyone know if this is a matter of buying a better cam? Now using a Logitech very simple usb webcam. Or do i need to load/install a certain driver, or send other messages to [pdp_v4l]? My purpose is to get coordinates (and possibly size) of colored elements. I want to be able to track different elements simultaneously, and be able to calculate distance. Maybe a combination with size would also allow me to calculate distance in 3 dimension. Then to use the data for conditional sounds (tonal and/or atonal). Any help appreciated!
Bye, Menno.
-- www.indelucht.nl
www.whatkeepsmegoing.com
On Sat, 20 Nov 2010, Menno van der Woude wrote:
Does anyone know if this is a matter of buying a better cam? Now using a Logitech very simple usb webcam. Or do i need to load/install a certain driver, or send other messages to [pdp_v4l]?
You need either [pdp_v4l2] from pidip,
or use LD_PRELOAD to use /usr/lib/libv4l1.so as an adaptor between the v4l1 driver system used by [pdp_v4l] and the v4l2-only interface of the uvc.ko driver for your UVC camera.
Logitech Quickcam Pro 5000 and later use the UVC protocol with uvc.ko.
Logitech Quickcam Pro 4000 and earlier use the Philips protocol with pwc.ko. (well, there were at least two other generations of Logitech before they switched to Philips.)
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
try pdp_v4l2 ________________________________________ From: pd-list-bounces@iem.at [pd-list-bounces@iem.at] On Behalf Of Menno van der Woude [mennowo@gmail.com] Sent: Saturday, November 20, 2010 12:33 PM To: pd-list Subject: [PD] unable to open pdp_v4l webcam video stream
Hello,
with the purpose of being able to track elements in sight of a cam by virtue of their color, I would like to use and explore the possibilities of pdp_ctrack. While this does work with prerecorded video (avi) i am unable to try it with live video, cause pdp_v4l gives and error. See below what happens when trying to send [open /dev/video0< to [pdp_v4l].
pdp_v4l: opening /dev/video0 pdp_v4l: cap: name UVC Camera (046d:0802) type 1 channels 1 maxw 640 maxh 480 minw 48 minh 32 pdp_v4l: picture: brightness 32896 depth 0 palette 0 pdp_v4l: channel 0 name Camera 1 type 2 flags 0 pdp_v4l: switched to channel 0 pdp_v4l: cant change to norm 0 error: pdp_v4l: no method for 'type'
Does anyone know if this is a matter of buying a better cam? Now using a Logitech very simple usb webcam. Or do i need to load/install a certain driver, or send other messages to [pdp_v4l]? My purpose is to get coordinates (and possibly size) of colored elements. I want to be able to track different elements simultaneously, and be able to calculate distance. Maybe a combination with size would also allow me to calculate distance in 3 dimension. Then to use the data for conditional sounds (tonal and/or atonal). Any help appreciated!
Bye, Menno.
-- www.indelucht.nl
www.whatkeepsmegoing.com
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thanks that helped and made it work!
The latency with this webcam is amazingly long, as in a second or more. Speeding up the [metro] is of no influence.
Any ideas for the best (web)cam for the goal I have? Or is the delay due to settings inside pd? Either ieee1394 or usb would be fine. It would be nice to bring down response to changes in the sight of the cam to about 50 ms.
Bye, Menno.
On Sat, Nov 20, 2010 at 7:58 PM, Pagano, Patrick pat@digitalworlds.ufl.edu wrote:
try pdp_v4l2 ________________________________________ From: pd-list-bounces@iem.at [pd-list-bounces@iem.at] On Behalf Of Menno van der Woude [mennowo@gmail.com] Sent: Saturday, November 20, 2010 12:33 PM To: pd-list Subject: [PD] unable to open pdp_v4l webcam video stream
Hello,
with the purpose of being able to track elements in sight of a cam by virtue of their color, I would like to use and explore the possibilities of pdp_ctrack. While this does work with prerecorded video (avi) i am unable to try it with live video, cause pdp_v4l gives and error. See below what happens when trying to send [open /dev/video0< to [pdp_v4l].
pdp_v4l: opening /dev/video0 pdp_v4l: cap: name UVC Camera (046d:0802) type 1 channels 1 maxw 640 maxh 480 minw 48 minh 32 pdp_v4l: picture: brightness 32896 depth 0 palette 0 pdp_v4l: channel 0 name Camera 1 type 2 flags 0 pdp_v4l: switched to channel 0 pdp_v4l: cant change to norm 0 error: pdp_v4l: no method for 'type'
Does anyone know if this is a matter of buying a better cam? Now using a Logitech very simple usb webcam. Or do i need to load/install a certain driver, or send other messages to [pdp_v4l]? My purpose is to get coordinates (and possibly size) of colored elements. I want to be able to track different elements simultaneously, and be able to calculate distance. Maybe a combination with size would also allow me to calculate distance in 3 dimension. Then to use the data for conditional sounds (tonal and/or atonal). Any help appreciated!
Bye, Menno.
-- www.indelucht.nl
www.whatkeepsmegoing.com
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
That's a huge amount of latency. Do you see that sort of latency if you use the webcam in guvcview?
For a cheap webcam with low latency I've had great luck with the Sony ps3eye. It works out of the box on Linux (ubuntu at least) but if you compile your own driver for it you can get even better performance: http://bear24rw.blogspot.com/2009/11/ps3-eye-driver-patch.html
On 11/20/2010 02:05 PM, Menno van der Woude wrote:
The latency with this webcam is amazingly long, as in a second or more.