stuffmatic / fSpy

A cross platform app for quick and easy still image camera matching
https://fspy.io
GNU General Public License v3.0
2.25k stars 214 forks source link

Using fSpy programmatically #115

Closed TalTaiber closed 2 years ago

TalTaiber commented 2 years ago

First off, thank you for your brilliant work!

Say I have a computer vision program (in python) that finds the 2 sets of vanishing point lines, and chooses a 3D origin point. I want to pass that information programatically to fSpy, and then get back the inferred camera extrinsics and focal length. How can I go about doing this? Do I have to use TypeScript? What is the correct format to specify the lines and origin point?

Cheers

stuffmatic commented 2 years ago

There is actually an undocumented command line interface that lets you do just that. You should be able to see supported parameters etc in the CLI source (especially printUsage).