-1
當我運行這個腳本時,我得到了這個警告。用OpenCV結尾文件分隔
./my.sh: line 8: warning: here-document at line 8 delimited by end-of-file (wanted `nameofpicture.txt')
腳本:
#!/bin/bash
g++ -o crop crop.cpp `pkg-config --cflags --libs opencv`
g++ -o recog recog.cpp `pkg-config --cflags --libs opencv`
./crop
while read line
do
echo "$line" |./recog
done <<"nameofpicture.txt"