MATLAB Answers


Extracting the screen of a calculator from an image

Asked by Soumyadip
on 3 May 2013


I have the following images:

Now I am trying to do a program to extract the calculator screen only from the whole image. The above two are just sample images. I thought of using bwboundaries() function but can't implement it. Can anybody help with a generalized algorithm???


For bwboundaries() you need a binary image, so first you'd have to have already segmented out the display. I thought you solved this a month ago when you were posting on it. No? Are you starting all over, from scratch?

Actually I had exams, so could not devote much time to this. Yeah, I converted the image to binary but how to segment the display? That's the whole objective of this question. The B matrix in B = bwboundaries(BW) returns the row and column coordinates of all the boundary pixels. How to understand which one means the screen boundaries? It would also help if you suggest any other method to extract the screen..

Thanks in advance

0 Answers

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!