Refactor PDF handling and add new scripts. Removed specific PDF files from LFS tracking and replaced with a wildcard for all PDFs. Added a script to convert PDFs to PNGs and created new Jupyter notebooks for drawing and marker detection. Added new charuco PDF files for 410x410 markers.
This commit is contained in:
5
.gitattributes
vendored
5
.gitattributes
vendored
@ -1,5 +1,2 @@
|
|||||||
*.parquet filter=lfs diff=lfs merge=lfs -text
|
*.parquet filter=lfs diff=lfs merge=lfs -text
|
||||||
charuco_400x400_3x3_s130_m100_no_24.pdf filter=lfs diff=lfs merge=lfs -text
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
charuco_1189x841_10x7_s115_m90.pdf filter=lfs diff=lfs merge=lfs -text
|
|
||||||
charuco_400x400_3x3_s130_m100_no_16.pdf filter=lfs diff=lfs merge=lfs -text
|
|
||||||
charuco_400x400_3x3_s130_m100_no_20.pdf filter=lfs diff=lfs merge=lfs -text
|
|
||||||
|
|||||||
BIN
board/charuco_410x410_3x3_s133_m105_face0_no_0_DICT_7X7_1000.pdf
LFS
Normal file
BIN
board/charuco_410x410_3x3_s133_m105_face0_no_0_DICT_7X7_1000.pdf
LFS
Normal file
Binary file not shown.
BIN
board/charuco_410x410_3x3_s133_m105_face1_no_4_DICT_7X7_1000.pdf
LFS
Normal file
BIN
board/charuco_410x410_3x3_s133_m105_face1_no_4_DICT_7X7_1000.pdf
LFS
Normal file
Binary file not shown.
BIN
board/charuco_410x410_3x3_s133_m105_face2_no_8_DICT_7X7_1000.pdf
LFS
Normal file
BIN
board/charuco_410x410_3x3_s133_m105_face2_no_8_DICT_7X7_1000.pdf
LFS
Normal file
Binary file not shown.
BIN
board/charuco_410x410_3x3_s133_m105_face3_no_12_DICT_7X7_1000.pdf
LFS
Normal file
BIN
board/charuco_410x410_3x3_s133_m105_face3_no_12_DICT_7X7_1000.pdf
LFS
Normal file
Binary file not shown.
BIN
board/charuco_410x410_3x3_s133_m105_face4_no_16_DICT_7X7_1000.pdf
LFS
Normal file
BIN
board/charuco_410x410_3x3_s133_m105_face4_no_16_DICT_7X7_1000.pdf
LFS
Normal file
Binary file not shown.
BIN
board/charuco_410x410_3x3_s133_m105_face5_no_20_DICT_7X7_1000.pdf
LFS
Normal file
BIN
board/charuco_410x410_3x3_s133_m105_face5_no_20_DICT_7X7_1000.pdf
LFS
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
14
cvt_all_pdfs.sh
Executable file
14
cvt_all_pdfs.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Set input folder
|
||||||
|
INPUT_DIR="board"
|
||||||
|
DPI=100 # Resolution in DPI
|
||||||
|
|
||||||
|
# Iterate over all .pdf files in the folder
|
||||||
|
for pdf in "$INPUT_DIR"/*.pdf; do
|
||||||
|
# Strip .pdf to get base name
|
||||||
|
base="${pdf%.pdf}"
|
||||||
|
# Convert to PNG
|
||||||
|
magick convert -density "$DPI" "$pdf" "${base}.png"
|
||||||
|
echo "Converted: $pdf → ${base}.png"
|
||||||
|
done
|
||||||
141
draw.ipynb
Normal file
141
draw.ipynb
Normal file
File diff suppressed because one or more lines are too long
186
find_cute_box_with_image.ipynb
Normal file
186
find_cute_box_with_image.ipynb
Normal file
File diff suppressed because one or more lines are too long
BIN
output/a-ae_08.parquet
LFS
BIN
output/a-ae_08.parquet
LFS
Binary file not shown.
BIN
output/iphone13mini.parquet
LFS
BIN
output/iphone13mini.parquet
LFS
Binary file not shown.
BIN
output/object_points.parquet
LFS
BIN
output/object_points.parquet
LFS
Binary file not shown.
BIN
output/params.parquet
LFS
BIN
output/params.parquet
LFS
Binary file not shown.
BIN
output/usbcam_cal.parquet
LFS
BIN
output/usbcam_cal.parquet
LFS
Binary file not shown.
Reference in New Issue
Block a user