photoshop

Software tricks that compensate for hardware

If you hear about software compensating for hardware be it in imaging, networking, security, etc. etc. take it very seriously. 

Got to witness it firsthand over the weekend. We were at a friends place and one of our friends who works at Apple, whips out an iPhone8 and says "let me show you the portrait mode on this one". She takes a photo of me and with a single swipe on the icons in the bottom she was able to adjust the lighting on the portrait, AFTER the photo was taken. The background was also blacked out instantly and precisely.

It is interesting to note that Apps have figured out how to identify your face and put bunny ears on them, glasses and hats on your image and move them dynamically as you move your face. That is already 2016! as pointed out by my other friends. So the face and body recognition has come a long way. The speed and precision with which it is being done is what is amazing and scary! 

It takes me (and I do this with practiced ease) 3-4 minutes to cut an outline and create portait shots by blacking or whiting out the background. I use the smart cut tool in Adobe Photoshop CS5 and do a layer by cut followed by a solid layer and reordering the layers. 

The key issue is that the smart cut is only as precise as I can do it manually. My rush and crude job in the picture below shows that I did not get the boundaries right on my head line or right ear, which is because the background color blends with skin color or fuzzy boundaries are hard to delineate. The option is to gradually increase opacity between the layers. It can be done and it will take another few mintutes and can be automated.

How do you adjust the lighting post picture?! Think the iPhone8 is taking a page out of the Lytro book and doing multiple exposure shots (kind of like HDR but by adjusting focus) or is adding image sensor tricks to deliberately over expose or underexpose a group of pixels after it identifies the face prior to taking the pictures and is then able to play with this in the post processing. Dont know what kind of AI went into this, but whatever it is, very impressive!

Note that when I do smart cut and add a black layer, there is no lighting effect. I can also recreate part of the effect by creating a custom Vignette option. But I cannot change the local lighting on my face. It will always match the original. 

The "smart cut" being done with software is what is incredible. This is going to put portrait studio kits out of business. 

The SLR camera and lenses are temporarily safe. It still takes a good zoom to capture pictures of moving subjects against a plain backdrop and CS5 to adjust it. Maybe when you import the photos into an iPhone8 those photographs will be edited with a button click. Photoshop options and customized macros are going to be folded into the iPhone. You dont need those anymore soon..

One idea that I had was this.. Build a housing for an iPhone where the phone's camera focuses on an internal white board inside the box which replaces the plane of the full frame sensor in an SLR. You directly put your 2000$ lens on to this small box and the phone connects to an EF lens, telescope, binocular etc. etc. 

In the mean time photography enthusiasts like me will still lug around a heavy bag... 

Technology is moving very fast. Faster than a common person with respect to that technology field is improving. I am in hardware and see a scary progress in software. A software person is probably seeing the same thing in hardware space. The collective improvement is something neither one can anticipate or expect. . . it beats the average expectation by a wide margin!  The happy go lucky average users (all of us) don't see the larger picture of where this is going!

Peru Day 7 - Puno to Lima and back home

This is almost the last post on the Peru trip. Just realized that there is a folder full of Panorama shots on the iPhone. 

Day 6 post is here..

Day 7 was the last day. We started at Puno in the morning and drove to Juliaca airport. We almost missed the flight out to Puno. The bus driver stopped at every street corner and waited to pick up passengers, not all of them going to the airport.

We were cutting it very close and a lot of airport folks said "please get us to the airport". This person was tryig to make a few extra bucks picking up people en route to drop but it could have cost us a lot more if we missed the flight. There were not that many flights out of Juliaca!

Finally after some anxious moments we made it through a traffic jam to the small airport and made it to Lima. It was almost 3PM in Lima. Our original plan was to stay in the airport till our 1AM flight back to US.

We were sitting at the starbucks in Lima airport talking to a girl and her mom who were on their way to India for a two week sightseeing tour, giving them tips when we realized we had time.

We called our tour agent and said "please get us a driver to take us around some local sights in Lima and drop us back at the airport at 9 PM or so". He quickly arranged a 4 hour block and guess what? we got the same driver who had picked us up 6 days ago when we started the tour. He was a really nice guy and we talked about his family and life history while we talked about ours.

He also volunteered to take pictures of us. We had four hours. So we decided to spend 2 hours in Miraflores, the waterfront recreation area in Lima. It was beautiful! Nice breeze, sunset, lots of people out there on new years eve coming to celebrate.

We walked and rambled on top of large stones to go into the edge of this walkway of sorts and got some great family photos!


We had to take one picture with what a Beligian couple told was "sexy llamas" the previous day in Isla de Tequile. I took a photo of them on their camera and they were doing this with their fingers. 

We stopped outside one of Lima's top rated restaurants for a few photos. Then we were on the other side of the road as we made it into Lima for the last stop. Dinner at an Indian restaurant to close out the new year. 

As we watched the sunset over the large statues of a man and a woman in various kissing holds and the bustling night life around the statues, we realized that the trip was coming to a close and this had been a lot of fun!

Dinner at Mantra was a quiet affair. There was Shah Rukh Khan hamming his way through some song and dance sequences on a big screen and an international crowd that had come in to celebrate New Year. We had a quick dinner as our driver was waiting outside and wanted to get home to his family by 9:30. 

Then he dropped us off at 9 and we were back in the airport. Lima airport is small and it has one VIP lounge. Usually they let only one guest in with my United pass, but given it was New Year's eve, they let the entire family in. We had a decent Wifi connection and an unlimited supply of orange juice and chex mix! 

So the family settled in for the next 3 hours till boarding time. Then we watched the ball drop in NYC on the big screen with spanish commentary and all the agents in the gate area did a little walk for us and we thanked them all for their service.

Next thing you know, 2017 started with a 1AM flight. 

Day 7 in video..

I am glad that Sangeetha pretty much forced me to agree to this trip. Had wanted to laze around and recharge at home during the break, but the wife and kids gave me an ultimatum. We are going somewhere!

It was a lot of fun and I did get to recharge with all the activity. This year, I am not going to fight it and instead join in the plans.

There are a lot more places to see in Peru and package tours within package tours. We might go back again in a few years to see the Nasca lines, the jungle tours and see more excavated sites in the high mountains.

Peru Day 6 - Lake Titicaca

The little one saw me editing this and said "Seriously, we went to Peru between Christmas and New Years! and you are still not done with this?"

The short answer is yes. It takes time to go through a 1000 photos, select a few, edit them, post them etc. The good thing is I am disciplined enough to do it. The bad thing is that things like work, dentist appointments three days in a row, jet lag etc. come in the way. 

Day 5 post is here..

If Machupicchu was the first highlight of the Peru trip, Lake Titicaca was the second highlight. At 7000 feet above sea level, a navigable lake, with floating islands of reed and villages built with reed and a tribe that has been living like this for thousands of years!

We left early in the morning to reach the dock and went on a boat ride to the Uro villages. There were went on a reed boat ride, followed by demonstrations of how the islands are built, how the people live etc. They did not welcome visitors till recently and now they have solar power and their kids are going to school. Soon this way of life as we see it might be over. Technology is leveling everything! 

The reed villagers were very nice and hospitable. Their kids were adorable! 

There are lots of pictures that capture this experience. Here they are in a slideshow.

Then we had a long ride on the boat to Isla de Tequile, which is one of the larger islands in the middle of the lake. We started on one side of the island, went on a steep and long hike to the top to have a lunch to remember facing the lake.

This island was relatively empty except for our group. The locals were not around trying to sell us stuff like we were used to over the last 5 days. It was quiet, just us and the scenery.

Then it was another long hike to the other side of the island through the church and square. It was a hot day with perfect views. We got a few family portraits on the island..

Another slide show with views from Isla de Tequile and lake Titicaca

 

Finally we walked back to the boat. They have built a beautiful dock on one side with amazing views of the lake. We got to goof around there for a good 30 minutes before the return journey to Puno.

Puno has a nice plaza with lots of restaurants. We found one where the owner was nice and we got custom vegetarian food. 

A slideshow with only the HDR shots. If you go to Peru, do not miss this! Something you don't see everyday!

Our day 6 in video!

At this point our trip was pretty much done and we were packing our bags that night. We had to make our way from Puno to Juliaca airport the next morning, fly to Lima, spend 10 hours in the Lima airport and board shortly after the ball dropped in Times Square..

Little did we know that our plans were subject to change for day 7!

As promised to the little one, I will post day7 later tonight..