Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with initiating point grey Camera #15

Open
eghbalhosseini opened this issue Oct 20, 2017 · 7 comments
Open

Issue with initiating point grey Camera #15

eghbalhosseini opened this issue Oct 20, 2017 · 7 comments

Comments

@eghbalhosseini
Copy link

Hi,

I have installed and tested the xyTracker and it doesn't give me any error. however when I am running xy.Tracker({0,'myfile.avi'}) I get the following error :
Error using xyVideoHandler_
Only one camera instance supported

Error in xy.core.VideoHandlerMex/a_startReader (line 350)
self.id = xyVideoHandler_('camera',camidx,self.videoFile{2},upper(self.codec),knnMethod);

Error in xy.core.VideoReader/startReader (line 198)
self.a_startReader();

Error in xy.core.VideoReader (line 242)
self.startReader();

Error in xy.core.VideoHandlerMex (line 78)
self@xy.core.VideoReader(vidname);

@charlielam0615
Copy link

charlielam0615 commented Oct 21, 2017 via email

@eghbalhosseini
Copy link
Author

I am using a point gery camera: Grasshopper3 2.3 MP Color USB3. I have downloaded the drivers as well as the hardware support for the camera in matlab.

@maljoras
Copy link
Owner

maljoras commented Nov 2, 2017

Hi:
Did you clear any existing variables before tracking a new file ?

clear all

It might be that there are not stopped jobs in the background. Also the system should support other cameras as well, not just ptGrey.

@eghbalhosseini
Copy link
Author

eghbalhosseini commented Nov 2, 2017 via email

@maljoras
Copy link
Owner

maljoras commented Nov 2, 2017

xyTracker supports all OpenCV compatible cameras. But it should in particular support ptGrey via the FlyCapture SDK. The error message you got should only occur if there is an VideoHandler object in the background. Try "clear all" or restart matlab to delete all existing VideoHandlers.

What Matlab Version and FlyCapture SDK Version are you using?

@eghbalhosseini
Copy link
Author

Matlab: R2017b
Flycapture: 2.11.3.164

I tried restarting and this is the new error:

`Error using xyVideoHandler_
Could not start the VideoHandler

Error in xy.core.VideoHandlerMex/a_startReader (line 356)
xyVideoHandler_(self.id,'start');

Error in xy.core.VideoReader/startReader (line 198)
self.a_startReader();

Error in xy.core.VideoReader (line 242)
self.startReader();

Error in xy.core.VideoHandlerMex (line 78)
self@xy.core.VideoReader(vidname);

Error in xy.Tracker/newVideoHandler (line 759)
handler =
xy.core.VideoHandlerMex(vidname,timerange,self.useKNN,opts);

Error in xy.Tracker/setupSystemObjects (line 850)
[self.videoHandler,self.timerange] =
self.newVideoHandler(vid,self.timerange);

Error in xy.Tracker (line 3180)
self.setupSystemObjects(vid); % will call setOpts`

@maljoras
Copy link
Owner

maljoras commented Nov 2, 2017

I guess, you did compile the mex files (make ...)?
But you said the runTest worked (on an avi file)?
Are you using windows?
does
xyTracker(0)
gives some results ?
I have not tried it on such a new version of matlab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants