Thumb 92b40ddb 5f77 4faa 97de 2d21addbce26

Video recording with OpenCV, Qt and Basler pylon on MAC OS X

This project demonstrates how video recording can be realized on MAC OS X while using OpenCV (display&recording), Qt (GUI), Basler pylon (image grabbing), Basler USB3.0 and GigE cameras.

Project State

Public Project


Software Licence: Project has no software
Hardware Licence: Project has no hardware

Project Tags





Does this project pique your interest?

Login or register to join or follow this project.

Video recording with OpenCV, Qt, Basler pylon and Basler USB 3.0 and GigE cameras on MAC OS X

This project demonstrates how video recording can be realized on MAC OS X while using OpenCV (display&recording), Qt (GUI), the Basler pylon Camera Software Suite (image grabbing) and Basler USB 3 Vision and GigE Vision cameras.


This guide assumes that:

  1. you're using MAC OS X Sierra 10.12.3
  2. you're using pylon for Mac OS X v5.0.5.8973 or newer. You can download the latest pylon version from here.
  3. you're using a Basler USB 3 Vision or a GigE Vision camera
  4. you've installed Qt v5.7 (for building/using the GUI)
  5. you've installed OpenCV v3.2
  6. you've installed Boost v1.63 

Let's start

To start with, use the executable package 'CamViewer.app_V1.tar', which already contains all dependent libraries except the pylon framework.

Now apply the following steps to run the tool:

  1. Install the pylon5 frame work
  2. Extract the attached *.tar file into a directory of your choice.
  3. Open a shell and go into the sub directory, i.e.:
  4. And call the ./ 

The script '' will set the needed DYLD_LIBRARY_PATH environment variables and start the tool.
This sample supports recording of  'mpeg4' video files. 
Note: depending on your user rights, you may need to change the directory where the video should be saved, e.g. to Desktop.  

For the purpose of adding additional functionalities to the tool, the source code file 'CamViewerMacOsSRC_V1.tar' is also attached to this project.

PS: do not forget this is a sample private project without any warranty.

Title Description Format
CamViewerMacOsSRC_V1 Source code. tar
CamViewer.app_V1 A ready to use executable file. tar


stephanschulz report abuse
I tried running original-CamViewer.app_V1 but it does not start. console says: Stephan:~ stephanschulz$ /Users/stephanschulz/pylon/ ; exit; dyld: Library not loaded: @rpath/libopencv_world.3.2.0.dylib Referenced from: /Users/stephanschulz/pylon/ Reason: image not found Abort trap: 6 logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed.
mbinev report abuse
Hi, okay, it seems some libs could not be loaded correctly. As I don't have any MAC at hand to debug things myself now, I would recommend you dropping an email to the Basler support under . I suppose it must be something trivial. BTW, have you checked the pylon documentation included in the installation package?
stephanschulz report abuse
Thanks for the quick response. I am able to compile the pylon examples. I'm also able to use the pylon code in my other apps to successfully query the camera. I was just hoping to learn a bit more about recording and such through this example. I will just look through the code and copy what is useful. My ultimate goal is to reached at 120 fps for n -seconds without loosing too many frames.
mbinev report abuse
Hi, well, it definitely worked when I uploaded the project - so it cannot be a general problem. also the error messages suggest that a lib cannot be found, which must be related to environment variables, paths, etc.

Ready to join the project?

You'd like to participate ... Show more Arrow right