Search found 314 matches

by iabdalkader
Mon Aug 21, 2017 11:36 am
Forum: Technical Discussion
Topic: Problems converting Haar Cascade
Replies: 1
Views: 23

Re: Problems converting Haar Cascade

Hi, only Haar cascades are supported. Note some users reported the converter doesn't work on Windows.
by iabdalkader
Sat Aug 19, 2017 12:09 pm
Forum: Technical Discussion
Topic: Local binary pattern computation
Replies: 3
Views: 94

Re: Local binary pattern computation

wayne wrote:
Fri Aug 18, 2017 9:35 pm
Hi, is it possible to access the value of LBP descriptor for other processing instead of using image.match_descriptor(d0, d1)?

Thanks again
No that's not implemented.
by iabdalkader
Fri Aug 18, 2017 8:37 am
Forum: Technical Discussion
Topic: Local binary pattern computation
Replies: 3
Views: 94

Re: Local binary pattern computation

Hi, I'm trying to use local binary pattern (LBP) for image classification problem on OpenMV M4 module. It seems that image.find_lbp computes the local binary pattern but there is no detail about how to use this output. Is there any available information about how to use the output directly and how ...
by iabdalkader
Thu Aug 17, 2017 8:59 pm
Forum: Technical Discussion
Topic: WiFi not working I think?
Replies: 6
Views: 115

Re: WiFi not working I think?

Hi,

If the cam just hangs when running scan.py it means the shields is not responding. You should double check the pins and make sure they're making full contact.
by iabdalkader
Sat Aug 12, 2017 10:17 pm
Forum: General Topics
Topic: OpenMV IDE 1.7.0 / Firmware 2.5.0
Replies: 8
Views: 177

Re: OpenMV IDE 1.7.0 / Firmware 2.5.0

So basically download from the GitHub, extract it to ide firmware folder for mv3 and then let the ide do the work. Got it. EDIT. I overwrote the firmware in the folder and also changed the firmware.txt file to read 2.5.0 but still showed 2.5.0 but I went ahead and uploaded it anyway. Figured it was...
by iabdalkader
Sat Aug 12, 2017 9:15 pm
Forum: General Topics
Topic: OpenMV IDE 1.7.0 / Firmware 2.5.0
Replies: 8
Views: 177

Re: OpenMV IDE 1.7.0 / Firmware 2.5.0

mjs513 wrote:
Sat Aug 12, 2017 9:12 pm
Thanks. But how do I install the firmware from the zip. Didn't see any reference in docs on how to do that. But then again, I probably just missed it. :)
Extract it and upload OPENMV3/firmware.bin using the IDE's bootloader.
by iabdalkader
Sat Aug 12, 2017 8:57 pm
Forum: General Topics
Topic: OpenMV IDE 1.7.0 / Firmware 2.5.0
Replies: 8
Views: 177

Re: OpenMV IDE 1.7.0 / Firmware 2.5.0

Just downloaded IDE 1.7.0 and seems to work fine. When I look at the release notes it says that it is updated for Firmware 2.5.0. However, when look at the bottom of the screen it shows that 2.4.1 is the latest version? Has 2.5.0 been released yet? Yes it's been released, I think the IDE was packag...
by iabdalkader
Tue Aug 08, 2017 12:58 pm
Forum: Technical Discussion
Topic: fps is slow when OpenMV boot from file system
Replies: 17
Views: 781

Re: fps is slow when OpenMV boot from file system

@kidswong999

Please test the attached FW let me know if it fixes the issue.
by iabdalkader
Tue Aug 08, 2017 12:52 pm
Forum: Technical Discussion
Topic: fps is slow when OpenMV boot from file system
Replies: 17
Views: 781

Re: fps is slow when OpenMV boot from file system

Oh, yes, from the file system. Mmm, okay... Ibrahim, do we compress the frame buffer if the camera is attached to the PC but OpenMV IDE isn't connected? Maybe that's the problem? The IDE normally tells the camera to disable the frame buffer. The state is preserved so when you soft-reset the cam the...
by iabdalkader
Tue Aug 08, 2017 7:52 am
Forum: Technical Discussion
Topic: trained haar classifier could not run properly
Replies: 15
Views: 247

Re: trained haar classifier could not run properly

iabdalkader ,Thank you for your kindley support! The issue can't be solved from viewtopic.php?f=6&t=246&p=1969&hilit=short#p1969 . I found the file is HOG or LBP format train by opencv,there can't be convert to cascade file by openmv-cascade.py. How to used there in openmv3 .Thanks! We only support...
by iabdalkader
Mon Aug 07, 2017 3:46 pm
Forum: Technical Discussion
Topic: Image Stream
Replies: 38
Views: 411

Re: Image Stream

Here's a hex dump of "frame buf.txt" looks like you're getting the JPEG header over and over again. 00000000 20 20 20 20 f0 20 20 20 16 07 20 20 6a 70 65 ea | . .. jpe.| 00000010 24 1d 99 5d b3 6d f0 39 aa 7c 82 08 2d 01 c7 7f |$..].m.9.|..-...| 00000020 8e 77 bd c5 5e d1 6f 62 ff 09 5b d9 08 bd bc ...
by iabdalkader
Mon Aug 07, 2017 3:41 pm
Forum: Technical Discussion
Topic: Flipping the camera up-side-down
Replies: 17
Views: 1815

Re: Flipping the camera up-side-down

You could flip and then crop the output (set_windowing), it should have the same effect.
by iabdalkader
Mon Aug 07, 2017 12:53 pm
Forum: Technical Discussion
Topic: fps is slow when OpenMV boot from file system
Replies: 17
Views: 781

Re: fps is slow when OpenMV boot from file system

I'm getting ~90FPS. Tried flash and uSD and both run at 90FPS.
Screenshot from 2017-08-07 18-50-35.png
Screenshot from 2017-08-07 18-50-35.png (4.02 KiB) Viewed 655 times

This is an M7, right ?
by iabdalkader
Mon Aug 07, 2017 9:05 am
Forum: Technical Discussion
Topic: trained haar classifier could not run properly
Replies: 15
Views: 247

Re: trained haar classifier could not run properly

skylin008 wrote:
Sun Aug 06, 2017 9:57 pm
Yes,I used the python 2.7.6 (GCC 4.8.4)
When you use this:

Code: Select all

python openmv-cascade.py cas3.xml
python could be a link to Python3 not 2.7.

So you should try:

Code: Select all

python2.7 openmv-cascade.py cas3.xml
by iabdalkader
Sun Aug 06, 2017 1:29 pm
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 20
Views: 306

Re: Lines Detected Change on successive images

I tried it and it doesn't seem to make any difference, but it shouldn't blank the output so I think you disabled something else. For the future here's how to disable a bit in a reg:

Code: Select all

reg = sensor.__read_reg(addr)
sensor.__write_reg(addr, reg&mask)
by iabdalkader
Sat Aug 05, 2017 9:44 pm
Forum: Technical Discussion
Topic: Lines Detected Change on successive images
Replies: 20
Views: 306

Re: Lines Detected Change on successive images

Could you try disabling fast AGC/AEC (see COM8) ?
by iabdalkader
Fri Aug 04, 2017 2:41 pm
Forum: Technical Discussion
Topic: Image Stream
Replies: 38
Views: 411

Re: Image Stream

Even if the driver is dropping bytes, the data won't be the same . I'm interested in a hexdump maybe it will give us a clue to what the cam is sending.

Update:
Or maybe you're getting the header (which should be the same) anyway a hex dump will help a lot.
by iabdalkader
Fri Aug 04, 2017 9:46 am
Forum: Technical Discussion
Topic: Image Stream
Replies: 38
Views: 411

Re: Image Stream

Can you attach the data you get ?
by iabdalkader
Fri Aug 04, 2017 9:10 am
Forum: Technical Discussion
Topic: trained haar classifier could not run properly
Replies: 15
Views: 247

Re: trained haar classifier could not run properly

Hi,

That's great! I'm not sure why the output is different on Windows, but the script will eventually be implemented in the IDE. Thanks for testing the camera and let me know if you find other issues.
by iabdalkader
Thu Aug 03, 2017 9:25 pm
Forum: Technical Discussion
Topic: USB_VCP issues
Replies: 4
Views: 102

Re: USB_VCP issues

Hi,

Do you run this code while connected to the IDE ? If so you should try to place the second script in main.py and safe remove the device, reset the cam and it will run that code.
by iabdalkader
Thu Aug 03, 2017 9:19 pm
Forum: Technical Discussion
Topic: trained haar classifier could not run properly
Replies: 15
Views: 247

Re: trained haar classifier could not run properly

Hi, The unaligned read issue was fixed in the dev firmware. It's an issue related to FatFs internal buffers, that causes the SD card code to fall back to non-DMA mode when the read/write buffer is unaligned. So it's just slower to read/write but it shouldn't be the problem (you can avoid it for now ...
by iabdalkader
Thu Aug 03, 2017 8:53 pm
Forum: Technical Discussion
Topic: Image Stream
Replies: 38
Views: 411

Re: Image Stream

Thank´s but due to a deadline I´ll stick to my working code. I can get my head around a smarter alternative if there´s time at the end of the project. Hi, the Python script is outdated. The camera only sends JPEG images now, which is what you need, right ? Update: Although the script is outdated, I...
by iabdalkader
Thu Aug 03, 2017 8:47 pm
Forum: Project Discussion
Topic: CAN communication between OPenMV M7 and AT90CAN128 (Atmel family)
Replies: 3
Views: 178

Re: CAN communication between OPenMV M7 and AT90CAN128 (Atmel family)

Yes CAN was enabled in 2.2, never tested though. We don't have examples but you can use MicroPython's examples.
by iabdalkader
Thu Aug 03, 2017 8:45 pm
Forum: Technical Discussion
Topic: Measuring distance between objects in an image
Replies: 6
Views: 164

Re: Measuring distance between objects in an image

If you use the camera matrix (intrinsic and extrinsic stuff) you should be able to make pixels to real world. I can't help with the math though you'll have to figure it out.
by iabdalkader
Wed Aug 02, 2017 8:02 am
Forum: Project Discussion
Topic: Analog video out for VTX...
Replies: 1
Views: 62

Re: Analog video out for VTX...

No it's not implemented, but the DAC is broken out if you want to try.
by iabdalkader
Sun Jul 30, 2017 7:10 pm
Forum: Technical Discussion
Topic: Communication issue between openmv cam m7 and arduino board
Replies: 6
Views: 205

Re: Communication issue between openmv cam m7 and arduino board

Thanks for the help, the issue has been resolved. On a side note, I've been testing the eye tracking capabilities of the camera and encountered a problem with the output of the program. The program included these 2 lines: uart.write("!EYE x:%d, y:%d, w:%d, h:%d" % e) uart.write("!IRIS x:%d, y:%d" %...
by iabdalkader
Wed Jul 19, 2017 9:52 am
Forum: Technical Discussion
Topic: Controlling brushed motors with PWM
Replies: 9
Views: 220

Re: Controlling brushed motors with PWM

Hi,

I tested your code with no changes (only added a loop after the code) it generates ~488MHz on pin P7 and P8 is high, and P9 is low:
wave.png
wave.png (88.96 KiB) Viewed 179 times
I don't have a motor to test, but it seems the cam is doing exactly what you want.
by iabdalkader
Tue Jul 18, 2017 6:48 pm
Forum: Technical Discussion
Topic: Display Unmodified Image after Edge Detection ...
Replies: 2
Views: 80

Re: Display Unmodified Image after Edge Detection ...

Some functions modify the original image because there's not enough memory to make a copy. Unfortunately there's no way around this (for some functions). If the image is really small you can make a copy on the heap first using image.copy(), or you could save the image to disk.
by iabdalkader
Tue Jul 18, 2017 1:10 pm
Forum: Technical Discussion
Topic: Controlling brushed motors with PWM
Replies: 9
Views: 220

Re: Controlling brushed motors with PWM

Hi, yes I'll debug this and get back to you.
by iabdalkader
Fri Jul 14, 2017 7:15 pm
Forum: General Topics
Topic: send frames to PC
Replies: 5
Views: 176

Re: send frames to PC

Thanks for the very fast reply! I looked at the openmv.py code. Not sure I understand it all but will give it a try. It looks like the code converts monochrome images (HxW) in the frame buffer to RGB format (HxWx3). I suppose that could be simplified if all I need is an array of monochrome values. ...
by iabdalkader
Fri Jul 14, 2017 7:08 pm
Forum: Technical Discussion
Topic: img.difference an ROI?
Replies: 2
Views: 104

Re: img.difference an ROI?

You should open an issue on github (will tag it as a feature request) and it will get implemented eventually.
by iabdalkader
Wed Jul 12, 2017 11:08 am
Forum: General Topics
Topic: openmv-cascade.py for new OpenCV XML format ?
Replies: 5
Views: 637

Re: openmv-cascade.py for new OpenCV XML format ?

Apparently they misjudged the situation, I fixed the importer to work with the new Haar XML format :) Its been merged into the github master for OpenMV. This is true, the new format is now supported thanks to Normen :) I should also mention that I fixed 2 bugs related to Haar in the current FW in c...
by iabdalkader
Tue Jul 11, 2017 9:26 pm
Forum: Technical Discussion
Topic: Non Rectangular ROI - Motion Detection
Replies: 2
Views: 98

Re: Non Rectangular ROI - Motion Detection

There's an undocumented mask_ellipse() function but it's fixed (you can't change the size of the ellipse) and only works on grayscale. And'ing with another image is much more flexible, but it will be slower (unless loaded in memory).
by iabdalkader
Fri Jul 07, 2017 10:31 pm
Forum: Technical Discussion
Topic: Tracking April Tags on Cam M4
Replies: 7
Views: 223

Re: Tracking April Tags on Cam M4

I got AprilTags working on M4 before, you'll need to disable something to enable AprilTags on M4... If you don't need color tracking you can set lab_table to 0 length in src/omv/img/lab_tab.c const int8_t lab_table[] = {}; Note this will break other features as well. Then you just need to add this t...
by iabdalkader
Thu Jul 06, 2017 7:48 am
Forum: Technical Discussion
Topic: C stdout to OpenMV ide serial port?
Replies: 13
Views: 284

Re: C stdout to OpenMV ide serial port?

Sorry, the #define double float line was never commented out in my code. I commented out the #define printf(format, ...) line but that was it. In my post from a few minutes ago I commented out the printf and the "double float' defines. Yes I understand. I meant this line is the main problem: #defin...
by iabdalkader
Wed Jul 05, 2017 4:22 pm
Forum: Technical Discussion
Topic: C stdout to OpenMV ide serial port?
Replies: 13
Views: 284

Re: C stdout to OpenMV ide serial port?

Okay I see the problem:

Code: Select all

#define double float
Don't comment that.
by iabdalkader
Wed Jul 05, 2017 4:09 pm
Forum: Technical Discussion
Topic: C stdout to OpenMV ide serial port?
Replies: 13
Views: 284

Re: C stdout to OpenMV ide serial port?

airborne wrote:
Wed Jul 05, 2017 3:24 pm
inverse). It always gives me that same double conversion error (which should really just be a warning).
Hi, the float gets converted to double implicitly when calling printf, you just need to convert to double explicitly (Cast):

Code: Select all

printf("%f", (double) dummy);
by iabdalkader
Wed Jul 05, 2017 11:57 am
Forum: Technical Discussion
Topic: openmv3 can be support SVM
Replies: 4
Views: 343

Re: openmv3 can be support SVM

skylin008 wrote:
Tue Jul 04, 2017 3:24 am
Hello iabdalkader,pls when time the SVM function for human detection can be include?Thank you !
I'm really busy right now writing tests for OpenMV and updating MicroPython, so it's going to take some time.
by iabdalkader
Wed Jun 28, 2017 5:19 pm
Forum: Technical Discussion
Topic: heliostat project
Replies: 48
Views: 2785

Re: heliostat project

yeah now I have now, thanks! the code works now, but is it possible that the sensor setup takes longer with the new firmware? I had to put the servo standard setup in the beginning of my code because It took too long before the servo crtl kicked in (and one of the servo is moving spontaneously when...
by iabdalkader
Tue Jun 27, 2017 11:45 pm
Forum: Technical Discussion
Topic: color_drawing.py and error with img.width()/2
Replies: 5
Views: 166

Re: color_drawing.py and error with img.width()/2

Hi, You convert width to float by multiplying by 0.5 width = img.width()*.5 And then you pass it to a function that expects an int: img.draw_line([0,0,width,img.height()]) Any ideas why that the snippet 'img.width()/2' works in the example but not in this code? I don't see any img.width()/2 in your ...
by iabdalkader
Tue Jun 27, 2017 11:37 pm
Forum: Technical Discussion
Topic: Firmware OPENMV2 vs OPENMV3
Replies: 3
Views: 200

Re: Firmware OPENMV2 vs OPENMV3

Hi, make sure you're using the same toolchain we're using right now, that's gcc version 6.2.1 20161205
by iabdalkader
Tue Jun 27, 2017 11:33 pm
Forum: Technical Discussion
Topic: haarCascade file Crashed
Replies: 3
Views: 171

Re: haarCascade file Crashed

when used the attach the cascade file(the .rar file include the .xml file) ,the openmv3 be crashed ,How solve this issue.Thanhaardata2.rark you for kindly support. I re-generated the cascade and it works. Noticed that it's different from the one you generated, not sure how you're generating your ca...
by iabdalkader
Tue Jun 27, 2017 11:15 pm
Forum: Technical Discussion
Topic: haarCascade file Crashed
Replies: 3
Views: 171

Re: haarCascade file Crashed

by iabdalkader
Mon Jun 26, 2017 12:44 am
Forum: General Topics
Topic: OV2640 and simple streaming
Replies: 11
Views: 416

Re: OV2640 and simple streaming

Hi,

The cam can record VGA at 10FPS if you use a fast uSD.
by iabdalkader
Mon Jun 26, 2017 12:38 am
Forum: Technical Discussion
Topic: color_drawing.py and error with img.width()/2
Replies: 5
Views: 166

Re: color_drawing.py and error with img.width()/2

or use double "/"

Code: Select all

img.width()//2
by iabdalkader
Thu Jun 22, 2017 8:17 am
Forum: General Topics
Topic: LED all colors blinking after program stops
Replies: 5
Views: 297

Re: LED all colors blinking after program stops

desireentz wrote:
Wed Jun 21, 2017 8:23 am
I am using the latest firmware version 2.3.0 .
Actually the latest is 2.4.1

https://github.com/openmv/openmv/releases/latest
by iabdalkader
Fri Jun 16, 2017 5:56 pm
Forum: Technical Discussion
Topic: HOG.py example gives RuntimeError: Sensor Timeout!!
Replies: 2
Views: 160

Re: HOG.py example gives RuntimeError: Sensor Timeout!!

I copied the Histogram of Oriented Gradients (HoG) Example (hog.py) code in to the IDE and received a "RuntimeError: Sensor Timeout!!" error. I am able to run different code through the IDE mostly fine (I'm receiving a strange error on the crazy_drawing.py example code where an error is thrown when...
by iabdalkader
Thu Jun 15, 2017 10:01 pm
Forum: Technical Discussion
Topic: open other images for analysis
Replies: 6
Views: 331

Re: open other images for analysis

kwagyeman wrote:
Thu Jun 15, 2017 9:14 pm
BMP support is either 24 bit RGB, 16 bit rgb565, or 8 bit grayscale.
Tried RGB565 with GIMP it didn't work, but maybe I needed to disable color info too.

Go to advanced search