Giter Club home page Giter Club logo

pycv's Introduction

pycv


This repository is no longer actively maintained. Please consider switching to the next edition's repository, which officially supports OpenCV 4.x and should generally work with OpenCV 3.4 as well. Over there, you will find many bugfixes, improvements, and updates.


Learning OpenCV 3 with Python - Second Edition

This is the repository and reference website for Learning OpenCV 3 Computer Vision with Python, a book authored by Joe Minichino and Joe Howse, and published by Packt Publishing.

The book also has a Simplified Chinese edition, OpenCV 3计算机视觉:Python语言实现, translated by Liu Bo, Miao Beibei, and Shi Bin, and published by HZ Books / China Machine Press. This repository might also help readers of OpenCV 3计算机视觉:Python语言实现, but for Chinese-language support please contact HZ Books.

Code

Code is divided in chapters reflecting the samples contained in the book. Feel free to report errors either by:

  • opening an issue on github; or
  • contacting the authors directly (if you don't have a GitHub account).

Github is the preferred way as it grants visibility to all issues reported.

Virtual Machine

I (Joe Minichino) created a VM for VirtualBox which allows you to skip installation steps and jump straight into action. However, I am yet to find a free storage service where to upload the 12GB file to make it freely available. This is currently being addressed so check to this page constantly.

pycv's People

Contributors

joehowse avatar ramsingh656 avatar techfort avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pycv's Issues

install python opencv

what should I do to install opencv python on linux, I already compiled the opencv from source.

Assertion from car_sliding_windows in carChapter7

Hi,

I've tried to run the car_sliding_windows directly from the last repo here.
The issue I currently have is : after checking the path and the existance of the images files, I've anyway the following error:

396
397
398
399
OpenCV Error: Assertion failed (The data should normally be NULL!) in allocate, file /home/david/OpenCV/opencv-3.1.0/modules/python/src2/cv2.cpp, line 163
Traceback (most recent call last):
File "car_sliding_windows.py", line 17, in
svm, extractor = car_detector()
File "/home/david/OpenCV/pycv/chapter7/car_detector/detector.py", line 43, in car_detector
extract_bow.setVocabulary(vocabulary)
cv2.error: /home/david/OpenCV/opencv-3.1.0/modules/python/src2/cv2.cpp:163: error: (-215) The data should normally be NULL! in function allocate

This have been done under these conditions :

  • changed all path strings: "/home/d3athmast3r/(....)" to reflect mine. This affects : detector.py, car_sliding_windows.py, bow.py, detect_hog_svm.py
  • I'm running python 2.7.12 under virtualenwrapper
  • under the same Virtualenv I've been compiled OpenCV 3.1.0 with the contribs of the same version

Chapter 3 -- hpf.py

    k3 = ndimage.convolve(img, kernel_3x3)
  File "C:\Anaconda2\lib\site-packages\scipy\ndimage\filters.py", line 697, in convolve
    origin, True)
  File "C:\Anaconda2\lib\site-packages\scipy\ndimage\filters.py", line 530, in _correlate_or_convolve
    raise RuntimeError('filter weights array has incorrect shape.')
RuntimeError: filter weights array has incorrect shape.

Looks like scipy does not like the array, maybe I'm a newer version. Alternatively I wanted to use the VM to ensure I don't have any newer version however I could not find a the VM to download per the book info.

in chapter 3 the hough-line

this is some wrong with me,i run you code ,but this is not right for you example,have no line int the picture,
i do not know what is wrong
please tell me ,thank you very much!

green frame aren´t for kalman (surveillance demo main.py)

in book (chapter 8, surveillance demo) says
"In this screenshot, the blue rectangle is the CAMShift detection and the green rectangle is the Kalman filter prediction with its center at the blue circle."

but when look the the code, green rectangles are contours, not tracking using camshift/kalman

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.