opencv_createsamples' is not recognized as an internal or external command

2,378 views
Skip to first unread message

Joseph Mwema

unread,
Jul 19, 2015, 6:44:09 PM7/19/15
to open...@googlegroups.com
Hi,

I have tested openALPR with several Kenyan Car Number Plates with success. I however wanted to train license plates so that I get good results for Kenyan car number plates recognition.

I am on windows 7 32bit and got Python 3.4 to run prep.py for training a small sample of license plates I have gathered. I was able to run ./prep.py neg but got stuck at  ./prep.py pos with the terminal displaying this text shown below

opencv_createsamples' is not recognized as an internal or external command as is shown on this image 

I believe it comes from line 152 of prep.py ( I have attached the prep.py I am currently working on ).

Please show me what is it that I am doing wrong and what I probably need to do right to get past this caveat. 

I will gladly appreciate your help.

Regards,

Joseph Mwema


prep.py

Joseph Mwema

unread,
Jul 20, 2015, 3:47:14 AM7/20/15
to open...@googlegroups.com
I just figured out that opencv_createsamples is an application in opencv found in opencv libraries. 

Regards,

Joseph Mwema
Message has been deleted

Raul Batalha

unread,
Jul 22, 2015, 3:21:13 PM7/22/15
to OpenALPR
                                                You must copy all the files that are in the bin opencv to folder or defined your directory:
  
  # OPENCV_DIR= '/OpenCV2/build/x86/vc12'
  #SAMPLE_CREATOR = OPENCV_DIR + '/OpenCV2/build/x86/vc12/opencv_createsamples'

   copy and paste here (C:/open_alpr_dlls), you understand?

Joseph Mwema

unread,
Jul 22, 2015, 4:29:18 PM7/22/15
to OpenALPR, raulzi...@gmail.com
Hi Raul,

Thank you so much. I already accomplished that feat. I figured out / later on found out that opencv_createsamples is an *.exe and the main purport of that path was to trace and run opencv_createsamples.exe against the arguments that come after it when ./prep.py is runs with the command 'pos' as is done in ./prep.py pos.  

I am sure your good explanation will be of help to persons who may find themselves redirected here from search engine lookups.

Regards,

Joseph Mwema
Reply all
Reply to author
Forward
0 new messages