-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add presets for the
text
module of OpenCV 3.1 (pull #333)
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
opencv/src/main/java/org/bytedeco/javacpp/presets/opencv_text.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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 Bram Biesbrouck | ||
*/ | ||
@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()); | ||
|
||
} | ||
} |