Code Snippets Tcsh

Short texts Tcsh 🧑‍💻 Code snippets Tcsh ✍️ Reading lists Tcsh 👀

emotion-recognition

# Default ignored files /shelf/ /workspace.xml import cv2 import numpy as np from PIL import Image import os #import pandas as pd #import json as js arr=[‘anger’,’happy’,’neutral’,’sad’,’surprise’] length = len(arr) cv2.CascadeClassifier(cv2.data.haarcascades + ‘haarcascade_frontalface_default.xml’) # #STORING IMAGES OF THIER RESPECTIVE EMOTION IN DATASET # # with open(‘/Users/pruthvirajdudam/Downloads/facial_expressions-master/surprise.txt’,’r’) as f: # img = [line.strip() for line in […]

back_end_venv_bin_activate.csh

# Default ignored files /shelf/ /workspace.xml 1621450591626 1621450591626 from django.contrib import admin from django.contrib.flatpages.admin import FlatPageAdmin from django.contrib.flatpages.models import FlatPage from django.utils.translation import gettext_lazy as _ # Define a new FlatPageAdmin class FlatPageAdmin(FlatPageAdmin): fieldsets = ( (None, {‘fields’: (‘url’, ‘title’, ‘content’, ‘sites’)}), (_(‘Advanced options’), { ‘classes’: (‘collapse’,), ‘fields’: ( ‘enable_comments’, ‘registration_required’, ‘template_name’, ), }), ) […]

Aqua_Game

# Default ignored files /shelf/ /workspace.xml Animal.py 1620043752945 1620043752945 MAX_ANIMAL_HEIGHT = 8 MAX_ANIMAL_WIDTH = 8 STARTING_FOOD = 5 MAX_AGE = 120 class Animal: def __init__(self, name, age, x, y, directionH): self.alive = True self.width = MAX_ANIMAL_WIDTH self.height = MAX_ANIMAL_HEIGHT self.food = STARTING_FOOD self.name = name self.age = age self.x = x self.y = y self.directionH […]