# Cognex Camera Images

**URL:** <https://forum.inductiveautomation.com/t/cognex-camera-images/22333>\
**Category:** General Discussion\
**Created:** [February 4, 2019, 9:16pm UTC](https://forum.inductiveautomation.com/t/cognex-camera-images/22333 "2019-02-04T21:16:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jesse.stalman](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@jesse.stalman](https://forum.inductiveautomation.com/u/jesse.stalman)\
**Post date:** [February 4, 2019, 9:16pm UTC](https://forum.inductiveautomation.com/t/cognex-camera-images/22333/1 "2019-02-04T21:16:07Z")

</div>

I have been given the challenge to display the passed or failed image from a Cognex insight 2000 camera inspection in my ignition project. Has anybody successfully done this before? It seems I can output an.SVG or JPG to a folder, is it possible to have ignition refresh and read that image?

---

<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:** [February 4, 2019, 9:44pm UTC](https://forum.inductiveautomation.com/t/cognex-camera-images/22333/2 "2019-02-04T21:44:23Z")

</div>

That trail has been blazed...

> [@Cognex SVG Issues](http://forum.inductiveautomation.com/t/cognex-svg-issues/19778):
>
> So after several days of troubleshooting with tech support, Ignition has determined there is an issue with the web browser module loading a svg file. Basically, the cache continues to build with each image and eventually the client freezes. Even with using a taskkill script for the chromium browser, eventually it completely freezes the client. With that being said, I’ve seen several topics on Cognex and I’m wondering if anyone has been able to load images from the camera continuously without …

---

<div class="post-metadata">

**Author:** ![c.bertulli](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@c.bertulli](https://forum.inductiveautomation.com/u/c.bertulli)\
**Post date:** [February 6, 2019, 3:14pm UTC](https://forum.inductiveautomation.com/t/cognex-camera-images/22333/3 "2019-02-06T15:14:29Z")

</div>

I’ve done it with a Cognex Dataman 400.  
Inside the Cognex Camera Tool you can set up where to save passed / failed images ( for my camera there is no way to save images automatically to local PC, but only to an FTP server ).  
Then I take the image’s path and display it with an image component. Or you can use a canvas.  
For displaying the image you can, check with a os.listdir() if your images folder has increased size, if yes, take the last images path, write it to a tag then bind the ImagePath property to that tag

---

<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:** [February 6, 2019, 3:15pm UTC](https://forum.inductiveautomation.com/t/cognex-camera-images/22333/4 "2019-02-06T15:15:46Z")

</div>

With the Batik SVG module, you get both the overlay and the image.

---

<div class="post-metadata">

**Author:** ![cognex\_information](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@cognex\_information](https://forum.inductiveautomation.com/u/cognex_information)\
**Post date:** [September 16, 2019, 3:17pm UTC](https://forum.inductiveautomation.com/t/cognex-camera-images/22333/5 "2019-09-16T15:17:14Z")

</div>

Hi @jesse.stalman for future reference, documents like this can be found in [the MyCognex portal](https://support.cognex.com/en/Home/login) for customers.You can register products, download manuals, get support documentation, and contact our support team. Happy to see you’ve already solved this though!
