Well 4 years later and I am finally finsihed with university. I have had a wonderful time at Aberystwtyth and I hope to not be away from it for too long. I am still waiting on results but hopefully I will get at least a 2:1(a 1st if I am lucky).
So what am I up to now, well, first priority is to get a job. I have spoken to a few people and got a few interviews lined up, so we shall see how they go. To try and keep on top of things I am working on a few projects, both hardware and software. As well as that I have a charity raft race this coming Sunday at Glengower in Aberystwyth so that should be good. Got a few friends coming up to take part as well.
Other things that are going on is my YouTube channel is back to being updated and you can have a look at what I have going on here feel free to like my videos or if you feel up to it even subscribe.
I should hopefully get back to updating my blog a bit more as well and might even start doing some Vlogs on YouTube so look out for them.
A nice little blog about my general life and thought/ideas I feel like rambling on about.
Showing posts with label dissertation. Show all posts
Showing posts with label dissertation. Show all posts
Thursday, 21 May 2015
Friday, 27 March 2015
Kalman away
Well took long enough but I have a Kalman filter working. Thanks to help and code from my dissertation supervisor Hannah Dee. I have managed to tweak her code that uses Kalman2d which can be found here to fit in with my scenario. Example of what it is currently doing can be seen below.
I have added some basic checking for the HoG(Histogram of orientated gradients) and Kalman filter so that if a HoG is not detected the bounding box is drawn in the last place it was located. If it then re appears the Kalman filter then is updated with the new location. This is done by searching with a buffer with in the range of last HoG detection, this is assuming the person has not travelled far and there is no one else nearer.
The issues I am having with two people coming near to each other that the tracker swaps over is not an issue. The reason being as if two people come close to each other and one gets the tracker from the other then the other one will get their tracker. One way I can mitigate this is to start the search in the direction the person was travelling so that way the person is more likely to get their tracker back.
I am currently only tracking one person but now I have a goal I feel I can really push this through. My goal is to build a person object that will keep track of locations to help mitigate occlusions and count them. This will be using HoG detector as the initialiser, mean shift, Kalman filter and cam shift to help determine location helping keep a more accurate track of people. Background subtraction will be used as evidence to show that something is moving here chances are someone or something is here.
I am hoping to be able to determine in scene exits by determining if a number of person detectors go dead at the same location. If they are predicted to go off scene then that is a normal exit but can monitor exits to focus detectors more.
Any way this will be my last blog post for a while as I am off to sunny Lloret de Mar for my first vacation abroad with dance sport. Should be a good time sportsvest who are organising it have made it look like it is going to be an epic time. So speak in a week and a bit.
![]() |
| Here shows the Kalman filter in action(the green line) however at this point it jumps between the two people in the box currently |
I have added some basic checking for the HoG(Histogram of orientated gradients) and Kalman filter so that if a HoG is not detected the bounding box is drawn in the last place it was located. If it then re appears the Kalman filter then is updated with the new location. This is done by searching with a buffer with in the range of last HoG detection, this is assuming the person has not travelled far and there is no one else nearer.
The issues I am having with two people coming near to each other that the tracker swaps over is not an issue. The reason being as if two people come close to each other and one gets the tracker from the other then the other one will get their tracker. One way I can mitigate this is to start the search in the direction the person was travelling so that way the person is more likely to get their tracker back.
I am currently only tracking one person but now I have a goal I feel I can really push this through. My goal is to build a person object that will keep track of locations to help mitigate occlusions and count them. This will be using HoG detector as the initialiser, mean shift, Kalman filter and cam shift to help determine location helping keep a more accurate track of people. Background subtraction will be used as evidence to show that something is moving here chances are someone or something is here.
I am hoping to be able to determine in scene exits by determining if a number of person detectors go dead at the same location. If they are predicted to go off scene then that is a normal exit but can monitor exits to focus detectors more.
Any way this will be my last blog post for a while as I am off to sunny Lloret de Mar for my first vacation abroad with dance sport. Should be a good time sportsvest who are organising it have made it look like it is going to be an epic time. So speak in a week and a bit.
Lloret de Mar
Labels:
2015,
aber,
aberystwyth,
background subtraction,
diss,
dissertation,
Hannah Dee,
histogram of orientated gradients,
HoG,
kalman filter,
Lloret de Mar,
mean shift,
opencv,
PETS 2009,
Python,
sportsvest,
tracker
Tuesday, 10 March 2015
The ups and down of graphs!!!!
After having some issues I managed to get my graphs for the different settings for the HoG detector and this is what they look like.
This is only based upon a few frame so that it did not take forever to complete. The graphs as well only contain a select few HoG settings, otherwise it would be to busy and un readable.
I am currently working on trying to try different values between bigger numbers. This will allow me to try more combinations without trying all the combinations between.
![]() |
| This is the number of correct detections for a few HoG settings |
![]() | ||||
| This is the number of offsets from the Ground truth for a few HoG Settings |
This is only based upon a few frame so that it did not take forever to complete. The graphs as well only contain a select few HoG settings, otherwise it would be to busy and un readable.
I am currently working on trying to try different values between bigger numbers. This will allow me to try more combinations without trying all the combinations between.
Wednesday, 11 February 2015
That'ssss some very nice Python code there...
Well it has been a busy week of work on my dissertation and so with out messing around lets dive straight into what I have been up to.
Firstly I have handed in my project specification in on Friday and got feedback on The following Tuesday. The feedback was very helpful and helped clear up some thing such as focusing me more on target rather than trying to solve everything. As a result of this feedback my goals are even more clear now and they are to work on counting people in a crowd and determining if the crowd is calm or not. Other areas for improvement include my bibliography which did not have all the relevant information on some of the references.
As well as this I have been carrying on my reading and spent a long time trying to get OpenCV installed for Python on Ubuntu 14.04. I got shown a nice way of installing OpenCV via pip which is a nice way of installing stuff for Python. It installed but when I tried to run any test code with windows it was throwing dependency issues. So I looked around and found this nice tutorial which helped resolve some of my issues but still had an issue with gtk. This answer managed to fix the issue and I was up and running. I have also been learning a lot about Python such as how to be modular and returning tuples, example code below.
def tuple_return_function():
return ("10", "20")
def function_name();
tuple1, tuple2 = tuple_return_function()
print("Tuple1 is " + tuple1 + " Tuple2 is " + tuple2)
# Outputs: 'Tuple1 is 10 Tuple2 is 20'
Once I was up and running I got to work trying different OpenCV implemented methods using this site. As such I got some nice SIFT and SURF and a interactive foreground extraction using GrabCut algorithm. For SIFT and SURF I also made it loop so it only found a specific number of points so wouldn't detect everything. These helped me understand the basic functionality such as loading in images, copying them and converting them to grey and other basic stuff. You can see some examples below.
I have also started working on some code that will be used in the final system. Currently I have a Python file that is used for reading in image files from a directory as well as a basic implementation of Viola-Jones. Once I am happy with my implementation I will then begin writing tests for both the reading in image files and the Viola-Jones. I will be starting on implementing histograms of oriented gradients for human detection next after the tests are implemented.
I am having some issues with the Viola-Jones implementation for detecting faces in a crowd and it isn't that the faces are obstructed. It seems to be that the faces are too far away to be picked up. I am having a look at this and seeing if I can tweak some settings.
Firstly I have handed in my project specification in on Friday and got feedback on The following Tuesday. The feedback was very helpful and helped clear up some thing such as focusing me more on target rather than trying to solve everything. As a result of this feedback my goals are even more clear now and they are to work on counting people in a crowd and determining if the crowd is calm or not. Other areas for improvement include my bibliography which did not have all the relevant information on some of the references.
As well as this I have been carrying on my reading and spent a long time trying to get OpenCV installed for Python on Ubuntu 14.04. I got shown a nice way of installing OpenCV via pip which is a nice way of installing stuff for Python. It installed but when I tried to run any test code with windows it was throwing dependency issues. So I looked around and found this nice tutorial which helped resolve some of my issues but still had an issue with gtk. This answer managed to fix the issue and I was up and running. I have also been learning a lot about Python such as how to be modular and returning tuples, example code below.
def tuple_return_function():
return ("10", "20")
def function_name();
tuple1, tuple2 = tuple_return_function()
print("Tuple1 is " + tuple1 + " Tuple2 is " + tuple2)
# Outputs: 'Tuple1 is 10 Tuple2 is 20'
Once I was up and running I got to work trying different OpenCV implemented methods using this site. As such I got some nice SIFT and SURF and a interactive foreground extraction using GrabCut algorithm. For SIFT and SURF I also made it loop so it only found a specific number of points so wouldn't detect everything. These helped me understand the basic functionality such as loading in images, copying them and converting them to grey and other basic stuff. You can see some examples below.
![]() |
| SURF - Before and after |
![]() |
| GrabCut - Before and after |
![]() |
| SIFT - Before and after |
I have also started working on some code that will be used in the final system. Currently I have a Python file that is used for reading in image files from a directory as well as a basic implementation of Viola-Jones. Once I am happy with my implementation I will then begin writing tests for both the reading in image files and the Viola-Jones. I will be starting on implementing histograms of oriented gradients for human detection next after the tests are implemented.
I am having some issues with the Viola-Jones implementation for detecting faces in a crowd and it isn't that the faces are obstructed. It seems to be that the faces are too far away to be picked up. I am having a look at this and seeing if I can tweak some settings.
Labels:
aber,
aberystwyth,
dependencies,
diss,
dissertation,
HoG,
install,
opencv,
Python,
tuple,
Ubuntu,
university,
viola-jones
Subscribe to:
Posts (Atom)






