imread when in console tries to display matrix after load, causing cpu to spin
cgat opened this issue · comments
Chris Gat commented
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
Alexander Duda commented
Thank you for the suggestion. I will definitely add this feature in the next release.