Wednesday, 23 April 2014
Tuesday, 22 April 2014
Week 4: Computer Vision
This time I decided to pick a topic I'm familiar with (a few years of professional work in the industry), called Computer Vision, although some of you have some significant knowledge of it. Most people have very divergent opinions. Computer Vision is a very young part of IT field and computer knowledge. In Poland there are almost no specialized CV departments. In USA there are separate faculties founded with vision of researching... computer vision. Nevertheless vision revolution is behind the corner.
The growth of this particular field was possible thanks to technological progress in the imaging market (high resolution cameras, storage of thousands of pictures and movies) and embedded systems (high computing capabilities in our phones, cars, cameras, watches, even fridges....). In fact, that progress is not really connected with hardware. Hardware is the Opto-electronics and Electronics market. Computer Vision uses many medical researches about cognition of human. After extraction whichever data it needs from an image, CV algorithms try to outperform a human in recognizing, analyzing and categorizing images. It's really a simple idea at first sight. If there is a chair in the image, it's just natural to write a program that says so. In fact …. recognizing a chair is a big problem for engineers. A human can not only perceive on hundreds levels of recognition layers, but can also create non-existent data. Our biologic vision reconstructs most of the data we need to see a chair. I will try to bring the topic closer to you with some real life applications that are used now or will be used in a few years.
First big wave of modern computer vision came with algorithms of face detection. Nowadays cameras have it, facebook has it, every intelligent CCTV camera has it. Face detection is the first so successful technology to come into houses of common people. Of course, even before facebook there were created military-grade systems for tracking and intrusion detection but even the best systems had to be controlled by humans. The false positive rate was too high and cost of such systems was huge because of low computing capabilities of computers. The industry had it, though it was (and in many fields still is) limited to very simple operations as blob detection and color segregation. Unfortunately industry needs success rate or efficiency of visual cognition systems on level higher than 99.9% and it cannot be achieved in most cases with current state of the art algorithms. So the biggest market for computer vision became mass market, where each new visual function is well received even if it fails in 20% cases. There are technologies that are nowadays seen as a computer vision but are really rather optical systems or sensors, as laser barcode scanners.
Why face detection? Because face is so easy to detect. It's so characteristic and different in nature and synthetic graphics (made by a human), that its detector has a high detection rate even in the dumbest implementations seen in first “intelligent” cameras. In comparison, there is no known descriptor for a mug ... In fact people have problems with it as well. They recognize environment, as background: table, kitchen, spoon etc. and assume that something of such a simple shape has to be a mug. Without background it is a very hard task even for a human.
Detection and recognition are two different tasks. If we can detect a face...we can detect only a part of graphics that looks like a face. We don't know that it's “Brad” or “Eva”. That technology is just starting to evolve and you can see it on facebook, though they are striving to upgrade the system for high recognition rate. Its roots are in biometrics, which you can probably know from science fiction films and fingerprints and iris scanners.
So face detection is really a simple task. If you want to analyze images of buildings, crowds, cars, different actions and objects, moving bodies – it's a whole new world to research. So what can we really observe nowadays in the state of the art computer vision industry?
Let's start with surveillance. You probably know that London has hundreds of thousands CCTV cameras already installed. Each London citizen is recorded more than a 300 times a day. At first it was used mainly to track down suspects “manually”. What can do computer vision do nowadays? These are the data that can be extracted in real-time from a camera for business intelligence purposes; for example, people crossing a scan line, baggage, car tracking, sitting, walking, running. And that's only CCTV. Do you know what data some companies take from cameras in big malls? Places of biggest attraction, speed of walking between specific shelves. Some cameras can say where you are moving your hand while taking a product from a shelf. In most cases such systems have low efficiency, at 50-70%.
On the other hand , U.S. require new cars to have rearview cameras by 2018. Nvidia created some time ago a new embedded system with huge computational powers suited for cars (Tegra TK1) for that reason. The car accidents will be recorded with exact information about car numbers, gps data and environmental specification. If there are cameras on the side and front view, the systems for automatic parking will be commonly used. Best vision systems (Google has been a pioneer for a long time) can drive a car better in a city with many people than a real driver -
http://www.technologyreview.com/news/520746/data-shows-googles-robot-cars-are-smoother-safer-drivers-than-you-or-i/ .
Computer vision is 3D imaging as well. These are 3D scanners with structured light, Time of Flight (ToF technology), laser and infrared stuff that most of common people don't know. We can do 3D models with a single lens camera. So now...imagine that we can make a sparse 3D model of each town. Looks like Google Street View? Nope. Google wants to create real 3D towns. And now it can be constructed from a mere.... Flickr photos.
https://www.youtube.com/watch?v=ofHFOr2nRxU
OCR technology is almost everywhere. We can build document scanners (as a passport scanner) with a simple internet camera and some programming skills. We can analyze whole graphics and tell what elements make it attractive to people.
Google indexes all graphics on the internet with many levels of graphical descriptors. If you use some licensed graphics on your website – Google knows. Even if it was resized, cut in half, compressed and color space was altered. In USA if you earn a lot of money using such graphics, you will meet the police department quicker than you bought your server.
Did you know that with a single smartphone camera you can measure your own heart rate? That's called micro moves. Just watch it on YouTube. That's a better introduction than reading about it...
https://www.youtube.com/watch?v=3rWycBEHn3s
The growth of this particular field was possible thanks to technological progress in the imaging market (high resolution cameras, storage of thousands of pictures and movies) and embedded systems (high computing capabilities in our phones, cars, cameras, watches, even fridges....). In fact, that progress is not really connected with hardware. Hardware is the Opto-electronics and Electronics market. Computer Vision uses many medical researches about cognition of human. After extraction whichever data it needs from an image, CV algorithms try to outperform a human in recognizing, analyzing and categorizing images. It's really a simple idea at first sight. If there is a chair in the image, it's just natural to write a program that says so. In fact …. recognizing a chair is a big problem for engineers. A human can not only perceive on hundreds levels of recognition layers, but can also create non-existent data. Our biologic vision reconstructs most of the data we need to see a chair. I will try to bring the topic closer to you with some real life applications that are used now or will be used in a few years.
"What is It?" nr 1. |
"What is It?" nr 2. |
"What is It?" nr 3. |
First big wave of modern computer vision came with algorithms of face detection. Nowadays cameras have it, facebook has it, every intelligent CCTV camera has it. Face detection is the first so successful technology to come into houses of common people. Of course, even before facebook there were created military-grade systems for tracking and intrusion detection but even the best systems had to be controlled by humans. The false positive rate was too high and cost of such systems was huge because of low computing capabilities of computers. The industry had it, though it was (and in many fields still is) limited to very simple operations as blob detection and color segregation. Unfortunately industry needs success rate or efficiency of visual cognition systems on level higher than 99.9% and it cannot be achieved in most cases with current state of the art algorithms. So the biggest market for computer vision became mass market, where each new visual function is well received even if it fails in 20% cases. There are technologies that are nowadays seen as a computer vision but are really rather optical systems or sensors, as laser barcode scanners.
Why face detection? Because face is so easy to detect. It's so characteristic and different in nature and synthetic graphics (made by a human), that its detector has a high detection rate even in the dumbest implementations seen in first “intelligent” cameras. In comparison, there is no known descriptor for a mug ... In fact people have problems with it as well. They recognize environment, as background: table, kitchen, spoon etc. and assume that something of such a simple shape has to be a mug. Without background it is a very hard task even for a human.
Detection and recognition are two different tasks. If we can detect a face...we can detect only a part of graphics that looks like a face. We don't know that it's “Brad” or “Eva”. That technology is just starting to evolve and you can see it on facebook, though they are striving to upgrade the system for high recognition rate. Its roots are in biometrics, which you can probably know from science fiction films and fingerprints and iris scanners.
So face detection is really a simple task. If you want to analyze images of buildings, crowds, cars, different actions and objects, moving bodies – it's a whole new world to research. So what can we really observe nowadays in the state of the art computer vision industry?
Let's start with surveillance. You probably know that London has hundreds of thousands CCTV cameras already installed. Each London citizen is recorded more than a 300 times a day. At first it was used mainly to track down suspects “manually”. What can do computer vision do nowadays? These are the data that can be extracted in real-time from a camera for business intelligence purposes; for example, people crossing a scan line, baggage, car tracking, sitting, walking, running. And that's only CCTV. Do you know what data some companies take from cameras in big malls? Places of biggest attraction, speed of walking between specific shelves. Some cameras can say where you are moving your hand while taking a product from a shelf. In most cases such systems have low efficiency, at 50-70%.
On the other hand , U.S. require new cars to have rearview cameras by 2018. Nvidia created some time ago a new embedded system with huge computational powers suited for cars (Tegra TK1) for that reason. The car accidents will be recorded with exact information about car numbers, gps data and environmental specification. If there are cameras on the side and front view, the systems for automatic parking will be commonly used. Best vision systems (Google has been a pioneer for a long time) can drive a car better in a city with many people than a real driver -
http://www.technologyreview.com/news/520746/data-shows-googles-robot-cars-are-smoother-safer-drivers-than-you-or-i/ .
Can you see a car and a pedestrian? This pedestrian is a car graphics copied, rotated and moved. Do we want to build an algorithm that "thinks", that there is a pedestrian or a rotated car? |
Computer vision is 3D imaging as well. These are 3D scanners with structured light, Time of Flight (ToF technology), laser and infrared stuff that most of common people don't know. We can do 3D models with a single lens camera. So now...imagine that we can make a sparse 3D model of each town. Looks like Google Street View? Nope. Google wants to create real 3D towns. And now it can be constructed from a mere.... Flickr photos.
https://www.youtube.com/watch?v=ofHFOr2nRxU
OCR technology is almost everywhere. We can build document scanners (as a passport scanner) with a simple internet camera and some programming skills. We can analyze whole graphics and tell what elements make it attractive to people.
Google indexes all graphics on the internet with many levels of graphical descriptors. If you use some licensed graphics on your website – Google knows. Even if it was resized, cut in half, compressed and color space was altered. In USA if you earn a lot of money using such graphics, you will meet the police department quicker than you bought your server.
Did you know that with a single smartphone camera you can measure your own heart rate? That's called micro moves. Just watch it on YouTube. That's a better introduction than reading about it...
https://www.youtube.com/watch?v=3rWycBEHn3s
Monday, 21 April 2014
Week 4: Is it still polish?
I was thinking about the subject of this article for a long time. Many good topics were considered and it dawned on me almost in the last minute!
I would like to open a debate about the Polish culture. Below I have listed several changes in Polish cinematography, customs and food. I hope that such popular and obvious things won’t make you bored. Enjoy☺
Polish movie
If I ask you about the most famous movies from your childhood I guess you will mention “E.T.”, “Home alone” or “Lion King.”
What about “Akademia pana Kleksa”, “Awantura o Basię” and “Panna z mokrą głową”? Do you remember them?
Source: kinopolska.pl |
Source: www.lakowa29.pl |
Source: telemagazyn.pl |
Source: telemagazyn.pl |
Source: tvp.pl |
If not, don’t be ashamed. My little brother has never heard of them! In his life there is only a place for Marvel super heroes. Nonetheless, when I was watching “Czterej pancerni i pies” with him, I couldn’t stop peeking at him as he was smiling during the whole movie.
I believe Polish movies (especially the old ones) are worth watching, but people shouldn’t compare them to the American ones since they are definitely different. While the American movies are overloaded with emotions, the Polish ones present adventures rather than melodramatic moments.! However, lately, Polish films have changed. Have you ever seen “Kamienie na szaniec”? Of course I mean the latest version of this movie. I have, and in my opinion it fits better the American pattern rather than the Polish one.
Polish holidays
The significance of American holidays such as Valentine’s Day and Halloween has
increased recently in our country. I am against it. However, it seems that while celebrating the foreign events, we have completely forgotten about their equivalents and truly Polish customs like “Noc Kupały” and “Katarzynki”. While the first resemble Valentine’s Day, the second was an opportunity for men to do magic in order to get to know their future wife.
Source: www.dcik.pl |
Source: thomrgal.deviantart.net |
I know that those customs were forgotten and ignored long time ago, but please bear in mind that we have celebrated in the Polish calendar holidays like “Andrzejki”,”Barbórki”, “Mikołajki” which are not as popular as American holidays. What a pity.
Polish Cuisine
Finally, I would like to focus your attention to modern Polish cuisine. Once at the Polish TED conference, Karol Okrasa was talking about Polish meals hardly anybody knows.
My hobby is collecting old books. Someday I bought “Współczesna kuchnia domowa” which was written by Alina Gniewkowska. I want to share with you the following recipes.
Source: Alina Gniewskowska "Współczesna kuchnia domowa" |
All of them are delicious. I recommended them especially during summer time.
Do you know that foreigners really like our sweets?
Wedel is an old Polish company founded in 1851. It is not as famous as “Mozartkugel” or Milka, but everybody who tasted “Ptasie mleczko” told me that it tastes second to none.
Source: palcelizac.gazeta.pl |
Anyway, a Wedel chocolate lounge in Szpitalna street looks more spectacular than any Starbucks café I have ever seen.
Source: wikimedia.org |
All things considered, I have every reason to believe that we don’t need to change our culture and look for inspirations and influence in the foreign one because our own is unique. Don't get me wrong. I’m not closed for other cultures, but I think that we should appreciate and value our own.
Do you like the abovementioned changes? Is there any Polish thing you appreciate the most?
Week 4: Buddhism
Buddhism , Islam,
Christianity and Hinduism... Different religions, values,
rites, but are they really so different after all? During the next four terms I
would like to present briefly those 4 religions
to you and write about their key aspects. This term I would like to start with... Buddhism.
http://mattersindia.com/wp-content/uploads/2013/10/buddhist_temple.jpg |
What is Buddhism?
Many people think that Buddhism is a religion, where Buddha is a god. First of all - Buddha is not a god, but more like a prophet. Secondly – Buddhism is not a regular religion like Christianity or Islam, it’s more like a philosophy of life or a way of self-improvement. There are no prayers, dogmas or holidays and, what is probably most important, there is no god.http://www.chinesemedicineliving.com/blog/wp-content/uploads/2011/11/buddhism1.jpg |
So who was actually Buddha?
The key figure of Buddhism religion was born around 560 B.C. (or 566 according
to different sources) as Siddhartha Gautama. He was a son of a ruler of a small
country in northern India and he grew up living in the lap of luxury unaware of
the world outside his palace. That was enough to spoil every child, but young
Siddhartha was said to be very polite, gentle, diligent and well-mannered. His
world turned upside down, when he sneaked out of his palace and came across
poverty, death and pain of an average person.
He decided
to leave his palace, become a walking monk and find true, pure happiness and
wisdom. Siddhartha wandered from one teacher to another, having more and more
harsh ascetic way of life for six years. When he brought his body to complete
physical and emotional exhaustion, he realized that there is no point in
treating himself that way, that there must be another path. With a strong will
to find true happiness, he meditated for many months in a place we now know as Bodhgaya.
After overcoming his deepest fears, temptations and weaknesses he became Buddha
– the Enlighten One/ Awakened One.
http://www.wallwides.com/wallpaper/wp-content/uploads/2013/05/03/15162/Siddhartha-Gautama-Buddha-Wallpaper.jpg |
The Four Noble Truths and Three Marks of Existence
Two months
after his Enlightenment, Buddha started to teach others. In his First Sermon he
revealed the basic truth about life – that the life is a constant suffer. This
doesn’t mean that we don’t feel happiness in our lives, the problem is that
happiness is temporary and will be destroyed by some events. We are afraid of
death, that we won’t fulfil our desires.
There is longing, hatred, helplessness and the way to overcome those lies
in Enlightenment. Buddha summarized all that in The Four Noble Truths (translation by Bhikkhu Bodhi; word “Dukkha” is a translated from Pali as
"suffering", "anxiety", "stress", or "dissatisfaction"):
2. The truth of the origin of Dukkha;
3. The truth of the cessation of Dukkha;
4. The truth of the path, the way to liberation from Dukkha
Then he
spoke about the Three Marks of Existence.
As the first two – impermanence
(pali. “Anicca”) , suffering (pali. “Dukkha”) - are quite obvious, I would like to
concentrate on the last one – not-self
(pali. “Anatta”). According to Buddha’s teachings , we wrongly think about
ourselves as “I”. That our body, our thoughts, our opinions – this all creates
us, but why? Our life and body was given by parents, they also played a
significant role in our upbringing along with culture, place and society we
live in. The “I” we think about is a result of outside factors, not the real
nature of us. Enlightenment helps us realize that there is no actual separate
I, different for each and every one of us, but that we all are connected.
http://theaposition.com/peterandraes/wp-content/uploads/sites/27/2010/10/Buddhist-monk-teaching-novi.jpg |
Karma and reincarnation
Karma is
wrongly connected with fate, but actually is a complete opposite of it.
According to Buddhism’s teachings our current life is the result of the good
and bad act from our former life. The way we behaved, our feelings, thoughts,
achievements are the main factors, which will decide who we will become after
our death (reincarnation). It’s not judged by any “higher power”, but the life itself – we
create our own future present and past. But living in paradise and hell is not
constant – it’s only a stop in a endless journey. You can change your faith at
any point of your current or future life.
I would like to end this presentation with very basic, but inspirational Buddhist quote:
“Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment.”
Some questions which can help you comment:
1. What are your thoughts about other religions? How much do you know about this topic?2. Would you consider becoming a Buddhist?
3. Did this presentation give you any new information? Did I inspire you to learn more about it (in my opinion it’s worth it!)
4. What was your score in that quiz: http://www.proprofs.com/quiz-school/story.php?title=buddhism-quiz
5. Would you like to read another presentation like this (about religions mentioned at the beginning of the post)?
Tuesday, 1 April 2014
Week 3: My trip to Budapest
I bet there are lots of people who like lying on sandy beaches, sunbathing all day long and taking occasional baths in the sea. I’ve also seen in previous posts that some of us prefer sight-seeing trips with a fixed plan for it.
The way me and my fiancée go for it is a short self-organised trip - sometimes a bit unpredictable.
I want to present you one of our trips along with the research process which was behind it. So far we haven’t had too many of these trips, but I hope we will find time and money to do it more often. Our destination was Budapest, Hungary.
The first
thing we did was search for the cheapest tickets available at http://www.tanie-loty.com.pl/. We
didn’t really care about the time of the flight because the trip was meant to
be spontaneous and short – 4 days . It turned out that Wizzair, a Hungarian
airline, offered the best price.
The second
thing we did was to find a fairly cheap, cosy one-bedroom apartment which would
let us have our privacy – we don’t like overcrowded hostels. The one below was
the best choice between expensive hotels and cheap hostels.
It turned
out to be a nicely equipped, modern apartment. It was also located in the heart
of the old town so that the most beautiful parts of Budapest were at our hand.
The fight
itself took around 70 minutes, but after arrival at the Budapest airport, we
had to be prepared to almost double that with one hour trip to the city centre.
The airport was around 20-something kilometres away from the underground station nearby our apartment. Below you can
see the live google feed of connections
available right now.
I’m going
to tell you about just a few characteristic places which are worth mentioning.
If you hate guidebooks you can simply walk around this city and admire its size
and monumental buildings. Simply saying Budapest looks like a Gotham City – it
is dark, dirty and buildings are huge and scary. In comparison to Warsaw,
Budapest looks like so-called MDM buildings along Marszałkowska Street.
Some of
them are in bad condition, just look at
Deák Ferenc tér.
Really
beautiful but extremely dirty and run down. You get this sad impression often
when you see buildings there. We were wondering if Budapest has anything like
our municipal department of sanitation. Forcing ourselves to hang on to
anything in a subway was quite a challenge!
Our
sightseeing started from the Buda side and we went through a few of the most
frequently pictured places of this city. First one was the Chain Bridge.
The Castle
and a large part of the old town and is placed on the hill.
You can get
there by the Budapest Castle Hill Funicular.
Source: http://upload.wikimedia.org/wikipedia/commons/thumb/8/86/Budapest-castle-hill-funicular.jpg/450px-Budapest-castle-hill-funicular.jpg
Source: http://upload.wikimedia.org/wikipedia/commons/thumb/8/86/Budapest-castle-hill-funicular.jpg/450px-Budapest-castle-hill-funicular.jpg
One way
adult ticket was 1000 HUF. For us a thousand was like “whoa”, quite big
overkill for only “a few” steps up as an alternative :) Walking
up was actually fun and gave us some time to admire the view and take some
pictures of the Chain Bridge and the Parliament on the Pest side.
When you’re
there, you will find one of the most beautiful and well preserved castles in
Europe, which unfortunately has a really poor history museum inside – what a
shame! What is really worth seeing up there is Halászbástya (Fisherman's
Bastion).
It is
picturesque, and so it is the view on the Pest side. There we took our best
“selfie” from that trip!
The second
place that we found really interesting was Hősök tere (Heroes Square), which is
a square surrounded by monumental statues.
It was only
a prelude to the main attraction to this part of the city. One can stare and
stare at these wonderful statues for minutes, but if you slightly move your head
to the right, you will see something incredible - the Adams' house – how the hell did it get there?
It reveals
as agriculture museum in Vajdahunyad Castle and is surrounded by a large park
with small lakes , what makes this area ideal for summer visits. Since we were
there in January, the temperature was low and we had to find a place to warm
ourselves. We were spontaneously wondering around the park just to find a
Circus!
My fiancée
made me go inside and buy tickets for the upcoming show. The circus was
overcrowded with people and we bought two of the few last places and went to
the show! It was really amazing! Apart from acrobats, elephants, lions and
parrots we have also witnessed a proposal and the woman said yes.
I bet this
place was an inspiration for Jazmine Sulivan in her great song Lions, Tigers
and Bears ;)
Entrance
ticket was quite expensive so we went
there earlier not to pay for it. thanks to this fact we could observe how this famous place functions.
Until 11 pm the whole place serves as a huge, crowded restaurant with trees
growing inside the backyard.
When it is
getting close to the midnight the place slowly changes into a nightclub with a
dance floor under the tent-like roof, which in warm months is constantly open.
We partied all night and spent there all of the money we tried to save during
this trip. In the morning our wallets were empty, but the feeling was
unforgettable.
It was a
nice goodbye to our Budapest trip. I would also recommend taking a night walk
along the river bank to see illuminated buildings at night.
Source: http://www.city-data.com/forum/pittsburgh/2030533-pittsburgh-san-francisco-east.html
What is your recipe for a great trip?
What is your recipe for a great trip?
Subscribe to:
Posts (Atom)