Search found 4650 matches

by kwagyeman
Thu May 10, 2018 4:52 pm
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 88
Views: 42748

Re: Advanced Iris Tracking Software

Hi, that would be a general purpose python question. You should Google about how to do that in Python and there's likely a lot of examples.
by kwagyeman
Thu May 10, 2018 2:05 pm
Forum: General Topics
Topic: IDE compiles and runs okay under opensuse
Replies: 3
Views: 1898

Re: IDE compiles and runs okay under opensuse

Sorry, I meant the IDE binaries. Compiling the IDE is a lot of work. I had to setup two VERY special Linux VMs to make the software work on all Linux machines (basically I had to use the oldest libc possible and somehow compile while dealing with it).
by kwagyeman
Thu May 10, 2018 2:01 pm
Forum: Technical Discussion
Topic: i2c clock line staying low acting as i2c slave
Replies: 3
Views: 1569

Re: i2c clock line staying low acting as i2c slave

Okay, please see the Pixy Emulation Example scripts for I2C control. The code in there works. It's under examples -> Pixy emulation. In particular, you have to disable interrupts and whatnot.
by kwagyeman
Thu May 10, 2018 1:59 pm
Forum: Technical Discussion
Topic: i2c clock line staying low acting as i2c slave
Replies: 3
Views: 1569

Re: i2c clock line staying low acting as i2c slave

Hi, when you have the OpenMV Cam as an I2C slave it kinda needs to have the result ready it's supposed to return ready to go before the master polls it. Otherwise, the camera shouldn't respond and should instead work on generating the next result to hold until someone asks for it. Given you want up ...
by kwagyeman
Wed May 09, 2018 10:25 pm
Forum: General Topics
Topic: Find_number function problem
Replies: 6
Views: 2505

Re: Find_number function problem

We plan to release a much more general purpose CNN framework that can do everything. Basically, you'll be able to load a NN for any class you'd like to find. This will be the first of it's kind and super easy to use with low power consumption.

Um, also, I will add image scaling to the firmware.
by kwagyeman
Wed May 09, 2018 10:23 pm
Forum: Technical Discussion
Topic: Multiple Camera Modules
Replies: 1
Views: 1061

Re: Multiple Camera Modules

I'd buy 4 OpenMV Cams. The processor only has hardware for one camera at a time.
by kwagyeman
Wed May 09, 2018 10:21 pm
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 88
Views: 42748

Re: Advanced Iris Tracking Software

Okay, I'll take a look.
by kwagyeman
Wed May 09, 2018 10:20 pm
Forum: General Topics
Topic: Cam H7: MIPI CSI support?
Replies: 2
Views: 2030

Re: Cam H7: MIPI CSI support?

Hi, the H7 doesn't support MIPI. However, we plan to keep the camera interface board spec around for a while so we reserved pins for a MIPI interface. This will allow us to build higher end OpenMV Cam's that are backwards compatible with older camera modules.
by kwagyeman
Wed May 09, 2018 12:04 pm
Forum: General Topics
Topic: Higher FPS
Replies: 38
Views: 15557

Re: Higher FPS

Um, the AprilTag code has the same issue internally, but, much harder to hit. You should always wrap your script with the try and catch stuff in general and handle any errors that are thrown. Um, the largest AprilTag dictionary I provide is 2k sysmbols. However, if you put two tags right next to eac...
by kwagyeman
Wed May 09, 2018 11:59 am
Forum: General Topics
Topic: Examples Greyed out in IDE
Replies: 4
Views: 2268

Re: Examples Greyed out in IDE

Note that the IDE keeps a shadow copy of those 3 directories in your user app folder copied from it's install folder. Each time you update the IDE or new examples code out it will try to update all those files. If you think it was unable to do so please manually copy the files. That said... It's som...
by kwagyeman
Wed May 09, 2018 11:55 am
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 88
Views: 42748

Re: Advanced Iris Tracking Software

The code only prints to the IDE. If you want to send data over the UART you have to call the usrt.write() method. Print sends data back to the PC over USB.
by kwagyeman
Wed May 09, 2018 2:48 am
Forum: Technical Discussion
Topic: Image importing
Replies: 4
Views: 1434

Re: Image importing

The image has to be on the camera.

I.e. please put the image on the SD card that is inserted into the camera. The image path is then "/folder/file.extension"
by kwagyeman
Wed May 09, 2018 1:14 am
Forum: Technical Discussion
Topic: Image importing
Replies: 4
Views: 1434

Re: Image importing

Hi, please try to load an RGB565 BMP file, or in better yet, PNM or PPM files.
by kwagyeman
Wed May 09, 2018 1:14 am
Forum: General Topics
Topic: Find_number function problem
Replies: 6
Views: 2505

Re: Find_number function problem

You just need to edit this method here: https://github.com/openmv/openmv/blob/m ... enet.c#L89

Right now, layer 0 is just 28x28. Scaling the input before the data comes in fixes the issue. I have plans to add a scaling method to the firmware. However, I do not have time right now.
by kwagyeman
Wed May 09, 2018 1:14 am
Forum: General Topics
Topic: Find_number function problem
Replies: 6
Views: 2505

Re: Find_number function problem

You just need to edit this method here: https://github.com/openmv/openmv/blob/m ... enet.c#L89

Right now, layer 0 is just 28x28. Scaling the input before the data comes in fixes the issue. I have plans to add a scaling method to the firmware. However, I do not have time right now.
by kwagyeman
Wed May 09, 2018 1:11 am
Forum: General Topics
Topic: IDE compiles and runs okay under opensuse
Replies: 3
Views: 1898

Re: IDE compiles and runs okay under opensuse

Cool, great to hear. Is there any issue on Open SuSe using the binaries?
by kwagyeman
Wed May 09, 2018 1:10 am
Forum: General Topics
Topic: I2C error with MPU6050
Replies: 3
Views: 1959

Re: I2C error with MPU6050

Hi, was this code working previously? Also, do you have pull ups on the SDA and SCL lines?
by kwagyeman
Wed May 09, 2018 1:08 am
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 88
Views: 42748

Re: Advanced Iris Tracking Software

Code: Select all

uart = UART(3, 19200, timeout_char = 1000)

while(True):
    count = uart.any()
    if count:
    	print(uart.read(count))
    	time.sleep(1000)
by kwagyeman
Wed May 09, 2018 1:07 am
Forum: General Topics
Topic: Higher FPS
Replies: 38
Views: 15557

Re: Higher FPS

Hi, sorry, this error is expected. I will update the error messages for this in the future. Just do this: # OpenMV 10x10 data matrix decoder # Added the Infrared LED'S to the project # Removed the IR blocker on the camera lens, it can now read matrix codes in the dark # Pi 3.14159265359 import senso...
by kwagyeman
Tue May 08, 2018 1:19 am
Forum: General Topics
Topic: Find_number function problem
Replies: 6
Views: 2505

Re: Find_number function problem

That method is just experimental. It's not really usable right now since it doesn't scale the image to the right size.

We plan to have full CNN support soon.

That said, if you are handy in C, we'd appreciate a PR to fix the code for find_number so it can accept multiple scales.
by kwagyeman
Mon May 07, 2018 11:11 pm
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 88
Views: 42748

Re: Advanced Iris Tracking Software

Yes, make sure both cameras share grounds and that RX plugs into TX of the other camera and TX plugs into RX of the other camera.
by kwagyeman
Mon May 07, 2018 11:10 pm
Forum: General Topics
Topic: Examples Greyed out in IDE
Replies: 4
Views: 2268

Re: Examples Greyed out in IDE

This would happen if the IDE was unable to copy files to the user home directory. Mmm. Ah! I was wondering why the IDE looked to not be good on your PC. Yes, please make sure the IDE was actually able to copy files to your home directory under ~/ApplicationData/Roaming/OpenMV IDE. I remember you had...
by kwagyeman
Mon May 07, 2018 11:06 pm
Forum: Technical Discussion
Topic: Arduino sending commands to OpenMV
Replies: 3
Views: 1344

Re: Arduino sending commands to OpenMV

Please post your solution for others. Thanks
by kwagyeman
Mon May 07, 2018 11:05 pm
Forum: General Topics
Topic: Timer PWM Input (Input capture mode)
Replies: 1
Views: 1795

Re: Timer PWM Input (Input capture mode)

See the Timer documentation:

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

Micropython is the HAL, so, just google that and you should get hits.

https://github.com/dhylands/upy-example ... ic_test.py
by kwagyeman
Mon May 07, 2018 9:27 pm
Forum: General Topics
Topic: CAM M7 availability after H7 release
Replies: 3
Views: 2394

Re: CAM M7 availability after H7 release

Hi, the M7 and H7 are 100% compatible with each other. They are both built by ST and feature the same processor core. One is just fancier. The pheripals are all the same. With the H7 you'll just have a magic 2x speed boost. No work on your part will be required. Both versions also have the same amou...
by kwagyeman
Mon May 07, 2018 12:15 pm
Forum: Kickstarter Topics
Topic: Future wishlist
Replies: 23
Views: 48639

Re: Future wishlist

Um, we've released the case files online. You should be able to 3d print something better using the files. There's also a rugged case someone in the community developed.
by kwagyeman
Mon May 07, 2018 12:13 pm
Forum: Kickstarter Topics
Topic: OpenMV Cam M7 progress
Replies: 8
Views: 15241

Re: OpenMV Cam M7 progress

Great to hear you are putting it in a commercial application. We actually have to gain more projects like this for the company to grow. Hobbyist sales will allow us to keep selling forever more or less... But, me and Ibrahim don't really get paid at the current sales level so that's why we are movin...
by kwagyeman
Mon May 07, 2018 11:50 am
Forum: General Topics
Topic: Higher FPS
Replies: 38
Views: 15557

Re: Higher FPS

Hmm, that's means you're out of RAM. Need to make that error more verbose.

Um, the resolution is really small however. This shouldn't happen.

I'll try your code out and see what's up. You should have no memory issues.
by kwagyeman
Mon May 07, 2018 2:35 am
Forum: General Topics
Topic: Higher FPS
Replies: 38
Views: 15557

Re: Higher FPS

Hi, you can't disable the frame buffer in the code. When you click the button in the IDE it just tells the camera it need not try to read a JPEG image from the camera. The camera will not produce another JPEG image if the current one has not been read. Um, anyway, what's the error otherwise? Can you...
by kwagyeman
Mon May 07, 2018 1:53 am
Forum: General Topics
Topic: Higher FPS
Replies: 38
Views: 15557

Re: Higher FPS

Not really sure QQQQVGA works correctly. That's a 40x30 image right? Mmm, will fix. Um, for a higher FPS play around with the sensor exposure control. You can go way higher if you lower it. But, to adjust you have to make the gain go way up which amplifies the noise. See the camera exposure control ...
by kwagyeman
Mon May 07, 2018 1:51 am
Forum: Technical Discussion
Topic: need to check orientation of below part
Replies: 7
Views: 1837

Re: need to check orientation of below part

Please use the lower resolution images I provided in the attached zip file in the previous post for getting started. Also, you need to update your firmware. We just released the latest OpenMV IDE for all this stuff. The binary method was improved and was previously not able to handle the arguments p...
by kwagyeman
Sun May 06, 2018 10:17 pm
Forum: Technical Discussion
Topic: Trouble with PIN 8
Replies: 4
Views: 1734

Re: Trouble with PIN 8

Can you narrow it down to where you think the error is?
by kwagyeman
Sun May 06, 2018 8:45 pm
Forum: General Topics
Topic: Higher FPS
Replies: 38
Views: 15557

Re: Higher FPS

Hi, I'm almost done with the release. I've just finishing up releasing for the Pi right now and will post it in a few hours. Um, so, data matrix speed is limited by the CPU. Messing around with the camera sensor will not improve it. That said, you can change the effort level the data matrix algorith...
by kwagyeman
Sun May 06, 2018 2:02 pm
Forum: General Topics
Topic: Higher FPS
Replies: 38
Views: 15557

Re: Higher FPS

What are you trying to do exactly?
by kwagyeman
Sun May 06, 2018 1:59 pm
Forum: Technical Discussion
Topic: need to check orientation of below part
Replies: 7
Views: 1837

Re: need to check orientation of below part

Our CNN for finding numbers isn't that great. Needs a better model: import sensor, image, time, pyb # Replace this image loading with a loop with snapshot... img = image.Image("OK.bmp", copy_to_fb=True) # load image img.binary([(90, 100)], zero=True) img.mean(7, threshold=True, offset=-40, invert=Fa...
by kwagyeman
Sat May 05, 2018 10:15 pm
Forum: Technical Discussion
Topic: saving video on SD card
Replies: 44
Views: 28249

Re: saving video on SD card

Can you try this out: It sounds like you may just have an IDE timeout issue and it's disconnecting because the camera didn't respond to a command in time. If the light keeps flashing then the camera is working fine and it's just the IDE disconnecting. import sensor, image, time, pyb, mjpeg sensor.re...
by kwagyeman
Sat May 05, 2018 4:58 pm
Forum: Technical Discussion
Topic: saving video on SD card
Replies: 44
Views: 28249

Re: saving video on SD card

This firmware works for me... I don't get any bugs with it and I can record for 100 seconds.

What error are you getting?
by kwagyeman
Sat May 05, 2018 3:12 pm
Forum: Technical Discussion
Topic: saving video on SD card
Replies: 44
Views: 28249

Re: saving video on SD card

Okay, Ibrahim's still working on this.
by kwagyeman
Sat May 05, 2018 2:34 pm
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 88
Views: 42748

Re: Advanced Iris Tracking Software

UART(3) is fixed to the same I/O pins.

As for receiving data. Please read the UART methods. In general, you want to call any() to see how many bytes are available and then read() that many bytes. If you'd like to see a great example... please see the Pixy Emulation UART script.
by kwagyeman
Sat May 05, 2018 2:32 pm
Forum: Technical Discussion
Topic: Arduino sending commands to OpenMV
Replies: 3
Views: 1344

Re: Arduino sending commands to OpenMV

Hi, can you post your code?
by kwagyeman
Sat May 05, 2018 2:31 pm
Forum: Technical Discussion
Topic: need to check orientation of below part
Replies: 7
Views: 1837

Re: need to check orientation of below part

Hi, this is not easy to do with any elementary methods, you'll have to build up a complex image processing setup to do this. First, do you have a jig to mount the OpenMV Cam in to look at the part? If so, then can you take pictures using the jig?
by kwagyeman
Sat May 05, 2018 2:29 pm
Forum: General Topics
Topic: Higher FPS
Replies: 38
Views: 15557

Re: Higher FPS

Hmm, please wait for the latest IDE. It will come out this weekend. We did an update of the bootloader and the old IDE can't handle it. If you updated your board's firmware using DFU recently then you'd have this issue. That said, you may also use DFU to update your firmware. Please see the OpenMV.d...
by kwagyeman
Fri May 04, 2018 11:14 am
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 88
Views: 42748

Re: Advanced Iris Tracking Software

No, use this: import time from pyb import UART # Always pass UART 3 for the UART number for your OpenMV Cam. # The second argument is the UART baud rate. For a more advanced UART control # example see the BLE-Shield driver. uart = UART(3, 19200, timeout_char = 1000) while(True): uart.write("Hello Wo...
by kwagyeman
Fri May 04, 2018 2:43 am
Forum: General Topics
Topic: X, Y values
Replies: 5
Views: 2800

Re: X, Y values

matrix.rect()
by kwagyeman
Fri May 04, 2018 12:31 am
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 88
Views: 42748

Re: Advanced Iris Tracking Software

Yes, communication is just a serial port between the two devices then. It's full duplex. You can use the struct module to send binary messages and decode them. Or, you can send data as text.
by kwagyeman
Fri May 04, 2018 12:30 am
Forum: Technical Discussion
Topic: saving video on SD card
Replies: 44
Views: 28249

Re: saving video on SD card

Ibrahim is digging deeper into this problem. He doesn't quite know what it is yet. But, it will get solved. There's definitely something funny going on with using the "with open" construct related to MicroPython - we've noticed that if you stop the cam using that call it crashes. If you try to open ...
by kwagyeman
Thu May 03, 2018 8:01 pm
Forum: General Topics
Topic: X, Y values
Replies: 5
Views: 2800

Re: X, Y values

Hi, if you have a 10x10 data matrix then you should have a returned ROI for it. I.e. x/y/w/h. So the center of that is: cx = x + (w / 2) cy = y + (h / 2) Then if you want to know the difference from the center of the image... Do: xoff = (img.width() / 2) - cx yoff = (img.height() / 2) - cy This work...
by kwagyeman
Thu May 03, 2018 2:09 am
Forum: Technical Discussion
Topic: saving video on SD card
Replies: 44
Views: 28249

Re: saving video on SD card

Sorry, I'll have the latest release out by Sunday. There are a few IDE protocol fixes in it that may help.

Go to advanced search