Search found 2595 matches

by kwagyeman
Sat Jan 19, 2019 8:45 pm
Forum: Technical Discussion
Topic: RGB channel extraction
Replies: 5
Views: 45

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: 1
Views: 11

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: 14

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: 48

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: 5
Views: 45

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: 5
Views: 45

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: 7
Views: 84

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: 7
Views: 84

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: 75

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: 25

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: 48

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: 63

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: 54

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: 75

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: 53

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: 1165

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: 7
Views: 84

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: 53

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: 53

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: 7
Views: 84

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: 63

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: 1861

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: 52

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: 1165

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: 52

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: 68

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: 68

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: 1861

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: 16
Views: 3171

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: 3108

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: 4
Views: 1400

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: 1861

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: 1148

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: 16
Views: 3171

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: 4
Views: 1400

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 ...
by kwagyeman
Mon Jan 14, 2019 2:43 am
Forum: Technical Discussion
Topic: How can I find minimum area rectangle in binary image?
Replies: 16
Views: 3171

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

Hi, I'm still working on the min_area_rect() method. The method I used doesn't seem to work in all situations. It's very memory intensive to store the contour and then calculate the min_area_rect() per frame based on a full contour of the object. I am trying to figure out a way to do this with just ...
by kwagyeman
Mon Jan 14, 2019 1:11 am
Forum: General Topics
Topic: Pricing
Replies: 1
Views: 1163

Re: Pricing

About $3. It's cheaper if you buy questionable versions in China. Lots of random other parts make the whole assembly higher priced.
by kwagyeman
Sun Jan 13, 2019 11:15 pm
Forum: General Topics
Topic: margin in for loop of color tracking
Replies: 1
Views: 1158

Re: margin in for loop of color tracking

Hi, it just controls how how much distance blobs need to be away before they are merged. By default it is 0 meaning that unless blobs have overlapping rects they will not be merged. With a value of 10 it means that blobs that overlap within 10 pixels of each other will be merged. With -10 it means t...
by kwagyeman
Sun Jan 13, 2019 5:28 pm
Forum: General Topics
Topic: Sleep mode
Replies: 4
Views: 1383

Re: Sleep mode

Yeah, you can sleep the camera too.
by kwagyeman
Sat Jan 12, 2019 12:49 pm
Forum: Technical Discussion
Topic: image drawstring() landscape orientation (or image rotation function)?
Replies: 3
Views: 1262

Re: image drawstring() landscape orientation (or image rotation function)?

Hi, the latest firmware build offers vertical and horizontal mirroring along with image rotation. This does exactly what you want. # Vertical Flip - Horizontal Mirror - Transpose # # This example shows off how to vertically flip, horizontally mirror, or # transpose an image. Note that: # # vflip=Fal...
by kwagyeman
Sat Jan 12, 2019 12:45 pm
Forum: General Topics
Topic: Outsourcing project development
Replies: 1
Views: 1204

Re: Outsourcing project development

Good luck finding help.
by kwagyeman
Sat Jan 12, 2019 12:44 pm
Forum: General Topics
Topic: Shape Detection
Replies: 14
Views: 4445

Re: Shape Detection

Do something like this: import sensor, image, time # Color Tracking Thresholds (L Min, L Max, A Min, A Max, B Min, B Max) thresholds = [(30, 100, 15, 127, 15, 127)] sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) sensor.set_auto_ga...
by kwagyeman
Sat Jan 12, 2019 12:06 pm
Forum: Technical Discussion
Topic: Literacy Project
Replies: 5
Views: 1165

Re: Literacy Project

Hi, you can't use input() with the IDE. We have no support for text transport to the camera. You can do this outside of the IDE however.
by kwagyeman
Fri Jan 11, 2019 12:09 pm
Forum: Technical Discussion
Topic: QUESTION ABOUT I2C CONNECTION
Replies: 4
Views: 1221

Re: QUESTION ABOUT I2C CONNECTION

Hi, you need pull up resistors on the I2C lines. The OpenMV Cam doesn't pull the lines up by default. I2C Scan should work once you do that.
by kwagyeman
Fri Jan 11, 2019 12:03 pm
Forum: Technical Discussion
Topic: Communication between OpenMV and ROS
Replies: 3
Views: 1105

Re: Communication between OpenMV and ROS

Would you like this to be distributed with OpenMV IDE? It will get more usage then.
by kwagyeman
Fri Jan 11, 2019 3:17 am
Forum: Technical Discussion
Topic: Second SPI device while using LCD shield?
Replies: 12
Views: 1730

Re: Second SPI device while using LCD shield?

It's on my todo list. I'm doing imglib expansion right now. Currently working on adding a lot of features to find_blobs() so it's at rough and exceeding parity with OpenCV.
by kwagyeman
Fri Jan 11, 2019 2:45 am
Forum: General Topics
Topic: LED Selection not working as doccumented
Replies: 18
Views: 3108

Re: LED Selection not working as doccumented

Well, our firmware definitely toggles the pins for all parts of the LED. The only thing I can guess is that the LED uses was the wrong type ending up with the anode/cathodes on the wrong pins. The LED we use is kinda tricky to get right. Our CM seems to find the right one however so we don't think a...
by kwagyeman
Thu Jan 10, 2019 11:46 pm
Forum: General Topics
Topic: OpenMV as Slave + Data received from Arduino
Replies: 7
Views: 1388

Re: OpenMV as Slave + Data received from Arduino

If using blue tooth uarts. Sure.
by kwagyeman
Thu Jan 10, 2019 11:16 pm
Forum: General Topics
Topic: OpenMV as Slave + Data received from Arduino
Replies: 7
Views: 1388

Re: OpenMV as Slave + Data received from Arduino

Keep in mind that the Serial debug port on a UNO isn't usable if you are using the Arduino's UART for the OpenMV Cam. So, use Software serial to communicate with the OpenMV Cam so you can still deubg.
by kwagyeman
Thu Jan 10, 2019 11:07 pm
Forum: Technical Discussion
Topic: how to send image to server by post to http?
Replies: 9
Views: 1742

Re: how to send image to server by post to http?

Ibrahim will have to answer this. The WiFi part I'm not strong with.

Go to advanced search