Update
Update Tutorial.pdf and test.py
This commit is contained in:
		
							parent
							
								
									0c4ddde256
								
							
						
					
					
						commit
						117a2e6ce0
					
				@ -127,21 +127,6 @@ def test_Buzzer():
 | 
			
		||||
        buzzer.run('0')
 | 
			
		||||
        print ("\nEnd of program")
 | 
			
		||||
           
 | 
			
		||||
import cv2
 | 
			
		||||
def test_Camera():
 | 
			
		||||
        try:
 | 
			
		||||
            print ("\nOpen camera")
 | 
			
		||||
            capturing_Flag = True
 | 
			
		||||
            cap = cv2.VideoCapture(0)
 | 
			
		||||
            while(capturing_Flag):
 | 
			
		||||
                ret, frame = cap.read()
 | 
			
		||||
                cv2.imshow("Capture", frame)
 | 
			
		||||
                cv2.waitKey(5)
 | 
			
		||||
            cv2.destroyAllWindows()
 | 
			
		||||
        except KeyboardInterrupt:
 | 
			
		||||
                print ("\nClose camera")
 | 
			
		||||
                capturing_Flag = False
 | 
			
		||||
        
 | 
			
		||||
# Main program logic follows:
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
 | 
			
		||||
@ -164,8 +149,6 @@ if __name__ == '__main__':
 | 
			
		||||
        test_Adc()  
 | 
			
		||||
    elif sys.argv[1] == 'Buzzer':   
 | 
			
		||||
        test_Buzzer()  
 | 
			
		||||
    elif sys.argv[1] == 'Camera':  
 | 
			
		||||
        test_Camera() 
 | 
			
		||||
 | 
			
		||||
        
 | 
			
		||||
        
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								Tutorial.pdf
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tutorial.pdf
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user