本文整理汇总了Java中com.google.android.gms.vision.Tracker类的典型用法代码示例。如果您正苦于以下问题:Java Tracker类的具体用法?Java Tracker怎么用?Java Tracker使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Tracker类属于com.google.android.gms.vision包,在下文中一共展示了Tracker类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: create
import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Barcode> create(Barcode barcode) {
return new Tracker<Barcode>() {
/**
* Start tracking the detected item instance within the item overlay.
*/
@Override
public void onNewItem(int id, Barcode item) {
// Act on new barcode found
WritableMap event = Arguments.createMap();
event.putString("data", item.displayValue);
event.putString("type", BarcodeFormat.get(item.format));
sendNativeEvent(BARCODE_FOUND_KEY, event);
}
};
}
示例2: create
import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Barcode> create(Barcode barcode) {
mListener.onBarcodeCreated(barcode);
BarcodeGraphic graphic = new BarcodeGraphic(mGraphicOverlay);
return new BarcodeGraphicTracker(mGraphicOverlay, graphic);
}
示例3: create
import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Barcode> create(Barcode barcode) {
BarcodeGraphic graphic = new BarcodeGraphic(mGraphicOverlay, mTrackerColor);
BarcodeGraphicTracker tracker = new BarcodeGraphicTracker(mGraphicOverlay, graphic);
if (mDetectionListener != null){
tracker.setListener(mDetectionListener);
}
return tracker;
}
示例4: create
import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Barcode> create(Barcode barcode) {
BarcodeGraphic graphic = new BarcodeGraphic(mGraphicOverlay);
BarcodeGraphicTracker graphicTracker = new BarcodeGraphicTracker(mGraphicOverlay, graphic);
if(mDetectorListener != null)
graphicTracker.setDetectorListener(mDetectorListener);
return graphicTracker;
}
示例5: create
import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Barcode> create(Barcode barcode) {
BarcodeGraphic graphic = new BarcodeGraphic(mGraphicOverlay);
BarcodeGraphicTracker tracker = new BarcodeGraphicTracker(mGraphicOverlay, graphic);
if(barCodeDetectListener != null){
tracker.setListener(barCodeDetectListener);
}
return tracker;
}
示例6: create
import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Face> create(Face face) {
return new GraphicFaceTracker(mGraphicOverlay);
}
示例7: create
import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Barcode> create(Barcode barcode) {
BarcodeGraphic graphic = new BarcodeGraphic(mGraphicOverlay);
return new BarcodeGraphicTracker(mGraphicOverlay, graphic, listener);
}
示例8: create
import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Face> create(Face face) {
return null;
}
示例9: create
import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Face> create(Face face) {
FaceGraphic graphic = new FaceGraphic(mGraphicOverlay, documentIdentifier);
return new GraphicTracker<>(mGraphicOverlay, graphic);
}
示例10: create
import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override public Tracker<Face> create(Face face) {
return new GraphicFaceTracker();
}
示例11: create
import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Barcode> create(Barcode barcode) {
return new BarcodeTracker(mContext);
}
示例12: create
import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Barcode> create(Barcode barcode) {
BarcodeGraphic graphic = new BarcodeGraphic(mGraphicOverlay);
return new BarcodeGraphicTracker(mGraphicOverlay, graphic,mActivity);
}
示例13: create
import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Barcode> create(Barcode barcode) {
onCodeDetected(barcode);
BarcodeGraphic graphic = new BarcodeGraphic(mGraphicOverlay);
return new BarcodeGraphicTracker(mGraphicOverlay, graphic);
}
示例14: create
import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Barcode> create(Barcode barcode) {
BarcodeGraphic graphic = new BarcodeGraphic(graphicOverlay);
return new BarcodeGraphicTracker(graphicOverlay, graphic);
}
示例15: create
import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Barcode> create(Barcode barcode) {
BarcodeGraphic graphic = new BarcodeGraphic(mGraphicOverlay);
return new BarcodeGraphicTracker(mGraphicOverlay, graphic, mCallback);
}