Ask Your Question

Eric Frost's profile - activity

2015-11-21 11:48:39 -0600 commented question Digits / Video

Once I uninstalled 3.0.0 and got 2.4.11 working along with the digits_video.py sample (digits_video.py would not work for my under OpenCV 3.0.0, issue posted in other thread), I realized digits_video.py actually does 99% of what I need.

I found it useful to adjust the size of the box

    # original line of code
    # if not (16 <= h <= 64  and w <= 1.2*h):
    # my line with adjust search box
    if not (64 <= h <= 128  and w <= 1.2*h):

and I just write the detected Numbers to a log along with a timestamp and x,y coordinates to filter what's been detected. I'll post my complete project and video when I'm done!

2015-11-20 19:20:51 -0600 asked a question Digits / Video

Is there a method or mechanism for detecting digits in different coordinates of the input video?

Say if the video is 100x100, I want to develop and algorithm for detecting digits in the 90x100x90x100 top right screen. Then again somewhere in the middle, say 25x75x25x75.

Willing to pay for consulting if there is anyone who can help.

Thanks!

2015-11-19 07:41:50 -0600 commented question Error with digits_video.py sample

Thanks. For what I'm doing (daughter's school science project) I don't want to get that involved. Just getting it installed from the pre-compiled binaries was challenge enough. So should I use OpenCV Version 2.4.11?

2015-11-18 12:04:47 -0600 asked a question Error with digits_video.py sample

Any advice to get digits_video.py working with OpenCV 3? I am getting this error ---

Python 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)] on win32

>>> from cv2 import __version__
>>> __version__
'3.0.0'

>>> execfile('digits_video.py')

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    execfile('digits_video.py')
  File "digits_video.py", line 94, in <module>
    main()
  File "digits_video.py", line 28, in main
    model.load(classifier_fn)
  File "digits.py", line 70, in load
    self.model.load(fn)
AttributeError: 'cv2.ml_SVM' object has no attribute 'load'
>>>

I saw these links but I'm not sure where i would put that function. Would I add to digits_video.py or digits.py or somewhere else?

http://answers.opencv.org/question/75...

https://github.com/Itseez/opencv/issu...

CV_WRAP static Ptr<SVM> load(const String &fn)
{
    return Algorithm::load<SVM>(fn);
}

Or would it be better if I just Download OpenCV VERSION 2.4.11 ? Would that solve it?

http://opencv.org/downloads.html