Ask Your Question
0

HaarLoadData problem

asked 2016-11-23 07:32:30 -0600

omar2016 gravatar image

updated 2016-11-23 07:44:07 -0600

berak gravatar image

Hi,

I am using hls_video_haar.h library of vivado hls. I am interested in very basic class of haar library "HaarLoadData", it would be a great help if anyone could give small hint about its usage. This will help me in loading my xml file. I have tried loading cascade via constructor,

 HaarLoadData(HaarClassifierCascade<STAGE,CLASSIFIER_ALL,FEATURE_MAX> &cascade,
//const int ca_flags,
const int ca_count,
//const float ca_scale,
const Size_<unsigned char> ca_real_window_size,
const int s_count[],
const float s_threshold[],
const int c_left[][FEATURE_MAX],
const int c_right[][FEATURE_MAX],
const float c_threshold[][FEATURE_MAX],
const float c_alpha[][FEATURE_MAX+1],
const unsigned int haar_feature[][FEATURE_MAX][4*HLS_HAAR_FEATURE_MAX],
const float haar_feature_weight[][FEATURE_MAX][HLS_HAAR_FEATURE_MAX]
//const int s_next[],
//const int s_child[],
//const int s_parent[],
//const int c_count[]
)

But most of the terms in this constructor are unknown (e.g. ca_count). If anyone knows kindly reply, it would be a great help.

Thanks !

edit retag flag offensive close merge delete

Comments

if i may ask, - how is this related to opencv at all ?

berak gravatar imageberak ( 2016-11-23 07:44:46 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-11-23 08:44:34 -0600

omar2016 gravatar image

the OpenCV function calls can be replaced by corresponding synthesizable functions from the Xilinx Vivado HLS video library like this function . OpenCV function calls can then be used to access input and output images and to provide a golden reference implementation of a video processing algorithm

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-11-23 07:32:30 -0600

Seen: 144 times

Last updated: Nov 23 '16