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

Compile opencv with libgtk to allow interactive usage with imshow() #79

Closed
markkassab opened this issue Jan 19, 2019 · 0 comments · Fixed by #83
Closed

Compile opencv with libgtk to allow interactive usage with imshow() #79

markkassab opened this issue Jan 19, 2019 · 0 comments · Fixed by #83
Milestone

Comments

@markkassab
Copy link

To tune the vision pipeline efficiently, we would like to run opencv interactively on the pi and be able to use functionality like trackbars to get GRIP-like ease of changing parameters. This all requires using imshow() to open the image on the pi. It doesn’t work on the version of opencv provided with 2019.2.1. At a minimum, libgtk was missing when it was built.

Please rebuild it to allow displaying images locally (after one installs a desktop, of course).

@PeterJohnson PeterJohnson added this to the 2019.3.1 milestone Feb 3, 2019
PeterJohnson added a commit that referenced this issue Feb 3, 2019
Fixes #17.

Stage 2 is fairly minimal, stage 3 builds/installs OpenCV and WPILib et al, and stage 4
builds/installs the FRCVision webdash and adds the vision examples.

Other changes:
- OpenCV compiled with ffmpeg, OpenBLAS, and libgtk (fixes #79, fixes #80)
- OpenBLAS added to image (fixes #65)
- C++ Makefile is more easily extensible (fixes #71)
- Sources for everything are bundled into image into /usr/src
- README updated (fixes #16)
- pkg-config files for wpilibc et al are now installed and C++ Makefile uses them (if compiled local to Pi)
- Both dynamic and static libs are included in image

The only downside of all these changes (particularly the ffmpeg, OpenBLAS, and libgtk inclusion)
is the image size is now over 3GB (800MB compressed). The previous image didn't quite fit on a
2GB card however.
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 a pull request may close this issue.

2 participants