yanjinhui
2025-06-12 95ac5296182b763d12125c1d47f53c00632ffc41
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
 
// 适配奥比中光镜头
namespace FaceAI
{
    class OrbeCamera
    {
        // 获取orbeCamera对象  奥比中光海燕等众多奥比镜头
        [DllImport("OrbeCamera.dll", EntryPoint = "new_orbe", CharSet = CharSet.Ansi
           , CallingConvention = CallingConvention.Cdecl)]
        public static extern IntPtr new_orbe();
 
        // 打开奥比中光
        [DllImport("OrbeCamera.dll", EntryPoint = "open_orbe", CharSet = CharSet.Ansi
           , CallingConvention = CallingConvention.Cdecl)]
        public static extern int open_orbe(IntPtr porbe, IntPtr cv_rgb, IntPtr cv_depth);
 
        // 释放奥比中光
        [DllImport("OrbeCamera.dll", EntryPoint = "orbe_release", CharSet = CharSet.Ansi
           , CallingConvention = CallingConvention.Cdecl)]
        public static extern void orbe_release(IntPtr orbe);
 
    }
}