Blame view

tsl_aiplatform/put_text/putText.h 367 Bytes
85cc8cb9   Hu Chunming   ๅŽŸ็‰ˆไปฃ็ 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  #ifndef PUTTEXT_H_
  #define PUTTEXT_H_
  
  #include <windows.h>
  #include <string>
  #include <opencv2/opencv.hpp>
  
  using namespace cv;
  
  void GetStringSize(HDC hDC, const char* str, int* w, int* h);
  void putTextZH(Mat &dst, const char* str, Point org, Scalar color, int fontSize,
  	const char *fn = "Arial", bool italic = false, bool underline = false);
  
  #endif // PUTTEXT_H_