a few doc/exemples for blz
This commit is contained in:
		
							parent
							
								
									c8faa77904
								
							
						
					
					
						commit
						0f245582d5
					
				| @ -1,7 +1,8 @@ | ||||
| # Exemples de scripts | ||||
| 
 | ||||
| _Attention_, ce ne sont que des exemples, pas forcément adaptés | ||||
| à une utilisation dans le monde réel. | ||||
| à une utilisation dans le monde réel. Mais vous pouvez vous en | ||||
| inspirer pour vos usecases personnels. | ||||
| 
 | ||||
| ## shoot.sh | ||||
| 
 | ||||
| @ -20,5 +21,13 @@ en dur dans le code. | ||||
| Comment générer des videos psychotiques avec un peu de bash. | ||||
| Ce script est expliqué dans la documentation PDF. | ||||
| 
 | ||||
| ## capture.sh & conf.sh | ||||
| 
 | ||||
| Ce [script](./capture.sh) sert à capturer une séquence d'image depuis | ||||
| une webcam. | ||||
| Deux choses à noter : il utilise un fichier de configuration | ||||
| (`source [./conf.sh](./conf.sh)) pour ajuster son fonctionnement, et il | ||||
| extrait juste une portion de l'image capturée. Une belle avancée, | ||||
| puisque cela ajoute quelques possibilités de recadrage dès | ||||
| la prise de vue. | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										26
									
								
								scripts/capture.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										26
									
								
								scripts/capture.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,26 @@ | ||||
| #!/bin/bash | ||||
| 
 | ||||
| #  | ||||
| 
 | ||||
| source ./conf.sh | ||||
| 
 | ||||
| DEVICE="/dev/video0" | ||||
| GOPT=" -v -s 1920x1080  -p 0 -n 30" | ||||
| OUTD=$GRABDIR | ||||
| TMPG="/dev/shm/tmpgrab.fimg" | ||||
| 
 | ||||
| for idx in $(seq  0 2399) | ||||
| do | ||||
| 
 | ||||
| 	# take the picz | ||||
| 	${GRAB} -d ${DEVICE} ${GOPT} -o ${TMPG} | ||||
| 
 | ||||
| 	# only take the good spot | ||||
| 	fimg=$(printf "%s/%05d.fimg" ${OUTD} ${idx}) | ||||
| 	${EXTR} ${TMPG} 800,600,560,240 ${fimg} | ||||
| 
 | ||||
| 	echo | ||||
| 	sleep $DELAY_GRAB | ||||
| 
 | ||||
| done | ||||
| 
 | ||||
							
								
								
									
										36
									
								
								scripts/conf.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								scripts/conf.sh
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,36 @@ | ||||
| 
 | ||||
| # | ||||
| #	location of some tools | ||||
| # | ||||
| 
 | ||||
| GRAB="$HOME/Devel/FloatImg/v4l2/grabvidseq" | ||||
| MKFX="$HOME/Devel/FloatImg/tools/fimgfx" | ||||
| MDAT="$HOME/Devel/FloatImg/tools/fimgmetadata" | ||||
| EXTR="fimgextract" | ||||
| INTERPOLATOR="$HOME/Devel/FloatImg/Fonderie/interpolator" | ||||
| FONDERIE="$HOME/Devel/FloatImg/Fonderie/fonderie" | ||||
| SINGLEPASS="$HOME/Devel/FloatImg/Fonderie/singlepass" | ||||
| 
 | ||||
| 
 | ||||
| NBPASS=2400 | ||||
| DELAY_GRAB=3 | ||||
| IDXLINKFARM=0 | ||||
| 
 | ||||
| # | ||||
| #	working directories | ||||
| # | ||||
| GRABDIR="rush" | ||||
| GIFDIR="gif89a" | ||||
| 
 | ||||
| # | ||||
| #	text plotting conf | ||||
| FONT="Noto-Sans-Bold" | ||||
| KERNING=1 | ||||
| SIGNATURE="... tTh 2023 ..." | ||||
| 
 | ||||
| # | ||||
| #	filter chains for fondulations | ||||
| # | ||||
| IF="cos01:colmixa:pow2" | ||||
| OF="shiftln0:liss3x3" | ||||
| 
 | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 tTh
						tTh