# Plant asessment and counting in PIX4Dfields! 🌳

**URL:** https://community.pix4d.com/t/plant-asessment-and-counting-in-pix4dfields/26141
**Category:** Workflow and Application
**Created:** [April 19, 2023, 7:06am UTC](https://community.pix4d.com/t/plant-asessment-and-counting-in-pix4dfields/26141 "2023-04-19T07:06:17Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Jose.Arnaudo](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/jose.arnaudo/32/5966_2.png) [@Jose.Arnaudo](https://community.pix4d.com/u/Jose.Arnaudo)
#### Post date: [April 19, 2023, 7:06am UTC](https://community.pix4d.com/t/plant-asessment-and-counting-in-pix4dfields/26141/1 "2023-04-19T07:06:17Z")

</div>

Great performance of #Agriculture over a citrus grove planted in a square layout!

Objective 🎯 : Tree assessment and counting using the Magic Tool.

Conclusion:  
📉 Low-performing trees identified.  
🌲🌲 600 trees counted, 1% error.

1- Orthomosaic from high-resolution RGB drone imagery (4cm/pixel)

 ![1_Plantation](https://global.discourse-cdn.com/pix4d/original/2X/9/94c6e8ddec0bde7aec9b38fa4ee2217b61a08015.jpeg)

2 - Magic Tool in action, grid showing automatic classification, after some refinement by hand, selection done.

 ![2_MacitTool_Grid_2300dpis](https://global.discourse-cdn.com/pix4d/original/2X/a/adbc7d54820857d8e22272109b130163f69f87e9.jpeg)

3 - Select Conver to “Area annotation”. Magic Tool provides an area annotation for each tree detected.  
 ![image](https://global.discourse-cdn.com/pix4d/original/2X/e/ef126a657ca37ca0a03277635718fa04c6ef31da.png)

Afterward, separate it into single polygons. Click Edit, and Create single polygons.

 ![image](https://global.discourse-cdn.com/pix4d/original/2X/9/91cc48bea225254f8adc3069f5638b2c2e12f6ea.jpeg)

 ![3_PlantasDetectadas_zommout](https://global.discourse-cdn.com/pix4d/original/2X/f/fbd7750e66f7ce9f30da6b916ab53ded2e8a5d97.jpeg)

4 - After exporting TGI index statistics per tree, low index trees can be identified.

 ![4_IdentificaciondePlantasEnfermas_Statistics](https://global.discourse-cdn.com/pix4d/original/2X/f/fc2b745b369a09563d3a51cbbe9d28b36b2fe02e.jpeg)

Try it yourself! [Download Pix4D software](https://www.pix4d.com/download/pix4dfields/)  
Learn how to use the Magic tool: [https://www.youtube.com/watch?v=2NQW4YAKRVY&t=4s](https://www.youtube.com/watch?v=2NQW4YAKRVY&t=4s)

---

<div class="post-metadata">

### Author: ![cwabsaadm](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@cwabsaadm](https://community.pix4d.com/u/cwabsaadm)
#### Post date: [April 4, 2024, 11:20am UTC](https://community.pix4d.com/t/plant-asessment-and-counting-in-pix4dfields/26141/5 "2024-04-04T11:20:13Z")

</div>

How do I export to get the TGI Index statistics per tree.  
I check all tutorials I cannot find one to explain this.

---

<div class="post-metadata">

### Author: ![pascal.tsekpui](https://avatars.discourse-cdn.com/v4/letter/p/51bf81/32.png) [@pascal.tsekpui](https://community.pix4d.com/u/pascal.tsekpui)
#### Post date: [April 4, 2024, 7:35pm UTC](https://community.pix4d.com/t/plant-asessment-and-counting-in-pix4dfields/26141/6 "2024-04-04T19:35:13Z")

</div>

je n’arrive pas à obtenir un polygone unique par plante mais des pixels par plantes qui ne me facilite pas le comptage, comment faire?

---

<div class="post-metadata">

### Author: ![Julius\_Petri](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/julius_petri/32/4592_2.png) [@Julius\_Petri](https://community.pix4d.com/u/Julius_Petri)
#### Post date: [April 8, 2024, 6:00am UTC](https://community.pix4d.com/t/plant-asessment-and-counting-in-pix4dfields/26141/7 "2024-04-08T06:00:38Z")

</div>

1. You need to convert the MagicTool annotation into single polygons:  

2. Copy them to the TGI index layer if they are not already present.

3. Export → Statistics

 ![image](https://global.discourse-cdn.com/pix4d/original/2X/5/57fa951cc9f61304f9830893f84e0f1293121b4d.png)

---

<div class="post-metadata">

### Author: ![dinghua760612](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dinghua760612](https://community.pix4d.com/u/dinghua760612)
#### Post date: [July 17, 2024, 2:34am UTC](https://community.pix4d.com/t/plant-asessment-and-counting-in-pix4dfields/26141/8 "2024-07-17T02:34:04Z")

</div>

I I want you data ,  
I want to study  
how can I get it 😂

---

<div class="post-metadata">

### Author: ![harry](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@harry](https://community.pix4d.com/u/harry)
#### Post date: [September 9, 2024, 8:01am UTC](https://community.pix4d.com/t/plant-asessment-and-counting-in-pix4dfields/26141/9 "2024-09-09T08:01:48Z")

</div>

Regarding single polygons, how many can the software handle? I’ve tried within the range of 900-2000 and it’s unsurprisingly causes a noticable drop in performance. Are there any tips on managing it? The polygons are imported as a .shp file from other software.

---

<div class="post-metadata">

### Author: ![Jose.Arnaudo](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/jose.arnaudo/32/5966_2.png) [@Jose.Arnaudo](https://community.pix4d.com/u/Jose.Arnaudo)
#### Post date: [September 10, 2024, 8:33am UTC](https://community.pix4d.com/t/plant-asessment-and-counting-in-pix4dfields/26141/10 "2024-09-10T08:33:44Z")

</div>

This dataset is part of our training course [PIX4Dfields certification](https://training.pix4d.com/bundles/pix4dfields-essentials-online-course-and-certification-exam)

---

<div class="post-metadata">

### Author: ![Jose.Arnaudo](https://sea2.discourse-cdn.com/pix4d/user_avatar/community.pix4d.com/jose.arnaudo/32/5966_2.png) [@Jose.Arnaudo](https://community.pix4d.com/u/Jose.Arnaudo)
#### Post date: [September 10, 2024, 8:35am UTC](https://community.pix4d.com/t/plant-asessment-and-counting-in-pix4dfields/26141/11 "2024-09-10T08:35:42Z")

</div>

The low performance is expected. There is no fixed number and it will depend on the computer specs.

Try cleaning the shapefile if it has more than one column of information. Where is this shp from?

---

<div class="post-metadata">

### Author: ![harry](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@harry](https://community.pix4d.com/u/harry)
#### Post date: [September 10, 2024, 2:39pm UTC](https://community.pix4d.com/t/plant-asessment-and-counting-in-pix4dfields/26141/12 "2024-09-10T14:39:39Z")

</div>

Fair enough, the .shp will be from other software I’m using DF Scanner for AI mapping tree crowns.
