The purpose of this plugin is to provide an easy method of solving for the physical lens characteristics of a camera. These characteristics include:
- Lens Calibration from MediaPlayer, MediaBundle and MediaTexture.
- Lens Calibration from Folders of images.
- Lens Distortion Correction with interpolation between camera zoom levels in composure.
- Fast setup and and asynchronous calibration procedure.
- Runtime and Editor Blueprint support.
Discord Server - for asking questions.
Documentation - Maybe this will eventually be refactored into the readme.
If documentation is preferred that can be found here.
- 4.26
- 4.24
- 4.25
The easiest way to install the plugin is to grab one of the release binaries, then extracting and copying it into the Plugins folder in the root of your UE4 project. You can also recursively clone the LensCalibratorProject repository which is UE4 project for testing.
- Navigate to the UE4 project that you want to install the plugin into.
- Make a Plugins folder if it does not already exist in the root of your UE4 project.
- Open up a terminal and
cd
into the Plugin folder you created. - Clone the repository via:
git clone --recursive [email protected]:Polypulse/LensCalibrator.git
. - After cloning the repository, open an explorer window at the repo path.
- Hold shift, right click in the window and select Open Powershell window here.
- Execute
./PullDependencies.ps1
or download the OpenCVWrapper dependency and extract OpenCVWrapper.zip intoLensCalibratorProject/Plugins/lenscalibrator/Source/ThirdParty/OpenCVWrapper/
- Then open your UE4 project.
Currently the plugin's documentation is located in this document. However, in the future this may be refatored into the readme file.
Link: https://docs.google.com/document/d/1HNYupII7wy-lZkVENv9LS7f7xqjnMhFPVWmATGc8Xoc/edit?usp=sharing
In order to avoid DLL boundary data curroption between UE4 objects and standard library objects, the OpenCVWrapper acts as an interface to OpenCV and converts any data going to and from.