code: public JSONObject antiPorn(byte[] imgData) {
          AipRequest request = new AipRequest();
          // check param
  
          JSONObject checkRet = checkParam(imgData);
          if (!"0".equals(checkRet.getString("error_code"))) {
              return checkRet;
          }
          preOperation(request);
          // add API params
          String base64Content = Base64Util.encode(imgData);
  
          request.addBody("image", base64Content);
          request.setUri(ContentCensorConsts.ANTI_PORN_URL);
          postOperation(request);
  
          return requestServer(request);
      }
docs: 色情识别接口
  @param imgData 图片二进制数据
  @return JSONObject