필터 지우기
필터 지우기

Find the edge of the screen and crop

조회 수: 1 (최근 30일)
lukbe
lukbe 2016년 1월 26일
댓글: lukbe 2016년 1월 26일

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

답변 (1개)

Image Analyst
Image Analyst 2016년 1월 26일
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
Image Analyst
Image Analyst 2016년 1월 26일
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 2016년 1월 26일
OK, I capture display with DSLR.

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by