How to count an card board boxes after passing through the line - count

I have detect the card board boxes in the video frames and labelled it and also count the total card board boxes in the frame but my question is how can i count the card board boxes after passing the line as shown in image.
I want to count boxes when they cross the line...
enter image description here

Related

What components to choose for monitoring free preferential places in a minibus on Arduino?

I need cards for concessionaires lying next to the driver so that their number is shown on the display next to the bus route number. When the driver at the entrance issues the card to concessionaire 1, the display should accordingly show "Preferential Seats - 3"
instead of "Preferential Seats - 4". That is, reduced by 1. So what components are needed to implement such an idea using Arduino?
I thought it would require a scanner, chips to insert into the benefit recipient card, some kind of microcontroller to process the data, and a display to display the information

Is it possible to create a slider for Conway's game of life if birth happens only when there are FOUR living neighbours?

I'm just playing around with Conway's game of life and I adjusted the settings so that birth only happens when there are 4 living neighbours. A cell will die when the living neighbours != 2.
After a lot of trying I still can't find a slider, is this probably just impossible?!
Thanks in advance!
No, a Life-like cellular automaton where births require at least four live neighbors cannot have gliders.
To see why, take any isolated cluster of live cells on the lattice and draw a box around it. Now observe that any cell outside the box has at most three neighboring cells that are inside the box. This means that the cluster of cells inside the box can never move or expand outside the box.

Game Maker Studio writing in exactly in the middle of a GUI

I'd like to make a pause screen.
In the game the view follows the character and when paused I want the text to be exactly in the middle of the screen. I am using a draw GUI event to display text where the user can see it.
I was thinking of halving the length and width of the port but could not find a function which gave those numbers.
If there is one, what it is, and if not how can I achieve this?
I think I have solved this.
In the GUI event, I use view_hport[0] and view_wport[0] in order to obtain the total length of the port then halve this number.

AdaFruit pn532 NFC/RFID detecting multiple tags?

I am working off an Arduino UNO with an AdaFruit pn532 NFC/RFID shield. The Goal is to have a shoe box, with a false bottom. Under that false bottom would be my prototype, which hopes to be able to tell every mifare tag (up to 6) that is in the box, above the false bottom.
I started with one shield, and had it detecting up to two tags with in range..
If i placed one tag it logged that one tag over and over again in the loop() of my sketch.
If I placed two tags above the shield it logged the two tags in an alternating pattern. ("tag1","tag2","tag1"....)
But when I placed three tags, it only logs the third tag.. This is essentially using the adaFruit mifare example.
I then set up the UNO with two shields and in the loop() checked both.. worked exactly the same. Once there were three tags, regardless of which pn352 they were placed on (2 on one, and 1 on another, or all three on one) it only logs one tag.
Has anyone tried to create anything that would detect up to 6 tags in range? If so could you share your discoveries?
New to Arduino..
thanks
The answer to your question leads into the technology of RFID. The reader emits radio waves at the operating frequency (usually 125kHz or 13.56MHz). When you bring an RFID tag to the reader - it accumulates the energy of the magnetic field of the reader and use this energy to transmits the ID at the same frequency back to the reader. The key point is that the RFID protocol does not provide for work with several tags at once.
So, if you bring 2 or more tags to the reader - they simultaneously start to generate RF signal, each with its own ID, thus "interrupting" each other. As a result, your reader gets garbage instead of the correct ID payload.

How is this data from a magnetic card encoded?

I have some information about magnetic cards that control the building access, and need to reverse engineer the way the software stores data on the cards to make something with more features. (We have lost contact with the original programmer.)
I have no idea how writing the order is done; I'm no magnetic card expert.
I know a few things:
Data is on the third track.
all readers are standalone and have batteries.
There is a master card that can add or remove some cards for a reader(currently, you need to go through all the doors to add or remove a card from the system).
Each card is different, and must have a unique identifier.
There is a expiration date, but I have no idea if it's a date format or just a number incrementing in the door readers.
There is a "flag" which gives access to special places (parking) and it isn't affected by the expiration date... weird.
I've got a reader and some software to read it. It gives me hexadecimal numbers.
As example here is a few cards I've got.
BAC716863B8CB32832BABAB40E1739BAB677563B3AF8BA3ABABABEBABABABABABAC0 (card with parking)
BDC011813CB9B4CBB53DBDB21FD2BCBDBEEA3EBDBDFFBD3DBDBDB1BDBDBDBDBDBDC0 (card with parking)
9DE031A11CA9912E951D9D9225369D1D9FCE6C9D1DDF9D1D9D9D9D9D9D9D9D9D9DC0 (normal card, no special access)
I just hope it's not secured by anything that could make this impossible to reverse-engineer.
This question comes up high on google, i experienced a similar issue and solved it.
Data on magnetic card encoded in ANSI/ISO ALPHA Data Format (on Track 1) and ANSI/ISO BCD Data Format (on Track 2 and 3). Most magnetic card readers decode this data before returning so you don't have to but some reader don't and here we are.
You can find encoding table and more information here: http://www.abacus21.com/Magnetic-Strip-Encoding-1586.html

Resources