Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta data added #272

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Meta data added #272

wants to merge 6 commits into from

Conversation

andriks2
Copy link
Contributor

Added meta properties CategoryAttribute and DescriptionAttribute. Also fixed typo in comments for ZXing.OneD.Code128EncodingOptions

Added meta properties CategoryAttribute and DescriptionAttribute
Added meta properties CategoryAttribute and DescriptionAttribute
Added meta properties CategoryAttribute and DescriptionAttribute
Added meta properties CategoryAttribute and DescriptionAttribute
Added meta properties CategoryAttribute and DescriptionAttribute
Added meta properties CategoryAttribute and DescriptionAttribute
@micjahn
Copy link
Owner

micjahn commented Aug 19, 2020

Thanks for the PR.
Can you please check the following commit:
b3e5f17
There is something wrong because it adds the complete class PDF417EncodingOptions instead of only the necessary attributes. The automatic AppVeyor build fails.

@andriks2
Copy link
Contributor Author

andriks2 commented Aug 20, 2020 via email

@andriks2
Copy link
Contributor Author

andriks2 commented Aug 25, 2020 via email

@micjahn
Copy link
Owner

micjahn commented Aug 25, 2020

Michael, Probably I did something wrong, I have used a number of version control systems in my programming career, but never GitHub. I forked the master branch of ZXing.Net, dragged the six changed files from Total Commander to what I assumed to be the correct position of the files in my fork1) in the webbrowser window and dropped it. I could have sworn I saw the change history update to ‘x minutes ago’, but now when navigating to it, it says ‘11 months ago’. And my changes are not in the file. In the location you send to me, I indeed see that GitHub now talks of a new file, probably because ‘This commit does not belong to any branch on this repository’. I do not know where the update version of the file went to, but not the page I saw in my browser when doing the drag/drop. Can you explain briefly how to get my changes committed without having to edit the file in situ. Maybe a github desktop client? Greetings, André 1)E.g. navigate to https://github.com/andriks2/ZXing.Net/tree/master/Source/lib/pdf417/encoder https://github.com/andriks2/ZXing.Net/tree/master/Source/lib/pdf417/encoder Van: Michael Jahn [email protected] Verzonden: woensdag 19 augustus 2020 21:24 Aan: micjahn/ZXing.Net [email protected] CC: andriks2 [email protected]; Author [email protected] Onderwerp: Re: [micjahn/ZXing.Net] Meta data added (#272) Thanks for the PR. Can you please check the following commit: <b3e5f17> b3e5f17 There is something wrong because it adds the complete class PDF417EncodingOptions instead of only the necessary attributes. The automatic AppVeyor build fails. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#272 (comment)> , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKHRNVQTT44WPYAE7MBWONDSBQRDRANCNFSM4QFBRCJQ .

Forking is easy, in my opinion. I'm not sure if I made everything right but here is a short explanation of how I contribute to other projects.

  1. I make a fork of the project
  2. I make a new branch for the changes I want to make, f.e. in your case I would have made a branch "property-attributes" or similar
  3. I make a local repository clone and switch it to the created branch
  4. I make my changes, commit them to my local repo clone and push them to github into my fork
  5. I create a new pull request at github
  6. after the PR is merged I remove my feature branch ("property-attributes")
  7. I pull the merge changes from the original repository to my own fork into the master branch
    https://guides.github.com/activities/forking/

@micjahn
Copy link
Owner

micjahn commented Aug 25, 2020

A few points for the person responsible for the development of BarcodeReaderGeneric And BaseLuminanceSource.

I'm the only member of the ZXing.Net team. It is, more or less, a one-man-show. From time to time there are contributions from others (like you).
The original project is written in java (github.com/zxing/zxing). I created this C# version here based upon the java original.

If decoding fails I sometimes get a lot of found PharmaCodes

Pharmacode and MSI aren't activated by default (too many false positives). Take a look at BarcodeFormat.All1D.
If someone want's to decode them they have to be activated explicitly (barcode reader options).

rotation by 45 degree

It isn't implemented yet because it isn't that easy like 90 degrees. Your sample code looks promising.
But you have to calculate a new width and height. They should be as big as the diagonals of the original rectangle.
There should be some optimization possible to do fewer multiplications
(like calculating the mirrored point only with additions and subtractions).
You should create a new branch within your fork and create a new pull request for the rotation by 45 degrees.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants