1 Star 0 Fork 24

michael / UVCCapture

forked from ZVision / UVCCapture 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.cpp 966 Bytes
一键复制 编辑 原始数据 按行查看 历史
/*
* Copyright (c) 2020-2022 https://gitee.com/fsfzp888/UVCCapture
* 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/jackjia2005/UVCCapture.git
git@gitee.com:jackjia2005/UVCCapture.git
jackjia2005
UVCCapture
UVCCapture
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891