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


Java ARFrame类代码示例

本文整理汇总了Java中com.parrot.arsdk.arcontroller.ARFrame的典型用法代码示例。如果您正苦于以下问题:Java ARFrame类的具体用法?Java ARFrame怎么用?Java ARFrame使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ARFrame类属于com.parrot.arsdk.arcontroller包,在下文中一共展示了ARFrame类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onFrameReceived

import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
@Override
public void onFrameReceived(ARDeviceController deviceController, ARFrame frame) {
    if (!frame.isIFrame())
        return;

    if (!taskRunning) {
        byte[] data = frame.getByteData();
        ByteArrayInputStream ins = new ByteArrayInputStream(data);
        Bitmap bmp = BitmapFactory.decodeStream(ins);

        // FrameDisplay fDisplay = new FrameDisplay(imgView, bmp);
        // Use FrameDisplayCV to find qr-code with robot cam.
        FrameDisplayCV fDisplay = new FrameDisplayCV(imgView, bmp, deviceController, true);
        fDisplay.execute();
    }
}
 
开发者ID:Bayway,项目名称:JumperSumo,代码行数:17,代码来源:PilotingActivity.java

示例2: onFrameReceived

import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
@Override
public ARCONTROLLER_ERROR_ENUM onFrameReceived(ARDeviceController deviceController, ARFrame frame)
{
    if (!frame.isIFrame())
        return ARCONTROLLER_ERROR_ENUM.ARCONTROLLER_ERROR_STREAM;

    byte[] data = frame.getByteData();
    ByteArrayInputStream ins = new ByteArrayInputStream(data);
    Bitmap bmp = BitmapFactory.decodeStream(ins);

    FrameDisplay fDisplay = new FrameDisplay(imgView, bmp);
    fDisplay.execute();

    return ARCONTROLLER_ERROR_ENUM.ARCONTROLLER_OK;
}
 
开发者ID:xiuxiu,项目名称:parrot_with_tango,代码行数:16,代码来源:PilotingActivity.java

示例3: displayFrame

import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
public void displayFrame(ARFrame frame) {
    byte[] data = frame.getByteData();
    synchronized (this) {
        mBmp = BitmapFactory.decodeByteArray(data, 0, data.length);
    }

    mHandler.post(new Runnable() {
        @Override
        public void run() {
            synchronized (this) {
                setImageBitmap(mBmp);
            }
        }
    });
}
 
开发者ID:xiuxiu,项目名称:parrot_with_tango,代码行数:16,代码来源:JSVideoView.java

示例4: notifyFrameReceived

import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
private void notifyFrameReceived(ARFrame frame) {
    List<Listener> listenersCpy = new ArrayList<>(mListeners);
    for (Listener listener : listenersCpy) {
        listener.onFrameReceived(frame);
    }
}
 
开发者ID:xiuxiu,项目名称:parrot_with_tango,代码行数:7,代码来源:BebopDrone.java

示例5: onFrameReceived

import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
@Override
public ARCONTROLLER_ERROR_ENUM onFrameReceived(ARDeviceController deviceController, final ARFrame frame) {
    notifyFrameReceived(frame);
    return ARCONTROLLER_ERROR_ENUM.ARCONTROLLER_OK;
}
 
开发者ID:xiuxiu,项目名称:parrot_with_tango,代码行数:6,代码来源:BebopDrone.java

示例6: notifyAudioFrameReceived

import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
private void notifyAudioFrameReceived(ARFrame frame) {
    List<Listener> listenersCpy = new ArrayList<>(mListeners);
    for (Listener listener : listenersCpy) {
        listener.onAudioFrameReceived(frame);
    }
}
 
开发者ID:xiuxiu,项目名称:parrot_with_tango,代码行数:7,代码来源:JSDrone.java

示例7: onFrameReceived

import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
@Override
public void onFrameReceived(ARFrame frame) {
    mVideoView.displayFrame(frame);
}
 
开发者ID:xiuxiu,项目名称:parrot_with_tango,代码行数:5,代码来源:SkyController2Activity.java

示例8: onFrameReceived

import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
@Override
public void onFrameReceived(ARFrame frame) {

}
 
开发者ID:Palo-IT,项目名称:voice-IT,代码行数:5,代码来源:JSDroneListenerImpl.java

示例9: onAudioFrameReceived

import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
@Override
public void onAudioFrameReceived(ARFrame frame) {

}
 
开发者ID:Palo-IT,项目名称:voice-IT,代码行数:5,代码来源:JSDroneListenerImpl.java

示例10: onFrameReceived

import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
/**
 * Called when a video frame has been received
 * Called on a separate thread
 *
 * @param frame the video frame
 */
void onFrameReceived(ARFrame frame);
 
开发者ID:Palo-IT,项目名称:voice-IT,代码行数:8,代码来源:JSDroneListener.java

示例11: onAudioFrameReceived

import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
/**
 * Called when a audio frame has been received
 * Called on a separate thread
 *
 * @param frame the audio frame
 */
void onAudioFrameReceived(ARFrame frame);
 
开发者ID:Palo-IT,项目名称:voice-IT,代码行数:8,代码来源:JSDroneListener.java

示例12: onAudioFrameReceived

import com.parrot.arsdk.arcontroller.ARFrame; //导入依赖的package包/类
/**
 * Called when a audio frame has been received
 * Called on a separate thread
 * @param frame the audio frame
 */
void onAudioFrameReceived(ARFrame frame);
 
开发者ID:xiuxiu,项目名称:parrot_with_tango,代码行数:7,代码来源:JSDrone.java


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