-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.m
38 lines (21 loc) · 753 Bytes
/
main.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
clear, clc, close all
addpath("Material_Imagenes_Plantillas\01_Training\")
addpath("Material_Imagenes_Plantillas\02_Test\")
addpath("Funciones\")
usaTest = 0;
if usaTest == 1
numImagenes = 20;
nombreBase = 'Test_';
else
numImagenes = 5;
nombreBase = 'Training_';
end
flagFiguras = 0;
for i = 1:numImagenes
I = imread([nombreBase num2str(i,'%02d') '.jpg']);
[ISegEtiq, numCaracteres, centroides, contornos] = funcion_segmenta_caracteres_matricula(I, flagFiguras);
prediccion = funcion_reconoce_caracteres_matricula(ISegEtiq, numCaracteres, contornos);
representa_resultados_segmentacion_reconocimiento(I, prediccion, centroides, contornos);
pause
close all
end