Skip to content

Gary Sieling

Principal Engineer

  • Machine Learning
  • Full Text Search
  • Data Science
  • Scraping
  • Postgres
  • DevOps
  • AWS
  • Talks

Category: Code Examples

Posted on June 13, 2018

Draw a filled white rectangle with OpenCV in Python

This is pretty easy (the last argument is the line thickness – -1 sets this to be filled):

cv2.rectangle(frame, (x, y), (w, h), (255, 255, 255), -1)

Posts navigation

Previous page Page 1 … Page 35 Page 36 Page 37 … Page 377 Next page
  • Thought Experiments
  • Proof of Concepts
  • Book Reviews
  • Projects
  • Essays
  • Talks
  • Programming Techniques
  • Javascript
  • Python
  • Prolog
  • Scala
  • Java
  • PHP
  • C#
  • R

Recent Posts

  • Allow a CircleCI self-hosted machine runner to run jobs for more than 5 hrs
  • Import a folder of CSVs into a single Google Sheet (1 per tab)
  • R Code to summarize Dept of Ed, Civil Rights Data by school district / LEA
  • Export Census ACS5 data by GEOID/block group to CSV in R
  • Get US Census population by block group (GEOID) in R
  • Get a list of census fields available at the GEOID (block group) level in R
  • PA Senate Committees 2023 CSV Download
Proudly powered by WordPress