Search found 2976 matches

by kwagyeman
Mon Apr 15, 2019 5:37 pm
Forum: General Topics
Topic: Detecting Letters
Replies: 37
Views: 1067

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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: 46
Views: 71554

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

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

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

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

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

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

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

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

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

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

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

Re: Send image via serialport

No, that just does a hard reset of the board as if you pressed a reset switch.
by kwagyeman
Sun Apr 07, 2019 8:02 pm
Forum: General Topics
Topic: Send image via serialport
Replies: 15
Views: 22197

Re: Send image via serialport

Hmm, I've seen similar things before due to weird file permissions. Um, format the onboard drive. Then save a new main.py to the camera using OpenMV IDE.

You can format the uPy drive in Linux or just reflash the whole camera firmware to fix this.
by kwagyeman
Sun Apr 07, 2019 7:49 pm
Forum: General Topics
Topic: Bricked OpenMV
Replies: 7
Views: 11423

Re: Bricked OpenMV

Hi, our shipping is really backed up right now. It will take weeks for us to send you something. buy another from digikey right now and let me know when you want a freebie. There's no guide for how cameras get messed up right now. I suppose it usually has something to do with static shocks or the sy...
by kwagyeman
Sun Apr 07, 2019 6:52 pm
Forum: General Topics
Topic: Bricked OpenMV
Replies: 7
Views: 11423

Re: Bricked OpenMV

Hmm, that sounds like a hardware failure. Email us with a receipt which should proof of purchase at one of our distributors for a replacement. The white light which has multicolored pulses blinking fast is a hardware failure. The system jumps to a routine which blinks the lights when this happens. I...
by kwagyeman
Sun Apr 07, 2019 8:15 am
Forum: General Topics
Topic: Bricked OpenMV
Replies: 7
Views: 11423

Re: Bricked OpenMV

Given you were able to get through the DFU process I would guess that the board is fine. However, it could have been possible to break the board such that the bootloader works but the regular firmware doesn't. That said, after DFU finishes the regular USB bootloader which is that green flashing ligh...
by kwagyeman
Sun Apr 07, 2019 8:13 am
Forum: General Topics
Topic: Bricked OpenMV
Replies: 7
Views: 11423

Re: Bricked OpenMV

Hi, can you try the DFU procedure again? Note that when you short the RST and boot0 wires the device when plugged into USB appears as an STM32 bootloader device. If it appears as that in your device manager on Windows for example, then the board is fine and you just have to get through the DFU proce...
by kwagyeman
Fri Apr 05, 2019 12:47 pm
Forum: General Topics
Topic: Send image via serialport
Replies: 15
Views: 22197

Re: Send image via serialport

You might be running the wrong python version if these were problems. 3 versus 2.7
by kwagyeman
Fri Apr 05, 2019 12:13 pm
Forum: General Topics
Topic: Send image via serialport
Replies: 15
Views: 22197

Re: Send image via serialport

Change the "w" in open to "wb".
by kwagyeman
Fri Apr 05, 2019 11:42 am
Forum: General Topics
Topic: Send image via serialport
Replies: 15
Views: 22197

Re: Send image via serialport

Hi, the string "snap" is suppose to be sent to the camera. Not to the screen asking the user. If the message must be in bytes change "snap" to b"snap" or 'snap'.encode('utf-8')
by kwagyeman
Thu Apr 04, 2019 9:04 am
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 46
Views: 71554

Re: Python script to output MAVLink

The AprilTag one is in the same directory as the optical flow one.
by kwagyeman
Thu Apr 04, 2019 6:21 am
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 46
Views: 71554

Re: Python script to output MAVLink

Hi, so, I had to do a lot of library fixes for random things in the last release. However, I will be fixing some things the algorithm requires to enable rotation/up/down correction and then once that is done it should be quite robust. Please send the PR to replace the script in the main repo. Can yo...
by kwagyeman
Wed Apr 03, 2019 10:38 pm
Forum: General Topics
Topic: OpenMV (Master) - Arduino Mega 2560 (slave) - SPI
Replies: 2
Views: 3663

Re: OpenMV (Master) - Arduino Mega 2560 (slave) - SPI

Hi, your Arduino is not in slave mode there.

I highly recommend serial comms to connect the camera to an Arduino. It is much easier.
by kwagyeman
Wed Apr 03, 2019 2:03 pm
Forum: Technical Discussion
Topic: encoder question
Replies: 14
Views: 13743

Re: encoder question

It looks like you got the left right. As for the R one. If you look at this datasheet you can see what the extra functions are on the pins: https://www.st.com/resource/en/datasheet/stm32f765vi.pdf Anyway, Timer 2, channels 3 and 4 are available on "P4" and "P5". So, just use that, as for the motor d...
by kwagyeman
Tue Apr 02, 2019 10:18 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 46
Views: 71554

Re: Python script to output MAVLink

Maybe update the message format to accept a quality value for the kalman filter in the Ardu pilot? Since the output of the camera is a noisy sensor it technically has to be filtered too.
by kwagyeman
Tue Apr 02, 2019 10:15 pm
Forum: General Topics
Topic: [Basic] Outputting Edge Detection Image to be Put in to Line Detection
Replies: 7
Views: 4505

Re: [Basic] Outputting Edge Detection Image to be Put in to Line Detection

Do something like: img = sensor.snapshot() img.find_edges(...) blobs = img.find_blobs([(200, 255)], area_threshold=0, pixels_threshold=0) print(blobs) if blobs > 1: print("Error") elif blobs == 1: print("All connected") else: print("No blobs") Again, find blobs creates blobs by connecting all pixels...
by kwagyeman
Tue Apr 02, 2019 10:10 pm
Forum: General Topics
Topic: [Basic] Outputting Edge Detection Image to be Put in to Line Detection
Replies: 7
Views: 4505

Re: [Basic] Outputting Edge Detection Image to be Put in to Line Detection

Hi, use find_blobs() on the edge image. Find_blobs() connects all pixels of a particular color with each other. This if there isn't a breakage you will get one big blob. If there is a break you will get multiple blobs. Set the color threshold to white to find all the white pixels connected with find...
by kwagyeman
Tue Apr 02, 2019 10:06 pm
Forum: Project Discussion
Topic: Mutiple cams talk to one Arduino MKR ( three masters)
Replies: 1
Views: 3106

Re: Mutiple cams talk to one Arduino MKR ( three masters)

Using the serial port is the best way to transfer data. Anyway, thanks for the post!
by kwagyeman
Tue Apr 02, 2019 11:09 am
Forum: General Topics
Topic: Reading stream of data sent from OpenMV to Raspberry Pi through USB
Replies: 5
Views: 3676

Re: Reading stream of data sent from OpenMV to Raspberry Pi through USB

Hi, you're the second person who's mentioned the VCP port might be unstable. What errors are you getting exactly?

You didn't quite mention what the problem is in detail.
by kwagyeman
Tue Apr 02, 2019 11:07 am
Forum: Technical Discussion
Topic: encoder question
Replies: 14
Views: 13743

Re: encoder question

Hi, see this example:

https://github.com/dhylands/upy-example ... ncoder3.py

You need to change the pin names and verify the right timer/channel for the correct pins but otherwise it should work.
by kwagyeman
Tue Apr 02, 2019 11:05 am
Forum: General Topics
Topic: OPENMV1 and STM32F407 Discovery board
Replies: 2
Views: 2989

Re: OPENMV1 and STM32F407 Discovery board

Our firmware doesn't run on that board. You'll have to manually edit the I/O pin connections for many things.
by kwagyeman
Mon Apr 01, 2019 11:04 am
Forum: General Topics
Topic: UART communication with Teensy (Arduino)
Replies: 2
Views: 3162

Re: UART communication with Teensy (Arduino)

Hi, I can debug this tonight. It looks pretty right however.

It's probably something really simple.

Go to advanced search