guides:opencv
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
guides:opencv [2024/01/30 02:13] – discord | guides:opencv [2024/02/02 04:22] (current) – discord | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Instructions for integrating OpenCV with Folk. | + | //Original Author: Jacob Haip. |
+ | Contributions welcome!// | ||
+ | |||
+ | Instructions for integrating OpenCV with Folk. This guide involves a manual compilation set outside of folk, but the creation of the wrapper files and the compilation (via an TCL " | ||
1. Install OpenCV | 1. Install OpenCV | ||
Line 5: | Line 8: | ||
sudo apt-get install -y libopencv-dev | sudo apt-get install -y libopencv-dev | ||
- | 2. Create a C wrapper for the OpenCV functions you want to use | + | 2. Create a C wrapper for the OpenCV functions you want to use. I saved these files in a new ~/ |
OpenCVWrapper.h | OpenCVWrapper.h | ||
Line 133: | Line 136: | ||
Claim $this' has region [region move $r down 110%] | Claim $this' has region [region move $r down 110%] | ||
} | } | ||
+ | |||
+ | set :: | ||
When $this' has camera slice /slice/ & $this has region /r/ { | When $this' has camera slice /slice/ & $this has region /r/ { | ||
set grayImg [opencvAdaptiveThreshold $slice] | set grayImg [opencvAdaptiveThreshold $slice] | ||
Line 138: | Line 143: | ||
Wish to draw an image with center $center image $grayImg radians 0 scale 2 | Wish to draw an image with center $center image $grayImg radians 0 scale 2 | ||
- | | + | |
- | image freeImage $grayImg | + | if {[llength $:: |
+ | set :: | ||
+ | image freeImage $oldestFrame | ||
} | } | ||
} | } | ||
</ | </ | ||
+ | |||
+ | {{: |
guides/opencv.1706580805.txt.gz · Last modified: 2024/01/30 02:13 by discord