Search found 4286 matches

by kwagyeman
Thu Aug 13, 2020 4:25 pm
Forum: Technical Discussion
Topic: cutting grass
Replies: 1
Views: 9

Re: cutting grass

Hi, I recommend you change approaches. Use the dataset editor of OpenMV IDE to collect a dataset of grass and not grass and train a CNN using Edge Impulse (see video details on our front page and product pages) to detect grass and not grass. It will work much better and is very little coding.
by kwagyeman
Thu Aug 13, 2020 2:17 pm
Forum: Technical Discussion
Topic: Custom Object Detection
Replies: 3
Views: 21

Re: Custom Object Detection

Ah, then use AprilTags. It's easy and works well. See the AprilTag examples. The IDE can generate the tags for you under Tools->Machine Vision->AprilTags.
by kwagyeman
Thu Aug 13, 2020 1:48 pm
Forum: Technical Discussion
Topic: Custom Object Detection
Replies: 3
Views: 21

Re: Custom Object Detection

Google and Edge Impulse don't have any support for anything order than Image classification right now. So, it's not possible. It's not like a hardware implementation issue. Just a limit of TensorFlow lite for microcontrollers. However, our library implementation of Image classification supports a sl...
by kwagyeman
Thu Aug 13, 2020 1:14 pm
Forum: General Topics
Topic: ulab Samples - FFT benchmark with OpenMV H7 in 1st place
Replies: 4
Views: 55

Re: ulab Samples - FFT benchmark with OpenMV H7 in 1st place

Mmm, this is a huge global change. It's probably going to be a no.

If ulab has a private float64 type then that's different.
by kwagyeman
Thu Aug 13, 2020 1:13 pm
Forum: Technical Discussion
Topic: 3D position from known object with multiple cameras
Replies: 3
Views: 24

Re: 3D position from known object with multiple cameras

You just need the IR tracking part for the OpenMV Cam. The cameras will stream results back to a main PC. Tat PC has to take the point locations from each camera to compute the actual 3d location. Um, to make this easy. I'd just mount a camera overhead and get the position in 2d from above from that...
by kwagyeman
Thu Aug 13, 2020 12:07 pm
Forum: Project Discussion
Topic: OpenMV as Autoguider for astrophotography?
Replies: 33
Views: 348

Re: OpenMV as Autoguider for astrophotography?

I don’t think you need to reduce the USB CDC buffers. But, okay. Weird that you ran out of heap. Must be a lot of stars. That’s quite a lot of allocations.
by kwagyeman
Thu Aug 13, 2020 12:03 pm
Forum: Technical Discussion
Topic: 3D position from known object with multiple cameras
Replies: 3
Views: 24

Re: 3D position from known object with multiple cameras

Getting the position of the object and sending that to the PC is simple. However, you have to have a master machine that combines the positions.

I don’t know the math for this. However, you should google 3D localization using markers.
by kwagyeman
Wed Aug 12, 2020 5:31 pm
Forum: General Topics
Topic: FLIR Lepton Framerates - Best Version?
Replies: 4
Views: 33

Re: FLIR Lepton Framerates - Best Version?

No, it's necessary because the sensor drifts. So, it has to run as the sensor temp changes. It runs more often on power on.
by kwagyeman
Wed Aug 12, 2020 4:05 pm
Forum: General Topics
Topic: FLIR Lepton Framerates - Best Version?
Replies: 4
Views: 33

Re: FLIR Lepton Framerates - Best Version?

It outputs 9 fps per ITAR restrictions because you could build a heat seeking missile with it. All do 9 fps of actual data. The FLIR lepton 1 just outputs the same frame about 3x times that makes the fps appear higher.
by kwagyeman
Wed Aug 12, 2020 2:40 pm
Forum: Technical Discussion
Topic: port openMV to custom board
Replies: 2
Views: 25

Re: port openMV to custom board

Hi, folks constantly clone us and if you look at the latest vision projects being launched people copy our ideas. We have to maintain someway to make revenue to pay to keep things running. In particular, we try to keep clones from getting too wild. If you want to make a board you can however. You ju...
by kwagyeman
Wed Aug 12, 2020 2:37 pm
Forum: Technical Discussion
Topic: Loading (but not decompressing) jpegs
Replies: 6
Views: 39

Re: Loading (but not decompressing) jpegs

You can already do this: 1. Open the jpeg file and read it into a byte array. 2. Create a extra frame buffer and set the image format type to the byte size of the byte array above. 3. Use the bytearray() arg of an image and assign he byte array the image. This works for small jpegs. It however doesn...
by kwagyeman
Wed Aug 12, 2020 11:18 am
Forum: Project Discussion
Topic: OpenMV as Autoguider for astrophotography?
Replies: 33
Views: 348

Re: OpenMV as Autoguider for astrophotography?

find_displacement() is phase correlation on the whole image. It can find rotation displacement. However, it's not designed for an FFT of more than 1024x1024 pixels. I had tried to design the algorithm to handle both rotation and translation but was unable to get that to work. The translation part wo...
by kwagyeman
Wed Aug 12, 2020 9:40 am
Forum: Project Discussion
Topic: Large display / screen.
Replies: 3
Views: 35

Re: Large display / screen.

You can write python code using the pyb SPI module for that.
by kwagyeman
Wed Aug 12, 2020 9:39 am
Forum: Technical Discussion
Topic: Running snapshot script. Can't see image
Replies: 1
Views: 13

Re: Running snapshot script. Can't see image

Use Tools->Reset Camera in the IDE.

USB flash drives are only rescanned by windows on pluggin. This the camera has to be reset for he new files to appear in windows (or mac/Linux).
by kwagyeman
Tue Aug 11, 2020 6:24 pm
Forum: Technical Discussion
Topic: Blob Outlines
Replies: 1
Views: 19

Re: Blob Outlines

We don't store the contour of the blob. Our API was built on supporting extremely low memory Microcontrollers. As such, storing that would be a challenge. I.e. for the M4 core it would be a huge amount of RAM per blob. We had barely more than 14KB free for the heap there. On the H7 however, this isn...
by kwagyeman
Mon Aug 10, 2020 3:47 pm
Forum: Project Discussion
Topic: OpenMV as Autoguider for astrophotography?
Replies: 33
Views: 348

Re: OpenMV as Autoguider for astrophotography?

CX/Cy are the centroid (weighted) They are based on the binary mask however. Not the brightness. If you want brightness just loop over the pixel region in Python using get_pixel(). The objects should be small so performance should be fine. Note, there's a special parameter that gives you the x and y...
by kwagyeman
Mon Aug 10, 2020 2:57 pm
Forum: Project Discussion
Topic: OpenMV as Autoguider for astrophotography?
Replies: 33
Views: 348

Re: OpenMV as Autoguider for astrophotography?

Hi, Please note the difference between a grayscale image and an RGB565 image that is just grayscale. When you take 255 and treat that as an RGB565 byte reversed value you get yellow. Use tuple notation (255, 255, 255) to avoid confusion. If you pass a number that number is treated as a RAW pixel. Yo...
by kwagyeman
Mon Aug 10, 2020 11:26 am
Forum: Technical Discussion
Topic: ADC and DAC between two cams
Replies: 1
Views: 26

Re: ADC and DAC between two cams

This will be noisy. Just use the RPC library. See the remote control examples in the IDE. Right now you need two I/O pins. One for RX and one for TX. At some point I will update the RPC library to work over 1 half duplex RX/TX pin. Anyway, look at the RPC examples for two OpenMV Cams sharing image d...
by kwagyeman
Sun Aug 09, 2020 9:10 pm
Forum: Project Discussion
Topic: OpenMV as Autoguider for astrophotography?
Replies: 33
Views: 348

Re: OpenMV as Autoguider for astrophotography?

Hmmm, to_grayscale() doesn't support frame buffer relocation with copy. I apologize. do this: extra_fb = sensor.alloc_extra_fb(2592, 1944, sensor.GRAYSCALE).replace(img).to_grayscale() replace() copys an image from one frame buffer to another. So, it will transfer the main image to that frame buffer...
by kwagyeman
Sun Aug 09, 2020 7:42 pm
Forum: Project Discussion
Topic: Large display / screen.
Replies: 3
Views: 35

Re: Large display / screen.

We will be working on support for 24-bit LCD support in our firmware base.

However, it will require you to build your own hardware.
by kwagyeman
Sun Aug 09, 2020 12:42 am
Forum: Technical Discussion
Topic: Radiometric vs Non-Radiometric Leptons
Replies: 26
Views: 607

Re: Radiometric vs Non-Radiometric Leptons

Hi, please read the forums posts by GL-ITC on this. He's already covered this topic is a lot of detail. https://forums.openmv.io/search.php?author_id=1812&sr=posts Summary answer if you don't feel like reading all the threads from him: -> The examples provide a valid temperature that's accurate and ...
by kwagyeman
Sat Aug 08, 2020 11:19 am
Forum: Technical Discussion
Topic: image distortion
Replies: 4
Views: 45

Re: image distortion

Hi, just move the lens housing. It's probably not aligned via that. So, unscrew the two black acres on the back and adjust those to get it straightened.
by kwagyeman
Sat Aug 08, 2020 11:14 am
Forum: Project Discussion
Topic: OpenMV as Autoguider for astrophotography?
Replies: 33
Views: 348

Re: OpenMV as Autoguider for astrophotography?

Read this: https://docs.openmv.io/openmvcam/tutorial/system_architecture.html#memory-architecture You tried to load the 10MB image to the 256KB MicroPython heap. Be very careful when dealing with large images. You have to be very explicit about using frame buffers which are stored in the 32MB SDRAM.
by kwagyeman
Sat Aug 08, 2020 11:12 am
Forum: Project Discussion
Topic: OpenMV as Autoguider for astrophotography?
Replies: 33
Views: 348

Re: OpenMV as Autoguider for astrophotography?

We don't support opening jpg files. Just saving them. There's been a GitHub enhancement issue to support this for a while. You are running out of ram because you tried to copy the image to the MicroPython heap. Please note that you are using a Microcontroller. Not a PC. We are able to do a lot but t...
by kwagyeman
Sat Aug 08, 2020 11:08 am
Forum: General Topics
Topic: Trouble Establishing Connection between Arduino Uno and OpenMV
Replies: 12
Views: 133

Re: Trouble Establishing Connection between Arduino Uno and OpenMV

It's because you are using hard UART 1 which is the same one the debug port is on to communicate to the camera. The code literally warns you about this. There's a comment right above where you uncommented the hardware UART line. You are seeing the communication to the camera happening. If you don't ...
by kwagyeman
Fri Aug 07, 2020 10:19 pm
Forum: General Topics
Topic: WINC TCP socket accept not working, browsers show conn refusal
Replies: 6
Views: 67

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

Hi, I'm almost done with our interface library. It lets you move data using the SPI bus at very high speeds.

I don't know what's wrong with AP mode. I don't use that mode. Probably bugged. Can you post an re-producable error snippet to github as an issue and Ibrahim will fix it.
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: 67

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: 67

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: 3902

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: 51

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: 45

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: 15
Views: 116

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: 33
Views: 348

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: 55

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: 15
Views: 116

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: 55

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: 33
Views: 348

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: 15
Views: 116

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: 56

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: 55

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: 33
Views: 348

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: 33
Views: 348

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: 33
Views: 348

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: 15
Views: 116

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: 133

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: 56

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: 15
Views: 116

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...

Go to advanced search