필터 지우기
필터 지우기

Need general ideas for calculating angle from an image using centroid

조회 수: 2 (최근 30일)
Sarmad Paracha
Sarmad Paracha 2019년 3월 7일
답변: darova 2019년 4월 5일
Hello there. I am working on a fire detection project. In this project i need to detect fire and calculate the exact angle at which the fire is present and then extingiush it. I have interfaced matlab with arduino. I have done all the coding for the detection of the fire all that is left is calculating the physical angles. I am a bit confused and i need some general approach to how to tackle this. I know that distance between the camera and the motors matter and so does the distance of the fire. How can i use centroid to calculate the degrees. How much i need to turn the motors in x and y axis so that it will point exaclty at the fire.
please provide any general Ideas.
Thanks.
  댓글 수: 2
darova
darova 2019년 3월 7일
can you attach a picture with explanations?
Sarmad Paracha
Sarmad Paracha 2019년 3월 8일
sure. Here is a model. image captured through camera. Motors moving in x and y axis. These might help.
model.PNGfire.PNG
motors.PNG

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

답변 (1개)

darova
darova 2019년 4월 5일
First of all you have to measure your main dimensions. Red rectangle on the picture below is your red boundary table.
Let's place origin of coordinate system like on the image (for example). You need to calibrate your bottom motor
expl1.png
Remember about eccentricity (if you have). For correcting your angle for more precision:
scheme2.png
Angle of the top motor (remember about eccentricity too). dx, dy - values from the first picture:
expl3.png
About camera. It depends on how far your candle will be (how big angle will be).
camera.png
Ask something
Sorry for late resonse, have'n seen you answered

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by