Search found 1601 matches

by kwagyeman
Thu Apr 19, 2018 11:37 am
Forum: General Topics
Topic: An application for auto-focus
Replies: 3
Views: 71

Re: An application for auto-focus

Hi, seeing if there's a blurry object in the field of view isn't I think the best way to detect an object. Instead, you may wish to look at adaptive frame differencing and etc. The MTF calculation kinda looks at the full image so it's not going to find some out of focus object. But, let's backup. Fi...
by kwagyeman
Thu Apr 19, 2018 2:14 am
Forum: General Topics
Topic: openmv on f407
Replies: 3
Views: 90

Re: openmv on f407

Hi, I can't really provide anything other than support for experts for the OMV1 firmware. I.e. you need to know exactly what you are doing and are only asking me about details about how the IDE works to get things operational... I have no idea otherwise what the issue is.
by kwagyeman
Thu Apr 19, 2018 2:04 am
Forum: General Topics
Topic: An application for auto-focus
Replies: 3
Views: 71

Re: An application for auto-focus

Hi, You can buy lenses that have the ability to change focus: https://www.dhgate.com/product/m12-mount-1-3-inch-2mp-ir-cctv-ip-camera/399335135.html?utm_source=pla&utm_medium=GMC&utm_campaign=close_to_u2017&utm_term=399335135&f=bm%7c399335135%7c007003%7cGMC%7c812091101%7cpla%7cclose_to_u2017%7cUS%7c...
by kwagyeman
Thu Apr 19, 2018 2:02 am
Forum: General Topics
Topic: Average of 4 pictures
Replies: 1
Views: 56

Re: Average of 4 pictures

Hi, please use this: http://docs.openmv.io/library/omv.sensor.html#sensor.sensor.alloc_extra_fb Just alloc the frame buffer and then use the blend method to blend images into the frame buffer. For examples, see the in memory frame differencing scripts. Note that the system only has one frame buffer ...
by kwagyeman
Thu Apr 19, 2018 1:48 am
Forum: Technical Discussion
Topic: Unsupported/unimplemented functions?
Replies: 3
Views: 56

Re: Unsupported/unimplemented functions?

Thanks, I'll look into this before the next release which we are right about to do. It's most likely a flag in the MP code that has to be set.
by kwagyeman
Wed Apr 18, 2018 2:28 am
Forum: Technical Discussion
Topic: Unsupported/unimplemented functions?
Replies: 3
Views: 56

Re: Unsupported/unimplemented functions?

Mmm, that should be in the library. Please create a bug on the github about this. It's quoted as being implemented by MP. So, I guess we might have disabled it.
by kwagyeman
Tue Apr 17, 2018 4:35 pm
Forum: General Topics
Topic: openmv on f407
Replies: 3
Views: 90

Re: openmv on f407

Does the camera appear as a serial port and a USB drive on the computer and what is the serial port vid and pid?

OpenMV IDE only cares about finding a serial port with the right VID and PID.
by kwagyeman
Tue Apr 17, 2018 1:38 pm
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 50
Views: 1770

Re: Advanced Iris Tracking Software

Only one program can read the serial port at a time. But, once you have the script working in OpenMV IDE... Save the script to the camera, reset the camera, and then open the serial port in another application.
by kwagyeman
Mon Apr 16, 2018 11:06 pm
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 50
Views: 1770

Re: Advanced Iris Tracking Software

1. Um, just write code for the Arduino. 2. Yes, pins 4 and 5. 3. OpenMV IDE connects using the USB port which is different from the hardware UART. So, you can run both at the same time. Note, if you just want to get data off the OpenMV Cam and have that go to a program on your PC just use the "print...
by kwagyeman
Sun Apr 15, 2018 5:05 pm
Forum: General Topics
Topic: Running Programs
Replies: 4
Views: 97

Re: Running Programs

>> When I do the "Tools->Save Script to OpenMV Cam", should there be any indication that the file has loaded successfully? Generally, it works on the first shot. However, the system can be hampered by corrupt disk stuff. ... So, since the camera's file system appears tot he PC as a read-only device ...
by kwagyeman
Sun Apr 15, 2018 2:40 pm
Forum: General Topics
Topic: Trouble Connecting
Replies: 6
Views: 67

Re: Trouble Connecting

Mmm, okay, I see. I haven't seen this issue before. What script is running on the camera? Is the USB port your using fully powered? I can only think of a brown-out happening or something like that.
by kwagyeman
Sun Apr 15, 2018 2:15 pm
Forum: General Topics
Topic: Trouble Connecting
Replies: 6
Views: 67

Re: Trouble Connecting

What firmware version are you running?
by kwagyeman
Sun Apr 15, 2018 2:15 pm
Forum: General Topics
Topic: Trouble Connecting
Replies: 6
Views: 67

Re: Trouble Connecting

Hi, have you updated your OpenMV Cam's firmware? It should work really well on windows.
by kwagyeman
Sun Apr 15, 2018 2:08 pm
Forum: General Topics
Topic: Trouble Connecting
Replies: 6
Views: 67

Re: Trouble Connecting

What OS are you using? If it's Linux that's related to the OS taking a while to enumerate the VCP port. I can't fix that, you just have to wait about 10 seconds after plugging the camera in for the OS to stop trying to talk to the serial port as if it were a modem. As for MAC, we fixed an issue with...
by kwagyeman
Sun Apr 15, 2018 2:07 pm
Forum: General Topics
Topic: Running Programs
Replies: 4
Views: 97

Re: Running Programs

Please do:

Tools->Save Script to OpenMV Cam

And then:

Tools->Reset OpenMV Cam
by kwagyeman
Sun Apr 15, 2018 3:36 am
Forum: General Topics
Topic: Saving To File
Replies: 1
Views: 48

Re: Saving To File

Desktop OSes won't rescan the flash drive unless plugged in. There's no fix for this. The camera acting as a USB drive which can create files is not something handled by today's desktop OS drivers. You can however manually reset the OpenMV Cam in your script by issuing this command: pyb.hard_reset()...
by kwagyeman
Sat Apr 14, 2018 9:12 pm
Forum: Technical Discussion
Topic: Opencv7 with a Raspberry Pi
Replies: 9
Views: 627

Re: Opencv7 with a Raspberry Pi

Hi, the camera has to be a SPI master, it's works really bad as a slave device. That said, you can get video data through USB with the camera. In fact, OpenMV IDE runs on the Raspberry PI: https://openmv.io/pages/download The camera will appear as a VCP port on the PI and you can push data through t...
by kwagyeman
Sat Apr 14, 2018 2:03 pm
Forum: Technical Discussion
Topic: NEOPIXEL AS A LED RING LIGHT
Replies: 3
Views: 171

Re: NEOPIXEL AS A LED RING LIGHT

Hmm, this seems to be an ESP8266 only library. Should be portable to the M7 however. Please open up a github issue about this so it's on our todo list.
by kwagyeman
Sat Apr 14, 2018 12:51 am
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 50
Views: 1770

Re: Advanced Iris Tracking Software

As determined by your skill...

I get the feeling your trying to work on something out of your depth here.

I can help. But, you're going to really want to exercise your Googling muscle and try to do as much as you can before coming to the forums.
by kwagyeman
Sat Apr 14, 2018 12:11 am
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 50
Views: 1770

Re: Advanced Iris Tracking Software

Sure, just turn it into a serial port pass through...
by kwagyeman
Fri Apr 13, 2018 1:59 am
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 50
Views: 1770

Re: Advanced Iris Tracking Software

As previously mentioned... OpenMV IDE uses the camera's USB VCP port. If you want to talk to the camera when OpenMV IDE is connected please connect an FTDI chip to the OpenMV Cam's hardware UART. Pins 4/5. Unfortunately, we have no solution for more than one USB VCP port to the PC. This is a limit o...
by kwagyeman
Thu Apr 12, 2018 8:43 pm
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 50
Views: 1770

Re: Advanced Iris Tracking Software

Does another program have the serial port open? Note that there are two serial ports on the camera. A hardware UART and a USB VCP port. OpenMV IDE uses the USB VCP port to talk to the camera. If you are trying to use OpenMV IDE and your program at the same time then you have to talk to the camera vi...
by kwagyeman
Thu Apr 12, 2018 3:43 pm
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 50
Views: 1770

Re: Advanced Iris Tracking Software

Serial is the easiest. Please see the Picture Emulation UART example. It shows how to do serial.

You'd have to do something like serial for any Microcontroller. It's a fundamental communication step.
by kwagyeman
Thu Apr 12, 2018 1:13 pm
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 50
Views: 1770

Re: Advanced Iris Tracking Software

Please see our YouTube channel. I posted a video about the feature.
by kwagyeman
Thu Apr 12, 2018 11:12 am
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 50
Views: 1770

Re: Advanced Iris Tracking Software

OpenMV IDE supports connecting to one camera on purpose with the main feature set. You can use the Open terminal feature to connect to multiple cameras for debugging though on a second/third/etc. serial port. Realistically, once you have two cameras in the system your skill level is going to need to...
by kwagyeman
Thu Apr 12, 2018 3:43 am
Forum: Technical Discussion
Topic: draw_rectangle color mistake
Replies: 3
Views: 245

Re: draw_rectangle color mistake

Latest firmware is attached. WiFi is broken, but, will fix before the release which is coming soon.
by kwagyeman
Thu Apr 12, 2018 1:46 am
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 50
Views: 1770

Re: Advanced Iris Tracking Software

Yeah, so, you just use this method here: http://docs.micropython.org/en/v1.9.3/pyboard/library/pyb.UART.html#pyb.UART.any And then do: http://docs.micropython.org/en/v1.9.3/pyboard/library/pyb.UART.html#pyb.UART.readchar When there's a byte. For a statemachine example, checkout the Pixy emulation ex...
by kwagyeman
Wed Apr 11, 2018 12:31 pm
Forum: Technical Discussion
Topic: draw_rectangle color mistake
Replies: 3
Views: 245

Re: draw_rectangle color mistake

Thicknesses is only available in the new firmware. I'll upload a copy.
by kwagyeman
Wed Apr 11, 2018 2:46 am
Forum: Technical Discussion
Topic: Opencv7 with a Raspberry Pi
Replies: 9
Views: 627

Re: Opencv7 with a Raspberry Pi

No, SPI is defiantly the way to go. The code is effectively the same. On the PI you need it to be a SPI slave to receive the data.
by kwagyeman
Wed Apr 11, 2018 2:42 am
Forum: Project Discussion
Topic: How can I print from the IDE into another software?
Replies: 7
Views: 440

Re: How can I print from the IDE into another software?

Check this out: http://book.pythontips.com/en/latest/map_filter.html In particular, checkout the filter method. What you should do is filter out blobs with more than 5 pixels and more than 9 area, then check that the width and height are equal: E.g: list(filter(lambda x: x.pixels()==1 and x.w() == x...
by kwagyeman
Tue Apr 10, 2018 5:53 pm
Forum: Technical Discussion
Topic: Opencv7 with a Raspberry Pi
Replies: 9
Views: 627

Re: Opencv7 with a Raspberry Pi

What method do you plan to use for reception?

send.uart(I'm going.compressed_for_ide()) is enough if you are sending over a UART.
by kwagyeman
Tue Apr 10, 2018 1:00 pm
Forum: Technical Discussion
Topic: color wire sequence checking
Replies: 4
Views: 181

Re: color wire sequence checking

It's a 12mm M12 lens. Just search for that. Lots of folks provide them. We buy ours from AliExpress.
by kwagyeman
Tue Apr 10, 2018 11:19 am
Forum: Project Discussion
Topic: Link between Arduino and OpenMV
Replies: 7
Views: 894

Re: Link between Arduino and OpenMV

Not sure how to help...
by kwagyeman
Tue Apr 10, 2018 11:17 am
Forum: Technical Discussion
Topic: color wire sequence checking
Replies: 4
Views: 181

Re: color wire sequence checking

Yeah, this is very easy. Buy a telephoto lens so you can focus on something close and use find_blobs() (color tracking) to find each color in order. As you find colors the centroids for each color should progress in order.
by kwagyeman
Mon Apr 09, 2018 9:43 pm
Forum: Project Discussion
Topic: How can I print from the IDE into another software?
Replies: 7
Views: 440

Re: How can I print from the IDE into another software?

Hi, please switch to RGB565 mode and then use find_blobs. It will then use LAB thresholds like YUV. That said, generally you need to filter the output of find-blobs(). Are the white spots on the boarder more than 1 pixel compared to the starts? If so, then reject them. Find blobs allows you to set a...
by kwagyeman
Mon Apr 09, 2018 4:09 pm
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 50
Views: 1770

Re: Advanced Iris Tracking Software

Not exactly sure what you want to do... One camera is looking at the person... And one at the screen the person is looking at? I thought you planned to write a PC app... So, what is the second camera for? The PC app should be able to track what the user is looking at given the coordinate stream from...
by kwagyeman
Mon Apr 09, 2018 3:56 pm
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 50
Views: 1770

Re: Advanced Iris Tracking Software

Yes, you'd have to write code... So, when you talk about having two OpenMV Cam's you're looking at having to communicate between them. We provide code to send and receive bytes via the UART. But, you need some protocol on top of the data stream to send commands, staemachines on the camera to process...
by kwagyeman
Mon Apr 09, 2018 2:47 pm
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 50
Views: 1770

Re: Advanced Iris Tracking Software

Async serial is the easiest way to send commands from one board to another. You have to define the command protocol. You can also just use GPIO wires too if you want to sync things.
by kwagyeman
Mon Apr 09, 2018 12:22 pm
Forum: Project Discussion
Topic: Advanced Iris Tracking Software
Replies: 50
Views: 1770

Re: Advanced Iris Tracking Software

Sure, you just have to do the protocol interfacing between the boards.
by kwagyeman
Mon Apr 09, 2018 12:21 pm
Forum: General Topics
Topic: Find Octagon in image?
Replies: 6
Views: 435

Re: Find Octagon in image?

Um, this requires a lot of C code changes in some very complex code. I note quite sure how to actually do it myself. But, when reading the AprilTag code which is what the quad finder comes from I realize it can be turned to find any shapes with some number of points.
by kwagyeman
Sun Apr 08, 2018 8:10 pm
Forum: Technical Discussion
Topic: weird behavior when setting gain
Replies: 11
Views: 293

Re: weird behavior when setting gain

This will be fixed in the next release coming soon.
by kwagyeman
Sun Apr 08, 2018 4:21 pm
Forum: General Topics
Topic: Find Octagon in image?
Replies: 6
Views: 435

Re: Find Octagon in image?

Hi, It's actually possible to make find_rectangles() detect any number of points on an object. I.e. it can detect triangles, octagons, etc. I'll add a find_shape() method that will return all shapes with some number of points in the future. Since it will use the find_rects() code base it will be abl...
by kwagyeman
Sun Apr 08, 2018 3:20 pm
Forum: General Topics
Topic: Transfer video stream and detection result of multiple OpenMV through RS485 bus
Replies: 7
Views: 422

Re: Transfer video stream and detection result of multiple OpenMV through RS485 bus

Cool, well, to view the image stream just use the open terminal feature with OpenMV IDE and send the img.compressed_for_ide() jpeg data.

As long as the device appears as a serial port to the PC in some way shape or form you're good.
by kwagyeman
Sat Apr 07, 2018 8:16 pm
Forum: Technical Discussion
Topic: How to connect Stepper motors?
Replies: 3
Views: 289

Re: How to connect Stepper motors?

Yeah, I suppose so, you just need to modify the library code to work for that. Our servo shield has two driver files. One to control the PCA chip and another to implement servo control code on top of that.
by kwagyeman
Sat Apr 07, 2018 8:14 pm
Forum: General Topics
Topic: Find Octagon in image?
Replies: 6
Views: 435

Re: Find Octagon in image?

Find lines would be the thing to use for this. For any of these shapes, you can inspect the intersections and make a decision. In general, this is not easy, even with OpenCV it involves some type of algorithm that has to work on the detected line segments of a shape and then determine what that shap...
by kwagyeman
Sat Apr 07, 2018 4:00 pm
Forum: General Topics
Topic: Transfer video stream and detection result of multiple OpenMV through RS485 bus
Replies: 7
Views: 422

Re: Transfer video stream and detection result of multiple OpenMV through RS485 bus

Okay, I'm not really sure what you want me to do... if you want to hack the firmware to add the CBUS library please go ahead. You can also put a gateway device in front of the OpenMV Cam to handle the CBUS. We provide the basics with the OpenMV Cam of being able to create a JPEG file stream and we p...
by kwagyeman
Sat Apr 07, 2018 3:52 pm
Forum: General Topics
Topic: Find Octagon in image?
Replies: 6
Views: 435

Re: Find Octagon in image?

Not really, just consider an octagon a type of circle. If you need to differentiate between a circle and an octagon that's very hard.
by kwagyeman
Sat Apr 07, 2018 3:50 pm
Forum: General Topics
Topic: Importing a custom class
Replies: 9
Views: 3927

Re: Importing a custom class

Importing in python is not like C. Imports are under a module name space which is the file name.

So, you could do something like:

Code: Select all

import constants
print(constants.AREA_THRESHOLD)
by kwagyeman
Sat Apr 07, 2018 1:36 pm
Forum: Technical Discussion
Topic: How to connect Stepper motors?
Replies: 3
Views: 289

Re: How to connect Stepper motors?

See this:

https://learn.adafruit.com/micropython- ... r?view=all

We're a MicroPython board. So, any MicroPython library will work. Note that CircuitPython is not the same as MicroPython.
by kwagyeman
Sat Apr 07, 2018 1:34 pm
Forum: General Topics
Topic: Transfer video stream and detection result of multiple OpenMV through RS485 bus
Replies: 7
Views: 422

Re: Transfer video stream and detection result of multiple OpenMV through RS485 bus

Hi, sorry for not getting back to you in a immediately. To send video data over RS485 please use the hardware UART on the OpenMV Cam and set the baud rate to something very high. The hardware UART can run above 1 M Baud up to about 4 M Baud or so. Then just do this at the end of your script loop: ua...

Go to advanced search