Tree Age Counter

in #utopian-io6 years ago (edited)

This project is an academic work. Artificial intelligence is a professor in your class. I want to calculate the age of trees in the tree photo. The project was carried out with the following algorithmic steps.

Used Tools

  • Python
  • Flask
  • Opencv

I use it for API

  • Pyimgur

Demo Address: Tree Age Counter

screencapture-159-65-21-161-1517230343255.png

  • I rented a server. I will make it more useful later on with the domain.

How to use?

  • We need a picture of a tree body. It processes this image according to the following algorithm and finds an estimated age value.

  • Do not forget! If you do not give the image of the tree, the algorithm will work on it again; because I can not control the content of the picture !!

Algorithm

Making the picture understandable on the computer

  • Salt and pepper are removed. (Teory)
  • A threshold value has been determined.
  • The colors below the threshold are white, the colors above are black colored. (The picture now consists of two colors!)
  • The circles in the picture are scanned. There are about 2000 iterations. It is located in the middle of the circle. If there are more than one circle, it is always the same point.

Screen Shot 2018-01-29 at 15.53.29.png

Do count the circles in the picture

  • The picture is divided into 4 part. (This number may increase depending on the request.)
  • Each part is aligned with the mirror effect.
  • 4 pieces; It is controlled to [0,0] [n, n]. = ([1,1], [2,2] ..)
  • When we see black, the circle counter is set.
  • When we see white, the circle counter is reset.
  • Circle counters are all collected
  • The result is divided into 4 results.

Screen Shot 2018-01-29 at 15.53.40.png

Screenshot

screencapture-159-65-21-161-1517230322437.png

Result

  • Agacin in black and white.
  • About age.

Is there some mistake?

If you find any mistakes, do not hesitate to tell me, I will be back.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

Please ask a peer if they could review your post and correct some spelling mistakes and check your sentences for proper English meaning.

You can contact us on Discord.
[utopian-moderator]

Hey @helo, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

Thank you, I will check once more before I send. :)

Hey @tolgahanuzun I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

This is interesting knowledge at work there. A great innovation.... well appreciated.

This is interesting knowledge at work there. A great innovation.... well appreciated.

Coin Marketplace

STEEM 0.27
TRX 0.11
JST 0.031
BTC 67831.12
ETH 3801.93
USDT 1.00
SBD 3.75