Difference: CaptureFilterAdd ( vs. 1)

Revision 12015-11-10 - TWikiGuest

Line: 1 to 1
META TOPICPARENT name="FRCVDataRepository"

Notes on filter_threshold

  • Must have OpenCV 2.0 or a newer version installed.
  • Result image is stored in a folder (locateed in same folder as the source) called test. Please create this folder before running the program.
  • Adjust threshold values accordingly to filter the correct amount
  • Also, adjust the erode parameters accordingly.
  • Change threshold value accordingly: program will truncate everything in the image received from webcam except areas with threshold values between threshvalue and maxthresh.
  • Source: filter_threshold.cpp: filter_threshold.cpp
  • Makefile: Makefile: (works on ubuntu 11.10 and later versions.. for previous versions, replace LDLIBS with LDFLAGS).
Example - Path of a robot turning a circle traced by filter_threshold:

Note: A white circular disc was mounted on the centre of the robot. This disc was filtered by the program and the rest of the image was truncated.


-- PremNirmal - 2011-08-23

META FILEATTACHMENT attachment="resultoriginal_100_350.jpg" attr="" comment="" date="1314130929" name="resultoriginal_100_350.jpg" path="result(original)_100_350.jpg" size="25907" stream="result(original)_100_350.jpg" tmpFilename="/usr/tmp/CGItemp26833" user="PremNirmal" version="1"
META FILEATTACHMENT attachment="filter_threshold.cpp" attr="" comment="" date="1336249342" name="filter_threshold.cpp" path="filter_threshold.cpp" size="2479" stream="filter_threshold.cpp" tmpFilename="/usr/tmp/CGItemp32334" user="PremNirmal" version="2"
META FILEATTACHMENT attachment="Makefile" attr="" comment="Makefile (works on ubuntu 11.10 and later versions.. for previous versions, replace LDLIBS with LDFLAGS)." date="1336249383" name="Makefile" path="Makefile" size="72" stream="Makefile" tmpFilename="/usr/tmp/CGItemp28454" user="PremNirmal" version="1"
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback