2be805ce29
1. Following condition is True on each iteration becuase -1 % 0xFF is 255 not -1 code = cv2.waitKey(100) % 0x100 if code != -1: break this were resetting point position on each cycle not on key press as intended 2. Previous small bug were masking serious bug with matrix operation on matrices of incorrect size. As the result on 2nd iteration of internal cycle program has crushed. I have fixed it too, matrix operation was taken from examples/cpp/kalman.cpp where it looks like randn( processNoise, Scalar(0), Scalar::all(sqrt(KF.processNoiseCov.at<float>(0, 0)))); which is something totally different from previous code here. Example behave as it should now, i.e. point moving by circle trajectory as in C++ example. |
||
---|---|---|
.github | ||
3rdparty | ||
apps | ||
cmake | ||
data | ||
doc | ||
include | ||
modules | ||
platforms | ||
samples | ||
.gitattributes | ||
.gitignore | ||
.tgitconfig | ||
CMakeLists.txt | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md |
OpenCV: Open Source Computer Vision Library
Resources
- Homepage: http://opencv.org
- Docs: http://docs.opencv.org/master/
- Q&A forum: http://answers.opencv.org
- Issue tracking: https://github.com/Itseez/opencv/issues
Contributing
Please read before starting work on a pull request: https://github.com/Itseez/opencv/wiki/How_to_contribute
Summary of guidelines:
- One pull request per issue;
- Choose the right base branch;
- Include tests and documentation;
- Clean up "oops" commits before submitting;
- Follow the coding style guide.