OpenCV: In which version the feature2d module was first implemented? - opencv

In need to in which version the feature2d module was first implemented. Couldn't find an answer on google. I know that it exists in 2.2, but I wanted to know if it existed already on 2.0 or 2.1.
Thanks

According to OpenCV's ChangeLog, it is first introduced in v2.2.

It looks like 2.2 is the first version with modules, including features2d. You can verify this yourself by examining the source code releases.

Related

I have a Swift Package and I want to know how to get the current version of this package

Similar to how you get your apps version kCFBundleVersionKey how does one get the version of the package you are working in?
I don't think it's possible at the moment to get the value easily.
You can either read the Package.resolved file or you can set up a public constant where you would define the version of your library.
public let version = "0.0.1"
import MyLibrary
print(MyLibrary.version)
There isn't a standard way how to do this, every package could have a different constant (or not have it at all)
You can check package version rules in project package dependencies tab. Check screenshot below. Propably it would be sufficient for most use cases.
Edit: The context has changed, the question was to get the version of MyPackage I'm working on via code. There isn't any documented or recommended method as of now. Though this can be achieved by a hack through reading the Package.resolved file as mentioned by Malcolm.
I'm not deleting this answer for any future users who are looking for answer on how to get the exact latest version of a Package.
You can give the same major version number and give Update to latest package version option on Xcode. eg: If current version is 2.4.5 you just need to provide 2.0.0 and update. There is also an option to provide the exact version of swift package you need.

I need help to build ERC-721 contract with solidity version 5.0 or higher

I am trying to write a contract with ERC-721 token system. I have experience with ERC-20, so I thought I can find a tutorial and follow the tutorial. However, tutorials I found are based on solidity version between 4.0~4.2. Nowadays we use 5.0~6.0. Therefore tutorial codes are not working. Is there any tutorial, or code can I look and learn? HELP!
I tried to fix the code, and make suitable for 5.0 or higher, but I failed.
Therefore I tried to downgrade solidity and use docker but still get
Error: CompileError: ParsedContract.sol:3:1: ParserError: Source
"zeppelin-solidity/contracts/token/ERC721/ERC721Token.sol" not found:
Unknown exception in read callback. import
'zeppelin-solidity/contracts/token/ERC721/ERC721Token.sol'; this
error. :(
+
I found https://github.com/OpenZeppelin/openzeppelin-solidity , this but I do not know how to write test. Thank you for your time to read this !.
due to renaming, ERC721Token.sol is no longer available in the latest version of OpenZeppelin v2.3.0. change ERC721Token.sol to ERC721.sol, and it should work.
I suggest you have a look at the OpenZeppelin documentation:
https://docs.openzeppelin.org/v2.3.0/tokens#erc721
If you have more questions about OpenZeppelin you can always ask in the community forum
I can put together a sample contract in the community forum if you need.

Dart protobuf: what version of protoc should I download?

I am attempting to follow instructions in this article:
https://www.dartlang.org/articles/libraries/serialization#protobuf-example
Step one is to install protocol compiler. My question is, does it matter which version I download? Do I need to use the javasript version as Dart will be compiling down to Javascript? Please see below link to list of all protoc downloads to see what I mean:
https://github.com/google/protobuf/releases/tag/v3.0.0
Any advise would be massively appreciated. Apologies if this has a very obvious answer - I am quite new to this and struggling to find more information anywhere.
Thanks in advance.
You don't need anything special for JS. The compiler generates Dart code that gets compiled to JS
Install one of:
protoc-3.0.0-linux-x86_32.zip
protoc-3.0.0-linux-x86_64.zip
protoc-3.0.0-osx-x86_32.zip
protoc-3.0.0-osx-x86_64.zip
protoc-3.0.0-win32.zip

adding libz.1.2.3.dylib vs libz.1.1.3.dylib or libz.1.2.5.dylib

I am following this tutorial
The tutorial states to add libz.1.2.3.dylib. library, but because I have downloaded newer or older library (I don't know exactly if my library is newer or older that the library in the tutorial, but 99% it is newer). So, when I tried to add the libz.1.2.3.dylib. library, I didn't find it. However, when I typed libz I found these choices:
which one should I choose please?
In using dynamic libraries the one you normally use is libX.major_version.dylib in this case libz.1.2.dylib. This is a link to a library libX.major_version.minor_version.dylib which here is libz.1.2.5.dylib
The rationale for this is that the major version is changed only when the API is changed, the minor version is updated when any change is made. Thus your program should work when it uses any of the same major version and so you want the latest version.
In this case the tutorial had an older install and so its libz.1.2.dylib. should have pointed to libz.1.2.3.dylib.
For you you should use libz.1.2.5.dylib which should be like the tutorials version but with bug fixes and possibly extra functions that don't matter here as the tutorial won't call the new functions.
Normally libX.1.x.dylib would be older than libX.2.y.dylib but the writers might produce bug fixes to the old API whilst also working on the new API
Following on from the rational I gave libz.dylib should be a link to the highest number library but I would not use it as you are writing to a particular API so I would use a version specific (In this case if missing a link the I would not trust what libz.dylib points to)

Howto use Twitter-OAuth-iPhone with iOS5 and ARC

I am trying to use Ben Gottliebs Twitter-OAuth-iPhone within an iOS5 app that uses ARC.
I already flagged the files with -fno-objc-arc. But now I get a lot of errors. I don't know where to start. Without ARC the framework seems to work just fine. Any help would be appreciated.
Edit: it seems that is has something to do with SecKeychainItemRef
I can not find the answer here: https://stackoverflow.com/questions/3675522/how-to-use-mgtwitterengine-for-iphone
I hope is not considered bad etiquette to recommend my own project, but I believe it's relevant to this question, so...
I just published a new OAuth library to GitHub that's fully ARC compatible. It comes with a working demo that implements the whole Twitter OAuth flow and allows you to post a tweet. You can find it here: RSOAuthEngine.
You might want to consider using the official Twitter API that's available with iOS 5. Here's a post on how to use it: http://www.peterfriese.de/the-accounts-and-twitter-framework-on-ios-5/
You could just tell the compiler not to use ARC on the files included in that library.
ios5 ARC what is the compiler flag to exclude a file from ARC?

Resources