Save images for my web server in SPIFFS on esp32-S2 - webserver

Hi it's my first time using esp32-S2 because now its not recommended to use esp32. I'm looking for saving images in SPIFFS for my web server. In esp32 i used to use esp32fs plugin (https://github.com/me-no-dev/arduino-esp32fs-plugin) but it doesn't work for esp32-S2. I would like to know if there is any plugin like esp32fs and if not how can i save my images (I'm using arduinoIDE 1.8.19). I've been searching but i didn't found anything. Any orientation is welcomed. Thank you for your time and assistance.

You can try my ESP32_FSWebServer_DRD or ESP_FSWebServer example of ESP_WiFiManager library
Follow the instructions in ESP_FSWebServer Example
You can use either deprecated SPIFFS or the better LittleFS

Related

Agora.io - How to share video timestamps using mediaPlayer? - iOS

Here's what I'm trying to do: Using Agora.io's MediaPlayer API, I want to be able to publish video to a channel (which I can do using RtcChannelPublishPlugin), but I need to be able to then receive the media's current timestamp on the non-publishing device. Then, I will be able to "re-publish" the video from the other user starting at the same timestamp.
I've tried using AgoraRtm, but I don't think messages sent using rtm can be saved as variables.
I've found a way to get the timestamp and print it out, but the trouble is getting it to the other users in the channel and using it as a variable.
Has anyone experienced something like this? Any help would be greatly appreciated.
I'm using Agora's API example project as a base.
I would recommend the use of meta data that goes with the video stream. See the following API:
https://docs.agora.io/en/Interactive%20Broadcast/API%20Reference/oc/Classes/AgoraRtcEngineKit.html#//api/name/setMediaMetadataDataSource:withType:

Trouble using PDF417-phonegap plugin for my Barcode Scanning Application

I am trying to create an application that reads information from a Driving license and gives the result based on that. I am using Ionic framework for my app and have integrated the PDF417- phonegap plugin by MicroBlink with my app.
I followed all the instructions given at:
https://github.com/skifaster/pdf417-phonegap/blob/29cc6d8/README.md
The app is now successfully reading information from barcode and displaying it in an alert box on my screen. But I cannot find where the alert box is being generated from.
I need to know where the scan result is stored so that I can process the information further.
Can someone please help me with this?
as first, I would suggest using original MicroBlink repository instead of forked one. Using original repository guarantees having latest features and updates.
Next, here you have an example how scan is performed from javascript and how data is returned in JS callback. The example implementation raises alert with returned data.

ZXing library and ZXing.org differences?

I have implemented ZXing-node and am able to scan generated QRcode images great, however any images captured via a phone camera, don't get recognized, even though I've added some GraphicsWizard manipulation to deblur, resize etc.
I have tried using the --try_harder option as well, without success.
However the ZXing.org website handles all of these without any issues, where can I find out what settings, or additional image manipulation are done here?
Cheers
It is also all open source: https://github.com/zxing/zxing/tree/master/zxingorg
It uses TRY_HARDER mode, and different binarizers, and will try PURE_BARCODE mode too.

OpenCV and iOS - Getting started

I am new to iOS development and apologies for a basic question. I am trying to convert an image to grayscaled and threshold it using openCV in iOS. So far, I have imported and setup the framework on xcode. What I am trying to do now is to implement the following features:
http://www.youtube.com/watch?feature=player_embedded&v=Ko3K_xdhJ1I
at 0:24 and 0:53
I tried to follow the tutorial which points to the above youtube video :
http://docs.opencv.org/doc/tutorials/ios/image_manipulation/image_manipulation.html
and wasn't sure where to paste the above code and in which file?
Many thanks.
Kind Regards.
These are helper methods and best written in a separate file. Quite simply,
http://answers.oreilly.com/topic/631-how-to-get-c-and-objective-c-to-play-nicely-in-xcode/
Put all that image manipulation code in say ImageManipulationHelper.mm and create a header file for the same
Create a nice little category for UIImage.
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/CustomizingExistingClasses/CustomizingExistingClasses.html
which can call these methods in turn to create any image manipulation you might want.
Easy does it. And yeah, read up a bit more on using C++ in objectiveC, if you get into trouble and also about categories. They are some of the niftier features of objectivec
I achieved the same,using the help of this awesome link
Let me know if you need any further help.
Cheers!!
Edit :
Check this out ImageFiltering

How can i parse following data in iPhone?

Hello i am working on web service base iPhone application but the problem is my client provide web service which is in following formate and i don't know how to parse it. i will appreciate for any help or anybody share their experience.
{"message":"[{\"APPROVER_ID\":\"DAMIN_V\",\"APPROVER_USER_NAME\":\"DAMIN\",\"START_DATE\":\"04/04/12\",\"END_DATE\":\"
\",\"SUBSTITUTE_ID\":\"HLAD\",\"SUBSTITUTE_USER_NAME\":\"James\"},{\"APPROVER_ID\":\"DAMIN_V\",\"APPROVER_USER_NAME\":\"DAMIN\",\"START_DATE\":\"06/01/12\",\"END_DATE\":\"
\",\"SUBSTITUTE_ID\":\"LucyE\",\"SUBSTITUTE_USER_NAME\":\"Lucy\"},{\"APPROVER_ID\":\"HLAD\",\"APPROVER_USER_NAME\":\"James\",\"START_DATE\":\"04/16/12\",\"END_DATE\":\"
\",\"SUBSTITUTE_ID\":\"HT\",\"SUBSTITUTE_USER_NAME\":\"HTx\"},{\"APPROVER_ID\":\"HLAD\",\"APPROVER_USER_NAME\":\"James\",\"START_DATE\":\"06/13/12\",\"END_DATE\":\"
\",\"SUBSTITUTE_ID\":\"SUPERMAN\",\"SUBSTITUTE_USER_NAME\":\"james\"},{\"APPROVER_ID\":\"MY
ORG USER\",\"APPROVER_USER_NAME\":\"My ORG user
1\",\"START_DATE\":\"06/13/12\",\"END_DATE\":\"06/16/12\",\"SUBSTITUTE_ID\":\"NFALPR1\",\"SUBSTITUTE_USER_NAME\":\"Prince\"},{\"APPROVER_ID\":\"PEK\",\"APPROVER_USER_NAME\":\"Lucy
E\",\"START_DATE\":\"03/01/12\",\"END_DATE\":\"08/08/12\",\"SUBSTITUTE_ID\":\"HRL\",\"SUBSTITUTE_USER_NAME\":\"James\"},{\"APPROVER_ID\":\"PNAIR\",\"APPROVER_USER_NAME\":\"Carl\",\"START_DATE\":\"03/01/12\",\"END_DATE\":\"03/09/12\",\"SUBSTITUTE_ID\":\"SCHITRE\",\"SUBSTITUTE_USER_NAME\":\"Fun
bobby\"},{\"APPROVER_ID\":\"LucyE\",\"APPROVER_USER_NAME\":\"Lucy\",\"START_DATE\":\"03/01/12\",\"END_DATE\":\"03/31/12\",\"SUBSTITUTE_ID\":\"HLAD\",\"SUBSTITUTE_USER_NAME\":\"James\"},{\"APPROVER_ID\":\"LucyE
E\",\"APPROVER_USER_NAME\":\"Lucy\",\"START_DATE\":\"04/01/12\",\"END_DATE\":\"04/30/12\",\"SUBSTITUTE_ID\":\"DAMIN_V\",\"SUBSTITUTE_USER_NAME\":\"DAMIN\"},{\"APPROVER_ID\":\"LucyE
E\",\"APPROVER_USER_NAME\":\"Lucy\",\"START_DATE\":\"05/04/12\",\"END_DATE\":\"05/25/12\",\"SUBSTITUTE_ID\":\"JOSHIA\",\"SUBSTITUTE_USER_NAME\":\"Joye\"}]","statusFlag":true}
Thanks In Advance,
Nitin.
this is JSON data.
use SBJSON.h http://stig.github.com/json-framework/ to parse, which is light and easy
You can use the jsonkit for json parsing.
Here is the code for the json kit library which is editing my simple class added and create one demo you can download the demo and easily identify the your problem
Download the Demo from here.
Also refer the tutorial for the how to use json kit from here.