Skip to main content

2 posts tagged with "python"

View All Tags

Building a Computer Vision Tool for Gymnastics Coaching

· 3 min read
Shaw Innes
Builder of things

GitHub

This project emerged from a common challenge faced by gymnastics coaches: while simple diagrams are often the most effective way to explain complex movements to students, converting video footage into clear, digestible diagrams has traditionally been a manual and time-consuming process.

It started because my partner asked if ChatGPT could create an image sequence of a coaching video to help break things down. By chance ChatGPT actually offered to give me code to do this, which got me wondering how hard pose estimation would be based on an image sequence.

OriginalPose DetectionComposite
frame_004.jpgframe_004_pose.pngframe_004_composite.jpg

'Protecting' python code with Cython and Docker

· 3 min read
Shaw Innes
Builder of things

Security Through Obscurity

GitHub

I was looking for a method to distribute some proprietary code to 3rd parties with some level of IP protection. Knowing that this is a losing battle, and that I suspected that it was more about limiting curiosity rather than deliberate reverse engineering, I decided to investigate the use of cython to compile python via C into a binary.

This repo demonstrates the process of building a Flask app into a Docker container with a compiled binary of the application using Cython. It also uses a multi-stage docker build to ensure that the original source files are never copied into the target image.