Hello, did you resolve this problem? Because I have the same issues. Here my code:
Intent.swift
struct Intent: AppIntent {
static var title: LocalizedStringResource = "Perform Intent"
static var openAppWhenRun: Bool = false
@MainActor
func perform() async throws -> some IntentResult {
return .result(dialog: "Hello World")
}
}
IntentExtension.swift
@main
struct IntentExtension: AppIntentsExtension {
}
struct Shortcuts: AppShortcutsProvider {
static var appShortcuts: [AppShortcut] {
AppShortcut(intent: Intent(), phrases: ["Perform intent"])
}
}
Probably for the recognition phase need to pass Shortcuts struct to IntentExtension but I don't understand how I can do it
Post
Replies
Boosts
Views
Activity
Probably this can help you.
if let imageBuffer = CMSampleBufferGetImageBuffer(sampleBuffer) {
// here you need to pass the imageBuffer of your main model ml
}
I also investigate this. And I have an idea, we have simd_float4x4 matrix, and we can get coordinate our walls, but it will be just point, need to draw a line from this and other points, and find edges, just ignore Y axis, but I don't understand in which direction need to draw a line. Probably I don't know how works simd_float4x4 matrix, and how need to decode the value. Do you have some ideas?
Hello guys. Do you have some ideas on how to find the corner edges of the wall? Because I want to draw a 2d map of the room. And I decided firstly to find corner edges on each wall, but I don't understand how can I do it.
Hi. Did you solve this problem? Because I also have this issue.
Hi there.
Did you find any explanations? Because it seemed strange when Apple changed API for 16 iOS with checking of support and capabilities and then current iPhones where direction measure does not work.