Skip to content

Instantly share code, notes, and snippets.

View jayeshmann's full-sized avatar
💲
Converting time into money.

Jayesh Mann jayeshmann

💲
Converting time into money.
  • India
View GitHub Profile
@jayeshmann
jayeshmann / .rubocop.yml
Last active August 17, 2022 04:29
Rubocop configuration with RSpec
require: rubocop-rspec
AllCops:
NewCops: enable
StyleGuideBaseURL: https://rubystyle.guide
Style/FrozenStringLiteralComment:
Enabled: false
Style/Documentation:
Enabled: false
#!/usr/bin/env python
import math
import sys
from moviepy.editor import AudioClip, VideoFileClip, concatenate_videoclips
# Get average RGB of part of a frame. Frame is H * W * 3 (rgb)
# Assumes x1 < x2, y1 < y2
@berndverst
berndverst / hackcbs-workshop.md
Last active December 23, 2022 07:53
hackCBS 2.0: Using Azure + AI to detect Emotion

hackCBS 2.0: Using Azure + AI to detect Emotion

This Hackathon is designed for beginners. No prior experience is necessary.

Azure provides powerful AI tools, wrapped up in APIs that you can use from your apps to add intelligence without being an AI expert. In this hands-on workshop you will build a Python app that takes advantage of one of these APIs to detect emotions in faces, alerting you if you have a sad face too often. This app will be in two parts, one part that runs on the desktop and takes photos, and another that runs in the cloud to analyse photos and store the emotions detected.

Required resources

  • Python 3.7 runtime (not the latest 3.8 as not all required libraries are available yet). We recommend Python 3.7.4 for this workshop. Download
  • Microsoft Azure Account (Azure Portal)
  • Don't have one? Sign up for [Azure for Students](https://azure.mic