+
Skip to content

gorjul/Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java

Some Java scripts what might come in handy

GenerateGPSCoordinates.java

This file contains a method that generates new GPS coordinates based on an initial Position, the distance between the old and new position and the bearing (heading) in degrees.

If this method is used for other calculations than for satellites, the heightSatellite variable will be set to 0, and the distanceOrbit variable describes the real distance on the ground. Otherwise the distanceOrbit describes the distance the satellite makes between each method call and the heightSatellite variable contains the satellite's height in meters in the sky measured from the earth surface.

KerasImageClassifierInJava.java

This file is an example of how to read in a keras model in Java using deeplearning4j. To change the shape of the numpy arrays use the Nd4j package like reshaping etc.

A model gets read in including weights (see the link of deeplearning4j for other possibilities), then the image will be read and transformed to fit the input layer of the model. Then the classifier returns the result.

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载