# Camera doesn't autofocus

**URL:** <https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584>\
**Category:** BlueROV2\
**Created:** [December 12, 2016, 11:15am UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584 "2016-12-12T11:15:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ooyama](https://avatars.discourse-cdn.com/v4/letter/o/d6d6ee/32.png) [@ooyama](https://discuss.bluerobotics.com/u/ooyama)\
**Post date:** [December 12, 2016, 11:15am UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/1 "2016-12-12T11:15:53Z")

</div>

Advanced electronics, the video is vague in ardusub, unless it’s very close to the target.

how to fix it? Thank you very much!

---

<div class="post-metadata">

**Author:** ![paul-unterweiser](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/paul-unterweiser/32/697_2.png) [@paul-unterweiser](https://discuss.bluerobotics.com/u/paul-unterweiser)\
**Post date:** [December 12, 2016, 12:08pm UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/2 "2016-12-12T12:08:38Z")

</div>

The lens can be adjusted if the focus isn’t correct by loosening the set screw and twisting the lens.

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [December 12, 2016, 12:09pm UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/3 "2016-12-12T12:09:03Z")

</div>

Hi Ooyama,

The camera can be refocused by loosening the set screw and rotating the camera lens. It’s possible that it was bumped or unfocused during assembly. Let me know if that helps!

-Rusty

---

<div class="post-metadata">

**Author:** ![vagelis-chalkiadakis](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/vagelis-chalkiadakis/32/830_2.png) [@vagelis-chalkiadakis](https://discuss.bluerobotics.com/u/vagelis-chalkiadakis)\
**Post date:** [December 12, 2016, 9:08pm UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/4 "2016-12-12T21:08:55Z")

</div>

Hi Rusty.

Related to the camera and its lens, for our application, I would like to have a “narrower” field of view.  
Would it help to remove the provided wide-angle lens and work without it?  
Is there any reason for not to remove this lens? Would it be difficult to put it back again?

Thanks,  
Vagelis

---

<div class="post-metadata">

**Author:** ![paul-unterweiser](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/paul-unterweiser/32/697_2.png) [@paul-unterweiser](https://discuss.bluerobotics.com/u/paul-unterweiser)\
**Post date:** [December 12, 2016, 10:09pm UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/5 "2016-12-12T22:09:27Z")

</div>

\>Would it help to remove the provided wide-angle lens and work without it?

Removing the wide angle lens wouldn’t accomplish what you want, but you might be able to find a narrower angle lens replacement.  
\>Would it be difficult to put it back again?

Not really. It’s simply threaded into the lens holder.

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [December 13, 2016, 2:48am UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/6 "2016-12-13T02:48:13Z")

</div>

@Vagelis - This is the Raspberry Pi v2 Camera, which normally has a field of view around 60 deg. We remove the original lens and add a new lens holder and lens. If you want a narrow field of view, I would recommend replacing your camera with a new Raspberry Pi v2 Camera without any modifications.

Here’s the official page for that camera where you can find a distributor near you: [Buy a Raspberry Pi Camera Module 2 – Raspberry Pi](https://www.raspberrypi.org/products/camera-module-v2/)

I hope that helps!

-Rusty

---

<div class="post-metadata">

**Author:** ![vagelis-chalkiadakis](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/vagelis-chalkiadakis/32/830_2.png) [@vagelis-chalkiadakis](https://discuss.bluerobotics.com/u/vagelis-chalkiadakis)\
**Post date:** [December 13, 2016, 2:53am UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/7 "2016-12-13T02:53:07Z")

</div>

Thanks Rusty.  
I already own PI cameras.  
I will give them a try and post the results.

---

<div class="post-metadata">

**Author:** ![ooyama](https://avatars.discourse-cdn.com/v4/letter/o/d6d6ee/32.png) [@ooyama](https://discuss.bluerobotics.com/u/ooyama)\
**Post date:** [December 15, 2016, 9:45pm UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/8 "2016-12-15T21:45:52Z")

</div>

@Rusty Thank you for help, the focusing looks better now, one more question, I saw the bitrate of QGC is quite high which is about 8M/s, but the video displayed is like 360p, I can merely tell a milk box brand 2 meters away. Is there any way to improve it?

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [December 16, 2016, 3:22am UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/9 "2016-12-16T03:22:54Z")

</div>

@ooyama - The default resolution is set up for 1640x922 pixels. Can you post a screenshot to see what it looks like?

---

<div class="post-metadata">

**Author:** ![ooyama](https://avatars.discourse-cdn.com/v4/letter/o/d6d6ee/32.png) [@ooyama](https://discuss.bluerobotics.com/u/ooyama)\
**Post date:** [December 16, 2016, 11:26am UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/10 "2016-12-16T11:26:43Z")

</div>

Yes, here is the image took by phone and screenshot

 ![](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/1X/0f4b2b457e8f9b4f0fc92f442cd7612c491daa49.jpg)  

 ![](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/1X/0e0027dd2554cf5e66f5cd3521738a376d921782.png)

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [December 18, 2016, 3:52am UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/11 "2016-12-18T03:52:15Z")

</div>

@ooyama - Thanks for the comparison images. The cell phone image is much higher resolution (4608x3456 versus 1284x709) but it also looks like the BlueROV2 image is slightly out of focus as well.

Can you try adjusting the focus slightly by loosening the lens screw and adjusting the lens slightly.

-Rusty

---

<div class="post-metadata">

**Author:** ![ooyama](https://avatars.discourse-cdn.com/v4/letter/o/d6d6ee/32.png) [@ooyama](https://discuss.bluerobotics.com/u/ooyama)\
**Post date:** [December 24, 2016, 7:14pm UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/12 "2016-12-24T19:14:38Z")

</div>

@Rusty - Thank you very much and merry x’mas. I adjusted the focus again, and here is a screenshot I took from balcony.Why is the upper and bottom part of screen looks vague?  
Thank you for your help again and happy new year.

Best regards,  
ooyama

 ![](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/1X/e7f5af8f44edfa491620b03cee06fd87550bdfc3.png)

---

<div class="post-metadata">

**Author:** ![tciii](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/tciii/32/673_2.png) [@tciii](https://discuss.bluerobotics.com/u/tciii)\
**Post date:** [December 25, 2016, 1:35am UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/13 "2016-12-25T01:35:17Z")

</div>

Hi Rusty,

When your techs set the focus of the camera, do they do it though the curved End Cap or in open air as my camera seems to be a little soft in the focus in open air?

Regards,

TCIII AVD

---

<div class="post-metadata">

**Author:** ![ooyama](https://avatars.discourse-cdn.com/v4/letter/o/d6d6ee/32.png) [@ooyama](https://discuss.bluerobotics.com/u/ooyama)\
**Post date:** [December 25, 2016, 11:00am UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/14 "2016-12-25T11:00:59Z")

</div>

Hi TCIII,

Is your rov focusing like mine? I just want to know if the vague is common, thank you very much!

Best regards,

ooyama

&nbsp;

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [December 27, 2016, 12:16pm UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/15 "2016-12-27T12:16:45Z")

</div>

@Ooyama - the image from your camera does look particularly blurry at the edges. Most of our cameras do not have that effect. Perhaps the lens the damaged or defective. I’d be happy to send a replacement to see if that fixes the issue. Shoot me an email at [support@bluerobotics.com](mailto:support@bluerobotics.com) if you’d like to do that.

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [December 27, 2016, 12:20pm UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/16 "2016-12-27T12:20:19Z")

</div>

@Tom - We focus the cameras in air with no dome. The dome should not have an effect on focus. We did recently find out that the Raspberry Pi v2 camera changed slightly and the camera is now mounted on a foam pad. That foam seems to expand and contract occasionally and change the focus. We have started removing the foam entirely to avoid that issue.

-Rusty

---

<div class="post-metadata">

**Author:** ![tciii](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/tciii/32/673_2.png) [@tciii](https://discuss.bluerobotics.com/u/tciii)\
**Post date:** [December 27, 2016, 11:15pm UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/17 "2016-12-27T23:15:28Z")

</div>

Hi Rusty,

At what point in time did you start removing the foam?

I bought my RPi camera from BR fairly recently.

Can you provide instructions for removing the foam from cameras that you did not remove the foam from?

Regards,

TCIII AVD

---

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [December 28, 2016, 9:41am UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/18 "2016-12-28T09:41:56Z")

</div>

Tom,

We just started doing that last week. We’ve tested a lot that have the foam and a small percentage seem to go out of focus over time. This doesn’t happen once the camera is better secured.

You can update yours by removing the lens holder, lifting the camera with a razor blade, scraping away the foam, then securing the camera with a small drop of CA or other adhesive.

-Rusty

---

<div class="post-metadata">

**Author:** ![tciii](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/tciii/32/673_2.png) [@tciii](https://discuss.bluerobotics.com/u/tciii)\
**Post date:** [December 28, 2016, 11:02am UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/19 "2016-12-28T11:02:53Z")

</div>

Hi Rusty,

Thanks for the foam removing instructions, much appreciated.

Regards,

Tom C

---

<div class="post-metadata">

**Author:** ![force10windsurf](https://avatars.discourse-cdn.com/v4/letter/f/49beb7/32.png) [@force10windsurf](https://discuss.bluerobotics.com/u/force10windsurf)\
**Post date:** [December 28, 2016, 2:55pm UTC](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584/20 "2016-12-28T14:55:46Z")

</div>

I will as well. I seem to have a focus issue as well. Im still trying to get into the rasberrypi command line in order to access the camera settings. I had some light saturation issues in the bright sunlight.

Thanks Rusty

Heinz

[Next page](https://discuss.bluerobotics.com/t/camera-doesnt-autofocus/584.md?page=2)
