Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv::FileStorage unclear behaviour

Hi guys,

I use a C++ programm on my Raspberry Pi for OCR where I use cv::FileStorage to find classification files for kNN.

If i start the programm in the LXTerminal on the raspberry it searches for the classification files in the folder where the program is stored. If i start it from a remote machine using SSH it searches in the /home/pi folder, no matter where the programm is stored.

I am not too familar with Linux and don't really know if its a OpenCV problem or something else. Could you explain me why that happens and do you have any suggestions how to fix it? I want to store the classification files in the same folder as the program.

cv::FileStorage unclear behaviour

Hi guys,

I use a C++ programm on my Raspberry Pi for OCR where I use cv::FileStorage to find classification files for kNN.

If i start the programm in the LXTerminal on the raspberry it searches for the classification files in the folder where the program is stored. If i start it from a remote machine using SSH it searches in the /home/pi folder, no matter where the programm is stored.

I am not too familar with Linux and don't really know if its a OpenCV problem or something else. Could you explain me why that happens and do you have any suggestions how to fix it? I want to store the classification files in the same folder as the program.

edit: Same happens with cv:imwrite.