随着互联网世界的不断充盈,各种各样的视频、文字、图片爆炸式增长,那么如何才能保障信息的健康性、文明性?如何监控这些新增内容和现存内容呢?舆情监控的重要性可谓不言而喻。软件中可以精确定位到视频中的文字位置。定位后,再对所定位文字进行识别。
部分程序代码
% 区域属性分析
[L, num] = bwlabel(bw);
stats = regionprops(L);
rects = cat(1, stats.BoundingBox);
% 统计当前字符宽度
[counts,centers] = hist(rects(:, 3));
ind = find(counts<5);
th = centers(ind(1))-1;
% 清理非字符
for i = 1 : num
rect = stats(i).BoundingBox;
if max(rect(3:4)) > th
bw(L == i) = 0;
end
end
电影字幕提取、视频或图片中文字检测定位

相关文章:

  • 2021-12-30
  • 2021-09-05
  • 2021-11-17
  • 2021-12-29
  • 2022-12-23
  • 2021-12-09
  • 2021-09-16
  • 2021-05-02
猜你喜欢
  • 2021-04-24
  • 2021-11-19
  • 2021-07-03
  • 2022-01-24
  • 2021-09-07
  • 2021-12-06
  • 2021-12-26
相关资源
相似解决方案