puku0x / cvdrone

CV Drone (= OpenCV + AR.Drone)
https://github.com/puku0x/cvdrone/wiki/How-to-build
Other
203 stars 93 forks source link

Exception when recording is activated #6

Closed paulbuxton closed 11 years ago

paulbuxton commented 11 years ago

When I try to cause the drone to record onto a usb stick using the my application throws an exception in opencv. I believe this is caused during the decode/display of the coded stream.

I have reproduced this with the sample code for video recording. Console output from the videorecord sample code is pasted below. AR.Drone Ver. 2.3.3 Press 'R' to start/stop recording.OpenCV Error: Bad argument (Unknown array type ) in unknown function, file C:\opencv\modules\core\src\matrix.cpp, line 698

However when I tried the recording functionality in my own application the exception is reported in array.cpp..

Note that the drone has started recording, when I examine the usb stick a new video file has been written to it which contains what I would expect.

When I get time I will see if I can pin down what is causing the exception.

I am running on Windows 8 64bit, using vs2012 Drone is a 2.0 version

Cheers, Paul

paulbuxton commented 11 years ago

Fixed in updated sample application.

puku0x commented 11 years ago

Yes, ARDrone::setVideoRecord() should have been called before ARDrone::getImage().

Thanks, puku0x