Ask Your Question

Using text detection with c++ on Debian Linux without GUI

asked 2017-06-20 17:36:10 -0600

xpro gravatar image

I'm trying to run the following example on a Debian 9 machine with command line only. Do I need to have a desktop environment for this to work?

From the reading I have done, it's necessary to compile OpenCV separately, then it would be possible to use it. Is that correct?

I found this tutorial for the installation process. Do I need to include any modules for the text detection to work?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-06-21 00:54:38 -0600

berak gravatar image
  1. yes, you can use text-detection on a headless box, but you will have to make some adaptions in the sample, since you cannot use imshow(), waitKey(), namedWindow(), etc. e.g. maybe you want to save your images to disk here or here , or don't draw anything at all ? also, you cannot rely on keypresses to navigate the program, you'll have to get creative here. ;)

  2. you will need to compile with opencv_contrib , please see the readme there for build instructions

  3. you will need: opencv_ml opencv_imgproc opencv_core opencv_features2d as dependancies

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-06-20 17:36:10 -0600

Seen: 384 times

Last updated: Jun 21 '17