For imports & edit gitignore

This commit is contained in:
HeshamTB 2018-11-18 12:47:06 +03:00
parent 83f3765bf1
commit 547a5ee001
4 changed files with 36 additions and 4 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*.[Jj][Pp][Gg]
*.pyc

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{c5bcf1ad-e7a4-41be-8f0e-28db4b669eec}</ProjectGuid>
<ProjectHome />
<StartupFile>main.py</StartupFile>
<SearchPath />
<WorkingDirectory>.</WorkingDirectory>
<OutputPath>.</OutputPath>
<ProjectTypeGuids>{888888a0-9f3d-457c-b088-3a5042f75d52}</ProjectTypeGuids>
<LaunchProvider>Standard Python launcher</LaunchProvider>
<InterpreterId />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'" />
<PropertyGroup Condition="'$(Configuration)' == 'Release'" />
<PropertyGroup>
<VisualStudioVersion Condition=" '$(VisualStudioVersion)' == '' ">10.0</VisualStudioVersion>
</PropertyGroup>
<ItemGroup>
<Compile Include="main.py" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
</Project>

12
main.py
View File

@ -1,11 +1,17 @@
from time import sleep
from picamera import PiCamera
from io import BytesIO
import cv2
import numpy as np
import os
try:
import numpy as np
from picamera import PiCamera
import cv2
except Exception as ex:
print('[ Error ] some depandincies are missing\n'+ str(ex.args))
def init():
go = True
print('Initilizing Camera and cascade components..')

Binary file not shown.