This project showcases a screen capture application generated with Angular CLI version 17.0.3.
To run the development server, execute the command ng serve. Navigate to http://localhost:4200/ to view the application. The server will automatically reload if any changes are made to the source files.
Generate a new component using the command ng generate component component-name. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Use ng build to compile and build the project. The resulting build artifacts will be stored in the dist/ directory.
Execute ng test to run unit tests via Karma.
Run ng e2e to execute end-to-end tests on a platform of your choice. Note that you need to add a package implementing end-to-end testing capabilities before using this command.
For more information on using the Angular CLI, refer to the Angular CLI Overview and Command Reference page.
Update values
const CAPTURE_FREQUENCY_IN_MILLISECONDS = 10000;
const RANDOM_INTERVAL = true;in
src/app/views/questions/questions.component.ts
Navigate to the server folder:
cd serverInstall Node.js modules:
npm iMake sure to have images folder to save images
Run the server:
node index.js- Python 3.10.6
cd image_comparisonpython3 -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`pip install -r requirements.txtAdd base_image.jpg Fill the 'raw' folder with JPG images to compare
python3 main.pydeactivateThis setup guide provides the necessary steps for both the Angular application and the image comparison script. Follow the instructions to ensure a seamless setup and execution of each component.