ios_logger icon indicating copy to clipboard operation
ios_logger copied to clipboard

Camera Setting Issue

Open pmd2245 opened this issue 5 years ago • 5 comments

Hello Varvrar,

First of all thanks a lot for the job you have done. I managed to run your app on my iPhone X and everything works well. Nevertheless, I have some trouble regarding the camera settings. The camera is not focusing properly leading to blurred images. Moreover, is there a way to tune the camera parameters (resolution, etc.) ?

Thanks, Pm

pmd2245 avatar Mar 27 '19 15:03 pmd2245

Hello pm!

  1. Yes, autofocus manually disabled. Reason of doing this is that in many cases we should know camera calibration parameters, but with autofocusing focal length changes. You can set fixed focal distance with changing parameter lensPosition to get sharp images at some certain distance [0,1] -> [near, infinite]. Or you can comment/delete this line: https://github.com/Varvrar/ios_logger/blob/master/ios_logger/ViewController.mm#L81 to enable autofocus back.

  2. Yes you can change resolution by changing AVCaptureSessionPreset: https://github.com/Varvrar/ios_logger/blob/master/ios_logger/ViewController.mm#L56 And you can change any camera parameter that Apple's AVFoundation allows to change. I used this framework to work with camera.

Varvrar avatar Mar 27 '19 19:03 Varvrar

Hello I am doing academic research using this repository. I made the above changes, but no difference.

I want to shoot with the zoom of the camera as it was originally. But why do you feel the camera in this repository app is zoomed strangely? Is it possible to change it?

Shotaro-N avatar Oct 16 '19 06:10 Shotaro-N

I was able to solve it on my own. UI device settings were wrong.

Thanks

Shotaro-N avatar Oct 16 '19 07:10 Shotaro-N

@Shotaro-N I have the same problem (zoom of the camera). Can you tell me what did you modify?

Kuan-Wei-Tseng avatar Nov 10 '19 09:11 Kuan-Wei-Tseng

@KuanWei-Tseng In Xcode, it should match the device used. Check the storyboad.

Shotaro-N avatar Nov 10 '19 09:11 Shotaro-N