Demos and tests

June 12, 2026 · View on GitHub

← Documentation · Building · Models

Tests

cd bin
.\TestOpenCV5.exe
.\TestOpenCV5.exe --gui          # imshow (requires test.png)
.\TestOpenCV5.exe --model=models\face_detection_yunet_2026may.onnx

Report: bin/test_results.txt. 120+ passed after download_models.ps1.

YOLOX / YOLOv5 / YOLOv8: custom postprocess in wrapper/yolo_postprocess.cpp (path contains yolox, yolov5, or yolov8).

Demo list

GUI: /gui, --gui, or -gui — OpenCV windows (imshow).

ProgramPurpose
DemoOpenCV5.exehistograms, CLAHE, moments, floodFill
DemoObjdetect5.exechessboard, ArUco, QR, barcode
DemoWebcam5.exewebcam
DemoRecordWebcam5.exeAVI recording (MJPEG)
DemoOpticalFlow5.exeLucas–Kanade from camera
DemoFaceDetect5.exeYuNet on photo
DemoWebcamFace5.exeYuNet from camera
DemoWebcamFaceId5.exeYuNet + SFace (enroll / identify)
DemoCalibrate5.exesynthetic calibration
DemoMatch5.exeORB matching
DemoDnn5.exereadNet + forward
DemoDnnClassify5.exeTCVClassificationModel
DemoDnnDetect5.exeTCVDetectionModel (YOLOX)
DemoDnnSegment5.exeTCVSegmentationModel
DemoDnnTextEast5.exeTCVTextDetectionEAST
DemoDnnPpocr5.exeTCVTextDetectionDB (PPOCR)
DemoPointCloud5.exePLY load/save
DemoSeamlessClone5.exepreview; --try-cloneseamlessClone
DemoTrackNano5.execamera + TCVTrackerNano
DemoHighguiCallbacks5.exemouse / trackbar
DemoVclPreview5.exe / DemoFmxPreview5.exeVCL/FMX preview
DemoTemplateMatch5.exematchTemplate
DemoStereoDepth5.exeStereoSGBM
DemoContours5.execontours
DemoCannyHough5.exeCanny + Hough
DemoImencode5.exeimencode / imdecode
DemoFarneback5.exeFarneback flow
DemoMl5.exe / DemoTrack5.exe / DemoHomography5.exeml, tracking, homography

DemoDnnPpocr5

After download_models.ps1, bin\ contains text_sample.png (736×736).

.\DemoDnnPpocr5.exe --image=text_sample.png
.\DemoDnnPpocr5.exe --model=models\text_detection_ppocr.onnx --image=text_sample.png

On test.png (squirrel) polygon count is usually 0 — expected. See Cookbook → PPOCR.

DemoDnnDetect5 — YOLOX

.\DemoDnnDetect5.exe --model=models\detection_yolox.onnx --image=test.png

DemoWebcamFaceId5

.\DemoWebcamFaceId5.exe --enroll=photo.jpg --name=Alice
.\DemoWebcamFaceId5.exe --camera=0 --score=0.7
OptionDescription
--model=YuNet ONNX
--rec-model=SFace ONNX
--enroll= / --name=register a face
E in windowenroll current face

DemoWebcam5

.\DemoWebcam5.exe --camera=0 --width=1280 --height=720 --backend=dshow

Exit: ESC or Q.

DemoMatch5

.\DemoMatch5.exe --query=test.png --train=test.png

Components (IDE)

Test/Utit2 — camera, pipeline, MUX, VCL view. See Components · Pipeline.