This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Unexpectedly variable result
Type: behavior Stage: resolved
Components: Versions: Python 2.7
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: IanCarr, zach.ware
Priority: normal Keywords:

Created on 2019-11-20 21:32 by IanCarr, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bug.py IanCarr, 2019-11-20 21:32 Example
Messages (2)
msg357105 - (view) Author: Ian Carr-de Avelon (IanCarr) Date: 2019-11-20 21:32
I can't understand why the result of changes() in the example file changes. I get:
[[6.90642211e-310]
 [1.01702662e-316]
 [1.58101007e-322]]
[[0.]
 [0.]
 [0.]]
with an Ubuntu 14 system that has had a lot of changes made. I've checked the same happens on pythonanywhere.com so it does not seem to just be my system is broken. I wondered if there was some strange state in cv2 I don't know about, but as commenting out the tvec=np.zeros(3) line removes the behaviour I think there is something strange here. Now I've got it down to a few lines I can find a work around  and obviously numpy and opencv are huge packages and it may be in their court, but I think it is worth someone taking a look who knows more than me.
Yours
Ian
msg357106 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2019-11-20 21:43
I don't see anything here to indicate a bug in CPython or the standard library, so I'm closing the issue.  I would recommend asking for help with this on python-list@python.org (comp.lang.python) or StackOverflow.  If you can reduce it to a bug in either numpy or cv2, you'll need to report it to the correct issue tracker for the project.
History
Date User Action Args
2022-04-11 14:59:23adminsetgithub: 83050
2019-11-20 21:43:28zach.waresetstatus: open -> closed

nosy: + zach.ware
messages: + msg357106

resolution: third party
stage: resolved
2019-11-20 21:32:48IanCarrcreate