fSpy icon indicating copy to clipboard operation
fSpy copied to clipboard

Using fSpy programmatically

Open TalTaiber opened this issue 2 years ago • 1 comments

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

TalTaiber avatar May 03 '22 11:05 TalTaiber

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).

stuffmatic avatar May 04 '22 07:05 stuffmatic