Open Foxy6670 opened 1 year ago
This is related to the fact, that the calculation of the patterns with returned a float value, replace:
pattern_width = depth_map.size[0] / args.pattern_div
with:
pattern_width = int(depth_map.size[0] / args.pattern_div)
You are almost certainly are using Python 3 the code is written for Python 2, you'll need to fix few more things:
xrange
with range
pattern
array to int, since Numpy uses a different int
internally.:
int(pattern[x, y])
Every time I try to run
./example.sh
, this happens: