Repository navigation
OpenFilmKit 0.5.0
Cleanup that leaves more of the photo alone, fits in 2.5 GB, and takes spots you point at.
Less over-cleaning
- Hair: the dust pass no longer takes glints in hair for dust. A speck counts only if the fine detail around it is no stronger than a few times the photo's own grain, so dust on skin, walls and sky still goes. On Sally Ride's 1984 NASA portrait the old pass filled 42 hair glints. With
--scratches, the face rules now apply to skin only, not to hair, collars or hats. - Date stamps, bright: the orange-stamp rule now takes only a short line of digits in a corner. Before, it could protect a Navy portrait's gold insignia, ribbons and buttons from dust removal.
- Date stamps, faint: stamps printed faintly over the picture, common on negative conversions, are now found by their seven-segment digits, upright or running down the side of a sideways print. Before, the dust and scratch passes nibbled their segments away. On 118 prints and conversions this found 35 stamps, 12 of them new, and nothing that wasn't a stamp.
- Protected areas: eyes, mouths and stamps are now fully protected. A speck right beside one no longer takes its edge.
clean --spot X,Y[,R]
Fills a spot that's left, from its surroundings like a dust fill, with no model involved. X,Y are pixels in a copy cleaned with the same options (the crop comes out the same), and R is an optional radius (default 0.4% of the short side). Repeat the flag for more spots; the recipe lists each one and the pixels it filled.
Memory
A 73-megapixel scan, 16-bit and --scratches included, now peaks at about 2.4 GB of memory instead of 3.9 GB, so a frame fits a small machine's memory cap. Full-image filters work in strips, and inpainting works in a window around each group of holes. The two models are loaded one at a time, and the scratch model runs without OpenCV's Winograd convolution, which held another 1.1 GB.
Everything else gives the same output as before, byte for byte. The Winograd change moves the scratch model's probabilities by a few millionths: on a 73 MP frame, about 2,000 of 68 million pixels of --scratches output differ from 0.4.0.
Recipes say what a model filled
A recipe now says exactly what the scratch pass filled in, instead of a yes/no flag. filled_in_by_model names the model, says where it worked, and gives the pixels filled and their share of the picture. Everything outside those pixels is the scan.
Tests on real photographs
The tests now include Sally Ride's 1984 NASA portrait and Grace Hopper's 1984 Navy portrait (both public domain), plus real dust and fibers measured on a scan of blank film. One test is marked as an expected failure: soft, out-of-focus dust on busy patterns, which clean still misses.
Icon
OpenFilmKit has an icon: film spilling out of an open box.
Install or upgrade
brew upgrade aidansiegel/openfilmkit/openfilmkit