-
Notifications
You must be signed in to change notification settings - Fork 196
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
Import Camera config error: content too large #1275
Comments
Yeah, there's a 50MB upload limit set in Server.java. You could increase this limit by changing the code, or you can strip images from the calibration JSON using #1244 |
That looks promising, is that implemented? If so, could you point to documentation or explain how to use it? Thanks! |
Hey, when trying to use the calibrationUtils.py, it requires a package for mrcal. How can that be installed? |
This is as far as I was able to get with the calibrationUtils.py utility after installing it on my photonvision server. python3 calibrationUtils.py photon_calibration_Arducam_OV9281_USB_Camera_1280x720.json camera_cal/ |
I think we are going to redo our calibration with only 60+ images to cut down the size of the export. Being able to have a restorable calibration for this level of effort in calibrating is crucial. |
You can also go in and replace the observations array in the json with an empty list. I would accept a PR increasing the max upload size as well. And yeah looks like a bug in the script in the PR you posted above. Should be super easy to just cast to int? |
You could also patch the frontend to clear observation snapshot data if the file size is above 50Mb, that's super easy too |
Describe the bug
We calibrated one of our cameras using 100+ images and ended up with a 63MB file when we exported the settings. We'd like to be able to restore this calibration if needed, but we get an error saying the Content is too large.
Wondering if there is a way to calibrate this larger, by hand, or if it can be updated in a hotfix?
Are there alternative ways to upload the data that we could employ?
Thanks!
To Reproduce
You can see the file we're importing and the log here: https://github.com/FRC5010/FRCLibrary/tree/Crescendo2024/PhotonVision
This is a pretty standard Arducam Global Shutter camera.
Platform:
Additional context
The text was updated successfully, but these errors were encountered: