Commit c4492917 authored by Diego André Sant'Ana's avatar Diego André Sant'Ana 🤞
Browse files

Merge branch 'weka_fix' into 'master'

Weka fix

See merge request inovisao/pynovisao!21
parents 365f0bf0 0f59e8a7
......@@ -195,7 +195,7 @@ class WekaAlias(object):
aliases = [a.upper() for a in _weka_alias]
if alias in aliases:
return _weka_alias.values()[ aliases.index(alias) ]
return list(_weka_alias.values())[ aliases.index(alias) ]
raise IException('Invalid classifier')
......
......@@ -23,8 +23,8 @@ from util.config import Config
from util.file_utils import File
from util.utils import TimeUtils
from weka_alias import WekaAlias
from classifier import Classifier
from .weka_alias import WekaAlias
from classification.classifier import Classifier
class WekaClassifiers(Classifier):
......
......@@ -178,7 +178,7 @@ class SkimageSegmenter(object):
if SkimageSegmenter.FORCE_OPT == False:
colored_image = cv2.addWeighted(self._original_image, 0.7, class_color, 0.3, 0)
else:
colored_image = cv2.addWeighted(image, 0.1, class_color, 0.9, 0)
colored_image = cv2.addWeighted(image, 0.7, class_color, 0.3, 0)
colored_image = cv2.bitwise_and(colored_image, colored_image, mask=mask_segment)
# Create a new image keeping the painting only in pixels inside of segments
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment