Search found 2053 matches

by kwagyeman
Sat Jul 21, 2018 12:31 pm
Forum: Technical Discussion
Topic: Any tracker implementation?
Replies: 1
Views: 12

Re: Any tracker implementation?

We just have a detector. If you want to track then you should use the ROI method of find_blobs() to call a new find_blobs() task on each detected blob from an initial find_blobs(). If you'd like to see the functionality increase please help out and submit things we can incorporate into the releases....
by kwagyeman
Sat Jul 21, 2018 12:17 am
Forum: General Topics
Topic: Python3 compatible OpenMV-IDE ...
Replies: 7
Views: 64

Re: Python3 compatible OpenMV-IDE ...

If you forked my repo then you'll be able to create a pull request:

https://help.github.com/articles/about-pull-requests/
by kwagyeman
Fri Jul 20, 2018 10:57 am
Forum: Technical Discussion
Topic: where is main.py ?
Replies: 3
Views: 27

Re: where is main.py ?

? I can't tell... The code we have on github works. So, if you are modifying you should know what you are doing.
by kwagyeman
Fri Jul 20, 2018 1:01 am
Forum: Technical Discussion
Topic: Use the OpenMV cam M7 with CMSIS-NN
Replies: 11
Views: 143

Re: Use the OpenMV cam M7 with CMSIS-NN

This used to be more readable... but, now it's not really. https://github.com/openmv/openmv/blob/master/src/omv/stm32fxxx.ld.S https://github.com/openmv/openmv/blob/master/src/omv/boards/OPENMV3/omv_boardconfig.h#L71 So, the CCM size is 128KB. This stores both the .data and .bss along with the stack...
by kwagyeman
Fri Jul 20, 2018 12:56 am
Forum: General Topics
Topic: Python3 compatible OpenMV-IDE ...
Replies: 7
Views: 64

Re: Python3 compatible OpenMV-IDE ...

Oh, just cd into qtcreator and do git status again.
by kwagyeman
Fri Jul 20, 2018 12:54 am
Forum: Technical Discussion
Topic: where is main.py ?
Replies: 3
Views: 27

Re: where is main.py ?

Hi, main.py is inside the main.c file as a text string. It's only created on bootup if the camera doesn't have an SD card. Um, if you want to bake your code into the camera's firmware and need an SD card you can also just execute methods to open up a new file and write the text string of your main.p...
by kwagyeman
Fri Jul 20, 2018 12:52 am
Forum: Kickstarter Topics
Topic: Pepper plucking using machine vision.
Replies: 1
Views: 51

Re: Pepper plucking using machine vision.

If you have the correct contrast then yes. However, everything is green in that image. So, you'll need a really sophisticated algorithm to get things working.

Um, any shots of what the actual thing you are looking at will look like?
by kwagyeman
Fri Jul 20, 2018 12:49 am
Forum: Project Discussion
Topic: Raspberry Pi Zero + camera vs. OpenMV
Replies: 4
Views: 2710

Re: Raspberry Pi Zero + camera vs. OpenMV

Hi, you're probably going to want to use a Pi if you plan to do all that. The OpenMV Cam is really best suited for small robotic applications where the focus is to build something that works as quickly as possible. From what you sound like you want you're going to want the full desktop computer / pi...
by kwagyeman
Wed Jul 18, 2018 9:30 pm
Forum: General Topics
Topic: PWM
Replies: 2
Views: 24

Re: PWM

Note sure if PWM on PIN 6 works.
by kwagyeman
Wed Jul 18, 2018 9:29 pm
Forum: General Topics
Topic: PWM
Replies: 2
Views: 24

Re: PWM

Have you tried this example code? # PWM Control Example # # This example shows how to do PWM with your OpenMV Cam. import time from pyb import Pin, Timer tim = Timer(4, freq=1000) # Frequency in Hz # Generate a 1KHz square wave on TIM4 with 50% and 75% duty cycles on channels 1 and 2, respectively. ...
by kwagyeman
Wed Jul 18, 2018 9:13 pm
Forum: General Topics
Topic: Python3 compatible OpenMV-IDE ...
Replies: 7
Views: 64

Re: Python3 compatible OpenMV-IDE ...

The newest version is 3.0.0. 1. We already support dilate and erode. https://docs.openmv.io/library/omv.image.html?highlight=dilate#image.image.dilate That's been there forever. We support find blobs for blob finding. We do not support contour finding. The reason for this was a lot of our stack was ...
by kwagyeman
Wed Jul 18, 2018 12:06 pm
Forum: General Topics
Topic: How to do curve fitting on detected blob
Replies: 6
Views: 50

Re: How to do curve fitting on detected blob

Hi, find_blobs() gives you the centroids of things. So, you just need to write scipy.optimize.curve_fit for curve fitting. Please understand the OpenMV Cam is a microcontroller without an OS and doesn't have every feature desktop apps have. That said, the C code is fully programmable if you want to ...
by kwagyeman
Wed Jul 18, 2018 2:05 am
Forum: General Topics
Topic: How to do curve fitting on detected blob
Replies: 6
Views: 50

Re: How to do curve fitting on detected blob

Mmm, so, we really just have that and:

https://docs.openmv.io/library/omv.imag ... regression

Would you be okay with calling get regression on multiple blob clusters to get mx/my values between multiple clusters and then do the rest in python yourself?
by kwagyeman
Tue Jul 17, 2018 5:21 pm
Forum: General Topics
Topic: Run code on prerecorded video
Replies: 1
Views: 23

Re: Run code on prerecorded video

See Examples - video Recording - Image writer.
by kwagyeman
Tue Jul 17, 2018 4:47 pm
Forum: Technical Discussion
Topic: Video Feed
Replies: 1
Views: 21

Re: Video Feed

Hi, the serial protocol is in this script: https://github.com/openmv/openmv/blob/master/tools/pyopenmv.py And this one shows how to use it. https://github.com/openmv/openmv/blob/master/tools/pyopenmv_fb.py Note that you can roll your own custom protocol too and whatnot. You can just send data out th...
by kwagyeman
Mon Jul 16, 2018 1:44 pm
Forum: Technical Discussion
Topic: Script autostart
Replies: 32
Views: 565

Re: Script autostart

The ROI passed to find features is not displayed. It just tells the method where to work on in the image.
by kwagyeman
Mon Jul 16, 2018 1:43 pm
Forum: Technical Discussion
Topic: Use the OpenMV cam M7 with CMSIS-NN
Replies: 11
Views: 143

Re: Use the OpenMV cam M7 with CMSIS-NN

Yeah, the network is to big to run the M7. The CNN stuff runs much better on the H7. The MP heap on the M7 is only 128KB and that's shared with everything else going on. On the H7 it increases to 256KB. That said, lenet is usually the network that doesn't fit. the Smile network must not fit because ...
by kwagyeman
Mon Jul 16, 2018 1:41 pm
Forum: Technical Discussion
Topic: Circle Detection and Differentiating circle size
Replies: 7
Views: 55

Re: Circle Detection and Differentiating circle size

See the Examples -> Pixy Emulation -> UART Color Tracking script for UART control examples.
by kwagyeman
Mon Jul 16, 2018 1:39 pm
Forum: Technical Discussion
Topic: save before programming
Replies: 1
Views: 14

Re: save before programming

Hi, the IDE can reload the firmware at any time using DFU. You cannot brick the device. If you need to reflash the system you can git the latest firmware image from the release page on our git hub and then you can use the Tools->Run Bootloader to program the camera using the DFU file.
by kwagyeman
Mon Jul 16, 2018 1:13 am
Forum: General Topics
Topic: Python3 compatible OpenMV-IDE ...
Replies: 7
Views: 64

Re: Python3 compatible OpenMV-IDE ...

Um, PR to the github?
by kwagyeman
Sun Jul 15, 2018 1:13 pm
Forum: Technical Discussion
Topic: Script autostart
Replies: 32
Views: 565

Re: Script autostart

Find features takes an ROI: Pass roi=(0, 0, 240, 120) to find_features. Note that the ROI is in the upper left of the image. You'll want to adjust the x/y values to fix that if you want the ROI to start elsewhere.
by kwagyeman
Sun Jul 15, 2018 1:11 pm
Forum: Technical Discussion
Topic: Circle Detection and Differentiating circle size
Replies: 7
Views: 55

Re: Circle Detection and Differentiating circle size

Hi, the find_circles method returns a list of circle objects. If you want to get the max sized circle from that list you simply do: circles = img.find_circles(...) if circles: largest_circles = max(circles, key = lambda x: x.r()) Or something like that. Um, if you need help with the python code just...
by kwagyeman
Sat Jul 14, 2018 9:54 pm
Forum: Technical Discussion
Topic: Blue Spot On The Image
Replies: 3
Views: 22

Re: Blue Spot On The Image

No, this would be IR light leaking through the back of the PCB. Just add some black tape to the back of the sensor. A manufacturing screw up lead to 2.5K cameras getting out without the sticker on the back of them to block light from the back of the PCB.
by kwagyeman
Sat Jul 14, 2018 9:54 pm
Forum: Technical Discussion
Topic: Blue Spot On The Image
Replies: 3
Views: 22

Re: Blue Spot On The Image

No, this would be IR light leaking through the back of the PCB. Just add some black tape to the back of the sensor. A manufacturing screw up lead to 2.5K cameras getting out without the sticker on the back of them to block light from the back of the PCB.
by kwagyeman
Sat Jul 14, 2018 5:47 pm
Forum: Technical Discussion
Topic: Script autostart
Replies: 32
Views: 565

Re: Script autostart

So, the method takes an ROI. Make the ROI a 3:2 area (240x160).
by kwagyeman
Sat Jul 14, 2018 5:45 pm
Forum: Technical Discussion
Topic: Script autostart
Replies: 32
Views: 565

Re: Script autostart

Hi, that was the case of the M4. Not anymore. Um, just make sure the res is some form of 3:2.
by kwagyeman
Sat Jul 14, 2018 3:09 pm
Forum: General Topics
Topic: How to get camera out of the plastic case.
Replies: 1
Views: 42

Re: How to get camera out of the plastic case.

Hi, on the left side of the case there are two holes for a flat head screw driver. Stick the screw driver in those two holes and turn it. The case should pop off.
by kwagyeman
Sat Jul 14, 2018 3:08 pm
Forum: Technical Discussion
Topic: Circle Detection and Differentiating circle size
Replies: 7
Views: 55

Re: Circle Detection and Differentiating circle size

Have you tried out the find_circles example under feature detection in the IDE? If so, you just have to choose the circle from the list of circle objects that has the largest radius. Please see the find circles example to get started.
by kwagyeman
Sat Jul 14, 2018 3:07 pm
Forum: Technical Discussion
Topic: Script autostart
Replies: 32
Views: 565

Re: Script autostart

As of right now there is not. However, if you set the resolution to something like QVGA and then set_windowing to a square res and then rotate that and then use an ROI of 240x160 you should get the results you want on the image.
by kwagyeman
Sat Jul 14, 2018 3:05 pm
Forum: Technical Discussion
Topic: Finding AprilTags at a distance
Replies: 18
Views: 304

Re: Finding AprilTags at a distance

Yes, it returns that as well. Please see the documentation: http://docs.openmv.io/library/omv.image ... e.apriltag
by kwagyeman
Sat Jul 14, 2018 3:04 pm
Forum: Technical Discussion
Topic: Unbeilevably Huge Light Leak on OpenMV Cam
Replies: 1
Views: 25

Re: Unbeilevably Huge Light Leak on OpenMV Cam

Hi, the camera should have come with a sticker on the back of it. However, there was a manufacturing issue with a previous batch where some cams go out without the tape on them. Anyway, black electrical tape fixes the issue... or a black sticker on the back off the camera. The tap should not come of...
by kwagyeman
Sat Jul 14, 2018 3:02 pm
Forum: Technical Discussion
Topic: Can't Save Script to OpenMV Cam
Replies: 1
Views: 12

Re: Can't Save Script to OpenMV Cam

Mmm, it's probably an issue with the OS not flushing writes to the disk. Please try this. Do the save script to the OpenMV Cam method. Then safety remove the drive (unmount, etc). The script should be saved then when you unplug and replug the board.
by kwagyeman
Fri Jul 13, 2018 12:51 am
Forum: Technical Discussion
Topic: how to detect the water line
Replies: 7
Views: 72

Re: how to detect the water line

Okay, when you have some pictures from the camera's point of view I'll be able to help more. Note that what you are trying to do is very hard... even with a CNN it's still hard.
by kwagyeman
Thu Jul 12, 2018 3:37 pm
Forum: Technical Discussion
Topic: Open a video file from computer with OpenMV IDE
Replies: 8
Views: 166

Re: Open a video file from computer with OpenMV IDE

Ah, yeah, the res of the video is limited on the camera. Um, make a github issue on the IDE to support resolution changes with FFMPEG.
by kwagyeman
Thu Jul 12, 2018 3:36 pm
Forum: General Topics
Topic: General MV questions
Replies: 3
Views: 57

Re: General MV questions

Hi, please see this:

https://openmv.io/blogs/news
by kwagyeman
Thu Jul 12, 2018 3:35 pm
Forum: Technical Discussion
Topic: Script autostart
Replies: 32
Views: 565

Re: Script autostart

Yes, just do: print(img.compress(quality=90),end="") You'll get a JPG byte stream. You may wish to send the size of the jpg byte stream first however. img.compress(quality=90) print(str(img.size()) + \n) print(img,end="") You'd then scanf to get the size in bytes and then read that many bytes next.
by kwagyeman
Thu Jul 12, 2018 2:03 am
Forum: Technical Discussion
Topic: Benefits of using floats for reporting blob location
Replies: 2
Views: 29

Re: Benefits of using floats for reporting blob location

I could do that. Um, right now I'm in the middle of doing the H7 kickstarter campagin. Would you be interested in submitting a PR for what you want? Adding it is quite simple: Add the new values here: https://github.com/openmv/openmv/blob/master/src/omv/img/imlib.h#L1052 Set them here (also update t...
by kwagyeman
Wed Jul 11, 2018 7:27 pm
Forum: General Topics
Topic: How to make the people counter
Replies: 4
Views: 75

Re: How to make the people counter

Ah, that's just frame differencing with blob tracking. See the frame differencing example scripts and then call find_blobs on the difference image to find all the blobs. That said, this just gets you where people blobs are... The next step is to determine up and down direction. This requires you to ...
by kwagyeman
Wed Jul 11, 2018 7:09 pm
Forum: General Topics
Topic: Awesome product & general thanks
Replies: 2
Views: 51

Re: Awesome product & general thanks

Wow, thank you for such a nice promotion and thank you!
by kwagyeman
Wed Jul 11, 2018 12:09 pm
Forum: Technical Discussion
Topic: how to detect the water line
Replies: 7
Views: 72

Re: how to detect the water line

Color tracking is the easiest thing to do for this... however, it's very hard to do given you don't have much contrast in the scene... How do you plan to mount the camera? Looking at the tubes from this direction? Can you possibly put some sort of background behind the tubes? And maybe color the wat...
by kwagyeman
Wed Jul 11, 2018 12:07 pm
Forum: Technical Discussion
Topic: Script autostart
Replies: 32
Views: 565

Re: Script autostart

A udev folder will not appear. However, if you do "ls /dev" you should now see a device called "/dev/openmvcam".
by kwagyeman
Wed Jul 11, 2018 12:06 pm
Forum: General Topics
Topic: Wifi Shield
Replies: 5
Views: 63

Re: Wifi Shield

Our lepton driver is only for the M7. However, you can check the I/O pins in the firmware and recompile to use the SPI/I2C bus on the camera pins. That's how we debugged things at first. There are no instructions for this however. As for the WiFi shield for remote programming, this is something we s...
by kwagyeman
Wed Jul 11, 2018 12:04 pm
Forum: Technical Discussion
Topic: Open a video file from computer with OpenMV IDE
Replies: 8
Views: 166

Re: Open a video file from computer with OpenMV IDE

Hi, the converter works by using FFMPEG to break the file up into a bunch of image stills and then I build up an OpenMV Cam video .bin file out of those stills. All timing information is stripped. So, the video will run very fast on the OpenMV Cam if you aren't doing any processing.
by kwagyeman
Wed Jul 11, 2018 1:52 am
Forum: Technical Discussion
Topic: Script autostart
Replies: 32
Views: 565

Re: Script autostart

Go to share/qtcreaotr/pydfu.

However, if you just run the ./setup.sh script it takes care of the install for you.
by kwagyeman
Wed Jul 11, 2018 1:52 am
Forum: Technical Discussion
Topic: Use the OpenMV cam M7 with CMSIS-NN
Replies: 11
Views: 143

Re: Use the OpenMV cam M7 with CMSIS-NN

The IDE release is done. v2.0.0 has been released. I'll do the update email soon.
by kwagyeman
Wed Jul 11, 2018 1:51 am
Forum: Technical Discussion
Topic: camera matrix
Replies: 12
Views: 174

Re: camera matrix

Yes, you're distance method will work for finding the lowest pixel... however, as for detecting things the way that will need to work is through CNNs. We just released this feature so it's not built out right now. However, it will eventually enable you to do what you want. So... are you capable of g...
by kwagyeman
Wed Jul 11, 2018 1:49 am
Forum: Technical Discussion
Topic: HW Performance metrics
Replies: 1
Views: 33

Re: HW Performance metrics

Hi, um, you'll need to get into the C firmware for this. In python you'll get weird numbers. In C you'll find a systick module which counts up every 1 ms. You can us that to benchmark. They have a method to get the current ms count and another to compare the elapsed time.

Is that good enough?
by kwagyeman
Wed Jul 11, 2018 1:47 am
Forum: General Topics
Topic: General MV questions
Replies: 3
Views: 57

Re: General MV questions

Hi, we recently added the CNN stuff to support these problems. Basically, everything you want to do is data driven. There's not perfect traditional algorithm that will do the job. Instead you need to train the CNN using some image data set for what you want to detect and then have the OpenMV Cam run...

Go to advanced search