Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to write yaw,pitch,roll information to an image? #24

Open
zhudaoruyi opened this issue Nov 23, 2018 · 3 comments
Open

How to write yaw,pitch,roll information to an image? #24

zhudaoruyi opened this issue Nov 23, 2018 · 3 comments

Comments

@zhudaoruyi
Copy link

I want to write yaw pitch roll of the image ,but don't know how to do,the following can't work

import exiftool

img_name = 'sam.jpg'

with exiftool.ExifTool() as et:
    et.execute("-Yaw=21.123\n-Pitch=10.101\n-Roll=-7.252", img_name)
@sylikc
Copy link

sylikc commented Jan 30, 2022

that's probably not the way to do it... you need to separate the things out into different parameters.

et.execute("-Yaw=21.123", "Pitch=10.101", "-Roll=-7.252")

Btw, my fork has some fixes https://github.com/sylikc/pyexiftool

@deweydb
Copy link

deweydb commented Feb 10, 2022

Hi Sylikc, could you please give me the full example? where do you put the filepath? is it as a 4th parameter?

@sylikc
Copy link

sylikc commented Feb 10, 2022

yes, the image name... i left that off of the command

et.execute("-Yaw=21.123", "-Pitch=10.101", "-Roll=-7.252", img_name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants