Project With Real BarCode Scanner? Billing System Python

Поделиться
HTML-код
  • Опубликовано: 26 окт 2021
  • Festivals are a great time to clean house, During that I found a very old barcode scanner - Used my coding skills to create a Project Project and reusing an electrical device.

Комментарии • 36

  • @VinayVerma982
    @VinayVerma982  Год назад +3

    Here is the Code for your reference :)
    items = {"SWCFP100106264":{"name":"Watch","price":4000},
    "SFQDYRHXVGWTJ":{"name":"Apple Pencil","price":8000},
    "9780241470046":{"name":"The Practice","price":500},
    "9781847941831":{"name":"Atomic Habits","price":500},
    "1SGY50X88832Z13GRT42":{"name":"Mouse","price":1500},
    "4005900144652":{"name":"Cream","price":100},
    "190198648891":{"name":"iPad","price":10000},
    }
    total_bill = 0
    bill = []
    while True:
    print("Scan your BarCode")
    value = input()
    end_code = "9781492090793"
    if value == end_code:
    print("Shopping Done")
    break
    for key in items.keys():
    if key==value:
    item = items[key]
    print(f"This is:{item['name']}, Price is: {item['price']}")
    total_bill+=item['price']
    bill.append(item)
    break
    else:
    print("Item Not Found",value)
    for i,item in enumerate(bill):
    print(f"{i+1}. {item['name']}, {item['price']}")
    print(f'
    Your Total Cost is: Rs.{total_bill}')

    • @oosmanbeekawoo
      @oosmanbeekawoo Год назад +1

      Thank you for real. Dad told me to write a program or his business and I'm glad I don't have to do any work!

  • @mubafaw
    @mubafaw 5 месяцев назад +2

    Thank you Sir for you practical and easy to follow video 😊🙏
    EDIT: This also worked for my plug and play EYOYO 2D Barcode Scanner Model: EY-H2 that I'm using to develop a simple Warehouse Inventory System. Thank you Thank you Thank you Sir. I'm so excited about the project 😊🙏

    • @VinayVerma982
      @VinayVerma982  5 месяцев назад +1

      I am glad, this video was helpful to you, :) keep developing.

  • @Leownification
    @Leownification Год назад +1

    You're awesome, great video, really makes this all look much more approachable and understandable, thanks for making this!

  • @sachinprakash8041
    @sachinprakash8041 2 года назад

    Kaafi awesome!

  • @AnkitTiwari-dq7qm
    @AnkitTiwari-dq7qm Год назад

    Great 👍

  • @malikaatjuuh2970
    @malikaatjuuh2970 Год назад +1

    Nice video! I was wondering, how do you make the application run in the background? How do I make it read the input while I’m on another application?

    • @VinayVerma982
      @VinayVerma982  Год назад

      You can explore cronjob in linux, or autostart features to try that. But since it reads input as text, so it may interfere with other apps. It needs cursor on the text box only. Thats my intuition, Try it and we can discuss further 😌

  • @cricketisourpassion6956
    @cricketisourpassion6956 Год назад +1

    nice but sir also create a user input to save the barcode items in dictionary and then how to retrieve that data in same ...

  • @user-lt2px3ft4p
    @user-lt2px3ft4p 3 месяца назад

    Nice!😊

  • @cocaptainbluesgaming6999
    @cocaptainbluesgaming6999 8 месяцев назад +1

    The the barcode scanner just put the number into a text file automatically? or did you have to program that part as well?

    • @VinayVerma982
      @VinayVerma982  8 месяцев назад +1

      Yes - it just scans the number and electronics from barcode converts it to text instantly. Very cool piece of tech.

  • @darshitvekariya1936
    @darshitvekariya1936 Год назад

    this video help full 100 *100%

  • @saurbhwasnik
    @saurbhwasnik Год назад +1

    Which library you use to connect scanner to python

    • @VinayVerma982
      @VinayVerma982  Год назад +1

      Glad you liked the video, as explained in video barcode scanner "types the number value" just like you would "type from keyboard." So no library needed for reading the input. You can write a while loop in python, where you wait for user to input the number. Then you can execute SQL query or whatever you want with it.

    • @saurbhwasnik
      @saurbhwasnik Год назад +1

      @@VinayVerma982 oh it's work as keyboard , thank you ♥️

  • @sig-yog7046
    @sig-yog7046 Год назад

    Can you scan a Python restaurant ticket slip? Find out how many of each product is requested and how much the total cost is.

    • @VinayVerma982
      @VinayVerma982  Год назад

      Yes, one way for that is you can embed that information in QR code, then can scan it. 😊

  • @AviralBoy
    @AviralBoy 2 месяца назад

    Did the reader collect only code or price and name also??

    • @VinayVerma982
      @VinayVerma982  Месяц назад

      Hi, Reader just collects the serial numer of the product - In the computer the price and name is saved for the serial number. It maps it directly.
      Thanks for watching.

  • @johnmichaelemejas1271
    @johnmichaelemejas1271 2 месяца назад

    hi can u make a video of this intended for attendance

    • @VinayVerma982
      @VinayVerma982  Месяц назад

      Thanks, Yes we can make a video for attendence. But how you will attach Barcode to employees.

  • @vinhbaonguyendinh9986
    @vinhbaonguyendinh9986 7 месяцев назад

    can you share your project, if need i will pay for it to study

    • @VinayVerma982
      @VinayVerma982  7 месяцев назад

      for further queries mail at: vermavinay982@gmail.com

  • @smarttech5736
    @smarttech5736 2 года назад

    Bro source code ??

    • @VinayVerma982
      @VinayVerma982  2 года назад +1

      Unfortunately cant find the code, you please code it and put it on your github. I will mention your profile. 😊

    • @smarttech5736
      @smarttech5736 2 года назад +1

      @@VinayVerma982 okay , sure..

    • @siddharthpatel9821
      @siddharthpatel9821 Год назад

      @@smarttech5736 BRO, source code