python - (Python) 如何在 openCV 中获取全帧并将其转换为字符串?

标签 python opencv numpy

我尝试通过 websocket 从网络摄像头发送帧数据,但帧看起来类似于:

[[1 2 3]
[3 2 1]
[2 3 4]
...
[2 3 4]
[2 2 2]
[1 1 1]]

这是 numpy 矩阵。没有这三个点怎么全画幅?

最佳答案

import numpy as np 

np.set_printoptions(threshold='nan')

关于python - (Python) 如何在 openCV 中获取全帧并将其转换为字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38334584/

相关文章:

c - 如何使用convertTo增强对比度?

c++ - 访问 OpenCV 中的每个单独 channel

python - 对列表中的行进行分组并转置 pandas

Python 一种屏蔽两个具有不同数据类型(单元 8 和 uint16)的数组的方法

python - 在单个语句中处理区分大小写和不区分大小写的正则表达式模式

python - 无法解决 "inc() takes 1 positional argument but 2 were given"

python - 设置选择框的默认值

python - opencv python 将掩码区域(黑色或白色像素)复制到 BGR 图像区域

python - Heroku无法在requirements.txt中识别NumPy

python - Tornado 在单线程中运行时非阻塞?