For the second part of my thesis, after messing around with various background subtraction algorithms in in openCV, I thought about what else I could do to add some value to this open ended research. I managed to get my hands on a Microsoft Kinect Camera which incorporated a normal camera and an infra-red camera.
The first issue I had, the Microsoft Kinect Camera I got wasn’t the developer version and it had a proprietary connector which doesn’t connect straight to a usb port. Good thing in this modern age is finding cheap adapters off ebay, but cheap sometimes also means waiting a while before I got the adapter and sometimes they don’t work… Fortunately, it wasn’t a complete waste as I needed part of the cable and following this guide I managed to make my own complete adapter.
The second issue was that I was trying to use the Kinect camera in MacOS with Python so it wasn’t natively supported as it would under Windows, but fortunately, the Libfreenect library provided drivers and wrappers to use make the Kinect work. Simply downloading the directory and navigating to the python folder in the wrappers folder and installing the files with
python setup.py install
To ensure that it is installed,
If libfreenect is listed then it is installed.
Here are a list of useful commands to navigate through your filesystem using Terminal Continue reading “Navigating Terminal on MacOS”
For those coming from linux and used to the comfort of apt, or those frequenting the app stores on Android and iOS devices, Homebrew would provide you the luxury of having a centralised place to download and install various softwares,even those not found on the Mac App Store on MacOS devices. Here is a list of hand commands used in the terminal. Continue reading “The Beauty Of Homebrew”
I had trouble writing to ntfs drives since upgrading to Sierra. In order to write to it:
- get the name of the drive(replacing all spaces with “\040”)
- open terminal and enter sudo nano /etc/fstab
- copy LABEL=disk none ntfs rw,auto,nobrowse (replace disk with name of hard drive)
- ctrl+o to save,enter,ctrl+x to exit
- unmount and mount drive and you should not be able to see it in your finder
- but navigate to \Volumes via the finder options Go->Go to folder… will let you see the drive.
I accidentally installed wireshark-chmodbpf and can’t uninstall it. Also needed to clean up my macbook pro and what better way is there to do it then completely reinstalling MacOS. Here is my attempt to make it as easy as possible for myself.
Step 1: Make a backup of all my important files.
Step 2: Make a list of all my installed apps. Get script here!
Step 3: Press Command-R To delete current startup drive and then reinstall MacOS.
Step 4: Set up Mac and go through all settings.
Step 5: Reinstall apps from App Store.
Step 6: Install Homebrew with
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
and tap into brew cask with
brew cask tap
Step 7: Reinstall apps through brew cask.
OpenCV is an open source library with many useful functions for manipulating images and arrays. For my thesis, I had to research of Background Subtraction techniques, a category within Computer vision which forms the basis for detecting objects in video streams. In order to complete my research, I had to test the performance and complexity of various Background Subtraction techniques. My initial attempts involved using MATLAB to complete my research, but after learning about this useful API, I decided to test it out but it would have been way too time consuming to set OpenCV with more traditional programming languages like C so I decided to test it out with python… Continue reading “Setting up OpenCV3 with Python on MacOS”