gdb-imshow | GDB extension to show OpenCV images | User Interface library
kandi X-RAY | gdb-imshow Summary
kandi X-RAY | gdb-imshow Summary
This is a simple python extension script to visualize interactively OpenCV images while debugging with gdb. You need to have gdb (version 7.2 or newer). You can try to use the cv_imshow command by sourcing it first from within a gdb session with the command. (insert the path to the cv_imshow.py file on your machine, if it is not in the gdb current working directory). You can also add the command to your .gbdinit file if you do not want to source it at each session. Usage is extremely simple, once you have sourced the file. If the variable you want to inspect (i.e., show) is a cv::Mat or an IplImage with name 'image', all you need to do is. from within your gdb session.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Invoke an image
- Display an image
- Get information about an IPMImage
- Get information from cvmat
- Splits a sequence into chunks
gdb-imshow Key Features
gdb-imshow Examples and Code Snippets
Community Discussions
Trending Discussions on gdb-imshow
QUESTION
I am trying to view Opencv Matrices while debugging in gdb.
I tried using this script cv_imshow.py.
First when sourcing import Image
did not work. It failed because gdb uses python 3 which did not have PIL or Pillow.
Then I installed Pillow for Python 3:
pip3 install Pillow
Then replace the import Image
with:
from PIL import Image
The remaining problem is to convert cv_imshow.py from python 2 to python 3.
Here is what I did:
...ANSWER
Answered 2017-Feb-14 at 16:15You aren't the first one, trying to use this script for python 3. Have you checked this?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gdb-imshow
You can use gdb-imshow like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page