Professional Documents
Culture Documents
Lecture 26
Lecture 26
Lecture 26
Wenbing Zhao
Department of Electrical Engineering and Computer Science
Cleveland State University
w.zhao1@csuohio.edu
allprojects {
// ...
repositories {
// ...
google() // Google's Maven repository
}
}
You should also add the dependencies for the Firebase SDKs you want to
use. We recommend starting with com.google.firebase:firebase-core,
which provides Google Analytics for Firebase functionality
Available firebase libraries:
https://firebase.google.com/docs/android/setup#available_libraries
You can also create a FirebaseVisionImage from a file, from a ByteBuffer or byte
array, or a media.Image taken by the device’s camera
import com.google.android.gms.tasks.Task;
import com.google.firebase.ml.vision.FirebaseVision;
import com.google.firebase.ml.vision.common.FirebaseVisionImage;
import com.google.firebase.ml.vision.label.FirebaseVisionLabel;
import com.google.firebase.ml.vision.label.FirebaseVisionLabelDetector;