Comments (3)
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.
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.
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)
- Adobe DNG SDK support HOT 1
- No source on pipy HOT 2
- “Image too big” thrown when file does not exist HOT 2
- Adobe DNG GainMap support HOT 5
- Support for Python 3.12 (was: ERROR: Could not find a version that satisfies the requirement rawpy) HOT 1
- Cannot read thumbnail of NEF file HOT 1
- Mimic Adobe Photoshop Open-Save quality HOT 1
- Setting manual raw_pattern HOT 10
- Support arm64 MacOS HOT 1
- new API to get wb factors from gray box HOT 2
- How to process bayer10? HOT 1
- How could I do some transform in raw domain and transform it into rgb domain? HOT 1
- Support for StripOffsets and StripByteCounts in DNG tags HOT 1
- Questions about support for the Z9
- Include Libraw snapshot releases? HOT 2
- catching corruptions HOT 2
- 12bit raw data- Maximum pixel value around 2200
- Compatibility issue with NumPy 2.0.0 HOT 5
- Rawpy support for MacOS and python version 3.8 and 3.9 HOT 5
- Is there any method to convert a .npy file to .png image?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rawpy.