当前位置: 首页>>代码示例>>Java>>正文


Java Tracker类代码示例

本文整理汇总了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);
        }
    };
}
 
开发者ID:ekreutz,项目名称:react-native-barcode-scanner-google,代码行数:18,代码来源:BarcodeScannerView.java

示例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);
}
 
开发者ID:victoraldir,项目名称:BuddyBook,代码行数:9,代码来源:BarcodeTrackerFactory.java

示例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;
}
 
开发者ID:hamzux,项目名称:cosi,代码行数:10,代码来源:BarcodeTrackerFactory.java

示例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;
}
 
开发者ID:wax911,项目名称:Vision-Barcode-Scanner,代码行数:9,代码来源:BarcodeTrackerFactory.java

示例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;
}
 
开发者ID:alberapps,项目名称:tiempobus,代码行数:13,代码来源:BarcodeTrackerFactory.java

示例6: create

import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Face> create(Face face) {
    return new GraphicFaceTracker(mGraphicOverlay);
}
 
开发者ID:gsrathoreniks,项目名称:FaceFilter,代码行数:5,代码来源:FaceFilterActivity.java

示例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);
}
 
开发者ID:ravi8x,项目名称:Barcode-Reader,代码行数:6,代码来源:BarcodeTrackerFactory.java

示例8: create

import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Face> create(Face face) {
    return null;
}
 
开发者ID:BrandonVargas,项目名称:AndroidOCRFforID,代码行数:5,代码来源:OcrDetectorProcessor.java

示例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);
}
 
开发者ID:BrandonVargas,项目名称:AndroidOCRFforID,代码行数:6,代码来源:FaceTrackerFactory.java

示例10: create

import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override public Tracker<Face> create(Face face) {
  return new GraphicFaceTracker();
}
 
开发者ID:square,项目名称:kind-photo-bot,代码行数:4,代码来源:SnapActivity.java

示例11: create

import com.google.android.gms.vision.Tracker; //导入依赖的package包/类
@Override
public Tracker<Barcode> create(Barcode barcode) {
    return new BarcodeTracker(mContext);
}
 
开发者ID:TrustWallet,项目名称:trust-wallet-android,代码行数:5,代码来源:BarcodeTrackerFactory.java

示例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);
}
 
开发者ID:Emrals,项目名称:Fuse,代码行数:6,代码来源:BarcodeTrackerFactory.java

示例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);
}
 
开发者ID:KingsMentor,项目名称:MobileVisionBarcodeScanner,代码行数:7,代码来源:BarcodeTrackerFactory.java

示例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);
}
 
开发者ID:tomatrocho,项目名称:insapp-android,代码行数:6,代码来源:BarcodeTrackerFactory.java

示例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);
}
 
开发者ID:amrendra18,项目名称:udacity-p3,代码行数:6,代码来源:BarcodeTrackerFactory.java


注:本文中的com.google.android.gms.vision.Tracker类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。