pydicom / dicom-cleaner

detection of burned in pixels using OCR (under development)
21 stars 4 forks source link

Update/pydicom #8

Closed vsoch closed 5 years ago

vsoch commented 5 years ago

This will update deid and pydicom within the images, and I've tested the pydicom/dicom-header-cleaner. The pydicom/dicom-ocr-cleaner is having an issue with the following bug:

>>> maybe_text = dicom.select_text_among_candidates(saved_model)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "user/__init__.py", line 122, in select_text_among_candidates
    model = cPickle.load(fin)
  File "data/__init__.py", line 29, in <module>
    from sklearn.svm import LinearSVC
  File "/opt/anaconda2/lib/python2.7/site-packages/sklearn/svm/__init__.py", line 13, in <module>
    from .classes import SVC, NuSVC, SVR, NuSVR, OneClassSVM, LinearSVC
  File "/opt/anaconda2/lib/python2.7/site-packages/sklearn/svm/classes.py", line 1, in <module>
    from .base import BaseLibLinear, BaseSVC, BaseLibSVM
  File "/opt/anaconda2/lib/python2.7/site-packages/sklearn/svm/base.py", line 8, in <module>
    from . import libsvm, liblinear
ImportError: /opt/anaconda2/lib/python2.7/site-packages/sklearn/svm/libsvm.so: undefined symbol: __cxa_throw_bad_array_new_length

It unfortunately appears to be another issue with anaconda :/ Usage of this particular ocr container will involve debugging this particular mismatch in gcc and scikit-image. https://github.com/scikit-learn/scikit-learn/issues/7869

vsoch commented 5 years ago

A testing container (for the header repo) is pushed to pydicom/dicom-header-cleaner:dev)