<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Muhammad Yousuf on Medium]]></title>
        <description><![CDATA[Stories by Muhammad Yousuf on Medium]]></description>
        <link>https://medium.com/@yousufhashmi123?source=rss-7e6e2a47eba3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*q_EpCgsD3PSnvlexoShuLQ.jpeg</url>
            <title>Stories by Muhammad Yousuf on Medium</title>
            <link>https://medium.com/@yousufhashmi123?source=rss-7e6e2a47eba3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 07:58:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yousufhashmi123/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[New study suggest Artificial intelligence is taking over Human jobs?]]></title>
            <link>https://medium.com/@yousufhashmi123/new-study-suggest-artificial-intelligence-is-taking-over-human-jobs-90a1c7ee1db1?source=rss-7e6e2a47eba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/90a1c7ee1db1</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[future]]></category>
            <category><![CDATA[machine-learning-ai]]></category>
            <dc:creator><![CDATA[Muhammad Yousuf]]></dc:creator>
            <pubDate>Tue, 12 Nov 2024 13:41:27 GMT</pubDate>
            <atom:updated>2024-11-12T13:41:27.097Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*yDXLqlVK7oOnhhRWteZebg.png" /><figcaption>You are Fired</figcaption></figure><p>On the eve of the year 2000, I found myself entering the guest room, a tray of snacks and sodas balanced precariously in my hands. The room was filled with the low murmur of conversation, my father and his friends — all bankers — huddled together, their faces etched with concern. They were discussing a common threat: the boom of computers, a technological wave they feared would soon render their jobs obsolete.</p><p>As I stepped into the room, the chatter ceased abruptly. The silence was thick, almost tangible, as if my presence had sucked the air out of the room. I could feel their eyes on me, a teenager intruding on their world of adult worries. I placed the tray on the table, my movements slow and deliberate, trying to be as unobtrusive as possible.</p><p>But one man, his desperation too great to contain, couldn’t wait for me to leave. He burst out, his voice tinged with frustration and fear, “Abid,” he said, addressing my father, “Computers will take over our jobs. We need to start looking for other jobs.”</p><p>His words hung in the air, heavy and foreboding. I felt a chill run down my spine as I glanced at my father. His face was a mask of calm, but I could see the tension in his eyes. He looked at me, a silent command to leave. I nodded, backing out of the room, the man’s words echoing in my mind. The fear in his voice, the uncertainty of the future — it was a moment that would stay with me long after I had closed the door behind me.</p><p>Will resume my father’s story at the end of this post let&#39;s get back to year 2024 era of “boom of artificial intelligence” let&#39;s start with the introduction of AI for the new bees</p><h3><strong>What is AI???</strong></h3><p>Artificial Intelligence (AI) refers to the simulation of human intelligence in machines that are programmed to think and learn like humans. These systems can perform tasks that typically require human intelligence, such as visual perception, speech recognition, decision-making, and language translation.</p><p><strong>Key Components of AI</strong><br><strong>Machine Learning (ML):</strong> This is a part of AI where computers learn from data and make predictions. There are different ways to do this:</p><p><strong>Supervised Learning:</strong> The computer learns from labeled data (data with answers).<br><strong>Unsupervised Learning: </strong>The computer finds patterns in data without labels.<br><strong>Reinforcement Learning: </strong>The computer learns by trying things out and getting rewards or penalties.</p><p><strong>Neural Networks:</strong> These are like the brain’s neurons and help computers process data in layers. When there are many layers, it’s called deep learning, which helps in understanding complex data.</p><p><strong>Natural Language Processing (NLP):</strong> This helps computers understand and interact with human language. Examples include language translation, analyzing feelings in text, and chatbots.</p><p><strong>Computer Vision:</strong> This allows computers to understand and make decisions based on images and videos. Examples include recognizing faces, self-driving cars, and medical image analysis.</p><h3><strong>WHY AI???</strong></h3><p>Humans are always skeptical about any new technological advancement starting from bronze age up till now regarding there less role. However, like any other previous technologies Artificial intelligence is tool for aiding humans so that humans can focus on more important aspect of their existence “Creativity and Innovation”<br>AI can generate content and assist in creative processes, but it lacks the innate human ability to innovate and think outside the box. Human creativity is driven by emotions, experiences, and cultural contexts that AI cannot replicate.<br>AI significantly reduces the burden of repetitive tasks for humans. In many industries, AI automates routine and mundane activities, allowing people to focus on more complex and creative work. For example, in offices, AI can handle data entry, schedule management, and basic customer inquiries.<br>In manufacturing, AI-powered robots perform repetitive assembly line tasks with precision and consistency. This not only increases efficiency but also reduces the risk of human error and fatigue. By taking over these repetitive tasks, AI frees up human workers to engage in problem-solving, innovation, and tasks that require emotional intelligence and human interaction. This shift enhances productivity and job satisfaction,<br>as people can concentrate on work that is more meaningful and fulfilling.</p><h3><strong>New study suggest Artificial intelligence is taking over Human jobs? A BIG NO</strong></h3><p>Several studies and expert opinions suggest that AI will not replace humans but rather augment human capabilities. For instance, Harvard Business School professor Karim Lakhani argues that AI will lower the cost of cognition, much like the internet lowered the cost of information transmission. He emphasizes that humans with AI will outperform those without it, highlighting the importance of integrating AI into human workflows.</p><p>Garry Kasparov, a chess grandmaster, also supports this view. After his famous matches against IBM’s Deep Blue, he found that a combination of human intelligence and AI, along with a good process, was superior to either a strong human or a strong AI alone. This suggests that AI and humans working together can achieve better results than either could independently.</p><p>Additionally, experts from Wharton, including Valery Yakubovich, Peter Cappelli, and Prasanna Tambe, believe that AI will create more jobs rather than eliminate them. They argue that AI requires significant human oversight to produce usable results, which will lead to new job opportunities.</p><p>These perspectives indicate that AI is more likely to complement human abilities rather than replace them, leading to a future where humans and AI work together to achieve greater efficiency and innovation.</p><p>Let’s return to my dad’s story. It’s 2024, and just a few months ago, he hung up his hat after a long career as a banker. That evening, we finally talked about how computers had changed his job. He smiled and said, “Yousuf, the role of a banker isn’t just about counting cash or calculating balances. It’s about providing customers with accurate information, acquiring more business, and enhancing capital. With computers, I could focus more on my core responsibilities and less on the supportive tasks. Human errors that once led to significant losses were greatly reduced, giving us more time to drive our jobs upward.” So, finally, like my father, I wish we all retire in our own lovable fashion and utilize AI for our growth.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90a1c7ee1db1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UV Validation of Banks Cheques via Python]]></title>
            <link>https://medium.com/@yousufhashmi123/uv-validation-of-banks-cheques-via-python-f0c10818261d?source=rss-7e6e2a47eba3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0c10818261d</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[uv-light]]></category>
            <category><![CDATA[cheque]]></category>
            <dc:creator><![CDATA[Muhammad Yousuf]]></dc:creator>
            <pubDate>Thu, 07 Nov 2024 08:31:53 GMT</pubDate>
            <atom:updated>2024-11-07T08:31:53.340Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*Kyz-PCbBF9Mr91j-jjJakg.png" /></figure><p>Cheques have been an integral part of the financial world since their inception. They serve as a written, dated, and signed instrument that directs a bank to pay a specific sum of money to the bearer or a designated person. The use of cheques dates back to ancient times, with evidence of cheque-like instruments being used as early as the 9th century in Persia.</p><p>Despite their long-standing presence in the financial system, cheque fraud has a similarly extensive history and continues to be a significant issue today. Fraudsters employ various strategies to exploit cheques, one of which involves creating counterfeit cheques using their own paper and printing techniques.</p><p>To combat this, modern banking cheques are embedded with advanced security features. One such feature is the inclusion of ultraviolet (UV) sensitive data, which becomes visible under UV light. This measure helps to authenticate the cheque and deter fraudulent activities. However, even these sophisticated security features are not foolproof. Well-resourced scammers can replicate these features, although they do help to filter out less sophisticated, small-scale fraud attempts.</p><p>Validating UV cheques requires specialized devices that use a UV light source to illuminate the cheque, making UV-sensitive features visible, and a UV-sensitive camera to capture these features without the background text. Advanced image processing software then enhances the UV features and suppresses background noise, ensuring accurate verification of the cheque’s authenticity. Below is sample of cheque UV image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7JfP6EfVvlkoq3TwD0Tu3w.jpeg" /></figure><p>To validate two UV cheques, where one is a template (source or blank cheque) and the other is a sample (customer cheque), follow these steps:</p><ol><li>Read both images in grayscale using the CV2 library (or your preferred one).<br>2.Apply Gaussian Blur to reduce noise.<br>3.Resize the template to match the size of the sample cheque.<br>4.Extract the white areas from both images.<br>5.Perform bitwise comparison.<br>The tricky part is scoring. Image comparison typically includes both black and white areas, which can lead to incorrect matching. However, for UV comparison, we only need to compare the common white areas. The code below addresses this issue.</li></ol><pre>import cv2<br>import numpy as np<br><br>from matplotlib import pyplot as plt<br># Load the two grayscale UV cheque images<br>template_image = cv2.imread(r&#39;TEMPLATE_IMAGE&#39;, cv2.IMREAD_GRAYSCALE)  # Template image (image1)<br>sample_image = cv2.imread(r&#39;SAMPLE_IMAGE&#39;, cv2.IMREAD_GRAYSCALE)    # Image to compare (image2)<br># Function to preprocess images to focus on white areas (bright UV markings)<br>def preprocess_image(image):<br>    # Apply Gaussian blur to reduce noise<br>    blurred = cv2.GaussianBlur(image, (5, 5), 0)<br>    <br>    # Apply thresholding to isolate the bright (white) areas<br>    _, thresh = cv2.threshold(blurred, 200, 255, cv2.THRESH_BINARY)<br>    return thresh<br># Preprocess both images to focus on white areas<br>template_thresh = preprocess_image(template_image)<br>sample_thresh = preprocess_image(sample_image)<br># Resize the template image to the same size as the sample image for comparison<br>template_resized = cv2.resize(template_thresh, (sample_thresh.shape[1], sample_thresh.shape[0]))<br># Find the white areas in both template and sample images<br>template_white_areas = (template_resized == 255).astype(np.uint8)<br>sample_white_areas = (sample_thresh == 255).astype(np.uint8)<br># Create a mask for common white areas (only where both are white)<br>common_mask = cv2.bitwise_and(template_white_areas, sample_white_areas)<br># Apply the mask to both images to extract only the regions with white areas in both images<br>template_masked = cv2.bitwise_and(template_white_areas, template_white_areas, mask=common_mask)<br>sample_masked = cv2.bitwise_and(sample_white_areas, sample_white_areas, mask=common_mask)<br><br>score=0<br>white_areas_sum=np.sum(template_resized==255)<br>if white_areas_sum==0:<br>    score=0<br>else:<br>    score=(np.sum(common_mask==1)/white_areas_sum)*100<br><br><br># Highlight common white areas in green on the sample image<br>sample_color = cv2.cvtColor(sample_image, cv2.COLOR_GRAY2BGR)<br># Use the common mask to highlight the common white areas in green<br>sample_color[common_mask == 1] = [0, 255, 0]  # Set pixels where common white areas are found to green<br># Add SSIM score text on the image<br>font = cv2.FONT_HERSHEY_SIMPLEX<br>cv2.putText(sample_color, f&#39;Score: {score:.2f} %&#39;, (40, 60), font, 2, (255 , 0), 4, cv2.LINE_AA)<br># Display the results<br>plt.figure(figsize=(10,5))<br>plt.subplot(1, 3, 1)<br>plt.imshow(template_thresh, cmap=&#39;gray&#39;)<br>plt.title(&#39;Template Image (White Areas)&#39;)<br>plt.subplot(1, 3, 2)<br>plt.imshow(sample_thresh, cmap=&#39;gray&#39;)<br>plt.title(&#39;Sample Image (White Areas)&#39;)<br>plt.subplot(1, 3, 3)<br>plt.imshow(sample_color)<br>plt.title(&#39;Highlighted Common White Areas&#39;)<br>plt.show()<br># Save the result image with highlighted common white areas<br>cv2.imwrite(&#39;/mnt/data/sample_with_green_highlight_common_white_areas.jpg&#39;, sample_color)<br># Output the score<br>print(f&#39;SSIM Score: {score:.2f} (1 means identical)&#39;)</pre><p>Above code will compare two UV cheque images.<br>1. It will highlight the matching area with green on sample cheque<br>2. will write the score in %</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W3RYg8sKiT9dWX4IFl3K2g.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0c10818261d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>