D-Alex / ropencv

ffi ruby wrapper for opencv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

imread when in console tries to display matrix after load, causing cpu to spin

cgat opened this issue · comments

I noticed that when I was in rails console (or irb) and did an imread on a medium sized photos, the CPU would just spinning. This is happening because matrices are displayed in the matlab format (which I love). Good for small matrices, bad for big ones. Perhaps just display the object when the matrix is of a certain size.

In the meantime, there is an easy work around by suffixing the command with nil:
img = cv::imread(my_path); nil

Thank you for the suggestion. I will definitely add this feature in the next release.