Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

TypeError: img data type = 17 is not supported

Some one please help me with this error: filename = path_save_img+"capture%.4d.bmp" % icount saveimg = np.array(cap) cv2.imwrite( filename, saveimg, cv2.cv.CV_IMWRITE_PXM_BINARY ) TypeError: img data type = 17 is not supported

I try to save capture frame with this line, and I am geting error. How I can to know type of array ? np.dtype(cap) return error for me.

TypeError: img data type = 17 is not supported

Some one please help me with this error:

    filename = path_save_img+"capture%.4d.bmp" % icount 
    saveimg = np.array(cap)
    cv2.imwrite( filename, saveimg, cv2.cv.CV_IMWRITE_PXM_BINARY )
TypeError: img data type = 17 is not supported

supported

I try to save capture frame with this line, and I am geting error. How I can to know type of array ? np.dtype(cap) return error for me.

TypeError: img data type = 17 is not supported

Some one please help me with this error: error:

     filename = path_save_img+"capture%.4d.bmp" % icount 
    saveimg = np.array(cap)
    cv2.imwrite( filename, saveimg, cv2.cv.CV_IMWRITE_PXM_BINARY )
TypeError: img data type = 17 is not supported

I try to save capture frame with this line, and I am geting error. How I can to know type of array ? np.dtype(cap) return error for me.

TypeError: img data type = 17 is not supported

Some one please help me with this error:


    filename = path_save_img+"capture%.4d.bmp" % icount 
    saveimg = np.array(cap)
    cv2.imwrite( filename, saveimg, cv2.cv.CV_IMWRITE_PXM_BINARY )
TypeError: img data type = 17 is not supported

I try to save capture frame with this line, and I am geting error. How I can to know type of array ? np.dtype(cap) return error for me.

me.
    12:34:11.658054
28
1
<module 'numpy.testing'="" from="" '="" usr="" lib64="" python2.7="" site-packages="" numpy="" testing="" __init__.pyc'="">
0
()
<videocapture 0x19b6af0="">
./capture/images/capture0028.bmp
<type 'numpy.ndarray'="">
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1470, in __call__
    return self.func(*args)
  File "./svyatovit.py", line 107, in Gov_start_func
    Start_sig(ishow);
  File "./svyatovit.py", line 57, in Start_sig
    Saveimage(cap, icount);
  File "/home/crank/scripts/svyatovit/database.py", line 31, in Saveimage
    cv2.imwrite( filename, saveimg, cv2.cv.CV_IMWRITE_PXM_BINARY )
TypeError: img data type = 17 is not supported
exit_sig func
click to hide/show revision 5
retagged

updated 2014-06-26 03:49:15 -0600

berak gravatar image

TypeError: img data type = 17 is not supported

Some one please help me with this error:


    filename = path_save_img+"capture%.4d.bmp" % icount 
    saveimg = np.array(cap)
    cv2.imwrite( filename, saveimg, cv2.cv.CV_IMWRITE_PXM_BINARY )
TypeError: img data type = 17 is not supported
I try to save capture frame with this line, and I am geting error. How I can to know type of array ? np.dtype(cap) return error for me.
    12:34:11.658054
28
1
<module 'numpy.testing'="" from="" '="" usr="" lib64="" python2.7="" site-packages="" numpy="" testing="" __init__.pyc'="">
0
()
<videocapture 0x19b6af0="">
./capture/images/capture0028.bmp
<type 'numpy.ndarray'="">
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1470, in __call__
    return self.func(*args)
  File "./svyatovit.py", line 107, in Gov_start_func
    Start_sig(ishow);
  File "./svyatovit.py", line 57, in Start_sig
    Saveimage(cap, icount);
  File "/home/crank/scripts/svyatovit/database.py", line 31, in Saveimage
    cv2.imwrite( filename, saveimg, cv2.cv.CV_IMWRITE_PXM_BINARY )
TypeError: img data type = 17 is not supported
exit_sig func

TypeError: img data type = 17 is not supported

Some one please help me with this error:


    filename = path_save_img+"capture%.4d.bmp" % icount 
    saveimg = np.array(cap)
    cv2.imwrite( filename, saveimg, cv2.cv.CV_IMWRITE_PXM_BINARY )
TypeError: img data type = 17 is not supported
I try to save capture frame with this line, and I am geting error. How I can to know type of array ? np.dtype(cap) return error for me.
    12:34:11.658054
28
1
<module 'numpy.testing'="" from="" '="" usr="" lib64="" python2.7="" site-packages="" numpy="" testing="" __init__.pyc'="">
0
()
<videocapture 0x19b6af0="">
./capture/images/capture0028.bmp
<type 'numpy.ndarray'="">
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1470, in __call__
    return self.func(*args)
  File "./svyatovit.py", line 107, in Gov_start_func
    Start_sig(ishow);
  File "./svyatovit.py", line 57, in Start_sig
    Saveimage(cap, icount);
  File "/home/crank/scripts/svyatovit/database.py", "/home/xxx/xxx/xxx/database.py", line 31, in Saveimage
    cv2.imwrite( filename, saveimg, cv2.cv.CV_IMWRITE_PXM_BINARY )
TypeError: img data type = 17 is not supported
exit_sig func