Code Monkey home page Code Monkey logo

Comments (3)

letmaik avatar letmaik commented on September 3, 2024

Thanks for trying it out! The issue is easy to solve, you used the wrong keyword. Have a look at http://pythonhosted.org/rawpy/api/rawpy.Params.html#rawpy.Params, it has to be rgb = raw.postprocess(gamma=(1,1), demosaic_algorithm=9, no_auto_bright=True, output_bps=16) or better demosaic_algorithm=DemosaicAlgorithm.LMMSE once you have imported DemosaicAlgorithm from the rawpy namespace.

from rawpy.

robeastham avatar robeastham commented on September 3, 2024

Okay thanks that's great. Now working correctly.

I've now just got to figure out how to write the EXIF data in to the resulting png or jpeg. My photogrammetry software needs it in order to do the best job of reconstructing 3d models from multiple images. I'm using imageio to write out the image after rawpy processes it and I'm not sure where to start with adding in the EXIF. Perhaps I should open another question but I'm guess it's not really a rawpy issue. Feel free to close this as solved if you think so.

from rawpy.

letmaik avatar letmaik commented on September 3, 2024

You could try exiv2 (with the pyexiv2 wrapper) but yeah, it's not really a rawpy issue. Or try pyexiftool. Unfortunately there's no great pure-Python library for writing EXIF, at least I don't know any.

from rawpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.