Ask Your Question
0

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

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

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?

https://github.com/opencv/opencv_cont...

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?

http://docs.opencv.org/3.0-beta/doc/t...

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

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
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 81 times

Last updated: Jun 21 '17