Giter Club home page Giter Club logo

gst_rtsp_client's People

Contributors

zhuyuliang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gst_rtsp_client's Issues

LightTrack的issue关了只能在这提问

您好,向您请教关于NanoTrack在RK3588平台的C++实现出现的问题。我参考NanoTrack原作者的C++代码和您使用lighttrack的代码写了使用rknn模型的代码,但是在解析输出的结果时出现问题:预测的目标框位置差距很大而且从第二帧开始预测框就不对了,想询问解决的办法!
NanoTrack跟LightTrack很相似,我的模型也是按照你的差不多结构设置的。

rknn_input zf_xf[2];
memset(zf_xf, 0, sizeof(zf_xf));
zf_xf[0].index = 0;
zf_xf[0].size = zf[0].size;
zf_xf[0].pass_through = 0;
zf_xf[0].type = RKNN_TENSOR_FLOAT32;
zf_xf[0].fmt = RKNN_TENSOR_NHWC;
zf_xf[0].buf = zf[0].buf;

zf_xf[1].index = 1;
zf_xf[1].size = xf[0].size;
zf_xf[1].pass_through = 0;
zf_xf[1].type = RKNN_TENSOR_FLOAT32;
zf_xf[1].fmt = RKNN_TENSOR_NHWC;
zf_xf[1].buf = xf[0].buf;

rknn_inputs_set(net_head, 2, zf_xf);

rknn_run(net_head, NULL);

rknn_output outputs[2];
memset(outputs, 0, sizeof(outputs));
for (auto & output : outputs) {
    output.want_float = 1;
    output.is_prealloc = 0;
}
rknn_outputs_get(net_head, 2, outputs, NULL);

std::vector<float> cls_score_sigmoid;


float* cls_score_data = (float*)outputs[0].buf;
//print_rknn(cls_score_data, "cls_score_rknn_cpp.txt");
float* bbox_pred_data = (float*)outputs[1].buf;
print_rknn(bbox_pred_data, "bbox_pred_rknn_cpp.txt");            
/* debug */

cls_score_sigmoid.clear();

int cols = cfg.score_size;
int rows = cfg.score_size;

for (int i = 0; i < cols*rows; i++)   //16x16
{        
    cls_score_sigmoid.push_back(sigmoid(cls_score_data[i]));
}

std::vector<float> pred_x1(cols*rows, 0), pred_y1(cols*rows, 0), pred_x2(cols*rows, 0), pred_y2(cols*rows, 0);

float* bbox_pred_data1 = (float*)outputs[1].buf;
float* bbox_pred_data2 = (float*)outputs[1].buf + cols*rows;
float* bbox_pred_data3 = (float*)outputs[1].buf + 2*cols*rows;
float* bbox_pred_data4 = (float*)outputs[1].buf + 3*cols*rows;

for (int i=0; i<rows; i++)
{
    for (int j=0; j<cols; j++)
    {
        pred_x1[i*cols + j] = this->grid_to_search_x[i*cols + j] - bbox_pred_data1[i*cols + j];
        pred_y1[i*cols + j] = this->grid_to_search_y[i*cols + j] - bbox_pred_data2[i*cols + j];
        pred_x2[i*cols + j] = this->grid_to_search_x[i*cols + j] + bbox_pred_data3[i*cols + j];
        pred_y2[i*cols + j] = this->grid_to_search_y[i*cols + j] + bbox_pred_data4[i*cols + j];
    }
}

如何实现真正的跳帧?

你好,在代码中加入”if frame_count % frame_interval == 0:“等判断代码似乎不能跳帧,那么在你的项目代码中该如何实现真正的跳帧呢?

有个重连的Bug

如果源RTSP是经过变化的流,比如旋转导致了尺寸变化,则重连之后获取到的都是原始尺寸,不是变化后的尺寸,会导致画面花屏

int source_width = GST_VIDEO_INFO_WIDTH (&(this->m_data.info));
int source_height = GST_VIDEO_INFO_HEIGHT (&(this->m_data.info));

无法连接

请问我这个怎么无法连接,直接用playbin是可以的
1698511579(1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.