Search found 4431 matches

by kwagyeman
Wed Jul 15, 2020 1:07 pm
Forum: Technical Discussion
Topic: Radiometric vs Non-Radiometric Leptons
Replies: 26
Views: 731

Re: Radiometric vs Non-Radiometric Leptons

Hi, help support is for the features we have exposed. If you are going to ask questions about the code you should make an error to install a good editor and then lookup what all parts do. IM_DIV() for example is the divide operation with protection for divide by 0. If you want to understand that cod...
by kwagyeman
Tue Jul 14, 2020 12:09 pm
Forum: Technical Discussion
Topic: Radiometric vs Non-Radiometric Leptons
Replies: 26
Views: 731

Re: Radiometric vs Non-Radiometric Leptons

Yes, that's correct.

And for your second question yes too. You'd tell the camera which ROI you want dynamically and then query the precise temp from that.
by kwagyeman
Tue Jul 14, 2020 12:08 pm
Forum: General Topics
Topic: TB6612 Library - Stepper motor only turns in one direction
Replies: 5
Views: 173

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

I didn't write that library nor have I ever used it. I assume it works however.

The library assumes you have directly control of the H-bridge. The big easy driver looks like a stepper motor driver so I think you should write your own python code to talk to it.
by kwagyeman
Tue Jul 14, 2020 12:05 pm
Forum: General Topics
Topic: H7 Plus loads Micropython from internal or external Flash
Replies: 1
Views: 73

Re: H7 Plus loads Micropython from internal or external Flash

We store everything in internal flash. The external flash is just used for a FAT16 FS.
by kwagyeman
Mon Jul 13, 2020 7:30 pm
Forum: Technical Discussion
Topic: Find the color NAME of "most" pixels in a region
Replies: 15
Views: 194

Re: Find the color NAME of "most" pixels in a region

Closest color: import math list_of_color_names = ["AliceBlue"] list_of_color_rgb_tuples = [(240, 248, 255)] def closest_color(r, g, b): closest_color_diff = 1000000 closest_color_name = "Uknown" for i in range(len(list_of_color_rgb_tuples)): red_diff = r - list_of_color_rgb_tuples[i][0] green_diff =...
by kwagyeman
Mon Jul 13, 2020 2:06 pm
Forum: Technical Discussion
Topic: Radiometric vs Non-Radiometric Leptons
Replies: 26
Views: 731

Re: Radiometric vs Non-Radiometric Leptons

Yes, but, you can move the ROI to a new location based on 8-bit hotspot tracking. ... But, really, here's the deal. Why do you need 14-bits? 8-bits gives you enough resolution if you set the min and max temperature. You seem to be asking for a feature that you don't need. What's your min and max tem...
by kwagyeman
Mon Jul 13, 2020 1:02 pm
Forum: Technical Discussion
Topic: Radiometric vs Non-Radiometric Leptons
Replies: 26
Views: 731

Re: Radiometric vs Non-Radiometric Leptons

There's another thread about using the RAD spot-o-mter. This is what you want to use. It lets you get the temperature of an ROI.
by kwagyeman
Mon Jul 13, 2020 11:13 am
Forum: Technical Discussion
Topic: Radiometric vs Non-Radiometric Leptons
Replies: 26
Views: 731

Re: Radiometric vs Non-Radiometric Leptons

Hi, the camera has no way to display 14-bit data. None of our code works on that pixel depth. If you want to shove a 14-bit grayscale output into a 16-bit RGB565 image you can do that. However, the only thing you can do then is just write the image to disk as a binary file. None of our CV methods ca...
by kwagyeman
Sun Jul 12, 2020 10:26 pm
Forum: Technical Discussion
Topic: Is there anything like blob id and memory of it ?
Replies: 4
Views: 180

Re: Is there anything like blob id and memory of it ?

The OpenMV Cam is as fast as the Teensy for all relevant purposes. Yes, it's a 600 MHz M7 versus a 480 MHz one. But, those extra MHz won't matter much for the application.

What will matter is that writing said code in C will be very difficult versus using python.
by kwagyeman
Sun Jul 12, 2020 4:25 pm
Forum: Technical Discussion
Topic: Is there anything like blob id and memory of it ?
Replies: 4
Views: 180

Re: Is there anything like blob id and memory of it ?

I'm working on an Arduino Interface library for the OpenMV Cam now that connects to our RPC code. It's a very robust interface library that lets you do remote calls to the OpenMV Cam. A remote call could be to grab a frame, then compute the tracked objects, and then return the result.
by kwagyeman
Sun Jul 12, 2020 4:23 pm
Forum: Technical Discussion
Topic: Is there anything like blob id and memory of it ?
Replies: 4
Views: 180

Re: Is there anything like blob id and memory of it ?

Yes, but, you have to write python code to do it... This is isn't a vision processing thing. It's called object tracking. Basically, find blobs is something called perception. It's just perceiving the world. You then need to have some type of controller code that's the state of the world. What you w...
by kwagyeman
Sun Jul 12, 2020 4:16 pm
Forum: Technical Discussion
Topic: 100 fps H7+
Replies: 8
Views: 669

Re: 100 fps H7+

Hi, 1st, the Portenta is up to Arduino. We were asked to make binary builds for it. However, I don't know when it's coming out or what hardware will come with it. 2nd, the FPS for the OV5640 is limited to about 120 fps. If you want sub 1 millisecond you are definitely in the realm of super high spec...
by kwagyeman
Sun Jul 12, 2020 11:19 am
Forum: Technical Discussion
Topic: openmv m7 cam not found
Replies: 1
Views: 64

Re: openmv m7 cam not found

Hi, is the USB cable you are using power only or does it supply data?
by kwagyeman
Sun Jul 12, 2020 11:18 am
Forum: General Topics
Topic: Apriltags
Replies: 2
Views: 111

Re: Apriltags

The H7 Plus board has external RAM which is slower than on chip RAM. The extra RAM is useful for high res applications. It doesn't have more performance than the regular system. Anyway, run this script: https://github.com/openmv/openmv/blob/master/scripts/examples/35-Readout-Control/apriltag_trackin...
by kwagyeman
Sat Jul 11, 2020 11:32 pm
Forum: Technical Discussion
Topic: Temperature value of each pixel captured by LEPTON
Replies: 39
Views: 3906

Re: Temperature value of each pixel captured by LEPTON

The result index is 0x4ED0.

Please get the command values from the C code I linked to.
by kwagyeman
Sat Jul 11, 2020 11:31 pm
Forum: Technical Discussion
Topic: Temperature value of each pixel captured by LEPTON
Replies: 39
Views: 3906

Re: Temperature value of each pixel captured by LEPTON

The ROI command should be 0x4ECC.
by kwagyeman
Sat Jul 11, 2020 11:30 pm
Forum: Technical Discussion
Topic: Temperature value of each pixel captured by LEPTON
Replies: 39
Views: 3906

Re: Temperature value of each pixel captured by LEPTON

Oh, the lepton rejected the command then. What lepton module do you have? The command needs to be supported by the module.
by kwagyeman
Sat Jul 11, 2020 12:37 am
Forum: Technical Discussion
Topic: Temperature value of each pixel captured by LEPTON
Replies: 39
Views: 3906

Re: Temperature value of each pixel captured by LEPTON

sensor.ioctl(sensor.IOCTL_LEPTON_SET_ATTRIBUTE

Should have data1 I think instead of 4.
by kwagyeman
Fri Jul 10, 2020 11:16 am
Forum: Technical Discussion
Topic: Temperature value of each pixel captured by LEPTON
Replies: 39
Views: 3906

Re: Temperature value of each pixel captured by LEPTON

Notice how there are so many functions. This is why I did the IOCTLs. Because, it is not possible to do a wrapper for each one.
by kwagyeman
Thu Jul 09, 2020 7:34 pm
Forum: General Topics
Topic: Servo Shield and movement speed
Replies: 5
Views: 147

Re: Servo Shield and movement speed

Oh, I see, you want to do this on the servo shield. No, it is not. If you want to do this then you will probably need to add a timer callback and use the MicroPython schedule method or directly edit the servo position in a timer interrupt. Please read the interrupt section on the MicroPython languag...
by kwagyeman
Thu Jul 09, 2020 4:50 pm
Forum: Technical Discussion
Topic: Add Custom Module to OpenMV firmware
Replies: 13
Views: 279

Re: Add Custom Module to OpenMV firmware

And you flashed the firmware to the camera? the libraries folder gets compiled into the firmware image.
by kwagyeman
Thu Jul 09, 2020 3:33 pm
Forum: General Topics
Topic: firmware update 3.6.4 and TV
Replies: 2
Views: 90

Re: firmware update 3.6.4 and TV

That was an update long ago.

Good.

We have bicubic/bilinear scaling support coming soon. This will make this more useful.
by kwagyeman
Thu Jul 09, 2020 2:00 pm
Forum: Technical Discussion
Topic: FPS problem
Replies: 7
Views: 157

Re: FPS problem

Please post your code inline on the forums.
by kwagyeman
Thu Jul 09, 2020 1:36 pm
Forum: Technical Discussion
Topic: blob count
Replies: 8
Views: 197

Re: blob count

It's because once you take to long and miss the next frame. So, then you halve the speed.

It's like a 1/N thing. When you take less time you are exponentially faster. Once you take too long you loose large chunks of speed.

1/2, then 1/3, then 1/4, etc.
by kwagyeman
Wed Jul 08, 2020 10:45 am
Forum: General Topics
Topic: Shipping
Replies: 1
Views: 69

Re: Shipping

Yes, note that everything but FedEx is really slow right now.
by kwagyeman
Mon Jul 06, 2020 11:06 pm
Forum: Technical Discussion
Topic: Add Custom Module to OpenMV firmware
Replies: 13
Views: 279

Re: Add Custom Module to OpenMV firmware

Ubuntu 16 LTS
by kwagyeman
Mon Jul 06, 2020 11:06 pm
Forum: Technical Discussion
Topic: Temperature value of each pixel captured by LEPTON
Replies: 39
Views: 3906

Re: Temperature value of each pixel captured by LEPTON

You have to read the lepton API and lookup the command for that and determine what struct to pass.

There are a lot of functions in the FLIR Lepton API. The python ioctls I expose allow you to access them all. It was not possible to code a wrapper in python for each one.
by kwagyeman
Mon Jul 06, 2020 2:12 pm
Forum: Technical Discussion
Topic: Add Custom Module to OpenMV firmware
Replies: 13
Views: 279

Re: Add Custom Module to OpenMV firmware

Alternatively, put all your code in the libraries directory and make main.py just execute a library immediately.
by kwagyeman
Mon Jul 06, 2020 2:11 pm
Forum: Technical Discussion
Topic: Add Custom Module to OpenMV firmware
Replies: 13
Views: 279

Re: Add Custom Module to OpenMV firmware

The main.py file is inside of the main.c file under omv/ It's included as a string in the source. However, you could create a C file out of a python file string and then just extern that as the main.py file to link into the main application. This is easier than embedding the python file into the C f...
by kwagyeman
Mon Jul 06, 2020 1:24 pm
Forum: Technical Discussion
Topic: Add Custom Module to OpenMV firmware
Replies: 13
Views: 279

Re: Add Custom Module to OpenMV firmware

Um, just try the steps that it says?

I haven't run the command line script that I posted for building firmware in a while. It may be out of date. My VM I use to compile code has been running for years now.
by kwagyeman
Mon Jul 06, 2020 1:04 pm
Forum: Technical Discussion
Topic: Add Custom Module to OpenMV firmware
Replies: 13
Views: 279

Re: Add Custom Module to OpenMV firmware

Regrading the build instructions. Sounds like you deviated from them... you should follow them exactly. I say what to do using the command line to install tools.
by kwagyeman
Mon Jul 06, 2020 1:03 pm
Forum: Technical Discussion
Topic: Add Custom Module to OpenMV firmware
Replies: 13
Views: 279

Re: Add Custom Module to OpenMV firmware

Hi, if you build the firmware as normal and just drop your .py files in this folder: https://github.com/openmv/openmv/tree/master/scripts/libraries then they will be compiled into the firmware and available for main.py to use. Anything in the libraries directory is frozen and then linked with the ma...
by kwagyeman
Mon Jul 06, 2020 10:18 am
Forum: Technical Discussion
Topic: blob count
Replies: 8
Views: 197

Re: blob count

blob_list = img.find_blobs([thresholds],invert=False,roi=(0,0,50,50),pixels_threshold=200, area_threshold=200, merge=True) blob_count = len(blob_list) if blob_count>1: led.on() else: led.off() for blob in blob_list: img.draw_rectangle(blob.rect()) img.draw_cross(blob.cx(), blob.cy()) Hi, the OpenMV...
by kwagyeman
Sun Jul 05, 2020 6:57 pm
Forum: Project Discussion
Topic: Face Tracking pan tilt
Replies: 5
Views: 311

Re: Face Tracking pan tilt

Yes, P7, P8, P9.
by kwagyeman
Sun Jul 05, 2020 2:12 pm
Forum: General Topics
Topic: Tensorflow lite
Replies: 5
Views: 250

Re: Tensorflow lite

Can you provide the model?
by kwagyeman
Sun Jul 05, 2020 2:08 pm
Forum: Project Discussion
Topic: Face Tracking pan tilt
Replies: 5
Views: 311

Re: Face Tracking pan tilt

Hi, this is a normal request and I will write example code for it. I've bought this pan and tilt system and I'll publish some scripts for controlling such a system. Please give me until the device arrives: https://www.sparkfun.com/products/14391 https://openmv.io/collections/shields/products/pan-and...
by kwagyeman
Sat Jul 04, 2020 11:40 pm
Forum: General Topics
Topic: Saving the image in raspberry pi
Replies: 5
Views: 2675

Re: Saving the image in raspberry pi

https://github.com/openmv/openmv/blob/m ... /README.md

There's an example script there that literally shows the images from the camera.
by kwagyeman
Sat Jul 04, 2020 10:29 am
Forum: Technical Discussion
Topic: blob count
Replies: 8
Views: 197

Re: blob count

find_blobs() Outputs a list. So just do len() on the list.
by kwagyeman
Fri Jul 03, 2020 2:31 pm
Forum: General Topics
Topic: Tensorflow lite
Replies: 5
Views: 250

Re: Tensorflow lite

Hi, the model size it's what matters. Its what stack usage it causes...

Like, for example, Mobilenet is 1.5MB and it runs fine onboard.

Can you provide the code and the model?
by kwagyeman
Fri Jul 03, 2020 11:50 am
Forum: General Topics
Topic: How can I write a websocket server program on openmv?
Replies: 3
Views: 167

Re: How can I write a websocket server program on openmv?

Wait, what do you mean? We support TCP and we sockets are just data over TCP.

We might not have any code to help out doing this except from the lowest level but we should definitely be able to do it.
by kwagyeman
Thu Jul 02, 2020 12:42 pm
Forum: General Topics
Topic: Updating IDE to 2.5.0 on Win 10
Replies: 4
Views: 198

Re: Updating IDE to 2.5.0 on Win 10

Try to execute the add remove programs uninstaller.
by kwagyeman
Thu Jul 02, 2020 12:41 pm
Forum: General Topics
Topic: Updating IDE to 2.5.0 on Win 10
Replies: 4
Views: 198

Re: Updating IDE to 2.5.0 on Win 10

Hi, you should have run the uninstaller for the previous IDE and then installed the new one.
by kwagyeman
Thu Jul 02, 2020 11:27 am
Forum: General Topics
Topic: Tensorflow lite
Replies: 5
Views: 250

Re: Tensorflow lite

That's a hard crash happening. The TensorFlow file is causing a null pointer deference or something can causing the reset vector on the Microcontroller to run. ... How big is your model? We've debugged the code quite a bit and the only issue we cannot directly prevent from happening is a stack overf...
by kwagyeman
Wed Jul 01, 2020 2:47 pm
Forum: Technical Discussion
Topic: Timestamp filenames
Replies: 31
Views: 5090

Re: Timestamp filenames

Hi, we built a new library to do all this:

https://github.com/openmv/openmv/blob/m ... /README.md
by kwagyeman
Wed Jul 01, 2020 2:21 pm
Forum: General Topics
Topic: Updating IDE on Win10
Replies: 2
Views: 111

Re: Updating IDE on Win10

You have to uninstall the old one and install the new one.

This has been an issue forever. I'll need to spend some time with at installer frameworks to figure out how to get it to upgrade the IDE.
by kwagyeman
Wed Jul 01, 2020 2:09 pm
Forum: Technical Discussion
Topic: Timestamp filenames
Replies: 31
Views: 5090

Re: Timestamp filenames

Is OpenMV IDE connected to the camera at the same time? It cannot be to use the VCP port.
by kwagyeman
Wed Jul 01, 2020 1:42 pm
Forum: Technical Discussion
Topic: Timestamp filenames
Replies: 31
Views: 5090

Re: Timestamp filenames

The camera is not named ACM0. Please check your serial ports on the Mac. E.g. do:

ls /dev/tty*

Go to advanced search