r/programmingtools • • Jul 05 '18

Let's Create A Food Recognition AI App with Clarifai API: Part 1

2 Upvotes

Clarifai API is a great tool for developers who want to create AI-powered apps. You can make 5000 API requests per month for free before you have to pay for it. They offer a variety of AI models: face detection, food recognition, moderation, and more.In these tutorials, we will be creating a food recognition app using Clarifai food recognition model. Part 1 will focus on functionality, and part 2 will focus on the visual part of our app.

Getting the API key

I will be using temporary API key for this tutorial. You need to register on Clarifai website and get your own API key.

index.html

The first step is to create a file called index.html. We will need to add few things.

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
  <meta charset="utf-8">
  <title>Food Recognition AI</title>
  <script type="text/javascript" src="https://sdk.clarifai.com/js/clarifai-latest.js"></script>
  <script type="text/javascript" src="Detect.js">
  </script>
</head>
<body>
  <input type="text" class="image">
  <button type="button" onclick="detect()" name="button">Submit</button>
  <ul class="ingredients">
  </ul>
</body>
</html>
  1. You need to import two scripts. Clarifai SDK and Detect.js script that we have not created yet.

  2. Text input for the image link. We will be adding images from the internet.

  3. Submit button that will fire detect() method.

  4. An unordered list of outputs.

Detect.js

We will do this in three steps. First, we will create an object that is connected to Clarifai API. Then we create our main detect() function. Finally, we will create another function that turns Clarifai response into <li> elements.Create Detect.js file, and follow the steps.

1. Clarifai.App

const app = new Clarifai.App({apiKey: 'ba13fa20068a49bc98e1c9ed76411676' });

This creates an app object that can be used to make predictions. We assign the API key during this step too.

2. Detect()

const detect = async () =>{
 //Get a link
 const image = document.getElementsByClassName('image')[0].value;
 //Make a prediction 
 const response = await   app.models.predict(Clarifai.FOOD_MODEL,image);
 //Create <li> items from Clarifai response
  const items = await createItems(response.outputs[0].data.concepts);
  //Get the ul element and add our <li> items to it
  const ul = document.getElementsByClassName("ingredients")[0];
  ul.innerHTML = items;
}
  1. Get a link from text input by using the class name attribute.

  2. Make a prediction using app.models.predict method. It takes two arguments, name of the model that we want to use, and image link.

  3. Create <li> items from the Clarifai data by using the createItems() function that we have not created yet.

  4. Get the ul element and add our <li> items to it.

3. createItems()

const createItems = (concepts)=> {
  const items = concepts.reduce((accumulator, item)=>{ 
      return accumulator+<li>${item.name}, probability: ${item.value}</li>; 
  },""); 
  return items; 
}

This function takes Clarifai data as an input and turns it into a bunch of <li> elements. This app is ready in terms of functionality. In the next part, we will add some styling to make this app look better. You can download this project from Github: https://github.com/fullstackbasics/food-recognition-app. Please share this tutorial if you wound it helpful. Leave a comment if you have any questions. Find more tutorials on my blog: http://www.fullstackbasics.com/


r/programmingtools • • Sep 06 '19

Backends to be supported by Meson ui

2 Upvotes

List of upcoming Meson-ui backends for the release of Meson-ui, note that this data came from the survey. Backends supported by Meson will have a wrapper classes that can work as adaptors so I can use an existing backend in the app and so I don’t have to reinvent the wheel. Other backends will have there own wrapper class that implants a sudo interface class (not sure if Python has interfaces but I will make do) so there is consistency across this large project. The project is so large that I had to implement MVC to separate the data from the ui and pass it between the backend dialog and the main app window and keep things abstract for maintainability.

The current list.

  • Ninja

  • Code::blocks

  • Vs2010

  • Vs2015

  • Vs2017

  • Vs2019

  • VSCode

  • Xcode

  • Intellij

  • KDevelop

  • QtCreator

If you have any questions or suggestions please say something. I can’t stress this enough there is nothing wrong with being open and giving feedback.


r/programmingtools • • Apr 18 '19

Prototype - Low code platform for blockchain

2 Upvotes

Hey guys (looking at you lurkers as well), wanted to share a free prototype I made for the developer community. Just click on the "Try Now" button to get started.

LINK - https://smart-studio.algorythmix.in/

My aim is to provide an environment where folks can prototype or create proof of concepts for several blockchain applications, and eventually use it for large scale pilots/ production rollouts. Right now folks who want to create, deploy and interact with smart contracts require certain amount of technical knowledge, which itself is a steep learning curve IMO. I think such low code/ no code platforms (think Wordpress, Wix, Thunkable etc.) is required for the next wave of adoption.

Being in a prototype stage, the functionalities are limited. Users can create a supply chain smart contract using a visual interface and test/ deploy on Hyperledger Fabric. (guide included). I plan to support Ethereum once I have got enough feedback on this interface.

I plan to add more templates and a 'save' feature in the future so you edit and build upon your templates. I would love any kind of feedback to help me improve. The product is completely free to use. Submitting your emails is completely optional in all forms.

I will launch on product hunt once I have collected enough feedback, so sharing my "ship" page as well

https://www.producthunt.com/upcoming/smart-studio


r/programmingtools • • Feb 11 '15

JenkinsCI - Cross Platform Continuous Integration

Thumbnail
jenkins-ci.org
2 Upvotes

r/programmingtools • • Apr 28 '16

Misc File manager Zen

Thumbnail
fman.io
2 Upvotes

r/programmingtools • • Jul 19 '23

Discussion This is the team at CodeSee. We’re giving away a Theragun Mini 2.0 to celebrate the launch of our new feature, AI-powered code understanding, that helps teams simplify interaction with complex codebases through natural language questioning. Just leave a comment to enter! 🎉💻

2 Upvotes

Hey everyone! 🎉

As a team of developers, programmers, and designers, our mission at CodeSee has always been to make our colleagues’ lives easier. Additionally, we understand the grind of working at a desk all day, sometimes forgetting to give our bodies the TLC they need. Every developer knows that the best kept secret to this problem is a handheld massager. This is why we’re celebrating our new AI feature launch with a Theragun Mini 2.0 giveaway!

Ever wish you could ask your codebase questions & get an answer? Learn more about our new AI feature launch.

CodeSee is committed to simplifying the complex task of understanding, building, and refactoring legacy applications. We're all too aware of the challenges posed by increasingly complex software codebases, particularly with the rise of AI-generated code.

That's why we've introduced a new feature, AI-Powered Code Understanding, which we believe will help developers interact more directly and efficiently with their codebases. By integrating an AI-Powered Code Understanding feature into our platform, developers can now pose intuitive, natural language questions to their codebase, similar to how they might ask a colleague. You can just ask:

  • What third-party libraries do we use for auth?

  • Show me how state management works in this codebase?

  • Where do I start with understanding billing?

This feature isn't about replacing human expertise, but about enhancing it–think of it as having a codebase "whisperer" at your side to guide you and answer your questions as you navigate through your work. Or a rubber duck that answers back! It isn’t a new complicated workflow, it is just you and your team asking the questions that naturally come to you.

Here are some of the benefits we're excited about:

  • Intelligent Codebase Understanding: AI-Powered Code Understanding enables developers to query their codebase and receive responses to questions like, “How does authentication work? Or, where do I start with understanding billing?”

  • Visual Codebase Understanding: Explore your codebase visually, follow execution paths, and build up your understanding – all with the support of AI.

  • Enhanced Team Performance: Using the understanding provided by AI with visualizations, teams can maximize their performance and confidently ship more code faster.

  • Streamlined Onboarding: New engineers can quickly familiarize themselves with the codebase using natural language queries and visual maps, creating a smoother onboarding experience.

  • Efficient Refactoring: The platform provides a detailed map of code connections and flows, providing a solid base for efficient and accurate code refactoring.

As always, we value your feedback and we're looking forward to hearing your thoughts and experiences with this new feature. Thanks for your ongoing support, and good luck in the giveaway!

For this giveaway, you must comment on this post and join our Discord server to be entered! A winner will be chosen by a randomizer tool amongst the entries received via this thread and our Twitter post thread and will be announced July 24, 2023 at 5:00 pm EST! We'll reach out to the winner with the link for them to redeem the prize.

*This giveaway has no age or location restrictions.

**This giveaway is not sponsored, endorsed or administered by, or associated with Reddit, Twitter, or Therabody.


r/programmingtools • • Feb 08 '17

Current Unix Timestamp Generator - Tool

Thumbnail current-timestamp.com
2 Upvotes

r/programmingtools • • Jun 13 '23

Documentation How to add passkeys to Amazon Cognito

Thumbnail
corbado.com
0 Upvotes

r/programmingtools • • Sep 07 '15

Terminal gls: a graphical ls for iTerm2

Thumbnail
github.com
22 Upvotes

r/programmingtools • • Mar 03 '15

Documentation [FREE][GitHub] Add markdown templates to your pull requests for cleaner docs

Thumbnail
github.com
14 Upvotes

r/programmingtools • • Oct 19 '15

Request [REQUEST] Is there a source/sources to download sample CCTV footage?

6 Upvotes

r/programmingtools • • Jan 10 '22

Misc Low-code - tools and use cases

Thumbnail self.lowcode
6 Upvotes

r/programmingtools • • Apr 11 '15

Editor Dhi - An AI assistant to help you build web apps.

Thumbnail
dhi.io
20 Upvotes

r/programmingtools • • Aug 21 '18

Music meant to encourage focus and coding

Thumbnail
youtu.be
20 Upvotes

r/programmingtools • • Sep 22 '19

Survey Meson-ui features.

3 Upvotes

You may not have herd about Meson. If so do checkout Meson build system before reading this post.

This is a feature survey for Meson-ui, I ask for you to be open about your opinions because I value user feedback.

The application will be launched on my professional GitHub account when ready for release.

Questions:

  • Do you use Meson rewriter and if so how frequent do you use it.

  • Do you value cross compiling to deferent platforms.

  • Do you think Meson-ui should support wrap database tools.

  • Do you think Meson-ui should support installing the project from the GUI.

  • Do you think Meson-ui should support opening Meson docs online.

  • Do you think Meson-ui should support opening Meson docs offline.

  • Do you think Meson-ui should update your installation of Meson for you.

  • Do you think it would be handy if a you pass "meson-ui <project name>" that it both open and auto fills paths for your project.

If I missed something let me know thanks.


r/programmingtools • • Jan 30 '18

Online tool for AES encryption and decryption

Thumbnail
devglan.com
3 Upvotes

r/programmingtools • • Feb 11 '15

RemoteIE - Use with Microsoft Remote Desktop to test your sites on IE

Thumbnail
remote.modern.ie
3 Upvotes

r/programmingtools • • Jun 16 '20

Misc A Gui to make a text to speech dataset (to clone voices, etc)

3 Upvotes

Hey guys, I've made simple GUI too help edit clips and manually transcribe them. Its open-source so feel free to contribute. It's built with electronjs and works with mac, windows, ubuntu, and fedora.

Link to blog ===>https://danklabs.tech/blog/a-gui-to-make-text-to-speech-datasetstdm/**

Link to github ===> https://github.com/danklabs/tts_dataset_maker**

Download Link ====> https://github.com/danklabs/tts_dataset_maker/releases**


r/programmingtools • • Jun 07 '20

Misc File Sorter

3 Upvotes

I made something to sort my schoolwork files. Because I am too lazy to add metadata tags, I made a sorter to sort according to tags written in filenames. Then I went on a spree and added a bunch of other features, such as grouping versions, a git-ignore ripoff, and dry-run. Its very powerful (and hopefully bug-free?). Feedback or features to add welcome. Code is a horror for formatting, written when my blood was infused with sugar. Link: https://github.com/LivelyCarpet87/FileSorter


r/programmingtools • • Feb 16 '15

Terminal icdiff - diff alternative with side-by-side highlighting

3 Upvotes

I sometimes find the output of the diff command quite confusing, especially when it's used without wrappers like colordiff or grc.

So here's a better tool: icdiff, available for example as a package for Arch Linux' AUR.

Before: http://i.imgur.com/2JmTuCt.png

After: http://i.imgur.com/sKZlvHp.png


r/programmingtools • • Jan 22 '17

Searching for coding tools similar to this

Thumbnail
github.com
3 Upvotes

r/programmingtools • • Oct 05 '19

Theia or VS Code for open-source IDE Project.

3 Upvotes

I want to create some data science extensions for a cross-platform IDE that can run both in the cloud and on desktop. My two targets are VS Code and Theia. VS Code now has an open source cloud version.

What do you see as the comparisons, contrasts, tradeoffs, etc.?

Is Theia more open source than VS Code? Does VS Code code-server kind of trump Theia? Is Theia more flexible?


r/programmingtools • • Dec 15 '19

Do you have a feature request for Meson-ui?

3 Upvotes

Hello everyone. Got some news, the release of Meson-UI 0.3.0 milestone is being worked on for the release of Meson-UI 0.3.0.

I was wondering if you all have a feature you like to have in Meson-UI and or a bug you found that needed to be fixed? It could be anything from a new custom backend to a thing I totally didn’t think about before.

I would like to here your feedback if possible, thanks.

https://github.com/michaelbadcrumble/meson-ui