Search found 744 matches

by kwagyeman
Mon Jun 26, 2017 12:04 pm
Forum: Technical Discussion
Topic: mjpeg_on_movement.py example: How long would a recording last?
Replies: 1
Views: 10

Re: mjpeg_on_movement.py example: How long would a recording last?

Hi, this was a really early on script we wrote. Later scripts are better. Use pyb.millis() and pyb.elapsed_millis() (see the libray on them) to change the inner for loop from just a random 200 frame value to actual time elasped. As for your second request, you can do algorithms on frames before they...
by kwagyeman
Mon Jun 26, 2017 11:43 am
Forum: Technical Discussion
Topic: color_drawing.py and error with img.width()/2
Replies: 4
Views: 28

Re: color_drawing.py and error with img.width()/2

Yeah... Not sure why. MP issue.
by kwagyeman
Mon Jun 26, 2017 11:28 am
Forum: Technical Discussion
Topic: heliostat project
Replies: 37
Views: 1709

Re: heliostat project

Um, if your firmware is old this is the case. Have you updated your firmware?
by kwagyeman
Mon Jun 26, 2017 11:25 am
Forum: Technical Discussion
Topic: What about the 256KB RAM?
Replies: 1
Views: 18

Re: What about the 256KB RAM?

It's in something called the frame buffer. The way the camera is designed, the program is run in something called the CCM (core coupled memory). This is a 128kb bank of RAM on the M7 directly attached to the CPU. We store the .data, .bss, stack, and heap there. The frambffer, 384kb of RAM, is in ano...
by kwagyeman
Sun Jun 25, 2017 5:13 pm
Forum: General Topics
Topic: Pointers for Info on Symbol Recognition
Replies: 3
Views: 28

Re: Pointers for Info on Symbol Recognition

Template matching using something called an integral image to work. This requires 4 bytes per pixel in the big image. So, 307200 bytes... plus the size of the image itself which is 320x240x2 = 153600 bytes. So, that's 460800 in total. The M7 has about 350KB to play with. We can improve template matc...
by kwagyeman
Sun Jun 25, 2017 11:37 am
Forum: Technical Discussion
Topic: heliostat project
Replies: 37
Views: 1709

Re: heliostat project

Yeah, note that we added methods to get blob values by name now. So you can just do .cx() and .cy() to get the centroid.
by kwagyeman
Sun Jun 25, 2017 11:33 am
Forum: General Topics
Topic: Pointers for Info on Symbol Recognition
Replies: 3
Views: 28

Re: Pointers for Info on Symbol Recognition

Hi, thanks for buying M7. So, just a note. We're rapidly expanding the feature set of the OpenMV Cam. If there's something it doesn't do and it's not too hard to add we'll try to implement it. The product is still new and being built up. Anyway, we don't have good support really for what you want to...
by kwagyeman
Sat Jun 24, 2017 12:06 pm
Forum: Technical Discussion
Topic: heliostat project
Replies: 37
Views: 1709

Re: heliostat project

largest_blob = max(blob_list, key = lamda x: x.pixels()) The above returns the largest blob in pixels from the image from a list of blobs which find_blobs returns. As for the gain control stuff. You should probably just constantly be tracking whatever object you see and trying to center of it. Maybe...
by kwagyeman
Sat Jun 24, 2017 12:02 pm
Forum: General Topics
Topic: OV2640 and simple streaming
Replies: 11
Views: 179

Re: OV2640 and simple streaming

Yes, we can record VGA grayscale video at over 5 fps. The video would be MJPEG compressed. Anyway, right now our turn on from power off is not well tested, but, you can shutdown the MCU in software. I'd recommend a circuit that that supplies 3.3v to the camera when the PIR detects motion and then ha...
by kwagyeman
Fri Jun 23, 2017 5:49 pm
Forum: Technical Discussion
Topic: heliostat project
Replies: 37
Views: 1709

Re: heliostat project

Hi, it looks like your not filtering the output of find blobs. You code seems to look at whatever the first blob is found. However, find blobs returns blobs in a unsorted manner. You should look for the maximum sized blob. Um, anyway, can you classify what you mean by the camera looses the sun for 1h?
by kwagyeman
Fri Jun 23, 2017 5:14 pm
Forum: Technical Discussion
Topic: color_drawing.py and error with img.width()/2
Replies: 4
Views: 28

Re: color_drawing.py and error with img.width()/2

Python doesn't convert floats to ints for you. It will upgrade values to floats if a float is used however. Wrap the result in int().
by kwagyeman
Fri Jun 23, 2017 4:18 pm
Forum: Technical Discussion
Topic: find_lines vs cv2.HoughLines ... which is better?
Replies: 16
Views: 264

Re: find_lines vs cv2.HoughLines ... which is better?

Um, see the line following code under the color tracking examples. There's some code there that does exactly what you want. Basically, you need to use a lambda lethod. Google python get max of object in array. I think what you want looks like this: Max(img.find, key=lambda x: x.length()) Basically, ...
by kwagyeman
Fri Jun 23, 2017 1:02 am
Forum: Technical Discussion
Topic: Distance of openMV
Replies: 2
Views: 49

Re: Distance of openMV

The telephoto lens along with using QVGA zoom with VGA video will allow you to zoom up to 8X. This will make a target that is 25m away look like it was 3.125m away. Anyway, we can easily capture an image on the pulse of an interrupt pin. However, we really haven't exactly worked on making fast video...
by kwagyeman
Thu Jun 22, 2017 12:11 pm
Forum: General Topics
Topic: RuntimeError with Camera as SPI Slave combined with sensor.snapshot()?
Replies: 1
Views: 39

Re: RuntimeError with Camera as SPI Slave combined with sensor.snapshot()?

Hi, please see the pixy emulation script with spi for how to use the OpenMV Cam as a spi slave. That said, using the camera as a SPI slave is... Hard. Really hard. This is because the OpenMV Cam will not always be ready to handle spi data request when you try to access it. If you want to work with t...
by kwagyeman
Thu Jun 22, 2017 12:31 am
Forum: General Topics
Topic: LED all colors blinking after program stops
Replies: 5
Views: 122

Re: LED all colors blinking after program stops

Hi, I just got around to looking at this code. Um, so, you can't use recursive operations on a microcontroller. "findQueueCombinationsRecursive" we don't have a stack protector since that would reduce performance. Once you go beyond the stack limit you just walk right into the heap. As the case for ...
by kwagyeman
Wed Jun 21, 2017 9:32 pm
Forum: Technical Discussion
Topic: Openmvide does not recognize internal disk
Replies: 7
Views: 109

Re: Openmvide does not recognize internal disk

Note, when you reprogram with the OpenMV.dfu file you should not have the SD card inserted. This will cause issues...
by kwagyeman
Wed Jun 21, 2017 4:27 pm
Forum: Technical Discussion
Topic: Running mjpeg.py more than once without resetting the camera
Replies: 2
Views: 42

Re: Running mjpeg.py more than once without resetting the camera

You forgot to close the first file.

As for resetting, that is required since the OS will only scan USB flash disks once on plugin since they shouldnt be able to create their own files.
by kwagyeman
Wed Jun 21, 2017 4:24 pm
Forum: Technical Discussion
Topic: Flipping the camera up-side-down
Replies: 9
Views: 1272

Re: Flipping the camera up-side-down

See sensor.hmirror and sensor.vflip. Rotation has not been implemented yet though it would be easy to do.
by kwagyeman
Wed Jun 21, 2017 11:21 am
Forum: General Topics
Topic: How to restore the histogram window
Replies: 11
Views: 244

Re: How to restore the histogram window

Please hover your mouse near the bottom of the IDE under the frame buffer will window. Your mouse should change to a grab pointer. Left click to grab the window and the histogram will window will unhide itself.
by kwagyeman
Wed Jun 21, 2017 11:19 am
Forum: General Topics
Topic: IDE <--> M7 disconnects upon running script
Replies: 13
Views: 227

Re: IDE <--> M7 disconnects upon running script

I k ow how to fix this issue. I just need to get some time to work on it.
by kwagyeman
Wed Jun 21, 2017 11:18 am
Forum: General Topics
Topic: IDE -- missing frame buffer view and histos
Replies: 19
Views: 241

Re: IDE -- missing frame buffer view and histos

Your forum messages imply you don't care about getting an answer/solution to your problem. "Well it seems to be missing is not something you would post if your looking to get your issues resolved."
by kwagyeman
Wed Jun 21, 2017 11:16 am
Forum: General Topics
Topic: openmv to arduino with template matching examples
Replies: 17
Views: 254

Re: openmv to arduino with template matching examples

Can you let me know ow what it prints...
by kwagyeman
Wed Jun 21, 2017 11:16 am
Forum: General Topics
Topic: lcd shield doesn't work
Replies: 19
Views: 693

Re: lcd shield doesn't work

We don't sell an LCD and keypad shield.
by kwagyeman
Wed Jun 21, 2017 11:15 am
Forum: Technical Discussion
Topic: Openmvide does not recognize internal disk
Replies: 7
Views: 109

Re: Openmvide does not recognize internal disk

Mmm, we've noticed a firmware issue with the internal disk not being reconginized. I believe we can fix this if we can get an idea of what the problem is. Can you open a bug on the OpenMV GitHub.

... About random issues, your an early adopter buying the camera right now. Sorry about having them.
by kwagyeman
Mon Jun 19, 2017 11:37 am
Forum: Technical Discussion
Topic: find_lines vs cv2.HoughLines ... which is better?
Replies: 16
Views: 264

Re: find_lines vs cv2.HoughLines ... which is better?

Yes, all Rois are x,y,w,h. Select an area in the frame buffer of the IDE and it should tell you the ROI for that area.
by kwagyeman
Mon Jun 19, 2017 11:17 am
Forum: Technical Discussion
Topic: find_lines vs cv2.HoughLines ... which is better?
Replies: 16
Views: 264

Re: find_lines vs cv2.HoughLines ... which is better?

By definition when you use a region of interest the algorithm only does work on that region. So, you need to call the algorithm for each region but it does less work since each region is smaller than the whole image. In the latest version of OpenMV IDE you can select an area in the frame buffer to g...
by kwagyeman
Mon Jun 19, 2017 11:08 am
Forum: General Topics
Topic: LED all colors blinking after program stops
Replies: 5
Views: 122

Re: LED all colors blinking after program stops

Getting random attribute errors also please send a sign of memory corruption.
by kwagyeman
Mon Jun 19, 2017 11:06 am
Forum: General Topics
Topic: LED all colors blinking after program stops
Replies: 5
Views: 122

Re: LED all colors blinking after program stops

All lights flashing means a hard error. Normally this is due to memory corruption. So, one of the functions you are calling likely has a bug in it. Can you track down the line of code that has the issue? It's most likely on of our methods, i.e. not general python stuff. Please let me know what is wr...
by kwagyeman
Mon Jun 19, 2017 11:03 am
Forum: General Topics
Topic: openmv IDE flash out
Replies: 1
Views: 62

Re: openmv IDE flash out

OpenMV IDE works on Windows XP SP3 32bit only. Any other win xp version has weird USB driver issues that prevent our driver from working.

Adl good test is... Can you use your Arduino with the OS? If not, then the OpenMV Cam will not work too.
by kwagyeman
Mon Jun 19, 2017 12:46 am
Forum: Technical Discussion
Topic: Power Vcc with 3.3v directly
Replies: 1
Views: 57

Re: Power Vcc with 3.3v directly

Yes, that is fine. Just don't power VIN or the USB at the same time... That said, I've done just that and my board hasn't failed. But, we don't replace cameras if you break them. So be careful.
by kwagyeman
Sun Jun 18, 2017 10:21 pm
Forum: Technical Discussion
Topic: Installing on Odroid XU-4 Ubuntu giving errors ... newbie question
Replies: 13
Views: 237

Re: Installing on Odroid XU-4 Ubuntu giving errors ... newbie question

Yeah, I think so, I posted the wrong firmware. I actually downloaded it myself and realized it was wrong too. :). Not that the AprilTags corners and data matrix corners are shifted by one in the wrong order in the firmware I posted. In the release version keep in mind that the corner order will chan...
by kwagyeman
Sat Jun 17, 2017 11:02 am
Forum: Project Discussion
Topic: Pan Tilt Tracking FYI
Replies: 1
Views: 59

Re: Pan Tilt Tracking FYI

Cool, look at the UART Pixy emulation script for a good code base to start with.
by kwagyeman
Sat Jun 17, 2017 11:00 am
Forum: General Topics
Topic: FYI - Presenting MV at local PyRVA User group
Replies: 1
Views: 47

Re: FYI - Presenting MV at local PyRVA User group

Cool, let me know ow if you need anything.
by kwagyeman
Sat Jun 17, 2017 12:00 am
Forum: General Topics
Topic: IDE Disconnect
Replies: 4
Views: 92

Re: IDE Disconnect

by kwagyeman
Fri Jun 16, 2017 11:33 pm
Forum: Technical Discussion
Topic: find_lines vs cv2.HoughLines ... which is better?
Replies: 16
Views: 264

Re: find_lines vs cv2.HoughLines ... which is better?

Okay, I see. So, fine_line_segments does just what you need: http://docs.openmv.io/library/omv.image.html#image.image.find_line_segments And it returns a list of these things: http://docs.openmv.io/library/omv.image.html#class-line-line-object ... You just need to setup your thresholds and merge set...
by kwagyeman
Fri Jun 16, 2017 9:28 pm
Forum: General Topics
Topic: IDE Disconnect
Replies: 4
Views: 92

Re: IDE Disconnect

The latest IDE being the one I posted on the forums you alluded too. Going to do a patch release for the IDE this weekend.
by kwagyeman
Fri Jun 16, 2017 9:27 pm
Forum: General Topics
Topic: IDE Disconnect
Replies: 4
Views: 92

Re: IDE Disconnect

Can you upload a test package? Also, did you install the latest IDE? If not then yo're getting hit by the 40 ms timeout. This is causing the IDE to disconnect but your script should run fine.
by kwagyeman
Fri Jun 16, 2017 9:24 pm
Forum: Technical Discussion
Topic: Installing on Odroid XU-4 Ubuntu giving errors ... newbie question
Replies: 13
Views: 237

Re: Installing on Odroid XU-4 Ubuntu giving errors ... newbie question

So, corners is a method call. Thus it must have parens after it. Sorry about posting that wrong.
by kwagyeman
Fri Jun 16, 2017 3:07 am
Forum: General Topics
Topic: openmv to arduino with template matching examples
Replies: 17
Views: 254

Re: openmv to arduino with template matching examples

import time, sensor, image from image import SEARCH_EX, SEARCH_DS from pyb import UART sensor.reset() sensor.set_contrast(1) sensor.set_gainceiling(16) sensor.set_framesize(sensor.QQVGA) sensor.set_pixformat(sensor.GRAYSCALE) template = image.Image("/template.pgm") template1=image.Image("/lefttempl...
by kwagyeman
Fri Jun 16, 2017 2:01 am
Forum: Technical Discussion
Topic: Installing on Odroid XU-4 Ubuntu giving errors ... newbie question
Replies: 13
Views: 237

Re: Installing on Odroid XU-4 Ubuntu giving errors ... newbie question

Use this binary. The last one has an error with data matrix codes and apriltag codes corner order.
by kwagyeman
Fri Jun 16, 2017 1:30 am
Forum: Technical Discussion
Topic: Repeated image saves crashes program
Replies: 9
Views: 136

Re: Repeated image saves crashes program

Here's a link to a version of the IDE I just built without this issue.

http://upload.openmv.io/openmv-ide-wind ... -1.7.0.exe
by kwagyeman
Fri Jun 16, 2017 1:26 am
Forum: General Topics
Topic: IDE -- missing frame buffer view and histos
Replies: 19
Views: 241

Re: IDE -- missing frame buffer view and histos

Try this new IDE for Mac. I looked at the code and the only error I could find was that I applied size settings before the main window was shown which can causes issues. I've now moved settings to be applied after the main window is shown. http://upload.openmv.io/openmv-ide-mac-1.7.0/openmv-ide-mac-...
by kwagyeman
Thu Jun 15, 2017 9:14 pm
Forum: Technical Discussion
Topic: open other images for analysis
Replies: 6
Views: 115

Re: open other images for analysis

BMP support is either 24 bit RGB, 16 bit rgb565, or 8 bit grayscale.
by kwagyeman
Thu Jun 15, 2017 9:13 pm
Forum: Technical Discussion
Topic: Repeated image saves crashes program
Replies: 9
Views: 136

Re: Repeated image saves crashes program

Note, the program is not crashing, the IDE is disconnecting. Normally the timeout is 1 second for the IDE to wait for a command response.
by kwagyeman
Thu Jun 15, 2017 9:06 pm
Forum: Technical Discussion
Topic: Repeated image saves crashes program
Replies: 9
Views: 136

Re: Repeated image saves crashes program

Tldr, I put a bug in the IDE trying to fix another bug. I can generate the IDE again with the reverted change for you.
by kwagyeman
Thu Jun 15, 2017 9:05 pm
Forum: Technical Discussion
Topic: Repeated image saves crashes program
Replies: 9
Views: 136

Re: Repeated image saves crashes program

You're using the new IDE version right? So, I made a change the IDE that causes it to disconnect from a cam if that camera doesn't respond in 40 Ms to fix another bug. This generated the bug you are seeing. When you write a file to disk the camera may not respond to IDE requests for over 40 ms. This...
by kwagyeman
Thu Jun 15, 2017 9:00 pm
Forum: Technical Discussion
Topic: find_lines vs cv2.HoughLines ... which is better?
Replies: 16
Views: 264

Re: find_lines vs cv2.HoughLines ... which is better?

No, there's no numpy support. What do you need that for?
by kwagyeman
Thu Jun 15, 2017 3:45 pm
Forum: Technical Discussion
Topic: Repeated image saves crashes program
Replies: 9
Views: 136

Re: Repeated image saves crashes program

Please post your code in code tags. Also, are you using an SD card. The internal flash memory is not meant for saving images to.
by kwagyeman
Thu Jun 15, 2017 10:56 am
Forum: Technical Discussion
Topic: open other images for analysis
Replies: 6
Views: 115

Re: open other images for analysis

You can't open such a large image with your OpenMV Cam and store in on the heap. We only have about 20kb for that. Instead, you need to load it I to the frame buffer. Add copy_to_fb=True to the load image command. This loads the image into the frame buffer which has about 360kb versus the general pu...

Go to advanced search