# Capturing Images by Camera in Perspective Module

**URL:** <https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 24, 2022, 3:03pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602 "2022-10-24T15:03:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Omii](https://avatars.discourse-cdn.com/v4/letter/o/9fc29f/32.png) [@Omii](https://forum.inductiveautomation.com/u/Omii)\
**Post date:** [October 24, 2022, 3:03pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/1 "2022-10-24T15:03:25Z")

</div>

Hello, Can anyone please give me idea to capture images from perspective module.

---

<div class="post-metadata">

**Author:** ![Ryan5227](https://avatars.discourse-cdn.com/v4/letter/r/f0a364/32.png) [@Ryan5227](https://forum.inductiveautomation.com/u/Ryan5227)\
**Post date:** [October 24, 2022, 7:05pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/2 "2022-10-24T19:05:07Z")

</div>

I'm not quite sure what you mean by capture images from the perspective module? I'm assuming you're trying to grab a picture from a mobile devices (tablet, cell phone, etc) and display it within Ignition?

In this case you could find the file path of the newly taken image and have perspective reach out into the directory and pull that path into a shared drive. Using the web dev module you could mount that drive and then display the picture within a perspective session.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 24, 2022, 7:08pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/3 "2022-10-24T19:08:06Z")

</div>

It sounds like they're trying to request that a device take a picture, but Perspective does not allow for this.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 24, 2022, 7:18pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/4 "2022-10-24T19:18:53Z")

</div>

It's up to your mobile device, but sometimes the prompt you get from the file upload component will have an option to directly capture a picture. That's up to your mobile OS, though.

---

<div class="post-metadata">

**Author:** ![calimero100582](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/calimero100582/32/18630_2.png) [@calimero100582](https://forum.inductiveautomation.com/u/calimero100582)\
**Post date:** [October 24, 2022, 7:23pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/5 "2022-10-24T19:23:12Z")

</div>

from my understanding it might be possible using [https://html2canvas.hertzen.com/](https://html2canvas.hertzen.com/)

downside is that you will need to create a module to implement it

---

<div class="post-metadata">

**Author:** ![Omii](https://avatars.discourse-cdn.com/v4/letter/o/9fc29f/32.png) [@Omii](https://forum.inductiveautomation.com/u/Omii)\
**Post date:** [October 25, 2022, 12:44pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/6 "2022-10-25T12:44:12Z")

</div>

Actually, I want to open Camera in Perspective session where they can capture images.

---

<div class="post-metadata">

**Author:** ![Omii](https://avatars.discourse-cdn.com/v4/letter/o/9fc29f/32.png) [@Omii](https://forum.inductiveautomation.com/u/Omii)\
**Post date:** [October 25, 2022, 12:46pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/7 "2022-10-25T12:46:36Z")

</div>

Hello cmallonee, Thanks for your reply, basically I just want to ask can we capture images by camera in perspective.

---

<div class="post-metadata">

**Author:** ![Omii](https://avatars.discourse-cdn.com/v4/letter/o/9fc29f/32.png) [@Omii](https://forum.inductiveautomation.com/u/Omii)\
**Post date:** [October 25, 2022, 12:48pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/8 "2022-10-25T12:48:12Z")

</div>

Hello PGriffith, Can we do it for all devices?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 25, 2022, 12:58pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/9 "2022-10-25T12:58:05Z")

</div>

There is no general support for local camera access in Perspective. Some mobile OS's will offer camera access as part of a file upload form component. That's all there is.

To display the captured (and uploaded image), your app will need to flow to a view with an image component, and that component's source URL will need to point back to the uploaded image. Perspective doesn't natively offer hosting of such images, but the WebDev module can support it, as can my Blob Server module.

Please share more about your application to get better advice.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 25, 2022, 2:36pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/10 "2022-10-25T14:36:28Z")

</div>

In some future version of the mobile app (and the platform, likely) we're planning to have direct camera access. There may also be a future version of Workstation with more access to native device resources.

Until that time, the answer is 'no', you can't guarantee it will _directly_ work for all devices.

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [October 25, 2022, 6:22pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/11 "2022-10-25T18:22:27Z")

</div>

Omii

We (BIJC) have a module that will capture images from internal (front and rear) and USB cameras, but it doesn't play nicely with the designer environment and won't work with the workbench version, so because of this it has not released.

contact us at [module.support@bijc.co.uk](mailto:module.support@bijc.co.uk) and we can see if we can help

---

<div class="post-metadata">

**Author:** ![Omii](https://avatars.discourse-cdn.com/v4/letter/o/9fc29f/32.png) [@Omii](https://forum.inductiveautomation.com/u/Omii)\
**Post date:** [October 28, 2022, 10:31am UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/12 "2022-10-28T10:31:04Z")

</div>

Hi, i am not able to import cv2 in ignition.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 28, 2022, 1:27pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/13 "2022-10-28T13:27:08Z")

</div>

OpenCV's python support/bindings is only for CPython, not Jython. My Image Streamer module uses OpenCV to read and convert RTSP video streams, and as a side benefit, I worked out how to load OpenCV's java support into Ignition for access in jython. You don't use `import cv2`.

Did you install my [Image Streamer](https://forum.inductiveautomation.com/t/automation-professionals-image-streamer-driver-module/29371) module?

---

<div class="post-metadata">

**Author:** ![Omii](https://avatars.discourse-cdn.com/v4/letter/o/9fc29f/32.png) [@Omii](https://forum.inductiveautomation.com/u/Omii)\
**Post date:** [November 1, 2022, 5:47am UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/14 "2022-11-01T05:47:24Z")

</div>

Hello ,

How can we use video player component do display local device camera as live feed?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 1, 2022, 11:36am UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/15 "2022-11-01T11:36:55Z")

</div>

Do you mean local to the machine at the user's browser? You cannot. Perspective doesn't yet implement any local camera functionality. If you mean local to the gateway, then my module can open local cameras by supplying a local device name instead of a URL, per OpenCV's documentation. (I don't test that functionality.)

---

<div class="post-metadata">

**Author:** ![Omii](https://avatars.discourse-cdn.com/v4/letter/o/9fc29f/32.png) [@Omii](https://forum.inductiveautomation.com/u/Omii)\
**Post date:** [November 1, 2022, 2:11pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/16 "2022-11-01T14:11:12Z")

</div>

Yes Local To different different devices and their user's browsers Camera.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 1, 2022, 3:54pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/17 "2022-11-01T15:54:07Z")

</div>

> [@pturmel](#):
>
> You cannot.

So, no. Not currently supported.

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [November 1, 2022, 5:22pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/18 "2022-11-01T17:22:29Z")

</div>

> [@cmallonee](#):
>
> but Perspective does not allow for this.

This goes back to my comment here the other day

If the requirement is just to capture an image and save it, then I know that iPhones will support that with the File Upload component

> [@Barcode / QR Code - doesn't open camera](https://forum.inductiveautomation.com/t/barcode-qr-code-doesnt-open-camera/65780/3):
>
> Unless, on an iPhone On an iPhone it should bring up the camera option when you trigger a file upload. In both the browser and the app

It wont let you interact with the image in real time, but it will let you take the file and do something with it afterwards.

---

<div class="post-metadata">

**Author:** ![Gaurav.Shitole](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gaurav.shitole/32/72050_2.png) [@Gaurav.Shitole](https://forum.inductiveautomation.com/u/Gaurav.Shitole)\
**Post date:** [November 12, 2022, 4:09pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/19 "2022-11-12T16:09:55Z")

</div>

Hello people,

Can't we open a Camera of Tablet when clicked on FileUplaod component? Tablet has Windows OS and it has Camera too.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 12, 2022, 4:17pm UTC](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602/20 "2022-11-12T16:17:44Z")

</div>

Depends on the platform and browser. Known to work on iOS. It isn't anything Perspective is doing, it is entirely under the browser's control.

Capturing photos is expected to be a Perspective feature in the future, but only in Mobile app or in Workstation.

[Next page](https://forum.inductiveautomation.com/t/capturing-images-by-camera-in-perspective-module/65602.md?page=2)
