"""
The example below shows how a carpark fitted with IOT can use this project to detect an incoming car

"""

#import might not work, if have to work your way around import
import LookU.code, LookU.settings

if __name__ == "__main__":


    #initialize LookU security with the model and source
    security = code.LookU(settings.model,settings.video_source)

    while True:
        
        #grabs a frame
        security.read_frame()

        #detects objects in frame
        security.detect_objects()

        #draw a rectangle around the object detected
        security.mark_objects()

        #if object is detected do something
        if security.object_detected():

            # your call back function here

            pass
997d00b2757143604ec67b6dfe6d51add6780e7f
<mask token>

<mask token>
if __name__ == '__main__':
    security = code.LookU(settings.model, settings.video_source)
    while True:
        security.read_frame()
        security.detect_objects()
        security.mark_objects()
        if security.object_detected():
            pass

<mask token>
import LookU.code, LookU.settings
if __name__ == '__main__':
    security = code.LookU(settings.model, settings.video_source)
    while True:
        security.read_frame()
        security.detect_objects()
        security.mark_objects()
        if security.object_detected():
            pass

"""
The example below shows how a carpark fitted with IOT can use this project to detect an incoming car

"""

#import might not work, if have to work your way around import
import LookU.code, LookU.settings

if __name__ == "__main__":


    #initialize LookU security with the model and source
    security = code.LookU(settings.model,settings.video_source)

    while True:
        
        #grabs a frame
        security.read_frame()

        #detects objects in frame
        security.detect_objects()

        #draw a rectangle around the object detected
        security.mark_objects()

        #if object is detected do something
        if security.object_detected():

            # your call back function here

            pass