|
|
@ -9,36 +9,39 @@ source .venv/bin/activate
|
|
|
|
#----------------------------Configuration------------------------------#
|
|
|
|
#----------------------------Configuration------------------------------#
|
|
|
|
|
|
|
|
|
|
|
|
# place all image files to one folder
|
|
|
|
# place all image files to one folder
|
|
|
|
input_path=res/test/Jenetrics/leva
|
|
|
|
input_path=res/test
|
|
|
|
|
|
|
|
|
|
|
|
# !!!!!!!!!!!!!!!!!!
|
|
|
|
# !!!!!!!!!!!!!!!!!!
|
|
|
|
# this is very important, run this on directories containing files with the same dpi
|
|
|
|
# this is very important, run this on directories containing files with the same dpi
|
|
|
|
dpi=600
|
|
|
|
dpi=500
|
|
|
|
# !!!!!!!!!!!!!!!!!!
|
|
|
|
# !!!!!!!!!!!!!!!!!!
|
|
|
|
|
|
|
|
|
|
|
|
# recommend png, it's supported by opencv
|
|
|
|
# recommend png, it's supported by opencv
|
|
|
|
format=png
|
|
|
|
format=tif
|
|
|
|
|
|
|
|
|
|
|
|
# name of configuration file
|
|
|
|
# name of configuration file
|
|
|
|
config_file=conf/conf.json
|
|
|
|
config_file=conf/conf.json
|
|
|
|
|
|
|
|
|
|
|
|
# name of preset in conf. file
|
|
|
|
# name of preset in conf. file
|
|
|
|
#presets=("strong" "test-weak" "test-repeat" "test-strong")
|
|
|
|
|
|
|
|
presets=("ridge")
|
|
|
|
presets=("ridge")
|
|
|
|
|
|
|
|
|
|
|
|
# generate stl files and set generation mode {"planar", "curved", "mapped"}
|
|
|
|
# generate stl files and set generation mode {"planar", "curved", "mapped"}
|
|
|
|
generate_stl=true
|
|
|
|
generate_stl=false
|
|
|
|
generate_stl_mode="curved"
|
|
|
|
generate_stl_mode="planar"
|
|
|
|
|
|
|
|
|
|
|
|
# in 1/10 of milimeters
|
|
|
|
# in 1/10 of milimeters
|
|
|
|
height_line=2.5
|
|
|
|
height_line=2.5
|
|
|
|
height_base=6
|
|
|
|
height_base=2
|
|
|
|
|
|
|
|
|
|
|
|
curv_x=1.3
|
|
|
|
curv_x=1.3
|
|
|
|
curv_y=3
|
|
|
|
curv_y=3
|
|
|
|
|
|
|
|
|
|
|
|
#----------------------------Application---------------------------#
|
|
|
|
iteration=1
|
|
|
|
|
|
|
|
finger_x=0
|
|
|
|
|
|
|
|
finger_y=0
|
|
|
|
|
|
|
|
finger_z=0
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: check if file will overwrite the original, print warning if that's the case
|
|
|
|
#----------------------------Application---------------------------#
|
|
|
|
|
|
|
|
|
|
|
|
# function to apply filter to all files in directory
|
|
|
|
# function to apply filter to all files in directory
|
|
|
|
apply_filter() {
|
|
|
|
apply_filter() {
|
|
|
|