| | |
| | |
|
| | | #include "PL_SensetimeFaceDetect.h"
|
| | |
|
| | | #include <iostream>
|
| | | using namespace std;
|
| | | #include "logger.h"
|
| | |
|
| | | int main(int argc, char** argv)
|
| | | {
|
| | | initLogger(2);
|
| | |
|
| | | PipeLine pipeLine;
|
| | |
|
| | | pipeLine.register_elem_creator("PL_RTSPClient", create_PL_RTSPClient);
|
| | |
| | | bool ret = rtspClient->init(&rtspConfig);
|
| | | if (!ret)
|
| | | {
|
| | | cout << "rtspClient.init error" << endl;
|
| | | LOG(ERROR) << "rtspClient.init error";
|
| | | exit(EXIT_FAILURE);
|
| | | }
|
| | | }
|
| | |
| | | // bool ret = queue1->init(&config);
|
| | | // if (!ret)
|
| | | // {
|
| | | // cout << "queue1.init error" << endl;
|
| | | // LOG(ERROR) << "queue1.init error";
|
| | | // exit(EXIT_FAILURE);
|
| | | // }
|
| | | //}
|
| | |
| | | bool ret = rtspServer->init(&config);
|
| | | if (!ret)
|
| | | {
|
| | | cout << "rtspServer.init error" << endl;
|
| | | LOG(ERROR) << "rtspServer.init error";
|
| | | exit(EXIT_FAILURE);
|
| | | }
|
| | | }
|
| | |
|
| | | while(true)
|
| | | {
|
| | | //cout << "begin pipe" << endl;
|
| | | //LOG(ERROR) << "begin pipe";
|
| | | pipeLine.pipe();
|
| | | //cout << "end pipe" << endl;
|
| | | //LOG(ERROR) << "end pipe";
|
| | | }
|
| | | }
|