Skip to content

Conversation

@trym-b
Copy link
Contributor

@trym-b trym-b commented Nov 13, 2019

Enables 2D API in this wrapper, so that you can easily capture 2D images
using a camera. 2D sample capture and tests has been included.

@trym-b trym-b requested a review from nedrebo November 13, 2019 05:37
@eskaur eskaur self-requested a review November 18, 2019 11:29
Copy link
Member

@eskaur eskaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good to me. Great test-coverage too.
I just have a few minor comments/questions.

@trym-b
Copy link
Contributor Author

trym-b commented Nov 19, 2019

Ready for next round

eskaur
eskaur previously approved these changes Nov 19, 2019
Copy link
Member

@eskaur eskaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now.

@trym-b
Copy link
Contributor Author

trym-b commented Nov 20, 2019

Ready for next round @nedrebo

Copy link
Contributor

@nedrebo nedrebo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, only minor comments.

@trym-b trym-b force-pushed the python-2d-api branch 2 times, most recently from 2f28ac1 to 62a10a1 Compare November 25, 2019 05:44

return py::buffer_info{
const_cast<Zivid::RGBA8 *>(
data), // TODO: Const casting this until https://github.com/pybind/pybind11/issues/1993 has been solved
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now merged. The fix is now to simply remove the const cast once pybind11 is updated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the comment

@trym-b trym-b force-pushed the python-2d-api branch 3 times, most recently from 5405790 to 9339676 Compare November 25, 2019 10:32
@trym-b
Copy link
Contributor Author

trym-b commented Nov 26, 2019

Any more comments @apartridge, @nedrebo or @eskaur ?

eskaur
eskaur previously approved these changes Nov 26, 2019
Copy link
Member

@eskaur eskaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Enables 2D API in this wrapper, so that you can easily capture 2D images
using a camera. 2D sample capture and tests has been included.
@trym-b trym-b merged commit c4bb9e8 into master Nov 26, 2019
@trym-b trym-b deleted the python-2d-api branch November 26, 2019 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants