Sanjoy Kumar Biswas

Results 123 issues of Sanjoy Kumar Biswas

When I run the Emotion Detection notebook.py file its through Permission Error Error: ``` (base) ecl@ecl-desktop:~/DBSE-monitor/Emotiondetection$ python3 notebook.py Traceback (most recent call last): File "notebook.py", line 128, in with open(current_dir+'/label',...

``` # import the opencv library import cv2 # define a video capture object vid = cv2.VideoCapture(0) while(True): # Capture the video frame # by frame ret, frame = vid.read()...

``` import cv2 import numpy as np img = cv2.imread("test.png", 0) img = cv2.GaussianBlur(img,(3,3),0) canny = cv2.Canny(img, 50, 150) cv2.imshow('Canny', canny) cv2.waitKey(0) cv2.destroyAllWindows() ```

``` pattern = r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)" str_true = ('[email protected]',) str_false = ('testmail.com', '@testmail.com', 'test@mailcom') for t in str_true: assert(bool(re.match(pattern, t)) == True), '%s is not True' %t for f in str_false: assert(bool(re.match(pattern,...

``` import pandas as pd from matplotlib import pyplot as plt # Read CSV into pandas data = pd.read_csv(r"cars.csv") data.head() df = pd.DataFrame(data) name = df['car'].head(12) price = df['price'].head(12) #...

``` import matplotlib.pyplot as plt import matplotlib.patches as patches from PIL import Image import numpy as np x = np.array(Image.open('geek.png'), dtype=np.uint8) plt.imshow(x) # Create figure and axes fig, ax =...

``` # Import libraries from mpl_toolkits import mplot3d import numpy as np import matplotlib.pyplot as plt # Creating dataset z = np.random.randint(100, size =(50)) x = np.random.randint(80, size =(50)) y...

``` import matplotlib.pyplot as plt import numpy as np fig = plt.figure() a1 = fig.add_axes([0,0,1,1]) x = np.arange(1,11) a1.plot(x,np.exp(x)) a1.set_ylabel('exp') a2 = a1.twinx() a2.plot(x, np.log(x),'ro-') a2.set_ylabel('log') fig.legend(labels = ('exp','log'),loc='upper left')...

``` import matplotlib.pyplot as plt # plot a line, implicitly creating a subplot(111) plt.plot([1,2,3]) # now create a subplot which represents the top plot of a grid with 2 rows...

``` Loading into Pandas DF gam_charge_item_df = pd.read_scv(path) Creating a PySpark dataFrame spark_df = spark.createDataFrame(df) ```