h3.post-title { color:#000000; } h3.post-title a, h3.post-title a:visited { color:#7f0000; } h3.post-title a:hover { color:#00ffff; } .post-title a { color:#A52A2A; } .post-title { color:#A52A2A; } -->

Thursday, 25 January 2018

#Twitter's #Neural Network for #smart cropping of #Images

Twitter doesn't show full photos when they appear in the stream—you need to tap to expand the whole image. Unfortunately, the cropped version of the photo is often framed awkwardly because it's just the middle section of the image. Twitter is solving that problem with a neural network that can understand the composition of your images.

The neural network is looking for so-called “salient” image regions. Scientists have studied what people consider salient in images for years using eye-tracking technology. We tend to look at faces, animals, and text, but also other objects that have high contrast with the surrounding pixels. That data can be used to train a neural network to identify the salient regions of an image.

Doing pixel-level saliency analysis of all the pictures uploaded to Twitter would be too slow, so engineers developed a smaller, faster neural network that can get the gist of a picture. The resulting network is ten times faster than the original approach, and it allows Twitter to adjust the framing on images you upload. Thus, the previews will show you the salient parts of an image rather than whatever happens to be in the middle. See above for before and after comparisons.
If you're interested in the science behind this technique, Twitter's paper is available for download.

Get it on Google Play
   Follow us on:     

  Instagram

No comments:

:a   :b   :c   :d   :e   :f   :g   :h   :i   :j   :k   :l   :m   :n   :o   :p   :q   :r   :s   :t Add emoticons to Blogger +

Post a Comment