Search found 596 matches

by iabdalkader
Tue Nov 20, 2018 10:47 am
Forum: Technical Discussion
Topic: Increase uart sending time between bytes of an image
Replies: 1
Views: 19

Re: Increase uart sending time between bytes of an image

chrisPyres66 wrote: I have any idea to get byte after byte from an image object.

Code: Select all

    for i in range(img.size()):
        print(img[i])
You could also try to increase the timeout_char:

http://docs.openmv.io/openmvcam/tutoria ... light=uart
by iabdalkader
Fri Nov 16, 2018 4:52 pm
Forum: Technical Discussion
Topic: openMV Firmware Build Instructions
Replies: 12
Views: 643

Re: openMV Firmware Build Instructions

Hello completely noob here. I dont have any idea what "recursive" means etc. etc. I also havent tried compiling as per the procedure in the wiki yet, will try it later. My dumb questions are (if it is not top secret to answer): 1. How do you go on developing the openmv firmware? What IDE are you us...
by iabdalkader
Tue Nov 13, 2018 2:15 pm
Forum: Project Discussion
Topic: maximum framerate of video recording
Replies: 3
Views: 140

Re: maximum framerate of video recording

Hi,

If you use a fast SD card, you can record QVGA/RGB at 20FPS on the F7 and 40FPS on the H7
by iabdalkader
Tue Nov 06, 2018 12:24 pm
Forum: Technical Discussion
Topic: subscribe function for mqtt is not working
Replies: 4
Views: 222

Re: subscribe function for mqtt is not working

Hi, I can't see the error, can you attach your script and the PC side code ? I need to be able to repeat this here.
by iabdalkader
Tue Nov 06, 2018 6:55 am
Forum: Technical Discussion
Topic: Cannot detect the uSD
Replies: 3
Views: 220

Re: Cannot detect the uSD

Hi there, I am trying to update the firmware of my wifi shield but it requires the bin to be on the sd card. Formatted FAT32 and is a 32GB card. Running sys.path yield empty. Running the example cannot find the file. What is the mystery ? What do you mean by running sys.path ? Can you access the SD...
by iabdalkader
Mon Nov 05, 2018 7:08 pm
Forum: Technical Discussion
Topic: usage
Replies: 9
Views: 297

Re: usage

pcls1026 wrote:
Mon Nov 05, 2018 6:21 pm
What about power? do I need Caps or Resistors?
No, just provide 5V to VIN.
by iabdalkader
Mon Nov 05, 2018 2:35 pm
Forum: General Topics
Topic: Convert .xml to .cascade
Replies: 7
Views: 395

Re: Convert .xml to .cascade

Julo7139 wrote:
Mon Nov 05, 2018 8:26 am
Hello,

can we use this file (cascade_convert.py) with python 3.6?

Do you have another way to convert the xml file?

Thank
Julien
I can only confirm it works with Python2, and no it's the only tool we have to convert cascades, sorry.
by iabdalkader
Mon Nov 05, 2018 2:33 pm
Forum: Project Discussion
Topic: Three lights present
Replies: 9
Views: 328

Re: Three lights present

Thank you. Are there certain parts of that script that I will have to alter to run a specified micropython script on the openmv cam? Hi, this script is a Python module that implements the camera's debugging protocol. It's somewhat advanced for what you want to do. If you just want to run a script o...
by iabdalkader
Mon Nov 05, 2018 2:26 pm
Forum: Technical Discussion
Topic: usage
Replies: 9
Views: 297

Re: usage

Hi, TX-> RX and RX-> TX as usual. And yes, UART is read using polling.
by iabdalkader
Mon Nov 05, 2018 2:22 pm
Forum: Technical Discussion
Topic: Micropython on M7 and H7
Replies: 2
Views: 107

Re: Micropython on M7 and H7

I started upstream support for the H7, and send patches whenever I have time. Full MicroPython support for the H7 is up to Micropython's maintainers.
by iabdalkader
Sat Nov 03, 2018 9:05 pm
Forum: Technical Discussion
Topic: subscribe function for mqtt is not working
Replies: 4
Views: 222

Re: subscribe function for mqtt is not working

Hi, this minimal example works: # MQTT Subscribe Example. # This example shows how to use the MQTT library to subscribe to a topic. # # 1) Copy the mqtt.py library to OpenMV storage. # 2) Install the mosquitto client on PC and run the following command: # mosquitto_pub -h test.mosquitto.org -t "open...
by iabdalkader
Fri Nov 02, 2018 7:12 pm
Forum: Technical Discussion
Topic: subscribe function for mqtt is not working
Replies: 4
Views: 222

Re: subscribe function for mqtt is not working

Will test it and get back to you.
by iabdalkader
Fri Nov 02, 2018 3:44 pm
Forum: Technical Discussion
Topic: Memory allocation error - comments!?!
Replies: 21
Views: 639

Re: Memory allocation error - comments!?!

type11969 wrote:
Fri Nov 02, 2018 2:28 pm
Is there a way to reliably test which line is causing the allocation failure?
The exception should tell you the line number.
by iabdalkader
Fri Nov 02, 2018 7:40 am
Forum: Project Discussion
Topic: maestro polulu
Replies: 5
Views: 241

Re: maestro polulu

icnxt wrote:
Thu Nov 01, 2018 11:59 pm
Hi there it only has TTL tx rx as serial input and output and txin daisy chain input
It should work with the camera.
by iabdalkader
Thu Nov 01, 2018 10:02 pm
Forum: Technical Discussion
Topic: Memory allocation error - comments!?!
Replies: 21
Views: 639

Re: Memory allocation error - comments!?!

Okay, so I am taking a series of small images - color analysis on defined portions of an image. Should I run a del img command? Or simply run a gc.collect() at the end of the function where I analyze the image? Apologies if this is a basic question, still trying to navigate python. Appreciate the h...
by iabdalkader
Thu Nov 01, 2018 6:15 pm
Forum: Technical Discussion
Topic: Using IO pins to PWM IR Leds
Replies: 1
Views: 91

Re: Using IO pins to PWM IR Leds

Hi, your code will work, but the LEDs will be on a long time before the frame actually starts. Try this instead, this will sync the LED pin to the frame start interrupt: import sensor, image from pyb import Pin sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sens...
by iabdalkader
Thu Nov 01, 2018 6:10 pm
Forum: Technical Discussion
Topic: Memory allocation error - comments!?!
Replies: 21
Views: 639

Re: Memory allocation error - comments!?!

Please bear with me, I am only somewhat okay at programming in C. So I am used to a precompiler - comments take no space, etc. So, to confirm, the SD card will not help with memory allocation errors, correct? No it will not, the script is loaded in memory, parsed, executed etc... You should avoid t...
by iabdalkader
Thu Nov 01, 2018 5:02 pm
Forum: Project Discussion
Topic: maestro polulu
Replies: 5
Views: 241

Re: maestro polulu

icnxt wrote:
Thu Nov 01, 2018 1:15 pm
Hi there could u please tell me if i can use openmv with maestro polulu servo controller and how would i connect it up many thanks in atvance
Does it have I2C, UART or SPI ? If so, you can use it with an openmv camera.
by iabdalkader
Thu Nov 01, 2018 5:00 pm
Forum: Technical Discussion
Topic: Memory allocation error - comments!?!
Replies: 21
Views: 639

Re: Memory allocation error - comments!?!

I'm not familiar with del_object and gc_collect, so no, I'm not doing this. My program is pretty simple, its just a bit long, honestly I'm surprised I'm having a memory allocation problem. Why would it work if I save direct to the camera, but not work when using the IDE? Saving the script to cam st...
by iabdalkader
Wed Oct 31, 2018 7:32 pm
Forum: Technical Discussion
Topic: Find displacement on M4
Replies: 1
Views: 84

Re: Find displacement on M4

According to: http://forums.openmv.io/viewtopic.php?f=6&t=944 you have dropped support for M4, which in my opinion is slightly disappointing, We didn't, we still support the M4 in every new firmware release. However we can only fix bugs for the M4, we can't add any new feature because we ran out of...
by iabdalkader
Wed Oct 31, 2018 11:14 am
Forum: Technical Discussion
Topic: Running program without the IDE - upload, reset, no-go
Replies: 14
Views: 388

Re: Running program without the IDE - upload, reset, no-go

Hi, this script is running fine standalone (in main.py). Seems to be an issue with the IDE not flushing the writes before removing the disk. Please make sure the main.py is actually written (not an empty file) and manually remove/umount the disk until this issue is fixed. EDIT: You can use UART1 or ...
by iabdalkader
Tue Oct 30, 2018 12:09 pm
Forum: Technical Discussion
Topic: Running program without the IDE - upload, reset, no-go
Replies: 14
Views: 388

Re: Running program without the IDE - upload, reset, no-go

I'll look into it, we're about to do a new firmware release anyway, if there's a bug it will be fixed very soon.
by iabdalkader
Mon Oct 29, 2018 5:41 pm
Forum: Technical Discussion
Topic: Running program without the IDE - upload, reset, no-go
Replies: 14
Views: 388

Re: Running program without the IDE - upload, reset, no-go

Tools->Save open script to OpenMV cam.
by iabdalkader
Mon Oct 29, 2018 10:37 am
Forum: General Topics
Topic: send frames to PC
Replies: 17
Views: 3319

Re: send frames to PC

bogflap wrote:
Mon Oct 29, 2018 10:27 am
Just to clarify. If on line 34 of the script you reference the ".compress" is omitted then an uncompressed image will be sent?
Yes.
by iabdalkader
Mon Oct 29, 2018 8:15 am
Forum: General Topics
Topic: send frames to PC
Replies: 17
Views: 3319

Re: send frames to PC

Hi, I just added a new VCP example, it shows how to send images with USB VCP on demand (host side script examples in the comments) https://github.com/openmv/openmv/blob/master/scripts/examples/02-Board-Control/usb_vcp.py Re the error, I think newer pyserial don't accept port numbers any more, will l...
by iabdalkader
Sun Oct 28, 2018 12:12 pm
Forum: Technical Discussion
Topic: edge detection
Replies: 13
Views: 432

Re: edge detection

Here I fixed some of your "code". Some variables are not defined, I just removed them. I don't think it's working as expected, and I don't think you'll have enough memory to implement this, but anyway: sensor.reset() sensor.set_pixformat(sensor.GRAYSCALE) sensor.set_framesize(sensor.QVGA) sensor.ski...
by iabdalkader
Sun Oct 28, 2018 11:55 am
Forum: Technical Discussion
Topic: wifi shield transfer
Replies: 15
Views: 454

Re: wifi shield transfer

Thank you for your support Paste the screenshot It is linux ubuntu Thank you [ubuntu.png][/img] This module and scripts only run on the OpenMV camera. Do you have an OpenMV camera ? If yes, please download the IDE from here: https://openmv.io/pages/download And start with the example scripts.
by iabdalkader
Fri Oct 26, 2018 7:23 am
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 58
Views: 17796

Re: implement own Haar-Cascade

Attached.

In the future please use a Linux VM to convert cascades, I'll get around to fixing the script on Windows.
by iabdalkader
Fri Oct 26, 2018 7:13 am
Forum: General Topics
Topic: send frames to PC
Replies: 17
Views: 3319

Re: send frames to PC

Ronnye wrote:
Wed Oct 24, 2018 8:52 am
Actually my error, in Linux Ubuntu, is the following:

File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 37, in device
return '/dev/ttyS%d' % port

TypeError: %d format: a number is required, not Serial
Can you post the full traceback ?
by iabdalkader
Fri Oct 26, 2018 7:07 am
Forum: General Topics
Topic: Substitute for Thermopile Shield
Replies: 3
Views: 184

Re: Substitute for Thermopile Shield

One of my projects needed processing thermal images. I was exploring the option of buying the Thermopile shield. Little bummed out that its no longer sold. Any updates if it will be sold anytime in the future. Are there any substitutes I can use instead? I just love the M7. I wish OpenMV starts sel...
by iabdalkader
Fri Oct 26, 2018 7:03 am
Forum: Technical Discussion
Topic: wifi shield transfer
Replies: 15
Views: 454

Re: wifi shield transfer

The modules are built-in (inside the firmware) shouldn't matter if you run the script from Windows or Linux. Can you post a screenshot of the error ?
by iabdalkader
Thu Oct 25, 2018 4:59 pm
Forum: Project Discussion
Topic: how to set up UVC support
Replies: 3
Views: 144

Re: how to set up UVC support

Thanks for support but I tried uploading uvc.bin using bootloader and I can see the /dev/video0 now on my raspi3 but also when running guvcview now it doesn't complain that not camera is attached but it still doensn't run too. The program now just stops running at some point while never getting to ...
by iabdalkader
Thu Oct 25, 2018 2:48 pm
Forum: Technical Discussion
Topic: wifi shield transfer
Replies: 15
Views: 454

Re: wifi shield transfer

I came across a video https://www.youtube.com/watch?v=YmG7OJk7Efg where you can set up UVC on the OpenMV but I couldn't get it to work. I couldn't find any more documentation. I just replied to you in your other thread, you can enable UVC by uploading uvc.bin, you'll find it here (until it's releas...
by iabdalkader
Thu Oct 25, 2018 2:44 pm
Forum: Technical Discussion
Topic: openmv webserver
Replies: 10
Views: 329

Re: openmv webserver

so you do not think you can make a simple webserver that just posts the files that you can save. Like I said yes it's possible, the same Python code you'll find if you google (python+tcp+server+file) should work on OpenMV, with little or no modification. Have you actually tried writing any code tha...
by iabdalkader
Thu Oct 25, 2018 1:31 pm
Forum: Technical Discussion
Topic: wifi shield transfer
Replies: 15
Views: 454

Re: wifi shield transfer

Hi, see the mjpeg_streamer.py example.
by iabdalkader
Thu Oct 25, 2018 1:28 pm
Forum: Project Discussion
Topic: how to set up UVC support
Replies: 3
Views: 144

Re: how to set up UVC support

Hi, you just need to upload the uvc.bin image (Not sure if it's released with the IDE yet). Note this will make OpenMV camera act as a UVC compatible cam (just like a standard webcam) you won't be able to execute any scripts. If you want to revert to the default firmware, upload firmware.bin when th...
by iabdalkader
Thu Oct 25, 2018 1:24 pm
Forum: Technical Discussion
Topic: how i can use open cv libraries like cv2 and nmpy in Openmv ide
Replies: 1
Views: 82

Re: how i can use open cv libraries like cv2 and nmpy in Openmv ide

The OpenMV camera has its own image processing library which runs on the camera (not on the PC). You can't use open*cv* or any other standard libraries that's not implemented in OpenMV. See the following for all the available libraries: http://docs.openmv.io/library/index.html#libraries-specific-to-...
by iabdalkader
Thu Oct 25, 2018 1:20 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 58
Views: 17796

Re: implement own Haar-Cascade

augur4u wrote:
Thu Oct 25, 2018 4:06 am
Hi iabdalkader,
Thank you so much. Unfortunately I have no Linux so I hope you can help me convert it if you have time. Thanks a ton.

I tried to convert it but this file is a web page, seems you downloaded it from github, you need to download the raw xml file.
by iabdalkader
Thu Oct 25, 2018 1:18 pm
Forum: Technical Discussion
Topic: openmv webserver
Replies: 10
Views: 329

Re: openmv webserver

Thanks for the info its good to know. So before I get too deep in figuring out how to code this. Let me more clear what I want to do after studying the topic all day and tinkering with some of the examples. If its possible to implement a webserver to access the files stored on the camera's SD card,...
by iabdalkader
Wed Oct 24, 2018 8:13 pm
Forum: Technical Discussion
Topic: openmv webserver
Replies: 10
Views: 329

Re: openmv webserver

Hi,

It should be relatively easy to write a web server that serves images on request. See this tutorial for an example. Let me know if you get stuck somewhere.
by iabdalkader
Wed Oct 24, 2018 7:01 pm
Forum: General Topics
Topic: error: Failed to save the image file for an unknown reason
Replies: 6
Views: 957

Re: error: Failed to save the image file for an unknown reason

hamidnawaz28 wrote:
Wed Oct 24, 2018 2:21 am
Is it possible to save my image to my laptop directly to location like ''C:\\ newfolder\\example.jpg''
No, the camera only has access to its own filesystem (on flash or SD card) not your PC.
by iabdalkader
Wed Oct 24, 2018 6:58 pm
Forum: Technical Discussion
Topic: Compilation optimization for easy debugging
Replies: 1
Views: 94

Re: Compilation optimization for easy debugging

Hi, don't edit the Makefile, just use this:

Code: Select all

make TARGET=OPENMV3 DEBUG=1
by iabdalkader
Wed Oct 24, 2018 3:08 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 58
Views: 17796

Re: implement own Haar-Cascade

Hi iabdalkader, I tried to use your cascade_convert.py to convert haarcascade_frontalcatface.xml but always failed. and I don't know why. could you help me convert it? Thanks a ton! Hi, please see the older replies to this thread. The script only works on Linux (for some reason) and it only support...
by iabdalkader
Tue Oct 23, 2018 7:48 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 58
Views: 17796

Re: implement own Haar-Cascade

Hi iabdalkader, I tried to use your cascade_convert.py to convert haarcascade_frontalcatface.xml but always failed. and I don't know why. could you help me convert it? Thanks a ton! Hi, please see the older replies to this thread. The script only works on Linux (for some reason) and it only support...
by iabdalkader
Fri Oct 19, 2018 4:42 pm
Forum: Technical Discussion
Topic: openmv m7 with opencm9.04c
Replies: 3
Views: 176

Re: openmv m7 with opencm9.04c

I'm not sure, does this platform have a standard UART ? If so you can use UART, see the examples in the IDE.
by iabdalkader
Fri Oct 19, 2018 2:31 pm
Forum: Project Discussion
Topic: Change of MCU
Replies: 12
Views: 4278

Re: Change of MCU

victagayun wrote: Hello, do you have the hex file or the compiled file for this?
Do you mean the firmware ? No we never actually released any camera with SDR so we don't support it, the design files are there for reference.
by iabdalkader
Thu Oct 18, 2018 5:09 pm
Forum: General Topics
Topic: Img.find_template function
Replies: 3
Views: 205

Re: Img.find_template function

Yes, I use the box to find, the code is as follows, I want to know how to improve the efficiency and speed of the search under multiple templates. r1 = img.find_template(template1, 0.70, step=4, search=SEARCH_EX) #, roi=(10, 0, 60, 60)) That's the exhaustive search, try: r1 = img.find_template(temp...
by iabdalkader
Wed Oct 17, 2018 5:46 pm
Forum: Project Discussion
Topic: Change of MCU
Replies: 12
Views: 4278

Re: Change of MCU

victagayun wrote:
Wed Oct 17, 2018 12:08 pm
iabdalkader wrote:
Mon Jul 27, 2015 5:51 pm
OpenMV-SDR (429+SDRAM)
Where in github is it?
Hi, we moved the design files here:

https://github.com/openmv/openmv-boards
by iabdalkader
Wed Oct 17, 2018 2:34 pm
Forum: Project Discussion
Topic: Programatically transferring data off board to a host.
Replies: 3
Views: 193

Re: Programatically transferring data off board to a host.

I am looking at __USBDBG_TX_BUF command. Does this receive the results of using the functions USB_VCP.write(buf) or USB_VCP.send(data,timeout). No, this module implements the camera debugging protocol it lets you control the camera programmatically, instead of using the IDE, to do low-level stuff l...
by iabdalkader
Wed Oct 17, 2018 2:14 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 58
Views: 17796

Re: implement own Haar-Cascade

Hi, face_eye_detection.py looks fine but it doesnt work with the eye cascade generated by me. I have attached the cascade in my previous post, could you please regenerate and try? Thanks for the support. Much appreciated! The script should generate an identical cascade. Note I never tested the conv...

Go to advanced search