Created
September 14, 2016 18:00
-
-
Save ollewelin/fe721f2c45764fa3c552105b9db1c67b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //File: test_prog.cpp | |
| //Generate a bg.txt file how work with raspberry pi for opencv_traincascade | |
| #include <stdio.h> | |
| //Olle Welin [email protected] | |
| main() { | |
| FILE *fp; | |
| printf("Generate a bg.txt file how work with raspberry pi for opencv_traincascade \n"); | |
| fp = fopen("bg.txt", "w+"); | |
| for(int i=0;i < 1000; i++) | |
| { | |
| fprintf(fp, "./%d",i); | |
| fprintf(fp, ".JPG\n"); | |
| } | |
| fclose(fp); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment