android通过opencv打开摄像头并且保存图片的问题!!!

sense1729 2016-12-22 10:22:05
opencv for android 中的samples中有好一个打开摄像头并且保存图片的例子,可是保存的图片总是如图片所示,想得到清晰具体的图像,应该怎么办???希望大神们指教!!
org.opencv.android.CameraBridgeViewBase


/**
     * This method sets the maximum size that camera frame is allowed to be. When selecting
     * size - the biggest size which less or equal the size set will be selected.
     * As an example - we set setMaxFrameSize(200,200) and we have 176x152 and 320x240 sizes. The
     * preview frame will be selected with 176x152 size.
     * This method is useful when need to restrict the size of preview frame for some reason (for example for video recording)
     * @param maxWidth - the maximum width allowed for camera frame.
     * @param maxHeight - the maximum height allowed for camera frame
     */
    public void setMaxFrameSize(int maxWidth, int maxHeight) {
        mMaxWidth = maxWidth;
        mMaxHeight = maxHeight;
    }
...全文
1378 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
Winston_Jory 2016-12-22
  • 打赏
  • 举报
回复
开发环境是怎么搭建的呢?是不是驱动层有问题,检查过驱动方面没问题的话,建议你把每一帧的数据用 Bundle类携带,然后再有handle传出保存。

953

社区成员

发帖
与我相关
我的任务
社区描述
为开发者提供高通丰富的解决方案及全面技术下载内容。本版以AI人工智能、WoS移动笔记本、XR、IoT 物联网、Auto 汽车、生成式AI等核心板块组成,为开发者提供一个便捷及高效的学习交流平台。
人工智能物联网机器学习 企业社区 北京·东城区
社区管理员
  • Qualcomm开发
  • csdnsqst0050
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧