Skip to content

Commit 13a2880

Browse files
Add files via upload
1 parent d53521c commit 13a2880

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

upcean/encode/barcode.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -580,119 +580,119 @@ def validate_create_itf_barcode(upc, outfile="./itf.png", resize=1, barheight=(4
580580
return False
581581
if(not upcean.validate.validate_itf14_checksum(upc)):
582582
return False
583-
return create_itf_barcode(fullupc, outfile, resize, barheight, barwidth, barcolor, hideinfo, imagecomment, imageoutlib)
583+
return create_itf_barcode(upc, outfile, resize, barheight, barwidth, barcolor, hideinfo, imagecomment, imageoutlib)
584584

585585

586586
def validate_draw_itf_barcode(upc, resize=1, barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=defaultdraw):
587587
if(len(upc) > 14 or len(upc) < 14):
588588
return False
589589
if(not upcean.validate.validate_itf14_checksum(upc)):
590590
return False
591-
return draw_itf_barcode(fullupc, resize, barheight, barwidth, barcolor, hideinfo, imageoutlib)
591+
return draw_itf_barcode(upc, resize, barheight, barwidth, barcolor, hideinfo, imageoutlib)
592592

593593

594594
def validate_create_itf_barcode_sheet(upc, outfile="./itf.png", resize=1, barheight=(48, 54), barwidth=(1, 1), numxy=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imagecomment=None, imageoutlib=defaultdraw):
595595
if(len(upc) > 14 or len(upc) < 14):
596596
return False
597597
if(not upcean.validate.validate_itf14_checksum(upc)):
598598
return False
599-
return create_itf_barcode_sheet(fullupc, outfile, resize, barheight, barwidth, numxy, barcolor, hideinfo, imagecomment, imageoutlib)
599+
return create_itf_barcode_sheet(upc, outfile, resize, barheight, barwidth, numxy, barcolor, hideinfo, imagecomment, imageoutlib)
600600

601601

602602
def validate_draw_itf_barcode_sheet(upc, resize=1, barheight=(48, 54), barwidth=(1, 1), numxy=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=defaultdraw):
603603
if(len(upc) > 14 or len(upc) < 14):
604604
return False
605605
if(not upcean.validate.validate_itf14_checksum(upc)):
606606
return False
607-
return draw_itf_barcode_sheet(fullfullupc, resize, barheight, barwidth, numxy, barcolor, hideinfo, imageoutlib)
607+
return draw_itf_barcode_sheet(fullupc, resize, barheight, barwidth, numxy, barcolor, hideinfo, imageoutlib)
608608

609609

610610
def validate_encode_itf_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=None):
611611
if(len(upc) > 14 or len(upc) < 14):
612612
return False
613613
if(not upcean.validate.validate_itf14_checksum(upc)):
614614
return False
615-
return encode_itf_barcode(inimage, fullupc, resize, shiftxy, barheight, barwidth, barcolor, hideinfo, imageoutlib)
615+
return encode_itf_barcode(inimage, upc, resize, shiftxy, barheight, barwidth, barcolor, hideinfo, imageoutlib)
616616

617617

618618
def validate_create_itf6_barcode(upc, outfile="./itf6.png", resize=1, barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imagecomment=None, imageoutlib=defaultdraw):
619619
if(len(upc) > 6 or len(upc) < 6):
620620
return False
621621
if(not upcean.validate.validate_itf6_checksum(upc)):
622622
return False
623-
return create_itf6_barcode(fullupc, outfile, resize, barheight, barwidth, barcolor, hideinfo, imagecomment, imageoutlib)
623+
return create_itf6_barcode(upc, outfile, resize, barheight, barwidth, barcolor, hideinfo, imagecomment, imageoutlib)
624624

625625

626626
def validate_draw_itf6_barcode(upc, resize=1, barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=defaultdraw):
627627
if(len(upc) > 6 or len(upc) < 6):
628628
return False
629629
if(not upcean.validate.validate_itf6_checksum(upc)):
630630
return False
631-
return draw_itf6_barcode(fullupc, resize, barheight, barwidth, barcolor, hideinfo, imageoutlib)
631+
return draw_itf6_barcode(upc, resize, barheight, barwidth, barcolor, hideinfo, imageoutlib)
632632

633633

634634
def validate_create_itf6_barcode_sheet(upc, outfile="./itf6.png", resize=1, barheight=(48, 54), barwidth=(1, 1), numxy=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imagecomment=None, imageoutlib=defaultdraw):
635635
if(len(upc) > 6 or len(upc) < 6):
636636
return False
637637
if(not upcean.validate.validate_itf6_checksum(upc)):
638638
return False
639-
return create_itf6_barcode_sheet(fullupc, outfile, resize, barheight, barwidth, numxy, barcolor, hideinfo, imagecomment, imageoutlib)
639+
return create_itf6_barcode_sheet(upc, outfile, resize, barheight, barwidth, numxy, barcolor, hideinfo, imagecomment, imageoutlib)
640640

641641

642642
def validate_draw_itf6_barcode_sheet(upc, resize=1, barheight=(48, 54), barwidth=(1, 1), numxy=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=defaultdraw):
643643
if(len(upc) > 6 or len(upc) < 6):
644644
return False
645645
if(not upcean.validate.validate_itf6_checksum(upc)):
646646
return False
647-
return draw_itf6_barcode_sheet(fullupc, resize, barheight, barwidth, numxy, barcolor, hideinfo, imageoutlib)
647+
return draw_itf6_barcode_sheet(upc, resize, barheight, barwidth, numxy, barcolor, hideinfo, imageoutlib)
648648

649649

650650
def validate_encode_itf6_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=None):
651651
if(len(upc) > 6 or len(upc) < 6):
652652
return False
653653
if(not upcean.validate.validate_itf6_checksum(upc)):
654654
return False
655-
return encode_itf6_barcode(inimage, fullupc, resize, shiftxy, barheight, barwidth, barcolor, hideinfo, imageoutlib)
655+
return encode_itf6_barcode(inimage, upc, resize, shiftxy, barheight, barwidth, barcolor, hideinfo, imageoutlib)
656656

657657

658658
def validate_create_itf14_barcode(upc, outfile="./itf14.png", resize=1, barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imagecomment=None, imageoutlib=defaultdraw):
659659
if(len(upc) > 14 or len(upc) < 14):
660660
return False
661661
if(not upcean.validate.validate_itf14_checksum(upc)):
662662
return False
663-
return create_itf14_barcode(fullupc, outfile, resize, barheight, barwidth, barcolor, hideinfo, imagecomment, imageoutlib)
663+
return create_itf14_barcode(upc, outfile, resize, barheight, barwidth, barcolor, hideinfo, imagecomment, imageoutlib)
664664

665665

666666
def validate_draw_itf14_barcode(upc, resize=1, barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=defaultdraw):
667667
if(len(upc) > 14 or len(upc) < 14):
668668
return False
669669
if(not upcean.validate.validate_itf14_checksum(upc)):
670670
return False
671-
return draw_itf14_barcode(fullupc, resize, barheight, barwidth, barcolor, hideinfo, imageoutlib)
671+
return draw_itf14_barcode(upc, resize, barheight, barwidth, barcolor, hideinfo, imageoutlib)
672672

673673

674674
def validate_create_itf14_barcode_sheet(upc, outfile="./itf14.png", resize=1, barheight=(48, 54), barwidth=(1, 1), numxy=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imagecomment=None, imageoutlib=defaultdraw):
675675
if(len(upc) > 14 or len(upc) < 14):
676676
return False
677677
if(not upcean.validate.validate_itf14_checksum(upc)):
678678
return False
679-
return create_itf14_barcode_sheet(fullupc, outfile, resize, barheight, barwidth, numxy, barcolor, hideinfo, imagecomment, imageoutlib)
679+
return create_itf14_barcode_sheet(upc, outfile, resize, barheight, barwidth, numxy, barcolor, hideinfo, imagecomment, imageoutlib)
680680

681681

682682
def validate_draw_itf14_barcode_sheet(upc, resize=1, barheight=(48, 54), barwidth=(1, 1), numxy=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=defaultdraw):
683683
if(len(upc) > 14 or len(upc) < 14):
684684
return False
685685
if(not upcean.validate.validate_itf14_checksum(upc)):
686686
return False
687-
return draw_itf14_barcode_sheet(fullupc, resize, barheight, barwidth, numxy, barcolor, hideinfo, imageoutlib)
687+
return draw_itf14_barcode_sheet(upc, resize, barheight, barwidth, numxy, barcolor, hideinfo, imageoutlib)
688688

689689

690690
def validate_encode_itf14_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=None):
691691
if(len(upc) > 14 or len(upc) < 14):
692692
return False
693693
if(not upcean.validate.validate_itf14_checksum(upc)):
694694
return False
695-
return encode_itf14_barcode(inimage, fullupc, resize, shiftxy, barheight, barwidth, barcolor, hideinfo, imageoutlib)
695+
return encode_itf14_barcode(inimage, upc, resize, shiftxy, barheight, barwidth, barcolor, hideinfo, imageoutlib)
696696

697697

698698
def fix_create_upca_barcode(upc, outfile="./upca.png", resize=1, barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imagecomment=None, imageoutlib=defaultdraw):
@@ -1299,101 +1299,101 @@ def fix_create_itf_barcode(upc, outfile="./itf.png", resize=1, barheight=(48, 54
12991299
if(len(upc) > 14 or len(upc) < 13):
13001300
return False
13011301
upc = upcean.validate.fix_itf14_checksum(upc)
1302-
return create_itf_barcode(fullupc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
1302+
return create_itf_barcode(upc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
13031303

13041304

13051305
def fix_draw_itf_barcode(upc, resize=1, barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=defaultdraw):
13061306
if(len(upc) > 14 or len(upc) < 13):
13071307
return False
13081308
upc = upcean.validate.fix_itf14_checksum(upc)
1309-
return draw_itf_barcode(fullupc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
1309+
return draw_itf_barcode(upc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
13101310

13111311
def fix_create_itf_barcode_sheet(upc, outfile="./itf.png", resize=1, barheight=(48, 54), barwidth=(1, 1), numxy=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imagecomment=None, imageoutlib=defaultdraw):
13121312
if(len(upc) > 14 or len(upc) < 13):
13131313
return False
13141314
upc = upcean.validate.fix_itf14_checksum(upc)
1315-
return create_itf_barcode_sheet(fullupc, outfile, resize, hideinfo, barheight, barwidth, numxy, textxy, barcolor, imageoutlib)
1315+
return create_itf_barcode_sheet(upc, outfile, resize, hideinfo, barheight, barwidth, numxy, textxy, barcolor, imageoutlib)
13161316

13171317

13181318
def fix_draw_itf_barcode_sheet(upc, resize=1, barheight=(48, 54), barwidth=(1, 1), numxy=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=defaultdraw):
13191319
if(len(upc) > 14 or len(upc) < 13):
13201320
return False
13211321
upc = upcean.validate.fix_itf14_checksum(upc)
1322-
return draw_itf_barcode_sheet(fullupc, outfile, resize, hideinfo, barheight, barwidth, numxy, textxy, barcolor, imageoutlib)
1322+
return draw_itf_barcode_sheet(upc, outfile, resize, hideinfo, barheight, barwidth, numxy, textxy, barcolor, imageoutlib)
13231323

13241324

13251325
def fix_encode_itf_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=None):
13261326
if(len(upc) > 14 or len(upc) < 13):
13271327
return False
13281328
upc = upcean.validate.fix_itf14_checksum(upc)
1329-
return encode_itf_barcode(fullupc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
1329+
return encode_itf_barcode(upc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
13301330

13311331

13321332
def fix_create_itf6_barcode(upc, outfile="./itf6.png", resize=1, barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imagecomment=None, imageoutlib=defaultdraw):
13331333
if(len(upc) > 6 or len(upc) < 5):
13341334
return False
13351335
upc = upcean.validate.fix_itf6_checksum(upc)
1336-
return create_itf6_barcode(fullupc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
1336+
return create_itf6_barcode(upc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
13371337

13381338

13391339
def fix_draw_itf6_barcode(upc, resize=1, barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=defaultdraw):
13401340
if(len(upc) > 6 or len(upc) < 5):
13411341
return False
13421342
upc = upcean.validate.fix_itf6_checksum(upc)
1343-
return draw_itf6_barcode(fullupc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
1343+
return draw_itf6_barcode(upc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
13441344

13451345

13461346
def fix_create_itf6_barcode_sheet(upc, outfile="./itf6.png", resize=1, barheight=(48, 54), barwidth=(1, 1), numxy=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imagecomment=None, imageoutlib=defaultdraw):
13471347
if(len(upc) > 6 or len(upc) < 5):
13481348
return False
13491349
upc = upcean.validate.fix_itf6_checksum(upc)
1350-
return create_itf6_barcode_sheet(fullupc, outfile, resize, hideinfo, barheight, barwidth, numxy, textxy, barcolor, imageoutlib)
1350+
return create_itf6_barcode_sheet(upc, outfile, resize, hideinfo, barheight, barwidth, numxy, textxy, barcolor, imageoutlib)
13511351

13521352

13531353
def fix_draw_itf6_barcode_sheet(upc, resize=1, barheight=(48, 54), barwidth=(1, 1), numxy=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=defaultdraw):
13541354
if(len(upc) > 6 or len(upc) < 5):
13551355
return False
13561356
upc = upcean.validate.fix_itf6_checksum(upc)
1357-
return draw_itf6_barcode_sheet(fullupc, outfile, resize, hideinfo, barheight, barwidth, numxy, textxy, barcolor, imageoutlib)
1357+
return draw_itf6_barcode_sheet(upc, outfile, resize, hideinfo, barheight, barwidth, numxy, textxy, barcolor, imageoutlib)
13581358

13591359

13601360
def fix_encode_itf6_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=None):
13611361
if(len(upc) > 6 or len(upc) < 5):
13621362
return False
13631363
upc = upcean.validate.fix_itf6_checksum(upc)
1364-
return encode_itf6_barcode(fullupc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
1364+
return encode_itf6_barcode(upc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
13651365

13661366

13671367
def fix_create_itf14_barcode(upc, outfile="./itf14.png", resize=1, barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imagecomment=None, imageoutlib=defaultdraw):
13681368
if(len(upc) > 14 or len(upc) < 13):
13691369
return False
13701370
upc = upcean.validate.fix_itf14_checksum(upc)
1371-
return create_itf14_barcode(fullupc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
1371+
return create_itf14_barcode(upc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
13721372

13731373

13741374
def fix_draw_itf14_barcode(upc, resize=1, barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=defaultdraw):
13751375
if(len(upc) > 14 or len(upc) < 13):
13761376
return False
13771377
upc = upcean.validate.fix_itf14_checksum(upc)
1378-
return draw_itf14_barcode(fullupc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
1378+
return draw_itf14_barcode(upc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
13791379

13801380

13811381
def fix_create_itf14_barcode_sheet(upc, outfile="./itf14.png", resize=1, barheight=(48, 54), barwidth=(1, 1), numxy=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imagecomment=None, imageoutlib=defaultdraw):
13821382
if(len(upc) > 14 or len(upc) < 13):
13831383
return False
13841384
upc = upcean.validate.fix_itf14_checksum(upc)
1385-
return create_itf14_barcode_sheet(fullupc, outfile, resize, hideinfo, barheight, barwidth, numxy, textxy, barcolor, imageoutlib)
1385+
return create_itf14_barcode_sheet(upc, outfile, resize, hideinfo, barheight, barwidth, numxy, textxy, barcolor, imageoutlib)
13861386

13871387

13881388
def fix_draw_itf14_barcode_sheet(upc, resize=1, barheight=(48, 54), barwidth=(1, 1), numxy=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=defaultdraw):
13891389
if(len(upc) > 14 or len(upc) < 13):
13901390
return False
13911391
upc = upcean.validate.fix_itf14_checksum(upc)
1392-
return draw_itf14_barcode_sheet(fullupc, outfile, resize, hideinfo, barheight, barwidth, numxy, textxy, barcolor, imageoutlib)
1392+
return draw_itf14_barcode_sheet(upc, outfile, resize, hideinfo, barheight, barwidth, numxy, textxy, barcolor, imageoutlib)
13931393

13941394

13951395
def fix_encode_itf14_barcode(inimage, upc, resize=1, shiftxy=(0, 0), barheight=(48, 54), barwidth=(1, 1), barcolor=((0, 0, 0), (0, 0, 0), (255, 255, 255)), hideinfo=(False, False, False), imageoutlib=None):
13961396
if(len(upc) > 14 or len(upc) < 13):
13971397
return False
13981398
upc = upcean.validate.fix_itf14_checksum(upc)
1399-
return encode_itf14_barcode(fullupc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)
1399+
return encode_itf14_barcode(upc, outfile, resize, hideinfo, barheight, barwidth, textxy, barcolor, imageoutlib)

0 commit comments

Comments
 (0)