fSpy icon indicating copy to clipboard operation
fSpy copied to clipboard

Cmd arguments - sensor size

Open simonbjork opened this issue 4 years ago • 4 comments

It would be great to be able to send filmback info to fspy as a command line argument when launching. Something like:

fspy.exe -sensor_size 26.4x14.85

It would be useful for an exporter tool.

simonbjork avatar Apr 14 '20 20:04 simonbjork

Could you describe the workflow you have in mind with a bit more detail?

stuffmatic avatar Apr 15 '20 06:04 stuffmatic

Yes, when working in a prodoction it's often possible to query the camera filmback from a database. So if I were to launch fspy from a separate app that knows the sensor size, I wouldn't have to change those values each time.

simonbjork avatar Apr 15 '20 07:04 simonbjork

This only applies to single vanishing point calibration, right? Because when two vanishing points are used, fSpy doesn't need to know the dimensions of the sensor.

stuffmatic avatar Apr 15 '20 07:04 stuffmatic

Ah, you're right. But when I import a camera, I want it to use the correct sensor size etc. But I guess that could be calculated on the importer side. Still, it's nice to see the focal lenght estimation in the GUI so you know if you're somewhat correct in the match.

simonbjork avatar Apr 15 '20 09:04 simonbjork