i have a problem in arabic handwritting recognition, no error from the codes but the outputs are wrong. what possibly the cause of it?
2 views (last 30 days)
Show older comments
the app goal is to recognize what letters that an image arabic word contains. the input is an image of arabic handwritting, it contains 3 arabic letters. the system will divide the image to 3 parts. the first letter, the middle letter, and the last letter of the word on the input image. the system will convert that 3 cropped images into binary template then it will do recognition what letter it is by comparing the cropped images to 3 different databases that contain arabic image templates(the first letter will be compared to a template database for first arabic letters, the middle will be compared to a template database for middle arabic letters, the last letter compared to a template database for last arabic letters). the output will be displayed on a text box as alphabet letters, not arabic letters (the output will be like: ta not ت). the problem is the output is totally wrong, like it should be ta but the system output will be other letter. no error in the codes by the way. FYI: an arabic letter will be shaped differently based on where it placed on an arabic word. sorry for my terrible english.
4 Comments
Accepted Answer
Jan
on 25 Jun 2017
Edited: Jan
on 25 Jun 2017
We have to clarify how assistence is possible. Did you read https://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer already?
We cannot run your code, because it is provided in 3 pieces and the main procedure is a callback of a GUI, we do not have. In addition we do not have the input data, neither the image nor the training data.
Understanding the code without running it is really hard, because it is large. An experienced programmer would not spend 30 or 180 minutes to try to understand code, when he knows, that somebody else can do this in minutes with the debugger, if he has 1. the complete code and 2. the data.
This forum is not the official support of MathWorks, and voluntary helpers do not spend (more than) half an hour to understand a problem. If the problem is clear in minutes, it happens that users spend hours to find the best solution. But when it is not clear, the chance is high that the time is wasted.
The best strategy to solve your problem based on the currently given information is to suggest you to use the debugger. See some break points in the code and step through the program line by line. Examine the values in the command window or WorkSpace-browser. I do not see a way how the forum can support you here.
If you narrow down the problem to less than 50 lines of code, present this code with inputs, such that we can run it by copy&paste, further assistence is likely.
More Answers (1)
Image Analyst
on 21 Jun 2017
My crystal ball is a little better than John's - I just got it back from being polished at the Mathworks. It tells me that the path to a solution lies here and here.
John, make another attempt to go to San Diego. It's an awesome city - my favorite in the whole world - and scientifically proven (by Syracuse University) to have the most uniform temperature of any city. If you like the four seasons, it's still got them, but instead of spring, summer, fall, and winter, they're called beautiful, fantastic, incredible, and paradise.
6 Comments
John D'Errico
on 25 Jun 2017
Edited: John D'Errico
on 25 Jun 2017
I did make it to San Diego once. 'Twas darn pretty. I've gotta admit I love the Northeast though. Lush trees keep the deck in dappled shade much of the day. Sun sparkling off the water like tiny diamonds. Ok, 3 feet of snow at a time can be a damper some days. :)
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!