2016-08-05 3 views

答えて

0
I am not used to Python, but If it was in Windows I will first check whether cap is getting frames from the given IP Address using: 

if(!cap.IsOpened()) 
{ 
cerr <<"No video Frames were read, please check your IP and Port" <<endl; 
return -1; 
} 

This will easily help me know whether I am fetching from the Drone or not. 

//Secondly, we have to check for the case where we are able to fetch from the drone.. 

while(true) 
{ 
cap >>frame; 
char c = waitkey(10); 
if(c== 27) break 
} 
です
関連する問題