News for hackers. Stuff that matters.
Re:About Bokeh by StillBored on Friday December 20, 2019 @01:57PM (#21846523)
And its all done in software (or ML) with recent phones to get around the lack of a good lenses system. And for most people it seems to work satisfactorily.

This has been one of the complaints against camera manufactures recently, that the firmware on the cameras is wildly archaic.

Re:About Bokeh by penagwin on Friday December 20, 2019 @02:32PM (#21846745)
If we're talking about non-point and shoot cameras, such as DSLRs or Mirrorless Cameras that cost $500+ such as my Sony A6000, I absolutely DO NOT want post-processing done on my camera.

Portrait mode on my iPhone 7+ looks okay at a glance, but thinks like hair, wires, and twigs are TERRIBLE on closer inspection.

Not to say the software couldn't be improved. For example, after taking a 20 second exposure, I have to wait another ~15 seconds before I can take another photo. I'd love for that processing time to be cut down.

Re:About Bokeh by jiberius on Friday December 20, 2019 @03:20PM (#21847071)
The delay after taking long exposures is caused by the camera taking a dark frame with the same exposure length as your actual image. When you take a long exposure, the sensor can exhibit noise caused by "hot pixels". The dark frame is taken with the shutter closed so that the camera can get an image of just the hot pixel noise, which it then subtracts from your actual long exposure.

You can turn this off in the settings, but I imagine it's way easier for the camera to correct for this specific kind of noise than for Lightroom to do so.

I believe it kicks in once the exposure length is >2" on my Sony A7ii.

Re:About Bokeh by tpolzer on Friday December 20, 2019 @03:47PM (#21847261)
On the one hand that's correct. On the other hand you could completely avoid that if you did long exposures the way a Google Pixel (2+ I think) does it (in software):

Take lots of short exposures and fuse them. If the device is handheld you get variability in positioning for free, if it's on a tripod, it will automatically wiggle the OIS slightly to achieve the same effect.

Re:About Bokeh by anamexis on Friday December 20, 2019 @05:13PM (#21847847)
It seems like movement would be effective for averaging out random noise, but the described process isn’t for eliminating random noise, it’s for eliminating persistent hotter pixels on the sensor.
Re:About Bokeh by IneffablePigeon on Friday December 20, 2019 @06:08PM (#21848190)
Indeed, and in fact the pixel does exactly the same dark frame trick to identify hot pixels. I don't know that it takes as long though - perhaps it's hidden by the fact you can keep doing other things while the photo is processing.
Re:About Bokeh by tpolzer on Friday December 20, 2019 @06:11PM (#21848205)
It cannot do the same thing as an a6000, as it lacks a physical shutter.
Re:About Bokeh by scrumbledober on Friday December 20, 2019 @03:33PM (#21847165)
That's great information and makes me much less frustrated with my slow a6000.
Re:About Bokeh by throwanem on Friday December 20, 2019 @04:38PM (#21847587)
You can also try turning off long exposure NR in the menus. I don't know if it makes enough of a difference on the a6000 to be worth leaving enabled and paying the extra cost in time, but that's a way to find out.
Re:About Bokeh by penagwin on Saturday December 21, 2019 @02:20PM (#21852838)
Oh thanks for letting me know! I have an A6000, so that makes sense!
Re:About Bokeh by unicornporn on Friday December 20, 2019 @03:44PM (#21847236)
> Portrait mode on my iPhone 7+ looks okay at a glance, but thinks like hair, wires, and twigs are TERRIBLE on closer inspection.

Portrait mode on any phone looks crap. I have not yet seen a picture where fake shallow DOF does not fail and look crap.

Re:About Bokeh by geerlingguy on Friday December 20, 2019 @04:02PM (#21847359)
If you have solid edges (e.g. hair pulled back or bald), and a fairly smooth background already... it looks acceptable.

But it's not a substitute for a really nice lens and sensor combo. Maybe someday.

I just wish the DSLR/mirrorless manufactuers would invest more in making their RAW files more intelligent. I don't want 'portrait mode' but I do want to be able to focus stack in one image (with originals preserved), do true adjustable HDR (combining exposures), etc.

Sony and Nikon have a couple hint at these capabilities, but the software is not easy to use, and don't get me started on moving pictures between camera bodies and wherever they need to be to do things with them (laptop, iPad, phone).

Re:About Bokeh by thamer on Friday December 20, 2019 @04:28PM (#21847515)
These improvements to bokeh on the Pixel 4 and Pixel 4 XL show some pretty good results: https://ai.googleblog.com/2019/12/improvements-to-portrait-m...
Re:About Bokeh by unicornporn on Friday December 20, 2019 @04:46PM (#21847642)
Impossible to say because sample[1] is highly compressed and 800 pixels high (including a white border).

[1] https://1.bp.blogspot.com/-3Sm2XHss0lA/XffZ95s_KjI/AAAAAAAAF...

Re:About Bokeh by erkserkserks on Friday December 20, 2019 @08:39PM (#21848991)
Here’s the full size album: https://photos.app.goo.gl/cwaKemRDusTK5W6SA
Re:About Bokeh by unicornporn on Saturday December 21, 2019 @06:50AM (#21850864)
Still not full-res and unfortunately the first two samples[1] I opened shows that it's still crap and can't handle fine detail/hair. Many people have hair.

[1] https://imgur.com/a/MXCeYaU

Re:About Bokeh by lame-robot-hoax on Friday December 20, 2019 @02:45PM (#21846830)
I mean, you are using an iPhone 7, iirc that’s the first iPhone to implement portrait mode. The processing time on my iPhone 11 that I just got is minimal. I upgraded from an iPhone 6S so I’m not sure what the processing time was like on iPhones with portrait mode prior to the 11 models though.

As well, who’s to say what Apple could do when given an image from a high end camera sensor instead of the tiny one in an iPhone?

And lastly, why not just enable power users to turn it off? Sure you can say manpower would be better directed at other problems, but who cares if post processing capabilities are on the camera if you can turn it off? Those who want it use it. Those who don’t don’t.

Re:About Bokeh by throwanem on Friday December 20, 2019 @04:41PM (#21847605)
> who’s to say what Apple could do when given an image from a high end camera sensor instead of the tiny one in an iPhone?

Ruin it. But they wouldn't, because there'd be no need.

The thing about a big high-end camera sensor is that having one means you don't need to fake bokeh. You can put a good fast prime lens in front of it and get the real thing. Phone cameras have to post-process their way to it because the physics of their small sensors mean they simply aren't capable of capturing enough off-axis light to produce true bokeh.

Re:About Bokeh by krzyk on Friday December 20, 2019 @03:47PM (#21847257)
My wife has iPhone 8, I can't find portrait mode on it (I'm coming from Pixel 3 so I was wondering how it looks on iPhones).

When I scroll the photo modes there is no such thing as "portrait".

Or maybe it is only for the Plus models with two cameras?

Re:About Bokeh by zakki on Friday December 20, 2019 @05:32PM (#21847960)
Yeah, it is on plus model including animoji
Re:About Bokeh by rolltiide on Friday December 20, 2019 @02:47PM (#21846851)
> I'd love for that processing time to be cut down.

yeah its called an iPhone 11 PRO

Re:About Bokeh by mcny on Friday December 20, 2019 @02:53PM (#21846893)
Re:About Bokeh by rolltiide on Friday December 20, 2019 @04:32PM (#21847545)
faster than a 7+
Re:About Bokeh by behringer on Friday December 20, 2019 @02:11PM (#21846617)
As a photographer I really don't ever want to use the camera software. Even when it's perfect for my application, I want RAW photographs because you have to fix so many other things before you ever get to special effects.

You need to crop, color correct, distortion correct, noise correct, exposure correct. Only after that would you ever really want to apply some kind of bokeh filter.

The entire reason to use a high end camera is to do it right. Camera software is never going to do it right until they start putting photoshop on cameras.

Re:About Bokeh by droitbutch on Friday December 20, 2019 @02:33PM (#21846749)
> You need to crop, color correct, distortion correct, noise correct, exposure correct. Only after that would you ever really want to apply some kind of bokeh filter.

Modern phones already do all that - and seemingly in that order.

As a photographer, what I find lacking are the lenses. You can only squeeze so much light from the relatively tiny lenses. Perfect recent example was kids Christmas play. Sitting back 25+ meters, with somewhat dim lighting and fast moving kids, I could see the other parents with their smartphones and tablets getting very poor photo's and vids - whereas my Nikon had zoom galore and excellent clear focus.

Physics matters.

Re:About Bokeh by behringer on Friday December 20, 2019 @05:23PM (#21847905)
I've never seen any phone get even half as good results as any DLSR released this decade. Just because the phone software can do it doesn't mean it's any good. I mean my phone has photoshop on it. That's pretty good, but nothing beats a proper suite of tools on a color calibrated monitor.
Re:About Bokeh by asdfasgasdgasdg on Friday December 20, 2019 @03:29PM (#21847134)
Modern phones do not automatically crop, to my knowledge. They do attempt to color correct, but they don't always get the correct colors. (There needs to be a reference to infer the appropriate white balance, and such is not always available.)
Re:About Bokeh by mchristen on Friday December 20, 2019 @02:21PM (#21846688)
It's not the software that holds back phone cameras. It's the literal size and shape of the sensors and lens.

You can already shoot RAW on a phone, but putting Photoshop on the phone won't solve the lack of depth of field inherent to the lens and sensor setup.

Re:About Bokeh by jfengel on Friday December 20, 2019 @02:45PM (#21846833)
Does the RAW format save the kind of information that the software uses to guess at bokeh (depth sensors, multiple lenses, multiple shots, defocused pixels)? Or is there some other format that could save all that info, so you could really use the phone but do the processing later?
Re:About Bokeh by linuxdude314 on Friday December 20, 2019 @03:53PM (#21847300)
There’s no, but there isn’t really a need. The R package mentioned in a comment in this thread achieves a similar effect using no additional data.

Ray tracing will suffice!

Re:About Bokeh by BubRoss on Friday December 20, 2019 @04:48PM (#21847658)
It shows a hand made depth map. You can't just 'raytrace' a 2D image and magically add depth of field.
Re:About Bokeh by gnopgnip on Friday December 20, 2019 @02:28PM (#21846727)
You can shoot in raw on most high end smartphones now if you want to do handle that after the fact, but the default used by the camera software does all of that
Re:About Bokeh by bufferoverflow on Friday December 20, 2019 @01:59PM (#21846541)
It works horribly with hair and sharp edges even on the flagship phones.

Plus it can't possibly work correctly with transparent and semi-transparent objects like glass.

Re:About Bokeh by distances on Friday December 20, 2019 @02:52PM (#21846885)
My main complaint isn't that it doesn't work through glasses, but rather that it can't handle the frames at all. They are always blurred if the photo isn't taken from directly in front. It's a bit surprising as so many people use glasses -- a third, maybe? One could think that to be a major use case.
Re:About Bokeh by __jal on Friday December 20, 2019 @04:05PM (#21847373)
> And for most people it seems to work satisfactorily

Most people apparently don't look at their pictures.

The "enhanced" photos I've gotten from the Iphone for the last few models have just been getting worse. They look OK if you don't look too closely, but then they're just wrong. Blurry details on the same focal plane as crisp ones, crappy details with translucency, hair or anything else that confuses the "foreground/background" detector, they're just bad.

My DLSR will be in service for quite a while longer.

Re:About Bokeh by alistairSH on Friday December 20, 2019 @07:35PM (#21848681)
Same experience here. My guess is most people view their photos on their phones, via Instagram or Facebook. Rarely are photos looked at in full size on a high quality monitor.

I have no intention of giving up my Olympus mirrorless system. I'll probably add at least one more lens to my collection next year - I've been relying on my 12-40 f2.8 for portraits, but I'm liking what I've read about the Sigma 56 f1.4.

Re:About Bokeh by month13 on Friday December 20, 2019 @11:44PM (#21849673)
The watercolour effect from the de-noiser in iOS results in watercolour-esque patterns in the final image, and washes away most of the fine detail at 1:1.

FWIW, I have an iPhone X. The watercolour trend started around the iPhone 5s, IIRC.

Re:About Bokeh by endorphone on Friday December 20, 2019 @02:16PM (#21846657)
"the lack of a good lenses system"

This is very much a subjective interpretation and I don't mean to be picking at nits, however most smartphones have tremendous lens systems. They just happen to have a short focal length (e.g. 1.54mm, 4.25mm and 6mm on the iPhone 11). Depth of field is primarily a function of focal length, and the smaller the focal length the larger the depth of field. Which is why portrait photographers often use zoom lenses.

In the real world though 99% of the time what people are aiming for is simply sharp photos where the subject is in focus. That small focal length makes that much, much more likely, yielding a dramatically higher percentage of "keeper" photos. Shallow depth of field photos are a gimmick in most cases.

Re:About Bokeh by throwanem on Friday December 20, 2019 @04:37PM (#21847579)
No, it hasn't. This comes up every time someone on HN mentions anything to do with photography - mostly, it seems, from people who don't do a lot of photography or at the very least aren't closely familiar with interchangeable-lens cameras - and it never stops being nonsense.

There are plenty of things that could be improved about DSLR and mirrorless cameras, in the firmware and out of it. The number of those things which are in any way related to, or could be in any way improved by, the idea of jamming a smartphone into an interchangeable-lens camera, is zero.

(In case anyone's inclined to question my own chops: that's fair, considering my line of argument. I don't post much of my work lately, but here's my best shot of 2019, taken from a distance of six inches with a Nikon D500 and a 105mm macro lens: https://aaron-m.com/wp-content/uploads/2019/07/DSC_9393.jpg - so you can look at that and judge for yourself whether I'm qualified to speak to the question of how familiarity with interchangeable-lens cameras influences the perceived value of junking up their UI with a lot of smartphone garbage.)

Re:About Bokeh by volkk on Friday December 20, 2019 @02:00PM (#21846548)
im curious to see how good it will get in like 5-10 years because right now, to a mildly trained eye its very noticeably bad
Re:About Bokeh by gerbilly on Friday December 20, 2019 @03:14PM (#21847042)
Ugh, most people probably eat fast food three times a week too.