Search found 380 matches

by iabdalkader
Fri Dec 15, 2017 8:13 am
Forum: Technical Discussion
Topic: Create image from feature
Replies: 3
Views: 31

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

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: 6
Views: 58

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: 6
Views: 58

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

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: 6
Views: 58

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

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 38 times
by iabdalkader
Tue Dec 12, 2017 7:20 pm
Forum: Project Discussion
Topic: Recognize circles of a given color
Replies: 2
Views: 41

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

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: 4
Views: 53

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

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

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

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

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

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: 6
Views: 113

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

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

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

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

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: 6
Views: 113

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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: 3
Views: 275

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.
by iabdalkader
Mon Oct 16, 2017 11:01 am
Forum: Technical Discussion
Topic: How to porting image processing algorithm with pure C to openmv3
Replies: 1
Views: 177

Re: How to porting image processing algorithm with pure C to openmv3

Hi, see the following examples: https://github.com/openmv/openmv/commit/83451de050e339c11c1d112f3cc52b4edd764dcb#diff-8f4d10f043b1a0ee3c6cc5be660537b9 https://github.com/openmv/openmv/commit/e104be63dfa5b439258530a4cc8c7bf364cc238e#diff-8f4d10f043b1a0ee3c6cc5be660537b9 https://github.com/openmv/open...
by iabdalkader
Thu Oct 12, 2017 5:35 pm
Forum: Technical Discussion
Topic: Waiting for connections..
Replies: 1
Views: 121

Re: Waiting for connections..

Hi,
What do you mean by eject it from its USB connection ? Do you mean reset the camera ?
by iabdalkader
Thu Oct 12, 2017 5:29 pm
Forum: General Topics
Topic: Strange behavior in the IDE.
Replies: 6
Views: 166

Re: Strange behavior in the IDE.

Hi,

I just saw this too and notified Kwabena. We've just switched servers and It's probably related. I think you can ignore that update message, just click cancel.
by iabdalkader
Sun Oct 08, 2017 11:07 am
Forum: Technical Discussion
Topic: HTML generated by mjpeg_streamer
Replies: 4
Views: 161

Re: HTML generated by mjpeg_streamer

I think the docs are wrong. Those functions are not implemented in MicroPython STM socket module:

https://github.com/micropython/micropyt ... dusocket.c
by iabdalkader
Thu Oct 05, 2017 7:51 pm
Forum: General Topics
Topic: Fixed target point
Replies: 8
Views: 264

Re: Fixed target point

Try:

Code: Select all

img.draw_cross(img.width()//2, img.height()//2)
by iabdalkader
Thu Oct 05, 2017 7:49 pm
Forum: Technical Discussion
Topic: Watchdog
Replies: 3
Views: 162

Re: Watchdog

Hi,
This code is enabled in the current development firmware. If you don't want to wait for the next release, you can clone the repo and upload the firmware image.
by iabdalkader
Thu Oct 05, 2017 7:35 pm
Forum: Technical Discussion
Topic: HTML generated by mjpeg_streamer
Replies: 4
Views: 161

Re: HTML generated by mjpeg_streamer

I don't think so, we can just control the headers.
by iabdalkader
Wed Oct 04, 2017 7:53 pm
Forum: Technical Discussion
Topic: What is the best way to check memory usage?
Replies: 6
Views: 514

Re: What is the best way to check memory usage?

GregR wrote:
Mon Oct 02, 2017 3:27 pm
Any suggestions for further troubleshooting this?
Hi, yes use this to dump GC alloc table:

Code: Select all

import machine
machine.info(1)
Dots are free blocks, anything else is an allocated GC block. Note 1 GC block == 16 bytes.
by iabdalkader
Sat Sep 30, 2017 7:21 pm
Forum: Technical Discussion
Topic: Using a different cascade classifer
Replies: 11
Views: 987

Re: Using a different cascade classifer

Hi, The slash issue should be fixed in the next release, I will make sure to test the sd and flash... Re the write permissions, I'm using Arch and the IDE can write to flash, at some point it didn't work, I can't remember exactly how I fixed it. These are my groups now: root uucp audio vboxusers plu...
by iabdalkader
Tue Sep 26, 2017 11:05 pm
Forum: General Topics
Topic: Face detection- color RGB(Not GRAYSCALE)
Replies: 2
Views: 184

Re: Face detection- color RGB(Not GRAYSCALE)

Hi, note there's no difference if it works on RGB or grayscale the image is converted to an integral image before running the algorithm.
by iabdalkader
Tue Sep 26, 2017 8:23 pm
Forum: General Topics
Topic: Connect lcd to Face_Detection
Replies: 2
Views: 188

Re: Connect lcd to Face_Detection

Hi, you just need to add the following to the face detection example: import lcd lcd.init() # Initialize the lcd screen. (before loop) And send images to LCD: lcd.display(img) # display the image. Full script: import sensor, time, image, lcd # Reset sensor sensor.reset() # Sensor settings sensor.set...
by iabdalkader
Mon Sep 25, 2017 6:54 pm
Forum: Technical Discussion
Topic: OpenMV3 firmware development
Replies: 4
Views: 249

Re: OpenMV3 firmware development

Hi, Try the following: * Remove -Wdouble-promotion flag from top Makefile. * Add -lgcc to top Makefile after $(FIRMWARE).elf (around line: 399 or whatever line number you have): $(CC) $(LDFLAGS) $(FIRM_OBJ) -o $(FW_DIR)/$(FIRMWARE).elf -lgcc This will link libc with all the missing functions. * Fina...

Go to advanced search