{"id":2239,"date":"2020-06-25T18:05:04","date_gmt":"2020-06-25T18:05:04","guid":{"rendered":"http:\/\/elbsolutions.com\/projects\/?p=2239"},"modified":"2022-02-03T11:24:25","modified_gmt":"2022-02-03T17:24:25","slug":"ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help","status":"publish","type":"post","link":"https:\/\/elbsolutions.com\/projects\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\/","title":{"rendered":"AI Image Classification tools &#8211; drawing boxes for YOLOv4 is a pain but there is help"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I am classifying using YOLOv4 and using <a href=\"https:\/\/github.com\/AlexeyAB\/darknet#how-to-train-to-detect-your-custom-objects\">AlexeyAB&#8217;s<\/a> version of Darknet. He also has a classifying tool (putting boxes on images) for it called <a href=\"https:\/\/github.com\/AlexeyAB\/Yolo_mark\">Yolo_mark<\/a>. I signed up <a href=\"https:\/\/www.youtube.com\/watch?v=5pYh1rFnNZs\">for a course and the teacher (who is totally helping me out &#8211; super guy on the video and in real life)<\/a> suggests Supervisor.ly but it seems to be an online tool and I have thousands of images to mark\/classify (oh and I am from Dutch descent &#8211; so the enterprise version will not be an option as there is no downloadable trial version). So his course isn&#8217;t quite ready (he said a couple weeks) where he will demo this so I have searched a bit and I found a VERY basic tool that is keyboard driven except selecting and moving the box. SUPER FAST TO USE it turns out. It needed a couple tweaks too so here goes ( I should mention <a href=\"https:\/\/medium.com\/ai-world\/how-to-train-yolov4-for-custom-objects-detection-in-google-colab-1e934b8ef685\">I am following this guy&#8217;s guide<\/a> when AlexeyAB&#8217;s instructions got a little vague) &#8230; <\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">It says to download it, then open up the .sln in VisualStudio. I already have the compiler downloaded (forget the name dangit). Anyways &#8211; there are these user variables like $(MY_OWN_VAR) that you can use like &#8220;environment variables withing VS&#8221; but he had EVERYTHING perfectly setup to use those variables &#8211; but how do I set them? Well a file was missing where these would be stored. So these variables are <a href=\"https:\/\/docs.microsoft.com\/en-us\/cpp\/build\/reference\/common-macros-for-build-commands-and-properties?view=vs-2019#:~:text=%24(SolutionDir),a%20solution%20in%20the%20IDE.\">(stupidly) called &#8220;macros&#8221;<\/a> . Finding this phraseology too 15 minutes on Google &#8211; once I found out what they were called it was a snap.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What is missing to get these macros &#8220;set&#8221; is a file &#8211; it is called User Macros &#8211; or a settings file. Here is a demo that if you follow will make it come alive. Then &#8211; you have to add that file as a file to all the compile environments that you have &#8211; so in my case Debug &#8211; x64, Release x64. The main point is to go to View-&gt;Property Manager-&gt;Create New File. Once it is created &#8211; add the macro &#8211; in this case the one I am focused on was called <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>OPENCV_DIR and set it to C:\\opencv\\build\\install<\/li><li>Then add this macros file to all the builds (just in case really) in the Project Manager tab<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Then it compiled just like he said it would. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Couple more steps: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>When I moved the whole shebang to another computer &#8211; I found I had to install Microsoft&#8217;s re-distributable 2015-2019<\/li><li>Also had to move a file from OpenCV directory to the main directory (called Release)  called opencv_world410.dll. I had to do a search using Windows Explorer to find it in OpenCV (in my case c:\\opencv). This is likely because the OpenCV directory was not in my path.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">All works! Super easy tool to use. It is so easy it is frustrating at first til you realize that life COULD BE SIMPLER . Thanks again for the tool<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">He prof&#8217;s favourite tools for this seem to be Supervisor.ly, Colab Labeller, Dark Label, LabelImg, LabelBox. So far, Yolo_mark is mine (cause I have only tried LabelImg for Pascal VOC format). <a href=\"http:\/\/elbsolutions.com\/projects\/convert-pascal-voc-to-yolov4-v3-format\">See my article of what I used to transform from Pascal VOC to YOLOv4 format<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am classifying using YOLOv4 and using AlexeyAB&#8217;s version of Darknet. He also has a classifying tool (putting boxes on images) for it called Yolo_mark. I signed up for a course and the teacher (who is totally helping me out &#8211; super guy on the video and in real life) suggests Supervisor.ly but it seems [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2239","post","type-post","status-publish","format-standard","hentry","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>AI Image Classification tools - drawing boxes for YOLOv4 is a pain but there is help - ELB Solutions.com Inc.<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elbsolutions.com\/projects\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AI Image Classification tools - drawing boxes for YOLOv4 is a pain but there is help - ELB Solutions.com Inc.\" \/>\n<meta property=\"og:description\" content=\"I am classifying using YOLOv4 and using AlexeyAB&#8217;s version of Darknet. He also has a classifying tool (putting boxes on images) for it called Yolo_mark. I signed up for a course and the teacher (who is totally helping me out &#8211; super guy on the video and in real life) suggests Supervisor.ly but it seems [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elbsolutions.com\/projects\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\/\" \/>\n<meta property=\"og:site_name\" content=\"ELB Solutions.com Inc.\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-25T18:05:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T17:24:25+00:00\" \/>\n<meta name=\"author\" content=\"Etienne Bley\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etienne Bley\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\\\/\"},\"author\":{\"name\":\"Etienne Bley\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"headline\":\"AI Image Classification tools &#8211; drawing boxes for YOLOv4 is a pain but there is help\",\"datePublished\":\"2020-06-25T18:05:04+00:00\",\"dateModified\":\"2022-02-03T17:24:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\\\/\"},\"wordCount\":569,\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\\\/\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\\\/\",\"name\":\"AI Image Classification tools - drawing boxes for YOLOv4 is a pain but there is help - ELB Solutions.com Inc.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\"},\"datePublished\":\"2020-06-25T18:05:04+00:00\",\"dateModified\":\"2022-02-03T17:24:25+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI Image Classification tools &#8211; drawing boxes for YOLOv4 is a pain but there is help\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\",\"name\":\"ELB Solutions.com Inc.\",\"description\":\"Bringing all your IT Pieces together\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\",\"name\":\"Etienne Bley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"caption\":\"Etienne Bley\"},\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/author\\\/etienne-bley\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AI Image Classification tools - drawing boxes for YOLOv4 is a pain but there is help - ELB Solutions.com Inc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elbsolutions.com\/projects\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\/","og_locale":"en_US","og_type":"article","og_title":"AI Image Classification tools - drawing boxes for YOLOv4 is a pain but there is help - ELB Solutions.com Inc.","og_description":"I am classifying using YOLOv4 and using AlexeyAB&#8217;s version of Darknet. He also has a classifying tool (putting boxes on images) for it called Yolo_mark. I signed up for a course and the teacher (who is totally helping me out &#8211; super guy on the video and in real life) suggests Supervisor.ly but it seems [&hellip;]","og_url":"https:\/\/elbsolutions.com\/projects\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\/","og_site_name":"ELB Solutions.com Inc.","article_published_time":"2020-06-25T18:05:04+00:00","article_modified_time":"2022-02-03T17:24:25+00:00","author":"Etienne Bley","twitter_misc":{"Written by":"Etienne Bley","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elbsolutions.com\/projects\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\/#article","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\/"},"author":{"name":"Etienne Bley","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"headline":"AI Image Classification tools &#8211; drawing boxes for YOLOv4 is a pain but there is help","datePublished":"2020-06-25T18:05:04+00:00","dateModified":"2022-02-03T17:24:25+00:00","mainEntityOfPage":{"@id":"https:\/\/elbsolutions.com\/projects\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\/"},"wordCount":569,"articleSection":["General"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elbsolutions.com\/projects\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\/","url":"https:\/\/elbsolutions.com\/projects\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\/","name":"AI Image Classification tools - drawing boxes for YOLOv4 is a pain but there is help - ELB Solutions.com Inc.","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/#website"},"datePublished":"2020-06-25T18:05:04+00:00","dateModified":"2022-02-03T17:24:25+00:00","author":{"@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"breadcrumb":{"@id":"https:\/\/elbsolutions.com\/projects\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elbsolutions.com\/projects\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elbsolutions.com\/projects\/ai-image-classification-tools-drawing-boxes-for-yolov4-is-a-pain-but-there-is-help\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elbsolutions.com\/projects\/"},{"@type":"ListItem","position":2,"name":"AI Image Classification tools &#8211; drawing boxes for YOLOv4 is a pain but there is help"}]},{"@type":"WebSite","@id":"https:\/\/elbsolutions.com\/projects\/#website","url":"https:\/\/elbsolutions.com\/projects\/","name":"ELB Solutions.com Inc.","description":"Bringing all your IT Pieces together","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elbsolutions.com\/projects\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39","name":"Etienne Bley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","caption":"Etienne Bley"},"url":"https:\/\/elbsolutions.com\/projects\/author\/etienne-bley\/"}]}},"_links":{"self":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/2239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/comments?post=2239"}],"version-history":[{"count":5,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/2239\/revisions"}],"predecessor-version":[{"id":2246,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/2239\/revisions\/2246"}],"wp:attachment":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/media?parent=2239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/categories?post=2239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/tags?post=2239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}