|
@@ -1,6 +1,7 @@
|
|
#include "nodes/base/base.hpp"
|
|
#include "nodes/base/base.hpp"
|
|
#include "nodes/analyze/analyzeNode.hpp"
|
|
#include "nodes/analyze/analyzeNode.hpp"
|
|
|
|
|
|
|
|
+#include "nodes/analyze/function/cross.hpp"
|
|
|
|
|
|
namespace GNode
|
|
namespace GNode
|
|
{
|
|
{
|
|
@@ -23,12 +24,8 @@ void AnalyzeNode::work()
|
|
int width = metaData->image.cols;
|
|
int width = metaData->image.cols;
|
|
int height = metaData->image.rows;
|
|
int height = metaData->image.rows;
|
|
|
|
|
|
- auto boxes = metaData->boxes;
|
|
|
|
- for (auto& box : boxes)
|
|
|
|
- {
|
|
|
|
- // 将分析的结果存入到 metaData->result 中
|
|
|
|
- }
|
|
|
|
- metaData->result = boxes;
|
|
|
|
|
|
+ auto res = person_cross_line(metaData->track_boxes, cv::Point(0, 0), cv::Point(width, height));
|
|
|
|
+ metaData->result = res;
|
|
for (auto& output_buffer : output_buffers_)
|
|
for (auto& output_buffer : output_buffers_)
|
|
{
|
|
{
|
|
// printf("Node %s push data to %s\n", name_.c_str(), output_buffer.first.c_str());
|
|
// printf("Node %s push data to %s\n", name_.c_str(), output_buffer.first.c_str());
|