Skip to content

Visual Intelligence integration / ビジュアルインテリジェンス統合 (WWDC26) #58

Description

@touyou

概要

ビジュアルインテリジェンス(Visual Intelligence)をアプリに統合する。カメラ/スクリーンショット入力に対する画像検索を、VisualIntelligence フレームワークとVisionフレームワーク経由で提供する。

関連セッション:

新API

  • VisualIntelligence フレームワーク — 画像検索機能の有効化
  • IntentValueQuery + SemanticContentDescriptor(ピクセルバッファ入力)→ [VisualSearchResult]
  • @UnionValue で複数エンティティ型(例: アルバムとコンサート)を返却
  • OpenIntent — 検索結果からコンテンツへ遷移する軽量Intent
  • Vision: GenerateImageFeaturePrintRequest — オンデバイスの画像類似マッチング、feature print事前計算カタログ
  • semanticContentSearch スキーマ — アプリ内検索体験への継続

このリポジトリへの反映案

  • 新しいブリッジ概念: ピクセルバッファ(画像)入力をDartへ渡すか、Swift側(Vision)で完結させるかの設計判断が必要
  • IntentValueQuery 対応(IntentValueQuery (structured & visual search) / IntentValueQuery対応 (WWDC26) #51)が前提
  • app_intents_annotations: ビジュアル検索ハンドラ用の新アノテーション
  • app_intents_codegen: IntentValueQuery(visual) 準拠型と OpenIntent の生成
  • Vision の feature print 計算はネイティブで重い処理になるため、Flutter側に出さずSwift側で完結させる方が現実的な可能性

制約・備考


🌐 English

Overview

Integrate Visual Intelligence into the app, providing image search over camera / screenshot input via the VisualIntelligence framework and the Vision framework.

Related session:

New APIs

  • VisualIntelligence framework — enable image search capabilities
  • IntentValueQuery + SemanticContentDescriptor (pixel-buffer input) → [VisualSearchResult]
  • Return multiple entity types via @UnionValue (e.g. albums and concerts)
  • OpenIntent — a lightweight intent to navigate from a search result to content
  • Vision: GenerateImageFeaturePrintRequest — on-device image similarity matching, with a pre-computed feature-print catalog
  • semanticContentSearch schema — continue into the in-app search experience

Proposed changes in this repo

  • A new bridging concept: decide whether to pass pixel-buffer (image) input to Dart, or keep it entirely on the Swift side (Vision)
  • Depends on IntentValueQuery support (IntentValueQuery (structured & visual search) / IntentValueQuery対応 (WWDC26) #51)
  • app_intents_annotations: a new annotation for the visual-search handler
  • app_intents_codegen: generate the IntentValueQuery (visual)-conforming type and OpenIntent
  • Vision feature-print computation is heavy native work, so keeping it entirely on the Swift side (not exposing it to Flutter) is likely more realistic

Constraints / notes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked: needs-device実機または macOS destination での検証が必要(Simulator SDK に無い等)dartDart-side changeenhancementNew feature or requestswiftSwift / iOS nativewwdc26WWDC26で発表されたApp Intents関連の新機能候補

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions