in video/src/main/java/video/Detect.java [64:94]
public static void argsHelper(String[] args) throws Exception {
if (args.length < 1) {
System.out.println("Usage:");
System.out.printf(
"\tjava %s \"<command>\" \"<path-to-video>\"\n"
+ "Commands:\n"
+ "\tlabels | shots\n"
+ "Path:\n\tA URI for a Cloud Storage resource (gs://...)\n"
+ "Examples: ",
Detect.class.getCanonicalName());
return;
}
String command = args[0];
String path = args.length > 1 ? args[1] : "";
if (command.equals("labels")) {
analyzeLabels(path);
}
if (command.equals("labels-file")) {
analyzeLabelsFile(path);
}
if (command.equals("shots")) {
analyzeShots(path);
}
if (command.equals("explicit-content")) {
analyzeExplicitContent(path);
}
if (command.equals("speech-transcription")) {
speechTranscription(path);
}
}