-
Notifications
You must be signed in to change notification settings - Fork 265
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
WPIcal documentation initial draft #2691
base: main
Are you sure you want to change the base?
Conversation
Great stuff so far overall! Great to see this coming together. |
source/docs/software/wpilib-tools/wpical/images/ChArUcoDetection.png
Outdated
Show resolved
Hide resolved
|
||
Camera Calibration | ||
------------------ | ||
To measure the distance between tags in a video, you need the camera's intrinsics to account for things like distortion. WPIcal allows users to upload a video file to calibrate the camera in the tool, or upload a JSON file with your camera's intrinsics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How should I capture a video file? I was able to do it on linux with gstreamer, but it was pretty non-trivial.
gst-launch-1.0 -vvv v4l2src device=/dev/video0 extra-controls="c,gain=25,exposure_auto=1" ! image/jpeg,format=MJPG,width=1600,height=1200,framerate=50/1 ! jpegdec ! videoconvert ! tee name=t t. ! queue ! autovideosink t. ! queue ! videoconvert ! avimux ! filesink location=output.avi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been using a phone camera and then transferring the file to a computer to calibrate. For linux It will need to be transcoded. Do you think we should document how to capture the video for linux machines too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think documenting the proper video capture method is within scope of the project? On all other platforms we're assuming users capture video beforehand.
Adds initial draft of documentation for new WPIcal tool: wpilibsuite/allwpilib#6915