Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/honza/filmdetect
https://github.com/honza/filmdetect
Last synced: about 6 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/honza/filmdetect
- Owner: honza
- License: gpl-3.0
- Created: 2021-10-04T13:35:50.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T15:01:59.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T08:05:06.230Z (5 months ago)
- Language: Go
- Size: 41 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# filmdetect
Filmdetect is a cli tool, and a library for detecting what film recipe was used
to create a Fujifilm jpeg file.## recipes
You will need a directory of recipe files. You can create your own, or [use one I maintain][1].
## dependencies
This tool depends on exiftool >= 12.48.
## cli
```
$ filmdetect --simulation-dir "path/to/simulation/dir"
Kodak Portra 400
```## library
```go
package mainimport (
"os"
"github.com/honza/filmdetect"
)func main() {
file, err := os.Open("some-fujifilm-file.jpg")if err != nil {
return
}simulationDir := "path/to/simulations"
diffs, havePerfectMatch, err := filmdetect.Detect(simulationDir, file)if err != nil {
return
}
if havePerfectMatch {
fmt.Println(diffs[0].Candidate.Name)
} else {
for _, diff := range diffs {
fmt.Println(diff)
}
}
}
```## license
GPLv3
[1]: https://github.com/honza/film-simulations