"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/tests/facesengine/recognize.cpp" between
digikam-6.2.0.tar.xz and digikam-6.3.0.tar.xz

About: digiKam is an advanced digital photo management application.

recognize.cpp  (digikam-6.2.0.tar.xz):recognize.cpp  (digikam-6.3.0.tar.xz)
skipping to change at line 84 skipping to change at line 84
{ {
if (argc < 2 || (QString::fromLatin1(argv[1]) == QString::fromLatin1("train" ) && argc < 3)) if (argc < 2 || (QString::fromLatin1(argv[1]) == QString::fromLatin1("train" ) && argc < 3))
{ {
qDebug() << "Bad Arguments!!!\nUsage: " << argv[0] << " identify <image1 > <image2> ... | train name <image1> <image2> ... " qDebug() << "Bad Arguments!!!\nUsage: " << argv[0] << " identify <image1 > <image2> ... | train name <image1> <image2> ... "
"| ORL <path to or l_faces>"; "| ORL <path to or l_faces>";
return 0; return 0;
} }
QCoreApplication app(argc, argv); QCoreApplication app(argc, argv);
app.setApplicationName(QString::fromLatin1("digikam")); // for DB i nit. app.setApplicationName(QString::fromLatin1("digikam")); // for DB i nit.
KSharedConfig::Ptr config = KSharedConfig::openConfig(); DbEngineParameters prm = DbEngineParameters::parametersFromConfig();
DbEngineParameters prm = DbEngineParameters::parametersFromConfig(config)
;
CoreDbAccess::setParameters(prm, CoreDbAccess::MainApplication); CoreDbAccess::setParameters(prm, CoreDbAccess::MainApplication);
RecognitionDatabase db; RecognitionDatabase db;
if (QString::fromLatin1(argv[1]) == QString::fromLatin1("identify")) if (QString::fromLatin1(argv[1]) == QString::fromLatin1("identify"))
{ {
QStringList paths = toPaths(argv, 2, argc); QStringList paths = toPaths(argv, 2, argc);
QList<QImage> images = toImages(paths); QList<QImage> images = toImages(paths);
QTime time; QTime time;
time.start(); time.start();
 End of changes. 1 change blocks. 
3 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)