Search found 2710 matches

by kwagyeman
Thu Jan 24, 2019 3:40 pm
Forum: General Topics
Topic: Linear Regression on M4
Replies: 5
Views: 119

Re: Linear Regression on M4

I dropped it from the feature list because we're having trouble fitting everything in RAM. I can rebuild the firmware for you with it back in if you like but I'll have to drop another feature. Are you capable of building the firmware? It's easy to turn the feature back on by uncommenting a define.
by kwagyeman
Thu Jan 24, 2019 11:52 am
Forum: Technical Discussion
Topic: Quantize network stops at "Network initialization done." step
Replies: 1
Views: 69

Re: Quantize network stops at "Network initialization done." step

Hi, that script isn't robust if the network is bad when you trained it. The error is happening before the conversion. What accuracy did you get on training the net and testing it? If they were bogus you cannot convert the network.
by kwagyeman
Thu Jan 24, 2019 11:50 am
Forum: General Topics
Topic: advices to train cnn
Replies: 7
Views: 237

Re: advices to train cnn

Hi, did you actually reduce the number of characters you are feeding to it? You should see yourself scoring like 90% and above during training and test for the two character classes you wanted.
by kwagyeman
Thu Jan 24, 2019 1:33 am
Forum: General Topics
Topic: Shape Detection
Replies: 18
Views: 4825

Re: Shape Detection

Move the pin1.value() statement outside of the for loop.
by kwagyeman
Wed Jan 23, 2019 1:34 am
Forum: General Topics
Topic: find real x and y coordinates of an object
Replies: 9
Views: 1079

Re: find real x and y coordinates of an object

Okay, I think I see what you are trying to do. Um, so, basically, you want the pixels you've previously draw in the last frame to appear in the next frame. So, do this (pseudo code): points = [] ... while True: for b in img.find_blobs(...): points.append((b.cx(), b.cy())) points = points[-img.width(...
by kwagyeman
Tue Jan 22, 2019 12:07 pm
Forum: Technical Discussion
Topic: how to change i2c device address (Multi mlx90614 sensors)
Replies: 1
Views: 112

Re: how to change i2c device address (Multi mlx90614 sensors)

Um, what's the issue you are having? If the camera does the I2C action to change the address... then you are find right?
by kwagyeman
Tue Jan 22, 2019 12:05 pm
Forum: General Topics
Topic: advices to train cnn
Replies: 7
Views: 237

Re: advices to train cnn

Hi, the steps on how to download the chars74K network are pretty detailed. When you download all the files and unpack them you end up with a ton of folders for each character. You just need to delete all characters except the ones you want.
by kwagyeman
Mon Jan 21, 2019 7:16 pm
Forum: Technical Discussion
Topic: Image.copy(): "OSError: Cannot copy to fb!"
Replies: 19
Views: 295

Re: Image.copy(): "OSError: Cannot copy to fb!"

The plan is to actually do all this very soon. I plan to make copy support an roi and scale value. Then I need to go through and fix up how image buffers can be transferred around. Mmm: https://github.com/openmv/openmv/blob/master/src/omv/py/py_image.c#L1154 Looks like that line is wrong. Should be ...
by kwagyeman
Mon Jan 21, 2019 3:36 pm
Forum: General Topics
Topic: Shape Detection
Replies: 18
Views: 4825

Re: Shape Detection

Move setting the pin outside of the loop. Otherwise the code is only executed if something is found and not if something is not found.
by kwagyeman
Mon Jan 21, 2019 3:35 pm
Forum: General Topics
Topic: find real x and y coordinates of an object
Replies: 9
Views: 1079

Re: find real x and y coordinates of an object

The draw_line() method?

I don't understand what you are asking.
by kwagyeman
Mon Jan 21, 2019 3:33 pm
Forum: Project Discussion
Topic: How to filter openmv output
Replies: 1
Views: 203

Re: How to filter openmv output

There's quite a lot of examples that come with the OpenMV Cam and forum comments about how to go about what you are trying to do. Have you tried to run the QR code detection example and pin control examples yet?
by kwagyeman
Mon Jan 21, 2019 3:30 pm
Forum: General Topics
Topic: advices to train cnn
Replies: 7
Views: 237

Re: advices to train cnn

Hmm, have you tried the Chars74K network training example I linked to? It has all those letters: https://github.com/kwagyeman/openmv/tree/more_nn_nets/ml/cmsisnn#chars74k-character-recognition https://github.com/kwagyeman/openmv/blob/more_nn_nets/scripts/examples/25-Machine-Learning/nn_chars74k.py T...
by kwagyeman
Sun Jan 20, 2019 10:42 pm
Forum: General Topics
Topic: find real x and y coordinates of an object
Replies: 9
Views: 1079

Re: find real x and y coordinates of an object

Yes, but, the vision part of this is small... you just have to write code that accumulates the movement you see. I.e. compare the location given the past frame to the next frame and accumulate the difference.
by kwagyeman
Sun Jan 20, 2019 12:57 pm
Forum: Technical Discussion
Topic: SPI maximum message length
Replies: 2
Views: 129

Re: SPI maximum message length

Hi, there was a bug that capped the length at 64k but that has been fixed and it's 2^32 bytes now. This is definitely fixed. It was discovered by a customer using a 320x240 LCD.
by kwagyeman
Sun Jan 20, 2019 3:44 am
Forum: Technical Discussion
Topic: RGB channel extraction
Replies: 14
Views: 308

Re: RGB channel extraction

Use VMWare Fusion. Anyway, I'll be doing code...
by kwagyeman
Sat Jan 19, 2019 8:45 pm
Forum: Technical Discussion
Topic: RGB channel extraction
Replies: 14
Views: 308

Re: RGB channel extraction

The wiki on how to edit the firmware is here: https://github.com/openmv/openmv/wiki

It's actually not that hard. It's a pretty straight forward process to edit the code and add new stuff since there are so many examples in the code on how to do so.
by kwagyeman
Sat Jan 19, 2019 8:42 pm
Forum: General Topics
Topic: Typo in docs
Replies: 2
Views: 146

Re: Typo in docs

Hi, can you submit a issue on the GitHub openmv docs repo? It's easy to track then.
by kwagyeman
Sat Jan 19, 2019 6:17 pm
Forum: Technical Discussion
Topic: sleep detection device
Replies: 1
Views: 83

Re: sleep detection device

Hi, I replied to you via email. Please continue the conversation here on the forums.
by kwagyeman
Sat Jan 19, 2019 12:45 pm
Forum: Technical Discussion
Topic: Is midpoint pooling median pooling, and why no max pooling?
Replies: 3
Views: 121

Re: Is midpoint pooling median pooling, and why no max pooling?

Like if you want adaptive thresholding the mean/median/mode/midpoint kernel filters all support this along with a few other methods.

Because memory is limited and I have to avoid copying you'll find I combined a lot of algorithms into one.
by kwagyeman
Sat Jan 19, 2019 12:43 pm
Forum: Technical Discussion
Topic: RGB channel extraction
Replies: 14
Views: 308

Re: RGB channel extraction

Um, you can also set the pix format to BAYER and then get_pixel() will return the pixels of the Bayer image. In the Bayer image format none of our algorithms work however except get pixel and joeg compression for viewing. When you set the image size to VGA RGB565 we automatically switch to Bayer to ...
by kwagyeman
Sat Jan 19, 2019 12:41 pm
Forum: Technical Discussion
Topic: RGB channel extraction
Replies: 14
Views: 308

Re: RGB channel extraction

Um, I'm not sure what this would be needed for. The A and B or U and V channels in LAB and YUV aren't interesting to look at. The image is basically flat with no contrast. ... :) Would you like to take a crack at implementing this? It would be pretty easy for you to add an extra argument to to_grays...
by kwagyeman
Sat Jan 19, 2019 12:33 pm
Forum: Technical Discussion
Topic: M7 5V out?
Replies: 17
Views: 295

Re: M7 5V out?

The ship has already sailed for the H7 however. But, hopefully sales will be great on it and we'll be doing a lot of manufacturing runs where we can iterate.
by kwagyeman
Sat Jan 19, 2019 12:08 pm
Forum: Technical Discussion
Topic: M7 5V out?
Replies: 17
Views: 295

Re: M7 5V out?

Yeah I thought more about this and what we can do for any future version is to expose some holes for 5V and GND that you can manually wire up. They wouldn't be on the two side connectors however.
by kwagyeman
Sat Jan 19, 2019 12:06 pm
Forum: Technical Discussion
Topic: GPIO on P6
Replies: 6
Views: 172

Re: GPIO on P6

I2C I/O expansion is the way to go. It just is the easiest way to add a ton of stuff.
by kwagyeman
Sat Jan 19, 2019 12:04 pm
Forum: Technical Discussion
Topic: Fill LCD when using small image?
Replies: 1
Views: 70

Re: Fill LCD when using small image?

Yeah, this is a issue that the next firmware release will solve. It's on my immediate to do list. Basically, I disabled scaling in general back on the M4 and now that we have more RAM on the H7 coming out we can having scaling code again. Um, I'm finishing up the new blob code with min_area_rect now...
by kwagyeman
Sat Jan 19, 2019 12:00 pm
Forum: Technical Discussion
Topic: Is midpoint pooling median pooling, and why no max pooling?
Replies: 3
Views: 121

Re: Is midpoint pooling median pooling, and why no max pooling?

Midpoint pooling actually does max pooling. Please note that versus creating a lot of algorithms for common use I made standard algorithms have more features through their arguments. See the bias argument of midpoint pooling. You can change it to either do max/min pooling by adjusting the bias argum...
by kwagyeman
Sat Jan 19, 2019 2:49 am
Forum: Technical Discussion
Topic: QUESTION ABOUT FIR(MLX90640) CONNECTION
Replies: 4
Views: 120

Re: QUESTION ABOUT FIR(MLX90640) CONNECTION

Can you give me some more information? It works for me with my MLX 90640 sensor from SparkFun. I notice you are using a different sensor. Do you see any other behavior? Some I can know what went wrong? That error is generated only via with the I2C bus not getting an ACK on reading or the sensor gene...
by kwagyeman
Fri Jan 18, 2019 11:10 pm
Forum: General Topics
Topic: Retrieve crop/ROI subimage of Image
Replies: 3
Views: 116

Re: Retrieve crop/ROI subimage of Image

If you need to do pixel processing just edit the firmware in C. There's no fast way to do this in python. You can use the python get_pixel() if you want but it will be very slow. It doesn't even matter if you get a row of pixels at the same time, python can't deal with the array. As for getting a su...
by kwagyeman
Fri Jan 18, 2019 3:41 pm
Forum: Technical Discussion
Topic: GPIO on P6
Replies: 6
Views: 172

Re: GPIO on P6

Hi, it should act as a GPIO with pull ups and downs. That could be a bug. Please create a bug on GitHub about this and Ibrahim will take a look and fix it. As for using pull ups or downs. For switches there's no particular way you have to go. Most folks do pull ups with a switch pulling to ground ho...
by kwagyeman
Fri Jan 18, 2019 3:38 pm
Forum: Technical Discussion
Topic: The 5 VIAs just above the USB port
Replies: 4
Views: 116

Re: The 5 VIAs just above the USB port

The 3.3V pin on the programming connector and the I/O pins are the same 3.3V input or output. I.e. you can power the board via 3.3v from them if no external power is applied. If external power is applied they supply 3.3v. Never supply power to the 3.3v pins and power the OpenMV Cam at the same time....
by kwagyeman
Fri Jan 18, 2019 3:35 pm
Forum: Technical Discussion
Topic: Literacy Project
Replies: 5
Views: 1223

Re: Literacy Project

Hi, you have to download them using our caffe tutorial. The CIFAR 10 dataset isn't store as images but instead as a byte array.
by kwagyeman
Fri Jan 18, 2019 3:34 pm
Forum: Technical Discussion
Topic: M7 5V out?
Replies: 17
Views: 295

Re: M7 5V out?

Hmm, okay, I guess it makes sense for that. I suppose the Arduino outputs 5v too from USB.

Anyway, if you need 5v you can solder a wire to the connector pin on the USB connector. It's exposed.

As for adding a 5V output pin on the camera. I guess if we moved BOOT0 there would be space.
by kwagyeman
Fri Jan 18, 2019 1:49 pm
Forum: Technical Discussion
Topic: The 5 VIAs just above the USB port
Replies: 4
Views: 116

Re: The 5 VIAs just above the USB port

The 3.3V pin allows you to get access to the voltage rail of the OpenMV Cam to power an external device. The way we've set all this up is very similar to the Arduino. That device has a VIN pin and a regulator 3.3V output / input.
by kwagyeman
Fri Jan 18, 2019 1:47 pm
Forum: Technical Discussion
Topic: The 5 VIAs just above the USB port
Replies: 4
Views: 116

Re: The 5 VIAs just above the USB port

Hi, that's the SWD programmer connection. Basically, all ARM boards can be JTAGed via the SWD (serial wire debugger). It allows for quick firmware reloading and programming along with lockstep debugging of code. So, if you want to edit the OpenMV Cam firmware in C and such that's the way to do it. Y...
by kwagyeman
Fri Jan 18, 2019 1:43 pm
Forum: Technical Discussion
Topic: M7 5V out?
Replies: 17
Views: 295

Re: M7 5V out?

Yeah, we don't pass the USB 5V. That's also something we won't ever do. It would be kinda like a USB violation.
by kwagyeman
Fri Jan 18, 2019 12:45 pm
Forum: Technical Discussion
Topic: QUESTION ABOUT FIR(MLX90640) CONNECTION
Replies: 4
Views: 120

Re: QUESTION ABOUT FIR(MLX90640) CONNECTION

That would be an I2C error. Um, did the init method succeed? The error is caused by this code: https://github.com/openmv/openmv/blob/master/src/mlx/src/MLX90640_API.c#L48 Um, also, keep in mind the FPS on the MLX sensor. So, you cannot run it at a very high sample rate in hz. The default sample rate...
by kwagyeman
Fri Jan 18, 2019 12:36 pm
Forum: General Topics
Topic: Pb to quantize the network
Replies: 4
Views: 1927

Re: Pb to quantize the network

Great, glad you got it working! Once you get over the first hurdle of install it becomes easy... That said, install is a nightmare. Pretty much par for the course with linux.
by kwagyeman
Fri Jan 18, 2019 12:02 am
Forum: Technical Discussion
Topic: 2 SPI devices at different speeds
Replies: 5
Views: 120

Re: 2 SPI devices at different speeds

About 20 MHz. Don't worry however, the M7 can't actually do any freq. SO, it sets it to a freq below what you want to hit normally however.
by kwagyeman
Thu Jan 17, 2019 6:48 pm
Forum: Technical Discussion
Topic: Literacy Project
Replies: 5
Views: 1223

Re: Literacy Project

Hi, OpenMV IDE detects code changes and will reload the file. So, just save the code you are editing on disk and open it with OpenMV IDE. Then when you make changes the IDE will prompt you to reload the code.
by kwagyeman
Thu Jan 17, 2019 6:46 pm
Forum: Technical Discussion
Topic: 2 SPI devices at different speeds
Replies: 5
Views: 120

Re: 2 SPI devices at different speeds

Hi, just reinit the SPI bus when switching between the two devices. It doesn't take much time to reinit it. Only a few clock cycles. Um, I'm still working on upgrading find_blobs() but I should be done by the end of the week on it. Then I just have to get in some fixes for drawing ellipses and your ...
by kwagyeman
Wed Jan 16, 2019 11:17 pm
Forum: General Topics
Topic: User control/input/switches/etc.
Replies: 3
Views: 118

Re: User control/input/switches/etc.

Done: https://github.com/ShrimpingIt/micropython-mcp230xx

Note that this driver is for a different board than above.
by kwagyeman
Wed Jan 16, 2019 11:16 pm
Forum: General Topics
Topic: User control/input/switches/etc.
Replies: 3
Views: 118

Re: User control/input/switches/etc.

Mmm, if just buy an I2C I/O expander:

https://www.sparkfun.com/products/13601

Just use the machine I2C module to talk to it. There are might already be a driver if you Google MicroPython I2C expander.
by kwagyeman
Wed Jan 16, 2019 12:10 am
Forum: General Topics
Topic: Pb to quantize the network
Replies: 4
Views: 1927

Re: Pb to quantize the network

Hi, I just ran through all the steps. Given I have limited time and you likely have more than me on this I'd like you to walk through my steps and confirm you got the same output or note where it diverges. Thanks, The file attached is my terminal output. You can see the commands I execute and what t...
by kwagyeman
Tue Jan 15, 2019 11:55 pm
Forum: Technical Discussion
Topic: How can I find minimum area rectangle in binary image?
Replies: 17
Views: 3338

Re: How can I find minimum area rectangle in binary image?

No, you have to download the firmware above. I posted a binary file a few posts back. This is a firmware cut that's a pre-release.

Anyway, I'll post something else again.
by kwagyeman
Tue Jan 15, 2019 11:53 pm
Forum: General Topics
Topic: LED Selection not working as doccumented
Replies: 18
Views: 3339

Re: LED Selection not working as doccumented

We are moving to a new shipping company before the end of the month! Then we can ship to Russia! The era of ShitBob is almost over. :)
by kwagyeman
Tue Jan 15, 2019 11:50 pm
Forum: Technical Discussion
Topic: Problem writing txt file
Replies: 7
Views: 1564

Re: Problem writing txt file

Um, the easiest way to move data is to do http:// get requests to a PHP script that waits for being accessed and then updates the data base. Um, first, I'd write the PHP script and then connect it to the database. If you have cPanel running on your server then you just need to create a php file some...
by kwagyeman
Tue Jan 15, 2019 2:16 pm
Forum: General Topics
Topic: Pb to quantize the network
Replies: 4
Views: 1927

Re: Pb to quantize the network

Hi, will check tonight. Um, I trained on Ubuntu 16.04 as I was never able to install on Ubuntu 18.04. Um, can you verify that all the steps up to that step succeeded? Like, when you trained the network did that work and we're you able to test it and get the correct outputs? You'll get weird errors l...
by kwagyeman
Tue Jan 15, 2019 2:12 pm
Forum: Technical Discussion
Topic: openmv2
Replies: 1
Views: 1183

Re: openmv2

Hi, we don't provide support for you building the system on your own using different parts. An infinite amount of things could be wrong. You need to be good enough to debug the system on your own if you are doing this.
by kwagyeman
Mon Jan 14, 2019 12:35 pm
Forum: Technical Discussion
Topic: How can I find minimum area rectangle in binary image?
Replies: 17
Views: 3338

Re: How can I find minimum area rectangle in binary image?

Hi, you have to update the firmware on your camera using the firmware binary I posted above.

Yes, it works on grayscale.

...

The current algorithm is not as robust as it needs to be. I will post another version that should work better tonight.
by kwagyeman
Mon Jan 14, 2019 12:35 pm
Forum: Technical Discussion
Topic: Problem writing txt file
Replies: 7
Views: 1564

Re: Problem writing txt file

Can you edit your post and use the code button on the text editor above to make your code readable? It will insert code tags into the post. As for writing the text file. Please note that any desktop OS will not rescan the OpenMV Cam disk after it's plugged in. So, if you create a file on the camera ...

Go to advanced search