这个类主要就是model类,对应数据库中的表users:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;namespace Camtest
{public class Users{//编号public long id { get; set; }//姓名public…
这个类主要是解析json数据
using face;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;namespace Camtest
{public class fac…
这个类主要就是人脸检测用到的实体模型
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;namespace face
{public class facemodel{//年龄public string age { get; set; }//美丑public string beauty …
// 四舍五入 BigDecimal value new BigDecimal(object.toString()).setScale(2,BigDecimal.ROUND_HALF_UP); // 不足两位小数补0 DecimalFormat decimalFormat new DecimalFormat("0.00#"); String strVal decimalFormat.format(value);
人脸检测源码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.W…