Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.70 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. while-loop in opencv causing error
  2. scene_filename = "box_in_scene.png"
  3.        
  4. capture = cv.VideoCapture(0)
  5. frame = Mat()
  6. capture >> frame
  7. imwrite("box_in_scene.png",frame)
  8.        
  9. OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupport
  10.  ed array type) in cvGetMat, file M:programmingpackagesopencvworkspace2.1Op
  11.  enCV-2.1.0srccxcorecxarray.cpp, line 2476
  12.  Traceback (most recent call last):
  13.   File "find_obj.py", line 114, in <module>
  14.     imageDescriptors = surf(image, mask, imageKeypoints)
  15.  RuntimeError: M:programmingpackagesopencvworkspace2.1OpenCV-2.1.0srccxco
  16.  recxarray.cpp:2476: error: (-206) Unrecognized or unsupported array type in fun
  17.  ction cvGetMat
  18.        
  19. myloop = 1
  20. while myloop == 1 :