Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileStorage: add simplified API for bindings #6482

Merged
merged 1 commit into from May 31, 2016

Conversation

paroj
Copy link
Contributor

@paroj paroj commented Apr 27, 2016

at least it is possible to read/ write calibration files. Fixes #4282.

Also add CPP method for writing comments.

API

>>> fs = cv2.FileStorage("calib.yml", 0)
>>> fs.getNode("camera_matrix").mat()
np.array([...])
>>> fs.getNode("camera_matrix").getNode("data").at(0).real()
1070.97
>>> fs.write("blah", np.eye(3)) # also works

@PhilLab
Copy link
Contributor

PhilLab commented May 19, 2016

👍

at least it is possible to read/ write calibration files. Fixes opencv#4282.

Also add CPP method for writing comments.
@savuor
Copy link
Contributor

savuor commented May 31, 2016

👍

@opencv-pushbot opencv-pushbot merged commit bf688da into opencv:master May 31, 2016
@paroj paroj deleted the filestorage_py branch May 31, 2016 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants