Search found 2584 matches

by kwagyeman
Sat Jan 19, 2019 2:49 am
Forum: Technical Discussion
Topic: QUESTION ABOUT FIR(MLX90640) CONNECTION
Replies: 4
Views: 44

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: nn_cifar10

Yes, please read the guide linked to above in a previous post. It's quite detailed.

Go to advanced search