Search found 914 matches

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: 6
Views: 26

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: 1
Views: 12

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: 6
Views: 26

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: 6
Views: 26

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: 6
Views: 26

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

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

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

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

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

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

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

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

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

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

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

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: 19
Views: 247

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

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

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

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

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: 19
Views: 247

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

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

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

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

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: 34
Views: 331

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

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: 34
Views: 331

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

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?
by kwagyeman
Mon Aug 07, 2017 11:57 am
Forum: Technical Discussion
Topic: Auto-calibration for find_blobs thresholds
Replies: 1
Views: 42

Re: Auto-calibration for find_blobs thresholds

Hi, did you see the automatic threshold algorithm under color tracking examples?

As for line following once I've got some much better code for a donkey car coming out soon. Just need to test it this weekend at the dyi robocar races.
by kwagyeman
Mon Aug 07, 2017 4:00 am
Forum: Technical Discussion
Topic: Image Stream
Replies: 34
Views: 331

Re: Image Stream

Remember the camera supports REPL. You can command it via a script from the PC if you want. MicroPython probably has a way to send the camera a file to execute... look around in their repo... and get the serial responses.
by kwagyeman
Mon Aug 07, 2017 3:58 am
Forum: Technical Discussion
Topic: Image Stream
Replies: 34
Views: 331

Re: Image Stream

Yeah, you can do that directly. Um, just do: img = sensor.snapshot() print(img.compressed_for_ide()) This will come out of whatever serial port the thing is attached too. Here's how to decode the data stream: https://github.com/openmv/qt-creator/blob/4fd4e89cf1da788347401ddd5da88dec34edc301/src/plug...
by kwagyeman
Mon Aug 07, 2017 2:40 am
Forum: Technical Discussion
Topic: Flipping the camera up-side-down
Replies: 17
Views: 1705

Re: Flipping the camera up-side-down

Those commands flip the whole image. That's what you want right?
by kwagyeman
Mon Aug 07, 2017 1:44 am
Forum: Technical Discussion
Topic: opening a saved mjpeg for analysis
Replies: 20
Views: 360

Re: opening a saved mjpeg for analysis

Hi, can you try out the new Mac IDE and let me know if it fixes the issue? In particular, with being able to connect to the camera and have everything work. The difference between the two IDEs should be night and day.
by kwagyeman
Mon Aug 07, 2017 1:42 am
Forum: General Topics
Topic: IDE on mac
Replies: 6
Views: 176

Re: IDE on mac

Can you please try the Mac fix out and let me know...
by kwagyeman
Mon Aug 07, 2017 1:42 am
Forum: General Topics
Topic: IDE on mac
Replies: 6
Views: 176

Re: IDE on mac

Can you please try the Mac fix out and let me know...
by kwagyeman
Mon Aug 07, 2017 12:03 am
Forum: Technical Discussion
Topic: Flipping the camera up-side-down
Replies: 17
Views: 1705

Re: Flipping the camera up-side-down

sensor.set_vflip(True)
sensor.set_hmirror(True)

?
by kwagyeman
Sun Aug 06, 2017 1:18 pm
Forum: General Topics
Topic: Freeze after toggle sensor pixformat in the code
Replies: 3
Views: 70

Re: Freeze after toggle sensor pixformat in the code

If you are getting a memory allocated filed error then you are running out of heap for something. Debug what method is throwing hat and wrap it in a try and except so you can just bail if the method fails.
by kwagyeman
Sun Aug 06, 2017 1:17 pm
Forum: General Topics
Topic: Freeze after toggle sensor pixformat in the code
Replies: 3
Views: 70

Re: Freeze after toggle sensor pixformat in the code

Hi, is there a reason you need to change modes? All the newer code I'm adding works in grayscale and rgb565. Anyway, when you switch modes some frames will be dropped. This isn't a bug. It just happens. By newer code... Anything that returns an object with methods as a result is newer code. So, all ...
by kwagyeman
Sat Aug 05, 2017 8:42 pm
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 19
Views: 247

Re: Lines Detected Change on successive images

Mmm, so, I just tried my method out again and the results aren't really that bad... Um, it's not going to work really well pointing it at random stuff. That was not my goal, have you tried just having like one thing in the image? The camera is still a sensor and has to be used in a focused way. I do...
by kwagyeman
Sat Aug 05, 2017 8:24 pm
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 19
Views: 247

Re: Lines Detected Change on successive images

Just email openmv for the docs. Okay, so, it's possible to port that c code. I took a look at it and it's doable... but, somewhat a lot of work. Like... a lot of the OpenCV stuff there is no effort not to waste memory on pointless amounts of resolution. So, I'll have to modify a lot of things in the...
by kwagyeman
Sat Aug 05, 2017 5:02 pm
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 19
Views: 247

Re: Lines Detected Change on successive images

Mmm, it looks like they've got a C code library for it. I could port it to the M7 pretty easily.

Yeah, the code is quite simple. Should be easy to port...

...

Okay, I'll schedule to do this.
by kwagyeman
Sat Aug 05, 2017 4:56 pm
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 19
Views: 247

Re: Lines Detected Change on successive images

Heh, heh, so, those are all stills... so, you don't know if their code is any better. That said, it probably is. Anyway, I think the main source of error is the fact that the camera output is rather jumpy. If you look at just what the camera sees you'll notice that the color and gain level are rapid...
by kwagyeman
Sat Aug 05, 2017 2:52 pm
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 19
Views: 247

Re: Lines Detected Change on successive images

Yeah, that's due to how the fast method we're using to detect lines works along with the averaging of lines... if you turn down all the averaging options and whatnot you'll be able to see the real output of the algorithm... and how there are a lot of detections to deal with. For example, lower the t...
by kwagyeman
Sat Aug 05, 2017 12:37 pm
Forum: General Topics
Topic: openmv-ide-1.6.0.mag can not run
Replies: 1
Views: 38

Re: openmv-ide-1.6.0.mag can not run

Thanks for reposting. However, I was hoping you'd add some more info. I don't know what you are talking about. Can you try to write a paragraph to explain the problem?
by kwagyeman
Sat Aug 05, 2017 11:55 am
Forum: Technical Discussion
Topic: Firmware 2.5.0 for openMV3
Replies: 1
Views: 70

Re: Firmware 2.5.0 for openMV3

Which firmware did you install on your board?
by kwagyeman
Fri Aug 04, 2017 11:55 am
Forum: Technical Discussion
Topic: Image Stream
Replies: 34
Views: 331

Re: Image Stream

Oh, okay, so you see the same data with a USB sniffer... Um, question, are all the bytes between 0x80 and 0xBF?
by kwagyeman
Fri Aug 04, 2017 11:53 am
Forum: Technical Discussion
Topic: Image Stream
Replies: 34
Views: 331

Re: Image Stream

Hi, what I mean by MTU sized chunks is that on older MACs we've seen the OS drop bytes. Like, literally fom receiveing a USB packet to then giving it to the user application the OS drops bytes because it doesn't expect that much data to go through a serial port at USB speeds.

Go to advanced search