Ask Your Question
1

[Solved]OpenCV(3.4.1-dev) Error

asked 2018-04-10 00:22:02 -0600

nasserahmed96 gravatar image

updated 2018-04-11 01:50:52 -0600

When I tryed the sample code of EigenFaces and created the csv file, in the run time I got this error

OpenCV(3.4.1-dev) Error: One of arguments' values is out of range (Bad new number of rows) in reshape, file /home/nasser/Programs/OpenCV_3.4.0/opencv/modules/core/src/matrix.cpp, line 841
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(3.4.1-dev) /home/nasser/Programs/OpenCV_3.4.0/opencv/modules/core/src/matrix.cpp:841: error: (-211) One of arguments' values is out of range: Bad new number of rows in function reshape

Aborted (core dumped)
edit retag flag offensive close merge delete

Comments

one of the images you tried to read was invalid.

please try to locate the imread() call, and add a check there.

berak gravatar imageberak ( 2018-04-10 00:51:42 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-04-11 01:50:36 -0600

nasserahmed96 gravatar image

That's solved it, I have realocated the samples in the working directory of the executable file thanks alot

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-04-10 00:22:02 -0600

Seen: 2,911 times

Last updated: Apr 11 '18