Advertisement

海康人脸库导入 facial data and 人员扩展信息使用心得

阅读量:

1、提交模拟代码

复制代码
  //真正的上传图片 待测试

    
     public void uploadSend(String facePicPath, String xmlPath) {
    
     FileInputStream picfile = null;
    
     FileInputStream xmlfile = null;
    
     int picdataLength = 0;
    
     int xmldataLength = 0;
    
     try {
    
         picfile = new FileInputStream(new File("/home/zhu/face.jpg"));
    
         xmlfile = new FileInputStream(new File("/home/zhu/data.xml"));
    
     } catch (FileNotFoundException e) {
    
         e.printStackTrace();
    
     }
    
     try {
    
         picdataLength = picfile.available();
    
         xmld

全部评论 (0)

还没有任何评论哟~