Gui error on the execution process
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
Currently doing the OCR gui that have two buttons, one to load the image and another one is the process. Its quite simple. So, i have an error on the process part, the Mser function. The load image i code it like this :
global I
colorImage = rgb2gray(I);
I=im2double(I);
Then, i have problem on the next part. Being using this code Automatically Detect and Recognize Text in Natural Images.
4 Kommentare
Kojiro Saito
am 5 Dez. 2018
What an error message do you get?
Jan
am 5 Dez. 2018
@nur: Please post the failing line of code and the complete error message.
Aqip10
am 5 Dez. 2018
Rik
am 5 Dez. 2018
Why don't you input the image as it is intended: as an input? You seem to be using a global to inject your input into the function, but you still call it with an input in your GUI (the Recognition_Callback function). It looks like you're expecting the variable I to be shared automatically, which is not how global variables work. Consider replacing the way you pass the image into that function with a method that doesn't work with globals. Generally guidata will work well.
Antworten (1)
Jan
am 6 Dez. 2018
0 Stimmen
I guess based on the name of the variable "im", that the software expects a gray image, which is a 2D matrix, but you provide an RGB image, which is a 3D array.
2 Kommentare
Aqip10
am 9 Dez. 2018
Jan
am 9 Dez. 2018
"But still error" is less useful than posting a copy of the complete error message. I do not have your input data and toolbox functions, so maybe I'm not able to run your code. But you do have the error message on your screen already, so please share this valuable information with us.
It is easier to solve a problem than to guess, what the problem is.
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
