Search found 4458 matches

by kwagyeman
Fri Aug 07, 2020 6:04 pm
Forum: General Topics
Topic: WINC TCP socket accept not working, browsers show conn refusal
Replies: 6
Views: 140

Re: WINC TCP socket accept not working, browsers show conn refusal

Just take how TCP socket handling from me works and you should be good to go. You can print out what the remote client then sends and then craft your own http responses.

When I have time to write a server class I'll do all this stuff for you and you will then just need to support the raw html.
by kwagyeman
Fri Aug 07, 2020 6:00 pm
Forum: General Topics
Topic: WINC TCP socket accept not working, browsers show conn refusal
Replies: 6
Views: 140

Re: WINC TCP socket accept not working, browsers show conn refusal

Hi, I have a working RSTP server I can point you to. I can't debug random user code. https://github.com/openmv/openmv/blob/master/scripts/libraries/rtsp.py It's fairly robust. Http just has different protocol headers that you have to return. Note that I have on my to-do list to write an http server ...
by kwagyeman
Fri Aug 07, 2020 5:55 pm
Forum: Project Discussion
Topic: Modbus slave Library support
Replies: 3
Views: 3989

Re: Modbus slave Library support

I didn't write that library. It's user contributed. You should debug from the library source.
by kwagyeman
Fri Aug 07, 2020 1:37 pm
Forum: Technical Discussion
Topic: blob region
Replies: 4
Views: 101

Re: blob region

Just check if the little blobs rect intersects with the big blobs circle. https://stackoverflow.com/questions/401847/circle-rectangle-collision-detection-intersection If you want a more general answer for any object... then I don't think we can do that as find_blobs() doesn't keep the contour of the...
by kwagyeman
Fri Aug 07, 2020 1:32 pm
Forum: Technical Discussion
Topic: image distortion
Replies: 4
Views: 97

Re: image distortion

We don't make any promises on how perfect the alignment of the sensor is.

But, what's the error exactly? Can you point out the issue in the image below?
by kwagyeman
Fri Aug 07, 2020 1:31 pm
Forum: Project Discussion
Topic: counting flowers
Replies: 30
Views: 468

Re: counting flowers

Yeah, that ttl adapter will work.

Then use the PYB module to control the uart. It's very simple to send things.
by kwagyeman
Fri Aug 07, 2020 1:28 pm
Forum: Project Discussion
Topic: OpenMV as Autoguider for astrophotography?
Replies: 51
Views: 1055

Re: OpenMV as Autoguider for astrophotography?

Awesome!

Also, besides lowering the PLL you can increase the divider output. The PLL has to be within certain freqs to lock. So, you can't set it to anything. But, you can increase the output divider as much as you want.

You can also bypass the PLL.
by kwagyeman
Fri Aug 07, 2020 1:31 am
Forum: General Topics
Topic: Trouble running two seperate if-else statement
Replies: 7
Views: 124

Re: Trouble running two seperate if-else statement

Please post the print output of you testing it. As I said, it doesn't look wrong.
by kwagyeman
Thu Aug 06, 2020 11:23 pm
Forum: Project Discussion
Topic: counting flowers
Replies: 30
Views: 468

Re: counting flowers

# Hello World Example # # Welcome to the OpenMV IDE! Click on the green run arrow button below to run the script! import sensor, image, time FROM_FILE = True sensor.reset() # Reset and initialize the sensor. sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE) sensor.set_...
by kwagyeman
Thu Aug 06, 2020 2:22 pm
Forum: General Topics
Topic: Trouble running two seperate if-else statement
Replies: 7
Views: 124

Re: Trouble running two seperate if-else statement

Can you give me the print output I requested? I don't see a bug for starting at your code. So, Im thinking is a hardware/mechanical issue.
by kwagyeman
Thu Aug 06, 2020 2:21 pm
Forum: Project Discussion
Topic: OpenMV as Autoguider for astrophotography?
Replies: 51
Views: 1055

Re: OpenMV as Autoguider for astrophotography?

Yeah, the timeout in snapshot is 3 seconds. That datasheet I liked to is how we developed our firmware. Took a lot of effort because it's not really enough documentation. Pretty much for any of these modernish camera SoCs now days big companies just use FAEs to develop customer products and there re...
by kwagyeman
Thu Aug 06, 2020 2:14 pm
Forum: Project Discussion
Topic: counting flowers
Replies: 30
Views: 468

Re: counting flowers

Hi, it's that a picture captured from the camera? I can quickly give you a script that does the job...
by kwagyeman
Thu Aug 06, 2020 2:13 pm
Forum: Technical Discussion
Topic: OpenMV IDE on a smartphone
Replies: 3
Views: 101

Re: OpenMV IDE on a smartphone

Hi,

1. Would be something new could do one day. Probably whenever OpenMV is more than 2 people. Right now we can't.
by kwagyeman
Thu Aug 06, 2020 12:21 am
Forum: General Topics
Topic: Trouble running two seperate if-else statement
Replies: 7
Views: 124

Re: Trouble running two seperate if-else statement

What behavior are you expecting? Are you trying to look for a neg/pos edge? The 1 second delays there will really make things choppy.

If the valve control isn't working I'd verify the pin works by printing the state of "first" and "second" each time in the loop.
by kwagyeman
Thu Aug 06, 2020 12:12 am
Forum: Project Discussion
Topic: OpenMV as Autoguider for astrophotography?
Replies: 51
Views: 1055

Re: OpenMV as Autoguider for astrophotography?

Here's how exposure works: https://github.com/openmv/openmv/blob/master/src/omv/ov5640.c#L791 The OV5640 is actually a very complex camera SoC. Much more so than the OV7725. As such, it has a very complex clock tree. If you work out the math for the clock we are feeding it... it's actually running a...
by kwagyeman
Thu Aug 06, 2020 12:04 am
Forum: Project Discussion
Topic: OpenMV as Autoguider for astrophotography?
Replies: 51
Views: 1055

Re: OpenMV as Autoguider for astrophotography?

Ah, yeah, the H7 plus has a screw lock ring and not the regular set screw. For our first production run with it the sensor might not have been totally clean.

You can take the screw lock off the default lens and put it on the Telephoto screw.

As for the H7 plus. Give me a second.
by kwagyeman
Wed Aug 05, 2020 10:56 pm
Forum: Project Discussion
Topic: OpenMV as Autoguider for astrophotography?
Replies: 51
Views: 1055

Re: OpenMV as Autoguider for astrophotography?

Hi, The M12 thread is really loose unless the lens is screwed all the way in, but if it's all the way in, it's definitely not focused right. This is a big problem but I might just solve it with teflon tape or thread locker. Or maybe I could stick an o-ring between the housing and the lens? You have ...
by kwagyeman
Wed Aug 05, 2020 3:03 pm
Forum: Project Discussion
Topic: counting flowers
Replies: 30
Views: 468

Re: counting flowers

See the Examples->Color Tracking->Multicolor-tracking examples in the IDE. Please see what find blobs does: https://docs.openmv.io/library/omv.image.html?highlight=find_blobs#image.image.find_blobs it has all the features you need in one function. Please try out the example and then modify the argum...
by kwagyeman
Wed Aug 05, 2020 11:16 am
Forum: General Topics
Topic: Trouble Establishing Connection between Arduino Uno and OpenMV
Replies: 12
Views: 256

Re: Trouble Establishing Connection between Arduino Uno and OpenMV

CAN.h is a library. If you put the file in the Arduino Library manager it would download that dependency for you. The issue you are encountering is that the comms aren't working. The OpenMV Cam will run for about a second and then wait for the Arduino to control it. What interface do you have on the...
by kwagyeman
Wed Aug 05, 2020 11:14 am
Forum: Technical Discussion
Topic: OpenMV IDE on a smartphone
Replies: 3
Views: 101

Re: OpenMV IDE on a smartphone

Nope. I don't even know how that would be usable. Like, what would you want?
by kwagyeman
Wed Aug 05, 2020 11:13 am
Forum: Project Discussion
Topic: counting flowers
Replies: 30
Views: 468

Re: counting flowers

Hi, keypoint objects are documented in the API as having a x and y position. So, you need a clustering algorithm to count the keypoint blobs. E.g. use something like this to cluster the blobs and.get the count: https://github.com/CihanBosnali/Machine-Learning-without-Libraries ... Regarding the Open...
by kwagyeman
Tue Aug 04, 2020 10:30 pm
Forum: Project Discussion
Topic: counting flowers
Replies: 30
Views: 468

Re: counting flowers

How are you counting them with OpenCV currently? Find_Blobs() will do what you need for that image. A simple color threshold will find those blobs.
by kwagyeman
Tue Aug 04, 2020 10:29 pm
Forum: General Topics
Topic: Add a library in OpenMV IDE
Replies: 1
Views: 74

Re: Add a library in OpenMV IDE

They don't work in MicroPython.
by kwagyeman
Tue Aug 04, 2020 10:29 pm
Forum: General Topics
Topic: Trouble Establishing Connection between Arduino Uno and OpenMV
Replies: 12
Views: 256

Re: Trouble Establishing Connection between Arduino Uno and OpenMV

The example script covers how to make the camera do face detection, color tracking, bar code decoding, Apriltags, qrcodes, and datamatrices. Everything works.
by kwagyeman
Tue Aug 04, 2020 10:27 pm
Forum: General Topics
Topic: Trouble Establishing Connection between Arduino Uno and OpenMV
Replies: 12
Views: 256

Re: Trouble Establishing Connection between Arduino Uno and OpenMV

Hi, I'm guessing you don't know how to install an Arduino Library. Download the folder as a zip file. Then unzip it. Then put it in your Arduino libraries folder (e.g. home/documents/Arduino/libraries). Restart the Arduino IDE. Then the library will appear for imports along with the example. Open th...
by kwagyeman
Tue Aug 04, 2020 12:10 pm
Forum: General Topics
Topic: Trouble Establishing Connection between Arduino Uno and OpenMV
Replies: 12
Views: 256

Re: Trouble Establishing Connection between Arduino Uno and OpenMV

Also, the reason you are having issues is because you are trying to use the same serial port the Arduino uses to send debug info to the PC for communication to the OpenMV Cam. This will not work. At all.
by kwagyeman
Tue Aug 04, 2020 12:10 pm
Forum: General Topics
Topic: Trouble Establishing Connection between Arduino Uno and OpenMV
Replies: 12
Views: 256

Re: Trouble Establishing Connection between Arduino Uno and OpenMV

Hi, you're in luck! Our interface library is almost done! But, not quite ready... But, you can use it now for serial comms. https://github.com/openmv/openmv-rpc-cpp It's not done yet... And docs aren't completed. But, there's an example for comms with UART, SPI, and I2C that works with an example on...
by kwagyeman
Mon Aug 03, 2020 11:23 pm
Forum: Technical Discussion
Topic: image.binary() outputs image in GRAYSCALE instead of BINARY
Replies: 3
Views: 102

Re: image.binary() outputs image in GRAYSCALE instead of BINARY

Binary just thresholds an image. Use to_bitmap() to get a binary image.

Yes, the terminology is confusing because this all wasn't designed at the same time and we can't rename things.
by kwagyeman
Mon Aug 03, 2020 11:43 am
Forum: Project Discussion
Topic: OpenMV as Autoguider for astrophotography?
Replies: 51
Views: 1055

Re: OpenMV as Autoguider for astrophotography?

I'm sure you optimized the crap out of everything for your race cars but just wanna make sure. Working on it. At the start of this year a lot of things weren't. Right now... SDRAM is as fast as it can be. And we've got the camera DCMI driver working as fast as it can. We will be adding double buffe...
by kwagyeman
Mon Aug 03, 2020 11:39 am
Forum: Project Discussion
Topic: OpenMV as Autoguider for astrophotography?
Replies: 51
Views: 1055

Re: OpenMV as Autoguider for astrophotography?

Hi, the ATWINC1500 used to be bad. But, when doing the interface library updates for it I fixed a lot of issues with it. It works using 40 MHz SPI. Transmit is very fast and doesn't block. RX works but is not as performant. The WINC1500 cannot actually handle a large packet stream input from another...
by kwagyeman
Mon Aug 03, 2020 11:35 am
Forum: Project Discussion
Topic: Robot Obstacle Avoidance
Replies: 8
Views: 730

Re: Robot Obstacle Avoidance

The OpenMV Cam is not a distance sensor. You should really use a distance sensor for object avoidance. Anyway, just take in general a very large number of pixels of the trunk and not the truck. Aim for like 1K pics of each with different lighting conditions. You need to keep adding data to your mode...
by kwagyeman
Mon Aug 03, 2020 11:33 am
Forum: Technical Discussion
Topic: blob region
Replies: 4
Views: 101

Re: blob region

Hi, do you have an example image where just calling find_blobs() again on the roi of the previously found blob doesn't give you what you need followed by some filtering?
by kwagyeman
Sun Aug 02, 2020 1:52 pm
Forum: Technical Discussion
Topic: Sending Lepton Image over UART
Replies: 6
Views: 168

Re: Sending Lepton Image over UART

If you want the temperature of each pixel just send the jpeg compressed image out the serial port with the min and max temperature ranges used for the min. On the receiving device, uncompress the image, and the use the min and max values to undo the scaling applied to get the temp per pixel.
by kwagyeman
Sat Aug 01, 2020 1:03 pm
Forum: General Topics
Topic: why after FW3.6.4 I can't call nn.load()
Replies: 20
Views: 370

Re: why after FW3.6.4 I can't call nn.load()

Awesome! Mind posting some details on exactly what you did for others? As for a speed up... We are working on CMSIS-NN support. When it is integrated we should get a 5x speed boost. However, it's challenging because when we use it right now it causes memory corruption... And because the TensorFlow l...
by kwagyeman
Sat Aug 01, 2020 1:00 pm
Forum: General Topics
Topic: Problems with Machine learning
Replies: 7
Views: 149

Re: Problems with Machine learning

Use the crop and then scale/resize methods. This will change the input size and free up ram.
by kwagyeman
Sat Aug 01, 2020 12:41 pm
Forum: General Topics
Topic: Problems with Machine learning
Replies: 7
Views: 149

Re: Problems with Machine learning

Hi, you just need to make sure that whatever you feed the net looks exactly like the training dataset. I don't know what this means exactly for you. But, as long as the input matches what it was trained on it should work.
by kwagyeman
Sat Aug 01, 2020 11:36 am
Forum: Technical Discussion
Topic: Sending Lepton Image over UART
Replies: 6
Views: 168

Re: Sending Lepton Image over UART

Hi, we will have an interface library out for the Arduino shortly that will make this very easy. Until then... Can the receiving device handle the data rate? The OpenMV Cam is a high spec processor. It can overwhelm other devices easily. To send the jpeg image you just write() the image after callin...
by kwagyeman
Sat Aug 01, 2020 11:33 am
Forum: General Topics
Topic: Problems with Machine learning
Replies: 7
Views: 149

Re: Problems with Machine learning

Okay, cool, then, just keep in mind the effect of two things: 1. Background details. The CNN can learn what the background looks like versus the foreground. Make sure that the background is not interesting and that the image just contains the subject you care about. E.g. have an object on a flat tab...
by kwagyeman
Sat Aug 01, 2020 10:00 am
Forum: General Topics
Topic: Problems with Machine learning
Replies: 7
Views: 149

Re: Problems with Machine learning

Hi, did you use our new deep learning system with edge Impulse and our data set editor? We built this because people keep getting bad results trying to give the camera synthetic data and then expecting that to work in the real world. CNNs are very good at memorization. They will overfit on whatever ...
by kwagyeman
Sat Aug 01, 2020 9:55 am
Forum: General Topics
Topic: why after FW3.6.4 I can't call nn.load()
Replies: 20
Views: 370

Re: why after FW3.6.4 I can't call nn.load()

Hi, you should use the crop method to make new image from each of those characters. Then, binarize the cropped image, then draw that cropped image in the middle of a white area with plenty of width/height boundaries. Think about it. What you are feeding the network doesn't look like what it's traine...
by kwagyeman
Sat Aug 01, 2020 12:00 am
Forum: General Topics
Topic: why after FW3.6.4 I can't call nn.load()
Replies: 20
Views: 370

Re: why after FW3.6.4 I can't call nn.load()

Hi, the network is over fit. If you look at the data it expects a white image with a black character. So, you need to give it exactly that. You should binarize each character that you need it. Also, the classify method will scale to for the character into the CNN window. So, you need to produce squa...
by kwagyeman
Fri Jul 31, 2020 7:29 pm
Forum: General Topics
Topic: Blob Detection Wrap
Replies: 3
Views: 83

Re: Blob Detection Wrap

Oh, I see. Nope. You have to detect when you see two blue blobs on the left and right side of the image and then combine them into one. You can do this in software. This is just what you have to deal with to use this filter. Um, regarding image quality. You should adjust the contrast to make the ima...
by kwagyeman
Fri Jul 31, 2020 2:06 pm
Forum: General Topics
Topic: why after FW3.6.4 I can't call nn.load()
Replies: 20
Views: 370

Re: why after FW3.6.4 I can't call nn.load()

Hi, I'll see what I can do...

This data is really hard to train on however. I think it has to do with the way it's presented. Not sure why. Pretty much any CNN I tried didn't work.
by kwagyeman
Fri Jul 31, 2020 1:03 pm
Forum: Technical Discussion
Topic: MVCam H7 to IBM Cloud Services
Replies: 24
Views: 448

Re: MVCam H7 to IBM Cloud Services

Take a look at the other example scripts... In particular, the popular features one. Also, what you wrote is not valid python. Strings have no .bytearray() method. You have to use the .encode() method. The argument passed to the method is what the slave receives. The master does .call("method_name",...
by kwagyeman
Fri Jul 31, 2020 12:47 pm
Forum: Technical Discussion
Topic: MVCam H7 to IBM Cloud Services
Replies: 24
Views: 448

Re: MVCam H7 to IBM Cloud Services

Hi, did you read the API? It's clear that it will only call a function that takes an argument and returns an argument... E.g. you have to add an unused argument to the process_ready() method. You should also convert the "True" message to a byte array.
by kwagyeman
Fri Jul 31, 2020 10:55 am
Forum: Technical Discussion
Topic: Radiometric vs Non-Radiometric Leptons
Replies: 26
Views: 833

Re: Radiometric vs Non-Radiometric Leptons

Yes, you can do that with the OpenMV Cam. And if you are feeling very generous you can post the python code here that performs the calibration (it would be a huge benefit to others).
by kwagyeman
Fri Jul 31, 2020 10:51 am
Forum: General Topics
Topic: TB6612 Library - Stepper motor only turns in one direction
Replies: 5
Views: 201

Re: TB6612 Library - Stepper motor only turns in one direction

If you are using the LCD shield make sure you are not using a pin it uses for the motor pwm.
by kwagyeman
Thu Jul 30, 2020 7:38 pm
Forum: General Topics
Topic: Blob Detection Wrap
Replies: 3
Views: 83

Re: Blob Detection Wrap

Find blobs looks at the image as a rectangular array. It does not care about the geometry of the image.

Can you provide a sample image?

Go to advanced search