matlab-deep-learning / Seven-Segment-Digit-Recognition

Seven Segment Digit Recognition in MATLAB
https://www.mathworks.com/products/deep-learning.html
Other
6 stars 0 forks source link

Error while Testing with New Image #1

Closed prabhu-buildbot closed 10 months ago

prabhu-buildbot commented 11 months ago

Hi, I am Newbee to this environment.. I have cloned the repo and opened in matlab and tried the commands as it in readme file it works well. When i place a new pic .jpg in images folder and tried with steps had mentioned i am getting the error

addpath('src','images');
>> orgImg = imread('new.jpg');
>> [image, imageScale] = helper.preprocess(orgImg);
>> boundingBoxes = helper.textDetection(image,imageScale);
Pretrained Text Detector already exists.

Index in position 1 exceeds array bounds. Index must not exceed 1.

Error in helper.getQuadBoxes (line 82)
        w = norm(boxes(k,[3 4]) - boxes(k,[1 2]));

Error in helper.textDetection (line 27)
    bboxes = helper.getQuadBoxes(regionScore, affinityScore, textThreshold, linkThreshold, lowText);

"I have one more question: Will this repository also work without MATLAB?"

Thank You

viakkala commented 10 months ago

Prabhu, the problem might stem from the helper.textDetection's inability to process multiple bounding boxes. Please verify that the number of boxes at line 82 does not exceed one. If troubleshooting proves challenging, consider utilizing MATLAB's ocr function, and configure the model's Name-Value Pair argument to "seven-segment".

RE>> I have one more question: Will this repository also work without MATLAB? The repository is non-functional without MATLAB.