Skip to content

OpenCV Examples

PruebasVisilab edited this page Feb 3, 2017 · 12 revisions
  1. Introduction
  2. List of examples
  3. Expected output
  4. Benchmarks

Introduction

The tests for OpenCV 1.0 can be found in the repository "Platform Software/myriad/apps/OpenCV_examples" folder.

This application runs several examples using the OpenCV library. In most cases, the user needs to check the results saved in the SD card. Assertions check some common execution errors.

The contents of the testFiles folder (OpenCVTests) must be copied to the SD card (/mnt/sdcard/) resulting in mnt/sdcard/OpenCVTests.

  1. Canny edge detector
    1. Files required:
      • File: /mnt/sdcard/OpenCVTests/data/nature.png
    2. Output:
      • File: /mnt/sdcard/OpenCVTests/results/resultEdge.png
  2. Haar-based Cascade Face Detector
    1. Files required:
      • /mnt/sdcard/OpenCVTests/data/lena.png
      • /mnt/sdcard/OpenCVTests/data/haarface.xml
    2. Output:
      • /mnt/sdcard/OpenCVTests/results/resultFaceDetection.png
  3. K-means algorithm
    1. Output:
      • /mnt/sdcard/OpenCVTests/results/resultTestKmeans.png
  4. Contours
    1. Files required:
      • /mnt/sdcard/OpenCVTests/results/resultTestContours_1.png
    2. Output:
      • /mnt/sdcard/OpenCVTests/results/resultTestContours_1.png
      • /mnt/sdcard/OpenCVTests/results/resultTestContours_2.png
  5. Histogram/LUT
    1. Files required:
      • /mnt/sdcard/OpenCVTests/data/baboon.png
    2. Output:
      • /mnt/sdcard/OpenCVTests/results/resultDemHist.png
  6. Delaunay Triangulation
    1. Output:
      • /mnt/sdcard/OpenCVTests/results/delaunay/delaunay[n].png ([n]={0,1,2})
      • /mnt/sdcard/OpenCVTests/results/delaunay/delaunay[n]_s.png ([n]={0,1,2})
      • /mnt/sdcard/OpenCVTests/results/delaunay/voronoi.png
  7. testPyramidSegmentation
    1. Files required:
      • /mnt/sdcard/OpenCVTests/data/fruits.png
    2. Output:
      • /mnt/sdcard/OpenCVTests/results/resultPyramidSegmentation.png
  8. testSquareDetector
    1. Files required:
      • /mnt/sdcard/OpenCVTests/data/pic[n].png ([n]={1,2,3,4,5,6})
    2. Output:
      • /mnt/sdcard/OpenCVTests/results/squares/ResultSquarespic[n].png ([n]={1,2,3,4,5,6})
  9. Watershed

Clone this wiki locally