Jump to content

Image Stitching for NVIDIA Jetson/Spherical Video/Calibration Tool: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 21: Line 21:
* Numpy
* Numpy
* PyQt5
* PyQt5
* PyQtDarkTheme


=== Virtual Environment ===
=== Virtual Environment ===
Line 83: Line 84:
* '''circle-center-x''': An integer property that defines the center position of the fisheye circle over the input’s image X axis(horizontal).
* '''circle-center-x''': An integer property that defines the center position of the fisheye circle over the input’s image X axis(horizontal).
* '''circle-center-y''': An integer property that defines the center position of the fisheye circle over the input’s image Y axis(vertical).
* '''circle-center-y''': An integer property that defines the center position of the fisheye circle over the input’s image Y axis(vertical).
* '''rot-x''': A float property that defines the camera’s tilt angle correction in degrees between -180 and 180. This is assuming a coordinate system over the camera where the X axis looks over the side of the camera, and you rotate that axis, rotating the camera up and down.
* '''rot-x''': A float property that defines the camera’s tilt angle correction in degrees between -180 and 180. This is assuming a coordinate system over the camera where the X axis looks over the side of the camera, if you rotate that axis, you will be rotating the camera up and down.
* '''rot-y''': A float property that defines the camera’s roll angle correction in degrees between -180 and 180. This is assuming a coordinate system over the camera where the camera lens looks over the Y axis, if you rotate that axis, the camera will rotate rolling over its center.
* '''rot-y''': A float property that defines the camera’s roll angle correction in degrees between -180 and 180. This is assuming a coordinate system over the camera where the camera lens looks over the Y axis, if you rotate that axis, the camera will rotate rolling over its center.
* '''rot-z''': A float property that defines the camera’s pan angle correction in degrees between -180 and 180. This is assuming a coordinate system over the camera where the Z axis is over the camera, if you rotate that axis, the camera will pan over its center moving around the 360 horizon.


The '''Preview view''' will show the result projection of the selected image with the selected parameters.
The '''Preview view''' will show the result projection of the selected image with the selected parameters.
Line 90: Line 92:
[[File:Stitcher-calibrator-adjust-parameters.png|720px|center|Projection parameters for sample 1]]
[[File:Stitcher-calibrator-adjust-parameters.png|720px|center|Projection parameters for sample 1]]


'''Note:''' The view size can be individually adjusted using the slider for a better appreciation of the images. Also, the images can be zoom in and zoom out using Ctrl+scroll.
'''Note:''' The view size can be individually adjusted using the slider for a better appreciation of the images, use scroll for vertical adjustment and Shift+scroll for horizontal adjustment. Also, the images can be zoom in and zoom out using Ctrl+scroll.


[[File:Stitcher-calibrator-sliders.png|720px|center|Sliders of views]]
[[File:Stitcher-calibrator-sliders.png|720px|center|Sliders of views]]


'''4.''' Select another sensor image in the '''Samples view''' (by clicking on it) to adjust the projection parameters for the next image, and continue with all the available sensor images. The current sensor image will be highlighted to recognize which image it is currently adjusting.
'''4.''' Select another sensor image in the '''Samples view''' (by clicking on it) to adjust the projection parameters for the next image, and continue with all the available sensor images. The current sensor image will be highlighted to recognize which image you are currently adjusting.


[[File:Stitcher-calibrator-adjust-parameters-2.png|720px|center|Projection parameters for sample 1]]
[[File:Stitcher-calibrator-adjust-parameters-2.png|720px|center|Projection parameters for sample 1]]
Line 101: Line 103:


If the scene still doesn't fully match, you can continue modifying the parameters for each sensor image until you get a good fit of the scene in the Stitching view.
If the scene still doesn't fully match, you can continue modifying the parameters for each sensor image until you get a good fit of the scene in the Stitching view.
You can use the transparency and lock features to help you match the scene.
The transparency feature allows transparent images to match objects between the projections. The lock feature locks the image movement for an easier projection tune.


[[File:Stitcher-calibrator-stitching.png|720px|center|Stitching view]]
[[File:Stitcher-calibrator-stitching.png|720px|center|Stitching view]]
Line 116: Line 121:
             "0": {
             "0": {
                 "radius": 640.0,
                 "radius": 640.0,
                 "fov": 195.0,
                 "lens": 195.0,
                 "x_offset": 637.0,
                 "center_x": 637.0,
                 "y_offset": 640.0,
                 "center_y": 640.0,
                 "x_angle": 0.0,
                 "rot_x": 0.0,
                 "y_angle": 0,
                 "rot_y": 0,
                 "z_angle": 180,
                 "rot_z": 180,
                 "fisheye": true
                 "fisheye": true
             }
             }
Line 128: Line 133:
             "1": {
             "1": {
                 "radius": 639.0,
                 "radius": 639.0,
                 "fov": 195.0,
                 "lens": 195.0,
                 "x_offset": 641.0,
                 "center_x": 641.0,
                 "y_offset": 638.0,
                 "center_y": 638.0,
                 "x_angle": 0.0,
                 "rot_x": 0.0,
                 "y_angle": -0.8,
                 "rot_y": -0.8,
                 "z_angle": 180,
                 "rot_z": 180,
                 "fisheye": true
                 "fisheye": true
             }
             }
Line 159: Line 164:
}
}
</syntaxhighlight>
</syntaxhighlight>
The Panoramic Calibration tool have a dark mode feature. You can enable the dark theme in the menu View->Dark Mode.
[[File:Panoramic-calibrator-dark-mode.png|720px|center|Dark mode]]


== Projector usage example ==
== Projector usage example ==
335

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.