MATLAB Answers

How can i measure reflection of light from plastic or paper images using cam ?

조회 수: 1(최근 30일)
Hassan Mehmood Khan
Hassan Mehmood Khan 7 Oct 2017
답변: Image Analyst 7 Oct 2017
I am writing a code to capture image of paper/plastic objects using logitech cam. I am able to connect take pictures, but i want to distinguish plastic & Paper images based on their reflection index or any other property which is related to reflection of light.. Need help.
Thank You

  댓글 수: 0

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

답변(1개)

Image Analyst
Image Analyst 7 Oct 2017
Take the mean gray level then threshold.
if mean2(grayImage) > someValue
% It's plastic
else
% It's paper
end
If you need more help, then say why that didn't work and attach a paper image and a plastic image, after you read this link.

  댓글 수: 0

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

Community Treasure Hunt

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

Start Hunting!

Translated by