Pictoblox: AI Object Identifier | Python Coding

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ส.ค. 2024
  • This is a program written in Python using Pictoblox to perform object detection in any images. The codes for this program are available as follows:
    Square Box
    sprite1 = Sprite('Square Box')
    sprite2 = Sprite('Hazel')
    import time
    obj = ObjectDetection()
    pen = Pen()
    pen.clear()
    obj.setthreshold("0.4")
    obj.analysestage()
    obj.disablebox()
    while True:
    sprite2.say("There are " + str(obj.count()) + " objects detected" + " in this picture", 2)
    for i in range(1, obj.count()+1):
    sprite1.setx(obj.x(i))
    sprite1.sety(obj.y(i))
    sprite1.setsize(obj.width(i))
    sprite1.say(str(i) + ". " + obj.classname(i))
    pen.stamp()
    time.sleep(1)
    pen.clear()
    time.sleep(3)
    Stage
    No Codes Here !!!
    Hazel
    No Codes Here !!!
    #STEMpedia #stemeducation #stem #fyp #Globalgoals #Innovation #inovationaward2023 #india #usa #tech #technology #objectdetection #python #images #pictoblox #sprite #detector #usgs #bgs #bgs2022 #projects #viral #malaysia #youtubeshorts #youtube #programming #ai #informationtechnology #machinelearning #uk #sprite #scratch #blockcoding #artificialintelligence

ความคิดเห็น • 1