![]() When building a docker image, technically you lose the ability to react to any prompts from the console. A side note though, you have to add -y to every apt-get install. Now we will install the necessary libraries for OpenCV. Basically, whenever you execute some command through RUN, WORKDIR is your current directory. The first line will be the base image, which is ubuntu:18.04. ![]() Let’s go ahead and create a file named Dockerfile. For those who don’t, you may come across some unexpected errors. Let’s get started! Environment Preparationįor the sake of reproduction, I highly recommend you guys to use docker. For demonstration purposes, we will create a simple C++ project to read some images containing text with OpenCV and use Tesseract to extract the text to the console output. After that, I’m gonna show you how to link libraries and get your code compiled with CMake. That being said, in this post, we will first prepare the development environment. Speaking of C++, a language that can blow your whole leg off, though the high performance is intriguing, the whole process of environment setting – configuring – compiling might be unnecessarily daunting, especially to those who have no experience with compiled languages like C or C++. Lately, I’ve been working on some OCR projects in which I got to write C++ for most of the time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |