Here is a link(http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application) for core plot framework but the issue with that is when we draw curve using this framework it is not so smooth. It shows pixels corner in curve. The solution we need is we have to show the curve without pixel's corner and the lines should be smooth as we use bezier curve.
To calculate speed you have to calculate how much distance person travel and how much time it take.
But you just can't consider total time, as suppose a person is started running and after some interval of time, he is at same position where he started..
i have even doubt on measuring accurate location, as you have to consider location with best precision. and it also depands upon which type of network you are connected. wifi or GPS or cellular network.
calculate location(L1) at certain time "T1" Now after some seconds, again calculate Location(L2) at Time(T2). Again go on L2, T2, L3, T3 and so on....!
How to edit a video (Like display some text in video) using ffmpeg and gpu? Don't want to get all images from video and re-write images with text and again converting to video manually. Help me to achieve this using either ffmpeg or GPU.
I tried other things and its bit time consuming.. I want a faster way for this. So GPU and ffmpeg is better option than the process I mentioned in question. If you think we have any better way than FFMPEG and GPU for this solution please let me know.
Can you tell me the purpose behind it, because there are two kind of digital watermarking, visible and non-visible. visible mean user can see it. non-visible mean user can't see it, but a copyrighter/owner/software can verify it by doing some computation algorithms.
so that was for visible watermarking, and if want invisible watermarking then you need to implement like "Stenography"
Steganography is the art and science of writing hidden messages in such a way that no one, apart from the sender and intended recipient, suspects the existence of the message, a form of security through obscurity.
Core Plot API
ReplyDeleteHere is a link(http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application) for core plot framework but the issue with that is when we draw curve using this framework it is not so smooth. It shows pixels corner in curve. The solution we need is we have to show the curve without pixel's corner and the lines should be smooth as we use bezier curve.
How to achieve this?
his might help you, although its not related to CorePlot:
Deletehttp://developer.apple.com/library/ios/#documentation/2ddrawing/conceptual/drawingprintingios/BezierPaths/BezierPaths.html
"Curve Fitting" thats what you need to do,
ReplyDeleteTo know more about curve fitting, visit this: http://en.wikipedia.org/wiki/Curve_fitting
you need to implement curve fitting on data points/point values.
Curve Fitting explained here: http://archives.math.utk.edu/visual.calculus/0/curve_fit.5/index.html
ReplyDeletethis is all what related to data points, however if you want to work on drawing, then work on "Jaggies"/"Jagged Edges".
ReplyDeletealso look for smoothing algorithms.
ReplyDeleteHow you handle input validations (regular expressions) in an application with localization support ?
ReplyDeleteSuppose you are developing an application, which supports multiple languages (let assume English, Japanese).
Now suppose we have put alphanumeric validation in some field, using regular expression
like ...
NSString *regex = @"^\\s*([0-9a-zA-Z]*)\\s*$";
NSPredicate *test = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", regex];
if (![test evaluateWithObject:string]) {
// do something...
}else{
// do something...
}
As you can see this regular expression is in "English", so how do you handle this code if user selects "Japanese" language.
Does only translating regex into Japanese string going to work ??
If person is running having iPhone with him, is it possible to measure his speed just using Accelerometer?
ReplyDeleteIf no than what is alternative?
i think accelerometer will not help you in this case.
DeleteSpeed = Distance/Time,
DeleteTo calculate speed you have to calculate how much distance person travel and how much time it take.
But you just can't consider total time, as suppose a person is started running and after some interval of time, he is at same position where he started..
i have even doubt on measuring accurate location, as you have to consider location with best precision. and it also depands upon which type of network you are connected. wifi or GPS or cellular network.
Deleteif ignored question of location accuracy, you can use combined approach location + accelerometer to measure velocity
Deletei found this link helpful : http://stackoverflow.com/questions/1994018/measuring-velocity-via-iphone-sdk
Deleteok, important update, CLLocation has speed property, so rather than calculating speed manually, you can use it.
Deletejust go through following sample from apple library:
Deletehttp://developer.apple.com/library/ios/#samplecode/LocateMe/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007801
it will definitely help you.
Another link: http://stackoverflow.com/questions/10579004/how-to-calculate-correct-velocity-values-from-accerometer
DeleteAlso look for CoreMotion framework for iOS 5
Download a document from this link:
Deletehttp://www.freescale.com/files/sensors/doc/app_note/AN3397.pdf
its regarding "Implementing Positioning Algorithms Using Accelerometers"
ok, how about below approach:
Deletecalculate location(L1) at certain time "T1"
Now after some seconds, again calculate Location(L2) at Time(T2).
Again go on L2, T2,
L3, T3 and so on....!
How to edit a video (Like display some text in video) using ffmpeg and gpu? Don't want to get all images from video and re-write images with text and again converting to video manually. Help me to achieve this using either ffmpeg or GPU.
ReplyDeleteAre you talking about Digital watermarking effect ??
Deletewhy you want only it via ffmpg or gpu ? i mean look for other possibilities too.
DeleteI tried other things and its bit time consuming.. I want a faster way for this. So GPU and ffmpeg is better option than the process I mentioned in question. If you think we have any better way than FFMPEG and GPU for this solution please let me know.
DeleteAlso look for digital watermarking approach/algorithms on video
DeleteDigital watermarking concept used for copyright purpose mostly.
DeleteCan you tell me the purpose behind it, because there are two kind of digital watermarking, visible and non-visible.
Deletevisible mean user can see it.
non-visible mean user can't see it, but a copyrighter/owner/software can verify it by doing some computation algorithms.
ok, here someone already posted solution:
Deletehttp://stackoverflow.com/questions/7205820/iphone-watermark-on-recorded-video
see the soln provided by Julio Bailon
so that was for visible watermarking, and if want invisible watermarking then you need to implement like "Stenography"
DeleteSteganography is the art and science of writing hidden messages in such a way that no one, apart from the sender and intended recipient, suspects the existence of the message, a form of security through obscurity.
Hello,
ReplyDeleteHow to Erase line on the view using coregraphics library ?
CGContextClearRect will not work
Deleteinstead use CGContextSetBlendMode(context, kCGBlendModeClear)
Thxs Shivang,
ReplyDeleteNow I have another question
When we use Sqliet db with iphone application then what maximum size of the data that sqlite db can store ?
iPhone application sandbox has no max limits except the storage size of device.
DeleteSo now question indirectly comes to max size of SQLite Database:
here is your answer: http://www.sqlite.org/limits.html
however have a look at this link: http://topappcast.blogspot.in/2011/03/sqlite-db-max-size.html
DeleteHello Nirmal,
DeleteAccording to your query the answer is both. You have limit as your device free disc space as well 50MB. Let me explain:
If you are creating native iphone app you have no limit as sqlite database can store large number of data. The only limit is your disc space.
In case you are creating web apps there is a limit of 50 MB of database. You can't create database over 50 MB size.
For other limits of sqlite you would like to see this.. http://www.sqlite.org/limits.html
Hope this will satisfy you.. :)
How to measure dimensions(height/width) of real world objects programmatically ??
ReplyDeletehow to add variable to existing class without actually sub classing it ?
ReplyDeletewe know that objective C doesn't support multiple inheritance, so how can we achieve multiple inheritance in objective C ?
ReplyDeleteHow to encrypt & decrypt file in iOS SDK ?
ReplyDelete@Matrix, Can you help built an AMQP library/wrapper for IOS? please contact me http://stackoverflow.com/users/1568532/fellowworldcitizen
ReplyDelete