Skip to content

Commit

Permalink
Merge pull request #2189 from Wovchena/gesture_recognition-multiproce…
Browse files Browse the repository at this point in the history
…ssing-workaround-for-mac

gesture_recognition: workaround multiprocessing for mac
  • Loading branch information
Roman Donchenko authored Mar 11, 2021
2 parents 9431195 + 787121f commit c70800f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import time
import json
import os
import multiprocessing
from argparse import ArgumentParser, SUPPRESS

import cv2
Expand Down Expand Up @@ -251,4 +252,7 @@ def main():


if __name__ == '__main__':
# https://github.com/opencv/opencv/issues/5150#issuecomment-197413178
# https://github.com/opencv/opencv/issues/5150#issuecomment-197540235
multiprocessing.set_start_method('spawn')
sys.exit(main() or 0)
2 changes: 1 addition & 1 deletion demos/tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,5 @@ def option_to_args(key, value):

sys.exit(0 if num_failures == 0 else 1)

if __name__ == main():
if __name__ == '__main__':
main()

0 comments on commit c70800f

Please sign in to comment.