Android ndk camera2 api - c++

can somebody provide a short example on how to snap camera frames with NDK, C++ Camera 2 api?
I couldn't find any meaningful resources out there as it's sort of brand new API, however would be thankful for any help.
Thanks!

I found a good example of using camera2 from within C++ here: https://github.com/justinjoy/native-camera2
It's easy to follow and I got it running in a few minutes.

There aren't sample apps available yet, but you can take a look at the basic compliance test for the camera2 NDK API:
https://android.googlesource.com/platform/cts/+/master/tests/camera/libctscamera2jni/native-camera-jni.cpp

Related

Implementing OCR on IOS

Was wondering if anyone had some idea on how one would implement OCR image linking on an IOS device.
What I exactly want the app to do is scan an image using the iPhones camera, then recognise that image. When the image is recognised the app should open a link that is relative to the image.
A better example of what I am talking about is made by a company called Augment . They make a product called "Trackers" which is exactly what I would like to implement.
There are no in-build/custom SDK's that do your exact requirement.
However, you can achieve it by customizing the OpenCV library or any of Augmented reality SDK's.
Here are the links may helpful to you
OpenCV library tutorial iOS
Wikitude Augmented reality
Now there is Real-Time Recognition SDK (http://rtrsdk.com).
It is free by the way. Disclaimer: I work for ABBYY

Blackberry web services for 10.3 os

I am developing a BlackBerry 10 apps with Cascades (C++ programming language) right now. Can anyone tell me how do i make a call to an web service in BlackBerry 10: Cascades? I'm just a beginner, so i don't really know anything. Thanks for your answer :D
It is not clear what your requirement is, but since you are a beginner it is probably best to start small. Have you looked at the WebView Cascades control?
http://developer.blackberry.com/native/reference/cascades/bb__cascades__webview.html
How about XmlDataAccess and JsonDataAccess, you can find samples in the documentation.
There are a lot of samples on github.
samples
There is also a sample project using QtSoap to access web services.
soapxml

How to integrate PlayHeaven sdk in cocos 2d?

I cannot find any suitable link or reply about playheaven.There is only sample project in github which did not help.
If there is some nice tutorial or video link explaining in steps how to do it.Please provide the link or help me integrate them
I'm Zachary Drake, Director of Sales Engineering at PlayHaven. Officially, PlayHaven doesn't currently support Cocos2D, so we don't have instructions on how to integrate PlayHaven into a Cocos2D game. PlayHaven may very well work with Cocos2d by simply following the iOS instructions, but we don't do QA and other testing on Cocos2d the way we do for officially supported platforms (iOS, Android, Unity iOS, Unity Andoid, Adobe AIR).
This person on the Cocos2d Forums seems to have successfully integrated PlayHaven (after ranting about it), but I have not actually performed the integration steps described and cannot vouch for them:
http://www.cocos2d-iphone.org/forum/topic/96170
The iOS integration documentation is not as good as we'd like it to be, and we are in the process of revising it now. If you email support#playhaven.com with specific iOS integration problems, we can assist you. But if a Cocos2D compatibility issue breaks the integration, unfortunately there won't be anything we can do to get around that.
Thanks for your interest in PlayHaven.
My Playhavan working sample with Cocos2d : https://www.box.com/s/lc2p8jhngn5o8hxeuw3y
Here is complete description of SDK integration:
https://github.com/playhaven/sdk-ios

Track C++ application with google analytics

Is a possibility to track my C++ application usage using google analytics?
to track application usage with google analytics is necessary to generate http request to this url:
*
http://www.google-analytics.com/__utm.gif?
utmwv=3&
utmn=<random number>&
utme=&
utmcs=ISO-8859-1&
utmsr=1280x1024&
utmsc=24-bit&
utmul=en-us&
utmje=1&
utmfl=-&
utmhn=<www.stopka.us>&
utmhid=2112093191&
utmr=-&
utmp=/login.php?user=12&
utmac=UA-XXXXX-1&
utmcc=__utma%3D1.<unique id>.<time (in sec's since Jan 1, 1970) of first
visit).<time of last visit>.<time of current visit>.<visit count>%3B
%2B
__utmz%3D1.1203103189.1.1.utmcsr%3D<source>%7Cutmccn%3D<campaign>
%7Cutmcmd%3D<medium>%3B
*
all parameters is possible to fill with it's user env. values.
This way is not convenient enough.
So, I create my own library. I call it UsageAnalytics and distribute it as open source project at: http://code.google.com/p/usageanalytics/
thanks for all for participation, thanks for me for the library.
btw. cause code.google.com outdated, I've moved that stuff to
https://github.com/vyemialyanchyk/usageanalytics
By now you may have already solved your need, but for what it's worth, my firm has also released a C library supporting Google's Universal Analytics Measurement Protocol.
https://github.com/analytics-pros/universal-analytics-c
Good luck!
Google has a library for accessing Analytics API from C++, it's in "alpha", but it looks like what you want... https://developers.google.com/api-client-library/cpp/apis/analytics/v2.4
The best library I found for tracking analytics with c++ is this unofficial one on github: https://github.com/HSAnet/qt-google-analytics
Note however that it has Qt as a dependency...
If you want to track C++ Android or iOS apps you could use Google's Firebase:
https://firebase.google.com/docs/analytics/cpp/start
Old question, but nowadays more and more developers are starting to use usage analytics for their software.
"SoftMeter", a library I created myself, is my solution to this need.
It has a native C and C++ interface.
https://www.starmessagesoftware.com/softmeter/sdk-api

API to use deault Web Cam?

I'm working on a Win32 application in C++ and would like to add the ability to output the default web cam onto the screen. I was wondering if there was a Win32 API for this, or a way to do this without coding the whole thing.
Thanks
Yes, it is really simple with capCreateCaptureWindow. That googles really well, you'll have no trouble finding code samples.
I'd recommend DirectShow. capXXX API is really old and obsolete. OpenCV is based on Win32 API.
Using OpenCV you can access webcam.