在ImageDetect中找不到AVFoundation Face?

时间:2018-10-08 15:30:51

标签: swift avfoundation

我正在使用 Sub historical() Dim currentSheet As Worksheet, sheetIndex As Integer Dim baris As Long, pasterowIndex As Long sheetIndex = 8 pasterowIndex = 2 For Each currentSheet In Worksheets For baris = 2 To Cells(Rows.Count, 7).End(xlUp).Row If Cells(baris, 7).Value = "1" Then Rows(baris).Select Selection.Copy Sheets(sheetIndex).Select Rows(pasterowIndex).Select ActiveSheet.Paste pasterowIndex = pasterowIndex + 1 currentSheet.Select End If Next baris pasterowIndex = 2 sheetIndex = sheetIndex + 1 Next currentSheet End Sub AVFoundation库,该库可以从图像中裁剪出面孔。我使用AV会话开始视频,并设置计时器0.5秒以获取视频帧作为UIImage。该图像可以在图像视图上完美显示,但是当我将此图像提供给ImageDetect库时,它进入.notFound情况。我在ImageDetect会话框架中使用相同的库,但效果很好,但在这种情况下不起作用。

ARKit

0 个答案:

没有答案