|
@@ -25,7 +25,7 @@ int main()
|
|
|
|
|
|
std::vector<std::string> names = { "person", "clothes", "vest" };
|
|
std::vector<std::string> names = { "person", "clothes", "vest" };
|
|
|
|
|
|
- std::shared_ptr<Node::StreamNode> src_node0 = std::make_shared<Node::StreamNode>("src0", "rtsp://admin:lww123456@172.16.22.16:554/Streaming/Channels/101", 0, Node::DecodeType::CPU);
|
|
|
|
|
|
+ std::shared_ptr<Node::StreamNode> src_node0 = std::make_shared<Node::StreamNode>("src0", "rtsp://admin:lww123456@172.16.22.16:554/Streaming/Channels/101", 0, Node::DecodeType::GPU);
|
|
src_node0->set_skip_frame(10);
|
|
src_node0->set_skip_frame(10);
|
|
|
|
|
|
std::shared_ptr<Node::StreamNode> src_node1 = std::make_shared<Node::StreamNode>("src1", "rtsp://admin:lww123456@172.16.22.16:554/Streaming/Channels/201", 0, Node::DecodeType::GPU);
|
|
std::shared_ptr<Node::StreamNode> src_node1 = std::make_shared<Node::StreamNode>("src1", "rtsp://admin:lww123456@172.16.22.16:554/Streaming/Channels/201", 0, Node::DecodeType::GPU);
|
|
@@ -49,8 +49,8 @@ int main()
|
|
draw_node->start();
|
|
draw_node->start();
|
|
infer_node->start();
|
|
infer_node->start();
|
|
src_node0->start();
|
|
src_node0->start();
|
|
- // src_node1->start();
|
|
|
|
- // src_node2->start();
|
|
|
|
|
|
+ src_node1->start();
|
|
|
|
+ src_node2->start();
|
|
getchar();
|
|
getchar();
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|