help i accidentally a wigglegram

Help, I Accidentally a Wigglegram

救命,我意外搞出了“摇摆摄影”(Wigglegram)

Do you know what a wigglegram is? It is a kind of stereo image you make by looping frames together, like as a GIF. The effect is quite convincing. 你知道什么是“摇摆摄影”(wigglegram)吗?这是一种通过将多帧图像循环播放(类似 GIF)而制作出的立体影像。其视觉效果相当逼真。

I am something of an indecisive photographer and when I like an angle I will take a lot of frames, from slightly different angles etc., looking for “the shot”. And since I am also a bit of a hoarder I never clear out my camera roll. “Same shot from different angles”? You know what that sounds a bit familiar. 我算是个优柔寡断的摄影师,每当遇到喜欢的角度,我就会从略微不同的角度连拍很多张,试图寻找“那张完美照片”。由于我还有点“囤积癖”,从不清理相册。 “从不同角度拍同一场景”?你懂的,这听起来有点耳熟。

Sure enough my phone is full of wigglegrams that I took by accident. Years’ worth, waiting for me to sit down and stitch them together. Or, perhaps, for something to stitch them together. 果不其然,我的手机里塞满了我不小心拍下的摇摆摄影素材。积攒了多年,等着我坐下来把它们拼在一起。或者说,等着某个工具来帮我拼在一起。

It occurred to me last weekend that I can use perceptual hashing - what TinEye (et al.) uses for reverse image search - to try and find runs of similar images and pull them out from my library automatically. So I wrote a little script to hash all my pictures. 上周末我突然想到,可以使用感知哈希(Perceptual Hashing)——也就是 TinEye 等搜索引擎用于反向图片搜索的技术——来尝试找出相似的图片序列,并自动从图库中提取出来。于是,我写了一个小脚本来对所有照片进行哈希处理。

Hashing is quick but downloading photos from iCloud is not. The result is a hash that - unlike a cryptographic function like sha1 - will share more bits with hashes of similar-looking images than with dissimilar ones. We can use that to calculate the hamming distance between pairs of images and find a threshold. 哈希处理很快,但从 iCloud 下载照片却很慢。处理结果是一个哈希值,与 sha1 等加密函数不同,它在处理外观相似的图像时,哈希值会有更多的重合位。我们可以利用这一点来计算图像对之间的汉明距离(Hamming distance),并设定一个阈值。

And extract pairs. And hundreds of wigglegrams spew forth. 然后提取出图像对。于是,数百个摇摆摄影作品喷涌而出。

A few of them I am guilty of taking intentionally. But most are true accidents. As such many of them come out as less “stereoscopic” and more “kinescopic” - like little unintentional movies. 其中有几张确实是我故意拍的,但大多数纯属意外。因此,很多作品看起来不像“立体摄影”,反而更像“动态摄影”——就像一段段无意间拍下的小电影。

Animals are a natural fit for the concept, unpredictable as they are. Design-work also. (I am always indecisive.) And sculpture. What fun. 动物是这种概念的天然素材,因为它们总是难以预测。设计作品也是如此(我总是犹豫不决)。还有雕塑。真是太有趣了。

I have the script up on Github if you want to play with it - it’ll work on your iCloud photos library if you’re on a Mac, or you can point it at a directory of pictures otherwise. Cheers~ 我已经把脚本上传到了 Github,如果你想玩玩看的话——如果你用的是 Mac,它可以直接处理你的 iCloud 照片库,或者你也可以直接指定一个图片文件夹进行处理。干杯~