python tutorial error (Bug #3783)
Description
```
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
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)