This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | FROM python:3.9 | |
| WORKDIR /sentimentApi | |
| # | |
| COPY ./app/requirements.txt /sentimentApi/requirements.txt | |
| # | |
| RUN pip install --no-cache-dir --upgrade -r /sentimentApi/requirements.txt | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | FROM python:3.9 | |
| WORKDIR /sentimentApi | |
| # | |
| COPY ./app/requirements.txt /sentimentApi/requirements.txt | |
| # | |
| RUN pip install --no-cache-dir --upgrade -r /sentimentApi/requirements.txt | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import numpy as np | |
| import argparse | |
| import glob | |
| import cv2 | |
| def auto_canny(image, sigma=0.33): | |
| v = np.median(image) | |
| lower = int(max(0, (1.0 - sigma) * v)) | |
| upper = int(min(255, (1.0 + sigma) *v)) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import cv2 | |
| import numpy as np | |
| cap = cv2.VideoCapture('cafe.mp4') | |
| if (cap.isOpened() == False): | |
| print("Error opening Video stream or file") | |
| fgbg = cv2.createBackgroundSubtractorMOG2( |