This is the repository for susmag release 1.
Install the NI binaries from here , the pylon camera suite from here and Python 3 from here.
Open a terminal and type the following:
pip install numpy pypylon python-opencv
Download a release from here and unzip the content to the c:\susmag directory.
Test the installation:
python c:\\susmag\\installation_test.py
Allways perform a calibration when the system has been moved.
- Start the pylon software and the light ramp.
- Take a picture (F6).
- Locate the position of the calibration nail in pixels.
- Open the settings.json file.
- In the origin key, type in the new value.
- Start the pylon software and the light ramp.
- Add a ruler under the camera inline with the convoyer.
- Take a picture (F6).
- Use the pylon viwer to estimate the number of pixels per milimeter.
- Rotate the ruler 90 degrees and repeat the same action.
- Check that the value is the same.
- Open the settings.json file.
- In the ppmm key, type in the new value.
- Measure the relative distance along the convoyer between the nail and sensors.
- Measure the relative distance perpendicular to the convoyer between the nail and closest sensor.