Cvplot
Graph plots, drawing, layout and windows in OpenCV
Install / Use
/learn @leovandriel/CvplotREADME
cvplot
Graph plots, drawing, layout and windows in OpenCV.
About
Yet another cvplot library? Yes. Because they're all pretty bad. Like this one.
Build
Install the dependencies CMake and OpenCV. If you're on macOS, use Homebrew:
brew install cmake opencv
On Ubuntu:
apt-get install cmake libopencv-dev
Next build using CMake. The easiest way:
make
Internally it creates a build folder and runs CMake from there.
This project is developed and tested on macOS and Ubuntu.
Example
To draw a simple line graph:
cvplot::figure("myplot").series("myline")
.addValue({1., 3., 2., 5., 4.});
cvplot::figure("myplot").show();
<img src="res/line.jpg" alt="cvplot example" width="206"/>
Features
- Graphs: line, histogram, scatter
- Time series, parametric, range
- Automatic and dynamic coloring
- Transparency (yes, really)
- Image and text drawing
- Sub-windows (views)
- Window and view layout
- Green view frame
- Mouse support
- OpenCV-like API (highgui)
Demo
To see some of the plotting in action, run the demo:
make demo
To learn more about these examples, take a look at src/demo/demo.cc.
Test
Run tests with:
make test
Contributing
Your contributions to cvplot are welcome! cvplot is small and nimble, with lots of missing features. If you would like to see a new feature, get your code merged, or report a bug, please don't hesitate to reach out by filing a PR or issue.
License
MIT
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
