我的脸部识别码存在问题。每次运行代码时都会出现错误:
public void addData(Number xValue, Number yValue){
if(xValue.intValue() < 0 || xValue.intValue() > 3000 ||
yValue.intValue() < 0 || yValue.intValue() > 1000)
return;
XYChart.Data<Number , Number> data =
new XYChart.Data<>(SystemUtil.round(xValue.intValue()), SystemUtil.round(yValue.intValue()));
seri.getData().add(data);
Node currentNode = data.getNode();
currentNode.setCursor(Cursor.HAND);
currentNode.setOnMouseDragged(event -> {
Point2D pointInScene = new Point2D(event.getSceneX(), event.getSceneY());
double xPosInAxis = timeAxis.sceneToLocal(new Point2D(pointInScene.getX(), 0)).getX();
double yPosInAxis = bandWidthAxis.sceneToLocal(new Point2D(0, pointInScene.getY())).getY();
int x = timeAxis.getValueForDisplay(xPosInAxis).intValue();
int y = bandWidthAxis.getValueForDisplay(yPosInAxis).intValue();
data.setXValue(SystemUtil.round(x));
data.setYValue(SystemUtil.round(y));
});
currentNode.setOnContextMenuRequested(e -> {
if(chartContextMenu.isShowing())
chartContextMenu.hide();
dataContextMenu.setUserData(data);
dataContextMenu.show(lineChart1, e.getScreenX(), e.getScreenY());
});
}
我从某处复制了这段代码,但我不记得在哪里,所以我觉得很难理解代码。
代码是: 包AppearanceRecognition;
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - cannot find symbol
symbol: variable AppearanceRecognition
location: class AppearanceRecognition.EigenFacesRunner
at AppearanceRecognition.EigenFacesRunner.main(EigenFacesRunner.java:42)
C:\Users\Adila\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 0 seconds)