0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ペットの動画にバーチャル背景をつける方法

人間だけでなく、愛犬や愛猫の動画にバーチャル背景をつけられれば、
面白い編集ができる。

バーチャル背景は人間にしかつけられないのか?

ペットの動画を処理したい。
そんなことできるのか?
そして、動画の処理を書くのは大変そう。

SemanticImageで秒で解決

SemanticImageというライブラリなら、
かんたんに動物の動画にバーチャル背景を適用できる。

使用方法

1、SemanticImageをインポートする

SwiftPackageManagerでSemanticImageを追加する。

import SemanticImage

2、背景合成を実行

sematicImage. swapBGOfSalientObjectVideo(videoURL: url, backgroundUIImage: uiImage, { err, processedURL in
    // 処理済み動画URLをここで使う
})

これで動画が出力される。
かんたんでしょ?

🐣


フリーランスエンジニアです。
お仕事のご相談こちらまで
簡単な開発内容をお書き添えの上、お気軽にご連絡ください。
rockyshikoku@gmail.com

Core MLやARKitを使ったアプリを作っています。
機械学習/AR関連の情報を発信しています。

Twitter
Medium

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?