live working with image
This commit is contained in:
		
							parent
							
								
									fccc2ba2e5
								
							
						
					
					
						commit
						d9cb5986ee
					
				| @ -179,4 +179,5 @@ else: | ||||
| 
 | ||||
|     for frame in frames: | ||||
|         print('.') | ||||
|         Image.fromarray(np.frombuffer(frame, dtype='>H').reshape(WIDTH, HEIGHT)).save(f'live.png') | ||||
|         Image.fromarray(np.frombuffer(frame, dtype='>H').reshape(WIDTH, HEIGHT)).save(f'live.new.png') | ||||
|         os.rename('live.new.png', 'live.png') | ||||
|  | ||||
							
								
								
									
										3
									
								
								run_live.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								run_live.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,3 @@ | ||||
| #!/bin/bash | ||||
| cd $(dirname $0) | ||||
| sudo ./venv/bin/python ./decode.py --live | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user