Skip to content

Commit

Permalink
images and KY CAFO input added
Browse files Browse the repository at this point in the history
  • Loading branch information
Qberto committed Oct 20, 2017
1 parent 21e89ce commit 35d6a03
Show file tree
Hide file tree
Showing 1,319 changed files with 28,197 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Please consider this project and all aspects of this repository as beta, with ex

Goal: The goal of this step is to extract images containing satellite imagery over a known CAFO location. These images will be manually labeled for the PASCAL_VOC format that a TensorFlow model can interpret for CNN development.

Description: Using an ArcGIS Pro project, we will leverage two data sources to build our model inputs: a [NAIP imagery service](https://naip.arcgis.com/arcgis/services/NAIP/ImageServer) and a feature class containing identified CAFO sites in Kentucky used in a image classification workshop.
Description: Using an ArcGIS Pro project, we will leverage two data sources to build our model inputs: a [NAIP imagery service](https://naip.arcgis.com/arcgis/services/NAIP/ImageServer) and a feature class containing identified CAFO sites in Kentucky (gis_inputs/ky_afo_lonx_nonzero) used in a image classification workshop.

The 1_image_exporter.py script iterates on each record of the Kentucky feature class containing CAFO sites, loading the NAIP imagery at the location at three different specified scales: 1:1000; 1:2000; and 1:3000, and exporting each as a .JPEG image in a designated directory. A total of 250 locations are used, resulting in 750 input features (3 for each location) for training and testing.

Expand Down
1 change: 1 addition & 0 deletions gis_inputs/ky_afo_lonx_nonzero/ky_afo_lonx_nonzero.cpg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
1 change: 1 addition & 0 deletions gis_inputs/ky_afo_lonx_nonzero/ky_afo_lonx_nonzero.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
Empty file.
Binary file not shown.
Binary file added images/test/img_168_1000.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions images/test/img_168_1000.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<annotation>
<folder>cafo_trained_images</folder>
<filename>img_168_1000.jpg</filename>
<path>C:\Users\albe9057\Documents\ANieto_SolutionEngineering\Projects\EPA\ArcGISPythonAPI_for_EPA\Inputs\cafo_trained_images\img_168_1000.jpg</path>
<source>
<database>Unknown</database>
</source>
<size>
<width>816</width>
<height>1056</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>371</xmin>
<ymin>388</ymin>
<xmax>511</xmax>
<ymax>511</ymax>
</bndbox>
</object>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>358</xmin>
<ymin>141</ymin>
<xmax>507</xmax>
<ymax>260</ymax>
</bndbox>
</object>
</annotation>
Binary file added images/test/img_168_2000.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions images/test/img_168_2000.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<annotation>
<folder>cafo_trained_images</folder>
<filename>img_168_2000.jpg</filename>
<path>C:\Users\albe9057\Documents\ANieto_SolutionEngineering\Projects\EPA\ArcGISPythonAPI_for_EPA\Inputs\cafo_trained_images\img_168_2000.jpg</path>
<source>
<database>Unknown</database>
</source>
<size>
<width>816</width>
<height>1056</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>379</xmin>
<ymin>334</ymin>
<xmax>459</xmax>
<ymax>396</ymax>
</bndbox>
</object>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>391</xmin>
<ymin>459</ymin>
<xmax>457</xmax>
<ymax>518</ymax>
</bndbox>
</object>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>419</xmin>
<ymin>141</ymin>
<xmax>471</xmax>
<ymax>226</ymax>
</bndbox>
</object>
</annotation>
Binary file added images/test/img_168_3000.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions images/test/img_168_3000.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<annotation>
<folder>cafo_trained_images</folder>
<filename>img_168_3000.jpg</filename>
<path>C:\Users\albe9057\Documents\ANieto_SolutionEngineering\Projects\EPA\ArcGISPythonAPI_for_EPA\Inputs\cafo_trained_images\img_168_3000.jpg</path>
<source>
<database>Unknown</database>
</source>
<size>
<width>816</width>
<height>1056</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>417</xmin>
<ymin>270</ymin>
<xmax>448</xmax>
<ymax>325</ymax>
</bndbox>
</object>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>389</xmin>
<ymin>397</ymin>
<xmax>442</xmax>
<ymax>439</ymax>
</bndbox>
</object>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>399</xmin>
<ymin>483</ymin>
<xmax>441</xmax>
<ymax>521</ymax>
</bndbox>
</object>
</annotation>
Binary file added images/test/img_169_1000.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions images/test/img_169_1000.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<annotation>
<folder>cafo_trained_images</folder>
<filename>img_169_1000.jpg</filename>
<path>C:\Users\albe9057\Documents\ANieto_SolutionEngineering\Projects\EPA\ArcGISPythonAPI_for_EPA\Inputs\cafo_trained_images\img_169_1000.jpg</path>
<source>
<database>Unknown</database>
</source>
<size>
<width>816</width>
<height>1056</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>123</xmin>
<ymin>325</ymin>
<xmax>255</xmax>
<ymax>419</ymax>
</bndbox>
</object>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>280</xmin>
<ymin>890</ymin>
<xmax>419</xmax>
<ymax>1051</ymax>
</bndbox>
</object>
</annotation>
Binary file added images/test/img_169_2000.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions images/test/img_169_2000.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<annotation>
<folder>cafo_trained_images</folder>
<filename>img_169_2000.jpg</filename>
<path>C:\Users\albe9057\Documents\ANieto_SolutionEngineering\Projects\EPA\ArcGISPythonAPI_for_EPA\Inputs\cafo_trained_images\img_169_2000.jpg</path>
<source>
<database>Unknown</database>
</source>
<size>
<width>816</width>
<height>1056</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>264</xmin>
<ymin>423</ymin>
<xmax>330</xmax>
<ymax>469</ymax>
</bndbox>
</object>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>343</xmin>
<ymin>707</ymin>
<xmax>427</xmax>
<ymax>798</ymax>
</bndbox>
</object>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>608</xmin>
<ymin>570</ymin>
<xmax>699</xmax>
<ymax>691</ymax>
</bndbox>
</object>
</annotation>
Binary file added images/test/img_169_3000.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions images/test/img_169_3000.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<annotation>
<folder>cafo_trained_images</folder>
<filename>img_169_3000.jpg</filename>
<path>C:\Users\albe9057\Documents\ANieto_SolutionEngineering\Projects\EPA\ArcGISPythonAPI_for_EPA\Inputs\cafo_trained_images\img_169_3000.jpg</path>
<source>
<database>Unknown</database>
</source>
<size>
<width>816</width>
<height>1056</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>308</xmin>
<ymin>457</ymin>
<xmax>356</xmax>
<ymax>491</ymax>
</bndbox>
</object>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>366</xmin>
<ymin>649</ymin>
<xmax>415</xmax>
<ymax>711</ymax>
</bndbox>
</object>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>532</xmin>
<ymin>556</ymin>
<xmax>604</xmax>
<ymax>643</ymax>
</bndbox>
</object>
</annotation>
Binary file added images/test/img_170_1000.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions images/test/img_170_1000.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<annotation>
<folder>cafo_trained_images</folder>
<filename>img_170_1000.jpg</filename>
<path>C:\Users\albe9057\Documents\ANieto_SolutionEngineering\Projects\EPA\ArcGISPythonAPI_for_EPA\Inputs\cafo_trained_images\img_170_1000.jpg</path>
<source>
<database>Unknown</database>
</source>
<size>
<width>816</width>
<height>1056</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>69</xmin>
<ymin>650</ymin>
<xmax>178</xmax>
<ymax>771</ymax>
</bndbox>
</object>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>250</xmin>
<ymin>868</ymin>
<xmax>382</xmax>
<ymax>1056</ymax>
</bndbox>
</object>
</annotation>
Binary file added images/test/img_170_2000.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions images/test/img_170_2000.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<annotation>
<folder>cafo_trained_images</folder>
<filename>img_170_2000.jpg</filename>
<path>C:\Users\albe9057\Documents\ANieto_SolutionEngineering\Projects\EPA\ArcGISPythonAPI_for_EPA\Inputs\cafo_trained_images\img_170_2000.jpg</path>
<source>
<database>Unknown</database>
</source>
<size>
<width>816</width>
<height>1056</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>232</xmin>
<ymin>586</ymin>
<xmax>295</xmax>
<ymax>649</ymax>
</bndbox>
</object>
<object>
<name>cafo</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>334</xmin>
<ymin>699</ymin>
<xmax>403</xmax>
<ymax>796</ymax>
</bndbox>
</object>
</annotation>
Binary file added images/test/img_170_3000.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 35d6a03

Please sign in to comment.