Skip to content

Instantly share code, notes, and snippets.

@beligum
Created December 10, 2016 17:16
Show Gist options
  • Save beligum/59f0f8f45575baf0e66a3c5a47f5bc8f to your computer and use it in GitHub Desktop.
Save beligum/59f0f8f45575baf0e66a3c5a47f5bc8f to your computer and use it in GitHub Desktop.
package org.bytedeco.javacpp.presets;
import org.bytedeco.javacpp.annotation.Platform;
import org.bytedeco.javacpp.annotation.Properties;
import org.bytedeco.javacpp.tools.Info;
import org.bytedeco.javacpp.tools.InfoMap;
import org.bytedeco.javacpp.tools.InfoMapper;
/**
* Wrapper for OpenCV module text, part of OpenCV_Contrib.
*
* @author Jarek Sacha
*/
@Properties(inherit = {opencv_highgui.class, opencv_ml.class}, value = {
@Platform(include = {"<opencv2/text.hpp>", "<opencv2/text/erfilter.hpp>", "<opencv2/text/ocr.hpp>", "opencv_adapters.h"},
link = "opencv_text@.3.1"),
@Platform(value = "windows", link = "opencv_text310")},
target = "org.bytedeco.javacpp.opencv_text")
public class opencv_text implements InfoMapper {
public void map(InfoMap infoMap) {
infoMap.put(new Info("std::deque<int>").pointerTypes("IntDeque").define());
infoMap.put(new Info("std::vector<cv::text::ERStat>").pointerTypes("ERStatVector").define());
infoMap.put(new Info("std::vector<std::vector<cv::text::ERStat> >").pointerTypes("ERStatVectorVector").define());
infoMap.put(new Info("std::vector<double>").pointerTypes("DoubleVector").define());
infoMap.put(new Info("std::vector<std::string>").pointerTypes("StdStringVector").define());
infoMap.put(new Info("std::vector<cv::Vec2i>").pointerTypes("PointVector").cast());
infoMap.put(new Info("std::vector<std::vector<cv::Vec2i> >").pointerTypes("PointVectorVector").cast());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment