camera_test
This commit is contained in:
		
							parent
							
								
									3d346863ae
								
							
						
					
					
						commit
						9e990d1b81
					
				
					 2 changed files with 12 additions and 1 deletions
				
			
		
							
								
								
									
										10
									
								
								access_control_python/camera_test.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								access_control_python/camera_test.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
import numpy as np
 | 
			
		||||
import cv2
 | 
			
		||||
import os
 | 
			
		||||
 | 
			
		||||
cam = cv2.VideoCapture(0)
 | 
			
		||||
 | 
			
		||||
ret, frame = cam.read()
 | 
			
		||||
img = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
 | 
			
		||||
 | 
			
		||||
cv2.imwrite("cam_test_img.jpg",img)
 | 
			
		||||
| 
						 | 
				
			
			@ -1,2 +1,3 @@
 | 
			
		|||
pyserial
 | 
			
		||||
line_notify
 | 
			
		||||
line_notify
 | 
			
		||||
opencv-python
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue