Android Open Source - android-mtg_card_scan Resizable Camera View






From Project

Back to project page android-mtg_card_scan.

License

The source code is released under:

GNU General Public License

If you think the Android project android-mtg_card_scan listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.chrismeyers.android.mtg;
/*w w  w.  ja v a2s .  c o m*/
import org.opencv.android.JavaCameraView;

import android.content.Context;
import android.hardware.Camera.Size;
import android.util.AttributeSet;

public class ResizableCameraView extends JavaCameraView {
    public ResizableCameraView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public void setResolution(Size resolution) {
        disconnectCamera();
        mMaxHeight = resolution.height;
        mMaxWidth = resolution.width;
        connectCamera(getWidth(), getHeight());
    }
}




Java Source Code List

org.chrismeyers.android.mtg.Card.java
org.chrismeyers.android.mtg.CvConvert.java
org.chrismeyers.android.mtg.ImageDHash.java
org.chrismeyers.android.mtg.MainActivity.java
org.chrismeyers.android.mtg.Match.java
org.chrismeyers.android.mtg.ResizableCameraView.java