• Latest
  • All
  • How To
Nairobi Traffic

Kenyan Developer Builds API to Give Road Traffic Updates Via Cameras

October 19, 2017
How Much Do Fuel Tankers and Transit Trucks Cost in Kenya?

How Much Do Fuel Tankers and Transit Trucks Cost in Kenya?

December 1, 2026
Kazi Majuu: Kenyans Eye Overseas Jobs As Government Announces Three-Day Recruitment Drive at KICC

Kazi Majuu: Kenyans Eye Overseas Jobs As Government Announces Three-Day Recruitment Drive at KICC

December 1, 2026
WIOCC Secures Strategic Investment to Expand African Digital Infrastructure

WIOCC Secures Strategic Investment to Expand African Digital Infrastructure

December 1, 2026
Choreo Labs Launches Choreo Cloud to Govern AI Agents Across Enterprise Systems

Choreo Labs Launches Choreo Cloud to Govern AI Agents Across Enterprise Systems

December 1, 2026
DHgate Tablet Cases deals
Google Authenticator v5.2.3 Fixes iOS 27 Crash, Preserves 2FA Codes

Google Rolls Out Fix for Authenticator Crash on iPhones

December 1, 2026
Apple Marks 20 Years of (RED) Partnership with Five-Product Collection

Apple Marks 20 Years of (RED) Partnership with Five-Product Collection

November 30, 2026
Four Years of ChatGPT: The Good, the Bad and the Ugly of the AI Revolution

Four Years of ChatGPT: The Good, the Bad and the Ugly of the AI Revolution

November 30, 2026
Kenya’s First Oil: EPRA Sensitises South Lokichar Turkana Communities Ahead of Amosing Production Start

EPRA Meets South Lokichar Residents as Kenya Prepares for 20,000 bpd First Oil

November 30, 2026
YouTube Is Becoming the World’s Dominant TV Platform by Offering Everything in One Place

YouTube Is Becoming the World’s Dominant TV Platform by Offering Everything in One Place

November 30, 2026
Hackers Begin Leaking Data Linked to 32 Million Kenyans in Alleged eCitizen Breach

Hackers Begin Leaking Data Linked to 32 Million Kenyans in Alleged eCitizen Breach

November 28, 2026
Global Cyberattacks and Data Breaches: Inside the Late-2026 Breach Surge

Global Cyberattacks and Data Breaches: Inside the Late-2026 Breach Surge

November 27, 2026
Inside the Alleged eCitizen Breach: How the Claims Unfolded

Inside the Alleged eCitizen Breach: How the Claims Unfolded

November 26, 2026
Techweez | Tech News, Reviews, Deals, Tips and How To
  • News
  • Entertainment
  • Reviews
  • Features
  • Editorial
No Result
View All Result
Techweez | Tech News, Reviews, Deals, Tips and How To
  • News
  • Entertainment
  • Reviews
  • Features
  • Editorial
No Result
View All Result
Techweez | Tech News, Reviews, Deals, Tips and How To
No Result
View All Result

Kenyan Developer Builds API to Give Road Traffic Updates Via Cameras

Saruni Maina by Saruni Maina
October 19, 2017
in News
Reading Time: 2 mins read
273
5
Nairobi Traffic

University Way, Nairobi, Kenya

Chris Orwa, a Kenyan Data Scientist seems to be tired of spending endless amounts of hours stuck in Nairobi traffic. Chris, has built an API that returns traffic conditions from Internet Solutions Kenya (formerly Access Kenya) cameras. Quick context, IS Kenya has installed traffic cameras across different parts of the city and has made them publicly available by streaming the content through a web portal. Chris is utilizing these cameras to be able to tell whether there is traffic or not, without having to go watch IS Kenya’s live stream.

To achieve this, Chris had to test if it is possible to capture an image from each of IS’ cameras. “After exploration of the website I realized each camera had a URL with a JPEG file extension at the end,” he says, “I figured the cameras wrote a new image to the JPEG file on the URL. So, can I captured every new image? Yes”

After this discovery, Chris organized the camera URLs into a list so as to have a means of calling and referencing each road. After organizing the URLs, he wrote a function that takes a URL and extracts three images every 6 seconds. The next step was to process the images and make meaning off them. “The first important step in analysis of the images is checking if there has been movements within the 6 second period,” he explains, “To achieve this, I utilized the concept of differential imaging – a means of measuring motion detection by subtracting the pixel values of subsequent images. In my function, I calculate the number of pixels that have moved, this helps in quantifying the movement (standstill, moderate traffic).”

Once movement is detected, Chris quantifies the movement of traffic in km/h. He does this by utlilizng the optical flow algorithm, a concept in computer vision that allows tracking features in an image. “I utilized this functionality to find features to track (cars) in the first images, and get their corresponding positions in the second and third image,” says Chris. “I then proceeded to calculate the average distance that the feature [car] has moved. Dividing the pixel distance by 12 seconds gives me speed at which the objects (cars) are moving.

The API (which is yet to be completed) returns the speed of traffic and the level of movement i.e. whether the cars are at a standstill, moderate movement or no traffic at all, when a user feeds the API with a road name.

Chris has open sourced the API, which is available at https://github.com/Python-Nairobi/ImPro.

More details about the API can be found on Chris’ blog post.

Tags: Nairobi
SendShare154Tweet97
Saruni Maina

Saruni Maina

I Google Bing until it Yahoos! | Email: [email protected]

Related Posts

ADaM Ebola tracking

ADaM: The Outbreak Tracking Tool That Could Help Contain Ebola in Kenya

October 6, 2026
WSO2Con Africa 2026

WSO2 Hosts First WSO2Con Africa in Nairobi

September 25, 2026
Spotify Brings Nyashinski’s Greasy Tunes Set to Global Audiences

Spotify Brings Nyashinski’s Greasy Tunes Set to Global Audiences

September 11, 2026
Women in STEM Africa Summit 2026 Opens in Nairobi With Call for Investment

Women in STEM Africa Summit 2026 Opens in Nairobi With Call for Investment

September 3, 2026
Nairobi music shoot

Nairobi Proposes KES 5,000 Daily Fee for Professional Photo and Music Shoots

August 24, 2026
59% of Nairobi Riders Reject Proposed Ride-Hailing Fare Changes, Threaten Exodus to Matatus

59% of Nairobi Riders Reject Proposed Ride-Hailing Fare Changes, Threaten Exodus to Matatus

August 21, 2026

Latest

How Much Do Fuel Tankers and Transit Trucks Cost in Kenya?

How Much Do Fuel Tankers and Transit Trucks Cost in Kenya?

December 1, 2026
Kazi Majuu: Kenyans Eye Overseas Jobs As Government Announces Three-Day Recruitment Drive at KICC

Kazi Majuu: Kenyans Eye Overseas Jobs As Government Announces Three-Day Recruitment Drive at KICC

December 1, 2026
WIOCC Secures Strategic Investment to Expand African Digital Infrastructure

WIOCC Secures Strategic Investment to Expand African Digital Infrastructure

December 1, 2026
Choreo Labs Launches Choreo Cloud to Govern AI Agents Across Enterprise Systems

Choreo Labs Launches Choreo Cloud to Govern AI Agents Across Enterprise Systems

December 1, 2026
Google Authenticator v5.2.3 Fixes iOS 27 Crash, Preserves 2FA Codes

Google Rolls Out Fix for Authenticator Crash on iPhones

December 1, 2026
Apple Marks 20 Years of (RED) Partnership with Five-Product Collection

Apple Marks 20 Years of (RED) Partnership with Five-Product Collection

November 30, 2026

Top stories

Copia Global

Copia Kenya Ordered Into Liquidation After Two-Year Rescue Effort

September 30, 2026

CBK Licenses 29 New Digital Lenders, Bringing Total to 281

September 30, 2026

New Bill Could Let M-Pesa and Airtel Money Invest Customer Funds

September 30, 2026

Kenya Has 22,000 Digital Services but Still Face a Manual Backend

September 23, 2026

WSO2 Says Kenyan Businesses Must Make Systems Ready for AI Agents

September 23, 2026

New Payment Bill Wants to Force Banks and M-PESA to Open Up Their Data

September 22, 2026

Techweez is where tomorrow’s tech stories break today, thanks to intelligent analysis, real-world insight, and visionary storytelling.

Follow Us

Editorials

Four Years of ChatGPT: The Good, the Bad and the Ugly of the AI Revolution

Death by a Thousand Integrations: How Seamless Tech Left Companies Open to a Cyber Winter

A Look at Retro, A Photo Sharing App Without the Audience

Alice Huang, Megaspeed, and the Nvidia Crisis That Ended Jensen Huang’s Run

Safaricom Is Becoming a Financial Services Company With a Telco Attached

ThingsBook Turns Social Media Into a Museum of Your Own Life

More News

Four Years of ChatGPT: The Good, the Bad and the Ugly of the AI Revolution

EPRA Meets South Lokichar Residents as Kenya Prepares for 20,000 bpd First Oil

YouTube Is Becoming the World’s Dominant TV Platform by Offering Everything in One Place

Hackers Begin Leaking Data Linked to 32 Million Kenyans in Alleged eCitizen Breach

Global Cyberattacks and Data Breaches: Inside the Late-2026 Breach Surge

Inside the Alleged eCitizen Breach: How the Claims Unfolded

  • Terms Of Use
  • Techweez Brand
  • Privacy & Policy
  • Contact Us

© 2024 Techweez - Palahala Media Group may earn a commission when you buy through links on our sites.
A Palahala Media Group Brand. All rights reserved.
.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In

Add New Playlist

Techweez | Tech News, Reviews, Deals, Tips and How To
Crunchy Cookies 🍪 Ahead!

Hey there! Just a heads-up: we're big fans of cookies - both the digital and edible kind! 🍪 We use our cookies and some from third parties to ensure your browsing experience on our site is smooth sailing and secure.

 

But wait, there's more! We also use cookies to gather stats and insights on how you navigate our site. It's like getting a behind-the-scenes peek at your digital adventures!

 

Don't worry, you're in control. You can adjust your cookie settings anytime to suit your preferences. Feeling curious? Dive into our Privacy Policy for all the juicy details. Happy browsing! 🚀

Functional Always active
Listen, this legal stuff is about as exciting as watching paint dry. But it basically says we only use your stuff for what you asked us to do, and nobody else gets to peek!
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
It's those sneaky cookie crumbs websites leave behind to count visitors, like counting ants at a picnic! Totally harmless, just for fun facts. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
Hey there! Just letting you know we use some fancy gizmos to remember your preferences. This way, we can show you ads that are, well, not completely bananas.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Make cookies
{title} {title} {title}
Techweez | Tech News, Reviews, Deals, Tips and How To
Crunchy Cookies 🍪 Ahead!
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
Listen, this legal stuff is about as exciting as watching paint dry. But it basically says we only use your stuff for what you asked us to do, and nobody else gets to peek!
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
It's those sneaky cookie crumbs websites leave behind to count visitors, like counting ants at a picnic! Totally harmless, just for fun facts. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
Hey there! Just letting you know we use some fancy gizmos to remember your preferences. This way, we can show you ads that are, well, not completely bananas.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Make cookies
{title} {title} {title}
No Result
View All Result
  • News
  • Reviews
  • Features
  • Editorial
  • Automotive
  • Entertainment

© 2024 Techweez - Palahala Media Group may earn a commission when you buy through links on our sites.
A Palahala Media Group Brand. All rights reserved.
.