This is a project to trigger images and reading out image data from an industrial camera (GigeVision). Also to create a PGM file with the image acquired.
There are two posibilities to build, using Docker or native Linux machine.
- Use
./scripts/build-docker.sh
to create a Docker image with all dependencies. - Use
./scripts/build-in-docker.sh
to build the source code on Docker image. Binary file is create on ./build/check-defects.
- Use
./scripts/run-in-docker.sh
to run the application on Docker image.
- Use
./scripts/clean-docker.sh
to clean a build files on Docker image. - Use
./scripts/delete-docker.sh
to delete Docker image.
- Use
./scripts/run-docker.sh
to run Docker image and run commands manually. (Debug purpose)
$ ./scripts/build-docker.sh && ./scripts/build-in-docker.sh && ./scripts/run-in-docker.sh
Binary file is create on ./build/check-defects.
PMG file is create on ./build/output.pgm.
There is a script generate.sh to help you to compile and run the application.
NOTE: This application was testes using Linux Ubuntu 16.04.
- Use
./generate.sh -p
to prepare the enviroment. (requires sudo) - Use
./generate.sh -C
to create build files. - Use
./generate.sh -b
to to build the project. Binary file is create on ./build/check-defects.
- Use
./generate.sh -r
to run the application.
- Use
./generate.sh -c
to clean the build files. - Use
./generate.sh -d
to clean all temporary files.
- Use
./generate.sh -k
to run a static code analysis.
$ ./generate.sh -pCbr
Binary file is create on ./build/check-defects.
PMG file is create on ./build/output.pgm.