Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- for i in char*.jpg
- do
- cp -f $i temp_1.jpg
- vfmt if=temp_1.jpg -jpeg of=temp_2.vx
- #Cnverts to bilevel
- binary if=temp_2.vx of=temp_3.vx
- # Applies Boundary
- boundingbox if=temp_3.vx of=dummy.vx
- xl=$(awk '{print $1}' bbox.txt)
- yl=$(awk '{print $2}' bbox.txt)
- c=$(awk '{print $3}' bbox.txt)
- vclip if=temp_3.vx p=$xl,$yl s=$c of=temp4.vx
- vibbox if=temp_4.vx of=temp5.vx -xy
- vimag if=temp_5.vx of=temp6.vx s=20,20,1
- vibbox if=temp_6.vx of=t7.vx -xy
- append if=temp7.vx of=temp8.vx
- vibbox if=temp8.vx of=temp9.vx -xy
- #center of mass
- com if=temp9.vx of=temp10.vx
- vibbox if=temp10.vx of=temp11.vx -xy
- vclip if=temp11.vx of=temp12.vx p=14,14 s=28
- vibbox if=temp12.vx of=temp13.vx -xy
- invert if=t13.vx of=temp14.vx
- vxport if=temp14.vx of=temp15.png -png
- name=$(echo "$i")
- cp temp15.png $charnew{name}.png
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement