Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

responseCalib error : buffer still too small. abort. #30

Open
TJ-seoultech opened this issue Aug 5, 2022 · 2 comments
Open

responseCalib error : buffer still too small. abort. #30

TJ-seoultech opened this issue Aug 5, 2022 · 2 comments

Comments

@TJ-seoultech
Copy link

TJ-seoultech commented Aug 5, 2022

I tried to make pcalib.txt for my custom data. I prepared images.zip, camera.txt, times.txt.

Data:
images.zip

camera.txt
RadTan 0.39296 0.70102 0.49574 0.51231 0.00018 -0.01646 0.00351 0.000281
1280 720
crop
1280 720

times.txt
00001 1659702911.5288742000 16.7
00002 1659702911.5455742000 16.7
00003 1659702911.5622742000 16.7
00004 1659702911.5789742000 16.7
00005 1659702911.5956743000 16.7
00006 1659702911.6123743000 16.7
00007 1659702911.6290743000 16.7
00008 1659702911.6457744000 16.7
00009 1659702911.6624744000 16.7
00010 1659702911.6791744000 16.7
00011 1659702911.6958745000 16.7
00012 1659702911.7125745000 16.7
00013 1659702911.7292745000 16.7
00014 1659702911.7459745000 16.7
....

input:
~/mono_dataset_code/bin$ ./responseCalib ../dataset_0805/

output:
Load Dataset ../dataset_0805/: found no in folder /images; assuming that images are zipped.
got 587 entries and 587 files from zipfile!
Failed to read camera calibration (invalid format?)
Calibration file: ../dataset_0805/camera.txt
Reading Photometric Calibration from file ../dataset_0805/pcalib.txt
PhotometricUndistorter: Could not open file!
Dataset ../dataset_0805/: Got 587 files!
read 10000/10000 bytes for file 00001.png. increase buffer!!
buffer still to small (read 100000/100000). abort.

I don't know how to solve this problem.

@TJ-seoultech TJ-seoultech changed the title responseCalib error : buffer abort. responseCalib error : buffer still too small. abort. Aug 5, 2022
@TJ-seoultech
Copy link
Author

TJ-seoultech commented Aug 5, 2022

I solved it by correcting camera.txt and resize images from 720p to 360p.
camera.txt
0.39296 0.70102 0.49574 0.51231 0.00018 -0.01646 0.00351 0.00028508
1280 720
crop
640 360

But, the result was not good. It wasn't monotonic function and the number starts at 254.
pcalib.txt
254.096640836546 253.917619467124 253.936477802031 253.958945987995 254.053126080482 254.195046890532 254.299292179394 254.384167364465 254.42345638396 254.466317100777 254.481993711691 254.405864996626 254.335205490737 254.244713505593 254.26674492702 254.332943207371 254.139877452023 253.890645377083 253.689101449638 253.610016853462 253.641082716505 253.588832210697 253.57585247076 253.587421347924 253.626977856414 253.660111736587 253.720984537936 253.80696004425 253.800187359782 253.839403120273 253.88673609692 253.940590430896 254.005053172812 254.101282923392 254.139459872888 254.213639536127 254.236123085442 254.25495137301 254.210792074235 254.134247259353 254.12338938096 254.118248782683 254.074286834592 254.064011580424 254.020252427867 253.977898012748 253.939808252997 253.960549169139 253.976929418506 253.95619378658 253.960414965396 253.981829044362 253.98564382827 254.007308269233 254.021374721156 254.061876819348 254.061677372251 254.087516487856 254.086057239009 254.077500089589 254.07227826926 254.160857581065 254.183102811178 254.224992868482 254.386880463327 254.762370107173 255.102574262902 255.207788394536 255.131970625542 255.340218429548 255.66766248915 255.68193241955 255.478279437272 255.340742288495 255.285682130315 255.312068950536 255.233222897666 255.342889374858 255.40544678102 255.467360651417 255.477739099753 255.470531461715 255.405506019362 255.273796581366 255.350967488348 255.347885198694 255.32187131979 255.279826660031 255.248789941631 255.169090674336 255.068300936589 254.99729812381 255.020142511258 255.025794984492 254.986170954169 254.944300936036 254.890032395351 254.832778946982 254.782502873618 254.779079334519 254.787346979146 254.768727091632 254.733833469733 254.683496393883 254.622844643575 254.587447006115 254.55945806273 254.536614167819 254.520381534011 254.505317023912 254.483242598879 254.466385036697 254.452370124956 254.458016701832 254.477950149126 254.426657573991 254.332208760846 254.222996941241 254.13588783687 254.0983826966 253.982456193365 253.898490410034 253.759926400889 253.668849769417 253.55814044899 253.515509495357 253.603431226852 253.419915651106 253.304066019968 253.222709073733 253.14468759408 253.078643481648 253.014671489987 253.241762173562 252.986461333861 252.925860829949 252.877246539092 252.801439427859 252.725445679476 252.680112447197 252.970140204656 252.69586263301 252.662944467248 252.641945002314 252.63088717671 252.598641662025 252.585319650114 252.872887582236 252.635505833868 252.678571094826 252.71922731425 252.768300755873 252.804422396539 252.840785165078 253.07172897178 252.906911834216 252.980214574835 253.057135601215 253.121916391993 253.184130174914 253.257602542581 253.436846283563 253.346682641272 253.432281067363 253.530740549291 253.617242586413 253.718279688298 253.856172448877 254.008258774311 254.012342065527 254.134576980089 254.249946236841 254.332473700005 254.410490817269 254.476233039309 254.557370368866 254.62291932087 254.658928002606 254.754064380492 254.870143637366 255.027398905751 255.177929544802 255.38164837104 255.54381915226 255.594663771931 255.813956231745 255.959364183699 256.083676282381 256.279184774605 256.472632050898 256.726722812945 256.648881113368 256.910911346597 257.17795599628 257.434627396911 257.943443992909 258.427865868947 259.038435936096 259.034078266659 259.779569972665 260.874939804473 262.00373200345 263.397442222546 264.843153482676 265.952011355499 266.621045459023 267.755983191178 269.195491607194 270.6808267384 272.235313692226 273.896679704714 275.074861386195 275.656971562153 276.842157120391 278.181733815332 279.380964167342 280.494169346831 281.538756338242 282.290126544446 282.776269985795 283.253033457128 283.562854469835 284.129723810216 284.333000341992 284.816972222819 283.905865144317 284.870652405679 284.004831904305 283.326559885608 278.529036346013 276.041127337214 274.740944826278 273.226075907584 272.450126826941 270.946839234881 270.323691276726 268.757586330778 267.733990237005 267.186474616826 266.311277659127 264.873702574644 263.315217815258 262.673985388337 261.953205804082 261.240281237013 260.331989783932 259.684544122377 259.667769690162 259.342529599366 258.996504897409 258.750116459786 259.010557113452 256.668894586542 257.13251738455 256.066258692275 255

@zovelsanj
Copy link

How did you obtain the times.txt file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants