MouseTrap Dev Help/opencv

From Foss2Serve
(Difference between revisions)
Jump to: navigation, search
(cv 2.4.3)
(Added a link to great resources)
 
Line 106: Line 106:
 
* http://opencv-users.1802565.n2.nabble.com/ (OpenCV mailing list archive)
 
* http://opencv-users.1802565.n2.nabble.com/ (OpenCV mailing list archive)
 
* http://pr.willowgarage.com/wiki/OpenCVMeetingNotes (OpenCV meeting minutes)
 
* http://pr.willowgarage.com/wiki/OpenCVMeetingNotes (OpenCV meeting minutes)
 +
* http://programmingcomputervision.com/ (Computer Vision in general)
 
** As of May 22, 2012, the meetings notes moved to: http://code.opencv.org/projects/opencv/wiki/Meeting_notes
 
** As of May 22, 2012, the meetings notes moved to: http://code.opencv.org/projects/opencv/wiki/Meeting_notes
 
* http://opencv.willowgarage.com/wiki/OpenCV%20Change%20Logs (OpenCV Change Logs)
 
* http://opencv.willowgarage.com/wiki/OpenCV%20Change%20Logs (OpenCV Change Logs)

Latest revision as of 19:00, 19 April 2013


Contents

Opencv

General Concerns

Here we place all of the concerns when migrating to a newer version of opencv or the repercussions of not upgrading.

Migration to Python 3

  • Opencv 2.4.3 does not support Python 3

Camera drivers

  • Currently, only some camera drivers are supported with the new version of opencv, leading to problems regarding capture. One issue is the inability to cancel the program webcam capture.

Yum repo

  • Right now, only the 2.3.1 version of opencv is available in the yum repository

OpenCV Info

Basics and Source Code

OpenCV (Open Source Computer Vision) is a library of programming functions for the realtime computer vision. OpenCV is released under the liberal BSD license and hence it's free for both academic and commercial use. It has C++, C, Python and Java (Android) interfaces and supports Windows, Linux, Android and Mac OS. The library has more than 2500 optimized algorithms. Adopted all around the world, OpenCV has more than 47 thousand people of user community and estimated number of downloads exceeding 5 million. Usage ranges from interactive art, to mines inspection, stitching maps on the web or through advanced robotics.

To access the OpenCV repository directly: git clone git://github.com/itseez/opencv.git

History

"OpenCV was started at Intel in 1999 by Gary Bradski for the purposes of accelerating research in and commercial applications of computer vision in the world and, for Intel, creating a demand for ever more powerful computers by such applications. Vadim Pisarevsky joined Gary to manage Intel's Russian software OpenCV team. Over time the OpenCV team moved on to other companies and other Research. Several of the original team eventually ended up working in robotics and found their way to Willow Garage. In 2008, Willow Garage saw the need to rapidly advance robotic perception capabilities in an open way that leverages the entire research and commercial community and began actively supporting OpenCV, with Gary and Vadim once again leading the effort." NEED A REF OR LINK


So what is OpenCV?

  • OpenCV is a computer vision library in C++.
  • OpenCV 2 was released in 2009 with additional functionality and increased performance
  • CV is a Python wrapper for OpenCV
  • CV2 is a Python wrapper for OpenCV 2 and includes CV
    • If you want CV functions you have to
import cv2.cv as cv

The full name is "Open Source Computer Vision Library." It is a library of programming functions aimed at real-time computer vision. It was developed by Intel and now Willow Garage and Itseez support it. It is free for use under the open source BSD license. Also, it can cross-platform.



Where did it come from?

OpenCV emerged from the Intel Research Initiative; it is related to Intel's Performance Library, which today is called Integrated Performance Primitives (IPP). The project launched in 1999. It was looking for CPU-intensive applications. The project goals were to:

  1. advance vision research by open and optimized infrastructure
  2. disseminate vision knowledge with readable code
  3. and advance commercial applications

Version List:

alpha-release at CVPR 2000 
five beta-releases 2001-2005 
Version 1.0 2006 
Continuation of development by Willow Garage 2008 (pre-release version 1.1) 
Version 2.0 2009 
Versions 2.1, 2.2 2010 
Version 2.3 2011 
Version 2.4.0 May 2012 
Version 2.4.1 June 2012 
Version 2.4.2 July 2012

Application Use:

2D and 3D Feature Toolkits
Egomotion Estimation
Facial Recognition System
Gesture Recognition
Human-Computer Interaction (HCI)
Mobile Robotics
Motion Analysis
Object Detction and Recognition
Segmentation
Stereo Vision: Depth Perception from 2 Cameras
Structure from Motion (SFM)
Motion Tracking

(http://www.cvl.isy.liu.se/education/graduate/opencv/Lecture1_History.pdf)

Definitions

Modules Available

*core: a compact module defining basic data structures, including the dense multi-dimensional array Mat and basic functions
used by all other modules
*imgproc: an image processing module that includes linear and non-linear image filtering, geometrical image transformations
(resize, affine and perspective warping, generic table-based remapping), color space conversion, histograms, and so on
*video: a video analysis module that includes motion estimation, background subtraction, and object tracking algorithms
*calib3d: basic multiple-view geometry algorithms, single and stereo camera calibration, object pose estimation, stereo
correspondence algorithms, and elements of 3D reconstruction
*features2d: salient feature detectors, descriptors, and descriptor matchers
*objdetect: detection of objects and instances of the predefined classes (for example, faces, eyes, mugs, people, cars, and so on)
*highgui: an easy-to-use interface to video capturing, image and video codecs, as well as simple UI capabilities
*gpu: GPU-accelerated algorithms from different OpenCV modules
*some other helper modules, such as FLANN and Google test wrappers, Python bindings, and others

(http://docs.opencv.org/)

OpenCV - Great Resources

Opencv 2 Info

Some Differences Between cv and cv2

  • single import of all of OpenCV using import cv
  • OpenCV functions no longer have the "cv" prefix
  • simple types like CvRect and CvSca,lar use Python tuples
  • sharing of Image storage, so image transport between OpenCV and other systems (e.g. numpy and ROS) is very efficient
  • complete documentation for the Python functions

OpenCV 2 - Great Resources

cv 2.4.3

  • Books:
 Author: Laganière, Robert.
 Title: OpenCV 2 computer vision application programming cookbook [electronic resource] :
 over 50 recipes to master this library of programming functions for real-time computer vision / Robert Laganière.
 Imprint Birmingham, U.K. : Packt Open Source Pub., 2011.
 Availability: eBook in the Drexel Library. 
 Author: Gary Bradski; Adrian Kaehler
 Title: Learning OpenCV  
 Publisher: O'Reilly Media, Inc.
 Pub. Date: September 24, 2008
 Availability: ACM Safari books collection for anyone who is a member.

A cv2 example

Here is a little program that will capture video from the webcam and display it (you might have to CTRL+C)

"""
This module is used for testing the opencv2 capabilities
"""
import cv2
#get webcam feed
capture = cv2.VideoCapture(0)
while True:
    #combines VideoCapture.grab() and VideoCapture.retrieve()
    retrieval_value, image = capture.read()
    #shows captured image in a window
    cv2.imshow("webcam", image)
    #will stop capture with capatible webcam
    if cv2.waitKey(10) == 27:
        break

cv 2.1

OpenCV Community

Code Meeting Notes

  • Meetings occur on Wednesday's at noon (starting on 2/20) on irc.gnome.org #mousetrap - holiday and other circumstances permitting.

2.19.2013

Agenda

  1. Status
  2. Go over git+mousetrap installation [[1]]
  3. Address any issues
  4. Go over mousetrap hierarchy [[2]]
  5. Go over opencv integration methods [[3]]
  6. Next Steps


Meeting summary


Status

 * LINK:
   http://gnome-mousetrap.sourcearchive.com/documentation/0.4-2/main.html
   (amber, 18:14:27)
 * LINK:
   http://gnome-mousetrap.sourcearchive.com/documentation/0.4-2/main.html
   (amber, 18:14:29)
 * LINK: http://code.opencv.org/projects/opencv/wiki/Meeting_notes
   (Dark_Rose, 18:17:39)
 * LINK:
   http://www.xcitegroup.org/foss2serve/index.php/MouseTrap_Dev_Help#The_MouseTrap_Program
   (amber, 18:20:24)

Git and mousetrap installation

 * creating your own branch in git: git checkout -b my_fantastic_branch
   (Stoney, 18:29:24)
 * LINK:
   http://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging
   (amber, 18:32:31)

Issues

 * LINK: http://code.google.com/p/pyopencv/   (john, 18:46:37)
 * ctypes-opencv is a package that brings Willow Garage's (formerly
   Intel's) Open Source Computer Vision Library (OpenCV) to Python.
   OpenCV is a collection of algorithms and sample code for various
   computer vision problems. The goal of ctypes-opencv is to provide
   Python access to all documented functionality of OpenCV.  (amber,
   18:46:39)
 * LINK: http://code.google.com/p/pyopencv/   (amber, 18:46:46)
 * http://pythonhosted.org/pyopencv/2.1.0.wr1.2.0/  (amber, 18:51:37)
 * LINK: http://pythonhosted.org/pyopencv/2.1.0.wr1.2.0/   (amber,
   18:51:45)

Integration methods

 * LINK:
   http://gnome-mousetrap.sourcearchive.com/documentation/0.4-2/dir_9d66d24675e04ade776f5269c3621ea1.html
   (amber, 18:58:53)
 * LINK:
   http://gnome-mousetrap.sourcearchive.com/documentation/0.3plus-psvn17-2ubuntu1/classmouseTrap_1_1ocvfw_1_1ocvfw.html
   (amber, 19:02:40)
 * ACTION: Create Module documentation for MouseTrap  (amber, 19:14:55)

Meeting ended at 19:16:36 CET.

Action Items


  • Create Module documentation for MouseTrap

People Present (lines said)


  • amber (125)
  • john (39)
  • Stoney (31)
  • logan_h (14)
  • darci (8)
  • Dark_Rose (5)
  • tota11y (2)

Conclusions

  • documentation on Mousetrap's OpenCV FrameWork is needed for further inspection.

2.26.2013

  • Address meeting reschedule
Personal tools
Namespaces
Variants
Actions
Events
Learning Resources
HFOSS Projects
Evaluation
Navigation
Toolbox