Search found 2898 matches

by kwagyeman
Sat Apr 20, 2019 5:16 pm
Forum: Technical Discussion
Topic: Voltage drop
Replies: 1
Views: 47

Re: Voltage drop

Stop spamming please.
by kwagyeman
Sat Apr 20, 2019 5:14 pm
Forum: General Topics
Topic: Shape Detection
Replies: 24
Views: 12646

Re: Shape Detection

What is the load at the end of the wire? If it's a relay you need to use a transistor driver to drive the relay.

https://www.electronics-tutorials.ws/bl ... rcuit.html
by kwagyeman
Sat Apr 20, 2019 5:11 pm
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

When the system is powered on it starts running main.py.
by kwagyeman
Fri Apr 19, 2019 6:21 pm
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

...

Tools->Save Script to OpenMV Cam
Tools->Reset OpenMV Cam
by kwagyeman
Fri Apr 19, 2019 1:26 pm
Forum: Technical Discussion
Topic: OpenMV Cam2 IR filter
Replies: 7
Views: 172

Re: OpenMV Cam2 IR filter

Yep, it doesn't have a filter.
by kwagyeman
Fri Apr 19, 2019 11:15 am
Forum: Technical Discussion
Topic: Power battery domain with RTC only
Replies: 5
Views: 128

Re: Power battery domain with RTC only

I think you can turn pull ups built into the I/O pins on. Keep in mind the I2C bus can also be a UART or general I/O pin. It would have not made sense to add pull ups.
by kwagyeman
Fri Apr 19, 2019 11:13 am
Forum: Technical Discussion
Topic: OpenMV Cam2 IR filter
Replies: 7
Views: 172

Re: OpenMV Cam2 IR filter

Hi, you can get better image quality by controlling the exposure. It looks like auto gain is mainly driving things there. Manually set the exposure of your camera to some amount of time. This will raise the contrast. Also, turn off auto gain.
by kwagyeman
Thu Apr 18, 2019 10:25 pm
Forum: Project Discussion
Topic: printing to OLED display
Replies: 22
Views: 397

Re: printing to OLED display

Ibrahim, can you add this to the examples?
by kwagyeman
Thu Apr 18, 2019 5:56 pm
Forum: Project Discussion
Topic: printing to OLED display
Replies: 22
Views: 397

Re: printing to OLED display

Post a pic?
by kwagyeman
Thu Apr 18, 2019 3:27 pm
Forum: Technical Discussion
Topic: Power battery domain with RTC only
Replies: 5
Views: 128

Re: Power battery domain with RTC only

Our board draws about 1mA in stop mode. Once H7 sales increase we may rev the board to give it more features. However, the amount of inventory we are moving will have to go up by an order of magnitude for that.
by kwagyeman
Thu Apr 18, 2019 1:49 am
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

Blob detection works in binary mode too. So, I'd just do everything in that mode. I.e. binary the image first using color thresholds. Then find_blobs() just looks for "white" in the binary image. Do: net.forward(img.binary([(100, 255)]), softmax=True, roi=blob.rect()) Or: # Next we look for a tag in...
by kwagyeman
Thu Apr 18, 2019 1:46 am
Forum: General Topics
Topic: Reducing the number of GRAYSCALE levels (8 bits to 3 bits)
Replies: 6
Views: 3090

Re: Reducing the number of GRAYSCALE levels (8 bits to 3 bits)

Yeah... so, you want to pass the 0.03125 value to contrast, not gamma. The values are passed to every pixel channel normalized to 1. E.g. a brightness of 1 makes the whole image white and maxes everything out. Contrast of 2 multiplies all pixels by 2. Gamma is different and does the standard image g...
by kwagyeman
Wed Apr 17, 2019 4:01 pm
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

Um, try out the Color Tracking -> Single Color Greyscale tracking script. Adjust the thresholds to find the white character. Once you do that, you can print out the blob.rect() to see where the blob is. Then you pass the blob.rect() (if found) to the nn.forward(roi=blob.rect()). That said the rect m...
by kwagyeman
Wed Apr 17, 2019 3:40 pm
Forum: General Topics
Topic: Recording to a circular stream
Replies: 2
Views: 35

Re: Recording to a circular stream

We don't have enough ram to do that. Maybe in future versions of the product. We have been wanting to build a version of the system which has DRAM. But, as we are a bootstrapped company without any major investment we can't add RAM to the system because of the BOM increase that would occur. We are t...
by kwagyeman
Wed Apr 17, 2019 3:37 pm
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

Um, so, there are 3 different networks for the character 74k. Only the fnt one works. The one trained on image letters just overfits and doesn't work in real life. To make it work better I'm pretty sure it would require edge detection first (using canny) versus the raw image data. This is because th...
by kwagyeman
Wed Apr 17, 2019 3:31 pm
Forum: Project Discussion
Topic: printing to OLED display
Replies: 22
Views: 397

Re: printing to OLED display

We don't enable to that module. We can add it however. Please create a GitHub ticket for it.
by kwagyeman
Wed Apr 17, 2019 1:21 am
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

Hi, write() doesn't take a number, it takes a string. If you want to send the byte value 0x03 then do write(str(0x3)) or like write("\x03"), etc. Template matching is not scale or rotation invariant. So, by definition it doesn't work when scale (zoom) or the image is rotated. It is translation invar...
by kwagyeman
Tue Apr 16, 2019 11:48 am
Forum: General Topics
Topic: IDE 2.2.0, Frame Buffer not shown
Replies: 2
Views: 76

Re: IDE 2.2.0, Frame Buffer not shown

Hi, can you post a screenshot?

If it's hidden... Just click on the right arrow markers on the side of the main window and it should reappear.
by kwagyeman
Tue Apr 16, 2019 12:19 am
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

Okay, releasing the IDE now. The raspberry pi build works.

This is the official OpenMV Cam H7 release!
by kwagyeman
Mon Apr 15, 2019 9:15 pm
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

The CNN library, copy the model to your SD card for the camera.
by kwagyeman
Mon Apr 15, 2019 7:33 pm
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

Installs fine on 3 PCs I tested... where does the error happen?

Also, please always post with like context on what an error is. I get enough help support emails now where might start ignoring folks.
by kwagyeman
Mon Apr 15, 2019 5:37 pm
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

http://upload.openmv.io/openmv-ide-wind ... -2.2.0.exe

See the ML examples, chars74K, then use the Tools->Machine Vision->Model Explorer to copy the model over.
by kwagyeman
Mon Apr 15, 2019 1:22 pm
Forum: Project Discussion
Topic: printing to OLED display
Replies: 22
Views: 397

Re: printing to OLED display

Hi, I don't know the adafruit code. Unsure why this is happening. They completely redid the MicroPython hardware interface layer.
by kwagyeman
Mon Apr 15, 2019 1:20 pm
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

Hi, the point of the OpenMV Cam is to not use an Arduino. It can do quite a bit of board I/O control itself. Anyway, in the examples folder there are examples showing how to connect an Arduino.

Which IDE version do you want? Windows, Mac, Linux?
by kwagyeman
Mon Apr 15, 2019 12:58 am
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

I've finished building windows/mac/linux32/linux64. I just need to fix an issue with raspberryPi which I will do tomorrow.
by kwagyeman
Mon Apr 15, 2019 12:37 am
Forum: Project Discussion
Topic: printing to OLED display
Replies: 22
Views: 397

Re: printing to OLED display

Hi, Adafruit wrote their own version of the pin control library. It's not compatible with standard MicroPython. That's why Adafruit calls it Circuit Python. That said, the basic logic is the same. You just need to read the OpenMV Cam API and then do the right behavior for the low level pin control. ...
by kwagyeman
Sun Apr 14, 2019 11:12 pm
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

Hi, the video with me detecting characters - chars74k. I'm working on the IDE release. OpenMV isn't like a big company. Asking me questions literally delays the IDE release ;) - because I'm the one doing it. Um, if you are using windows I can give you the windows IDE link. I've already built it and ...
by kwagyeman
Sun Apr 14, 2019 10:26 pm
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

Hi, the CNN running on the H7 does that. All the lines do will tell you where the character is.

Please wait till the next OpenMV IDE release. We will have the net for you then. I've finished the windows builds. Doing the Linux ones now.
by kwagyeman
Sun Apr 14, 2019 9:14 pm
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

I'd just use the line segment detector to find a cluster of lines and then use the network on the location where the lines are to classify the letter. This would be a very small change to the base code provided. We will also be offering TensorFlow soon where you can train a network yourself using mo...
by kwagyeman
Sun Apr 14, 2019 9:01 pm
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

Hi, it just classifies characters. It's a network. So, it assumes there's a character in front of it. There's no modifying the code. you have to re-train the net to do something else. A trival character check is to look for straight lines and check how many you see.
by kwagyeman
Sun Apr 14, 2019 12:44 am
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 617

Re: Detecting Letters

Yep, I'll have the IDE release out that enables this over the weekend. Just see the chars74K example. Under the CMSIS-NN stuff.

Note, we are working on porting Tensor Flow mobile to the OpenMV Cam which will be replacing our current frame work.
by kwagyeman
Sun Apr 14, 2019 12:06 am
Forum: General Topics
Topic: Shape Detection
Replies: 24
Views: 12646

Re: Shape Detection

Hi, your wire shouldn't have such a voltage drop. Check your wire resistance. It should be less than 1 ohm.
by kwagyeman
Sat Apr 13, 2019 1:32 am
Forum: General Topics
Topic: OpenMV Master and OpenView receiver | Arduino Master - openMV receiver
Replies: 2
Views: 142

Re: OpenMV Master and OpenView receiver | Arduino Master - openMV receiver

Hi, please use the UART to send data. That has a fifo buffer to receive bytes. It makes a huge difference. SPI and I2C are master/slave protocols which are designed to talk to simple chips which spend their whole life waiting to be accessed. The OpenMV Cam is usually processing an image meaning that...
by kwagyeman
Fri Apr 12, 2019 8:17 pm
Forum: General Topics
Topic: Reducing the number of GRAYSCALE levels (8 bits to 3 bits)
Replies: 6
Views: 3090

Re: Reducing the number of GRAYSCALE levels (8 bits to 3 bits)

Hi just use the firmware.bin file in the OPENMV3 folder for the M7. The H7 is the OPENMV 4 folder.
by kwagyeman
Fri Apr 12, 2019 12:17 pm
Forum: Technical Discussion
Topic: encoder question
Replies: 14
Views: 13528

Re: encoder question

Can you post your code for others to use? Thanks,
by kwagyeman
Fri Apr 12, 2019 12:16 pm
Forum: General Topics
Topic: Shape Detection
Replies: 24
Views: 12646

Re: Shape Detection

Oh, yeah, you have to use an amplifier to cover that distance. E.g. use something like this:

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

You can use a higher voltage on the other side to go farther.
by kwagyeman
Fri Apr 12, 2019 12:13 pm
Forum: Technical Discussion
Topic: External Camera with SPI bus
Replies: 15
Views: 3824

Re: External Camera with SPI bus

Hi, the default MP spi read method uses DMA to suck the data in. It's quite fast. What's the SPI camera protocol that it requires a lot of interaction? Generally, the data transfer should move quite quickly. The FLIR Lepton was very complicated because the VOSPI protocol is complex. Otherwise, it sh...
by kwagyeman
Thu Apr 11, 2019 11:34 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 42
Views: 70966

Re: Python script to output MAVLink

Thanks, I'll make sure your script is in the next release.
by kwagyeman
Thu Apr 11, 2019 6:48 pm
Forum: General Topics
Topic: dimming led with pwm
Replies: 1
Views: 813

Re: dimming led with pwm

Hi, have you seen the PWM example under board control? See File->Examples->Board Control and look at the PWM example.
by kwagyeman
Thu Apr 11, 2019 12:20 am
Forum: Technical Discussion
Topic: Firmware Files, what each files do?
Replies: 1
Views: 7315

Re: Firmware Files, what each files do?

Um, the comments you posted mention what most are for. They are just build outputs we keep track of. You needn't think to much about what the other ones are. DFU files can be loaded via a DFU tool. The elf file is the raw compile output. And the bin file is the binary that can be flashed. The bootlo...
by kwagyeman
Wed Apr 10, 2019 4:52 pm
Forum: Technical Discussion
Topic: help please
Replies: 3
Views: 8602

Re: help please

Please see the snapshot script to save a picture and then the low power scripts. They are under examples.
by kwagyeman
Wed Apr 10, 2019 4:51 pm
Forum: Technical Discussion
Topic: How to send qrcode information by using uart ?
Replies: 1
Views: 7189

Re: How to send qrcode information by using uart ?

Just do:

Code: Select all

uart.write("%s",code.payload())
by kwagyeman
Wed Apr 10, 2019 12:17 pm
Forum: Technical Discussion
Topic: help please
Replies: 3
Views: 8602

Re: help please

Hi, we don't have a bluetooth shield yet.
by kwagyeman
Wed Apr 10, 2019 10:34 am
Forum: Technical Discussion
Topic: encoder question
Replies: 14
Views: 13528

Re: encoder question

Do something like this: position = 0 pin4 = pyb.Pin("P4") pin5 = pyb.Pin("P5") def callback4(line): global position if pin4.value(): # rising-edge position += 1 if pin5.value() else -1 else: # falling-edge position += -1 if pin5.value() else 1 def callback5(line): global position if pin5.value(): # ...
by kwagyeman
Tue Apr 09, 2019 1:04 pm
Forum: Technical Discussion
Topic: encoder question
Replies: 14
Views: 13528

Re: encoder question

Hi, we never designed the hardware around this feature to use encoders. It's cool that it works on one side at least. Um, so, you can use pin interrupts to get an encoder reading on the other side. It's pretty easy, just make an interrupt for the rising edge on one of the pins and then in the interr...
by kwagyeman
Tue Apr 09, 2019 11:31 am
Forum: General Topics
Topic: Issue with installing, running openmv ide on raspberrypi
Replies: 4
Views: 7482

Re: Issue with installing, running openmv ide on raspberrypi

Thanks, I'm closing out issues with the IDE now. So, this will get fixed before the end of the week.
by kwagyeman
Mon Apr 08, 2019 5:40 pm
Forum: Technical Discussion
Topic: USB stability issue
Replies: 1
Views: 7105

Re: USB stability issue

Mmm, it's possible that the code would lock up. It's all interrupt driven. I would avoid windows reading files off of the disk and the camera writing them. Can you avoid disk usage and use the VCP port instead? The OS caches disk files and whatnot and ignores writes by the cam while it's plugged int...
by kwagyeman
Mon Apr 08, 2019 5:37 pm
Forum: General Topics
Topic: Issue with installing, running openmv ide on raspberrypi
Replies: 4
Views: 7482

Re: Issue with installing, running openmv ide on raspberrypi

Seems like an issue with that file. I will have a new IDE release out soon and will fix this then. Can you let me know what OS build you are using? Date, etc.
by kwagyeman
Sun Apr 07, 2019 8:07 pm
Forum: General Topics
Topic: Send image via serialport
Replies: 15
Views: 22033

Re: Send image via serialport

No, that just does a hard reset of the board as if you pressed a reset switch.

Go to advanced search