You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Check console. Never get "streamed" message. Never get any text on the screen (unless I uncomment the "testing" one.
import UIKit
import AVFoundation
import Lumina
classMainVC:UIViewController{overridefunc viewDidAppear(_ animated:Bool){
super.viewDidAppear(animated)LuminaViewController.loggingLevel =.verbose
letcamera=LuminaViewController()
camera.delegate =selfif #available(iOS 11.0,*){
camera.streamFrames =true
camera.textPrompt =""
camera.trackMetadata =true
camera.streamingModels =[MobileNet(),Inceptionv3()]}else{print("Warning: this iOS version doesn't support CoreML")}
// camera.textPrompt = "testing"
present(camera, animated:true, completion:nil)}}extensionMainVC:LuminaDelegate{func dismissed(controller:LuminaViewController){
controller.dismiss(animated:true, completion:nil)}func streamed(videoFrame:UIImage, with predictions:[LuminaRecognitionResult]?, from controller:LuminaViewController){print("streamed")if #available(iOS 11.0,*){guardlet predicted = predictions else{return}varresultString=String()forpredictionin predicted {guardlet values = prediction.predictions else{continue}guardlet bestPrediction = values.first else{continue}
resultString.append("\(String(describing: prediction.type)): \(bestPrediction.name)"+"\r\n")}
controller.textPrompt = resultString
}else{print("Warning: this iOS version doesn't support CoreML")}}}
Expected behavior
Followed YouTube video. It should show predictions on screen. Currently it shows no text, and doesn't debug to console that it even hit that function. dismissed works though.
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Device: iPhone 6S
OS: iOS11.4
Version: 1.3.1 (with the edits from my PR)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
I think this means I need to re-record my video, as the interface for this changed in v1.3.0. Can you try to use the readme, which has been updated, to make your project work? The main line of code will change to:
if #available(iOS 11.0,*){
camera.streamingModels =[LuminaModel(model:MobileNet().model, type:"MobileNet"),LuminaModel(model:Inceptionv3().model, type:"Inceptionv3")]}else{print("Warning: this iOS version doesn't support CoreML")}
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Check console. Never get "streamed" message. Never get any text on the screen (unless I uncomment the "testing" one.
Expected behavior
Followed YouTube video. It should show predictions on screen. Currently it shows no text, and doesn't debug to console that it even hit that function.
dismissed
works though.Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: