Skip to content

Commit

Permalink
更新 main.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon authored Jul 26, 2023
1 parent cc0b864 commit a4f038c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func detectText(fileName : URL) -> [CIFeature]? {

// Create a new request to recognize text.
let request = VNRecognizeTextRequest(completionHandler: recognizeTextHandler)
request.recognitionLanguages = recognitionLanguages

do {
// Perform the text-recognition request.
Expand All @@ -61,8 +60,6 @@ func detectText(fileName : URL) -> [CIFeature]? {
return nil
}

var recognitionLanguages = ["zh"]

do {
if CommandLine.argc < 2 {
print("Please provide an image path.")
Expand Down

0 comments on commit a4f038c

Please sign in to comment.