Search found 3808 matches

by kwagyeman
Mon Mar 30, 2020 5:50 pm
Forum: Project Discussion
Topic: OpenMV based visul sorter
Replies: 3
Views: 98

Re: OpenMV based visul sorter

I see. So, you should mock up a system with the camera and see if you can resolve good picture quality with how you want to mount it. Please find the right optics that work for you. Once you can get good images you can then work on the vision code part. If you can't get good images first then there'...
by kwagyeman
Mon Mar 30, 2020 5:47 pm
Forum: Technical Discussion
Topic: image
Replies: 11
Views: 254

Re: image

Doesn't really matter unless you plan to fill it up. Please avoid over 32 GB as the camera doesn't do SDXC.
by kwagyeman
Mon Mar 30, 2020 12:10 pm
Forum: General Topics
Topic: Moving camera background correction
Replies: 1
Views: 60

Re: Moving camera background correction

Hi, the img returned from the snapshot and get_fb() are the same... So, in your code you are taking the current image and subtracting the last one and then saving the difference image to the extra fb which was not what you were trying to do. Instead, do snapshot, then apply the difference to the ext...
by kwagyeman
Mon Mar 30, 2020 3:02 am
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 5
Views: 335

Re: Can't use Tensorflow-Lite for OpenMV

https://github.com/openmv/openmv/wiki

Probably next week for a new release.
by kwagyeman
Mon Mar 30, 2020 2:31 am
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 5
Views: 335

Re: Can't use Tensorflow-Lite for OpenMV

This literally means that TensorFlow Lite from Google doesn't support that opcode yet. That said, Google might have added support for it. https://github.com/openmv/tensorflow/blob/openmv/tensorflow/lite/micro/kernels/all_ops_resolver.cc It looks like the latest unreleased code has support for that o...
by kwagyeman
Sun Mar 29, 2020 7:38 pm
Forum: Technical Discussion
Topic: image
Replies: 11
Views: 254

Re: image

Connect to the camera first.
by kwagyeman
Sun Mar 29, 2020 6:23 pm
Forum: Project Discussion
Topic: OpenMV based visul sorter
Replies: 3
Views: 98

Re: OpenMV based visul sorter

Hi, the thing that will work the best if you can attach apriltags or qrcodes to the productions and then sort using these. They are much easier for machine vision cameras to detect. If you switch to using those then the main problems you will encounter will be related to optics. Focusing on such sma...
by kwagyeman
Sun Mar 29, 2020 6:19 pm
Forum: Technical Discussion
Topic: image
Replies: 11
Views: 254

Re: image

It will run at startup. Main.py runs at startup. The blinking blue light is a main.py script on the camera when it's fresh.
by kwagyeman
Sun Mar 29, 2020 2:44 pm
Forum: Technical Discussion
Topic: image
Replies: 11
Views: 254

Re: image

Tools->Save Script to OpenMV Cam.
by kwagyeman
Thu Mar 26, 2020 9:31 pm
Forum: Technical Discussion
Topic: image
Replies: 11
Views: 254

Re: image

Hi, do sensor.flush(). When you call snapshot() it flushed the frame buffer by jpeg compressing it and then putting that in a jpeg buffer the IDE can pull later asynchronously. Then snapshot grabs the next image from the camera. Flush just does the first part above. Note that the IDE still grabs the...
by kwagyeman
Thu Mar 26, 2020 7:36 pm
Forum: Technical Discussion
Topic: Template Matching - Implementation
Replies: 5
Views: 186

Re: Template Matching - Implementation

Super. That said, I can't say when I will get to it.
by kwagyeman
Thu Mar 26, 2020 5:00 pm
Forum: Technical Discussion
Topic: Template Matching - Implementation
Replies: 5
Views: 186

Re: Template Matching - Implementation

https://github.com/openmv/openmv/issues

This helps us track stuff. That said, it can literally sit there forever unless you bug me to do it repeatedly. I'm basically a fire fighter. No squeaking, no oil ;)
by kwagyeman
Thu Mar 26, 2020 4:59 pm
Forum: Technical Discussion
Topic: Smoked it
Replies: 5
Views: 500

Re: Smoked it

Try DFU mode?

You might have given the 5V USB input 12V however which would damage the main CPU.
by kwagyeman
Thu Mar 26, 2020 1:32 pm
Forum: Technical Discussion
Topic: Temperature value of each pixel captured by LEPTON
Replies: 10
Views: 1408

Re: Temperature value of each pixel captured by LEPTON

Yes, I would open a file in python. Just use standard python code to open a text file and write out the file name and the temperature scale you used to that text file log. You can open the file in append mode so that you just append to it.
by kwagyeman
Thu Mar 26, 2020 12:30 pm
Forum: Technical Discussion
Topic: Something like chkdsk for SdCard in python ?
Replies: 4
Views: 158

Re: Something like chkdsk for SdCard in python ?

Jpg compression is already pretty high... what do you need to compress?
by kwagyeman
Thu Mar 26, 2020 10:37 am
Forum: Technical Discussion
Topic: Template Matching - Implementation
Replies: 5
Views: 186

Re: Template Matching - Implementation

Hi, template matching hasn't been worked on in a while. It could use a lot of improvements. The code isn't a lot and we have a performance optimizer on staff right now. I'm doing OpenMV IDE updates currently... but, if you place a feature request to improve template matching on the forums we can opt...
by kwagyeman
Wed Mar 25, 2020 11:23 pm
Forum: General Topics
Topic: Count the white pixels on image
Replies: 5
Views: 763

Re: Count the white pixels on image

Please see the color tracking examples. Color tracking is done in the LAB color space. Tracking is done by thresholding the image with min/maxes for the 3 LAB color channels. This means you need to pass a 6-tuple value to methods to track colors.

The color tracking examples explain this.
by kwagyeman
Wed Mar 25, 2020 11:21 pm
Forum: Technical Discussion
Topic: Memory Error, out of fast Frame Buffer Stack - H7
Replies: 7
Views: 550

Re: Memory Error, out of fast Frame Buffer Stack - H7

Did you clone the repo correctly? If you pulled the latest tensorflow then I have no idea. Things break constantly upstream. You should just clone the repo and init submodules and then it should build okay.

Also, try compiling more than once. TensorFlow fails to build the first time sometimes.
by kwagyeman
Tue Mar 24, 2020 12:11 pm
Forum: Technical Discussion
Topic: Calculating distance between an Apriltag and Openmv
Replies: 1
Views: 75

Re: Calculating distance between an Apriltag and Openmv

The Apriltags tells you the distance to it. See the x/y/z_translation() methods on the tag object. As mentioned in the documentation the units are returned without much meaning. If you want them to mean something you have to use the Apriltags 6dof 3d tag example I'm the IDE which explains how you pa...
by kwagyeman
Sun Mar 22, 2020 8:38 pm
Forum: Technical Discussion
Topic: UART automatic baud rate detection
Replies: 4
Views: 219

Re: UART automatic baud rate detection

Thanks for posting!
by kwagyeman
Sun Mar 22, 2020 11:12 am
Forum: Project Discussion
Topic: Multiple Cameras Triangulation
Replies: 3
Views: 203

Re: Multiple Cameras Triangulation

Hi, just print the blob you are tracking with print(). Then I'm Matlab open the serial port of each OpenMV Cam and you will see that print data coming out the serial port.

You just need to save the script to the camera once you've finished it in OpenMV IDE.
by kwagyeman
Sat Mar 21, 2020 7:14 pm
Forum: Technical Discussion
Topic: New to OPENMV, How far away do I place my CAM?
Replies: 2
Views: 167

Re: New to OPENMV, How far away do I place my CAM?

Hi, see this: https://www.edmundoptics.com/knowledge- ... d-of-view/

Then for the camera sensor size see the OV7725 data sheet and see the OpenMV Cam H7 product page for the lens focal length.
by kwagyeman
Fri Mar 20, 2020 1:58 pm
Forum: Technical Discussion
Topic: Connect another CMOS global shutter matrix to OpenMV H7
Replies: 6
Views: 324

Re: Connect another CMOS global shutter matrix to OpenMV H7

RSVD1...RSVD5 are for future MIPI cameras.
by kwagyeman
Fri Mar 20, 2020 1:58 pm
Forum: Technical Discussion
Topic: UART automatic baud rate detection
Replies: 4
Views: 219

Re: UART automatic baud rate detection

Hi, you can use the stm module to access registers and memory directly in MicroPython. This will allow you to turn on this feature in the ST HAL. That said, its literally going to involve you manually accessing memory addresses and read/writing register bits.
by kwagyeman
Fri Mar 20, 2020 1:56 pm
Forum: Project Discussion
Topic: a laser detection project i need help with
Replies: 9
Views: 1037

Re: a laser detection project i need help with

Hi, you have to code up filtering algorithms now. 1st: To track just the laser spot you need to filter blobs that don't match your expected size. For example, print out the attributes (just do print(blob)) of the blob that's the laser spot and then reject blobs that aren't near the same parameters. ...
by kwagyeman
Thu Mar 19, 2020 12:18 pm
Forum: Project Discussion
Topic: a laser detection project i need help with
Replies: 9
Views: 1037

Re: a laser detection project i need help with

What's the particular problem? The laser spit is not detected all the time? If so, you have to widen your thresholds. If this makes it hard to detect the laser only then you have to try more advanced image processing than only just color tracking. Can you give an example image of the scene?
by kwagyeman
Thu Mar 19, 2020 12:16 pm
Forum: General Topics
Topic: how use python code read video, not use openide
Replies: 7
Views: 914

Re: how use python code read video, not use openide

Hi, this is an Ibrahim question. Note that the UVC firmware isn't really that supported. We did it because a customer thought it would be a cool idea. However, UVC doesn't have a JPEG stream option so it's hard to send lots of data over USB with it.
by kwagyeman
Tue Mar 17, 2020 12:28 pm
Forum: Technical Discussion
Topic: Memory Error, out of fast Frame Buffer Stack - H7
Replies: 7
Views: 550

Re: Memory Error, out of fast Frame Buffer Stack - H7

Hi, you need to install the latest firmware to run that model. Which... might not have been released yet. If you can compile the firmware for the H7 and install it you should be good to go. https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/micro/kernels/all_ops_resolver.cc#L21 We ...
by kwagyeman
Mon Mar 16, 2020 10:04 pm
Forum: Technical Discussion
Topic: Memory Error, out of fast Frame Buffer Stack - H7
Replies: 7
Views: 550

Re: Memory Error, out of fast Frame Buffer Stack - H7

It doesn't even work on the H7 Plus anymore. Google broke Mobilenet support with their recent updates to TensorFlow. We are waiting for a fix.
by kwagyeman
Sun Mar 15, 2020 6:36 pm
Forum: Technical Discussion
Topic: Can we do solvePnP on OpenMV?
Replies: 1
Views: 326

Re: Can we do solvePnP on OpenMV?

We spit out the tag x/y/z translation from the camera along with the rotation. Please use these values to get where the camera is.
by kwagyeman
Sun Mar 15, 2020 12:35 pm
Forum: Technical Discussion
Topic: How to covert image data to string
Replies: 1
Views: 302

Re: How to covert image data to string

compress() on the image. It's then a jpg byte string. If you want the image in a string with an rgb value per byte you can manually write python code to access each pixel and spit out text.
by kwagyeman
Sat Mar 14, 2020 5:21 pm
Forum: Project Discussion
Topic: Display Splitting
Replies: 1
Views: 294

Re: Display Splitting

Hi, you should just crop the image afterwards using the crop method. Alternatively, use the set_windowing() method in the firmware to limit the image window.
by kwagyeman
Sat Mar 14, 2020 2:12 pm
Forum: Technical Discussion
Topic: Couple questions about the H7
Replies: 23
Views: 1192

Re: Couple questions about the H7

The code on the PC side to read data doesn't have any concept of data framing. It just grabs whatever data has been received and then processes that. Which means you have no idea how many packets you grabbed in one go and etc. So, when you are trying to parse the data you have no idea what's at the ...
by kwagyeman
Sat Mar 14, 2020 12:24 pm
Forum: Project Discussion
Topic: a laser detection project i need help with
Replies: 9
Views: 1037

Re: a laser detection project i need help with

Hi, you can use the Threshold Editor under tools -> Machine vision to get the lab color thresholds of an object.
by kwagyeman
Sat Mar 14, 2020 12:23 pm
Forum: General Topics
Topic: How to mirror horizontally the image from the MLX90640 sensor?
Replies: 5
Views: 893

Re: How to mirror horizontally the image from the MLX90640 sensor?

You'd want to use the rotation correction algorithm to change the image and then combine it with the image captured in the main frame buffer. Basically, do snapshot () with the mlx, then rotation correction(), then snapshot of the main camera, then draw with alpha blending the thermal image on the r...
by kwagyeman
Sat Mar 14, 2020 12:19 pm
Forum: Technical Discussion
Topic: Couple questions about the H7
Replies: 23
Views: 1192

Re: Couple questions about the H7

If you are getting weird bugs like that it's a programming error on the camera. The last user who had an issue like that was referencing objects that had gone out of scope and we're being garbage collected. I noticed you just do a general read all command on the PC side which isn't really the most r...
by kwagyeman
Sat Mar 14, 2020 11:42 am
Forum: Technical Discussion
Topic: Couple questions about the H7
Replies: 23
Views: 1192

Re: Couple questions about the H7

Sending via json is the best method. Note that the str() representation of all OpenMV objects is valid json. You should just send json output and then decide that received json in the other program.
by kwagyeman
Fri Mar 13, 2020 12:58 pm
Forum: Technical Discussion
Topic: Problem with Focus
Replies: 3
Views: 498

Re: Problem with Focus

Hi, the lens holder being tight is a know issue on some cameras. We would normally ship a new lens mount to you but things are shutdown from the virus right now.

You can buy a replacement here: https://www.amazon.com/uxcell-Mount-Hol ... B00R1J42T8
by kwagyeman
Fri Mar 13, 2020 12:56 pm
Forum: General Topics
Topic: TFT LCD Screen module
Replies: 6
Views: 11416

Re: TFT LCD Screen module

Thanks for the library!
by kwagyeman
Fri Mar 13, 2020 11:01 am
Forum: General Topics
Topic: H7 Plus Lens question.
Replies: 1
Views: 413

Re: H7 Plus Lens question.

It's the same 2.8mm lens.
by kwagyeman
Tue Mar 10, 2020 4:06 pm
Forum: Technical Discussion
Topic: Interface Library Discussion
Replies: 11
Views: 1379

Re: Interface Library Discussion

Hi, aim almost to working on this. I have some other things involving drivers to finish up first but I expect to begin in the last two weeks of March.
by kwagyeman
Tue Mar 10, 2020 12:14 am
Forum: Technical Discussion
Topic: Bilinear or Bicubic Interpolation?
Replies: 2
Views: 503

Re: Bilinear or Bicubic Interpolation?

I never had time to do any interpolation. I was thinking about doing it... but, it's not so simple to code and requires a lot more CPU time to do.

If you wanted to contribute some code for this that would make the feature come a lot faster.
by kwagyeman
Tue Mar 10, 2020 12:13 am
Forum: Technical Discussion
Topic: Number Recognition? Is it possible?
Replies: 6
Views: 3429

Re: Number Recognition? Is it possible?

Unless our code has changes the chars74k network we package with the IDE should still work. See the example under machine learning.
by kwagyeman
Tue Mar 10, 2020 12:12 am
Forum: Technical Discussion
Topic: Lepton camera image overlap
Replies: 1
Views: 377

Re: Lepton camera image overlap

Hi, I've only seen that when your shutter on your lepton sensor is broken. When the sensor does flat field correction FFC it closes the shutter, calculates the default temperature array the sensor sees, and then opens the shutter and subtracts that from the current image. Please check that the shutt...
by kwagyeman
Sun Mar 08, 2020 6:16 pm
Forum: Technical Discussion
Topic: OpenMV doesnt recognise my CAM H7
Replies: 9
Views: 871

Re: OpenMV doesnt recognise my CAM H7

We use an ST DFU tool which might be outdated now that ST switched to a different DFU tool. We will have a new version of the IDE come out with new DFU support using another program.
by kwagyeman
Sun Mar 08, 2020 6:14 pm
Forum: Technical Discussion
Topic: OpenMV doesnt recognise my CAM H7
Replies: 9
Views: 871

Re: OpenMV doesnt recognise my CAM H7

Okay, it should be recoverable. DFU might just not detect the camera... Sigh...

Download this program here: https://www.st.com/en/development-tools ... eprog.html

The install the attached file (unzip first)
by kwagyeman
Sat Mar 07, 2020 6:03 pm
Forum: Project Discussion
Topic: Project advice
Replies: 3
Views: 555

Re: Project advice

Ah, well, we have a person detection CNN onboard but... It would just trigger like the motion detector except only on people. If you want to track a persons movement that is harder.

I don't think we have what you need. You could use our system to hack together something that kinda of works however.

Go to advanced search