1 Star 0 Fork 24

eaglexmw/UVCCapture

forked from ZVision/UVCCapture 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.cpp 1021 Bytes
一键复制 编辑 原始数据 按行查看 历史
fsfzp888 提交于 2021-02-17 21:35 . add Logger
/*
* Copyright (c) 2016, Roman Meyta <theshrodingerscat@gmail.com>
* Copyright (c) 2020-2021 https://gitee.com/fsfzp888
* All rights reserved
*/
#include <QApplication>
#include <QTranslator>
#include <iostream>
#include "Logger.h"
#include "WebcamWindow.h"
#pragma comment(lib, "strmiids.lib")
#pragma comment(lib, "strmbase.lib")
int main(int argc, char *argv[])
{
logger_initFileLogger("run.log", 1024 * 1024, 5);
logger_setLevel(LogLevel_DEBUG);
LOG_INFO("Camera application start.");
std::locale loc = std::locale::global(std::locale(""));
QApplication app(argc, argv);
QString pluginPath = app.applicationDirPath() + "/plugins";
app.addLibraryPath(pluginPath);
app.setWindowIcon(QIcon(":app_icon.jpg"));
QTranslator translator;
translator.load("translation/zh.qm");
app.installTranslator(&translator);
WebcamWindow window;
window.show();
int res = app.exec();
std::locale::global(loc);
LOG_INFO("Camera application exit.");
return res;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/eaglexmw/UVCCapture.git
git@gitee.com:eaglexmw/UVCCapture.git
eaglexmw
UVCCapture
UVCCapture
master

搜索帮助

A270a887 8829481 3d7a4017 8829481