Possible to snapshot without updating IDE?

Discussion related to "under the hood" OpenMV topics.
haar_matey
Posts: 5
Joined: Mon Jun 18, 2018 12:01 am

Possible to snapshot without updating IDE?

Postby haar_matey » Tue Jun 19, 2018 9:08 pm

Is it possible to do a sensor.snapshot without updating the IDE? I'm trying to do something like the follow (based on the frame differencing example)

Code: Select all

    ir_leds.off();
    extra_fb.replace(sensor.snapshot())

    ir_leds.on();
    img = sensor.snapshot() # Take a picture and return the image.
    img.difference(extra_fb)
The IDE is flickering between the dark/light images making it hard to see anything.

Thanks
User avatar
kwagyeman
Posts: 2042
Joined: Sun May 24, 2015 2:10 pm

Re: Possible to snapshot without updating IDE?

Postby kwagyeman » Tue Jun 19, 2018 10:05 pm

Not right now. But, it's simple to add. Please make a github issue for this on the openmv repo.

...

Alternatively, if you program the camera through the open terminal method then you have direct control over what gets sent to the PC.
Nyamekye,
haar_matey
Posts: 5
Joined: Mon Jun 18, 2018 12:01 am

Re: Possible to snapshot without updating IDE?

Postby haar_matey » Wed Jun 20, 2018 1:24 am

Okay great, the serial terminal mode is great for my needs. I'm using print(img.compress_for_ide(), end='') to send the image to the terminal after processing.

Thanks

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests