For imports & edit gitignore
This commit is contained in:
		
							parent
							
								
									83f3765bf1
								
							
						
					
					
						commit
						547a5ee001
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -1 +1,2 @@
 | 
			
		||||
*.[Jj][Pp][Gg]
 | 
			
		||||
*.pyc
 | 
			
		||||
							
								
								
									
										25
									
								
								FaceRecognition-python.pyproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								FaceRecognition-python.pyproj
									
									
									
									
									
										Normal 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
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								main.py
									
									
									
									
									
								
							@ -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..')
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								untitled.pyc
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								untitled.pyc
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user