Skip to content

Yashvj22/OpenCV_Animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Don't Drink and Drive: A Visual Story with Python (OpenCV) ๐Ÿš—

This repository showcases two impactful projects I created using Python and OpenCV:

  1. An animation video emphasizing the critical message, "Don't Drink & Drive."
  2. A fun and interactive GIF capturing the frustrations of coding and the need to de-stress.

๐Ÿ”น Project 1: The Animation Story

Description

The animation tells a compelling story that begins in a bar ๐Ÿป, transitions to a risky decision to drive ๐Ÿš—, and ends with a tragic accident ๐Ÿ’ฅ. It aims to raise awareness about the dangers of drunk driving and deliver a powerful social message.

Features

  • Scene Design: Roads, vehicles, and characters brought to life with OpenCV functions like cv2.line, cv2.circle, and cv2.rectangle.
  • Impactful Messaging: The animation displays key messages like "Don't Drink & Drive" using cv2.putText.
  • Interactive Elements: Mouse events implemented using cv2.setMouseCallback for dynamic scene creation.
  • Frame Display: Seamless animation created using cv2.imshow and cv2.waitKey.

๐Ÿ”น Project 2: The GIF

Description

This fun and engaging GIF captures the emotional rollercoaster of coding frustrations ๐Ÿž. It features a creative interaction where a keyboard turns into a drum ๐Ÿฅ, symbolizing the need to de-stress during tough debugging sessions.

Features

  • Dynamic Interaction: Mouse-based input to create animations.
  • GIF Creation: Frames are looped to simulate a smooth and visually appealing animation.
  • Key OpenCV Functions:
    • cv2.line, cv2.circle for drawing shapes.
    • cv2.putText for adding text to frames.
    • cv2.imshow, cv2.waitKey for frame-by-frame visualization.

Technologies Used

  • Programming Language: Python
  • Library: OpenCV

Key OpenCV functions include:

  • cv2.line, cv2.circle, cv2.rectangle: For creating shapes and designing scenes.
  • cv2.putText: For displaying messages.
  • cv2.setMouseCallback: For interactive mouse-based inputs.
  • cv2.imshow, cv2.waitKey: For real-time frame visualization.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published