Process a depth image with parameterized blurs, edge detection, and optional Hough (Hue) line detection, then review all results in a generated PDF.
pdflatex
with the minted packagePython 3
andopencv-python
pip install opencv-python
# (If LaTeX uses minted, ensure pygments is present and compile with --shell-escape)
Replace the sample images/depth_image.*
with your depth image (keep the same filename).
python3 main.py
Open pdf/document.pdf
and browse the pages to pick the picture that best matches your desired output.
Filenames encode the methods and parameters you need.
Example: median_10_canny_100_300
→ median blur (kernel 41) + Canny thresholds 100, 300.
Use those numbers as the function parameters in your code.
Take the parameters you selected in step 4, put them into hueline_detect.py
, run it, then choose the corresponding Hough/Hue line image from pdf/document.pdf
.
- Blurs: e.g., averaging, Gaussian, median (kernel sizes are encoded; median uses odd kernels).
- Edge detection: Canny thresholds.
- Line detection: Hough transform parameters (via
hueline_detect.py
).
images/ # contains depth_image.*
pdf/ # outputs: document.pdf
Python_file/ # processing scripts, incl. hueline_detect.py
main.py # orchestrates processing + LaTeX build
Tip: If you change methods or kernel ranges, just re-run step 2 and re-check
pdf/document.pdf
.