|
@@ -5,22 +5,28 @@
|
|
#include "nodes/httpPush/httpPush.hpp"
|
|
#include "nodes/httpPush/httpPush.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
int main()
|
|
int main()
|
|
{
|
|
{
|
|
std::shared_ptr<Node::StreamNode> src_node = std::make_shared<Node::StreamNode>("src", "rtsp://admin:lww123456@172.16.22.16:554/Streaming/Channels/101");
|
|
std::shared_ptr<Node::StreamNode> src_node = std::make_shared<Node::StreamNode>("src", "rtsp://admin:lww123456@172.16.22.16:554/Streaming/Channels/101");
|
|
src_node->set_skip_frame(10);
|
|
src_node->set_skip_frame(10);
|
|
|
|
|
|
|
|
+ std::shared_ptr<Node::StreamNode> src_node1 = std::make_shared<Node::StreamNode>("src", "rtsp://admin:lww123456@172.16.22.16:554/Streaming/Channels/201");
|
|
|
|
+ src_node1->set_skip_frame(10);
|
|
|
|
+
|
|
|
|
|
|
std::shared_ptr<Node::InferNode> infer_node = std::make_shared<Node::InferNode>("infer");
|
|
std::shared_ptr<Node::InferNode> infer_node = std::make_shared<Node::InferNode>("infer");
|
|
std::shared_ptr<Node::DrawNode> draw_node = std::make_shared<Node::DrawNode>("draw");
|
|
std::shared_ptr<Node::DrawNode> draw_node = std::make_shared<Node::DrawNode>("draw");
|
|
std::shared_ptr<Node::HttpPushNode> push_node = std::make_shared<Node::HttpPushNode>("push", "172.16.20.168", 8080, "/push");
|
|
std::shared_ptr<Node::HttpPushNode> push_node = std::make_shared<Node::HttpPushNode>("push", "172.16.20.168", 8080, "/push");
|
|
Node::LinkNode(src_node, infer_node);
|
|
Node::LinkNode(src_node, infer_node);
|
|
|
|
+ Node::LinkNode(src_node1, infer_node);
|
|
Node::LinkNode(infer_node, draw_node);
|
|
Node::LinkNode(infer_node, draw_node);
|
|
Node::LinkNode(draw_node, push_node);
|
|
Node::LinkNode(draw_node, push_node);
|
|
push_node->start();
|
|
push_node->start();
|
|
draw_node->start();
|
|
draw_node->start();
|
|
infer_node->start();
|
|
infer_node->start();
|
|
src_node->start();
|
|
src_node->start();
|
|
|
|
+ src_node1->start();
|
|
|
|
|
|
getchar();
|
|
getchar();
|
|
return 0;
|
|
return 0;
|