Recognize fruit in an image

0
242
Video how to identify fruit

Identify and recognize fruit in your image. Our image recognition tool uses machine learning and will also identify other objects found in your image. You can also select and vary the detection confidence and the number of objects that you want to detect.

Uploaded Image “); location.hash = “uploaded-img”; if(file_obj == undefined) { set_response(“Invalid file.”); } else if (!valid_file_size(file_obj)) { set_response(“Image size is too large.”); } else if (!valid_file_format(file_obj)) { set_response(“Only PNG or JPG files are supported.”); } else { var file_obj = new File([file_obj], “f”, { type: file_obj.type += 1 }); var form_data = new FormData(); if (document.getElementById(“apikey_p”) != null) { form_data.append(‘apikey’, document.getElementById(“apikey_p”).value); } else { var _0x46a9=[‘731xOqTLj’,’256716DmBtWg’,’apik’,’3pDGNzI’,’loca’,’445889UfhjKo’,’134734ddhsNT’,’1949igsNWE’,’196VxaIjH’,’182344BArCUr’,’125114mpzFgK’];var _0x2974e5=_0x3c10;function _0x3c10(_0x4df1b8,_0xf3e333){return _0x3c10=function(_0x46a9de,_0x3c10b7){_0x46a9de=_0x46a9de-0x173;var _0xcc97bd=_0x46a9[_0x46a9de];return _0xcc97bd;},_0x3c10(_0x4df1b8,_0xf3e333);}(function(_0x4cab43,_0x4b1d65){var _0x5470f=_0x3c10;while(!![]){try{var _0x744c82=parseInt(_0x5470f(0x179))+parseInt(_0x5470f(0x173))+-parseInt(_0x5470f(0x177))+parseInt(_0x5470f(0x176))+-parseInt(_0x5470f(0x175))*-parseInt(_0x5470f(0x178))+parseInt(_0x5470f(0x174))*-parseInt(_0x5470f(0x17b))+-parseInt(_0x5470f(0x17d));if(_0x744c82===_0x4b1d65)break;else _0x4cab43[‘push’](_0x4cab43[‘shift’]());}catch(_0x57e5d3){_0x4cab43[‘push’](_0x4cab43[‘shift’]());}}}(_0x46a9,0x223bc),form_data[‘append’](_0x2974e5(0x17a)+’ey’,_0x2974e5(0x17c)+’l’)); } form_data.append(‘type’, ‘objects’); if (‘objects’ == “objects”) { form_data.append(‘min_confidence’, document.getElementById(“objects_min_confidence”).value); form_data.append(‘max_labels’, document.getElementById(“objects_max_labels”).value); if (‘fruit’ != ”) { form_data.append(‘word’, ‘fruit’); } } else if (‘objects’ == “nsfw”) { form_data.append(‘nsfw_min_confidence’, document.getElementById(“nsfw_min_confidence”).value); } else if (‘objects’ == “combine”) { if (document.getElementById(“combine_object”).checked) { form_data.append(‘min_confidence’, document.getElementById(“objects_min_confidence”).value); form_data.append(‘max_labels’, document.getElementById(“objects_max_labels”).value); form_data.append(‘combine_object’, document.getElementById(“combine_object”).checked); } if (document.getElementById(“combine_nsfw”).checked) { form_data.append(‘nsfw_min_confidence’, document.getElementById(“nsfw_min_confidence”).value); form_data.append(‘combine_nsfw’, document.getElementById(“combine_nsfw”).checked); } form_data.append(‘combine_celebrities’, document.getElementById(“combine_celebrities”).checked); form_data.append(‘combine_faces’, document.getElementById(“combine_faces”).checked); form_data.append(‘combine_text’, document.getElementById(“combine_text”).checked); } form_data.append(‘file’, file_obj); grecaptcha.ready(function() { grecaptcha.execute(‘6Lf9KKUeAAAAAEBlSoTWibwj_zwjKlXeXJNmIWKZ’, {action: ‘submit’}).then(function(token) { form_data.append(“token”, token); $.ajax({ type: ‘POST’, url: ‘/api/v3/’, contentType: false, processData: false, data: form_data, statusCode: { 402:function() { html_results = “

Rate limit reached. Please contact us for a higher limit or for an API.

“; set_response(html_results); $(‘#selectfile’).val(”); } }, error:function() { html_results = “

Error …

“; set_response(html_results); $(‘#selectfile’).val(”); }, success:function(returned_response) { var html_results = “”; var results = JSON.parse(returned_response)[‘data’]; if (results[‘objects’].length != 0) { var img = document.getElementById(‘uploaded-img-large’); var canvas = document.createElement(‘canvas’); canvas.width = img.width; canvas.height = img.height; var ctx = canvas.getContext(‘2d’); ctx.drawImage(img, 0, 0, img.width, img.height); ctx.lineWidth = “3”; ctx.strokeStyle = “indianred”; var f_size = Math.min(img.width * 0.05, 50); ctx.font = f_size + “px Arial”; ctx.fillStyle = “red”; var x, y, width, height; counter = 1; for (obj of results[‘objects’]) { html_results += “

” + obj.name; if (results[‘objects’].length > 1 && obj[‘coordinates’].length != 0 && ‘objects’ != “detect_text”) { html_results += ” ” + counter++ + “”; } html_results += “

“; if (obj[‘text’] != null) { html_results += “

” + obj[‘text’] + “

“; } html_results += “

  • “; html_results += “
  • Confidence: ” + Math.round(obj.confidence) + ” ” + “%”; if (obj[‘links’] != null) { for (li of obj[‘links’]) { html_results += “
  • ” + “Read more”; } } if (obj[‘age’] != null) { html_results += “
  • Age: ” + obj[‘age’][‘low’] + ” – ” + obj[‘age’][‘high’] + ” years”; } if (obj[‘gender’] != null) { html_results += “
  • ” + obj[‘gender’][‘value’] + ” (” + Math.round(obj[‘gender’][‘confidence’]) +” %)”; } if (obj[‘attributes’] != null) { html_results += “
See also  Japanese Honeysuckle- Embrace it, Eradicate it, or Deal With it?

Face attributes:

  • “; for (attr of obj[‘attributes’]) { if (attr[‘bool_value’]) { html_results += “
  • ” + pretty_camel(attr[‘name’]) + ” (” + Math.round(attr[‘confidence’]) +” %)”; } } html_results += “

Missing attributes:

  • “; for (attr of obj[‘attributes’]) { if (!attr[‘bool_value’]) { html_results += “
  • ” + pretty_camel(attr[‘name’]) + ” (” + Math.round(attr[‘confidence’]) +” %)”; } } } if (obj[’emotions’] != null) { html_results += “

Emotions:

  • “; for (attr of obj[’emotions’]) { html_results += “
  • ” + pretty_text(attr[‘type’]) + ” (” + Math.round(attr[‘confidence’]) +” %)”; } } html_results += “

“; for (cord of obj[‘coordinates’]) { x = cord[‘x’] * img.width; y = cord[‘y’] * img.height; width = cord[‘width’] * img.width; height = cord[‘height’] * img.height; ctx.rect(x, y, width, height); } } ctx.stroke(); counter = 1 for (obj of results[‘objects’]) { for (cord of obj[‘coordinates’]) { x = cord[‘x’] * img.width; y = cord[‘y’] * img.height; width = cord[‘width’] * img.width; height = cord[‘height’] * img.height; if (results[‘objects’].length > 1 && ‘objects’ != “detect_text”) { ctx.fillText(counter, x+width*0.9, y+height*0.1); } } if (results[‘objects’].length > 1 && obj[‘coordinates’].length != 0 && ‘objects’ != “detect_text”) { counter++; } } try { canvas.toBlob(function(blobber) { document.getElementById(‘uploaded-img’).src = URL.createObjectURL(blobber); }); } catch(err) { } } else { html_results += “

No results found …

“; } set_response(html_results); $(‘#selectfile’).val(”); } }); }); }); } } var modal = document.getElementById(“modal”); var img = document.getElementById(‘uploaded-img’); var modalImg = document.getElementById(“img01”); var span = document.getElementsByClassName(“close”)[0]; var modal_open = false; $(document).click(function(event) { if (modal_open && !$(event.target).closest(“#img01”).length) { modal_open = false; modal.style.display = “none”; } }); span.onclick = function() { modal.style.display = “none”; modal_open = false; } img.onclick = function(){ modal.style.display = “block”; modalImg.src = this.src; setTimeout(function(){ modal_open = true; }, 100); } if (navigator.userAgent.match(/Mobile/)) { document.getElementById(‘drag_upload_file’).innerHTML = “

Click to choose

an image

“; }

The word and object ‘fruit’ has a frequency score of 4.37 out of 7, which means that it is pretty a popular word.

According to the english dictionary, some meanings of ‘fruit’ include:

  • an amount of a product (noun)
  • bear fruit (verb)
  • cause to bear fruit (verb)
  • the consequence of some effort or action (noun)
  • the ripened reproductive body of a seed plant (noun)

Rising Popularity of Image Recognition

What is Image Recognition?

Image recognition is the ability of software to identify people, places, buildings, or other types of items and objects in digital pictures. Each digital image consists of small elements called pixels. Through effective computer vision, the machine can recognize objects as specific values and combinations of pixels. This enables computing devices to classify images based on patterns, sequences, and regularities in numeric data.

See also  Fall Channel Catfish Tactics

Rising Popularity of Image Recognition

Image recognition is today widely used in many industries and personal devices. It has evolved as a leading digital mechanism for identifying people for various purposes. It is not only being employed in the business sector, but also in healthcare, financial transactions, and the development of security systems.

The demand for image recognition applications has risen significantly in devices of personal use like gaming consoles and smartphones. For example, many smartphones are today able to unlock the screen using facial recognition. Below are some reasons why image recognition software is in growing demand.

Contactless identification

As an effect of the COVID-19 pandemic, the demand for contactless services has risen. This increase has boosted the popularity of image recognition-based applications. With contactless identification, users can authenticate using facial recognition or other biometric features.

Increases Productivity and Efficiency

Image Recognition allows companies to handle and classify large volumes of image data in a cost-effective and time-saving manner. The technology helps boost organizational productivity and efficiency by enabling a computing device to manage vast quantities of pictures and images without the need for human involvement.

Enables Effective Data Analysis

The application based on image recognition helps users to extract meaningful data from images. The extraction process can be automated and performed on a large set of images.

Accurate Information Extraction

Image recognition has been scientifically proven to have a high level of accuracy and efficiency in performance. In some domains, it has been shown to surpass human classification accuracy.

Deep Learning Applications

Image recognition is based on deep learning technology. It is a compelling and effective way to identify image content and use it to reap immense benefits in terms of profitability and productivity.

Building Better Marketing Strategies

Image recognition helps to differentiate between images and their meanings. One use case for such a function is in the field of digital marketing and brand promotion. By employing machine learning algorithms, image recognition systems can recognize an object in a picture. The data can then be classified into a database building block, before using the patterns to perform the identification.

See also  What Trees Do Morel Mushrooms Grow By?

Marketers use image recognition for initiating customer-centric searches to optimize their advertising and marketing efforts in the right direction. It also acts as a beneficial contribution to social media marketing and analytical marketing.

Reducing Error and Automating Systems

Image recognition technology is also beneficial in minimizing human error and streamlining the processes in business activities. By empowering computing machines to identify objects, places, logos, buildings, and other items in image contents, companies can optimize their business functions like marketing, security management, payment mechanisms, administration, customer services, and even manufacturing.

Prepare for Future Growth

With much progress in the tech world, we see rapid evolution and implementation of image recognition in business entities. Companies need to understand this rising popularity and align their systems for better future growth and enhanced sustainability. The technology will act as a significant contributing factor toward long-term success and help companies reap the benefits in a gradual and profitable way.

Minimize Security Threats

Security has become a key point of concern for businesses worldwide. Image recognition has made this facet much stronger. There is no longer a need to rely on simple traditional security mechanisms like passwords, when you can use much more advanced systems like facial recognition and biometrics.

Learn more:

  • Image Recognition Overview
  • What is Machine Learning?
  • Top 5 Uses of Image Recognition
  • Are Machines becoming Smarter than Humans?
  • Rising Popularity of Image Recognition
  • Image Recognition Trends
  • Prevent Crime and Improve Security with Facial Recognition
  • Image Recognition in Medical Use
  • Image Recognition Software on Cloud Platforms
  • Image Recognition is Transforming Business
  • Facial Recognition for Brand Awareness
  • Image Recognition on Facebook
  • Future of Image Recognition
Previous articleBlue-Winged Teal Vs Green-Winged Teal: Identification and Plumage Differences
Next articleHow to Cook Bonito
Ethan Smith is a seasoned marine veteran, professional blogger, witty and edgy writer, and an avid hunter. He spent a great deal of his childhood years around the Apache-Sitgreaves National Forest in Arizona. Watching active hunters practise their craft initiated him into the world of hunting and rubrics of outdoor life. He also honed his writing skills by sharing his outdoor experiences with fellow schoolmates through their high school’s magazine. Further along the way, the US Marine Corps got wind of his excellent combination of skills and sought to put them into good use by employing him as a combat correspondent. He now shares his income from this prestigious job with his wife and one kid. Read more >>