Search found 3 matches

by satbirsoni
Thu Dec 13, 2018 11:52 pm
Forum: General Topics
Topic: is it a bug in image.div
Replies: 1
Views: 1259

is it a bug in image.div

print("Before: ", img.get_pixel(1,1)) img.div(2) print("After: ", img.get_pixel(1,1)) Before: 166 After: 255 Are we missing a division after multipling with pScale int pScale = COLOR_GRAYSCALE_MAX - COLOR_GRAYSCALE_MIN; // <--------------- see this for (int i = 0, j = img->w; i < j; i++) { if ((!ma...
by satbirsoni
Thu Dec 13, 2018 5:22 pm
Forum: General Topics
Topic: Create Empty Image Object without using Sensor or Reader
Replies: 2
Views: 1279

Re: Create Empty Image Object without using Sensor or Reader

Thanks Nyamekye,

I run my unit test on Unix build of Micropython.

Most of Open MV functions are hardware independent. Like rotate an image, Flip an Image.
It easy to unit test them on pre-defined data.

I will submit a PR for this! Thanks

Regards
Satbir
by satbirsoni
Thu Dec 13, 2018 1:20 am
Forum: General Topics
Topic: Create Empty Image Object without using Sensor or Reader
Replies: 2
Views: 1279

Create Empty Image Object without using Sensor or Reader

This is useful in Unit testing, where there is no hardware available.
I would like to test my image processing chain with a lot of scenarios.

Currently, there is no way to create an without using sensor or Image reader.

Please suggest.

Go to advanced search