Issues getting SIMA to recognize OpenCV

35 views
Skip to first unread message

Matthew Shtrahman

unread,
Mar 12, 2016, 12:15:00 AM3/12/16
to sima-users

I recently installed SIMA on Mac OS 10.10.3 as well as all the prerequisites including OpenCV @3.1.0_1 using macports as recommended in the installation instructions. I figured that I would start by working through with the "Complete Example" workflow.py on Tutorial page and I am consistently getting errors when I run the segmentation routines. Specifically:

>>> dataset.segment(segmentation_approach, 'auto_ROIs')

File "/Users/mshtrahman/Library/Python/2.7/lib/python/site-packages/sima/segment/ca1pc.py", line 109, in _clahe
   raise ImportError('OpenCV >= 2.4.8 required')
ImportError: OpenCV >= 2.4.8 required

I installed and reinstalled OpenCV several times as well as installed the legacy version OpenCV 2.4.9 from source code, with no success. Any suggestions or advice you might have would be greatly appreciated.

Thanks,

Matt

Patrick Kaifosh

unread,
Mar 20, 2016, 7:39:48 PM3/20/16
to sima-...@googlegroups.com
Hi Matt,

I think SIMA may require OpenCV version 2.* i.e. not version 3.*

Hope that helps,
Patrick

Matthew Shtrahman wrote:
>
> I recently installed SIMA on Mac OS 10.10.3 as well as all the
> prerequisites including OpenCV @3.1.0_1 using macports as recommended
> in the installation instructions. I figured that I would start by
> working through with the "Complete Example" workflow.py on Tutorial
> page <http://www.losonczylab.org/sima/1.3/tutorial.html> and I am
> consistently getting errors when I run the segmentation routines.
> Specifically:
>
> >>> dataset.segment(segmentation_approach, 'auto_ROIs')
>
> *File
> "/Users/mshtrahman/Library/Python/2.7/lib/python/site-packages/sima/segment/ca1pc.py",
> line 109, in _clahe
> raise ImportError('OpenCV >= 2.4.8 required')
> ImportError: OpenCV >= 2.4.8 required
> *
> I installed and reinstalled OpenCV several times as well as installed
> the legacy version OpenCV 2.4.9 from source code, with no success. Any
> suggestions or advice you might have would be greatly appreciated.
>
> Thanks,
>
> Matt
> --
> You received this message because you are subscribed to the Google
> Groups "sima-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sima-users+...@googlegroups.com
> <mailto:sima-users+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sima-users/f51f63e5-ff74-4bcd-a608-a60d7bc42ad3%40googlegroups.com
> <https://groups.google.com/d/msgid/sima-users/f51f63e5-ff74-4bcd-a608-a60d7bc42ad3%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages