Skip to content

Commit

Permalink
dev version 190620_2330
Browse files Browse the repository at this point in the history
  • Loading branch information
lbborkowski committed Jun 21, 2019
1 parent 5121d10 commit 4f29478
Showing 1 changed file with 59 additions and 6 deletions.
65 changes: 59 additions & 6 deletions WindTurbineDetector_dev.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,53 @@
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "eU99BVQ-wbaT",
"colab_type": "code",
"colab": {}
},
"source": [
"width, height = image.size\n",
"print(width)\n",
"print(height)"
],
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "vZaiQXMSw5i-",
"colab_type": "code",
"colab": {}
},
"source": [
"box = (300, 300,\n",
" width-300,\n",
" height-300)\n",
"image.crop(box).save('test.jpg')"
],
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "CuLu6Cl4xYxO",
"colab_type": "code",
"colab": {}
},
"source": [
"testIm=Image.open('test.jpg')\n",
"test_width, test_height = testIm.size\n",
"print(test_width)\n",
"print(test_height)"
],
"execution_count": 0,
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -530,8 +577,8 @@
"sys.path.append(\"..\")\n",
"from object_detection.utils import ops as utils_ops\n",
"\n",
"if StrictVersion(tf.__version__) < StrictVersion('1.9.0'):\n",
" raise ImportError('Please upgrade your TensorFlow installation to v1.9.* or later!')"
"#if StrictVersion(tf.__version__) < StrictVersion('1.9.0'):\n",
"# raise ImportError('Please upgrade your TensorFlow installation to v1.9.* or later!')"
],
"execution_count": 0,
"outputs": []
Expand Down Expand Up @@ -937,10 +984,16 @@
" #print(lines[74][34:])\n",
" #print(lines[75])\n",
" #print(lines[75][34:])\n",
" westEdge.append(float(lines[72][33:]))\n",
" eastEdge.append(float(lines[73][33:]))\n",
" northEdge.append(float(lines[74][34:]))\n",
" southEdge.append(float(lines[75][34:]))\n",
" \n",
" #westEdge.append(float(lines[72][33:]))\n",
" #eastEdge.append(float(lines[73][33:]))\n",
" #northEdge.append(float(lines[74][34:]))\n",
" #southEdge.append(float(lines[75][34:]))\n",
" \n",
" westEdge.append(-94.8178888)\n",
" eastEdge.append(-94.7464999)\n",
" northEdge.append(41.3151166)\n",
" southEdge.append(41.2473638)\n",
" fid.close()\n",
" \n",
"print(westEdge)\n",
Expand Down

0 comments on commit 4f29478

Please sign in to comment.