
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
A small package that supports applying image transformations, e.g. cropping or resizing, to the camera intrinsics.
This package is under development and not well tested nor stable.
pip install camera-intrinsics
Camera intrinsics are python dicts with the keys height, width, fx, fy, cx, cy, options
.
import camera_intrinsics as cam
intr = cam.intrinsics(width=128, height=96, fx=128.0, fy=128.0, cx=63.5, cy=47.5) # Make sure to be clear about half_pixel_centers! Read the doc below.
print(intr)
>>> {'height': 96, 'width': 128, 'fx': 128.0, 'fy': 128.0, 'cx': 63.5, 'cy': 47.5, 'options': ''}
The options string is the join
of the single options with a semincolon ,
. The available options are listed below.
There are mainly two conventions for the pixel coordinates. The preferred one within this package uses (0,0)
as the coordinate for the top-left pixel and its options string is ""
. The other convention uses (.5, .5)
as the coordinate for the top-left pixel and its options string is "half_pixel_centers"
. Be careful to select the right convention when creating the intrinsics. Here is a list of toolboxes and their conventions
half_pixel_centers
:
DSO (link),
MATLAb Calibration Toolbox (link),
Berkeley Automation (link)half_pixel_centers
:
COLMAP (link),
FastMVSNet (link)Currently the following methods are supported:
intrinsics
: Make intrinsicscrop
: Crop intrinsicsresize
: Resize intrinsicsFAQs
A package for applying image transformations to the camera intrinsics.
We found that camera-intrinsics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.