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
- 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.
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.
Screenshot
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
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]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
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!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you, I will check once more before I send. :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @tolgahanuzun I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
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
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This is interesting knowledge at work there. A great innovation.... well appreciated.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This is interesting knowledge at work there. A great innovation.... well appreciated.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit