Search found 933 matches

by kwagyeman
Thu Aug 24, 2017 12:44 am
Forum: Technical Discussion
Topic: WiFi not working I think?
Replies: 6
Views: 116

Re: WiFi not working I think?

Maybe an update broke things? I'll have to check. I'm going to be doing a big push on getting wifi programming working soon so it will be more useful in about a month. Thanks for buying it.

Ibrahim, any thoughts?
by kwagyeman
Thu Aug 24, 2017 12:42 am
Forum: General Topics
Topic: camera data output
Replies: 1
Views: 5

Re: camera data output

Hi, do Snapshot, then do get statistics, then open a file and write the object returned by get statistics to a file. The get_stats object has a str() method so just need to write it to a file. Do you need the exact code for this? I can easily give you a general outline but giving you the exact code ...
by kwagyeman
Wed Aug 23, 2017 4:50 pm
Forum: Technical Discussion
Topic: Thresholds
Replies: 5
Views: 9

Re: Thresholds

Okay, cool. Yeah, so, please use the histeq() method on the image to stabilize the contrast after turning white balance and autogain off. Then you should see a very contrasty image. After which, open the threshold editor from OpenMV IDE. It's under tools/machine vision. Once you so that you'll be ab...
by kwagyeman
Wed Aug 23, 2017 12:44 pm
Forum: Technical Discussion
Topic: Streaming Data to PC at 25 FPS to custom Application
Replies: 11
Views: 120

Re: Streaming Data to PC at 25 FPS to custom Application

I'll try the faster SD card I have when I get a chance.
by kwagyeman
Wed Aug 23, 2017 12:42 pm
Forum: Technical Discussion
Topic: Streaming Data to PC at 25 FPS to custom Application
Replies: 11
Views: 120

Re: Streaming Data to PC at 25 FPS to custom Application

Um, kinda, the camera automatically compresses the frame buffer when the IDE has enabled preview on the start of snapshot. Compress for IDE allows you to manually trigger this so you can generate compressed data safe to send on a serial line if you are trying to send the IDE data over TTL serial. In...
by kwagyeman
Wed Aug 23, 2017 12:36 pm
Forum: Technical Discussion
Topic: Thresholds
Replies: 5
Views: 9

Re: Thresholds

Hi, yeah, sorry about the lack of documentation... That's not going to be fixed for a little while. Um, please see the Tools -Machine Vision -Threshold editor in OpenMV IDE. This will let you pick LAB or grayscale thresholds using OpenMV IDE. That is, if you are doing something involving color track...
by kwagyeman
Tue Aug 22, 2017 11:55 pm
Forum: Technical Discussion
Topic: Streaming Data to PC at 25 FPS to custom Application
Replies: 11
Views: 120

Re: Streaming Data to PC at 25 FPS to custom Application

Thanks just text. The image isn't being printed. The OpenMV Cam is just printing the image's attributes.

If you want an actual image to be sent then call compress_for_ide() on the image and print that. The FPS will fall again.
by kwagyeman
Tue Aug 22, 2017 5:22 pm
Forum: General Topics
Topic: Can the board works disconnected from IDE ?
Replies: 14
Views: 1209

Re: Can the board works disconnected from IDE ?

I haven't used the algorithm for find displacement in a while. The last time I used it the code for it worked kinda but I would not use that feature right now until it gets fixed. The algorithm does indeed work but is too fragile currently and I need to spend some time making it more robust. As for ...
by kwagyeman
Tue Aug 22, 2017 12:45 pm
Forum: General Topics
Topic: Can the board works disconnected from IDE ?
Replies: 14
Views: 1209

Re: Can the board works disconnected from IDE ?

Hi, please repost your code using the code tags. You can click the code button in the form editor to add those tags. Also, can you tell me if your code works in OpenMV IDE. It should run in OpenMV IDE fine. If possible, narrow down the error to something specific. It's more or less impossible for me...
by kwagyeman
Tue Aug 22, 2017 2:11 am
Forum: General Topics
Topic: script error
Replies: 1
Views: 22

Re: script error

You need to update the camera firmware. The IDE says this on the bottom of the GUI. Click the button that says click here.
by kwagyeman
Tue Aug 22, 2017 2:10 am
Forum: Technical Discussion
Topic: Fresh install on OSX 10.11: TypeError: function does not take keyword
Replies: 5
Views: 222

Re: Fresh install on OSX 10.11: TypeError: function does not take keyword

You need to update the camera firmware. See the out of date button on the bottom of the IDE and click update.
by kwagyeman
Mon Aug 21, 2017 7:04 pm
Forum: Technical Discussion
Topic: Streaming Data to PC at 25 FPS to custom Application
Replies: 11
Views: 120

Re: Streaming Data to PC at 25 FPS to custom Application

The frames are about 300kb each and they all get written in one large multiblock operation. Packaging frames is not possible (we don't have the ram) or the problem. I can try a faster SD card however. The one I am using isn't a high class card.
by kwagyeman
Mon Aug 21, 2017 2:53 pm
Forum: Technical Discussion
Topic: Image Stream
Replies: 38
Views: 411

Re: Image Stream

When time allows I will create some python scripts for interfacing to the OpenMV Cam using OpenMV IDEs robust comm stack. This should allow others to get stuff working nicely.
by kwagyeman
Mon Aug 21, 2017 11:53 am
Forum: Technical Discussion
Topic: RuntimeError: maximum recursion depth exceeded
Replies: 4
Views: 101

Re: RuntimeError: maximum recursion depth exceeded

This is a limit from the MicroPyhton environment. I'll need to search through the c code to find what the limit is set too. You can also ask this question on the MicroPyhton forums and they may be able to answer this more quickly.
by kwagyeman
Mon Aug 21, 2017 11:51 am
Forum: Technical Discussion
Topic: Image Stream
Replies: 38
Views: 411

Re: Image Stream

I'm sorry, I don't. We've demonstrated that our code works well for this. I don't know how NI's stuff operates. Is it possible for Lab View to call a system process that invokes our python script to save a file with the image data?
by kwagyeman
Mon Aug 21, 2017 1:43 am
Forum: General Topics
Topic: problem updating M4 firmware with IDE 1.7.1 on Mac
Replies: 8
Views: 144

Re: problem updating M4 firmware with IDE 1.7.1 on Mac

I see what's wrong. Forgot to update a string in the IDE. Um, anyway, the fix for this is easy. Just use the Run Bootloader option, then select the firmware file manually. This error is happening because on firmware 1.6.0 and older I can't ask the cam what architecture is has. So, I have the path ha...
by kwagyeman
Sat Aug 19, 2017 11:14 pm
Forum: Technical Discussion
Topic: Streaming Data to PC at 25 FPS to custom Application
Replies: 11
Views: 120

Re: Streaming Data to PC at 25 FPS to custom Application

Hi, the M7 can do: Grayscale MJPEG VGA record at 11 FPS RGB565 MJPEG VGA record at 5 FPS (note the camera is actually processing a bayer image instead of RGB565 at 640x480) RAW Grayscale VGA record at 15 FPS - e.g. ~4,608,000 B/s RAW RGB565 VGA record at 15 FPS (note the camera is actually processin...
by kwagyeman
Thu Aug 17, 2017 10:34 pm
Forum: Technical Discussion
Topic: Streaming Data to PC at 25 FPS to custom Application
Replies: 11
Views: 120

Re: Streaming Data to PC at 25 FPS to custom Application

Ah, yeah. Good idea. SD card write speed is actually blazing fast. It's 4 bit data at 25 MHz. You could get above 20 FPS with VGA. I'll give that a try when I get home. Note that you'll need to use a fast SD card. Also, note that I'm talking about jpeg compressed VGA images. Raw images are too large...
by kwagyeman
Thu Aug 17, 2017 8:43 pm
Forum: Technical Discussion
Topic: Streaming Data to PC at 25 FPS to custom Application
Replies: 11
Views: 120

Re: Streaming Data to PC at 25 FPS to custom Application

Hi, it's not possible to stream 25 FPS VGA video off of the OpenMV Cam. We don't have any I/O outputs that can run at the data rate you need to do that. The best we can do is compress the image but then you get about 10 FPS grayscale and 5 FPS RGB565. You may get slightly higher fps via spi than USB...
by kwagyeman
Thu Aug 17, 2017 10:18 am
Forum: General Topics
Topic: problem updating M4 firmware with IDE 1.7.1 on Mac
Replies: 8
Views: 144

Re: problem updating M4 firmware with IDE 1.7.1 on Mac

Mmm, the IDE doesn't hardcoded the path to the executable though. It just calls "python" followed by the script path. Um, as for you saying the IDE cannot find the firmware path. Does this mean the IDE is having trouble opening it's own resource files? I'd like to fix these problems. Can you post a ...
by kwagyeman
Wed Aug 16, 2017 3:22 pm
Forum: Technical Discussion
Topic: WiFi not working I think?
Replies: 6
Views: 116

Re: WiFi not working I think?

Ibrahim, can you test this out?
by kwagyeman
Tue Aug 15, 2017 11:31 am
Forum: General Topics
Topic: problem updating M4 firmware with IDE 1.7.1 on Mac
Replies: 8
Views: 144

Re: problem updating M4 firmware with IDE 1.7.1 on Mac

Oh, yeah, so the M4 has a crapy bootloader that's too fast to connect to. You need to use DFU mode to re-program the camera. OpenMV IDE will allow you to connect via DFU after the fast (first) bootloader option fails. DFU mode will also upgrade the bootloader so you can use the fast mode.
by kwagyeman
Tue Aug 15, 2017 11:30 am
Forum: General Topics
Topic: problem updating M4 firmware with IDE 1.7.1 on Mac
Replies: 8
Views: 144

Re: problem updating M4 firmware with IDE 1.7.1 on Mac

Just tested on Mac. Seems to work, connecting to upgrade the firmware didn't work on the first shot but it did on the second. Connecting to use the camera works with an M4. Um, does running normal scripts work? Hello world should run with some minor edits to remove anything that doesn't compile (the...
by kwagyeman
Tue Aug 15, 2017 11:25 am
Forum: General Topics
Topic: problem updating M4 firmware with IDE 1.7.1 on Mac
Replies: 8
Views: 144

Re: problem updating M4 firmware with IDE 1.7.1 on Mac

I'll have to check the MAC IDE. I moved the firmware DIRS around. I might have broken something.
by kwagyeman
Tue Aug 15, 2017 11:24 am
Forum: General Topics
Topic: OpenMV connection problem
Replies: 4
Views: 85

Re: OpenMV connection problem

Mmm, I wish I had this PC to debug on... I want to fix all weird serial issues like this.

Well, anyway, thanks.
by kwagyeman
Tue Aug 15, 2017 2:30 am
Forum: General Topics
Topic: OpenMV connection problem
Replies: 4
Views: 85

Re: OpenMV connection problem

Hi, I can't tell the exact problem in this situation. Please tell me: What OS are you using, what computer, etc. All environment info. Then, can you see if it works if the frame buffer is disabled very enabled. When the frame buffer is disabled much less info is being transferred over the USB cable....
by kwagyeman
Tue Aug 15, 2017 12:00 am
Forum: Technical Discussion
Topic: Detection the cars rear tail-light
Replies: 1
Views: 70

Re: Detection the cars rear tail-light

Find blobs is the best CV algorithm for this combined with get_histogram. I don't know how to do the math but you need to actively sample the image color space and look at the histogram and color statistics. Find blobs will just tell you an area in the image where the color is. But, you'll need to l...
by kwagyeman
Sun Aug 13, 2017 9:38 pm
Forum: Technical Discussion
Topic: Power the M7 from a 3.3 reg
Replies: 2
Views: 74

Re: Power the M7 from a 3.3 reg

As noted on the back of the board the OpenMV Cam M7 regulator is rated for 5V max.

You can however, push 3.3V into the OpenMV Cam M7 if you are not powering it via VIN. However, you must not connect USB/VIN power to it in this case.
by kwagyeman
Sat Aug 12, 2017 10:31 pm
Forum: General Topics
Topic: Review of the M7
Replies: 1
Views: 85

Re: Review of the M7

Thank you!

Note that we actually respond to feature requests. If you really want something we'll make it happen. We also actually fix bugs in a timely manner!

:)
by kwagyeman
Sat Aug 12, 2017 10:29 pm
Forum: General Topics
Topic: OpenMV IDE 1.7.0 / Firmware 2.5.0
Replies: 8
Views: 177

Re: OpenMV IDE 1.7.0 / Firmware 2.5.0

Hi, I'm going to push v1.7.1 tonight. It looks like there was some confusion on my part from v1.7.0 since I had been doing preview builds. I think me and Ibrahim will need to make intermediate build numbers so we don't show off pre-release stuff early as the final product. For both the firmware and ...
by kwagyeman
Fri Aug 11, 2017 12:00 pm
Forum: Technical Discussion
Topic: RuntimeError: maximum recursion depth exceeded
Replies: 4
Views: 101

Re: RuntimeError: maximum recursion depth exceeded

Wow, that's a lot of depth to your code. Good that you found a solution.
by kwagyeman
Fri Aug 11, 2017 1:29 am
Forum: Technical Discussion
Topic: How can I switch RGB565 to GRAYSCALE when receiving some information from UART?
Replies: 1
Views: 66

Re: How can I switch RGB565 to GRAYSCALE when receiving some information from UART?

Yes, just change the sensor pixformat.

sensor.set_pixformat(sensor.RGB565)

To:

sensor.set_pixformat(sensor.GRAYSCALE)
by kwagyeman
Fri Aug 11, 2017 1:04 am
Forum: Technical Discussion
Topic: Keyboard input
Replies: 3
Views: 89

Re: Keyboard input

Nope, not right now. I have a plan to offer something to allow OpenMV IDE to automatically handle cases like this with dialog pop-ups. But we don't have anything like that currently.
by kwagyeman
Thu Aug 10, 2017 12:08 am
Forum: Technical Discussion
Topic: Power saving mode
Replies: 11
Views: 941

Re: Power saving mode

Yes, you can change the firmware to do whatever you like: https://github.com/openmv/openmv/wiki/Firmware-Development ... I've answered your email externally. Here were the contents: >>> Hi There I have a bunch of question on your camera module 1. what is the differences between your M7 and M4 module...
by kwagyeman
Wed Aug 09, 2017 10:14 pm
Forum: Technical Discussion
Topic: UART read makes OpenMV IDE hang
Replies: 7
Views: 163

Re: UART read makes OpenMV IDE hang

Hi, don't block on reading the UART. Interrupts are disabled when doing that... We use MP calls which call the STM Hal. It should get fixed but... For now, can available () in a loop and just pull a byte out as you get one. Also, the current IDE has way to small of a serial timeout. We're about to r...
by kwagyeman
Wed Aug 09, 2017 9:53 pm
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 20
Views: 306

Re: Lines Detected Change on successive images

OMG. That's solid gold there. Yeah, we can do a lot with that.
by kwagyeman
Wed Aug 09, 2017 11:51 am
Forum: Technical Discussion
Topic: fps is slow when OpenMV boot from file system
Replies: 17
Views: 781

Re: fps is slow when OpenMV boot from file system

Thanks for finding this bug.
by kwagyeman
Wed Aug 09, 2017 10:49 am
Forum: Technical Discussion
Topic: fps is slow when OpenMV boot from file system
Replies: 17
Views: 781

Re: fps is slow when OpenMV boot from file system

OpenMV IDE, tools, run bootloader.
by kwagyeman
Tue Aug 08, 2017 11:48 am
Forum: Technical Discussion
Topic: Integral Image
Replies: 3
Views: 93

Re: Integral Image

Hi, if you index out of bounds get pixel returns none. Please handle the case is none is returned.
by kwagyeman
Tue Aug 08, 2017 11:45 am
Forum: Technical Discussion
Topic: fps is slow when OpenMV boot from file system
Replies: 17
Views: 781

Re: fps is slow when OpenMV boot from file system

Oh, yes, from the file system.

Mmm, okay... Ibrahim, do we compress the frame buffer if the camera is attached to the PC but OpenMV IDE isn't connected? Maybe that's the problem? The IDE normally tells the camera to disable the frame buffer.
by kwagyeman
Tue Aug 08, 2017 1:13 am
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 20
Views: 306

Re: Lines Detected Change on successive images

Hey, I got a lot of progression on porting the lsd algorithm to the cam. It will work on it... however, I had to modify a lot of the code. Since we need to do a release soon this feature will not be in the next release. I'll cut you a firmware with the fixes though afterwards.
by kwagyeman
Tue Aug 08, 2017 12:23 am
Forum: Technical Discussion
Topic: fps is slow when OpenMV boot from file system
Replies: 17
Views: 781

Re: fps is slow when OpenMV boot from file system

92 FPS... make sure to disable the frame buffer otherwise you get 30 FPS...
by kwagyeman
Mon Aug 07, 2017 10:14 pm
Forum: Technical Discussion
Topic: fps is slow when OpenMV boot from file system
Replies: 17
Views: 781

Re: fps is slow when OpenMV boot from file system

Can you copy the print out text here?
by kwagyeman
Mon Aug 07, 2017 9:28 pm
Forum: Technical Discussion
Topic: fps is slow when OpenMV boot from file system
Replies: 17
Views: 781

Re: fps is slow when OpenMV boot from file system

Yeah, I know what's wrong... Your getting serial characters overwriting each other...

Please add "timeout_char = 1000" to the UART constructor as another argument.
by kwagyeman
Mon Aug 07, 2017 2:58 pm
Forum: Project Discussion
Topic: My camera image has a weird curvature
Replies: 1
Views: 77

Re: My camera image has a weird curvature

Yeah, that's the effect of the lens since it's wide angle to see more. We chose the lens to have about 110 degree field of view. This is more than standard webcams of about 90. There's a command called lens_cor() which can undo that curvature. For an example, see the examples/codes and try out the Q...
by kwagyeman
Mon Aug 07, 2017 2:55 pm
Forum: Technical Discussion
Topic: Image Stream
Replies: 38
Views: 411

Re: Image Stream

So... We use really low compression quality to the GUI. Try lowering the compression quality and if you can... Please log where time is spent. I have a feeling though that it's spending more time compressing. Compress has a quality arg. Lower it.
by kwagyeman
Mon Aug 07, 2017 2:52 pm
Forum: Technical Discussion
Topic: Flipping the camera up-side-down
Replies: 17
Views: 1815

Re: Flipping the camera up-side-down

You can't flip just an ROI. It's the whole.image since that command is editing what's generated from the camera.
by kwagyeman
Mon Aug 07, 2017 12:01 pm
Forum: Technical Discussion
Topic: Image Stream
Replies: 38
Views: 411

Re: Image Stream

Always remember to search the docs. :)
by kwagyeman
Mon Aug 07, 2017 12:00 pm
Forum: Technical Discussion
Topic: fps is slow when OpenMV boot from file system
Replies: 17
Views: 781

Re: fps is slow when OpenMV boot from file system

Ibrahim, can you check this? Maybe timeout_char = 1000 is missing for the UART call?

Go to advanced search