Skip to content

Matt-Kou/camplot3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

camplot3d

A 3D perspective transformation and rendering API featuring both pytorch and numpy

Examples

Camera position and Field-of-View (fov) calibration

Using machine learning to inference on the position and fov of cameras within the scene. See tutorial.

Here is a demo video on the training process.

learning.mp4

The pink points indicate the cameras whose positions are to be learned. The green points indicates the true camera positions. The lines are the ray tracing lines for inferencing the positions and fovs.

Object 3D position detection

After calibrating the cameras, the two cameras are now able to detect the 3D position of any items in the scene.

Here is the object placed in the scene:

image

Then, both cameras captures images of the scene:

image image

Two tracing rays are generated from the above two images. Here is the position detection result:

image

The red point is the true object center (1/2, 1/2, 1/3), and the cyan point is the detected object position (0.4969, 0.5038, 0.3421). The pink rays indicate the tracing rays from the captured.

About

A 3D perspetive transfomation and rendering API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages