Is there anyway to access the camera on an iphone?

Basically, I want to use the iPhone camera because it has a really great fps (for the slowmo effect) unlike cameras in androids or built into laptops. Alternatively I could just go get an external camera that has 100-200 fps, but would be nice to use what I have access to. Please correct me if I'm wrong, but I think my issue is that the only way that processing works on an iphone is as processing.js on the internet so the crux of the issue is being able to access the camera from the browser on the phone. If anyone has any insight as to how to get this to happen that would be much appreciated. Particularly if the solution can be applied more generally to cameras in androids or lap tops (or eternal webcams for that matter).

Tagged:

Answers

  • edited November 2015 Answer ✓

    p5.js framework got p5.MediaElement class which should work w/ cams too:
    http://p5js.org/reference/#/p5.MediaElement
    https://developer.Mozilla.org/en-US/docs/Web/API/HTMLMediaElement

    However, p5.js demands the source code be in JavaScript or some other language which transpiles to it.
    So we can't normally use Java to write programs for p5.js as JavaScript Mode (pjs framework) does. :(

  • Direction to p5.js was very helpful, there was a built in js Capture in p5.js which worked like a charm. Cheers mate.

    On a side note your comments on other discussions have helped me a lot over the past year or two while I've been teaching myself processing so thanks for always being super helpful.

  • edited September 2017

    Hi, no need to write source code in JavaScript, you can use iPhone as webcam very easily. All you need to do is to use the tools called EpocCam, WebCamera. And Android users can search for many kinds of such tools on Google Play too. The process of using them is very easy.

Sign In or Register to comment.