Skip to content

Commit

Permalink
Remove OCR reference
Browse files Browse the repository at this point in the history
  • Loading branch information
alexschneider committed Nov 23, 2021
1 parent 8c3e702 commit 1dab4f9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ import android.os.Build
import android.util.Log
import android.view.accessibility.AccessibilityEvent
import android.view.accessibility.AccessibilityNodeInfo
import android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction.ACTION_SELECT
import android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction.ACTION_SHOW_ON_SCREEN
import android.widget.Toast
import androidx.annotation.RequiresApi

/**
* An [AccessibilityService] for scrolling on-screen text to match recently-played audio.
*
* When the Live Captions view scrolls, this service receives an [AccessibilityEvent]. It then takes
* a screenshot and uses OCR to read the current Live Caption text. The current accessibility tree
* When the Live Captions view scrolls, this service receives an [AccessibilityEvent]. It then grabs
* the Live Caption window node to read the current Live Caption text. The current accessibility tree
* is searched for the current caption text. If a unique [AccessibilityNodeInfo] is found to match
* the caption text, it is requested to show itself on screen.
*/
Expand Down

0 comments on commit 1dab4f9

Please sign in to comment.