Search found 10 matches

by goliatone
Fri Dec 15, 2017 8:04 am
Forum: Technical Discussion
Topic: Create image from feature
Replies: 3
Views: 594

Re: Create image from feature

Not necessarily to a file. Just make a new image from cropping a source image.
by goliatone
Thu Dec 14, 2017 3:56 pm
Forum: Technical Discussion
Topic: Create image from feature
Replies: 3
Views: 594

Create image from feature

I am detecting faces using HaarCascade, have a img.find_features returning the detected faces. What I want to do is to crop the original frame to the area where the face was detected. Any ideas?
by goliatone
Thu Dec 14, 2017 1:54 pm
Forum: Technical Discussion
Topic: Sending Image Data over HTTP
Replies: 3
Views: 435

Re: Sending Image Data over HTTP

To answer myself, it looks like the mjpeg_streamer_2.py example might serve as a reference.
by goliatone
Thu Dec 14, 2017 1:13 pm
Forum: Technical Discussion
Topic: [MQTT] Using micropython lib: usocket.getaddrinfo
Replies: 7
Views: 873

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

Yes! that seems to work. It failed for me initially when I was testing against a local broker, then I tested against the test.mosquitto.org and a broker hosted in EC2 and it worked. Just in case it is helpful for someone else, what follows is the traceback: Traceback (most recent call last): File "<...
by goliatone
Thu Dec 14, 2017 10:11 am
Forum: Technical Discussion
Topic: Sending Image Data over HTTP
Replies: 3
Views: 435

Sending Image Data over HTTP

Hi, I'm trying to capture motion and send a frame/image to a service behind a URL. If I can have a string with an image's content, I can craft an HTTP request using a TCP socket client. Also, is there a way to serialize an image into a string? What is the OpenMV way of sharing images with external s...
by goliatone
Thu Dec 14, 2017 8:23 am
Forum: Technical Discussion
Topic: [MQTT] Using micropython lib: usocket.getaddrinfo
Replies: 7
Views: 873

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

You can test using the public mosquitto broker, the url is test.mosquitto.org. You would connect to it over port 1883 client = MQTTClient("camera1", "test.mosquitto.org", port=1883) client.connect() client.publish("openmv/test", "Hello World!") If you have the mosquitto client installed in your mach...
by goliatone
Wed Dec 13, 2017 10:26 am
Forum: Technical Discussion
Topic: [MQTT] Using micropython lib: usocket.getaddrinfo
Replies: 7
Views: 873

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

Thank you for the reply. I guess what would make sense is for getaddrinfo to check if you are providing an IP, then do not try to resolve. Regardless, what I found out, the current modusocket.c implementation for stm32 does provide write or read commands, which are needed used by the underlying Pyth...
by goliatone
Tue Dec 12, 2017 7:11 pm
Forum: Technical Discussion
Topic: [MQTT] Using micropython lib: usocket.getaddrinfo
Replies: 7
Views: 873

[MQTT] Using micropython lib: usocket.getaddrinfo

Hi there, I'm trying to use MQTT from an OpenMV camera. I'm using the umqtt.simple library [1]. I'm getting an error trying to connect the client to the broker. The culprit seems to be usocket's geaddrinfo. In a simplified script, the following code also barfs: usocket.getaddrinfo("10.11.16.12", 188...
by goliatone
Thu Oct 26, 2017 10:20 am
Forum: General Topics
Topic: problem updating M4 firmware with IDE 1.7.1 on Mac
Replies: 16
Views: 2738

Re: problem updating M4 firmware with IDE 1.7.1 on Mac

thanks @kwagyeman. It's a board I got through the Kickstarter campaign.
by goliatone
Wed Oct 25, 2017 1:12 pm
Forum: General Topics
Topic: problem updating M4 firmware with IDE 1.7.1 on Mac
Replies: 16
Views: 2738

Re: problem updating M4 firmware with IDE 1.7.1 on Mac

I also have the same issues described here. However, I'm stuck when running the bootloader.dfu part. I connect a jump wire between boot and rst, connect the cam again but nothing happens. Is there a more detailed guide anywhere I could use as a reference? PS: Sorry for opening an old thread but I fi...

Go to advanced search