Ask Your Question

'opencv_createsamples' is not recognized as an internal or external command

asked 2018-07-03 06:20:28 -0500

Nigeltve gravatar image

updated 2018-07-03 06:28:58 -0500


I've been looking everywhere but I can't seem to find opencv_createsamples. I have installed OpenCV-python through anaconda pip, but when I try running opencv_createsamples it says that it is not recognized as an internal or external command.

im on windows 10 using python 3.6.5

could someone help me figure out how to install this?

Thanks for your time.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-07-03 06:28:21 -0500

berak gravatar image

no it's not part of the python package, but a standalone c++ app, you'll find it here

to use it, you will have to build opencv from src, unfortunately.

(please also note, that opencv does not maintain any anaconda or pip packages)

edit flag offensive delete link more


ah ok, so I just clone the git repo and just run the opencv_createsamples command in that directory?

Nigeltve gravatar imageNigeltve ( 2018-07-03 06:42:04 -0500 )edit

well, you clone the github repo, then build the opencv libs (& apps) using cmake, and then you can run those tools .

berak gravatar imageberak ( 2018-07-03 08:18:15 -0500 )edit

Question Tools

1 follower


Asked: 2018-07-03 06:20:28 -0500

Seen: 4,331 times

Last updated: Jul 03 '18