Search found 2462 matches

by kwagyeman
Sat Nov 03, 2018 1:48 pm
Forum: Project Discussion
Topic: maestro polulu
Replies: 5
Views: 1241

Re: maestro polulu

Hi, please see the pixy emulation example scripts.
by kwagyeman
Sat Nov 03, 2018 1:48 pm
Forum: Technical Discussion
Topic: Memory allocation error - comments!?!
Replies: 21
Views: 2534

Re: Memory allocation error - comments!?!

That's so much code...

Um, can you point just post the lines that have issues? Where you allocate a lot of RAM?
by kwagyeman
Sat Nov 03, 2018 1:45 pm
Forum: Technical Discussion
Topic: combining binary images with masks
Replies: 1
Views: 743

Re: combining binary images with masks

Thresholds is not a keyword argument. Remove the keyword "thresholds=".
by kwagyeman
Sat Nov 03, 2018 1:43 pm
Forum: Technical Discussion
Topic: edge detection
Replies: 13
Views: 2236

Re: edge detection

Hi, please see the filtering examples -> mean filter with adaptive thresholding.
by kwagyeman
Sat Nov 03, 2018 12:25 am
Forum: Kickstarter Topics
Topic: OpenMV H7
Replies: 14
Views: 3821

Re: OpenMV H7

Yeah, I have one on my desk to add LCD support for. Just need to get to it.
by kwagyeman
Fri Nov 02, 2018 11:49 am
Forum: Technical Discussion
Topic: open mv m7, face detection output as NTSC/PAL for vtx
Replies: 1
Views: 556

Re: open mv m7, face detection output as NTSC/PAL for vtx

Um, please contact SingTown. They are one of our Chinese distributors and are working on this.

https://kaizhi-xu.world.taobao.com/
by kwagyeman
Fri Nov 02, 2018 1:21 am
Forum: Technical Discussion
Topic: Assign value to image box
Replies: 3
Views: 618

Re: Assign value to image box

Yeah, you need to allocate a second frame buffer. See the Frame differencing example scripts for how to do this.
by kwagyeman
Fri Nov 02, 2018 1:19 am
Forum: Technical Discussion
Topic: Draw 3d cube on apriltags
Replies: 3
Views: 636

Re: Draw 3d cube on apriltags

Hi, the AprilTag outputs it's 6dof orientation and centorid in the field of view. Given your code can you accept the centrod of the tag to rotate the cube around as a start? If so, then you just need to use the tag x, y, and z, rotation to position things. Alternatively, use the corners() method of ...
by kwagyeman
Thu Nov 01, 2018 11:30 am
Forum: Technical Discussion
Topic: wifi shield transfer
Replies: 15
Views: 1512

Re: wifi shield transfer

Okay, um, so, wifi is definitely the fastest way to move data. However, you're going to want to send UDP packets because TCP causes a lot of issues. I don't really have a template for how to do this data transfer... however, luckily, we have some infrastructure setup for you. So, the first thing to ...
by kwagyeman
Thu Nov 01, 2018 11:24 am
Forum: Project Discussion
Topic: Checkerboard Pattern Recognition
Replies: 3
Views: 646

Re: Checkerboard Pattern Recognition

Hi, you have to move your code outside of the for loop. You're trying to filter on one object. filter works on a list of objects which is what find_rect() returns. Also, note that filter sometimes outputs things in a weird format and you have to wrap filter with list() if you want a list object again.
by kwagyeman
Thu Nov 01, 2018 11:20 am
Forum: Technical Discussion
Topic: Draw 3d cube on apriltags
Replies: 3
Views: 636

Re: Draw 3d cube on apriltags

We just have the draw line method and the four tag corners. If you want to do the 3D cube thing you need to perform the matrix math yourself. Um, I understand this looks cool, but, I don't know the use otherwise.
by kwagyeman
Thu Nov 01, 2018 11:14 am
Forum: Technical Discussion
Topic: Memory allocation error - comments!?!
Replies: 21
Views: 2534

Re: Memory allocation error - comments!?!

Um, so, the script is compiled by the camera. The camera firmware parses the script line by line and turns it into a byte array that uses heap memory. Anyway, um, have you tried aggressively "del object" and gc.collect() and you don't need something? You have to do this once you start running out of...
by kwagyeman
Thu Nov 01, 2018 11:11 am
Forum: Technical Discussion
Topic: Assign value to image box
Replies: 3
Views: 618

Re: Assign value to image box

Hi, I'm not sure what your code is doing:

imbin=img.clear()

Makes the image black then you try to use find_blobs() on it. This will have no affect.

Anyway, if you want to draw a rectangle use the draw_rect() method which can fill the rectangle.
by kwagyeman
Thu Nov 01, 2018 12:53 am
Forum: Technical Discussion
Topic: wifi shield transfer
Replies: 15
Views: 1512

Re: wifi shield transfer

Hmm, so, do you want video quality as high as that camera in the video? Our product really isn't designed around steaming frames. We can JPEG compress stills and send them to the wifi shield over SPI... But, the WiFi shield's internal MCU can't really buffer large data packets which makes it slow at...
by kwagyeman
Wed Oct 31, 2018 2:49 pm
Forum: Technical Discussion
Topic: Running program without the IDE - upload, reset, no-go
Replies: 14
Views: 1331

Re: Running program without the IDE - upload, reset, no-go

Mmm, could be some type of static shock might have broken something. I don't have enough of a picture to say what's wrong.
by kwagyeman
Wed Oct 31, 2018 12:04 pm
Forum: Technical Discussion
Topic: wifi shield transfer
Replies: 15
Views: 1512

Re: wifi shield transfer

Hi, you can open the file like you would any file in python and then use the wifi shield to open a socket to transfer the image over TCP. This is more or less straight forward python code. Um, I can't actually write the code to do all of this. I don't really have the time anymore... but, also, there...
by kwagyeman
Wed Oct 31, 2018 1:29 am
Forum: Technical Discussion
Topic: Running program without the IDE - upload, reset, no-go
Replies: 14
Views: 1331

Re: Running program without the IDE - upload, reset, no-go

Use UART3 if possible. UART1 might have been tested once during an MP upgrade and then ignored afterwards. UART3 is the only one I have code that I know works when in a script by itself. Also, keep in mind that writes to the embedded file system sometimes are delayed unless you are using a flash car...
by kwagyeman
Tue Oct 30, 2018 12:08 pm
Forum: Technical Discussion
Topic: Running program without the IDE - upload, reset, no-go
Replies: 14
Views: 1331

Re: Running program without the IDE - upload, reset, no-go

Hmmm, this is a valid problem. Um, Ibrahim can you figure out what's wrong? ... Please note that the OpenMV Cam is kinda like a giant open-source feature creep software system. The bugs are in the system because we keep adding functionality and releasing firmware updates... and then when we update M...
by kwagyeman
Tue Oct 30, 2018 12:06 pm
Forum: Project Discussion
Topic: Checkerboard Pattern Recognition
Replies: 3
Views: 646

Re: Checkerboard Pattern Recognition

Hi, using find_rectangle is the right approach. Just filter the rectangle output. So, use the filter() method in python and use a call back to cut down the list of rectangle. In general, find_rectangle() is just going to give you a bunch of rectangles that you then need to look at and determine to u...
by kwagyeman
Mon Oct 29, 2018 11:57 am
Forum: General Topics
Topic: send frames to PC
Replies: 17
Views: 4706

Re: send frames to PC

Uncompressed images are large. Note the FPS will drop considerably.
by kwagyeman
Mon Oct 29, 2018 11:56 am
Forum: Technical Discussion
Topic: edge detection
Replies: 13
Views: 2236

Re: edge detection

Use the pool() methods. They don't give you an exact size however, they just down sample. Note that our image resizing functionality is limited because we made a decision not to put this in back when we were on the M4. It's something I know needs to be added back. However, our current man power leve...
by kwagyeman
Mon Oct 29, 2018 1:36 am
Forum: Technical Discussion
Topic: wifi shield transfer
Replies: 15
Views: 1512

Re: wifi shield transfer

Hi, our scripts don't run on CPython in linux. MicroPython which runs on our board parses and compiles python code. However, this doesn't mean the modules/libraries etc. are the same. Anyway, is your goal to the use the OpenMV Cam as a webcam? This is not it's design purpose. We built it to process ...
by kwagyeman
Sun Oct 28, 2018 11:50 pm
Forum: Technical Discussion
Topic: edge detection
Replies: 13
Views: 2236

Re: edge detection

Hi, do you have the ability to edit the C code? If you have a linux PC then you can. It doesn't take that long to pull our firmware and compile it. In C you can do whatever algorithm you want.
by kwagyeman
Sun Oct 28, 2018 11:49 pm
Forum: General Topics
Topic: problem saving video to SD
Replies: 10
Views: 2618

Re: problem saving video to SD

Ah, yeah, we only support FAT32 drives. You basically need linux for anything beyond FAT since the file systems get really complex otherwise.
by kwagyeman
Sat Oct 27, 2018 8:01 pm
Forum: Technical Discussion
Topic: edge detection
Replies: 13
Views: 2236

Re: edge detection

Please post your code in the

Code: Select all

 tags. See the button in the forum post editor.
by kwagyeman
Sat Oct 27, 2018 6:18 pm
Forum: General Topics
Topic: Substitute for Thermopile Shield
Replies: 3
Views: 747

Re: Substitute for Thermopile Shield

Hi, we haven't published the firmware and example scripts yet for this. We will soon. Need to get the release done.
by kwagyeman
Sat Oct 27, 2018 6:13 pm
Forum: Technical Discussion
Topic: Issue with relative scale of apriltag.z_translation() output?
Replies: 3
Views: 729

Re: Issue with relative scale of apriltag.z_translation() output?

Go to like 4mm or 8mm. These give you above 45 degrees and produce less lens distortion.
by kwagyeman
Sat Oct 27, 2018 6:09 pm
Forum: Technical Discussion
Topic: serial data save in MySQL database and video stream display at host pc
Replies: 8
Views: 939

Re: serial data save in MySQL database and video stream display at host pc

Hi, in the passenger seat in a car on my phone. I answer most of these help support emails on my phone. I just thought of a serial terminal that works that I've used before. Arduino IDE does not set the DTR line. Note that the OpenMV Cam does not work with that IDE. We aren't an Arduino and don't ad...
by kwagyeman
Sat Oct 27, 2018 5:36 pm
Forum: Technical Discussion
Topic: serial data save in MySQL database and video stream display at host pc
Replies: 8
Views: 939

Re: serial data save in MySQL database and video stream display at host pc

You need to make the DTR line high.

Please use another serial terminal in which you can control the DTR line. Parallax serial terminal will work. Google that term. Parallax serial terminal.
by kwagyeman
Sat Oct 27, 2018 5:35 pm
Forum: General Topics
Topic: problem saving video to SD
Replies: 10
Views: 2618

Re: problem saving video to SD

Hi, that's probably due to a disk read/write issue. Um, can you plug the card into your computer and ask the PC to fix disk errors?

Our code is just based on FATFS which is rather picky on drive issues.
by kwagyeman
Sat Oct 27, 2018 12:18 am
Forum: Kickstarter Topics
Topic: BackerKit
Replies: 2
Views: 781

Re: BackerKit

Hi, I was going to set this up on last Sunday but I didn't get a login until recently. I'm going to do it this Sunday now.
by kwagyeman
Fri Oct 26, 2018 4:23 pm
Forum: Technical Discussion
Topic: openmv webserver
Replies: 10
Views: 1234

Re: openmv webserver

Hi Rister, It has never been our design goal to use the camera to take pictures and send to the PC. In particular, the point of the OpenMV Cam was to enable you to build robots like this: https://diyrobocars.com/2017/10/01/a-minimum-viable-racer-for-openmv. I understand you want to use the camera in...
by kwagyeman
Fri Oct 26, 2018 4:00 pm
Forum: Project Discussion
Topic: Number Recognition of Stencil
Replies: 7
Views: 1015

Re: Number Recognition of Stencil

I'll be opening the BackerKit store over the weekend. Then you can per-order.
by kwagyeman
Fri Oct 26, 2018 3:54 pm
Forum: Technical Discussion
Topic: canny edge detection
Replies: 1
Views: 590

Re: canny edge detection

Hi, that method is slated to be redone. Don't have time yet. Anyway, the code for that is here: https://github.com/openmv/openmv/blob/m ... img/edge.c
by kwagyeman
Fri Oct 26, 2018 3:52 pm
Forum: Technical Discussion
Topic: serial data save in MySQL database and video stream display at host pc
Replies: 8
Views: 939

Re: serial data save in MySQL database and video stream display at host pc

Hi, when you execute the print() statement and there's no IDE connected the data from the print statement is sent over the serial port to the PC via the VCP UART the OpenMV Cam appears as. Any application can open the serial port can read the data. Make sure to set the DTR line high when doing this.
by kwagyeman
Thu Oct 25, 2018 4:55 pm
Forum: Technical Discussion
Topic: openmv webserver
Replies: 10
Views: 1234

Re: openmv webserver

Hi, please checkout the Pixy Emulation UART Examples. They show off how to parse a serial data byte stream. In particular, all the methods you need for command and control are right here in this module. http://docs.openmv.io/library/pyb.USB_VCP.html?highlight=vcp Note that since we are a MicroPython...
by kwagyeman
Thu Oct 25, 2018 4:42 pm
Forum: Technical Discussion
Topic: import custom "module" - file location?
Replies: 6
Views: 839

Re: import custom "module" - file location?

Hmm, I think the IDE then has bound itself to the wrong disk. In the next firmware release we bind the IDE to a particular disk name.

So, check the drive in OpenMV IDE (on the status bar) that OpenMV IDE thinks is the disk. It mostly guessed wrong.

In the next release we've made this better.
by kwagyeman
Thu Oct 25, 2018 4:40 pm
Forum: Technical Discussion
Topic: imagedata stream
Replies: 7
Views: 923

Re: imagedata stream

Hi, you can dump the serial data stream by using this code:

Just execute it in the loop:

https://github.com/openmv/openmv/blob/m ... mv.py#L179

See the 3 lines.
by kwagyeman
Thu Oct 25, 2018 4:39 pm
Forum: Technical Discussion
Topic: differentiating between cotton and plant
Replies: 12
Views: 1068

Re: differentiating between cotton and plant

See this: http://docs.openmv.io/library/omv.senso ... o_exposure

Also, there are example scripts with the IDE under sensor control.
by kwagyeman
Thu Oct 25, 2018 4:38 pm
Forum: Project Discussion
Topic: Number Recognition of Stencil
Replies: 7
Views: 1015

Re: Number Recognition of Stencil

Hi, the number recong CNN works quite well. However, things move slowly in OpenMV land since me and Ibrahim do this all part time and folks don't send us PR help. I'll get everything eventually posted and rolled out.
by kwagyeman
Thu Oct 25, 2018 4:36 pm
Forum: General Topics
Topic: send frames to PC
Replies: 17
Views: 4706

Re: send frames to PC

Hi sorry for not getting back to you about this quickly. Um, so, if you read the code for: https://github.com/openmv/openmv/blob/master/tools/pyopenmv_fb.py -> This script shows off how to use the script below. You'll see exactly how you can in python control the OpenMV Cam using the: https://github...
by kwagyeman
Thu Oct 25, 2018 4:21 pm
Forum: Technical Discussion
Topic: In binarized images, there are ways to get the number of white points?
Replies: 1
Views: 566

Re: In binarized images, there are ways to get the number of white points?

Hmm, no. You can use get_stats() to get what color is the largest count. Otherwise... we don't have a popcount. Please create a feature bug request on the github. This is easy to add.
by kwagyeman
Thu Oct 25, 2018 4:17 pm
Forum: Project Discussion
Topic: Three lights present
Replies: 9
Views: 1384

Re: Three lights present

Hi, yellow and red are similar. You need to shrink the red color bounds to remove the yellow color. Note that you needn't get rid of all pixels. Just remove enough of them and then hae object area/pixel filterting take care of the small blobs. See the pixel/area parameter on find_blobs().
by kwagyeman
Tue Oct 23, 2018 5:13 pm
Forum: Technical Discussion
Topic: import custom "module" - file location?
Replies: 6
Views: 839

Re: import custom "module" - file location?

Can you confirm the test.py module was copied over to your OpenMV Cam's disk? Note that windows caches writes so it make take a second for the file to actually make it to the device.
by kwagyeman
Tue Oct 23, 2018 12:01 pm
Forum: Technical Discussion
Topic: fastest way to get yuv table in firmware developing
Replies: 6
Views: 798

Re: fastest way to get yuv table in firmware developing

Mmm, the SPI freq seems to slow?
by kwagyeman
Tue Oct 23, 2018 12:00 pm
Forum: Technical Discussion
Topic: Open MV USB pin access
Replies: 1
Views: 571

Re: Open MV USB pin access

If you look at the board you'll notice the USB wires running from the connector to the MCU. You may mod the system as you like... but, keep in mind USB requires trace matching.
by kwagyeman
Tue Oct 23, 2018 11:59 am
Forum: Technical Discussion
Topic: Open MV CLI and OTA programming
Replies: 2
Views: 659

Re: Open MV CLI and OTA programming

Hi, we almost have WiFi programming working however it's not robust enough for general use. Anyway, if you want to upload code over the command line see the micropython repl control scripts. You can find these in the micropython github repo under tools. To enable the OpenMV Cam to be programmed over...
by kwagyeman
Tue Oct 23, 2018 1:47 am
Forum: Technical Discussion
Topic: import custom "module" - file location?
Replies: 6
Views: 839

Re: import custom "module" - file location?

The OpenMV Cam compiles the code so the test.py file had to be on its flash drive. OpenMV IDE doesn't actually do anything other than act as an editor and debug window. That said, the IDE is quite smart and if you have that test.py file in the OpenMV folder in my documents OpenMV IDE will find it an...

Go to advanced search