<?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 Krishnendra on Medium]]></title>
        <description><![CDATA[Stories by Krishnendra on Medium]]></description>
        <link>https://medium.com/@krishnendramishra?source=rss-28dcc966d7d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*q5EiGeU8jBzrZz-p.</url>
            <title>Stories by Krishnendra on Medium</title>
            <link>https://medium.com/@krishnendramishra?source=rss-28dcc966d7d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 12:07:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@krishnendramishra/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[TensorFlow Lite in a Flutter app]]></title>
            <link>https://medium.com/@krishnendramishra/tensorflow-lite-in-a-flutter-app-7b5f6a8b5784?source=rss-28dcc966d7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b5f6a8b5784</guid>
            <dc:creator><![CDATA[Krishnendra]]></dc:creator>
            <pubDate>Thu, 24 Aug 2023 18:46:49 GMT</pubDate>
            <atom:updated>2023-08-24T18:46:49.253Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How to build a simple image classification app using TensorFlow Lite and Flutter. You can adapt this structure to more complex projects and different use cases by exploring other TensorFlow Lite models, customizing the UI, and adding more features.</em></p><p>We’ll build an image classification app using a pre-trained model.</p><p>Prepare the Model: Obtain a pre-trained image classification model, such as MobileNet or Inception, and convert it to TensorFlow Lite format using the TensorFlow Lite Converter.</p><p>Set Up the Flutter Project: Create a new Flutter project and add the TensorFlow Lite plugin to your pubspec.yaml file:</p><p>Link: <a href="https://pub.dev/packages/tflite_flutter">https://pub.dev/packages/tflite_flutter</a></p><pre>dependencies:<br>  flutter:<br>    sdk: flutter<br>  tflite: ^1.0.0</pre><p>Run flutter pub get to install the dependencies.</p><p>Load the Model: In your main.dart file, initialize TensorFlow Lite and load the model in the main() function:</p><pre>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:tflite/tflite.dart&#39;;<br><br>void main() {<br>  runApp(MyApp());<br>}<br><br>class MyApp extends StatelessWidget {<br>  @override<br>  void initState() {<br>    super.initState();<br>    // Initialize TensorFlow Lite.<br>    Tflite.loadModel(<br>      model: &#39;assets/your_model.tflite&#39;,<br>      labels: &#39;assets/your_labels.txt&#39;,<br>    );<br>  }<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      title: &#39;Image Classifier&#39;,<br>      home: MyHomePage(),<br>    );<br>  }<br>}</pre><p>Build the UI: Create the MyHomePage widget to build the UI of the app. Use the image_picker package to select an image from the gallery and display the classification results:</p><pre>import &#39;dart:io&#39;;<br>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:tflite/tflite.dart&#39;;<br>import &#39;package:image_picker/image_picker.dart&#39;;<br><br>class MyHomePage extends StatefulWidget {<br>  @override<br>  _MyHomePageState createState() =&gt; _MyHomePageState();<br>}<br><br>class _MyHomePageState extends State&lt;MyHomePage&gt; {<br>  File _image;<br>  List&lt;dynamic&gt; _recognitions;<br><br>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(<br>        title: Text(&#39;Image Classifier&#39;),<br>      ),<br>      body: Center(<br>        child: Column(<br>          mainAxisAlignment: MainAxisAlignment.center,<br>          children: &lt;Widget&gt;[<br>            _image == null<br>                ? Text(&#39;No image selected.&#39;)<br>                : Image.file(_image),<br>            SizedBox(height: 20),<br>            ElevatedButton(<br>              onPressed: _pickImage,<br>              child: Text(&#39;Pick an image&#39;),<br>            ),<br>            SizedBox(height: 20),<br>            _recognitions != null<br>                ? Column(<br>                    children: _recognitions.map((res) {<br>                      return Text(<br>                        &quot;${res[&quot;label&quot;]}: ${res[&quot;confidence&quot;].toStringAsFixed(3)}&quot;,<br>                      );<br>                    }).toList(),<br>                  )<br>                : SizedBox(),<br>          ],<br>        ),<br>      ),<br>    );<br>  }<br><br>  void _pickImage() async {<br>    final picker = ImagePicker();<br>    var pickedImage = await picker.getImage(source: ImageSource.gallery);<br><br>    if (pickedImage != null) {<br>      setState(() {<br>        _image = File(pickedImage.path);<br>      });<br><br>      _classifyImage();<br>    }<br>  }<br><br>  void _classifyImage() async {<br>    var recognitions = await Tflite.runModelOnImage(<br>      path: _image.path,<br>      numResults: 5,<br>    );<br><br>    setState(() {<br>      _recognitions = recognitions;<br>    });<br>  }<br><br>  @override<br>  void dispose() {<br>    // Release resources when the widget is disposed.<br>    Tflite.close();<br>    super.dispose();<br>  }<br>}</pre><p><strong><em>Testing: Run the app on a device or emulator. When you pick an image, the app will classify the image using the TensorFlow Lite model and display the top predictions.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b5f6a8b5784" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Raga Charukeshi]]></title>
            <link>https://medium.com/@krishnendramishra/raga-charukeshi-332dd5ac3c69?source=rss-28dcc966d7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/332dd5ac3c69</guid>
            <category><![CDATA[charukeshi]]></category>
            <category><![CDATA[raag]]></category>
            <category><![CDATA[raga]]></category>
            <category><![CDATA[music]]></category>
            <category><![CDATA[guitar]]></category>
            <dc:creator><![CDATA[Krishnendra]]></dc:creator>
            <pubDate>Wed, 29 Jul 2020 13:32:30 GMT</pubDate>
            <atom:updated>2020-07-29T14:08:12.449Z</atom:updated>
            <content:encoded><![CDATA[<p>Dhaivat(ध) and Nishad(नि) Komal(Flat ♭). Rest all Shuddha Swaras.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ecDHvl22kQaX4NBF8YzBA.png" /><figcaption><strong>Key D</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kmBPOrLeJsUcTAyJFoz7nQ.png" /><figcaption><strong>KEY D</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YqcrnFGkKcs2ZN2-VB6D_w.png" /><figcaption><strong>Flat 6 and 7 notes</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=332dd5ac3c69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Start with Quicksort]]></title>
            <link>https://medium.com/@krishnendramishra/start-with-quicksort-43e928bc782f?source=rss-28dcc966d7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/43e928bc782f</guid>
            <category><![CDATA[merge-sort]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[divide-and-conquer]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[data-structures]]></category>
            <dc:creator><![CDATA[Krishnendra]]></dc:creator>
            <pubDate>Thu, 09 Jan 2020 11:59:22 GMT</pubDate>
            <atom:updated>2020-01-09T12:24:45.705Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AMe-io07qkIx7XCnksu1uA.png" /><figcaption><strong>Merge sort</strong></figcaption></figure><blockquote><strong>Divide and Conquer Approach</strong></blockquote><p>Method design for <strong>Divide and Conquer Approach is to :</strong></p><p><strong>Divide</strong>: Divide the problem into two or more <strong>disjoint </strong>subproblems.</p><blockquote><strong>Conquer: </strong>Recursively solve subproblems</blockquote><p><strong>Combine</strong>: Merge these solutions into <strong>a solution</strong> for the original problem .</p><p><a href="https://github.com/KrishnendraPrakash/Algorithm/tree/master/Mergesort">KrishnendraPrakash/Algorithm</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43e928bc782f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>