Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gesture_recognition: workaround multiprocessing for mac #2189

Merged
merged 1 commit into from
Mar 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()