0

There is a program that accepts images containing license plates as arguments. This program extracts only the license plate itself, letter and number image from the image received as an argument. How to use this program is as follows.

C:\Users\gksql\Desktop\PlateRec>PlateRecog_saveDigits_Location someimage.jpg

This will create one image_Plate.jpg file that contains the license plate itself and several image_Digits_ (number) .jpg files that contain numbers or characters. The problem is that the execution command itself is quite long, and there are at least a few thousand images. That's why I want to run this PlateRecog_saveDigits_Location.exe file for all images containing license plates in any folder. As a matter of fact, I can not change the source of the PlateRecog_saveDigits_Location file at this time. I want to know how to iterate through all the images in a window.

Thank you for your wisdom.

이한빈
  • 55
  • 8
  • I really don't see how C++ applies here unless you want to write a C++ program to do this. – NathanOliver Apr 11 '18 at 18:46
  • C: \ Users \ gksql \ Desktop \ PlateRec> PlateRecog_saveDigits_Location someimage1.jpg C: \ Users \ gksql \ Desktop \ PlateRec> PlateRecog_saveDigits_Location someimage2.jpg C: \ Users \ gksql \ Desktop \ PlateRec> PlateRecog_saveDigits_Location someimage3.jpg C: \ Users \ gksql \ Desktop \ PlateRec> PlateRecog_saveDigits_Location someimage4.jpg Someimage1, 2, 3, and 4 are all in one file. I've heard that I can run it repeatedly using a dat file. Do I need the internal structure of the PlateRecog_saveDigits_Location file to run it repeatedly? – 이한빈 Apr 11 '18 at 18:52

1 Answers1

0

Post is tagged c++, bash, shell...

looks like you want to loop through a list of files, calling the same executable if i understand correctly. Here are some good posts to get you going.

Loop through files in directory c++: How do you iterate through every file/directory recursively in standard C++?

Launching an executable from within a c++ project: How do I open an .exe from another C++ .exe?

Iterating through files in directory (bash): How to iterate over files in a directory with Bash?

Iterating through files in directory (powershell): Loop through files in a directory using PowerShell

Jeremy
  • 24
  • 5