Search found 2573 matches

by kwagyeman
Fri Jan 18, 2019 12:02 am
Forum: Technical Discussion
Topic: 2 SPI devices at different speeds
Replies: 5
Views: 32

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: 3
Views: 1118

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

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

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

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: 2
Views: 1835

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

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

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

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: 2
Views: 1835

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

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

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

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

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

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

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

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

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

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

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: 3
Views: 1118

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: 3
Views: 1206

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

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

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

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

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

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

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.
by kwagyeman
Thu Jan 10, 2019 11:05 pm
Forum: General Topics
Topic: LED Selection not working as doccumented
Replies: 18
Views: 3085

Re: LED Selection not working as doccumented

That's definitely a clone board if you bought it from Banggood.

Um, so, are you running the latest firmware? There was a swap a long time ago between the green and blue led pins that was fixed by a software update.
by kwagyeman
Thu Jan 10, 2019 11:03 pm
Forum: General Topics
Topic: OpenMV as Slave + Data received from Arduino
Replies: 7
Views: 1387

Re: OpenMV as Slave + Data received from Arduino

Hi, the OpenMV Cam makes a very poor I2C slave or SPI slave. This is because it needs to generally do other things than wait for the Arduino to command it. UART is the only thing that works well. If possible, make your Arduino a UART slave I/O extender for the OpenMV Cam. I am also working on a CAN ...
by kwagyeman
Thu Jan 10, 2019 3:49 pm
Forum: General Topics
Topic: store an image on sd card
Replies: 1
Views: 1188

Re: store an image on sd card

Do something like "/file.jpg".
by kwagyeman
Thu Jan 10, 2019 3:18 pm
Forum: Technical Discussion
Topic: Finding Circle and Color Detection
Replies: 3
Views: 1133

Re: Finding Circle and Color Detection

Hi, okay, 640x480 runs at 20 fps actually if only using find_blob() in grayscale. If you are in RGB565 it's slower. Keep in mind that the frame buffer display cuts the frame rate. So, if you click the disable frame buffer button in the IDE you will see your FPS jump. This is the frame rate your actu...
by kwagyeman
Thu Jan 10, 2019 3:09 pm
Forum: Technical Discussion
Topic: mjpeg video code
Replies: 9
Views: 1620

Re: mjpeg video code

We had to read the spec and then figure it out...
by kwagyeman
Thu Jan 10, 2019 12:04 pm
Forum: Technical Discussion
Topic: mjpeg video code
Replies: 9
Views: 1620

Re: mjpeg video code

Yeah, the bbp means different things at different times. If the value is >= 4 then it's actually the file length in bytes of a jpg image. Yes, this is poor design but it works and it's so built-into the logic now that its a bear to change.
by kwagyeman
Thu Jan 10, 2019 12:03 pm
Forum: Technical Discussion
Topic: how to send image to server by post to http?
Replies: 9
Views: 1735

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

Hi, use this to encode:

http://docs.micropython.org/en/v1.9.3/p ... ascii.html

And call .compress() on the image to get a jpeg byte stream.

E.g.

Code: Select all

base63_data = ubinascii.b2a_base64(img.compress(quality=90))
Then transmit that data.
by kwagyeman
Thu Jan 10, 2019 12:01 pm
Forum: Technical Discussion
Topic: How can I find minimum area rectangle in binary image?
Replies: 16
Views: 3165

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

Hi, I recently updated the firmware method with a major_axis_line() method that will tell you the longest length of the side in the min_area_rect. So, that's basically what you need. As for transmit via the UART. See the UART example on our docs. You can just print the value. I'll upload the new fir...
by kwagyeman
Thu Jan 10, 2019 11:55 am
Forum: Technical Discussion
Topic: Finding Circle and Color Detection
Replies: 3
Views: 1133

Re: Finding Circle and Color Detection

Hi, we can't process a VGA image with all the algorithms. Please keep in mind you are using a microcontroller with only 512KB of RAM onboard and not a full linux system with GBs of RAM. find_blobs() works on a VGA image. But, it's rather slow since there's so many pixels to process. Unless you need ...
by kwagyeman
Wed Jan 09, 2019 2:29 pm
Forum: Technical Discussion
Topic: mjpeg video code
Replies: 9
Views: 1620

Re: mjpeg video code

The write data method writes the data. It's a byte blob so you just give the starting address and length. As for the jpeg compression that's done in the jpeg compression call.
by kwagyeman
Wed Jan 09, 2019 2:27 pm
Forum: Project Discussion
Topic: nn_cifar10
Replies: 10
Views: 2442

Re: nn_cifar10

Yes, please read the guide linked to above in a previous post. It's quite detailed.
by kwagyeman
Wed Jan 09, 2019 11:29 am
Forum: General Topics
Topic: find real x and y coordinates of an object
Replies: 3
Views: 847

Re: find real x and y coordinates of an object

Okay, use the cx() and cy() properites of find_blobs() which I noticed you are using in another forum post.
by kwagyeman
Wed Jan 09, 2019 11:28 am
Forum: Technical Discussion
Topic: Implementing low-cost pre-trained NN like MobileNet/SqueezeNet
Replies: 11
Views: 1324

Re: Implementing low-cost pre-trained NN like MobileNet/SqueezeNet

I haven't looked at this in a few months. I don't know if it works or not.
by kwagyeman
Wed Jan 09, 2019 11:27 am
Forum: Project Discussion
Topic: nn_cifar10
Replies: 10
Views: 2442

Re: nn_cifar10

It means the network is too big. So, you need to reduce the net size. The M7 doesn't really have enough heap ram to run larger nets.
by kwagyeman
Wed Jan 09, 2019 3:03 am
Forum: Technical Discussion
Topic: Implementing low-cost pre-trained NN like MobileNet/SqueezeNet
Replies: 11
Views: 1324

Re: Implementing low-cost pre-trained NN like MobileNet/SqueezeNet

We really can use all the help we can get with the OpenMV Cam project. If you'd like to try to make an SDRAM version of the board please go ahead. As for the INRIA model. I think we fixed the issue with the system. I just haven't had time to revisit it. I'm in the middle of doing library upgrades ri...
by kwagyeman
Wed Jan 09, 2019 2:32 am
Forum: General Topics
Topic: color sensor
Replies: 3
Views: 835

Re: color sensor

Hi, if you need to detect the depth you can do two things: 1. You can use the number of pixels/area of the object as an input into a look-up table where you've recorded the depth of the object given some pixel/area values. That said, this method isn't exactly precise but works without any external s...
by kwagyeman
Wed Jan 09, 2019 2:31 am
Forum: General Topics
Topic: area threshold and pixel threshold
Replies: 1
Views: 684

Re: area threshold and pixel threshold

Area threshold is a threshold bases on the area (w*h) of the object versus the pixel threshold is based on the number of pixels in it. If you look at the ratio (density) of the two you can get some idea how good your lock on the object is because the number of pixels should area be near the area for...
by kwagyeman
Wed Jan 09, 2019 2:28 am
Forum: General Topics
Topic: find real x and y coordinates of an object
Replies: 3
Views: 847

Re: find real x and y coordinates of an object

How do you plan to track the object? By what feature?
by kwagyeman
Wed Jan 09, 2019 2:27 am
Forum: Technical Discussion
Topic: Implementing low-cost pre-trained NN like MobileNet/SqueezeNet
Replies: 11
Views: 1324

Re: Implementing low-cost pre-trained NN like MobileNet/SqueezeNet

Hi, if you want to develop a board design that does that can you do so. We don't have external RAM on board because it would be cost-prohibitive. External SDRAM would take an 8-layer board, require a smaller form factor H7 chip, and a host of other things. The H7 (our next system) is actually a lot ...
by kwagyeman
Tue Jan 08, 2019 11:35 pm
Forum: Technical Discussion
Topic: mjpeg video code
Replies: 9
Views: 1620

Re: mjpeg video code

Ha, that codes is wrong 3 years ago. I don't know who wrote that... wait, I did :). Um, the bpp field is the length of the jpeg file in bytes when >= 4. It's a rather abused value. Anyway, the jpeg data byte stream must be a multiple of 4. The reading past okay comment there notes that I'm writing g...

Go to advanced search