|
@@ -1871,6 +1871,7 @@ ImageLabeler::loadPascalFile()
|
|
|
fileDialog.setAcceptMode(QFileDialog::AcceptOpen);
|
|
|
fileDialog.setDefaultSuffix("xml");
|
|
|
fileDialog.setFileMode(QFileDialog::AnyFile);
|
|
|
+ fileDialog.setDirectory(PASCALpath_);
|
|
|
QStringList filters;
|
|
|
filters << "PASCAL xml data (*.xml)"
|
|
|
<< "Any files (*)";
|
|
@@ -2056,12 +2057,12 @@ ImageLabeler::loadPascalFile(QString aFilename, QString aPath)
|
|
|
rootNode = rootNode.nextSibling();
|
|
|
}
|
|
|
|
|
|
- if (!image_->load(path + "/" + filename)) {
|
|
|
+ if (!image_->load(path + "/JPEGImages/" + filename)) {
|
|
|
return false;
|
|
|
/* NOTREACHED */
|
|
|
}
|
|
|
|
|
|
- current_image_ = path + filename;
|
|
|
+ current_image_ = path + "/JPEGImages/" + filename;
|
|
|
|
|
|
QString winTitle;
|
|
|
winTitle.append("ImageLabeler - ");
|