Skip to content

Example code exception #1

@colbro

Description

@colbro

Environment: Centos 6 (64 bit) VM in VirtualBox 4.3.6 on Windows 7

Just installed CharLS and CharPyLS.
Copied the test/gray_raw.png to test/image.png

[root@dev01 jpeg_ls]# python2.7 example.py
Traceback (most recent call last):
File "example.py", line 15, in
data_buffer = jpeg_ls.encode(data_image)
File "/usr/local/lib/python2.7/site-packages/CharPyLS-1.0.0-py2.7-linux-x86_64.egg/jpeg_ls/CharLS.py", line 47, in encode
data_buffer = _CharLS.encode(data_image)
File "_CharLS.pyx", line 119, in _CharLS.encode (jpeg_ls/_CharLS.cpp:1721)
raise Exception('Invalid input data type %s' % data_image.dtype)
Exception: Invalid input data type object

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions