sltk icon indicating copy to clipboard operation
sltk copied to clipboard

slcrunch

Open prahjister opened this issue 6 years ago • 5 comments

How do i use slcrunch. I am trying to calibrate webcam. I grabbed 5 scans and varried monitor position.

prahjister@amlogic:~/sltk-master/~/completed_scans/Calib4.23.18/scan_0000$ slcrunch sequence.yaml
PREFIX FOR OUTPUT : [sequence.yaml]
outMapPath      sequence.yaml.yaml
outVisCPath     sequence.yaml_rgb.png
outVisXPath     sequence.yaml_x.png
outVisYPath     sequence.yaml_y.png
outVisDirPath   sequence.yaml_direct.png
outVisAmbPath   sequence.yaml_indirect.png
outVisChessCamPath      sequence.yaml_chesscam.png
outVisChessProPath      sequence.yaml_chesspro.png
outPlyPath      sequence.yaml_cloud.ply
checking image list: sequence.yaml
        prefix : []
        fname  : [sequence.yaml]
parsing [sequence.yaml]
[1524532734.170169_gcb_00_09_0-00_img.jpg]
[1524532734.906104_gcb_00_09_1-01_img.jpg]
[1524532735.573819_gcb_00_08_0-02_img.jpg]
[1524532736.238951_gcb_00_08_1-03_img.jpg]
[1524532737.006515_gcb_00_07_0-04_img.jpg]
[1524532737.774084_gcb_00_07_1-05_img.jpg]
[1524532738.542061_gcb_00_06_0-06_img.jpg]
[1524532739.306771_gcb_00_06_1-07_img.jpg]
[1524532740.042508_gcb_00_05_0-08_img.jpg]
[1524532740.810280_gcb_00_05_1-09_img.jpg]
[1524532741.478750_gcb_00_04_0-10_img.jpg]
[1524532742.178773_gcb_00_04_1-11_img.jpg]
[1524532742.918053_gcb_00_03_0-12_img.jpg]
[1524532743.618185_gcb_00_03_1-13_img.jpg]
[1524532744.386239_gcb_00_02_0-14_img.jpg]
[1524532745.118648_gcb_00_02_1-15_img.jpg]
[1524532745.782736_gcb_00_01_0-16_img.jpg]
[1524532746.450331_gcb_00_01_1-17_img.jpg]
[1524532747.114433_gcb_00_00_0-18_img.jpg]
[1524532747.814483_gcb_00_00_1-19_img.jpg]
[1524532748.606311_gcb_01_09_0-20_img.jpg]
[1524532749.338774_gcb_01_09_1-21_img.jpg]
[1524532750.106476_gcb_01_08_0-22_img.jpg]
[1524532750.874104_gcb_01_08_1-23_img.jpg]
[1524532751.638974_gcb_01_07_0-24_img.jpg]
[1524532752.406525_gcb_01_07_1-25_img.jpg]
[1524532753.139006_gcb_01_06_0-26_img.jpg]
[1524532753.806575_gcb_01_06_1-27_img.jpg]
[1524532754.474524_gcb_01_05_0-28_img.jpg]
[1524532755.174436_gcb_01_05_1-29_img.jpg]
[1524532755.942744_gcb_01_04_0-30_img.jpg]
[1524532756.675200_gcb_01_04_1-31_img.jpg]
[1524532757.346674_gcb_01_03_0-32_img.jpg]
[1524532758.014303_gcb_01_03_1-33_img.jpg]
[1524532758.683011_gcb_01_02_0-34_img.jpg]
[1524532759.450685_gcb_01_02_1-35_img.jpg]
[1524532760.218221_gcb_01_01_0-36_img.jpg]
[1524532760.982961_gcb_01_01_1-37_img.jpg]
[1524532761.747107_gcb_01_00_0-38_img.jpg]
[1524532762.514525_gcb_01_00_1-39_img.jpg]
[1524532763.202705_rgb_255_255_255_0-00_img.jpg]
[1524532763.971107_rgb_192_192_192_0-01_img.jpg]
[1524532764.738541_rgb_128_128_128_0-02_img.jpg]
[1524532765.506359_rgb_092_092_092_0-03_img.jpg]
[1524532766.271232_rgb_064_064_064_0-04_img.jpg]
[1524532767.039245_rgb_032_032_032_0-05_img.jpg]
[1524532767.807251_rgb_128_000_000_0-06_img.jpg]
[1524532768.542310_rgb_000_128_000_0-07_img.jpg]
[1524532769.239421_rgb_000_000_128_0-08_img.jpg]
gcb images : 40, rgb images: 9
Using image list: sequence.yaml
loading exif data..
Segmentation fault

prahjister avatar Apr 24 '18 01:04 prahjister

Hey John....i was wondering if you had an idea what this issues is?

prahjister avatar May 01 '18 00:05 prahjister

Hello; apologies for extended afk.

Early on in the project, I was using jpg from canon cameras for input and needed to read exif data to facilitate proper parameters for reconstruction. I used an external program called exiftool and parsed the output. However, the exif related code is deprecated and only known to work on osx. I'll clean that up in next commit.

Will investigate segfault on arm box and provide update. Thank you for log!

jhdewitt avatar May 01 '18 00:05 jhdewitt

Hey

I just went through and tested on a raspberry pi with the same results.

prahjister avatar Jul 27 '18 04:07 prahjister

Commenting out all references to Exif also solved the seg fault. See attached for a copy of slcrunch.ccp that appears to work (I still dont know how to make all of this work but it does the thing!) Don't forget to recompile the slcrunch program after replacing slcrunch.cpp (make slcrunch) slcrunch.zip

sventiede avatar Sep 25 '19 11:09 sventiede

I got the same problem on a Ubuntu PC, I confirmed it is now working...with the sventiede file... thank you

prelard812 avatar Apr 14 '20 23:04 prelard812