RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Smart avatar cropping in rails: face detection with YuNet, ONNX and ActiveStorage

Learn how to implement CPU-efficient, face-aware avatar cropping in Ruby on Rails without external APIs or Python sidecars.

This article breaks down running the sub-2MB YuNet model in-process using ONNX Runtime, Numo::NArray, and ActiveStorage—covering everything from HWC-to-NCHW tensor transformations to custom background analyzers.

Read the full post: https://leopard.in.ua/2026/09/25/smart-avatar-cropping-in-rails

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in