Skip to content

Commit e04437d

Browse files
authored
Merge pull request #41 from supajason/fix-36-issue
Fix issues #36
2 parents 5137d26 + 05fc8de commit e04437d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

custom_components/platerecognizer/image_processing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ def process_image(self, image):
204204
).json()
205205
self._results = response["results"]
206206
self._plates = get_plates(response['results'])
207-
self._orientations = get_orientations(response['results'])
207+
if self._mmc:
208+
self._orientations = get_orientations(response['results'])
208209
self._vehicles = [
209210
{
210211
ATTR_PLATE: r["plate"],

0 commit comments

Comments
 (0)