opencv获取编码fourcc
2017-08-18 17:47
302 查看
#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> using namespace std; int main(int argc, char** argv) { cv::VideoCapture cap(0); unsigned int f = (unsigned)cap.get(cv::CAP_PROP_FOURCC); char fourcc[] = { (char)f, // First character is lowest bits (char)(f >> 8), // Next character is bits 8-15 (char)(f >> 16), // Next character is bits 16-23 (char)(f >> 24), // Last character is bits 24-31 '\0' // and don't forget to terminate }; cout << "FourCC for this video was: " << fourcc << endl; }
相关文章推荐
- OpenCV中CV_FOURCC可以获取的编码格式
- OpenCV中CV_FOURCC可以获取的编码格式
- OpenCV中CV_FOURCC可以获取的编码…
- 从摄像头获取_保存视频(CV_FOURCC可以获取的视频编码格式)
- Java应用OpenCV指南其四:OpenCV获取ROI区域、图像叠加
- Java自动获取文件和文件流编码
- 自动编码获取页面html代码
- opencv利用鼠标获取图像的像素值
- opencv中获取和编辑图像像素值
- OpenCV 获取摄像头并显示摄像头视频
- opencv 获取Mat像素值
- kinect彩色数据的获取以及在opencv中显示
- arm摄像头获取jpeg图像后,从内存中解压jpeg图像,并用openCV处理
- Android 百度地图—反地理编码—获取当前位置附近的大厦楼宇
- php自动获取字符串编码函数mb_detect_encoding
- 如何从bufferreader reader.readline() 获取特定编码的字符串
- 简单自动获取文件编码
- opencv 获取摄像头图像
- hive 采用JDBC编码方式获取外部分区表数据
- 获取一个网页数据返回的编码类型是gzip,解压后,网页中包含的中文字段变成了乱码,只需要把编码更改为BIG5 ,繁体字就正常显示了!