Azzera filtri
Azzera filtri

Find the edge of the screen and crop

1 visualizzazione (ultimi 30 giorni)
lukbe
lukbe il 26 Gen 2016
Commentato: lukbe il 26 Gen 2016

Hello,I have this photo:

And I need to find a white marking in the corner, and crop photos. Is possible use this :

    I1 = imread('IMG_20160126_202236.jpg');
    I = rgb2gray(I1);
    C = corner(I,'Harris',50);

For find corner and I do not know how to cut it :(

Please can you help me to automatize this proces. Thank you

Risposte (1)

Image Analyst
Image Analyst il 26 Gen 2016
If you're going to be needing to find monitors in all kinds of environments with weird angles and lighting and colors, then you might need to use something from the Computer Vision System Toolbox. I don't think the corner detector will work. Perhaps Dima (the developer of it) will answer.
Another option, if you don't have the CVST, is to use stdfilt() in the Image Processing Toolbox and find areas that are fairly uniform. Then threshold, fill holes, and get the convex hull.
  3 Commenti
Image Analyst
Image Analyst il 26 Gen 2016
Well we don't want to put a ton of effort in handling a crummy photo that you'll never end up having. There would have to be lots of code to handle pathological images that we wouldn't need if we had a decent picture. Post a good photo - one we can segment with little trouble.
lukbe
lukbe il 26 Gen 2016
OK, I capture display with DSLR.

Accedi per commentare.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by