opencv creat an input text box in a GUI and read it

mask picture mask · Jan 8, 2016 · Viewed 8.8k times · Source

Just wondering if there is any command in OpenCV to create an input "Text box" or"Edit text box" for a GUI in C++? Like name box (to enter a name)

PS: I'm using Linux (Ubuntu)

Answer

Mark Setchell picture Mark Setchell · Feb 8, 2016

As Miki says, there is no such facility in OpenCV itself, but there is nothing to stop you using Zenity or any of the alternatives, which work like this at the command line:

zenity  --title  "Gimme some text!" --entry --text "Enter your text here"

enter image description here

If it does what you want, you can integrate it into your C++ program by calling it through popen().