Added correct 3D model rendering.
This commit is contained in:
@@ -28,9 +28,28 @@ public class CVProcessor implements ImageProcessor {
|
||||
|
||||
private boolean cameraCalibrated;
|
||||
|
||||
private native void getMarkerCodesAndLocations(long inMat, long outMat, int[] codes, long camMat, long distMat, float[] translations, float[] rotations);
|
||||
private native boolean findCalibrationPattern(long inMat, long outMat, float[] points);
|
||||
private native double calibrateCameraParameters(long camMat, long distMat, long frame, float[] calibrationPoints);
|
||||
private native void getMarkerCodesAndLocations(
|
||||
long inMat,
|
||||
long outMat,
|
||||
int[] codes,
|
||||
long camMat,
|
||||
long distMat,
|
||||
float[] translations,
|
||||
float[] rotations
|
||||
);
|
||||
|
||||
private native boolean findCalibrationPattern(
|
||||
long inMat,
|
||||
long outMat,
|
||||
float[] points
|
||||
);
|
||||
|
||||
private native double calibrateCameraParameters(
|
||||
long camMat,
|
||||
long distMat,
|
||||
long frame,
|
||||
float[] calibrationPoints
|
||||
);
|
||||
|
||||
static{
|
||||
try{
|
||||
|
||||
@@ -8,7 +8,7 @@ import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
|
||||
public class DesktopLauncher{
|
||||
private static final String TAG = "NXTAR_ANDROID_MAIN";
|
||||
private static final String CLASS_NAME = DesktopLauncher.class.getSimpleName();
|
||||
|
||||
|
||||
public static void main (String[] arg) {
|
||||
if(!CVProcessor.isOcvOn()){
|
||||
throw new RuntimeException(TAG + " : " + CLASS_NAME + ": OpenCV failed to load.");
|
||||
|
||||
Reference in New Issue
Block a user