UNPKG

bowling-analysis-system

Version:

A comprehensive system for analyzing bowling techniques using video processing and metrics calculation

19 lines (17 loc) 885 B
// Add after a suitable location in the file where options are processed const isDebug = process.argv.includes('--debug'); const isVerbose = process.argv.includes('--verbose'); // Modify the options passed to the pipeline to include our debug flags const pipelineOptions = { debug: isDebug || isVerbose, verbose: isVerbose, logLevel: isVerbose ? 'debug' : (isDebug ? 'info' : 'warn'), biasOptions: { debug: isVerbose, // Enable debug mode in BiasCalculator if verbose generateBias: process.argv.includes('--generate-bias') // Allow explicit bias generation } }; // Make sure this is passed to the pipeline.execute() call // Modify the existing pipeline.execute() call to include options // For example, find where pipeline.execute is called and modify it to: // await pipeline.execute({ inputFilePath, outputFilePath, options: pipelineOptions });