Search found 392 matches

by iabdalkader
Tue Jan 16, 2018 2:44 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 16
Views: 3341

Re: implement own Haar-Cascade

Hi, it seems the cascade tool only works on Linux.
by iabdalkader
Sat Jan 13, 2018 11:55 am
Forum: Technical Discussion
Topic: pixel value
Replies: 7
Views: 101

Re: pixel value

I will add it to the next release.
by iabdalkader
Fri Jan 12, 2018 1:23 pm
Forum: Technical Discussion
Topic: find template
Replies: 9
Views: 147

Re: find template

Hi, I can reproduce this bug, will look into it and get back to you.
by iabdalkader
Thu Jan 11, 2018 10:25 pm
Forum: Technical Discussion
Topic: pixel value
Replies: 7
Views: 101

Re: pixel value

If you just want the red value of every pixel then yes. RGB is interpolated from bayer but it's not exactly the "raw" value.
by iabdalkader
Tue Jan 09, 2018 8:58 pm
Forum: Technical Discussion
Topic: pixel value
Replies: 7
Views: 101

Re: pixel value

Hi, that's actually not supported. I didn't think anyone would be interested in bayer, will add it to the next release.
by iabdalkader
Tue Jan 09, 2018 2:54 pm
Forum: Technical Discussion
Topic: CAN CUMMUNICATION OSERROR:16
Replies: 2
Views: 69

Re: CAN CUMMUNICATION OSERROR:16

I'm not sure either, I don't have the hardware to test CAN. OSError 16 is "Device or resource busy" I found this on MP forums:
https://forum.micropython.org/viewtopic.php?t=1923
by iabdalkader
Fri Jan 05, 2018 5:41 pm
Forum: Technical Discussion
Topic: Runtime error: sensor timeout!
Replies: 1
Views: 48

Re: Runtime error: sensor timeout!

Hi, you need to call sensor.reset() and set the frame size and format before doing anything else. See the helloworld.py example.
by iabdalkader
Fri Jan 05, 2018 5:33 pm
Forum: Technical Discussion
Topic: Waking from pyb.stop() ?
Replies: 7
Views: 171

Re: Waking from pyb.stop() ?

Hi, I'm happy to report that both stop mode and deepsleep mode are fixed and will be available in the next release (2.7). You can always test the development firmware if don't want to wait (you'll also find two new low-power example scripts in the repo).
by iabdalkader
Fri Jan 05, 2018 5:30 pm
Forum: Technical Discussion
Topic: [MQTT] Using micropython lib: usocket.getaddrinfo
Replies: 7
Views: 183

Re: [MQTT] Using micropython lib: usocket.getaddrinfo

Hi, I'm happy to report that getaddrinfo is now fixed (it was just a timeout). The fix will be available in the next release as well as an MQTT example.
by iabdalkader
Thu Dec 21, 2017 2:15 pm
Forum: Technical Discussion
Topic: keypoint list?
Replies: 6
Views: 158

Re: keypoint list?

Hi, this is now implemented in the development firmware. The keypoints match object has a list of matching keypoints indices (a list of tuples) you can use to subscript keypoints arrays. For example: for m in match.match(): print(kpts1[m[0]], kpts2[m[1]]) The keypoint is a tuple of (x, y, score, oct...
by iabdalkader
Wed Dec 20, 2017 3:16 pm
Forum: General Topics
Topic: realtime camera frame without IDE
Replies: 8
Views: 241

Re: realtime camera frame without IDE

I get about 80FPS not sure why it's slow on your machine. You shouldn't run this on VM if you are.
by iabdalkader
Wed Dec 20, 2017 10:09 am
Forum: General Topics
Topic: realtime camera frame without IDE
Replies: 8
Views: 241

Re: realtime camera frame without IDE

Hi, please use the latest script from the repo:

https://raw.githubusercontent.com/openm ... enmv-fb.py

And run it using Python2
by iabdalkader
Fri Dec 15, 2017 8:13 am
Forum: Technical Discussion
Topic: Create image from feature
Replies: 3
Views: 124

Re: Create image from feature

by iabdalkader
Thu Dec 14, 2017 8:11 pm
Forum: Technical Discussion
Topic: Create image from feature
Replies: 3
Views: 124

Re: Create image from feature

Do you want to save the cropped image to file ?
by iabdalkader
Thu Dec 14, 2017 11:22 am
Forum: Technical Discussion
Topic: [MQTT] Using micropython lib: usocket.getaddrinfo
Replies: 7
Views: 183

Re: [MQTT] Using micropython lib: usocket.getaddrinfo

Hi, please try the attached script.
by iabdalkader
Wed Dec 13, 2017 1:57 pm
Forum: Technical Discussion
Topic: [MQTT] Using micropython lib: usocket.getaddrinfo
Replies: 7
Views: 183

Re: [MQTT] Using micropython lib: usocket.getaddrinfo

No, but it should be just like normal Python code, there's also a GET example in the WiFi shield examples. If you tell me how to test the MQTT library I can help debug it (server name? what happens, what should happen etc..)
by iabdalkader
Tue Dec 12, 2017 8:07 pm
Forum: General Topics
Topic: face_recognition.py example not working
Replies: 4
Views: 158

Re: face_recognition.py example not working

Hi, please follow the instructions in the comments: # Before running the example: # 1) Download the AT&T faces database http://www.cl.cam.ac.uk/Research/DTG/attarchive/pub/data/att_faces.zip # 2) Exract and copy the orl_faces directory to the SD card root. Note this is very very simple face recognit...
by iabdalkader
Tue Dec 12, 2017 7:59 pm
Forum: Technical Discussion
Topic: [MQTT] Using micropython lib: usocket.getaddrinfo
Replies: 7
Views: 183

Re: [MQTT] Using micropython lib: usocket.getaddrinfo

Hi, getaddrinfo() resolves a hostname to an ip using the DNS server, for example: addr = usocket.getaddrinfo("www.google.com", 80)[0][4] # Create a new socket and connect to addr s = usocket.socket(usocket.AF_INET, usocket.SOCK_STREAM) s.connect(addr) Sometimes it doesn't work and throws an exceptio...
by iabdalkader
Tue Dec 12, 2017 7:34 pm
Forum: Technical Discussion
Topic: Import micropython-lib
Replies: 5
Views: 155

Re: Import micropython-lib

That's because there's no libc to load, there are no FDs and there's only a single process running anyway. The camera runs baremetal (it's Not Unix/Linux based).
Screenshot from 2017-12-13 02-22-40.png
Screenshot from 2017-12-13 02-22-40.png (64.56 KiB) Viewed 130 times
by iabdalkader
Tue Dec 12, 2017 7:20 pm
Forum: Project Discussion
Topic: Recognize circles of a given color
Replies: 2
Views: 151

Re: Recognize circles of a given color

Hi, you could check the color at the circle center if it's a filled circle, or check the pixels on the circle's circumference if it's empty. For example: # For filled circle: r,g,b = img.get_pixel(c.x(), c.y()) if r > 200 and g < 25 and b < 25: print("red circle") # For empty circle (you may want to...
by iabdalkader
Tue Dec 12, 2017 7:08 pm
Forum: General Topics
Topic: lovely openmv-fb.py and openmv.py won't run
Replies: 3
Views: 160

Re: lovely openmv-fb.py and openmv.py won't run

Hi, I fixed it for you
https://github.com/openmv/openmv/blob/m ... enmv-fb.py

But note those scripts (and the PyGTK IDE) are no longer supported, we keep them around for reference.
by iabdalkader
Mon Dec 11, 2017 8:41 pm
Forum: Technical Discussion
Topic: keypoint list?
Replies: 6
Views: 158

Re: keypoint list?

Hi, I would think it would be something analogous to a list of cv::Keypoint. I'll add this to the next release, however note each keypoint consumes a lot of memory (the descriptor alone is 32 bytes), converting a list of keypoints to Python objects could make the camera run out of memory, so this mi...
by iabdalkader
Thu Dec 07, 2017 7:06 am
Forum: Project Discussion
Topic: OpenMV IDE coding for gear motor
Replies: 2
Views: 124

Re: OpenMV IDE coding for gear motor

Hi, you should post the code you have so far maybe someone could help you improve it.
by iabdalkader
Thu Dec 07, 2017 7:03 am
Forum: Project Discussion
Topic: new pixel value calculation
Replies: 3
Views: 110

Re: new pixel value calculation

Hi, please see the docs for get_pixel() and set_pixel().
by iabdalkader
Thu Dec 07, 2017 5:08 am
Forum: Technical Discussion
Topic: Upgrading to 1.9.3
Replies: 10
Views: 281

Re: Upgrading to 1.9.3

You need to update to 2.7 (development image) here:

https://github.com/openmv/openmv/tree/m ... re/OPENMV3
by iabdalkader
Wed Dec 06, 2017 2:01 pm
Forum: Technical Discussion
Topic: Upgrading to 1.9.3
Replies: 10
Views: 281

Re: Upgrading to 1.9.3

Hi, this issue is fixed now, but it won't be released for a while. Here's what you need to do if you want to update the firmware: * Download and update OpenMV firmware (firmware.bin): https://github.com/openmv/openmv/tree/master/firmware/OPENMV3 * Download the WINC1500 firmware image (winc_19.5.2.bi...
by iabdalkader
Wed Dec 06, 2017 7:20 am
Forum: Technical Discussion
Topic: Camera FOV
Replies: 3
Views: 118

Re: Camera FOV

This depends on the lens you have. For example the wide angle lens has a 185 degree FOV. The standard lens that ships with your OpenMV Cam has a 115° FOV.
by iabdalkader
Sun Dec 03, 2017 4:27 pm
Forum: Technical Discussion
Topic: Waking from pyb.stop() ?
Replies: 7
Views: 171

Re: Waking from pyb.stop() ?

Hi, there's no fix for deep sleep issues yet, I still need to test it with the new IDE. I'll report back as soon as I do that.
by iabdalkader
Sat Nov 18, 2017 8:59 am
Forum: Technical Discussion
Topic: Upgrading to 1.9.3
Replies: 10
Views: 281

Re: Upgrading to 1.9.3

Yes I'll post an update here.
by iabdalkader
Fri Nov 17, 2017 2:14 pm
Forum: Technical Discussion
Topic: Upgrading to 1.9.3
Replies: 10
Views: 281

Re: Upgrading to 1.9.3

There's a script included with the IDE to update the module's firmware, it's really easy to use you just copy the firmware binary to SD and run the script. However I have to pull the latest host driver + firmware from ASF first, merge, upload to a module via serial, test and then dump the binary. Th...
by iabdalkader
Fri Nov 17, 2017 8:52 am
Forum: Technical Discussion
Topic: Upgrading to 1.9.3
Replies: 10
Views: 281

Re: Upgrading to 1.9.3

Hi, this class is specific to ESP8266 (you can't use it with our WiFi module even if we update to 1.9.3). Currently there's no way to change the host name of WINC1500, it should set the host name to WINC-mac_addr[1]-mac_addr[0]. However, that doesn't seem to happen (looking at my router's DHCP table...
by iabdalkader
Fri Nov 17, 2017 7:59 am
Forum: Technical Discussion
Topic: How can uart1 of M7 OPENMV work?
Replies: 8
Views: 1100

Re: How can uart1 of M7 OPENMV work?

Hi, please try the latest firmware release (2.6)
by iabdalkader
Fri Nov 17, 2017 7:57 am
Forum: Technical Discussion
Topic: Waking from pyb.stop() ?
Replies: 7
Views: 171

Re: Waking from pyb.stop() ?

Hi, we're still working on low power modes (specifically I need the IDE to wait for longer to test sleep and wake up via RTC). The only implemented low-power function in the latest release is sensor.sleep(True) (there should be an example in the new IDE release, but you can call this function if you...
by iabdalkader
Thu Nov 16, 2017 10:03 am
Forum: General Topics
Topic: Auto focus
Replies: 2
Views: 155

Re: Auto focus

No the lenses have to be adjusted manually.
by iabdalkader
Sat Nov 04, 2017 6:12 pm
Forum: General Topics
Topic: Relay Shield
Replies: 3
Views: 117

Re: Relay Shield

This is a perfect project for the proto-shield.
by iabdalkader
Fri Nov 03, 2017 5:32 pm
Forum: Technical Discussion
Topic: LCD Shield just showing white screen
Replies: 3
Views: 116

Re: LCD Shield just showing white screen

Hi, sometimes the header pins on the camera short when soldering them. If you can check the SPI pins on the camera it will help us narrow down the issue and send you the right replacement. Also I've seen cloned LCD shields that don't work with our cams (not sure why). If you have a cloned shield thi...
by iabdalkader
Fri Nov 03, 2017 3:51 pm
Forum: Technical Discussion
Topic: trained haar classifier could not run properly
Replies: 26
Views: 2465

Re: trained haar classifier could not run properly

flash_togo wrote:
Fri Nov 03, 2017 12:29 am
tested still freeze. if you have any cascade file I can load and test without problem,
I will redo the process of training and come up with a more solid result.
The files I sent you only run 5 stages.
Is this an LBP or HoG cascade ? Those are not supported.
by iabdalkader
Thu Nov 02, 2017 11:32 am
Forum: Technical Discussion
Topic: OpenMV3 R2 and VGA image capture
Replies: 15
Views: 315

Re: OpenMV3 R2 and VGA image capture

Hi, I already fixed this as well, just needed to update the firmware images. Please download and flash the firmware again and it will work.
by iabdalkader
Thu Nov 02, 2017 6:39 am
Forum: Technical Discussion
Topic: trained haar classifier could not run properly
Replies: 26
Views: 2465

Re: trained haar classifier could not run properly

Hi, converted your files to .cascade but didn't test.
by iabdalkader
Wed Nov 01, 2017 7:12 pm
Forum: Technical Discussion
Topic: OpenMV3 R2 and VGA image capture
Replies: 15
Views: 315

Re: OpenMV3 R2 and VGA image capture

dasnordheimer wrote:
Wed Nov 01, 2017 6:59 pm
How do I install one of the dev images? Is there a guide to manual image installs?
You just need to download the dev firmware image from github and upload it with the IDE:

https://github.com/openmv/openmv/tree/m ... re/OPENMV3
by iabdalkader
Wed Nov 01, 2017 6:52 pm
Forum: Technical Discussion
Topic: OpenMV3 R2 and VGA image capture
Replies: 15
Views: 315

Re: OpenMV3 R2 and VGA image capture

Right so this feature was broken in r2.5 and I fixed it. It will be available in the next release, you can try the dev firmware images if you like.
by iabdalkader
Wed Nov 01, 2017 6:02 pm
Forum: Technical Discussion
Topic: OpenMV3 R2 and VGA image capture
Replies: 15
Views: 315

Re: OpenMV3 R2 and VGA image capture

When I try to save a VGA .jpg in RGB mode I just get 3 byte files that don't contain any image information. I'm running firmware 2.5.0. The relevant parts of my code: sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.VGA) sensor.skip_frames(time = 500) img=sensor.snapshot() img.save(f...
by iabdalkader
Wed Nov 01, 2017 4:19 pm
Forum: Technical Discussion
Topic: OpenMV3 R2 and VGA image capture
Replies: 15
Views: 315

Re: OpenMV3 R2 and VGA image capture

We have the OpenMV3 R2 with the OV7725-M7 and I noticed that it is possible to capture grayscale images in VGA resolution but not color images. Is this intentional or a bug? If it's intentional, what is the reason for this limitation? Color VGA images are supported, but only in BAYER format (you ca...
by iabdalkader
Wed Nov 01, 2017 1:40 pm
Forum: Technical Discussion
Topic: trained haar classifier could not run properly
Replies: 26
Views: 2465

Re: trained haar classifier could not run properly

flash_togo wrote:
Wed Nov 01, 2017 9:58 am
I read the discussion and wonder if the issue of converting under window is fixed? I need the solution
to get my cascade to test. Thanks.
I don't think it works under Windows.
by iabdalkader
Wed Nov 01, 2017 12:25 pm
Forum: General Topics
Topic: Servo Shield
Replies: 16
Views: 1293

Re: Servo Shield

Hi,

This works with r2.5

Code: Select all

from pyb import Servo
import time
servo = Servo(3) # P9

while (True):
    servo.pulse_width(1200)
    time.sleep(100)
    servo.pulse_width(1800)
    time.sleep(100)
by iabdalkader
Wed Nov 01, 2017 11:44 am
Forum: Technical Discussion
Topic: Openmv to ros integration
Replies: 2
Views: 133

Re: Openmv to ros integration

Hi, do you mean run ROS on OpenMV ? First you should know that OpenMV's software is basically a C image processing library and MicroPython. The image processing library is standalone (no dependencies on MicroPython) so you can just call from your code like any other library. However, if you want kee...
by iabdalkader
Mon Oct 16, 2017 2:16 pm
Forum: General Topics
Topic: OpenMV interfacing with a TI MSP432 processor
Replies: 4
Views: 301

Re: OpenMV interfacing with a TI MSP432 processor

kwagyeman wrote:
Sat Oct 14, 2017 10:50 am
As a note, your professor forcing you to use a dying MCU line seems weird. You'd find much more use out of learning how STM32 CPUs work that TI stuff.
Many universities still require students to use this MCU in their projects, I think due to outdated curriculums.
by iabdalkader
Mon Oct 16, 2017 11:03 am
Forum: Project Discussion
Topic: Face recognition Project
Replies: 5
Views: 413

Re: Face recognition Project

See Examples->07-Face Detection->face_recognition.py

It's an implementation of the paper mentioned in the comments of the script. I don't think it works well in real life conditions.

Go to advanced search