Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/honza/filmdetect


https://github.com/honza/filmdetect

Last synced: about 6 hours ago
JSON representation

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 main

import (
"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