• Latest
  • All
  • How To
Nairobi Traffic

Kenyan Developer Builds API to Give Road Traffic Updates Via Cameras

October 19, 2017
Private Number calls

How to Handle Private Number Calls in Kenya

May 8, 2025
Kenya Power EV charging stations

Kenya Power Rolls Out 45 EV Charging Stations Across the Country

May 8, 2025
Bayobab

MTN’s Bayobab Connects Uganda and Kenya with New Fiber Route

May 8, 2025
Airtel Africa Starlink partnership

Starlink Is Expanding in Africa Through New Airtel Partnership

May 8, 2025
DHgate Tablet Cases deals
Android FreeType patch

Android May 2025 Security Update Fixes Critical FreeType Zero-Click Vulnerability

May 7, 2025
worldcoin kenya

Court Ruling Orders Worldcoin to Delete All Kenyan Biometric Records

May 7, 2025
smartphones-2024

Smartphone Market Recovers Slightly in Q1 2025 With Apple, Vivo Leading Gains

May 7, 2025
GTA 6 Trailer 2

GTA 6 Trailer 2: Rockstar Confirms Release Date and Dual Protagonists

May 7, 2025
YouTube Premium Duo

YouTube Now Lets Two People Share a Premium Plan

May 6, 2025
Infinix GT20 Pro

Infinix GT 20 Pro Review: You Don’t Need to Overspend on Gaming Power Anymore

May 6, 2025
Emerald PostPay

Safaricom Transitions Customers to New Emerald PostPay Plans

May 6, 2025
Intrusion Detection System

Android 16 Will Let You Track Suspicious Activity on Your Phone

May 6, 2025
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
267
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
SendShare151Tweet95
Saruni Maina

Saruni Maina

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

Related Posts

Earth Tremor Felt Across Nairobi. What Causes Tremors?

Earth Tremor Felt Across Nairobi. What Causes Tremors?

July 17, 2024
Bolt

After Google and Microsoft, e-Taxi Firm Bolt Opens Regional Hub in Kenya

July 7, 2022
Nairobians drinking

Trending Topics Show Nairobians Value their Fun

September 29, 2020
Bevon Moindi Bosco

Touch Movers Promises to Make Moving Houses a Much Painless Process

August 6, 2020
Global tech corporations hold a series of conferences across the globe, and they target a broad scope of their customers and consumers. However, those meets do not often make their way here, choosing to run in other markets instead. In fact, even when they are staged in continental Africa, the tech summits, understandably, are run in crucial technology hubs found in Nigeria, South Africa or Egypt, and in some instances, Kenya. This characterization, however, changed when Facebook brought its iD8 developer conference in Nairobi this past week. It is worth noting that the social media giant has never conducted the summit in Africa before. The conference has also been running for quite some time now and has visited many parts of the United States, Latin America, Europe, and Asia. To this end, we were quite happy when the corporation announced its plan to meet the Kenyan developer and business circles, and for the most part, the meet was successful – having answered a series of Kenya-based queries, although not all of them, or as comprehensively as many of you expected. Disclosure: Facebook did not pay me (us) for attending the conference, although it staged the event at Trademark Hotel, which was very pretty. The social media company further took us out to a nice lunch, although we could have loved an equally welcoming dinner. Nevertheless, there was an open bar in the evening, with really, really tasty chocolate oatcakes. Lucky folks got to enjoy solid guacamole. I tried to identify local developers on the floor. I lost. Repeatedly. For context, iD8 is Facebook’s platform where it shares new technologies and products for the target audience (developers and businesses affiliated to the social network) to build and toy around with for expanded applications, as well as programs to help them at any stage of their development or business journey. The meeting, as promised, was marked by hands-on demonstrations where executives heading a variety of Facebook products such as Developer Programs directed by Emeka Afigbo presided over discussion with other experts. The Kenya angle and Facebook Developer Circle More than 400 startups and developers attended the conference, including teams from South Africa and Nigeria, as well as several local developer teams and individuals. Kenya was primarily represented by Fatma Ali, a Facebook Developer Circle Lead based in Eldoret. According to Fatma, she got an opportunity to interact with interesting people associated with the social media network and look forward to using the connections she made to build her career while improving her leadership skills to work with the developer community. “Through my Facebook Developer Circle, I have gotten exposure and recognition in the Developer ecosystem. The experience has been enlightening, and I am confident that I will have a successful career in technology,” said Fatma Ali. Back to Emeka Afigbo. The Developer Programs Lead reiterated Facebook’s role in the Developer Circle communities. The groups are run in partnership in Andela (find more about Andela here, including its recent plan to drop upcoming local developers for experienced ones in a move that was prompted by ‘market demands’). So far, the Circles are still in their pilot phase in Kenya (including the aforementioned one at Eldoret) and Somalia. “We want to train about 2500 developers – that is both developers and people who want to be developers so that they can pursue careers in software development,” said Emeka Afigbo. The program received more than 5000 applications for interested people, but only half of them were selected to join the Circle. The members have been receiving training for three months now through online content and in-person meetups. So far, more than 2000 certificates have been issued to successful members. Facebook also reports it started a career fair in Nairobi. A similar platform will also be launched in Lagos, Nigeria, in the next couple of days. The fair serves one main goal: companies that want to hire talent from the Developer Circles can get to meet these people and gauge their expertise for possible job openings. Furthermore, Emeka Afigbo revealed that Facebook has been engaging local startups in terms of partnerships, including Ongair that has been offering customer service and support to a series of clients (that use Facebook products such as the platform itself and its complementary apps such as Instagram and Messenger). By the way, Ongair was represented in the summit and had its founder and CEO Trevor Kimenye as one of the panelists in one of the afternoon sessions. Ongair is one of the three Messenger development partners that exist in Sub-Saharan Africa. These are some of the activities that Facebook hopes to explore, and we hope they will open more developer Circles in the country to tap into reputable talent that exists in the country. WhatsApp Facebook does not release country-specific numbers for WhatsApp. The platform, which has 1.5 billion monthly active users globally, is one of the most popular apps in the country (Twitter does not even come close), and we would have been happier if the company released those numbers to us. For the moment, we are in the dark, but we will apprise you in case new information streams in from the corporation. The app has also been equipped with business tools, and the company has been attempting to use the platform as a financial product (WhatsApp Pay) in some countries, and we are skeptical it can ever make its way here because the Kenyan market has already been disrupted by the market leader, M-PESA. Final Words iD8 was well attended, and for a first attempt in the continent, it did well. We hope they pass through other African technology hubs because the continent is interesting and is marked by talented people who continue to make the technology more accessible and generally better. The goal may be achieved because, according to Emeka Afigbo, they plan to reconnect the ecosystem to share the latest technology, program, and updates with the industry.

Facebook Developer Circles Trains Thousands of Kenya Developers as it Holds iD8 Conference in Nairobi

January 28, 2020
Facebook iD8 Nairobi

For the First Time in Africa, Facebook Developer Conference is Coming to Nairobi

November 15, 2019

Latest

Private Number calls

How to Handle Private Number Calls in Kenya

May 8, 2025
Kenya Power EV charging stations

Kenya Power Rolls Out 45 EV Charging Stations Across the Country

May 8, 2025
Bayobab

MTN’s Bayobab Connects Uganda and Kenya with New Fiber Route

May 8, 2025
Airtel Africa Starlink partnership

Starlink Is Expanding in Africa Through New Airtel Partnership

May 8, 2025
Android FreeType patch

Android May 2025 Security Update Fixes Critical FreeType Zero-Click Vulnerability

May 7, 2025
worldcoin kenya

Court Ruling Orders Worldcoin to Delete All Kenyan Biometric Records

May 7, 2025

Best devices

budget smartwatches 2025

Best Budget Smartwatches To Buy in Kenya 2025

February 13, 2025

Best Infinix Smartphones To Buy in Kenya 2024

February 13, 2025

Best Laptops for Battery Life in 2024

August 21, 2024

Best “Battery Warrior” Smartphones To Buy in 2024

August 22, 2024

How to Handle Private Number Calls in Kenya

May 8, 2025

Kenya Power Rolls Out 45 EV Charging Stations Across the Country

May 8, 2025

Techweez is a fast growing influential source of technology news, reviews and analysis by leading tech geeks in the industry.

Follow Us

Editorials

Trump’s Tariffs Will Be the End of Affordable Tech

5 Ways to Prep Your Tech for Resale

The Weaponization of PDFs: How Cybercriminals Are Exploiting a Trusted Format

Introducing A Brainbox Quiz: Techweez’s Monthly Trivia Night!

5 Most Reliable Virtual Dollar Card Providers in Nigeria

5 Leading Grant Management Software for Nonprofits

More News

Smartphone Market Recovers Slightly in Q1 2025 With Apple, Vivo Leading Gains

GTA 6 Trailer 2: Rockstar Confirms Release Date and Dual Protagonists

YouTube Now Lets Two People Share a Premium Plan

Infinix GT 20 Pro Review: You Don’t Need to Overspend on Gaming Power Anymore

Safaricom Transitions Customers to New Emerald PostPay Plans

Android 16 Will Let You Track Suspicious Activity on Your Phone

  • 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.
.