size error for my own image in "Automatically Detect and Recognize Text in Natural Images" code
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sara Salimi
am 9 Jul. 2015
Kommentiert: Sara Salimi
am 10 Jul. 2015
Hi i tried the following example for Automatically Detect and Recognize Text in Natural Images http://www.mathworks.com/help/vision/examples/automatically-detect-and-recognize-text-in-natural-images.html But I am getting this error when i use my own images. Could you please help me?
Warning: Image is too big to fit on screen; displaying at 50% In images.internal.initSize (line 71) In imshow (line 305)
In OCRExample (line 2)
Warning: Image is too big to fit on screen; displaying at 50%
> In images.internal.initSize (line 71)
In imshow (line 305)
In OCRExample (line 9)
Warning: Image is too big to fit on screen; displaying at 50%
> In images.internal.initSize (line 71)
In imshow (line 305)
In imshowpair (line 124)
In OCRExample (line 22)
Warning: Image is too big to fit on screen; displaying at 50%
> In images.internal.initSize (line 71)
In imshow (line 305)
In OCRExample (line 27)
Warning: Image is too big to fit on screen; displaying at 50%
> In images.internal.initSize (line 71)
In imshow (line 305)
In imshowpair (line 124)
In OCRExample (line 32)
Warning: Image is too big to fit on screen; displaying at 50%
> In images.internal.initSize (line 71)
In imshow (line 305)
In imshowpair (line 124)
In OCRExample (line 45)
Warning: Image is too big to fit on screen; displaying at 50%
> In images.internal.initSize (line 71)
In imshow (line 305)
In OCRExample (line 51)
Warning: Image is too big to fit on screen; displaying at 50%
> In images.internal.initSize (line 71)
In imshow (line 305)
In imshowpair (line 124)
In OCRExample (line 66)
Warning: Image is too big to fit on screen; displaying at 50%
> In images.internal.initSize (line 71)
In imshow (line 305)
In OCRExample (line 77)
2 Kommentare
Akzeptierte Antwort
Julianna Mather
am 9 Jul. 2015
Bearbeitet: Julianna Mather
am 9 Jul. 2015
You can also silence this warning when you don't care to know that your images are being displayed at a lower resolution:
warning('off', 'images:initSize:adjustingMag')
Weitere Antworten (1)
Dima Lisin
am 9 Jul. 2015
Bearbeitet: Dima Lisin
am 9 Jul. 2015
Hi Sara,
That is a warning, not an error. imshow is issuing this warning whenever it has to re-size the image to fit on the screen. In this particular case, you can safely ignore this warning.
If it is too annoying, then the best thing to do is to edit the call to imshow to set the 'InitialMagnification' parameter to 50 or 30. That will explicitly tell imshow to re-size the image, and will help you avoid the warning.
Siehe auch
Kategorien
Mehr zu Basic Display finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!