Search found 2462 matches

by kwagyeman
Mon Oct 22, 2018 12:01 pm
Forum: Technical Discussion
Topic: differentiating between cotton and plant
Replies: 12
Views: 1068

Re: differentiating between cotton and plant

Hi, if you're outside you're going to need to constantly change the exposure in regards to the lighting. I'd focus on making a freedback loop that keeps the colors of the image within the bounds you want given whatever is seen. You can do this buy calling get_stats() and then adjusting the exposure ...
by kwagyeman
Mon Oct 22, 2018 2:04 am
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

https://github.com/openmv/openmv/blob/master/tools/gen_rgb2yuv.py ? https://github.com/openmv/openmv/blob/master/src/omv/img/yuv_tab.c ? Um, the best way to send data to the chip is to fb _alloc a large array of bytes for the image size (3 bytes per pixel) and then send that buffer using SPI to the ...
by kwagyeman
Sun Oct 21, 2018 11:53 pm
Forum: Technical Discussion
Topic: imagedata stream
Replies: 7
Views: 923

Re: imagedata stream

Those script aren't runnable in OpenMV IDE. They are designed to be run on the linux computer by CPython.
by kwagyeman
Sun Oct 21, 2018 11:53 pm
Forum: General Topics
Topic: Problem with Sobel
Replies: 6
Views: 702

Re: Problem with Sobel

Um, is find_circles() not enough? If so, then you have to do this in C. Or, alternatively, allocate two image buffers (see the sensor module for allocing a second buffer) and then copy the snapshot into the second buffer and sobel each with a different gradient. That said, you're not going to be abl...
by kwagyeman
Sun Oct 21, 2018 10:08 pm
Forum: General Topics
Topic: Problem with Sobel
Replies: 6
Views: 702

Re: Problem with Sobel

I see what you are trying to do... um, you can't really do this with the OpenMV Cam however. This is because you need an output buffer for each sobel method. Um, what do you want to do with the sobel image? If you just need the magnitude then you can do: https://en.wikipedia.org/wiki/Kernel_(image_p...
by kwagyeman
Sun Oct 21, 2018 9:44 pm
Forum: General Topics
Topic: Problem with Sobel
Replies: 6
Views: 702

Re: Problem with Sobel

Hi, can you post your code? Note that general purpose convolutions take up a lot of CPU.
by kwagyeman
Sun Oct 21, 2018 9:41 pm
Forum: General Topics
Topic: Disconnecting when trying to use WiFI shield
Replies: 6
Views: 676

Re: Disconnecting when trying to use WiFI shield

Hi,
Please run the following script, send the output (if it doesn't hang).

Code: Select all

import network
wlan = network.WINC()
print(wlan.fw_version())
Also, please make sure all the pins are actually connected (sometimes pins bend and slide to the sides of the connector).
by kwagyeman
Sun Oct 21, 2018 6:15 pm
Forum: General Topics
Topic: imagedata directory
Replies: 7
Views: 757

Re: imagedata directory

The file isn't stored on disk. It's in the memory of the MCU. If you want to save it to disk please use see the Image Saving examples.
by kwagyeman
Sun Oct 21, 2018 6:14 pm
Forum: General Topics
Topic: Is it possible to use multiple cameras in tandem?
Replies: 6
Views: 1121

Re: Is it possible to use multiple cameras in tandem?

That's fine too. You can really do whatever you want.
by kwagyeman
Sun Oct 21, 2018 6:13 pm
Forum: Kickstarter Topics
Topic: OpenMV H7
Replies: 14
Views: 3821

Re: OpenMV H7

We don't have a plan to make one but you an easily build one once we release the schematics.
by kwagyeman
Sun Oct 21, 2018 6:12 pm
Forum: Technical Discussion
Topic: Allocating memory from frame buffer for MLX90640
Replies: 2
Views: 611

Re: Allocating memory from frame buffer for MLX90640

Mmm, I don't really have an answer for this. Um, does this error happen after the first loop or a few loops in? If it's a few loops in then you're getting heap fragmentation and you just need to call "del object" and then "gc.collect()" after you've finished with things in your script to force the h...
by kwagyeman
Sun Oct 21, 2018 6:10 pm
Forum: Technical Discussion
Topic: differentiating between cotton and plant
Replies: 12
Views: 1068

Re: differentiating between cotton and plant

Hmm, um, how many different exposure values did you try? Note that the scene at which you're pointing the camera isn't particularly suited for vision to have an easy job doing color tracking on. For example, you have way too much going on in the image and you're pointing the camera into the sky. In ...
by kwagyeman
Sun Oct 21, 2018 6:05 pm
Forum: Project Discussion
Topic: Three lights present
Replies: 9
Views: 1384

Re: Three lights present

Hi, just start with the color tracking examples and you'll be fine. This is very easy to do. Use the Threshold Editor under OpenMV IDE -> Tools -> Machine Vision to edit the tracking colors.

If you're having problems with the camera's exposure see the sensor control scripts for how to control that.
by kwagyeman
Sun Oct 21, 2018 3:12 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?

I don't actually know the answer to this that well. The documentation on how this works in the AprilTag code was pretty thin. It was a challenge to even get this output. That said, given the camera pixels are non square and that the lens is unrelated to the camera I would expect all 3 directions to ...
by kwagyeman
Sun Oct 21, 2018 3:07 pm
Forum: Technical Discussion
Topic: STM32F429I-DISCO firmware uploading
Replies: 16
Views: 6864

Re: STM32F429I-DISCO firmware uploading

Oh, yeah that camera. Um, we haven't touched that in 3 years. No clue where the source is for that. Ibrahim might know.
by kwagyeman
Sun Oct 21, 2018 3:06 pm
Forum: Technical Discussion
Topic: openmv m7 with opencm9.04c
Replies: 3
Views: 744

Re: openmv m7 with opencm9.04c

Yes, the OpenMV Cam can track colors and send data out the UART. Please see the Pixy Emulation UART example for how to go about writing code.
by kwagyeman
Sun Oct 21, 2018 3:04 pm
Forum: Technical Discussion
Topic: Threshold editor LAB not showing / tracking pixels
Replies: 3
Views: 665

Re: Threshold editor LAB not showing / tracking pixels

Can you post the source image from the frame buffer? If you right click on the image and save it I can then try with my viewer.
by kwagyeman
Sun Oct 21, 2018 3:03 pm
Forum: Technical Discussion
Topic: imagedata stream
Replies: 7
Views: 923

Re: imagedata stream

Hi,

sudo pip install pyserial

That's said, have you run python programs on a Linux device before? You may wish to reference some tutorial stuff. Using those scripts is for advanced users who know what they are doing.
by kwagyeman
Sun Oct 21, 2018 3:01 pm
Forum: General Topics
Topic: Disconnecting when trying to use WiFI shield
Replies: 6
Views: 676

Re: Disconnecting when trying to use WiFI shield

Hi, um, are you running the latest firmware on the OpenMV Cam and what's the device part number on the wifi? In particular, if the firmware is old this can be an issue. That said, I'd check the pins on the wifi shield are okay. Usually, a problem happens because the soldering job to connect the wifi...
by kwagyeman
Fri Oct 19, 2018 12:26 pm
Forum: Technical Discussion
Topic: STM32F429I-DISCO firmware uploading
Replies: 16
Views: 6864

Re: STM32F429I-DISCO firmware uploading

Hi, we really can't help with this. I honestly don't know. The board isn't made by us nor is it supported by us. If you want to target MicroPython to it you'll really going to have to fight compiler issues and work through them. You can open a thread on the micropython forums and ask for help. Howev...
by kwagyeman
Fri Oct 19, 2018 12:24 pm
Forum: Technical Discussion
Topic: pixy emulater on openmv3 m7
Replies: 1
Views: 615

Re: pixy emulater on openmv3 m7

Hi, we have a script under examples in OpenMV IDE which causes the OpenMV Cam to output serial messages in the CMUcam5 pixy format. The examples are rather detailed on what they do. Please see Examples -> Pixy Emulation. Note that only the UART emulation script works the best. The OpenMV Cam doesn't...
by kwagyeman
Fri Oct 19, 2018 12:10 pm
Forum: General Topics
Topic: AttributeError: 'Image' object has no attribute 'find_number'
Replies: 9
Views: 1130

Re: AttributeError: 'Image' object has no attribute 'find_number'

It will probably come sooner. But, that's the latest time. The long-lead time part is buying the STM32H7 chips. We did a factory order of 10K.
by kwagyeman
Fri Oct 19, 2018 12:06 pm
Forum: Technical Discussion
Topic: imagedata stream
Replies: 7
Views: 923

Re: imagedata stream

Hi, the camera sends a JPEG data stream over serial to the computer. You can use these scripts to see our protocol: https://github.com/openmv/openmv/blob/master/tools/pyopenmv_fb.py https://github.com/openmv/openmv/blob/master/tools/pyopenmv.py If you need robust multi-platform code then you'd have ...
by kwagyeman
Fri Oct 19, 2018 12:03 pm
Forum: Technical Discussion
Topic: Letter Recognition
Replies: 3
Views: 717

Re: Letter Recognition

Might be delayed a little bit on this... I have to deal with Kickstarter stuff this weekend.
by kwagyeman
Wed Oct 17, 2018 3:36 am
Forum: General Topics
Topic: imagedata directory
Replies: 7
Views: 757

Re: imagedata directory

Hi I understand there's a language barrier but I can't quite figure out what you want... maybe a picture with an arrow pointing to what you are talking about will help?
by kwagyeman
Wed Oct 17, 2018 12:33 am
Forum: Technical Discussion
Topic: Wifi Streaming and LCD?
Replies: 5
Views: 887

Re: Wifi Streaming and LCD?

I suppose, you can send the EPS32 images. Up to you on the EPS32 code to stream.
by kwagyeman
Tue Oct 16, 2018 8:30 pm
Forum: Technical Discussion
Topic: utensor
Replies: 1
Views: 192

Re: utensor

Yeah, I just met this guy at ARM Techcon. However, it seems like we are ahead of them on the tech side expect for them supporting tensor flow which is what Pete warden cares about.

They may target our platform soon.
by kwagyeman
Tue Oct 16, 2018 1:22 pm
Forum: Technical Discussion
Topic: Letter Recognition
Replies: 3
Views: 717

Re: Letter Recognition

Hi, we just got this working on the OpenMV Cam H7 using a CNN. I can retrain the network for the M7. I'll do that later this week. I'm at ARM Techcon right now however. Please wait till this weekend: https://www.google.com/url?sa=t&source=web&rct=j&url=%23&ved=2ahUKEwij1r_hvIveAhWTMn0KHeMMArcQwqsBMA...
by kwagyeman
Tue Oct 16, 2018 10:15 am
Forum: Technical Discussion
Topic: Firmware updates
Replies: 10
Views: 964

Re: Firmware updates

Awesome!
by kwagyeman
Tue Oct 16, 2018 10:15 am
Forum: Technical Discussion
Topic: differentiating between cotton and plant
Replies: 12
Views: 1068

Re: differentiating between cotton and plant

Ah, I see. Okay, go to the sensor examples and lower your exposure drastically. This will increase the color saturation. Finally, call img.compress(quality=90) at the end of your main loop to improve video streaming to the IDE.
by kwagyeman
Tue Oct 16, 2018 10:13 am
Forum: Technical Discussion
Topic: OSError: Could not find the file for module nn
Replies: 6
Views: 283

Re: OSError: Could not find the file for module nn

You need to put the network on the OpenMV Cam's disk. That said, the cifar10 net doesn't run on the OpenMV Cam M7. You can run the cifar10 fast net on the OpenMV Cam.

If you want to do that, please add softmax=True to the nn.forward() call.
by kwagyeman
Tue Oct 16, 2018 10:12 am
Forum: General Topics
Topic: imagedata directory
Replies: 7
Views: 757

Re: imagedata directory

Hi, if you're having trouble with our WiFi shield just use a second wifi based processor versus the OpenMV Cam. You can then hook the two devices up via serial comms. This may be easier for you.
by kwagyeman
Tue Oct 16, 2018 1:03 am
Forum: Technical Discussion
Topic: differentiating between cotton and plant
Replies: 12
Views: 1068

Re: differentiating between cotton and plant

Hi, please got to our FIle -> Examples -> Color Tracking. Click on the single color tracking RGB565 script. And then open the threshold editor under Tools -> Machine Vision -> Threshold Editor.

Thanks,
by kwagyeman
Sat Oct 13, 2018 10:58 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 60
Views: 21600

Re: implement own Haar-Cascade

Hi, I'll put some effort into updating the docs for all that in the future. Um, but, yest, it works on Mac if you have all the required libs.
by kwagyeman
Sat Oct 13, 2018 3:37 pm
Forum: Technical Discussion
Topic: Threshold editor LAB not showing / tracking pixels
Replies: 3
Views: 665

Re: Threshold editor LAB not showing / tracking pixels

Um, have you tried changing the color tracking bounds? They have to be adjusted given the image and lighting.
by kwagyeman
Sat Oct 13, 2018 12:27 am
Forum: General Topics
Topic: Output Data via USB?
Replies: 3
Views: 803

Re: Output Data via USB?

Print goes out the USB. If you want to use the UART you have to specify point to that.
by kwagyeman
Thu Oct 11, 2018 6:39 pm
Forum: Technical Discussion
Topic: Frame Rate April Tags
Replies: 1
Views: 299

Re: Frame Rate April Tags

April Tags runs at 240x240 max on the H7 at about 20 FPS. The AprilTag algorithm has a rather large memory overhead that scales exponentially with resolution. Anyway, in order to get more RAM for the algorithm I locked the res to 256x256 at max. This allowed me to cut the size of the union find tabl...
by kwagyeman
Thu Oct 11, 2018 6:36 pm
Forum: General Topics
Topic: Output Data via USB?
Replies: 3
Views: 803

Re: Output Data via USB?

Um, yes, the OpenMV Cam appears as a serial port and you can use the print method to send data out of it. So, just develop a script in OpenMV IDE that prints the results you want to print... Then once done... Close OpenMV IDE and have an application open the serial port of the camera and read the pr...
by kwagyeman
Thu Oct 11, 2018 1:27 pm
Forum: Technical Discussion
Topic: Wifi Streaming and LCD?
Replies: 5
Views: 887

Re: Wifi Streaming and LCD?

Just attach an ESP-32 or Partile Photon for wifi support via serial.
by kwagyeman
Thu Oct 11, 2018 12:15 pm
Forum: General Topics
Topic: lumber/wood inspection detection
Replies: 3
Views: 669

Re: lumber/wood inspection detection

Okay, can you think how how you'd build a rig that the camera can be mounted on which will be in a fixed position to see the wood. Given that thought, how would you mount the camera... what would it be looking at, etc. I understand your problem. Not you have to think about how to solve it. If you ha...
by kwagyeman
Thu Oct 11, 2018 12:00 pm
Forum: Technical Discussion
Topic: Wifi Streaming and LCD?
Replies: 5
Views: 887

Re: Wifi Streaming and LCD?

The hardware is capable of this. However, our software library won't let you do this. Right now I think both of those shields share CS.
by kwagyeman
Thu Oct 11, 2018 11:59 am
Forum: Technical Discussion
Topic: STM32F765VIT6 or STM32F765VGT6
Replies: 2
Views: 326

Re: STM32F765VIT6 or STM32F765VGT6

I suppose so... just make sure to fix the linker scripts. Note that our M7 firmware won't fit in RAM anymore... so, you'll have to disable a ton of stuff.
by kwagyeman
Thu Oct 11, 2018 12:27 am
Forum: Technical Discussion
Topic: Haar Cascade to detect "ObjectX"
Replies: 7
Views: 421

Re: Haar Cascade to detect "ObjectX"

Yes, I will be updating it tonight and sending out an email blast. We finally got the last bug out.
by kwagyeman
Thu Oct 11, 2018 12:27 am
Forum: General Topics
Topic: lumber/wood inspection detection
Replies: 3
Views: 669

Re: lumber/wood inspection detection

Hi, Do you have any particular algorithm you plan to detect the problem with? The OpenMV Cam can do a lot of things... but, you need to have some idea about how to go about it. Is the object in a controlled environment? Do you have stable lighting? Is the atmosphere stable? What are the variables? H...
by kwagyeman
Thu Oct 11, 2018 12:24 am
Forum: Technical Discussion
Topic: frame reading
Replies: 8
Views: 524

Re: frame reading

Um, so, just go back to our code and just ignore parts you don't need... you don't have to modify the code if you don't need to.

I tried your script out and could confirm it's not working. But, I really can't do hands on debug support anymore. Too many people are asking for my time now.
by kwagyeman
Thu Oct 11, 2018 12:21 am
Forum: Project Discussion
Topic: Number Recognition of Stencil
Replies: 7
Views: 1014

Re: Number Recognition of Stencil

Doing two AprilTag's in a row give you an ID space of (512*512) cars. You can keep adding them for more digits. QRcodes need to be aligned but are lighting invariant like AprilTags and give you a large number space. So, they are the best to use. Use a version 1 QrCode with the OpenMV Cam and you'll ...

Go to advanced search