MATLAB Answers

Showing a char variable in static text (GUIDE) ANPR

1 view (last 30 days)
Pablo Alejandro Guerrero
Pablo Alejandro Guerrero on 1 Mar 2017
Hello everyone, I have been working on a project to detect vehicular plates ... I have two doubts
1) In Guide I need to display a char variable (the one containing the identified characters) in a static text, how could I invoke it if the variable is included in the program function and not in the Guide code?
Https://www.dropbox.com/sc/32opjdauc6h8smf/AAB5lEgFnYbEZLu68lpVXOZBa
2) When showing the results of the processes in the application some become blue, is there a way to correct that error?
Https://www.dropbox.com/sc/o92pqew910tgh9s/AAAv6CqEkMun9R-wdfQrveEFa
The guide code is the following, where clicking the one button selects an image and calls the code function responsible for the detection and recognition process:
% --- Executes on button press in pushbutton1. Function pushbutton1_Callback (hObject, eventdata, handles) % HObject handle to pushbutton1 (see GCBO) % Eventdata reserved - to be defined in a future version of MATLAB % Handles structure with handles and user data (see GUIDATA)
[Filename, Path] = uigetfile ('* .bmp; *. Png; *. Jpg', 'Open Image'); If isequal (Filename, 0) Return Else I = imread (strcat (Path, Filename)); Imshow (I); End Main_function_program (I);
Axes (handles.axes1) Background = imread ('electro.bmp'); Image (background); Axis off;
Axes (handles.axes3) Background = imread ('I2.bmp'); Image (background); Axis off;
Axes (handles.axes4) Background = imread ('A.bmp'); Image (background); Axis off;
Axes (handles.axes5) Background = imread ('image_recuadro.bmp'); Image (background); Axis off;
Axes (handles. Axes7) Background = imread ('image_corregida_binarizada.bmp'); Image (background); Axis off;
Axes (handles. Axes8) Background = imread ('recorte_proyeccion.bmp'); Image (background); Axis off;
Axes (handles. Axes9) Background = imread ('a_ocr.bmp'); Image (background); Axis off;
Handles. Output = hObject; Guidata (hObject, handles); End

  0 Comments

Sign in to comment.

Answers (0)

Tags