Skip to content

Instantly share code, notes, and snippets.

@ollewelin
Created September 14, 2016 18:00
Show Gist options
  • Select an option

  • Save ollewelin/fe721f2c45764fa3c552105b9db1c67b to your computer and use it in GitHub Desktop.

Select an option

Save ollewelin/fe721f2c45764fa3c552105b9db1c67b to your computer and use it in GitHub Desktop.
//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