亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? frmvideocapture.frm

?? FaceRec 簡單易懂的神經網絡面部特征識別例子 [VB源碼]
?? FRM
字號:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmVideoCapture 
   BackColor       =   &H8000000C&
   Caption         =   "Video"
   ClientHeight    =   2775
   ClientLeft      =   2850
   ClientTop       =   3405
   ClientWidth     =   6165
   Icon            =   "frmVideoCapture.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   185
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   411
   StartUpPosition =   2  'CenterScreen
   Begin VB.PictureBox picRed 
      Height          =   2145
      Left            =   2955
      MousePointer    =   2  'Cross
      ScaleHeight     =   204.412
      ScaleMode       =   0  'User
      ScaleWidth      =   187.097
      TabIndex        =   8
      Top             =   5010
      Visible         =   0   'False
      Width           =   2670
   End
   Begin VB.Frame Frame1 
      Height          =   615
      Left            =   0
      TabIndex        =   4
      Top             =   2160
      Width           =   2655
      Begin VB.CommandButton cmdStop 
         Enabled         =   0   'False
         Height          =   495
         Left            =   480
         Picture         =   "frmVideoCapture.frx":0442
         Style           =   1  'Graphical
         TabIndex        =   6
         Top             =   120
         Width           =   495
      End
      Begin VB.CommandButton cmdPlay 
         Height          =   495
         Left            =   0
         Picture         =   "frmVideoCapture.frx":086C
         Style           =   1  'Graphical
         TabIndex        =   5
         Top             =   120
         Width           =   495
      End
      Begin MSComctlLib.Slider sldSensitivity 
         Height          =   375
         Left            =   1050
         TabIndex        =   7
         Top             =   195
         Width           =   1530
         _ExtentX        =   2699
         _ExtentY        =   661
         _Version        =   393216
         Min             =   50
         Max             =   99
         SelStart        =   50
         TickStyle       =   3
         TickFrequency   =   5
         Value           =   50
      End
   End
   Begin VB.PictureBox picFaces 
      BackColor       =   &H00000000&
      Height          =   2160
      Left            =   30
      MousePointer    =   2  'Cross
      ScaleHeight     =   100
      ScaleMode       =   0  'User
      ScaleWidth      =   100
      TabIndex        =   3
      Top             =   0
      Width           =   2655
   End
   Begin VB.PictureBox picMotion 
      Height          =   1080
      Left            =   510
      MousePointer    =   2  'Cross
      ScaleHeight     =   54.839
      ScaleMode       =   0  'User
      ScaleWidth      =   56.364
      TabIndex        =   2
      Top             =   5010
      Visible         =   0   'False
      Width           =   1455
   End
   Begin VB.Timer timGrab 
      Interval        =   500
      Left            =   120
      Top             =   1440
   End
   Begin VB.PictureBox picCapture2 
      BackColor       =   &H00000000&
      Height          =   2160
      Left            =   2640
      MousePointer    =   2  'Cross
      ScaleHeight     =   100
      ScaleMode       =   0  'User
      ScaleWidth      =   100
      TabIndex        =   1
      Top             =   0
      Width           =   3495
   End
   Begin VB.PictureBox picCapture 
      Height          =   2160
      Left            =   2640
      MousePointer    =   2  'Cross
      ScaleHeight     =   2100
      ScaleWidth      =   3435
      TabIndex        =   0
      Top             =   0
      Width           =   3495
   End
   Begin VB.Shape shaBorder2 
      BackColor       =   &H00808080&
      BackStyle       =   1  'Opaque
      BorderColor     =   &H00808080&
      FillColor       =   &H00404040&
      Height          =   3495
      Left            =   0
      Top             =   3360
      Width           =   2655
   End
   Begin VB.Shape shaBorder 
      BackColor       =   &H00808080&
      BackStyle       =   1  'Opaque
      BorderColor     =   &H00808080&
      FillColor       =   &H00404040&
      Height          =   3495
      Left            =   0
      Top             =   0
      Width           =   2655
   End
   Begin VB.Menu mnuFile 
      Caption         =   "&File"
      Begin VB.Menu mnuExit 
         Caption         =   "E&xit"
      End
   End
   Begin VB.Menu mnuRecognition 
      Caption         =   "&Recognition"
      Begin VB.Menu mnuTraining 
         Caption         =   "&Training"
      End
      Begin VB.Menu mnuTesting 
         Caption         =   "T&esting"
      End
   End
   Begin VB.Menu mnuOptions 
      Caption         =   "&Options"
      Begin VB.Menu mnuFormat 
         Caption         =   "&Format..."
         Enabled         =   0   'False
      End
      Begin VB.Menu mnuSource 
         Caption         =   "S&ource..."
         Enabled         =   0   'False
      End
      Begin VB.Menu mnuDisplay 
         Caption         =   "&Display..."
         Enabled         =   0   'False
      End
      Begin VB.Menu mnuspacer5 
         Caption         =   "-"
      End
      Begin VB.Menu mnuCompression 
         Caption         =   "&Compression..."
      End
      Begin VB.Menu mnuspacer6 
         Caption         =   "-"
      End
      Begin VB.Menu mnuDriver 
         Caption         =   "<none>"
         Enabled         =   0   'False
         Index           =   0
      End
   End
   Begin VB.Menu mnuHelp 
      Caption         =   "&Help"
      Begin VB.Menu mnuAbout 
         Caption         =   "&About"
      End
   End
End
Attribute VB_Name = "frmVideoCapture"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private hCapWnd As Long       ' Handle to the Capture Windows
Private nDriverIndex As Long  ' video driver index (default 0)
Private m_CapParams As CAPTUREPARMS

'Public property to prevent reentrancy in Form_Resize event
Public AutoSizing As Boolean

Public vidCapture As New ClassVideoCapture
Public LeftBorderWidth As Integer
Public minBorderHeight As Integer

Dim Busy As Boolean
Dim Play As Boolean
Dim VideoConnected As Boolean

Dim faces As New ClassFaceRecogniser


Public Property Get capwnd() As Long
'read-only public property to allow other forms to retrieve hwnd of Cap Window
  capwnd = hCapWnd
End Property


Public Property Get MenuHeight() As Long
'read-only properties for sizing
  MenuHeight = GetSystemMetrics(SM_CYMENU)
End Property


Public Property Get CaptionHeight() As Long
  CaptionHeight = GetSystemMetrics(SM_CYCAPTION)
End Property



Public Sub grabFrame(pic As PictureBox)
  Dim FileName As String
  Dim retVal As Boolean
  
  Busy = True
  Call capGrabFrame(hCapWnd)
  
  FileName = App.Path & "\bob.bmp"
  retVal = capFileSaveDIB(hCapWnd, FileName)
  If (retVal = False) Then
    MsgBox "Problem saving frame", vbInformation, App.Title
  End If
  pic.Picture = LoadPicture(FileName)
  
  Call vidCapture.update(pic)
  Busy = False
End Sub




Private Sub cmdPlay_Click()
  Play = True
  cmdStop.Enabled = True
  cmdPlay.Enabled = False
  sldSensitivity.Enabled = False
End Sub


Private Sub cmdStop_Click()
  Play = False
  cmdStop.Enabled = False
  cmdPlay.Enabled = True
  sldSensitivity.Enabled = True
End Sub

Private Sub Form_Load()
  Dim retVal As Boolean
  Dim numDevs As Long
  Dim FileName As String
  Const image_Width = 25
  Const image_Height = 25

  Busy = True
  Play = False
  VideoConnected = False
  
  frmVideoCapture.MousePointer = 11
  
  FileName = App.Path & "\faces.rec"
  
  Call faces.init
  Call faces.load
  sldSensitivity.Value = Int(faces.getRecognitionThreshold * 100)
  
  LeftBorderWidth = shaBorder.width
  minBorderHeight = shaBorder.height

  Set vidCapture = New ClassVideoCapture
  Call vidCapture.init(image_Width, image_Height)
  vidCapture.processRGB = False

  'detect hardware
  numDevs = VBEnumCapDrivers(Me)
  If (numDevs <> 0) Then
  
    nDriverIndex = Val(GetSetting(App.Title, "driver", "index", "0"))
  
    'if invalid entry is in registry use default (0)
    If (mnuDriver.UBound < nDriverIndex) Then
      nDriverIndex = 0
    End If
    mnuDriver(nDriverIndex).Checked = True
  
    'Create Capture Window
    hCapWnd = capCreateCaptureWindow("VB CAP WINDOW", WS_CHILD Or WS_VISIBLE, 0, 0, 160, 120, picCapture.hWnd, 0)
    If (hCapWnd <> 0) Then
  
      retVal = ConnectCapDriver(hCapWnd, nDriverIndex)
      If (retVal = False) Then
        MsgBox "could not connect to capture driver", vbInformation, App.Title
        Else
        #If (USECALLBACKS = 1) Then
          'if we have a valid capwnd we can enable our status callback function
          Call capSetCallbackOnStatus(hCapWnd, AddressOf StatusProc)
        #End If
        VideoConnected = True
      End If
 
      Else
    
      MsgBox "could not create capture window", vbCritical, App.Title
    End If
    
    Else

    MsgBox "No capture hardware detected", vbCritical, App.Title
  End If
  
  frmVideoCapture.MousePointer = 0
  Busy = False
  
  If (Not VideoConnected) Then
    Unload frmVideoCapture
    frmTesting.show
  End If
  
End Sub


Public Sub Form_Resize()
  Dim retVal As Boolean
  Dim capStat As CAPSTATUS

  'Get the capture window attributes
  retVal = capGetStatus(hCapWnd, capStat)
  If (retVal) Then
    picCapture.left = LeftBorderWidth
    picCapture.width = capStat.uiImageWidth
    picCapture.ScaleWidth = picCapture.width
    picCapture.height = capStat.uiImageHeight
    picCapture.ScaleHeight = picCapture.height
    
    picCapture2.left = LeftBorderWidth
    picCapture2.width = capStat.uiImageWidth
    picCapture2.ScaleWidth = 100
    picCapture2.height = capStat.uiImageHeight
    picCapture2.ScaleHeight = 100
    
    'picFaces.left = LeftBorderWidth
    'picFaces.width = capStat.uiImageWidth
    'picFaces.ScaleWidth = 100
    'picFaces.height = capStat.uiImageHeight
    'picFaces.ScaleHeight = 100
  End If

End Sub

Private Sub Form_Unload(Cancel As Integer)

  Call faces.Free
  
  If (VideoConnected) Then
  
    'save trivial settings
    If (Me.WindowState = vbDefault) Then
      Call SaveSetting(App.Title, "preferences", "left", Me.left)
      Call SaveSetting(App.Title, "preferences", "top", Me.top)
    End If

    'unsubclass if necessary
    #If USECALLBACKS = 1 Then
      'Disable status callback
      Call capSetCallbackOnStatus(hCapWnd, 0&)
    #End If

    'disconnect VFW driver
    Call basVFW.capDriverDisconnect(hCapWnd)
    'destroy CapWnd
    If (hCapWnd <> 0) Then Call DestroyWindow(hCapWnd)
    
  End If
  
End Sub


Private Sub mnuAbout_Click()
  frmAbout.show 1
End Sub

Private Sub mnuCompression_Click()
  Call capDlgVideoCompression(hCapWnd)
End Sub



Private Sub mnuDisplay_Click()
  Call capDlgVideoDisplay(hCapWnd)
End Sub


Private Sub mnuDriver_Click(Index As Integer)
  Dim retVal As Boolean
    
  retVal = ConnectCapDriver(hCapWnd, Index)
  If (retVal = False) Then
    MsgBox "could not connect to capture driver", vbInformation, App.Title
    Else
    Call SaveSetting(App.Title, "driver", "index", CStr(Index)) 'save selected device index
  End If
End Sub


Private Sub mnuExit_Click()
  Unload Me
End Sub

Private Sub mnuFormat_Click()
  Call capDlgVideoFormat(hCapWnd)
  Call ResizeCaptureWindow(hCapWnd, LeftBorderWidth, minBorderHeight)
End Sub


Private Sub mnuSource_Click()
'Display the Video Source dialog when "Source" is selected from the menu bar
  Call capDlgVideoSource(hCapWnd)
End Sub


Private Sub findFaces()
  If (Play) Then
    Call faces.IdentifyFaceWithinPicture(picCapture2, 0, 0, picCapture2.ScaleWidth, picCapture2.ScaleHeight)
  End If
  DoEvents
  If (Play) Then
    Call faces.showFaceProbabilities(picFaces)
  End If
End Sub


Private Sub mnuTesting_Click()
  frmTesting.show
  Unload frmVideoCapture
End Sub


Private Sub mnuTraining_Click()
  frmTraining.show
  Unload frmVideoCapture
End Sub


Private Sub sldSensitivity_Change()
  Call faces.setRecognitionThreshold(sldSensitivity.Value / 100)
End Sub


Private Sub timGrab_Timer()
  If (Not Busy) And (Play) Then
    Call grabFrame(picCapture2)
    DoEvents
    If (Play) Then
      Call findFaces
    End If
  End If
End Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色综合天天久久综合精品| 成人午夜视频福利| 亚洲愉拍自拍另类高清精品| 国产喷白浆一区二区三区| 精品国产一区二区三区久久影院| 欧美福利一区二区| 3atv一区二区三区| 日韩一级片网址| 日韩一区二区三区高清免费看看| 69av一区二区三区| 欧美xxxx老人做受| 国产日韩欧美综合一区| 日本一区二区三区四区在线视频| 日本一区二区三区四区在线视频| 中文字幕亚洲一区二区av在线| 中文字幕中文在线不卡住| 亚洲欧洲www| 尤物视频一区二区| 亚洲国产wwwccc36天堂| 蜜臀av性久久久久蜜臀aⅴ四虎| 七七婷婷婷婷精品国产| 国产精品一区在线| 99久久99久久久精品齐齐| 欧美综合视频在线观看| 7777精品伊人久久久大香线蕉的| 精品少妇一区二区| 国产精品国产三级国产普通话蜜臀 | 91精品国产一区二区三区香蕉| 欧美肥妇毛茸茸| 久久午夜电影网| 亚洲视频 欧洲视频| 五月天婷婷综合| 国产精品一区一区三区| 在线观看一区日韩| 2欧美一区二区三区在线观看视频| 久久久国产一区二区三区四区小说| 亚洲欧洲性图库| 婷婷中文字幕综合| 国产激情一区二区三区| 色猫猫国产区一区二在线视频| 欧美撒尿777hd撒尿| 久久新电视剧免费观看| 亚洲一区二区三区爽爽爽爽爽| 精品一区二区三区香蕉蜜桃| www.成人网.com| 91精品国产色综合久久不卡电影| 中文一区在线播放| 日韩成人免费电影| 99re视频这里只有精品| 日韩一区二区三区电影在线观看| 亚洲欧美在线aaa| 国产九色sp调教91| 日韩一区二区三免费高清| 亚洲天堂成人网| 国产sm精品调教视频网站| 91精品国产免费| 国产精品丝袜久久久久久app| 午夜精品久久久久影视| 91丝袜美腿高跟国产极品老师| 欧美白人最猛性xxxxx69交| 午夜国产不卡在线观看视频| 97精品国产露脸对白| 欧美经典一区二区| 精品一区二区三区在线播放| 国产91高潮流白浆在线麻豆| 精品国偷自产国产一区| 免费高清视频精品| 91精品国产综合久久婷婷香蕉 | 亚洲国产日产av| 一本一道久久a久久精品综合蜜臀| 国产片一区二区| 国产黄人亚洲片| 久久精品视频一区二区三区| 精品一区二区三区影院在线午夜| 欧美一级片在线观看| 香蕉av福利精品导航| 91美女蜜桃在线| 中文字幕一区二区三中文字幕| 国产福利不卡视频| 欧美激情综合在线| 成人黄页在线观看| 国产精品网友自拍| 色综合久久综合| 亚洲影视在线观看| 欧美日精品一区视频| 日本在线不卡一区| 欧美一区二区高清| 国产一区二区三区不卡在线观看 | 亚洲天天做日日做天天谢日日欢 | 欧美色中文字幕| 五月激情综合婷婷| 精品少妇一区二区三区在线视频| 韩国一区二区视频| 亚洲国产精品二十页| 99v久久综合狠狠综合久久| 亚洲激情图片小说视频| 欧美日韩一二区| 成人综合在线网站| 18成人在线观看| 欧美日韩免费观看一区三区| 日韩成人精品在线观看| 久久亚洲精精品中文字幕早川悠里| 国产精品456| 一区二区国产视频| 日韩精品资源二区在线| 成人性生交大合| 亚洲午夜电影网| 国产偷国产偷亚洲高清人白洁| 色综合久久88色综合天天免费| 日本美女一区二区三区视频| 国产精品视频你懂的| 欧美日韩国产小视频在线观看| 精彩视频一区二区三区| 亚洲免费视频中文字幕| 日韩午夜av一区| 99视频有精品| 国产最新精品免费| 亚洲日穴在线视频| 精品精品欲导航| 欧美自拍偷拍一区| 韩国成人福利片在线播放| 亚洲女子a中天字幕| 九九热在线视频观看这里只有精品| 精品欧美一区二区三区精品久久 | 亚洲在线观看免费| 日韩欧美在线一区二区三区| 丰满放荡岳乱妇91ww| 国产日韩欧美精品电影三级在线| 99久久99久久精品免费观看| 欧美综合久久久| 99久久婷婷国产| 欧美伊人久久大香线蕉综合69| 成人激情动漫在线观看| 国产乱子轮精品视频| 欧美国产日韩在线观看| 欧美在线视频不卡| 成人免费视频app| 日本不卡高清视频| 精品久久久久久综合日本欧美| 激情都市一区二区| 图片区小说区区亚洲影院| 欧美精品一区视频| 岛国精品在线播放| 亚洲成人激情综合网| 亚洲人成亚洲人成在线观看图片 | 91精品1区2区| 国产一区二区伦理| 老司机一区二区| 亚洲最新在线观看| 亚洲黄网站在线观看| 亚洲人成亚洲人成在线观看图片| 久久影院视频免费| 精品国产污网站| 欧美精三区欧美精三区| 在线观看国产一区二区| 色噜噜狠狠色综合中国| 一本色道综合亚洲| av在线播放成人| av在线免费不卡| 99久久99久久精品免费观看 | 欧美日韩久久不卡| 一本久道久久综合中文字幕| 成人国产视频在线观看| 国产馆精品极品| 成人精品高清在线| eeuss鲁片一区二区三区在线观看| 国产v综合v亚洲欧| av在线免费不卡| 色婷婷av一区二区三区软件 | 91精品国产手机| 日韩三级视频在线观看| 久久九九99视频| 国产精品久久久久一区二区三区 | 韩国三级电影一区二区| 国产福利一区在线| av不卡免费在线观看| 欧美午夜精品电影| 欧美v国产在线一区二区三区| 日韩欧美亚洲一区二区| 国产视频一区二区三区在线观看 | 国产欧美日韩另类视频免费观看| 日本一区二区三级电影在线观看 | 在线精品视频一区二区三四| 欧美一区二区三区四区高清| 日韩三级伦理片妻子的秘密按摩| 日本一区二区在线不卡| 亚洲香肠在线观看| 国产乱子轮精品视频| 欧美亚洲综合一区| 久久久99精品久久| 中文字幕一区二区三区乱码在线| 亚洲成人www| 韩国成人福利片在线播放| 色偷偷一区二区三区| 久久无码av三级| 亚洲免费资源在线播放| 黄页视频在线91| 欧美日韩mp4| 日韩理论在线观看| 韩国一区二区在线观看|