{"id":21288094,"url":"https://github.com/andrusenn/atracksystem","last_synced_at":"2026-05-16T23:09:01.104Z","repository":{"id":104836673,"uuid":"111479135","full_name":"andrusenn/ATrackSystem","owner":"andrusenn","description":"System tracking for processing ","archived":false,"fork":false,"pushed_at":"2018-01-08T23:56:36.000Z","size":966,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T05:29:44.033Z","etag":null,"topics":["computer-vision","library","processing","tracking"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrusenn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-21T00:43:10.000Z","updated_at":"2019-06-14T22:25:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf2f7c05-ffd4-41ec-86f4-ea6710442266","html_url":"https://github.com/andrusenn/ATrackSystem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrusenn%2FATrackSystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrusenn%2FATrackSystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrusenn%2FATrackSystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrusenn%2FATrackSystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrusenn","download_url":"https://codeload.github.com/andrusenn/ATrackSystem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243748419,"owners_count":20341676,"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":["computer-vision","library","processing","tracking"],"created_at":"2024-11-21T12:18:48.953Z","updated_at":"2026-05-16T23:08:56.057Z","avatar_url":"https://github.com/andrusenn.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ATrackSystem\nSystem blob tracking for processing / Sistema de seguimiento de objetos para Processing\n\n# Uso\n```[pde]\n/*\nEjemplo que utiliza la librería ABlobSystem que depende de OpenCV for processing\ny kinect\n*/\n\nimport gab.opencv.Contour;\nimport hidensource.ablobsystem.*;\nimport hidensource.atracksystem.*;\nimport org.openkinect.freenect.*;\nimport org.openkinect.processing.*;\n\nArrayList\u003cATrackObject\u003e tracked;\nATrackSystem ts;\n\nvoid setup(){\n\n}\nvoid draw(){\n      background(0);\n      rawDepth = kinect.getRawDepth();\n      for (int i = 0; i \u003c rawDepth.length; i++) {\n            float m = rawDepthToCM(rawDepth[i]);\n            if (m \u003e= minDepth \u0026\u0026 m \u003c= maxDepth) {\n                  depthImg.pixels[i] = color(255);\n            } else {\n                  depthImg.pixels[i] = color(0);\n            }\n      }\n      // Draw the thresholded image\n      depthImg.updatePixels();\n      low_res.copy(depthImg, 0, 0, depthImg.width, depthImg.height, 0, 0, 320*2, 240*2);\n      blobs = bs.getBlobs(low_res);\n      // Seguimiento de blobs -----------------\n      ArrayList o = new ArrayList\u003cATrackObject\u003e();\n      for (int i = 0; i \u003c blobs.size (); i++) {\n            ABlob ab = (ABlob) blobs.get(i);\n            ATrackObject to = new ATrackObject();\n            to.x  = map(ab.cx, 0, low_res.width, 0, width);\n            to.y  = map(ab.cy, 0, low_res.height, 0, height);\n            to.width = int(ab.width * pw);\n            to.height = int(ab.height * ph);\n            o.add(to);\n      }\n      ts.compute(o);\n      for (ABlob b : blobs) {\n            // Contorno ----------------------------\n            beginShape();\n            strokeWeight(3);\n            stroke(255, 0, 0);\n            //noStroke();\n            fill(255, 0, 0, 50);\n            if (b.containsPoint(100, 100)) {\n                  println(\"si\");\n            }\n            for (PVector point : b.contourPoints) {\n                  vertex(point.x * pw, point.y * pw);\n            }\n            endShape(CLOSE);\n            // Box ---------------------------------\n            // stroke(255, 255, 0);\n            //fill(255, 255, 0, 50);\n            //rect(b.x * pw, b.y * pw, b.width * pw, b.height * pw);\n      }\n}\n\n// Cuando detecta un objeto \nvoid onNewTrackObject( ATrackObject to ) {\n      println(\"Detectado: \" + to.id);\n}\n// Se actualiza\nvoid onUpdateTrackObject( ATrackObject to ) {\n      println(to.x, to.y);\n      stroke(255);\n      strokeWeight(1);\n      fill(255);\n      text(\"id: \" + to.id, to.x+20, to.y-20);\n      line(to.x-10, to.y, to.x+10, to.y);\n      line(to.x, to.y-10, to.x, to.y+10);\n}\n// Cuando desaparece\nvoid onDeleteTrackObject( ATrackObject to ) {\n\n}\n```\n \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrusenn%2Fatracksystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrusenn%2Fatracksystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrusenn%2Fatracksystem/lists"}