资源简介
就我所知,十分完善的场景文字检测的代码网上是没有的,有的只是一些算法,或者比较过时的系统,本文的出现正是希望通过本人的一点努力填补这个空白,方便广大研究者能够更快入门,至少一开始研究就有一个基本框架。具体可见本人的博客。
代码片段和文件信息
%adj_char_group.m
%2014.4.16
%zhou dongao
function [ groupImg ] = adj_char_group( partImg )
global input_img;
%% 1.initialize sibling sets
S = initS( partImg );
% input_img = imread(...
% ‘F:\zhoudongao\0_data\data\scene(1)\SceneTrialTrain\lfsosa_12.08.2002\IMG_2461.JPG‘);
cc = S.cc;
stat = S.stat;
bw = S.bw;
numobjects = S.cc.Numobjects;
[row col] = size(bw);
%% 2.generate sibling sets
%figure imshow(S.bw);
figure imshow(input_img) title(‘Siblings‘);
minBoundingBox = S.MinBoundingBox;
% boundingBox =
for i = 1 : numobjects
minRectBox = minBoundingBox{i};
% hold on plot(minRectBox(2[1:end 1])minRectBox(1[1:end 1])‘r‘);
% if stat(i).Area > 200
% hold on text(minRectBox(21) minRectBox(11) num2str(i) ‘EdgeColor‘‘yellow‘);
% end
numRight = 1;
numLeft = 1;
numUp = 1;
numDown = 1;
fl = zeros(1001);fr = zeros(1001);fu = zeros(1001);fd = zeros(1001);
for j = 1 : numobjects
if j ~= i
isSib = isSibling( stat(i) stat(j) S.MinBoundingBox{i} S.MinBoundingBox{j} cc.PixelIdxList{i} cc.PixelIdxList{j});
if isSib == 1
if stat(i).Centroid(1) <= stat(j).Centroid(1)
fr(numRight) = j; numRight = numRight + 1;
else
fl(numLeft) = j; numLeft = numLeft + 1;
end
elseif isSib == 2
if stat(i).Centroid(2) <= stat(j).Centroid(2)
fu(numUp) = j; numUp = numUp + 1;
else
fd(numDown) = j; numDown = numDown + 1;
end
end
end
end
S.fl{i} = fl(fl>0);
S.fr{i} = fr(fr>0);
S.fu{i} = fu(fu>0);
S.fd{i} = fd(fd>0);
flTemp = S.fl{i};
if ~isempty(flTemp)
x = zeros(1 length(flTemp));
y = zeros(size(x));
for k = 1:length(flTemp)
y(k) = stat(flTemp(k)).Centroid(2);
x(k) = stat(flTemp(k)).Centroid(1);
end
hold on plot([stat(i).Centroid(1) x] [stat(i).Centroid(2) y]‘-bs‘‘LineWidth‘2);
end
fuTemp = S.fu{i};
if ~isempty(fuTemp)
t = zeros(1 length(fuTemp));
s = zeros(size(t));
for k = 1:length(fuTemp)
s(k) = stat(fuTemp(k)).Centroid(2);
t(k) = stat(fuTemp(k)).Centroid(1);
end
% hold on plot([stat(i).Centroid(1) t] [stat(i).Centroid(2) s]‘-ys‘‘LineWidth‘2);
end
end
FL = S.fl;
FR = S.fr;
FU = S.fu;
FD = S.fd;
figure imshow(S.bw);
minBoundingBox = S.MinBoundingBox;
for i = 1:numobjects
flTemp = FL{i}; frTemp = FR{i}; fuTemp = FU{i}; FdTemp = FD{i};
minRectBox = minBoundingBox{i};
hold on plot(minRectBox(2[1:end 1])minRectBox(1[1:end 1])‘r‘);
if ~isempty(flTemp)
x = zeros(1 length(flTemp));
y = zeros(size(x));
for j
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-06-24 22:08 TSDFNS(text string detection from natural scenes)\
文件 7149 2014-06-24 21:05 TSDFNS(text string detection from natural scenes)\adj_char_group.m
文件 1010 2014-06-24 20:55 TSDFNS(text string detection from natural scenes)\batchInput.asv
文件 966 2014-06-24 21:07 TSDFNS(text string detection from natural scenes)\batchInput.m
文件 445 2014-04-17 10:43 TSDFNS(text string detection from natural scenes)\ccAnalysis.m
文件 129 2013-10-24 19:57 TSDFNS(text string detection from natural scenes)\createLImage.m
文件 186 2013-10-24 15:34 TSDFNS(text string detection from natural scenes)\creatFImage.m
文件 375 2014-04-15 19:28 TSDFNS(text string detection from natural scenes)\detecttext.m
文件 928 2014-04-15 16:45 TSDFNS(text string detection from natural scenes)\edge_test.m
文件 1595 2012-08-06 20:44 TSDFNS(text string detection from natural scenes)\extractletters.m
文件 1004 2014-04-16 16:17 TSDFNS(text string detection from natural scenes)\grad_part.m
文件 15376 2014-06-24 21:00 TSDFNS(text string detection from natural scenes)\grad_swt.m
目录 0 2014-06-24 22:08 TSDFNS(text string detection from natural scenes)\img\
文件 122263 2002-08-12 16:20 TSDFNS(text string detection from natural scenes)\img\5.JPG
文件 139703 2002-08-12 16:20 TSDFNS(text string detection from natural scenes)\img\6.JPG
文件 120591 2002-08-12 16:22 TSDFNS(text string detection from natural scenes)\img\7.JPG
文件 145445 2002-08-12 16:29 TSDFNS(text string detection from natural scenes)\img\8.JPG
文件 904 2014-05-07 11:03 TSDFNS(text string detection from natural scenes)\initS.m
文件 537 2014-04-21 17:25 TSDFNS(text string detection from natural scenes)\isCollinear.m
文件 283 2014-04-23 09:10 TSDFNS(text string detection from natural scenes)\isMerge.m
文件 1286 2014-04-23 10:48 TSDFNS(text string detection from natural scenes)\isSibling.m
文件 2479 2014-06-24 20:59 TSDFNS(text string detection from natural scenes)\main.m
文件 2461 2014-04-21 17:18 TSDFNS(text string detection from natural scenes)\minBoundingBox.m
文件 1199 2014-04-22 11:10 TSDFNS(text string detection from natural scenes)\minBoundingBoxInImg.m
目录 0 2014-06-24 22:08 TSDFNS(text string detection from natural scenes)\orgResults\
文件 59429 2014-04-24 16:37 TSDFNS(text string detection from natural scenes)\orgResults\1.jpg
文件 33688 2014-04-24 16:44 TSDFNS(text string detection from natural scenes)\orgResults\10.jpg
文件 39891 2014-04-24 16:45 TSDFNS(text string detection from natural scenes)\orgResults\11.jpg
文件 86701 2014-04-24 16:47 TSDFNS(text string detection from natural scenes)\orgResults\12.jpg
文件 62799 2014-04-24 16:48 TSDFNS(text string detection from natural scenes)\orgResults\13.jpg
文件 51728 2014-04-24 16:49 TSDFNS(text string detection from natural scenes)\orgResults\14.jpg
............此处省略21个文件信息
- 上一篇:用MATLAB实现基于小波变换的图像融合
- 下一篇:克里金插值matlab工具包加
相关资源
- 场景文字检测matlab源码
- RRT、RRT-Connect、LazyRRT、RRTextend、RRT*的
- MATLAB场景图片文字定位text detection
- 显著性检测Context-Aware Saliency Detectio
- matlab中text函数在显示字符串时的使用
- Shape Context(matlab)
- FileTextureManager 5.0最新贴图路径指认脚
- text-edge-detection 蚁群算法
-
context-aware-saliency-detection 论文<
- image-texture-features 图像纹理特征提取
- Graph_cut 几篇关于graph cut的论文
- Texture
-
Theimagetextureanalyssba
sedonthefractaldime - GaborTexture Gabor滤波器方法提取纹理特
- wireless-communication 无线通信经典教材(
- Shape-Context
- text-classification 分别使用最近邻(KN
- SceneTextCNN_demo.tar 端至端卷积神经网络
- text-classification matlab编写的文本分类的
- texture_GUI 此程序是基于灰度共生矩阵
- textureseg 用于图像的纹理分割
- Context-aware-saliency-detection 基于上下文
- Texture-Image-Segmentation- 纹理图像分割
评论
共有 条评论