{"id":21391078,"url":"https://github.com/slyautomation/osrs_yolov3","last_synced_at":"2025-07-13T17:30:45.762Z","repository":{"id":48613782,"uuid":"349650924","full_name":"slyautomation/osrs_yolov3","owner":"slyautomation","description":"Yolov3 Object Detection In OSRS using Python code, Detecting Cows - Botting","archived":false,"fork":false,"pushed_at":"2023-12-13T11:03:45.000Z","size":61866,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2023-12-14T11:49:19.831Z","etag":null,"topics":["keras","machine-learning","mlbot","object-detection","ocr","oldschoolrunescape","osrs","runescape","yolo","yolov3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slyautomation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-03-20T06:54:23.000Z","updated_at":"2023-12-14T11:49:19.832Z","dependencies_parsed_at":"2023-12-13T11:53:29.657Z","dependency_job_id":null,"html_url":"https://github.com/slyautomation/osrs_yolov3","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slyautomation%2Fosrs_yolov3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slyautomation%2Fosrs_yolov3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slyautomation%2Fosrs_yolov3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slyautomation%2Fosrs_yolov3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slyautomation","download_url":"https://codeload.github.com/slyautomation/osrs_yolov3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225903037,"owners_count":17542493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["keras","machine-learning","mlbot","object-detection","ocr","oldschoolrunescape","osrs","runescape","yolo","yolov3"],"created_at":"2024-11-22T13:23:38.372Z","updated_at":"2024-11-22T13:23:39.019Z","avatar_url":"https://github.com/slyautomation.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Here's an article guide for this project: \n[\u003cimg src=\"https://github.com/slyautomation/osrs_yolov3/assets/81003470/017fe36c-82e4-41e5-b473-61d202d53764\"\u003e](https://www.slyautomation.com/blog/how-to-perform-object-detection-using-yolov3-tesseract-ocr-text-recognition-and-automating-clicks-with-pyautogui/)\n\n# osrs_yolov3\nYolov3 Object Detection In OSRS using Python code, Detecting Cows - Botting\n\nname: GeForce GTX 1060 6GB major: 6 minor: 1 memoryClockRate(GHz): 1.7085 (Average: 12 FPS)\n\n![ezgif-7-7bcf90e20cc2](https://user-images.githubusercontent.com/81003470/132772257-80ac3835-7b7b-4f30-9ba5-91f7999506b5.gif)\n\n ![image](https://user-images.githubusercontent.com/81003470/116421155-ef104300-a881-11eb-930d-56b4b93511fd.png)\n\n\n# Quick Start\n\nDownload YOLOv3 weights from YOLO website. Run in Pycharm Terminal: \n\n\nhttps://pjreddie.com/media/files/yolov3.weights ----- save this in 'model_data' directory\n\n```diff\nAlternative tiny weight file uses less computing but is less accurate useful for getting quicker detection rates\n```\nhttps://github.com/smarthomefans/darknet-test/blob/master/yolov3-tiny.weights ----- save this in 'model_data' directory\n\nConvert the Darknet YOLO model to a Keras model.\n\ntype in terminal: \n\npip install -r requirements\n\nthen\n\npython convert.py -w model_data/yolov3.cfg model_data/yolov3.weights model_data/yolov3.h5\n\n![image](https://user-images.githubusercontent.com/81003470/111890820-5ea04080-8a41-11eb-8fea-daf0a551bf07.png)\n\n# Download Resources\n\nNote: if there's issues with converting the weights to h5 use this yolo weights in the interim: https://drive.google.com/file/d/1_0UFHgqPFZf54InU9rI-JkWHucA4tKgH/view?usp=sharing\n\ngoto Google drive for large files and specifically the osrs cow and goblin weighted file: https://drive.google.com/folderview?id=1P6GlRSMuuaSPfD2IUA7grLTu4nEgwN8D\n\nand see full video tutorial: https://youtu.be/X3snnwzJfEw\n\nCheck if your gpu will work: https://developer.nvidia.com/cuda-gpus and use the cuda for your model and the latest cudnn for the cuda version.\n\npycharm = https://www.jetbrains.com/pycharm/download/download-thanks.html?platform=windows\u0026code=PCC\n\ncuda 10.0 = https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda_10.0.130_411.31_win10\n\ncudnn = https://developer.nvidia.com/rdp/cudnn-archive#a-collapse765-10\n\nlabelImg = https://github.com/heartexlabs/labelImg/releases\n\ntesseract-ocr = https://sourceforge.net/projects/tesseract-ocr-alt/files/tesseract-ocr-setup-3.02.02.exe/download or for all versions: https://github.com/UB-Mannheim/tesseract/wiki\n\nCredit to: https://github.com/pythonlessons/YOLOv3-object-detection-tutorial\n\n## Trouble Shooting:\n### Images and XML files for object detection\nexample unzip files in directory OID/Dataset/train/cow/: cows.z01 , cows.z02 , cows.z03\n\nadd image and xml files to folder OID//Dataset//train//name of class **** Add folder to train with the name of each class \n\n***** IMAGES MUST BE IN JPG FORMAT (use png_jpg to convert png files to jpg files) *******\n\nrun voc_to_yolov3.py - this will create the images class path config file and the classes list config file \n\nhttps://user-images.githubusercontent.com/81003470/141400168-e0bb826b-a7e4-46a4-9f09-1a3cb0a44dcd.mp4\n\n### Changing default terminal and generating h5 file\nEnsure you're using cmd for your terminal, by using the top tab 'file', then select 'settings'.\nusing the left navigation pane select the section for 'Tools' then in the drop down select 'Terminal'.\nWithin the section for Application Settings change/make sure the Shell Path: is your cmd.exe path.\nclick apply then ok.\nclose the project then reopen. In the terminal view type: \ncd venv\ncd scripts\nactivate.bat\n\nhttps://user-images.githubusercontent.com/81003470/147396549-2a40e819-535c-41e6-8809-e6efdd4a1d0c.mp4\n\nwhile using the pip -r requirements and still get the error: ```cannot import name 'batchnormalization' from 'keras.layers.normalization```\ndownload this and save to model_data folder https://drive.google.com/file/d/1_0UFHgqPFZf54InU9rI-JkWHucA4tKgH/view?usp=sharing. \n\n### Resolving Batchnormalisation error\nthis is the error log for batchnormalisation: https://github.com/slyautomation/osrs_yolov3/blob/main/error_log%20batchnormalization.txt\nthis is caused by having an incompatiable version of tensorflow. the version needed is 1.15.0\n\npip install --upgrade tensorflow==1.15.0\n\nsince keras has been updated but will still cause the batchnomralisation error, downgrade keras in the same way to 2.2.4:\n\npip install --upgrade keras==2.2.4\n\nrefer to successful log of python convert.py -w model_data/yolov3.cfg model_data/yolov3.weights model_data/yolov3.h5\n\nhttps://github.com/slyautomation/osrs_yolov3/blob/main/successful_log%20no%20batchnormalisation%20issues.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslyautomation%2Fosrs_yolov3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslyautomation%2Fosrs_yolov3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslyautomation%2Fosrs_yolov3/lists"}