Go to Post From what I've been told, it's BASIC. Just BASIC. Basic BASIC. Basically BASIC. To be basic, it's BASIC. - Aignam [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-03-2014, 14:24
mhaeberli mhaeberli is offline
Registered User
FRC #3045
 
Join Date: Feb 2014
Location: Redwood City
Posts: 88
mhaeberli is on a distinguished road
python opencv VideoCapture ffmpeg libraries failure

I have python OpenCV vision code that works on some machines but not on others. In particular, on many WindowsXP machines, I don't get any image from the camera, even when the camera is working.
There are a lot of suggestions that the problem somehow is my ffmpeg dll library configurations.
Advice would be welcome.
Thanks,
Martin
  #2   Spotlight this post!  
Unread 09-03-2014, 20:28
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,058
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: python opencv VideoCapture ffmpeg libraries failure

Possibly true -- though, you're not using OS-specific functionality to connect to the camera, so I can't imagine *what* specifically would be different. Are you using the same binaries on all machines?

Also, make sure you have SP3 installed on XP.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
  #3   Spotlight this post!  
Unread 09-03-2014, 20:51
mhaeberli mhaeberli is offline
Registered User
FRC #3045
 
Join Date: Feb 2014
Location: Redwood City
Posts: 88
mhaeberli is on a distinguished road
Re: python opencv VideoCapture ffmpeg libraries failure

Thanks - I'll check re SP3. Other paths I think I have checked already. It would be nice to get an error dump from python or something that tells me _why_ the VideoCapture failed. On some systems, it fails for the webcam but not for the built-in cam...
  #4   Spotlight this post!  
Unread 19-03-2014, 13:06
mhaeberli mhaeberli is offline
Registered User
FRC #3045
 
Join Date: Feb 2014
Location: Redwood City
Posts: 88
mhaeberli is on a distinguished road
Re: python opencv VideoCapture ffmpeg libraries failure

Turns out that my Windows PATH (Path) variable was not set to correctly include OpenCV. It should include something like:
C:\opencv\build\x86\vc10\bin;
...
at the beginning.
(This is set in System / Advanced / Environment Variables)
My educated guess is that this can work also if another appropriate \bin directory is chosen.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:33.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi