python tutorial error (Bug #3783)


Added by be rak over 10 years ago. Updated over 10 years ago.


Status:Cancelled Start date:2014-06-30
Priority:Low Due date:
Assignee:- % Done:

0%

Category:samples
Target version:2.4.10
Affected version:branch '2.4' (2.4-dev) Operating System:Any
Difficulty:Easy HW Platform:Any
Pull request:

Description

http://docs.opencv.org/trunk/doc/py_tutorials/py_video/py_lucas_kanade/py_lucas_kanade.html#lucas-kanade-optical-flow-in-opencv

```
mask = cv2.line(mask, (a,b),(c,d), color[i].tolist(), 2)
frame = cv2.circle(frame,(a,b),5,color[i].tolist(),-1)
```

line() does not return anything, so it should be:

```
cv2.line(mask, (a,b),(c,d), color[i].tolist(), 2)
cv2.circle(frame,(a,b),5,color[i].tolist(),-1)
```

(sample code crashes, because frame and mask will get invalidated)


Associated revisions

Revision ba0a8dc7
Added by Vadim Pisarevsky almost 10 years ago

Merge pull request #3783 from StevenPuttemans:fix_traincascade_getNegatives

History

Updated by be rak over 10 years ago

sorry, false alarm, wrong branch even.

it returns an image in 3.0, that's what the tutorials are about.

so please, someone close this. (why can't i do this even?)

Updated by Steven Puttemans over 10 years ago

I guess you are not assigned as developer. Could be the reason you cannot close it down. Fixed it for you.

  • Status changed from New to Cancelled
  • Assignee deleted (Kirill Kornyakov)

Also available in: Atom PDF