CameraBase

Camera

Module: kivy.core.camera

        核心类,用于获取相机并将其输入转换为Texture

版本 1.10.0 中的更改: pygst 和 videocapture 提供程序已被删除。

版本 1.8.0 中的更改:现在有 2 种不同的 Gstreamer 实现:一种使用 Gi/Gst,适用于 Python 2+3 和 Gstreamer 1.0,另一种使用 PyGST 仅适用于 Python 2 + Gstreamer 0.10。

一、API

kivy.core.camera类 。CameraBase ( ** kwargs )

        基于:kivy.event.EventDispatcher

        抽象相机小部件类。

        具体的相机类必须实现初始化和帧捕获到可以上传到 GPU 的缓冲区。

        参数:

        index:int

        相机的来源索引。

size: tuple (int, int)

        绘制图像的尺寸。如果未指定尺寸,则默认为相机图像的分辨率。

resolution: tuple (int, int)

        尝试向相机请求的分辨率。通过强制 appsink 上限达到此分辨率&

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
"main" prio=5 tid=1 Native | group="main" sCount=1 dsCount=0 flags=1 obj=0x7231c540 self=0xeab01c10 | sysTid=5702 nice=-10 cgrp=default sched=0/0 handle=0xf7194470 | state=S schedstat=( 287352925 30926491 459 ) utm=20 stm=8 core=2 HZ=100 | stack=0xff0ef000-0xff0f1000 stackSize=8192KB | held mutexes= native: #00 pc 00071654 /apex/com.android.runtime/lib/bionic/libc.so (__ioctl+12) native: #01 pc 0003f76f /apex/com.android.runtime/lib/bionic/libc.so (ioctl+26) native: #02 pc 00039eab /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+238) native: #03 pc 0003aae5 /system/lib/libbinder.so (android::IPCThreadState::waitForResponse(android::Parcel*, int*)+32) native: #04 pc 0003a8bb /system/lib/libbinder.so (android::IPCThreadState::transact(int, unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+126) native: #05 pc 000355bf /system/lib/libbinder.so (android::BpBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+98) native: #06 pc 000214f3 /system/lib/libcamera_client.so (android::hardware::BpCameraService::connect(android::sp<android::hardware::ICameraClient> const&, int, android::String16 const&, int, int, android::sp<android::hardware::ICamera>*)+366) native: #07 pc 00038455 /system/lib/libcamera_client.so (android::CameraBase<android::Camera, android::CameraTraits<android::Camera> >::connect(int, android::String16 const&, int, int)+176) native: #08 pc 0002ab71 /system/lib/libcamera_client.so (android::Camera::connect(int, android::String16 const&, int, int)+12) native: #09 pc 000de3cb /system/lib/libandroid_runtime.so (android_hardware_Camera_native_setup(_JNIEnv*, _jobject*, _jobject*, int, int, _jstring*)+118) at android.hardware.Camera.native_setup(Native method)
07-15

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

静候光阴

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值