【发布时间】:2017-06-19 06:53:19
【问题描述】:
我正在制作一个 android 应用程序,它可以从从视频中捕获的图像帧中检测对象。
openCV 中的示例应用程序只有实时检测的示例。
附加信息: -我正在使用 Haar 分类器
到目前为止,我将捕获的帧存储在 ImageView 数组中,如何使用 OpenCV 检测对象并在其周围绘制一个矩形?
for(int i=0 ;i <6; i++)
{
ImageView imageView = (ImageView)findViewById(ids_of_images[i]);
imageView.setImageBitmap(retriever.getFrameAtTime(looper,MediaMetadataRetriever.OPTION_CLOSEST_SYNC));
Log.e("MicroSeconds: ", ""+looper);
looper +=10000;
}
【问题讨论】:
标签: android c++ android-studio opencv