MainController.java
796 Bytes
package com.viontech.keliu.controller;
import com.viontech.keliu.entity.HeatMapRequestEntity;
import com.viontech.keliu.jni.HeatMapUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import java.awt.*;
/**
* .
*
* @author 谢明辉
* @date 2021/3/23
*/
@RestController
@Slf4j
public class MainController {
@PostMapping("/heatMapTransAxis")
public Point heatMapTransAxis(@RequestBody HeatMapRequestEntity entity) {
return HeatMapUtil.transAxis(entity.getCameraType(), entity.getCenterPoint(), entity.getMarginPoint(), entity.getCameraPoints(), entity.getMapPoints(), entity.getInputPoint());
}
}