# Keep getting the error "AttributeError: 'function' object has no attribute 'find\_blobs' "

**URL:** <https://forums.openmv.io/t/keep-getting-the-error-attributeerror-function-object-has-no-attribute-find-blobs/10311>\
**Category:** OpenMV Boards\
**Created:** [December 10, 2024, 1:36pm UTC](https://forums.openmv.io/t/keep-getting-the-error-attributeerror-function-object-has-no-attribute-find-blobs/10311 "2024-12-10T13:36:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iseealurt](https://avatars.discourse-cdn.com/v4/letter/i/8491ac/32.png) [@iseealurt](https://forums.openmv.io/u/iseealurt)\
**Post date:** [December 10, 2024, 1:36pm UTC](https://forums.openmv.io/t/keep-getting-the-error-attributeerror-function-object-has-no-attribute-find-blobs/10311/1 "2024-12-10T13:36:11Z")

</div>

Guys today i was just testing my cams, it just worked before I added some functions to my code,  
after that it kept getting the error as the topic says  
here is some of my codes,which is working normally last hour

```auto

def detect_blue():
    while True:
        sensor.skip_frames(time=10)
        img = sensor.snapshot
        blobs_blue = img.find_blobs([blue_threshold], pixels_threshold=10, area_threshold=10, merge=True)
            largest_blob_blue = max(blobs_blue, key=lambda b: b.pixels())
            img.draw_rectangle(largest_blob_blue.rect(), color=(0, 255, 0))
            img.draw_cross(largest_blob_blue.cx(), largest_blob_blue.cy(), color=(0, 255, 0))
            img.draw_string(largest_blob_blue.cx(), largest_blob_blue.cy(),"blue", color=(0, 255, 0))
   
            blue_x, blue_y = largest_blob_blue.cx(), largest_blob_blue.cy()
            Max_pixels_blue = largest_blob_blue.pixels()
            if Max_pixels_blue >= min_area_to_break:
        else:
            print("No blue found")
            return -1,-1

```

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [December 11, 2024, 3:58am UTC](https://forums.openmv.io/t/keep-getting-the-error-attributeerror-function-object-has-no-attribute-find-blobs/10311/2 "2024-12-11T03:58:07Z")

</div>

```auto
img = sensor.snapshot

```

Is just assinging a variable a function name.

```auto
img = sensor.snapshot()

```

Is calling the function.
