openCV

openCV

 

tesseract 文字辨識

Installing Tesseract for OCR

tesseract 中文辨識 建立字庫

http://www.itread01.com/articles/1476853517.html

tesseract  各國字庫
https://github.com/tesseract-ocr/langdata/tree/master/chi_tra

99.7% 文字辨識方法 類神經網路
https://www.tensorflow.org/versions/r1.0/get_started/mnist/beginners

Haar XML 手

https://github.com/Balaje/OpenCV/tree/master/haarcascades

Haar Tranig

https://coding-robin.de/2013/07/22/train-your-own-opencv-haar-classifier.html

https://github.com/mrnugget/opencv-haar-classifier-training

https://github.com/mrnugget/opencv-haar-classifier-training

 

汽車 和車流量

https://github.com/andrewssobral/vehicle_detection_haarcascades

 

Video Save and  Lord

 

https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_gui/py_video_display/py_video_display.html

 

 

 

 

 

 

 

#include <cstdio>

#include <opencv2/opencv.hpp>

using namespace cv;

int main(){

VideoCapture video("VideoTest.avi");

if (!video.isOpened()){

return -1;

}

Size videoSize = Size((int)video.get(CV_CAP_PROP_FRAME_WIDTH),

(int)video.get(CV_CAP_PROP_FRAME_HEIGHT));

namedWindow("video demo", CV_WINDOW_AUTOSIZE);

Mat videoFrame;

while(true){

video >> videoFrame;

if( videoFrame.empty()){

break;

}

imshow("video demo", videoFrame);

waitKey(33);

}

return 0;

}

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

#include <cstdio>

#include <opencv2/opencv.hpp>

using namespace cv;

int main(){

VideoCapture capture(0);

if(!capture.isOpened()){

return -1;

}

Size videoSize = Size((int)capture.get(CV_CAP_PROP_FRAME_WIDTH),

(int)capture.get(CV_CAP_PROP_FRAME_HEIGHT));

VideoWriter writer;

writer.open("VideoTest.avi", CV_FOURCC('M', 'J', 'P', 'G'), 30, videoSize);

namedWindow("show image",0);

while(true){

Mat frame;

capture >> frame;

if(!frame.empty()){

writer.write(frame);

imshow("show image", frame);

if(waitKey(33) == 27){

break;

}

}

}

return 0;

}

 

 

 

 

  • Audio 4
  • Magazine 1
  • News 7
  • Photography 4
  • Photoshop 10
  • Technical 4
  • Video 3
  • 教學 690
  • 柯博文個人 338