<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ibra</title>
    <description>The latest articles on DEV Community by Ibra (@ibra_akv).</description>
    <link>https://dev.to/ibra_akv</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F908255%2F6397581c-4241-429d-8dcb-64ab926edc2e.jpg</url>
      <title>DEV Community: Ibra</title>
      <link>https://dev.to/ibra_akv</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ibra_akv"/>
    <language>en</language>
    <item>
      <title>License plate cover on car images</title>
      <dc:creator>Ibra</dc:creator>
      <pubDate>Thu, 08 Sep 2022 20:11:00 +0000</pubDate>
      <link>https://dev.to/ibra_akv/license-plate-cover-on-car-images-3i0c</link>
      <guid>https://dev.to/ibra_akv/license-plate-cover-on-car-images-3i0c</guid>
      <description>&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;Goal of this project was to develop and train a Deep learning model capable of detecting and covering license plates of vehicles.&lt;/p&gt;

&lt;h3&gt;
  
  
  Technical
&lt;/h3&gt;

&lt;p&gt;This project was implemented with Python using the Keras framework on top of Tensorflow.&lt;br&gt;
A number of python libraries like OpenCV, Numpy, Pandas, etc… were used.&lt;/p&gt;

&lt;h3&gt;
  
  
  Examples
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3BDM1hot--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sc7ab845zlznw8rgsuen.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3BDM1hot--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sc7ab845zlznw8rgsuen.png" alt="License plate covering examples" width="880" height="855"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Deployment
&lt;/h3&gt;

&lt;p&gt;A lot of work done in order the reduce the overall size of the code and model weights to allow a deployment in Serverless environments like AWS Lambda and Google Cloud Functions.&lt;/p&gt;

&lt;p&gt;Finally i was able to deploy on Google Cloud Function with an API in front.&lt;/p&gt;

&lt;p&gt;The serverless approach is very optimal as the scalability is handled for you and serverless is almost always cheap.&lt;br&gt;
In my case, i had a deep learning model that was almost totally free (1 million operations per month for free).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Source:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://www.ibragim.fr/portfolio/cache-plaque-deep-learning/"&gt;https://www.ibragim.fr/portfolio/cache-plaque-deep-learning/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>deeplearning</category>
      <category>keras</category>
      <category>serverless</category>
    </item>
    <item>
      <title>Background removal on car images - Machine learning project</title>
      <dc:creator>Ibra</dc:creator>
      <pubDate>Thu, 08 Sep 2022 06:35:40 +0000</pubDate>
      <link>https://dev.to/ibra_akv/background-removal-on-car-images-machine-learning-project-4lgm</link>
      <guid>https://dev.to/ibra_akv/background-removal-on-car-images-machine-learning-project-4lgm</guid>
      <description>&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;The goal of this project was to have an algorithm capable of removing the background of a vehicle image automatically with machine learning.&lt;/p&gt;

&lt;h3&gt;
  
  
  Technical
&lt;/h3&gt;

&lt;p&gt;This was done with Python using the framework &lt;strong&gt;Keras&lt;/strong&gt;, &lt;strong&gt;Tensorflow&lt;/strong&gt; and a number of known python libraries like Numpy, Pandas, OpenCV, etc…&lt;/p&gt;

&lt;p&gt;The algorithm uses a lot of CPU power to predict and remove the background and by consequence, this raises a scalability issue, it can get very costly to deploy and scale something like this.&lt;br&gt;
So to get something high-performance and scalable, i did a lot of work optimizing the code, packaging, removing useless code all to reduce the size of the end result.&lt;/p&gt;

&lt;p&gt;After weeks of hard work, i was able to deploy it in a Serverless environment on Google cloud with Cloud Functions.&lt;br&gt;
So now, i had a ML model that is fast, scalable and almost totally free (1mil operations per month for free).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Source:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://www.ibragim.fr/portfolio/detourage-automatique-voitures-ia/"&gt;https://www.ibragim.fr/portfolio/detourage-automatique-voitures-ia/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>serverless</category>
      <category>machinelearning</category>
      <category>keras</category>
    </item>
    <item>
      <title>Batch processing with Symfony and Docker</title>
      <dc:creator>Ibra</dc:creator>
      <pubDate>Mon, 05 Sep 2022 16:07:01 +0000</pubDate>
      <link>https://dev.to/ibra_akv/batch-processing-with-symfony-and-docker-19nj</link>
      <guid>https://dev.to/ibra_akv/batch-processing-with-symfony-and-docker-19nj</guid>
      <description>&lt;h4&gt;
  
  
  Context
&lt;/h4&gt;

&lt;p&gt;We had a platform running with &lt;strong&gt;Symfony&lt;/strong&gt; where we needed to execute a lot of heavy background jobs daily.&lt;/p&gt;

&lt;p&gt;Initially we used a bundle which handles our jobs and their execution.&lt;br&gt;
With the growing user base, it had started to let us down.&lt;br&gt;
We were getting more and more jobs that are stuck, hung, etc…&lt;/p&gt;

&lt;h4&gt;
  
  
  Solution
&lt;/h4&gt;

&lt;p&gt;To solve this, i developed a new bundle that offers a batch processing system with the Docker engine.&lt;/p&gt;

&lt;p&gt;All jobs are executed separately in docker containers.&lt;/p&gt;

&lt;p&gt;This way is more viable as Docker handles the execution of the started containers.&lt;/p&gt;

&lt;p&gt;Neat thing with this bundle is, you can pretty much execute anything in those containers.&lt;br&gt;
For example, say you need a downloader in your symfony application, rather than implementing it in PHP, you could leverage JS Async and make a quick node.js script with something like &lt;strong&gt;bluebird&lt;/strong&gt; and package it into a Docker image.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Monitoring UI&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
The bundle also offers a Monitoring user interface which you may choose to activate.&lt;br&gt;
With this interface, you can:&lt;br&gt;
— get an overview of your jobs&lt;br&gt;
— inspect jobs&lt;br&gt;
— stop jobs&lt;br&gt;
— get usage info for each running job&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Job details page&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--70h9dbbJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qu0t2ntppr1ti4rt5lj1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--70h9dbbJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qu0t2ntppr1ti4rt5lj1.png" alt="Docker jobs bundle - details page screenshot" width="880" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Dashboard page&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--thTd4CSQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lt5ouzylaw1littq1lpw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--thTd4CSQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lt5ouzylaw1littq1lpw.png" alt="Docker jobs bundle - dashboard page screenshot" width="880" height="434"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Check out the &lt;a href="https://github.com/ibra-akv/docker-jobs-bundle"&gt;bundle&lt;/a&gt;, see if it's what you needed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Github:&lt;/strong&gt; &lt;a href="https://github.com/ibra-akv/docker-jobs-bundle"&gt;https://github.com/ibra-akv/docker-jobs-bundle&lt;/a&gt;&lt;/p&gt;

</description>
      <category>php</category>
      <category>docker</category>
      <category>symfony</category>
    </item>
  </channel>
</rss>
