Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
E
evsuits
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
OpsTeam
evsuits
Commits
2a1d1149
提交
2a1d1149
authored
8月 26, 2019
作者:
blu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
init
上级
99065351
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
43 行增加
和
29 行删除
+43
-29
Makefile
opencv-motion-detect/Makefile
+1
-1
database-sqlite.cpp
opencv-motion-detect/database-sqlite.cpp
+0
-0
database.cpp
opencv-motion-detect/database.cpp
+0
-0
database-sqlite.h
opencv-motion-detect/inc/database-sqlite.h
+36
-0
database.h
opencv-motion-detect/inc/database.h
+6
-28
没有找到文件。
opencv-motion-detect/Makefile
浏览文件 @
2a1d1149
...
@@ -5,7 +5,7 @@ CFLAGS = -g -Wall
...
@@ -5,7 +5,7 @@ CFLAGS = -g -Wall
LIBOPENCV
=
`
pkg-config opencv
--cflags
--libs
`
LIBOPENCV
=
`
pkg-config opencv
--cflags
--libs
`
LIBFFMPEG
=
`
pkg-config libavformat libavutil libavcodec libswscale
--cflags
--libs
`
LIBFFMPEG
=
`
pkg-config libavformat libavutil libavcodec libswscale
--cflags
--libs
`
LIBS
=
-
lpthread
LIBS
=
-
Ivendor
/lib
-lpthread
-lleveldb
SQLITE
=
vendor/sqlite/sqlite3.c
SQLITE
=
vendor/sqlite/sqlite3.c
HEADERS
=
-Iinc
-Ivendor
/include
HEADERS
=
-Iinc
-Ivendor
/include
...
...
opencv-motion-detect/database-sqlite.cpp
0 → 100644
浏览文件 @
2a1d1149
差异被折叠。
点击展开。
opencv-motion-detect/database.cpp
浏览文件 @
2a1d1149
差异被折叠。
点击展开。
opencv-motion-detect/inc/database-sqlite.h
0 → 100644
浏览文件 @
2a1d1149
/*
module: database
description:
author: Bruce.Lu <lzbgt@icloud.com>
update: 2019/08/23
*/
#ifndef __DATABASE_SL__
#define __DATABASE_SL__
extern
"C"
{
#include "../vendor/sqlite/sqlite3.h"
}
#include <string>
#include "json.hpp"
#define EV_DB_FILENAME_GENERAL "general.db"
#define EV_DB_FILENAME_LOG "log.db"
#define EV_DB_FILENAME_CONFIG "config.json"
#define EV_DB_FILENAME_SLICES "slices.json"
using
namespace
std
;
using
json
=
nlohmann
::
json
;
namespace
DB
{
typedef
int
(
*
callback
)(
void
*
,
int
,
char
**
,
char
**
);
int
exec
(
void
*
pUserData
,
char
*
fileName
,
const
char
*
stmt
,
callback
cb
);
int
getInfo
(
void
*
info
,
int
active
,
const
char
*
fileName
);
int
clearTable
(
const
char
*
tableName
,
const
char
*
fileName
);
int
setInfo
(
void
*
info
,
const
char
*
fileName
);
int
loadLocalConfigration
(
json
&
config
,
string
fileName
);
int
saveLocalConfigration
(
json
&
config
,
string
fileName
);
}
#endif
\ No newline at end of file
opencv-motion-detect/inc/database.h
浏览文件 @
2a1d1149
/*
#ifndef __DATABSE_LEVEL_DB_H__
module: database
#define __DATABSE_LEVEL_DB_H__
description:
#include "vendor/include/leveldb/db.h"
author: Bruce.Lu <lzbgt@icloud.com>
update: 2019/08/23
*/
#ifndef __DATABASE_SL__
#define __DATABASE_SL__
extern
"C"
{
#include "../vendor/sqlite/sqlite3.h"
}
#include <string>
#include "json.hpp"
#include "json.hpp"
#define EV_DB_FILENAME_GENERAL "general.db"
using
namespace
nlohmann
;
#define EV_DB_FILENAME_LOG "log.db"
#define EV_DB_FILENAME_CONFIG "config.json"
#define EV_DB_FILENAME_SLICES "slices.json"
using
namespace
std
;
using
json
=
nlohmann
::
json
;
namespace
DB
{
namespace
DB
{
typedef
int
(
*
callback
)(
void
*
,
int
,
char
**
,
char
**
);
int
exec
(
void
*
pUserData
,
char
*
fileName
,
const
char
*
stmt
,
callback
cb
);
int
getInfo
(
void
*
info
,
int
active
,
const
char
*
fileName
);
int
clearTable
(
const
char
*
tableName
,
const
char
*
fileName
);
int
setInfo
(
void
*
info
,
const
char
*
fileName
);
int
loadLocalConfigration
(
json
&
config
,
string
fileName
);
int
saveLocalConfigration
(
json
&
config
,
string
fileName
);
}
}
#endif
#endif
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论